390f1816ebd804ffa8c230f44fb4f7ad04a0fd22
[platform/upstream/glibc.git] / ChangeLog
1 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2
3         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
4         optimization when used with float constants.
5
6         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7
8 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
9
10         [BZ #16915]
11         * locale/nl_langinfo_l.c: Make direct reference to every
12         _nl_current_CATEGORY symbol.
13         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
14         (tests-static): Add tst-langinfo-static.
15         (tests-special): Add tst-langinfo-static.out.
16         ($(objpfx)tst-langinfo.out): Redirect output.
17         ($(objpfx)tst-langinfo-static.out): New.
18         * localedata/tst-langinfo.sh: Send output to stdout.
19         * localedata/tst-langinfo-static.c: New file.
20
21         [BZ #16965]
22         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
23         when the shift amount is modulo the limb size.
24
25 2014-05-20  Richard Henderson  <rth@redhat.com>
26
27         [BZ #16967]
28         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
29         Change type of sa_flags from unsigned int to int.
30
31         [BZ #16966]
32         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
33
34         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
35
36 2014-05-20  Will Newton  <will.newton@linaro.org>
37
38         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
39         Test the return value of the system call in the nocancel case.
40
41 2014-05-20  Will Newton  <will.newton@linaro.org>
42             Yvan Roux  <yvan.roux@linaro.org>
43
44         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
45         #include of asm/ptrace.h.
46         (PTRACE_GET_THREAD_AREA): Remove #undef.
47         (PTRACE_GETHBPREGS): Likewise.
48         (PTRACE_SETHBPREGS): Likewise.
49         (struct user_regs_struct): New structure.
50         (struct user_fpsimd_struct): New structure.
51         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
52         #include of asm/ptrace.h and second #include of sys/user.h.
53         (PTRACE_GET_THREAD_AREA): Remove #undef.
54         (PTRACE_GETHBPREGS): Likewise.
55         (PTRACE_SETHBPREGS): Likewise.
56         (ELF_NGREG): Use new struct user_regs_struct.
57         (elf_fpregset_t): Use new struct user_fpsimd_struct.
58
59 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60
61         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
62         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
63
64 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
65
66         [BZ #16958]
67         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
68         membar to avoid block loads/stores to overlap previous stores.
69
70 2014-05-17  Richard Henderson  <rth@redhat.com>
71
72         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
73         Create the __##syscall_name##_nocancel entry point.
74         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
75         Remove; let the sysdep-cancel.h code create it.
76
77 2014-05-17  David S. Miller  <davem@davemloft.net>
78
79         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
80         Protect with __USE_GNU.
81         (TIOCSET_TEMPT): Likewise.
82         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
83         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
84         these are already provided in bits/ioctl-types.h
85
86 2014-05-16  Roland McGrath  <roland@hack.frob.com>
87
88         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
89         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
90
91         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
92         Use wait4 regardless of [__NR_waitpid].
93
94 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
95
96         PR libgcc/60166
97         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
98         (_FP_NANSIGN_Q): Set the quiet bit.
99
100 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
101
102         * benchtests/Makefile
103         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
104         not $(common-objpfx)math/libm.so.
105         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
106         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
107         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
108         $(common-objpfx)dlfcn/libdl.so.
109         ($(objpfx)tst-audit8): Depend on $(libm), not
110         $(common-objpfx)math/libm.so.
111         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
112         not $(common-objpfx)dlfcn/libdl.so.
113         * math/Makefile
114         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
115         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
116         [$(build-shared) = yes].
117         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
118         $(common-objpfx)nptl/libpthread.so.
119         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
120         $(common-objpfx)math/libm.so$(libm.so-version) or
121         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
122         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
123         $(common-objpfx)dlfcn/libdl.so.
124         * setjmp/Makefile (link-libm): Remove variable.
125         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
126         * stdio-common/Makefile (link-libm): Remove variable.
127         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
128         * stdlib/Makefile (link-libm): Remove variable.
129         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
130         ($(objpfx)tst-strtod-round): Likewise.
131         ($(objpfx)tst-tininess): Likewise.
132         ($(objpfx)tst-strtod-underflow): Likewise.
133         ($(objpfx)tst-strtod6): Likewise.
134         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
135         $(libdl), not $(common-objpfx)nptl/libpthread.so and
136         $(common-objpfx)dlfcn/libdl.so.
137
138 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
139
140         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
141         BSD terminal modes definitions.
142
143 2014-05-16  Roland McGrath  <roland@hack.frob.com>
144
145         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
146         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
147
148         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
149         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
150         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
151         Don't do #include_next.
152         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
153         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
154         Don't do #include_next.
155         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
156         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
157         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
158         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
159
160 2014-05-16  Allan McRae  <allan@archlinux.org>
161
162         * po/sv.po: Update Swedish translation from translation project.
163
164         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
165         in sed expression.
166
167 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
168
169         [BZ #16917]
170         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
171         errno if the TIOCGPTN ioctl fails with an error different than
172         EINVAL.
173         * login/tst-ptsname.c: New file.
174         * login/Makefile (tests): Add tst-ptsname.
175
176         [BZ #16943]
177         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
178         and prlimit64.
179
180 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
181
182         [BZ #16849]
183         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
184         herrno to return EAI_AGAIN.
185
186 2014-05-14  Roland McGrath  <roland@hack.frob.com>
187
188         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
189         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
190         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
191         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
192         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
193         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
194         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
195         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
196         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
197         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
198         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
199         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
200         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
201         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
202         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
203         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
204         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
205         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
206         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
207         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
208         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
209         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
210         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
211         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
212         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
213         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
214         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
215         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
216         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
217         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
218         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
219         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
220         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
221         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
222         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
223         Moved ...
224         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
225         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
226         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
227         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
228         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
229         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
230         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
231         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
232         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
233         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
234         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
235         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
236         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
237         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
238         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
239         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
240         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
241         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
242         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
243         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
244         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
245         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
246         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
247         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
248         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
249         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
250         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
251         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
252         Moved ...
253         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
254         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
255         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
256         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
257         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
258         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
259         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
260         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
261         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
262         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
263         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
264         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
265         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
266         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
267         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
268         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
269         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
270         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
271         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
272         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
273         Moved ...
274         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
275         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
276         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
277
278         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
279         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
280         (libpthread-sysdep_routines): Add elision-related stuff here instead.
281         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
282         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
283         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
284         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
285         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
286         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
287         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
288         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
289         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
290         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
291         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
292         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
293         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
294         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
295         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
296         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
297         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
298         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
299         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
300         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
301         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
302         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
303         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
304         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
305         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
306         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
307         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
308         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
309
310         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
311         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
312
313         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
314         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
315         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
316         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
317         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
318         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
319         Moved ...
320         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
321         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
322         Moved ...
323         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
324         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
325         Moved ...
326         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
327         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
328         Moved ...
329         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
330         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
331         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
332         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
333         Moved ...
334         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
335         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
336         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
337         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
338         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
339         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
340         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
341         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
342         Moved ...
343         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
344         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
345         Moved ...
346         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
347         ... here.
348         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
349         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
350         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
351         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
352         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
353         Moved ...
354         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
355         ... here.
356         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
357         Moved ...
358         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
359         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
360         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
361         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
362         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
363         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
364         Moved ...
365         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
366         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
367         Moved ...
368         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
369         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
370         Moved ...
371         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
372         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
373         Moved ...
374         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
375         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
376         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
377         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
378         Moved ...
379         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
380         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
381         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
382         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
383         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
384         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
385         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
386         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
387         Moved ...
388         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
389         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
390         Moved ...
391         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
392         ... here.
393         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
394         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
395         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
396         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
397         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
398         Moved ...
399         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
400         ... here.
401         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
402         Moved ...
403         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
404         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
405         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
406         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
407         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
408         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
409         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
410         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
411         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
412         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
413         Moved ...
414         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
415         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
416         Moved ...
417         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
418         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
419         Moved ...
420         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
421         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
422         Moved ...
423         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
424         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
425         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
426         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
427         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
428         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
429         Moved ...
430         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
431         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
432         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
433         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
434         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
435         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
436         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
437         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
438         Moved ...
439         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
440         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
441         Moved ...
442         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
443         ... here.
444         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
445         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
446         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
447         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
448         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
449         Moved ...
450         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
451         ... here.
452         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
453         Moved ...
454         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
455         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
456         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
457         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
458         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
459         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
460         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
461         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
462         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
463         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
464         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
465
466         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
467         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
468
469         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
470         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
471
472         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
473         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
474         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
475         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
476         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
477         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
478         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
479         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
480         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
481         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
482         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
483         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
484         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
485         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
486         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
487         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
488         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
489         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
490         Moved ...
491         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
492         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
493         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
494         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
495         Moved ...
496         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
497         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
498         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
499         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
500         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
501         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
502         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
503         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
504         Moved ...
505         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
506         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
507         Moved ...
508         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
509         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
510         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
511         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
512         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
513         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
514         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
515         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
516         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
517         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
518         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
519         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
520         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
521         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
522         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
523         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
524         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
525
526         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
527         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
528         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
529         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
530         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
531
532         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
533         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
534         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
535         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
536         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
537         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
538         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
539         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
540         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
541         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
542
543         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
544         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
545
546         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
547         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
548         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
549         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
550         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
551         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
552         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
553         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
554         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
555         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
556         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
557         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
558         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
559         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
560         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
561         Update #include.
562         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
563         Likewise.
564         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
565         Likewise.
566         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
567         Likewise.
568         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
569         Likewise.
570         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
571         Likewise.
572         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
573         Likewise.
574         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
575         Likewise.
576         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
577         Likewise.
578         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
579         Likewise.
580         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
581         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
582         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
583         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
584         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
585         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
586         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
587         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
588         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
589         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
590         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
591         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
592         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
593         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
594         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
595
596         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
597         that was previously under [RESET_PID].
598         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
599         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
600         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
601
602         * sysdeps/i386/nptl/Implies: New file.
603         * sysdeps/x86_64/nptl/Implies: New file.
604         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
605         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
606         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
607         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
608
609         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
610         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
611         (__libc_vfork): New strong alias.
612         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
613         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
614
615         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
616         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
617         (__libc_vfork): New strong alias.
618         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
619         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
620
621         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
622         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
623         (__libc_vfork): New strong alias.
624         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
625         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
626         * nptl/pt-vfork.c: New file.
627         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
628         (libpthread: GLIBC_2.20): New version set (empty).
629
630 2014-05-14  Will Newton  <will.newton@linaro.org>
631
632         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
633         rather than #if.
634
635 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
636
637         [BZ #16564]
638         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
639         arguments with exponent 65 or above.
640         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
641         arguments 0x1p113L or above.
642         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
643         to arguments 0x1p107L or above.
644         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
645         positive arguments with exponent 65 or above.
646         * math/auto-libm-test-in: Add more tests of log1p.
647         * math/auto-libm-test-out: Regenerated.
648
649         [BZ #16928]
650         * math/s_cacos.c (__cacos): Ensure zero real part of result from
651         non-finite arguments is +0.
652         * math/s_cacosf.c (__cacosf): Likewise.
653         * math/s_cacosl.c (__cacosl): Likewise.
654         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
655         * sysdeps/i386/fpu/libm-test-ulps: Update.
656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
657
658         [BZ #16927]
659         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
660         value.
661         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
662         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
663         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
664         for explicit high bit of mantissa when testing for argument equal
665         to 1.
666         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
667         * sysdeps/i386/fpu/libm-test-ulps: Update.
668         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
669
670         [BZ #16516]
671         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
672         (__erf): Scale by 16 instead of 8 in potentially underflowing
673         case.  Ensure exception if result actually underflows.
674         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
675         (__erff): Scale by 16 instead of 8 in potentially underflowing
676         case.  Ensure exception if result actually underflows.
677         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
678         (efx8): Remove variable.
679         (__erfl): Scale by 16 instead of 8 in potentially underflowing
680         case.  Ensure exception if result actually underflows.
681         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
682         (efx8): Remove variable.
683         (__erfl): Scale by 16 instead of 8 in potentially underflowing
684         case.  Ensure exception if result actually underflows.
685         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
686         (efx8): Remove variable.
687         (__erfl): Scale by 16 instead of 8 in potentially underflowing
688         case.  Ensure exception if result actually underflows.
689         * math/auto-libm-test-in: Add more tests of erf.
690         * math/auto-libm-test-out: Regenerated.
691
692 2014-05-14  Andreas Schwab  <schwab@suse.de>
693
694         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
695         Remove code conditionalized on USE___THREAD.
696
697         * config.h.in (HAVE_PT_CHOWN): Define as 0.
698         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
699         not definedness.
700
701 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
702
703         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
704         Define unconditionally.
705         (__ASSUME_O_CLOEXEC): Likewise.
706         (__ASSUME_SOCK_CLOEXEC): Likewise.
707         (__ASSUME_IN_NONBLOCK): Likewise.
708         (__ASSUME_PIPE2): Likewise.
709         (__ASSUME_EVENTFD2): Likewise.
710         (__ASSUME_SIGNALFD4): Likewise.
711         (__ASSUME_DUP3): Likewise.
712         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
713         (__ASSUME_DUP3): Do not define.
714         (__ASSUME_EVENTFD2): Likewise.
715         (__ASSUME_IN_NONBLOCK): Likewise.
716         (__ASSUME_O_CLOEXEC): Likewise.
717         (__ASSUME_PIPE2): Likewise.
718         (__ASSUME_SIGNALFD4): Likewise.
719         (__ASSUME_SOCK_CLOEXEC): Likewise.
720         (__ASSUME_UTIMES): Undefine.
721         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
722         (__ASSUME_UTIMES): Do not define.
723         (__ASSUME_O_CLOEXEC): Likewise.
724         (__ASSUME_SOCK_CLOEXEC): Likewise.
725         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
726         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
727         0x020621].
728         (__ASSUME_PIPE2): Likewise.
729         (__ASSUME_EVENTFD2): Likewise.
730         (__ASSUME_SIGNALFD4): Likewise.
731         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
732         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
733         Do not define.
734         (__ASSUME_EVENTFD2): Likewise.
735         (__ASSUME_SIGNALFD4): Likewise.
736         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
737         (__ASSUME_32BITUIDS): Likewise.
738         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
739         (__ASSUME_IPC64): Likewise.
740         (__ASSUME_ST_INO_64_BIT): Likewise.
741         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
742         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
743         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
744         (__ASSUME_UTIMES): Do not define.
745         (__ASSUME_PSELECT): Likewise.
746         (__ASSUME_PPOLL): Likewise.
747         (__ASSUME_O_CLOEXEC): Likewise.
748         (__ASSUME_SOCK_CLOEXEC): Likewise.
749         (__ASSUME_IN_NONBLOCK): Likewise.
750         (__ASSUME_PIPE2): Likewise.
751         (__ASSUME_EVENTFD2): Likewise.
752         (__ASSUME_SIGNALFD4): Likewise.
753         (__ASSUME_DUP3): Likewise.
754         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
755         (__ASSUME_UTIMES): Likewise.
756         (__ASSUME_O_CLOEXEC): Likewise.
757         (__ASSUME_SOCK_CLOEXEC): Likewise.
758         (__ASSUME_IN_NONBLOCK): Likewise.
759         (__ASSUME_PIPE2): Likewise.
760         (__ASSUME_EVENTFD2): Likewise.
761         (__ASSUME_SIGNALFD4): Likewise.
762         (__ASSUME_DUP3): Likewise.
763         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
764         (__ASSUME_UTIMES): Likewise.
765         (__ASSUME_O_CLOEXEC): Likewise.
766         (__ASSUME_SOCK_CLOEXEC): Likewise.
767         (__ASSUME_IN_NONBLOCK): Likewise.
768         (__ASSUME_PIPE2): Likewise.
769         (__ASSUME_EVENTFD2): Likewise.
770         (__ASSUME_SIGNALFD4): Likewise.
771         (__ASSUME_DUP3): Likewise.
772         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
773         Likewise.
774         (__ASSUME_UTIMES): Likewise.
775         (__ASSUME_EVENTFD2): Likewise.
776         (__ASSUME_SIGNALFD4): Likewise.
777         * sysdeps/unix/sysv/linux/tile/kernel-features.h
778         (__ASSUME_O_CLOEXEC): Likewise.
779         (__ASSUME_SOCK_CLOEXEC): Likewise.
780         (__ASSUME_IN_NONBLOCK): Likewise.
781         (__ASSUME_PIPE2): Likewise.
782         (__ASSUME_EVENTFD2): Likewise.
783         (__ASSUME_SIGNALFD4): Likewise.
784         (__ASSUME_DUP3): Likewise.
785         (__ASSUME_UTIMES): Undefine.
786
787         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
788         feclearexcept.  Remove symbol versioning code.
789         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
790         symbol versioning code.
791         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
792         symbol versioning code.
793         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
794         feupdateenv.  Remove symbol versioning code.
795         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
796         fegetexceptflag.  Remove symbol versioning code.
797         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
798         fesetexceptflag.  Remove symbol versioning code.
799         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
800         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
801         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
802         (__posix_fadvise64_l32): Remove prototype.
803         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
804         code.
805
806 2014-05-13  Roland McGrath  <roland@hack.frob.com>
807
808         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
809         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
810         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
811         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
812
813 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
814
815         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
816         current working directory
817
818 2014-05-13  Roland McGrath  <roland@hack.frob.com>
819
820         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
821         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
822         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
823         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
824         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
825         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
826         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
827         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
828         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
829         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
830         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
831         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
832         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
833         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
834         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
835         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
836         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
837         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
838         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
839         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
840         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
841         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
842         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
843         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
844         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
845         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
846         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
847         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
848         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
849         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
850         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
851         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
852         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
853         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
854         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
855         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
856         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
857         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
858         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
859         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
860         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
861         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
862
863         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
864         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
865
866         * sysdeps/unix/sysv/linux/arm/Makefile
867         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
868         Add rt-aeabi_unwind_cpp_pr1.
869         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
870         Add nptl-aeabi_unwind_cpp_pr1.
871         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
872         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
873         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
874         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
875         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
876         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
877
878         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
879         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
880         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
881         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
882
883         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
884         Deconditionalize the code that was previously under [RESET_PID].
885         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
886
887         * sysdeps/generic/exit-thread.h: New file.
888         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
889         * include/unistd.h (__exit_thread): Remove declaration.
890         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
891         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
892         * csu/libc-start.c: Include <exit-thread.h>.
893         (LIBC_START_MAIN): Pass no argument to __exit_thread.
894         * nptl/pthread_create.c: Include <exit-thread.h>.
895         (start_thread): Call __exit_thread in place of __exit_thread_inline.
896         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
897         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
898         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
899         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
900         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
901         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
902         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
903         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
904         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
905         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
906         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
907         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
908         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
909         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
910         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
911         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
912
913 2014-05-13  Andreas Schwab  <schwab@suse.de>
914
915         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
916
917 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
918
919         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
920         (__ASSUME_UTIMES): Do not condition on kernel version.
921         (__ASSUME_PSELECT): Define unconditionally.
922         (__ASSUME_PPOLL): Likewise.
923         (__ASSUME_ATFCTS): Likewise.
924         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
925         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
926         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
927         (__ASSUME_UTIMENSAT): Define unconditionally.
928         (__ASSUME_PRIVATE_FUTEX): Likewise.
929         (__ASSUME_FALLOCATE): Likewise.
930         (__ASSUME_O_CLOEXEC): Likewise.
931         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
932         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
933         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
934         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
935         (__ASSUME_IN_NONBLOCK): Likewise.
936         (__ASSUME_PIPE2): Likewise.
937         (__ASSUME_EVENTFD2): Likewise.
938         (__ASSUME_SIGNALFD4): Likewise.
939         (__ASSUME_DUP3): Likewise.
940         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
941         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
942         (__ASSUME_AT_RANDOM): Likewise.
943         (__ASSUME_PREADV): Likewise.
944         (__ASSUME_PWRITEV): Likewise.
945         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
946         (__ASSUME_F_GETOWN_EX): Define unconditionally.
947         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
948         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
949         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
950         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
951         (__ASSUME_O_CLOEXEC): Define unconditionally.
952         (__ASSUME_PSELECT): Do not undefine conditionally.
953         (__ASSUME_PPOLL): Likewise.
954         (__ASSUME_ATFCTS): Likewise.
955         (__ASSUME_SET_ROBUST_LIST): Likewise.
956         (__ASSUME_UTIMENSAT): Likewise.
957         (__ASSUME_FDATASYNC): Define unconditionally.
958         * sysdeps/unix/sysv/linux/arm/kernel-features.h
959         (__ASSUME_SIGFRAME_V2): Likewise.
960         )__ASSUME_EVENTFD2): Likewise.
961         (__ASSUME_SIGNALFD4): Likewise.
962         (__ASSUME_PSELECT): Do not undefine conditionally.
963         (__ASSUME_PPOLL): Likewise.
964         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
965         (__ASSUME_PSELECT): Define unconditionally.
966         (__ASSUME_PPOLL): Likewise.
967         (__ASSUME_O_CLOEXEC): Likewise.
968         (__ASSUME_SOCK_CLOEXEC): Likewise.
969         (__ASSUME_IN_NONBLOCK): Likewise.
970         (__ASSUME_PIPE2): Likewise.
971         (__ASSUME_EVENTFD2): Likewise.
972         (__ASSUME_SIGNALFD4): Likewise.
973         (__ASSUME_DUP3): Likewise.
974         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
975         (__ASSUME_O_CLOEXEC): Likewise.
976         (__ASSUME_SOCK_CLOEXEC): Likewise.
977         (__ASSUME_IN_NONBLOCK): Likewise.
978         (__ASSUME_PIPE2): Likewise.
979         (__ASSUME_EVENTFD2): Likewise.
980         (__ASSUME_SIGNALFD4): Likewise.
981         (__ASSUME_DUP3): Likewise.
982         * sysdeps/unix/sysv/linux/mips/kernel-features.h
983         (__ASSUME_EVENTFD2): Likewise.
984         (__ASSUME_SIGNALFD4): Likewise.
985         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
986
987 2014-05-12  Andreas Schwab  <schwab@suse.de>
988
989         [BZ #16932]
990         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
991         (_nss_nis_gethostbyname4_r): Return error if item length is larger
992         than maximum RPC packet size.
993         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
994         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
995         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
996         (_nss_nis_getservbyport_r): Likewise.
997
998 2014-05-12  Will Newton  <will.newton@linaro.org>
999
1000         * malloc/Makefile (tests): Add tst-mallopt.
1001         * malloc/tst-mallopt.c: New file.
1002
1003 2014-05-09  Roland McGrath  <roland@hack.frob.com>
1004
1005         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
1006         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
1007
1008 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1009
1010         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
1011         (tst-tlsmod6.so): Likewise.
1012
1013 2014-05-09  Roland McGrath  <roland@hack.frob.com>
1014
1015         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
1016
1017 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
1018
1019         [BZ #16064]
1020         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
1021         and <dl-procinfo.h>.
1022         (__fegetenv): Save SSE state in envp->__eip if supported.
1023         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
1024         envp->__eip if supported.
1025         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
1026         and <dl-procinfo.h>.
1027         (__fesetenv): Always set __eip, __cs_selector, __opcode,
1028         __data_offset and __data_selector in environment to 0.  Set SSE
1029         state if supported.
1030         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
1031         test-fenv-sse.
1032         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
1033         -mfpmath=sse.
1034         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
1035
1036 2014-05-09  Will Newton  <will.newton@linaro.org>
1037
1038         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
1039         and libc_relro_required for ARM.
1040         * sysdeps/arm/preconfigure: Regenerate.
1041
1042 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1043             Stefan Liebler  <stli@linux.vnet.ibm.com>
1044
1045         * config.make.in (enable-lock-elision): New Makefile variable.
1046         * configure.ac: Likewise.
1047         * configure: Regenerate.
1048         * sysdeps/s390/configure.ac:
1049         Add check for gcc transactions support.
1050         * sysdeps/s390/configure: Regenerate.
1051         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
1052         Build elision files if enabled.
1053         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
1054         Add lock elision support for s390.
1055         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
1056         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
1057         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
1058         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
1059         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
1060         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
1061         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
1062         Likewise.
1063         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
1064         Likewise.
1065         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
1066         Likewise.
1067         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
1068         Likewise.
1069         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
1070         (__lll_timedlock_elision, __lll_lock_elision)
1071         (__lll_unlock_elision, __lll_trylock_elision)
1072         (lll_timedlock_elision, lll_lock_elision)
1073         (lll_unlock_elision, lll_trylock_elision): Add.
1074         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
1075         (pthread_mutex_t): Add lock elision support for s390.
1076
1077 2014-05-14  Wilco  <wdijkstr@arm.com>
1078
1079         * sysdeps/arm/fclrexcpt.c: Cleanup.
1080         * sysdeps/arm/fedisblxcpt.c: Cleanup.
1081         * sysdeps/arm/feenablxcpt.c: Cleanup.
1082         * sysdeps/arm/fegetenv.c: Cleanup.
1083         * sysdeps/arm/fegetexcept.c: Cleanup.
1084         * sysdeps/arm/fegetround.c: Cleanup.
1085         * sysdeps/arm/feholdexcpt.c: Cleanup.
1086         * sysdeps/arm/fesetenv.c: Cleanup.
1087         * sysdeps/arm/fesetround.c: Cleanup.
1088         * sysdeps/arm/feupdateenv.c: Cleanup.
1089         * sysdeps/arm/fgetexcptflg.c: Cleanup.
1090         * sysdeps/arm/fraiseexcpt.c: Cleanup.
1091         * sysdeps/arm/fsetexcptflg.c: Cleanup.
1092         * sysdeps/arm/ftestexcept.c: Cleanup.
1093         * sysdeps/arm/get-rounding-mode.h: Cleanup.
1094         * sysdeps/arm/setfpucw.c: Cleanup.
1095
1096 2014-05-09  Will Newton  <will.newton@linaro.org>
1097
1098         * sysdeps/arm/armv7/strcmp.S: New file.
1099         * NEWS: Mention addition of ARMv7 optimized strcmp.
1100
1101 2014-05-08  Roland McGrath  <roland@hack.frob.com>
1102
1103         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
1104         look for %.ac rather than %.in.
1105
1106         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
1107         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
1108         * sysdeps/mach/hurd/configure: Regenerated.
1109         * sysdeps/unix/sysv/linux/configure: Regenerated.
1110
1111         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
1112
1113 2014-05-07  Steve Ellcey  <sellcey@mips.com>
1114
1115         [BZ# 16922]
1116         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
1117         (LONG_SUB): Ditto.
1118         (PTR_SUB): Ditto.
1119
1120 2014-05-07  Andreas Schwab  <schwab@suse.de>
1121
1122         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
1123         when skipping over non-matching result from nscd.
1124
1125 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
1126
1127         [BZ #16876]
1128         * nptl/sockperf.c (client): Check socket return value.
1129
1130         [BZ #16877]
1131         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
1132         nscd security class.
1133
1134 2014-05-06  Roland McGrath  <roland@hack.frob.com>
1135
1136         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
1137         * sysdeps/arm/unwind.h: ... here.
1138
1139 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
1140
1141         [BZ# 16916]
1142         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
1143         Define.
1144
1145 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
1146
1147         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
1148         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
1149         multiarch strncpy for PPC64.
1150         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
1151         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
1152         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
1153         multiarch optimizations.
1154         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1155         (__libc_ifunc_impl_list): Likewise.
1156         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
1157         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
1158         multiarch stpncpy for PPC64.
1159         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
1160         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
1161
1162 2014-05-06  Andreas Schwab  <schwab@suse.de>
1163
1164         [BZ #16912]
1165         * gmon/mcount.c (_MCOUNT_DECL): Use
1166         atomic_compare_and_exchange_bool_acq instead of
1167         catomic_compare_and_exchange_bool_acq.
1168
1169 2014-05-05  Roland McGrath  <roland@hack.frob.com>
1170
1171         * elf/Makefile (others, install-bin): Remove pldd.
1172         (pldd-modules): Variable removed.
1173         ($(objpfx)pldd): Target removed.
1174         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
1175         (others, install-bin): Append pldd here.
1176         ($(objpfx)pldd): New target.
1177
1178         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
1179         to 0, so the first #if test emitted later doesn't see it undefined.
1180         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
1181         * sysdeps/gnu/errlist.c: Regenerated.
1182
1183 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1184
1185         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
1186         [libc_hidden_builtin_def]: Define to empty value.
1187         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
1188         [libc_hidden_builtin_def]: Likewise.
1189         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
1190         [libc_hidden_builtin_def]: Likewise.
1191         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
1192         [libc_hidden_builtin_def]: Likewise.
1193         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
1194         __redirect_memcpy and define ifunc as default hidden symbol.
1195         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
1196         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
1197
1198 2014-05-04  Adam Conrad  <adconrad@0c3.net>
1199
1200         * locale/iso-4217.def: Reintroduce XDR currency.
1201
1202 2014-05-04  Allan McRae  <allan@archlinux.org>
1203
1204         * po/eo.po: Update Esperanto translation from translation project.
1205
1206 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
1207
1208         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
1209         and FEATURE_INDEX_MAX to 1.
1210         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
1211
1212 2014-05-01  Steve Ellcey  <sellcey@mips.com>
1213
1214         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
1215         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
1216         * iconvdata/big5.c (ONE_DIRECTION): Define.
1217         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
1218         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
1219         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
1220         * iconvdata/cp932.c (ONE_DIRECTION): Define.
1221         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
1222         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
1223         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
1224         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
1225         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
1226         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
1227         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
1228         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
1229         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
1230         * iconvdata/gbk.c (ONE_DIRECTION): Define.
1231         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
1232         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
1233         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
1234         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
1235         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
1236         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
1237         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
1238         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
1239         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
1240         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
1241         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
1242         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
1243         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
1244         * iconvdata/iso646.c (ONE_DIRECTION): Define.
1245         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
1246         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
1247         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
1248         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
1249         * iconvdata/johab.c (ONE_DIRECTION): Define.
1250         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
1251         * iconvdata/sjis.c (ONE_DIRECTION): Define.
1252         * iconvdata/t.61.c (ONE_DIRECTION): Define.
1253         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
1254         * iconvdata/tscii.c (ONE_DIRECTION): Define.
1255         * iconvdata/uhc.c (ONE_DIRECTION): Define.
1256         * iconvdata/unicode.c (ONE_DIRECTION): Define.
1257         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
1258         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
1259         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
1260
1261 2014-05-01  Roland McGrath  <roland@hack.frob.com>
1262
1263         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
1264         (_IO_JUMPS_OFFSET): Define to 0.
1265
1266         * nptl/sysdeps/pthread/bits/libc-lock.h
1267         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
1268         (__libc_lock_define_initialized_recursive): Always define using
1269         initializer.  Modern compilers treat uninitialized (implicit zero) and
1270         explicit zero initializers the same (i.e. put the datum in bss).
1271
1272 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
1273
1274         * nscd/nscd-client.h: Include <string.h>.
1275
1276 2014-05-01  David S. Miller  <davem@davemloft.net>
1277
1278         [BZ #16885]
1279         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
1280         multiple zero bytes exist at the end of a string.
1281         Reported by Aurelien Jarno <aurelien@aurel32.net>
1282
1283         * string/test-strcmp.c (check): Add explicit test for situations where
1284         there are multiple zero bytes after the first.
1285
1286 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
1287
1288         [BZ #16890]
1289         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
1290         when compiling wprintf.
1291         * stdio-common/tstdiomisc.c (t3): New function.
1292         (main): Call it.
1293
1294 2014-05-01  Steve Ellcey  <sellcey@mips.com>
1295
1296         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
1297         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
1298         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
1299         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
1300
1301 2014-05-01  Steve Ellcey  <sellcey@mips.com>
1302
1303         * stdlib/longlong.h: Updated from GCC.
1304
1305 2014-05-01  Will Newton  <will.newton@linaro.org>
1306             Bernard Ogden  <bernie.ogden@linaro.org>
1307
1308         * NEWS: Update fixed bug list.
1309
1310         [BZ #15119]
1311         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
1312
1313 2014-04-30  David S. Miller  <davem@davemloft.net>
1314
1315         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
1316         (libc_feholdexcept_setround_sparc_ctx): New function.
1317         (libc_fesetenv_sparc_ctx): Likewise.
1318         (libc_feupdateenv_sparc_ctx): Likewise.
1319         (libc_feholdsetround_sparc_ctx): Likewise.
1320         (libc_feholdexcept_setround_ctx): Define.
1321         (libc_feholdexcept_setroundf_ctx): Likewise.
1322         (libc_feholdexcept_setroundl_ctx): Likewise.
1323         (libc_fesetenv_ctx): Likewise.
1324         (libc_fesetenvf_ctx): Likewise.
1325         (libc_fesetenvl_ctx): Likewise.
1326         (libc_feupdateenv_ctx): Likewise.
1327         (libc_feupdateenvf_ctx): Likewise.
1328         (libc_feupdateenvl_ctx): Likewise.
1329         (libc_feresetround_ctx): Likewise.
1330         (libc_feresetroundf_ctx): Likewise.
1331         (libc_feresetroundl_ctx): Likewise.
1332         (libc_feholdsetround_ctx): Likewise.
1333         (libc_feholdsetroundf_ctx): Likewise.
1334         (libc_feholdsetroundl_ctx): Likewise.
1335
1336         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
1337         with __USE_GNU instead of XOPEN cpp guards.
1338
1339         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
1340         0.
1341
1342         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
1343         with XOPEN cpp guards.
1344
1345 2014-04-30  Julian Brown  <julian@codesourcery.com>
1346
1347         [BZ #16888]
1348         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
1349         handling.
1350
1351 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
1352
1353         [BZ #9894]
1354         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
1355         Change to 2.6.32.
1356         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
1357         * sysdeps/unix/sysv/linux/configure: Regenerated.
1358         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
1359         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
1360         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
1361         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
1362         * README: Update reference to required Linux kernel version.
1363         * manual/install.texi (Linux): Update reference to required Linux
1364         kernel headers version.
1365         * INSTALL: Regenerated.
1366
1367         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
1368         header inclusion.
1369         [POSIX] (limits.h): Likewise.
1370         [POSIX] (math.h): Likewise.
1371         [POSIX] (sys/wait.h): Likewise.
1372         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
1373         function.
1374         [POSIX] (stddef.h): Do not allow header inclusion.
1375
1376 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1377
1378         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
1379
1380 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
1381
1382         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
1383         Return immediately after lll_futex_wake.
1384
1385 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1386
1387         [BZ #16791]
1388         * nscd/nscd-client.h (datahead_init_common): Initialize entire
1389         structure.
1390         (datahead_init_pos): Call datahead_init_common early.
1391         (datahead_init_neg): Likewise.
1392
1393         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
1394         datahead_init_neg): New functions.
1395         * nscd/aicache.c (addhstaiX): Use them.
1396         * nscd/grpcache.c (cache_addgr): Likewise.
1397         * nscd/hstcache.c (cache_addhst): Likewise.
1398         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1399         * nscd/netgroupcache.c (do_notfound): Likewise.
1400         (addgetnetgrentX): Likewise.
1401         (addinnetgrX): Likewise.
1402         * nscd/pwdcache.c (cache_addpw): Likewise.
1403         * nscd/servicescache.c (cache_addserv): Likewise.
1404
1405 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1406             Atsushi Onoe  <atsushi@onoe.org>
1407
1408         [BZ #14308]
1409         [BZ #12994]
1410         [BZ #13651]
1411         * resolv/res_query.c (__libc_res_nsearch): Return if at least
1412         one response is valid.
1413         * resolv/res_send.c (send_dg): Check for validity of other
1414         response if the current response is a referral.
1415
1416 2014-04-29  Steve Ellcey  <sellcey@mips.com>
1417
1418         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
1419
1420 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
1421
1422         [BZ #16823]
1423         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
1424         Always divide by positive zero when computing -Inf result.
1425         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
1426         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
1427
1428 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1429
1430         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
1431         FPSCR if value do not change.
1432         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1433         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
1434         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
1435         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
1436         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
1437         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
1438         function.
1439
1440 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
1441
1442         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
1443         * sysdeps/unix/sysv/linux/hppa: Move directory from
1444         ports/systeps/unix/sysv/linux/hppa.
1445         * README: Update listing for hppa-*-linux-gnu.
1446
1447 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
1448
1449         [BZ #16754]
1450         * manual/stdio.texi (Hook functions): Fix types of stream hook
1451         functions.
1452         [BZ #16854]
1453         * socket/sys/socket.h: Fix typo in comment.
1454
1455 2014-04-28  Wilco  <wdijkstr@arm.com>
1456
1457         * sysdeps/arm/fenv_private.h: New file.
1458         * sysdeps/arm/math_private.h: New file.
1459         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
1460
1461 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
1462
1463         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
1464         with __int128_t.
1465         (La_x86_64_retval): Likewise.
1466
1467 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
1468
1469         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
1470         fpsr if value didn't change.
1471         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
1472         to fpcr if value didn't change.
1473         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
1474         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
1475         fpsr or fpcr if value didn't change.
1476         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
1477         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
1478         fpcr if value didn't change.
1479         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
1480         to fpsr if value didn't change.
1481
1482 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1483
1484         * nptl/tst-sem3.c: Use test-skeleton.c
1485         (main): Rename to do_test.  Use return instead of
1486         exit.
1487         * nptl/tst-sem4.c: Use test-skeleton.c
1488         (main): Rename to do_test.
1489
1490 2014-04-22  David S. Miller  <davem@davemloft.net>
1491
1492         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
1493         (struct sigaction): New struct member __glibc_reserved0, change
1494         type of sa_flags to int.
1495
1496 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
1497
1498         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
1499         (COUNT_LEADING_ZEROS_0): Define for AArch64.
1500
1501 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1502
1503         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
1504         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
1505
1506 2014-04-22  Will Newton  <will.newton@linaro.org>
1507             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
1508
1509         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
1510         (__longjmp): Add longjmp and longjmp_target SystemTap
1511         probes.
1512         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
1513         (__sigsetjmp): Add setjmp SystemTap probe.
1514
1515 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
1516
1517         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
1518         match manual order.
1519
1520 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1521
1522         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
1523
1524         * sysdeps/powerpc/fpu/fenv_private.h
1525         (libc_feholdexcept_setroundl_ctx): Define to
1526         libc_feholdexcept_setround_ppc_ctx.
1527         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
1528         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
1529         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
1530         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
1531
1532 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
1533
1534         * sysdeps/aarch64/math-tests.h: New file.
1535
1536 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
1537
1538         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
1539         New.
1540         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1541         Check and set bit_AVX2_Usable.
1542         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
1543         macro.
1544         (bit_AVX2): Likewise.
1545         (index_AVX2_Usable): Likewise.
1546         (CPUID_AVX2): Likewise.
1547         (HAS_AVX2): Likewise.
1548
1549 2014-04-17  Will Newton  <will.newton@linaro.org>
1550
1551         * manual/setjmp.texi (System V contexts): Add note that
1552         calling setcontext on a context created by a call to a
1553         signal handler is undefined.  Update text to note that
1554         setcontext from a signal handler is possible but not
1555         recommended.
1556
1557         [BZ #16629]
1558         * stdlib/tst-setcontext.c: Include signal.h.
1559         (main): Check that the signal stack before and
1560         after swapcontext is the same.
1561
1562         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
1563         Re-implement to restore registers in user code and avoid
1564         rt_sigreturn system call.
1565
1566 2014-04-17  Wilco  <wdijkstr@arm.com>
1567
1568         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
1569         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
1570         * math/test-fenv.c: Skip exception trap tests on targets which only
1571         support non-stop mode.
1572
1573 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
1574             Wilco Dijkstra  <wilco.dijkstra@arm.com>
1575
1576         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
1577         (libc_feholdsetround_aarch64_ctx)
1578         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
1579         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
1580         (libc_feresetround_ctx, libc_feresetroundf_ctx)
1581         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
1582         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
1583         (libc_feresetround_noexl_ctx): Define.
1584
1585 2014-04-16  Richard Henderson  <rth@redhat.com>
1586
1587         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
1588
1589         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
1590         unwind tables.
1591
1592         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
1593         const from the non-libc, non-ldso copy.
1594
1595         * sysdeps/alpha/libm-test-ulps: Regenerate.
1596
1597 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
1598             Wilco Dijkstra  <wilco.dijkstra@arm.com>
1599
1600         * sysdeps/aarch64/fpu/math_private.h: New file.
1601
1602 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1603
1604         * sysdeps/aarch64/libm-test-ulps: Regenerate.
1605
1606 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
1607
1608         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
1609         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
1610         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1611         Intel MPX bound registers before _dl_profile_fixup.
1612         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
1613         registers after _dl_profile_fixup.  Save and restore bound
1614         registers bnd0/bnd1 when calling _dl_call_pltexit.
1615         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
1616         (LR_BND_OFFSET): Likewise.
1617         (LRV_BND0_OFFSET): Likewise.
1618         (LRV_BND1_OFFSET): Likewise.
1619
1620 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1621
1622         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
1623         to...
1624         * sysdeps/mach/hurd/i386/tls.h: ... here.
1625         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
1626         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
1627         fields.
1628
1629 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1630
1631         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
1632
1633 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
1634
1635         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
1636
1637 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
1638
1639         [BZ #14770]
1640         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
1641         * sysdeps/s390/configure: Regenerate.
1642
1643         [BZ #16824]
1644         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
1645         Set round-to-nearest internally to reduce error accumulation.
1646
1647 2014-04-16  Alan Modra  <amodra@gmail.com>
1648
1649         [BZ #16740]
1650         [BZ #16619]
1651         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
1652         * math/libm-test.inc (frexp_test_data): Add tests.
1653         * NEWS: Update fixed bug list.
1654
1655 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1656
1657         * benchtests/Makefile: Depend on libraries in build directory.
1658         (bench-math): Separate out math tests.
1659         (bench-pthread): Separate out pthread tests.
1660         (bench): Include math and pthread tests.
1661
1662 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
1663
1664         [BZ #16831]
1665         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
1666         _dl_debug_initialize.
1667
1668         * configure.ac: Remove SELinux header check.
1669         * configure: Regenerate.
1670         * nscd/selinux.c (perms): Array of const char* to permission names.
1671         (nscd_request_avc_has_perm): Call security_deny_unknown to find
1672         default policy. Call string_to_security_class and string_to_av_perm to
1673         translate strings. Enforce default policy and call avs_has_perm with
1674         results of translated strings.
1675
1676 2014-04-13  David S. Miller  <davem@davemloft.net>
1677
1678         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1679
1680 2014-04-12  Allan McRae  <allan@archlinux.org>
1681
1682         [BZ #16838]
1683         * manual/string.texi (Collation Functions): Fix qsort argument
1684         order in example.
1685         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
1686
1687 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
1688
1689         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
1690         Make the test a no-op if there are no exceptions defined.
1691
1692 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
1693
1694         * elf/Makefile (tests): make tst-dlopen-aout conditional on
1695         enable-hardcoded-path-in-tests
1696
1697 2014-04-11  Will Newton  <will.newton@linaro.org>
1698
1699         * benchtests/Makefile (extra-objs): Add json-lib.o.
1700         (bench-func): Tidy up JSON output.
1701         * benchtests/bench-skeleton.c: Include json-lib.h.
1702         (main): Use JSON library functions to do output of
1703         benchmark results.
1704         * benchtests/bench-timing-type.c (main): Output the
1705         timing type simply, leaving formatting to the user.
1706         * benchtests/json-lib.c: New file.
1707         * benchtests/json-lib.h: Likewise.
1708
1709 2014-04-11  Torvald Riegel  <triegel@redhat.com>
1710
1711         [BZ #15215]
1712         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
1713         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
1714         memory barriers.  Add comments.
1715         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
1716         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
1717         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
1718         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
1719         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
1720         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
1721
1722 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
1723
1724         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
1725         * sysdeps/s390/s390-64/configure.ac: ... this ...
1726         * sysdeps/s390/configure.ac: ... to here.
1727         * sysdeps/s390/s390-32/configure: Delete file.
1728         * sysdeps/s390/s390-64/configure: Delete file.
1729         * sysdeps/s390/configure: Regenerate.
1730
1731 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
1732
1733         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
1734
1735 2014-04-11  Will Newton  <will.newton@linaro.org>
1736
1737         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
1738         to zero if it is not defined elsewhere.  (mtrim): Test
1739         the value of MALLOC_DEBUG with #if rather than #ifdef.
1740
1741 2014-04-10 Torvald Riegel  <triegel@redhat.com>
1742
1743         * benchtests/pthread_once-inputs: New file.
1744         * benchtests/pthread_once-source.c: New file.
1745         * benchtests/README: Update documentation.
1746
1747 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
1748             H.J. Lu  <hongjiu.lu@intel.com>
1749
1750         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
1751         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
1752         * sysdeps/x86_64/configure: Regenerated.
1753         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
1754         macro.
1755         (REGISTER_SAVE_RAX): Likewise.
1756         (REGISTER_SAVE_RCX): Likewise.
1757         (REGISTER_SAVE_RDX): Likewise.
1758         (REGISTER_SAVE_RSI): Likewise.
1759         (REGISTER_SAVE_RDI): Likewise.
1760         (REGISTER_SAVE_R8): Likewise.
1761         (REGISTER_SAVE_R9): Likewise.
1762         (REGISTER_SAVE_BND0): Likewise.
1763         (REGISTER_SAVE_BND1): Likewise.
1764         (REGISTER_SAVE_BND2): Likewise.
1765         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
1766         bound registers when calling _dl_fixup.
1767
1768 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1769
1770         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
1771         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
1772         of its definition.
1773         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
1774         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
1775         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
1776         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
1777         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
1778         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
1779         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
1780
1781 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
1782
1783         [BZ #15514]
1784         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
1785         pathconf(_PC_NAME_MAX).
1786
1787 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1788
1789         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
1790         Remove macro usage.
1791         (__PTHREAD_SPINS): Move definition to ...
1792         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
1793         (__PTHREAD_SPINS): ... here.
1794         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
1795         (__PTHREAD_SPIN): Likewise.
1796         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
1797         (__PTHREAD_SPIN): Likewise.
1798         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
1799         (__PTHREAD_SPIN): Likewise.
1800         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
1801         (__PTHREAD_SPIN): Likewise.
1802         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
1803         (__PTHREAD_SPIN): Likewise.
1804         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
1805         (__PTHREAD_SPIN): Likewise.
1806         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
1807         (__PTHREAD_SPIN): Likewise.
1808         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
1809         (__PTHREAD_SPIN): Likewise.
1810         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
1811         (__PTHREAD_SPIN): Likewise.
1812         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
1813         (__PTHREAD_SPIN): Likewise.
1814         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
1815         (__PTHREAD_SPIN): Likewise.
1816         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
1817         (__PTHREAD_SPIN): Likewise.
1818
1819         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
1820         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
1821         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
1822         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
1823         imply folder.
1824         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
1825         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1826         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
1827         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
1828         correct imply path.
1829         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
1830         strlen symbol for non multi-arch builds.
1831         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
1832         missing hidden_def and weak_alias.
1833
1834 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
1835
1836         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
1837
1838 2014-04-07  Will Newton  <will.newton@linaro.org>
1839
1840         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
1841         and contents.  [!_LIBC] Remove #ifndef and contents.
1842         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
1843         * string/memccpy.c (__memccpy): Use ANSI prototype.
1844         * string/memfrob.c (memfrob): Likewise.
1845         * string/strcoll.c (STRCOLL): Likewise.
1846         * string/strlen.c (strlen): Likewise.
1847         * string/strtok.c (STRTOK): Likewise.
1848         * string/strcat.c: Remove unused #include of memcopy.h.
1849         (strcat): Use ANSI prototype.
1850         * string/strchr.c: Remove unused #include of memcopy.h.
1851         (strchr): Use ANSI prototype.
1852         * string/strcmp.c: Remove unused #include of memcopy.h.
1853         (strcmp): Use ANSI prototype.
1854         * string/strcpy.c: Remove unused #include of memcopy.h.
1855         (strcpy): Use ANSI prototype.
1856
1857 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1858
1859         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
1860         * config.make.in (config-extra-cppflags): Set it from
1861         libc_extra_cppflags.
1862         * configure.ac (libc_extra_cflags): Make it accumulate over
1863         configure fragments.
1864         (libc_extra_cppflags): New flag.
1865         * configure. Regenerate.
1866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
1867         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
1868         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
1869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
1870
1871         [BZ #16815]
1872         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
1873         result for FE_DOWNWARD rounding mode.
1874         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1875         Likewise.
1876         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1877
1878 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
1879
1880         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
1881         in function argument name.
1882
1883 2014-04-03  David Svoboda  <svoboda@cert.org>
1884
1885         [BZ #5666]
1886         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
1887         explicitly.
1888
1889 2014-04-03  Roland McGrath  <roland@hack.frob.com>
1890
1891         * elf/dl-unmap-segments.h: New file.
1892         * sysdeps/generic/ldsodefs.h
1893         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
1894         * elf/dl-close.c: Include <dl-unmap-segments.h>.
1895         * elf/dl-fptr.c: Likewise.
1896         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
1897         * sysdeps/aarch64/tlsdesc.c: Likewise.
1898         * sysdeps/arm/tlsdesc.c: Likewise.
1899         * sysdeps/i386/tlsdesc.c: Likewise.
1900         * sysdeps/tile/dl-runtime.c: Likewise.
1901         * sysdeps/x86_64/tlsdesc.c: Likewise.
1902         * elf/dl-load.h: New file.
1903         * elf/dl-load.c: Include it.
1904         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
1905         Macros moved to dl-load.h.
1906         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
1907         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
1908         Use _dl_unmap_segments in place of __munmap.
1909         Break out segment-mapping loop into ...
1910         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
1911
1912 2014-04-03  Will Newton  <will.newton@linaro.org>
1913
1914         * elf/dl-lookup.c (do_lookup_x): Remove comment
1915         referring to nested function and move variable
1916         declarations down to before first use.
1917
1918 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
1919
1920         [BZ #16799]
1921         [BZ #16800]
1922         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
1923         with 0 numerator.
1924         * math/s_catanf.c (__catanf): Likewise.
1925         * math/s_catanh.c (__catanh): Likewise.
1926         * math/s_catanhf.c (__catanhf): Likewise.
1927         * math/s_catanhl.c (__catanhl): Likewise.
1928         * math/s_catanl.c (__catanl): Likewise.
1929         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
1930         by positive zero when computing -Inf result.
1931         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
1932         (catanh_test): Likewise.
1933         * sysdeps/i386/fpu/libm-test-ulps: Update.
1934         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1935
1936         [BZ #16789]
1937         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
1938         instead of using underflowing value in computing result.
1939         * math/s_clog10.c (__clog10): Likewise.
1940         * math/s_clog10f.c (__clog10f): Likewise.
1941         * math/s_clog10l.c (__clog10l): Likewise.
1942         * math/s_clogf.c (__clogf): Likewise.
1943         * math/s_clogl.c (__clogl): Likewise.
1944         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
1945         (clog10_test): Likewise.
1946         * sysdeps/i386/fpu/libm-test-ulps: Update.
1947         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1948
1949 2014-04-02  Alan Modra  <amodra@gmail.com>
1950
1951         [BZ #16739]
1952         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
1953         output when value is near a power of two.  Use int64_t for lx and
1954         remove casts.  Use decimal rather than hex exponent constants.
1955         Don't use long double multiplication when double will suffice.
1956         * math/libm-test.inc (nextafter_test_data): Add tests.
1957         * NEWS: Add 16739 and 16786 to bug list.
1958
1959         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
1960
1961         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
1962
1963 2014-04-01  Will Newton  <will.newton@linaro.org>
1964
1965         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
1966         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
1967
1968 2014-04-01  Florian Weimer  <fweimer@redhat.com>
1969
1970         [BZ #13347]
1971         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
1972         * nptl/tst-setuid2.c: New file.
1973         * nptl/Makefile (xtests): Add tst-setuid2.
1974
1975 2014-04-01  Alan Modra  <amodra@gmail.com>
1976
1977         [BZ #16786]
1978         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
1979
1980 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
1981
1982         [BZ #6803]
1983         [BZ #6804]
1984         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
1985         set errno as appropriate.
1986         * math/w_scalbf.c (__scalbf): Likewise.
1987         * math/w_scalbl.c (__scalbl): Likewise.
1988         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
1989         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
1990         * math/libm-test.inc (scalb_test_data): Add errno expectations.
1991         Add more NaN tests.
1992
1993         [BZ #16349]
1994         * math/w_atan2.c: Include <errno.h>.
1995         (__atan2): Set errno for result underflowing to zero.
1996         * math/w_atan2f.c: Include <errno.h>.
1997         (__atan2f): Set errno for result underflowing to zero.
1998         * math/w_atan2l.c: Include <errno.h>.
1999         (__atan2l): Set errno for result underflowing to zero.
2000         * math/auto-libm-test-in: Don't allow missing errno for some atan2
2001         tests.
2002         * math/auto-libm-test-out: Regenerated.
2003
2004 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2005
2006         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
2007         Encode instruction correctly in little endian.
2008         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
2009         Likewise.
2010         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
2011         Likewise.
2012         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
2013         Likewise.
2014         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
2015         Likewise.
2016
2017 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
2018
2019         [BZ #9894]
2020         * sysdeps/unix/sysv/linux/kernel-features.h
2021         [__sparc__ && !__arch64__ && !__sparc_v9__]
2022         (__ASSUME_SET_ROBUST_LIST): Do not define.
2023         [__sparc__ && !__arch64__ && !__sparc_v9__]
2024         (__ASSUME_FUTEX_LOCK_PI): Likewise.
2025         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
2026         Likewise.
2027         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2028         (__ASSUME_FUTEX_LOCK_PI): Undefine.
2029         (__ASSUME_REQUEUE_PI): Likewise.
2030         (__ASSUME_SET_ROBUST_LIST): Likewise.
2031         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2032         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
2033         Undefine.
2034         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2035         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
2036         Likewise.
2037         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
2038         Likewise.
2039         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
2040         Likewise.
2041         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2042         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
2043         Undefine.
2044         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
2045         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
2046         Likewise.
2047
2048         [BZ #16648]
2049         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2050         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
2051         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
2052
2053 2014-03-31  Will Newton  <will.newton@linaro.org>
2054
2055         * benchtests/Makefile (bench): Add ffs and ffsll to list
2056         of tests.
2057         * benchtests/ffs-inputs: New file.
2058         * benchtests/ffsll-inputs: Likewise.
2059
2060 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
2061
2062         [BZ #16770]
2063         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
2064         too large before casting to int.
2065         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
2066         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
2067         * math/libm-test.inc (scalb_test_data): Add more tests.
2068
2069 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2070
2071         * benchtests/Makefile (DETAILED_OPT): New make option.
2072         (bench-func): Run benchmark program with -d if DETAILED_OPT is
2073         set.
2074         * benchtests/bench-skeleton.c: Include stdbool.h.
2075         (main): Store and print timings per input.
2076         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
2077         member to each argument value.
2078         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
2079         (_print_arg_data): Initialize per-input timing to 0.
2080
2081         * benchtests/Makefile (timing-type): New binary.
2082         (bench-clean): Also remove bench-timing-type.
2083         (bench): New target for timing-type.
2084         (bench-func): Print output in JSON format.
2085         * benchtests/bench-skeleton.c (main): Print output in JSON
2086         format.
2087         * benchtests/bench-timing-type.c: New file.
2088         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
2089         (TIMING_PRINT_STATS): Remove.
2090         * benchtests/scripts/bench.py (_print_arg_data): Store variant
2091         name separately.
2092
2093         * benchtests/bench-modf.c: Remove.
2094         * benchtests/modf-inputs: New inputs file.
2095
2096 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
2097
2098         [BZ #16362]
2099         * math/s_clog10.c (M_PI_LOG10E): New macro.
2100         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
2101         imaginary parts are 0.
2102         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
2103         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
2104         imaginary parts are 0.
2105         * math/s_clog10l.c (M_PI_LOG10El): New macro.
2106         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
2107         imaginary parts are 0.
2108         * math/libm-test.inc (clog10_test_data): Update expected results
2109         for when real and imaginary parts are 0.
2110
2111 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
2112
2113         * elf/dl-load.c: Finish conversion of __builtin_expect into
2114         __glibc_{un}likely.
2115
2116 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
2117
2118         [BZ #16348]
2119         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
2120         1+x for argument with exponent below -67.
2121         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
2122         Likewise.
2123         * math/auto-libm-test-in: Add more tests of exp.
2124         * math/auto-libm-test-out: Regenerated.
2125
2126 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2127
2128         [BZ #16759]
2129         * inet/getnetgrent_r.c (get_nonempty_val): New function.
2130         (nscd_getnetgrent): Use it.
2131
2132         [BZ #16760]
2133         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
2134         of stpcpy.
2135
2136 2014-03-27  Andi Kleen  <ak@linux.intel.com>
2137
2138         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
2139         (lll_robust_lock, lll_cond_lock, lll_timedlock)
2140         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
2141         (lll_robust_unlock): Remove out of line section. Use cfi
2142         intrinsics.
2143         (LLL_STUB_UNWIND_INFO*): Remove.
2144         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
2145         (lll_robust_lock, lll_cond_lock, lll_timedlock)
2146         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
2147         (lll_robust_unlock): Remove out of line section. Use cfi
2148         intrinsics.
2149         (LLL_STUB_UNWIND_INFO*): Remove.
2150
2151 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2152
2153         [BZ #16758]
2154         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
2155         blank values.
2156
2157 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
2158
2159         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
2160
2161 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
2162
2163         [BZ #16198]
2164         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
2165         fnstenv.
2166         * math/test-fenv-preserve.c: New file.
2167         * math/Makefile (tests): Add test-fenv-preserve.
2168
2169 2014-03-26  Will Newton <will.newton@linaro.org>
2170
2171         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
2172
2173 2014-03-25  Roland McGrath  <roland@hack.frob.com>
2174
2175         * scripts/versionlist.awk: Partition the version sets and emit all
2176         GLIBC_* (sorted) before all others (sorted).
2177
2178 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
2179
2180         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
2181         GLIBC_2.2.5 version.
2182
2183 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2184
2185         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
2186         calls.
2187
2188         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
2189         previous change.
2190
2191         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2192
2193 2014-03-25  Andreas Schwab  <schwab@suse.de>
2194
2195         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
2196         label to be used after in6ailist is initialized.
2197
2198 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2199
2200         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
2201         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
2202
2203 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
2204
2205         [BZ #16357]
2206         [BZ #16599]
2207         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
2208         min_plus_half.
2209         (fp_formats): Update initializers.
2210         (init_fp_formats): Initialize new field.
2211         (output_for_one_input_case): Allow underflow for results up to
2212         min_plus_half.
2213         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
2214         * math/auto-libm-test-in: Don't mark some underflows from asin and
2215         atanh as spurious.
2216         * math/auto-libm-test-out: Regenerated.
2217         * sysdeps/i386/fpu/libm-test-ulps: Update.
2218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2219
2220 2014-03-25  Andreas Schwab  <schwab@suse.de>
2221
2222         * libio/Makefile (tst-ftell-partial-wide-ENV)
2223         (tst-ftell-active-handler-ENV): Define.
2224
2225 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
2226
2227         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
2228
2229 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
2230
2231         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
2232
2233 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
2234
2235         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
2236         * sysdeps/x86_64/fpu/multiarch/e_exp.c
2237         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
2238
2239 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
2240
2241         [BZ #16634]
2242         * elf/dl-load.c (open_verify): Add mode parameter.
2243         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
2244         (open_path): Change from boolean 'secure' to complete flag 'mode'
2245         (_dl_map_object): Adjust.
2246         * elf/Makefile (tests): Add tst-dlopen-aout.
2247         * elf/tst-dlopen-aout.c: New test.
2248
2249 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
2250
2251         [BZ #16714]
2252         * sysdeps/unix/sysv/linux/s390/bits/stat.h
2253         (struct stat): Rename member pad0 to __glibc_reserved0.
2254
2255         [BZ #16712]
2256         * sysdeps/s390/s390-32/bits/wordsize.h
2257         (__WORDSIZE32_SIZE_ULONG): New define.
2258         * sysdeps/s390/s390-64/bits/wordsize.h
2259         (__WORDSIZE32_SIZE_ULONG): Likewise.
2260         * sysdeps/generic/stdint.h (SIZE_MAX):
2261         Define as UL if __WORDSIZE32_SIZE_ULONG.
2262
2263         [BZ #16713]
2264         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
2265         (__glibc_reserved0): New variable.
2266         (sa_flags): Change type to int.
2267
2268         * posix/Makefile (before-compile): Use += before-compile instead
2269         of a :=.
2270
2271         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
2272         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
2273
2274 2014-03-20  Andreas Schwab  <schwab@suse.de>
2275
2276         [BZ #16743]
2277         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
2278         non-matching result from nscd.
2279
2280 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2281
2282         * scripts/bench.py: Moved to ...
2283         * benchtests/scripts/bench.py: ... here.
2284         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
2285
2286 2014-03-24  Andreas Schwab  <schwab@suse.de>
2287
2288         [BZ #16002]
2289         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
2290         alloca_account and account alloca use for struct in6ailist.
2291
2292 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
2293
2294         [BZ #16284]
2295         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
2296         rounding mode to recompute results that overflow to infinity or
2297         underflow to zero.
2298         * math/auto-libm-test-in: Don't mark tests as expected to fail for
2299         bug 16284.
2300         * math/auto-libm-test-out: Regenerated.
2301         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
2302         (ccosh_test): Likewise.
2303         (csin_test_data): Use plus_oflow.
2304         (csin_test): Use ALL_RM_TEST.
2305         (csinh_test_data): Use plus_oflow.
2306         (csinh_test): Use ALL_RM_TEST.
2307         * sysdeps/i386/fpu/libm-test-ulps: Update.
2308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2309
2310 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
2311
2312         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
2313         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
2314         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
2315
2316         [BZ #16731]
2317         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
2318         when x - 1 is zero.
2319         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
2320         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
2321         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
2322         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
2323         argument is 1.
2324         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
2325         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
2326         zero.
2327         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
2328         * sysdeps/i386/fpu/libm-test-ulps: Update.
2329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2330
2331 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2332
2333         * scripts/bench.pl: Remove file.
2334         * scripts/bench.py: New benchmark script.
2335         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
2336         * benchtests/README: Mention python dependency.
2337         * scripts/pylintrc: New file.
2338         * scripts/pylint: New file.
2339
2340         * bits/mathdef.h: Use #ifdef instead of #if.
2341         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
2342         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
2343         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
2344         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
2345         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
2346         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
2347
2348 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2349             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
2350
2351         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
2352         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
2353         and strpbrk-ppc64 objects.
2354         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
2355         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
2356         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
2357         multiarch strpbrk for POWER7.
2358         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
2359         multiarch strpbrk for PPC64.
2360         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
2361         ifunc selector.
2362         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
2363         strpbrk for POWER7.
2364
2365 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
2366
2367         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
2368         (atan_test): Likewise.
2369         (atanh_test_data): Use NO_TEST_INLINE for two tests.
2370         (atanh_test): Use ALL_RM_TEST.
2371         (atan2_test_data): Likewise.
2372         (cabs_test): Likewise.
2373         (cacosh_test): Likewise.
2374         (carg_test): Likewise.
2375         (casin_test): Likewise.
2376         (casinh_test): Likewise.
2377         (cbrt_test): Likewise.
2378         (csqrt_test): Likewise.
2379         (erf_test): Likewise.
2380         (erfc_test): Likewise.
2381         (pow10_test): Likewise.
2382         (exp2_test): Likewise.
2383         (hypot_test): Likewise.
2384         (j0_test): Likewise.
2385         (j1_test): Likewise.
2386         (lgamma_test): Likewise.
2387         (gamma_test): Likewise.
2388         (sincos_test): Likewise.
2389         (tanh_test): Likewise.
2390         (y0_test): Likewise.
2391         (y1_test): Likewise.
2392         * sysdeps/i386/fpu/libm-test-ulps: Update.
2393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2394
2395 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2396
2397         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
2398         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
2399         and strcspn-ppc64 objects.
2400         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
2401         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
2402         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
2403         multiarch strcspn for POWER7.
2404         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
2405         multiarch strcspn for PPC64.
2406         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
2407         ifunc selector.
2408         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
2409         strcspn for POWER7.
2410
2411 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
2412
2413         * math/gen-libm-test.pl (generate_testfile): Expect only function
2414         name as argument to AUTO_TESTS_* and pass results for all rounding
2415         modes to parse_args.
2416         (parse_auto_input): Separate inputs of automatic tests from
2417         outputs before storing in %auto_tests.
2418         * math/libm-test.inc (acos_test_data): Update call to
2419         AUTO_TESTS_f_f.
2420         (acos_test): Use ALL_RM_TEST.
2421         (acos_tonearest_test_data): Remove.
2422         (acos_test_tonearest): Likewise.
2423         (acos_towardzero_test_data): Likewise.
2424         (acos_test_towardzero): Likewise.
2425         (acos_downward_test_data): Likewise.
2426         (acos_test_downward): Likewise.
2427         (acos_upward_test_data): Likewise.
2428         (acos_test_upward): Likewise.
2429         (acosh_test_data): Update call to AUTO_TESTS_f_f.
2430         (asin_test_data): Likewise.
2431         (asin_test): Use ALL_RM_TEST.
2432         (asin_tonearest_test_data): Remove.
2433         (asin_test_tonearest): Likewise.
2434         (asin_towardzero_test_data): Likewise.
2435         (asin_test_towardzero): Likewise.
2436         (asin_downward_test_data): Likewise.
2437         (asin_test_downward): Likewise.
2438         (asin_upward_test_data): Likewise.
2439         (asin_test_upward): Likewise.
2440         (asinh_test_data): Update call to AUTO_TESTS_f_f.
2441         (atan_test_data): Likewise.
2442         (atanh_test_data): Likewise.
2443         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
2444         (cabs_test_data): Update call to AUTO_TESTS_c_f.
2445         (carg_test_data): Likewise.
2446         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
2447         (ccos_test_data): Update call to AUTO_TESTS_c_c.
2448         (ccosh_test_data): Likewise.
2449         (cexp_test_data): Likewise.
2450         (clog_test_data): Likewise.
2451         (clog10_test_data): Likewise.
2452         (cos_test_data): Update call to AUTO_TESTS_f_f.
2453         (cos_test): Use ALL_RM_TEST.
2454         (cos_tonearest_test_data): Remove.
2455         (cos_test_tonearest): Likewise.
2456         (cos_towardzero_test_data): Likewise.
2457         (cos_test_towardzero): Likewise.
2458         (cos_downward_test_data): Likewise.
2459         (cos_test_downward): Likewise.
2460         (cos_upward_test_data): Likewise.
2461         (cos_test_upward): Likewise.
2462         (cosh_test_data): Update call to AUTO_TESTS_f_f.
2463         (cosh_test): Use ALL_RM_TEST.
2464         (cosh_tonearest_test_data): Remove.
2465         (cosh_test_tonearest): Likewise.
2466         (cosh_towardzero_test_data): Likewise.
2467         (cosh_test_towardzero): Likewise.
2468         (cosh_downward_test_data): Likewise.
2469         (cosh_test_downward): Likewise.
2470         (cosh_upward_test_data): Likewise.
2471         (cosh_test_upward): Likewise.
2472         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
2473         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
2474         (ctan_test_data): Likewise.
2475         (ctan_test): Use ALL_RM_TEST.
2476         (ctan_tonearest_test_data): Remove.
2477         (ctan_test_tonearest): Likewise.
2478         (ctan_towardzero_test_data): Likewise.
2479         (ctan_test_towardzero): Likewise.
2480         (ctan_downward_test_data): Likewise.
2481         (ctan_test_downward): Likewise.
2482         (ctan_upward_test_data): Likewise.
2483         (ctan_test_upward): Likewise.
2484         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
2485         (ctanh_test): Use ALL_RM_TEST.
2486         (ctanh_tonearest_test_data): Remove.
2487         (ctanh_test_tonearest): Likewise.
2488         (ctanh_towardzero_test_data): Likewise.
2489         (ctanh_test_towardzero): Likewise.
2490         (ctanh_downward_test_data): Likewise.
2491         (ctanh_test_downward): Likewise.
2492         (ctanh_upward_test_data): Likewise.
2493         (ctanh_test_upward): Likewise.
2494         (erf_test_data): Update call to AUTO_TESTS_f_f.
2495         (erfc_test_data): Likewise.
2496         (exp_test_data): Likewise.
2497         (exp_test): Use ALL_RM_TEST.
2498         (exp_tonearest_test_data): Remove.
2499         (exp_test_tonearest): Likewise.
2500         (exp_towardzero_test_data): Likewise.
2501         (exp_test_towardzero): Likewise.
2502         (exp_downward_test_data): Likewise.
2503         (exp_test_downward): Likewise.
2504         (exp_upward_test_data): Likewise.
2505         (exp_test_upward): Likewise.
2506         (exp10_test_data): Update call to AUTO_TESTS_f_f.
2507         (exp10_test): Use ALL_RM_TEST.
2508         (exp10_tonearest_test_data): Remove.
2509         (exp10_test_tonearest): Likewise.
2510         (exp10_towardzero_test_data): Likewise.
2511         (exp10_test_towardzero): Likewise.
2512         (exp10_downward_test_data): Likewise.
2513         (exp10_test_downward): Likewise.
2514         (exp10_upward_test_data): Likewise.
2515         (exp10_test_upward): Likewise.
2516         (exp2_test_data): Update call to AUTO_TESTS_f_f.
2517         (expm1_test_data): Likewise.
2518         (expm1_test): Use ALL_RM_TEST.
2519         (expm1_tonearest_test_data): Remove.
2520         (expm1_test_tonearest): Likewise.
2521         (expm1_towardzero_test_data): Likewise.
2522         (expm1_test_towardzero): Likewise.
2523         (expm1_downward_test_data): Likewise.
2524         (expm1_test_downward): Likewise.
2525         (expm1_upward_test_data): Likewise.
2526         (expm1_test_upward): Likewise.
2527         (fma_test_data): Update call to AUTO_TESTS_fff_f.
2528         (fma_test): Use ALL_RM_TEST.
2529         (fma_towardzero_test_data): Remove.
2530         (fma_test_towardzero): Likewise.
2531         (fma_downward_test_data): Likewise.
2532         (fma_test_downward): Likewise.
2533         (fma_upward_test_data): Likewise.
2534         (fma_test_upward): Likewise.
2535         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
2536         (j0_test_data): Update call to AUTO_TESTS_f_f.
2537         (j1_test_data): Likewise.
2538         (jn_test_data): Update call to AUTO_TESTS_if_f.
2539         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
2540         (log_test_data): Update call to AUTO_TESTS_f_f.
2541         (log10_test_data): Likewise.
2542         (log1p_test_data): Likewise.
2543         (log2_test_data): Likewise.
2544         (pow_test_data): Update call to AUTO_TESTS_ff_f.
2545         (pow_tonearest_test_data): Likewise.
2546         (sin_test_data): Update call to AUTO_TESTS_f_f.
2547         (sin_test): Use ALL_RM_TEST.
2548         (sin_tonearest_test_data): Remove.
2549         (sin_test_tonearest): Likewise.
2550         (sin_towardzero_test_data): Likewise.
2551         (sin_test_towardzero): Likewise.
2552         (sin_downward_test_data): Likewise.
2553         (sin_test_downward): Likewise.
2554         (sin_upward_test_data): Likewise.
2555         (sin_test_upward): Likewise.
2556         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
2557         (sinh_test_data): Update call to AUTO_TESTS_f_f.
2558         (sinh_test): Use ALL_RM_TEST.
2559         (sinh_tonearest_test_data): Remove.
2560         (sinh_test_tonearest): Likewise.
2561         (sinh_towardzero_test_data): Likewise.
2562         (sinh_test_towardzero): Likewise.
2563         (sinh_downward_test_data): Likewise.
2564         (sinh_test_downward): Likewise.
2565         (sinh_upward_test_data): Likewise.
2566         (sinh_test_upward): Likewise.
2567         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
2568         (sqrt_test): Use ALL_RM_TEST.
2569         (sqrt_tonearest_test_data): Remove.
2570         (sqrt_test_tonearest): Likewise.
2571         (sqrt_towardzero_test_data): Likewise.
2572         (sqrt_test_towardzero): Likewise.
2573         (sqrt_downward_test_data): Likewise.
2574         (sqrt_test_downward): Likewise.
2575         (sqrt_upward_test_data): Likewise.
2576         (sqrt_test_upward): Likewise.
2577         (tan_test_data): Update call to AUTO_TESTS_f_f.
2578         (tan_test): Use ALL_RM_TEST.
2579         (tan_tonearest_test_data): Remove.
2580         (tan_test_tonearest): Likewise.
2581         (tan_towardzero_test_data): Likewise.
2582         (tan_test_towardzero): Likewise.
2583         (tan_downward_test_data): Likewise.
2584         (tan_test_downward): Likewise.
2585         (tan_upward_test_data): Likewise.
2586         (tan_test_upward): Likewise.
2587         (tanh_test_data): Update call to AUTO_TESTS_f_f.
2588         (tgamma_test_data): Likewise.
2589         (y0_test_data): Likewise.
2590         (y1_test_data): Likewise.
2591         (yn_test_data): Update call to AUTO_TESTS_if_f.
2592         (main): Do not call removed functions.
2593
2594 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
2595
2596         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
2597         (ldexp_test_data): Remove.
2598         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
2599         scalbn_test_data.
2600         (scalb_test): Use ALL_RM_TEST.
2601
2602 2014-03-19  Andreas Schwab  <schwab@suse.de>
2603
2604         * nscd/nscd.service: Also invalidate netgroup cache on reload.
2605
2606 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
2607
2608         [BZ #16649]
2609         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2610         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
2611         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
2612         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2613         (__ASSUME_PREADV): Undefine.
2614         (__ASSUME_PWRITEV): Likewise.
2615
2616 2014-03-18  Roland McGrath  <roland@hack.frob.com>
2617
2618         * bits/mman-linux.h: Add comment about non-Linux use.
2619         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
2620         bits/mman-linux.h resting place.
2621
2622         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
2623         * bits/mman-linux.h: ... here.
2624
2625 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2626
2627         * conform/conformtest.pl: Add standard definition when calling C
2628         preprocessor on data files.
2629         (checknamespace): Remove unused variable.
2630
2631 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
2632
2633         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
2634         minus_oflow, plus_uflow and minus_uflow in expected results.
2635         * math/libm-test.inc (scalbn_test_data): Add more tests of
2636         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
2637         minus_uflow.
2638         (scalbn_test): Use ALL_RM_TEST.
2639         (scalbln_test_data): Add more tests of negative arguments.  Use
2640         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
2641         (scalbln_test): Use ALL_RM_TEST.
2642
2643 2014-03-18  Roland McGrath  <roland@hack.frob.com>
2644
2645         * scripts/abilist.awk: Ignore symbols marked with .hidden.
2646
2647 2014-03-18  Will Newton  <will.newton@linaro.org>
2648
2649         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
2650         inaccurate comment.
2651
2652 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
2653
2654         * Makerules [!subdir] (check-abi): Exit with error status if a
2655         test failed.
2656
2657 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
2658
2659         * math/libm-test.inc (nearbyint_test_data): Include all tests used
2660         for rint.  Include results for all rounding modes.
2661         (nearbyint_test): Use ALL_RM_TEST.
2662         (rint_test_data): Include all tests used for nearbyint.
2663
2664 2014-03-17  Will Newton  <will.newton@linaro.org>
2665
2666         * nptl/sysdeps/pthread/pthread.h: Revert previous
2667         change.
2668
2669         * sysdeps/generic/ldsodefs.h: Revert previous
2670         change.
2671
2672         * libio/genops.c: Revert previous change.
2673         * libio/libioP.h: Likewise.
2674         * stdio-common/vfprintf.c: Likewise.
2675
2676         * sysdeps/generic/math_private.h: Revert previous
2677         change.
2678
2679         * sysdeps/generic/math_private.h: Check whether
2680         HAVE_RM_CTX is defined with #ifdef rather
2681         than #if.
2682
2683         * argp/argp-fmtstream.h: Check whether
2684         __STRICT_ANSI__ is defined with #ifdef rather
2685         than #if.
2686         * argp/argp.h: Likewise.
2687
2688         * libio/genops.c: Check whether
2689         _IO_JUMPS_OFFSET is defined with #ifdef rather
2690         than #if.
2691         * libio/libioP.h: Likewise.
2692         * stdio-common/vfprintf.c: Likewise.
2693
2694         * sysdeps/generic/ldsodefs.h: Check whether
2695         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
2696         than #if.
2697
2698         * nptl/sysdeps/pthread/pthread.h: Check
2699         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
2700         its value.
2701
2702 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2703
2704         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
2705         setting O_APPEND.
2706         * libio/tst-ftell-active-handler.c (do_append_test): Add a
2707         test case.
2708
2709         [BZ #16680]
2710         * libio/fileops.c (_IO_file_open): Seek to end of file but
2711         don't cache the offset.
2712         (get_file_offset): Remove function.
2713         (do_ftell): Use cached offset when available.
2714         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
2715         don't cache the offset.
2716         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
2717         case.
2718         (do_one_test): Call it.
2719         (do_ftell_test): Fix up expected old offset for a+ mode.
2720         * libio/wfileops.c (do_ftell_wide): Used cached offset when
2721         available.
2722
2723         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
2724         up test status with function return status.
2725         (do_write_test): Likewise.
2726         (do_append_test): Likewise.
2727
2728         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
2729         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
2730         Remove.
2731
2732 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
2733
2734         * math/gen-libm-test.pl (parse_args): Handle results specified for
2735         each rounding mode separately.
2736         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
2737         tests and results from lrint_tonearest_test_data,
2738         lrint_towardzero_test_data, lrint_downward_test_data and
2739         lrint_upward_test_data.
2740         (lrint_test): Use ALL_RM_TEST.
2741         (lrint_tonearest_test_data): Remove.
2742         (lrint_test_tonearest): Likewise.
2743         (lrint_towardzero_test_data): Likewise.
2744         (lrint_test_towardzero): Likewise.
2745         (lrint_downward_test_data): Likewise.
2746         (lrint_test_downward): Likewise.
2747         (lrint_upward_test_data): Likewise.
2748         (lrint_test_upward): Likewise.
2749         (llrint_test_data): Merge in per-rounding-mode tests and results
2750         from llrint_tonearest_test_data, llrint_towardzero_test_data,
2751         llrint_downward_test_data and llrint_upward_test_data.
2752         (llrint_test): Use ALL_RM_TEST.
2753         (llrint_tonearest_test_data): Remove.
2754         (llrint_test_tonearest): Likewise.
2755         (llrint_towardzero_test_data): Likewise.
2756         (llrint_test_towardzero): Likewise.
2757         (llrint_downward_test_data): Likewise.
2758         (llrint_test_downward): Likewise.
2759         (llrint_upward_test_data): Likewise.
2760         (llrint_test_upward): Likewise.
2761         (rint_test_data): Merge in per-rounding-mode tests and results
2762         from rint_tonearest_test_data, rint_towardzero_test_data,
2763         rint_downward_test_data and rint_upward_test_data.  Add
2764         per-rounding-mode results for tests not in those arrays.
2765         (rint_test): Use ALL_RM_TEST.
2766         (rint_tonearest_test_data): Remove.
2767         (rint_test_tonearest): Likewise.
2768         (rint_towardzero_test_data): Likewise.
2769         (rint_test_towardzero): Likewise.
2770         (rint_downward_test_data): Likewise.
2771         (rint_test_downward): Likewise.
2772         (rint_upward_test_data): Likewise.
2773         (rint_test_upward): Likewise.
2774         (main): Don't call removed functions.
2775
2776 2014-03-14  Roland McGrath  <roland@hack.frob.com>
2777
2778         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
2779         "Compiled on ..." crapola.  It is anti-useful.
2780
2781 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
2782
2783         * scripts/evaluate-test.sh: Handle fourth argument to determine
2784         whether test run should stop on failure.
2785         * Makeconfig (stop-on-test-failure): New variable.
2786         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
2787         $(stop-on-test-failure).
2788         * Makefile (tests): Give a summary of results from testing and
2789         exit with failure status if they include an ERROR or FAIL.
2790         (xtests): Likewise.
2791         * manual/install.texi (Configuring and compiling): Mention
2792         stop-on-test-failure=y.
2793         * INSTALL: Regenerated.
2794
2795 2014-03-14  Roland McGrath  <roland@hack.frob.com>
2796
2797         * scripts/versionlist.awk: New file.
2798         * Makerules [$(build-shared) = yes]
2799         (postclean-generated): Add Versions.def, not Versions.def.v and
2800         Versions.def.v.i.
2801         ($(common-objpfx)Versions.def.v.i): Target removed.
2802         ($(common-objpfx)Versions.def): New target.
2803         ($(common-objpfx)Versions.all): Depend on that rather that
2804         $(common-objpfx)Versions.def.v.
2805         * Versions.def: File removed.
2806
2807         * Makeconfig (+gccwarn): Add -Wundef.
2808         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
2809         a dl-sysdep.h breaking its contract.
2810         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
2811         * include/stackinfo.h: New file.
2812         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
2813         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
2814         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
2815         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
2816         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
2817         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
2818         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
2819         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
2820         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
2821         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
2822         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
2823         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
2824         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
2825         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
2826         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
2827
2828 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2829
2830         [BZ #16707]
2831         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
2832         implementation.
2833         * math/libm-test.inc (round_test_data): Add more tests.
2834
2835         [BZ #16706]
2836         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
2837         implementation.
2838         * math/libm-test.inc (nearbyint_test_data): Add more tests.
2839
2840         [BZ #16701]
2841         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
2842         implementation.
2843         * math/libm-test.inc (ceil_test_data): Add more tests.
2844
2845         * math/libm-test.inc (trunc_test_data): Add more tests related to
2846         BZ#16414.
2847
2848 2014-03-14  Roland McGrath  <roland@hack.frob.com>
2849
2850         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
2851         with #if rather than #ifdef.
2852         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
2853
2854 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
2855
2856         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
2857         first.  Disable AVX-512 GCC support if assembler doesn't support
2858         it.
2859         * sysdeps/x86_64/configure: Regenerated.
2860
2861 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
2862
2863         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
2864         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
2865         (__old_pthread_attr_setstack): Likewise.
2866         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
2867         [!_STACK_GROWS_DOWN]: Likewise.
2868
2869 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
2870
2871         * config.make.in (have-bash2): Delete.
2872         * configure.ac (libc_cv_have_bash2): Delete.
2873         * configure: Regenerate.
2874         * elf/Makefile (common-ldd-rewrite): Rename to ...
2875         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
2876         (sh-ldd-rewrite): Delete.
2877         (bash-ldd-rewrite): Delete.
2878         (have-bash2): Delete checks.
2879         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
2880         ldd-rewrite.
2881
2882         * config.make.in (have-ksh): Delete.
2883         (KSH): Delete.
2884         * configure.ac (libc_cv_have_ksh): Delete.
2885         * configure: Regenerate.
2886
2887         * elf/Makefile: Delete $(have-ksh) check.
2888         ($(objpfx)sotruss): Change KSH to BASH.
2889         * elf/sotruss.ksh: Rename to ...
2890         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
2891         function style to match POSIX.  Drop ksh vim mode setting.
2892
2893         * manual/time.texi (Specifying the Time Zone with TZ): Change
2894         Tuesday to Thursday.
2895
2896         * debug/tst-longjmp_chk2.c: Update header comment.
2897         (stackoverflow_handler): Add comment.  Call assert on pass value.
2898
2899 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
2900
2901         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
2902         (HAVE_AVX512_ASM_SUPPORT): Likewise.
2903         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
2904         (La_x86_64_vector): Add zmm.
2905         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
2906         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
2907         ($(objpfx)tst-audit10): New target.
2908         ($(objpfx)tst-audit10.out): Likewise.
2909         (tst-audit10-ENV): New.
2910         (AVX512-CFLAGS): Likewise.
2911         (CFLAGS-tst-audit10.c): Likewise.
2912         (CFLAGS-tst-auditmod10a.c): Likewise.
2913         (CFLAGS-tst-auditmod10b.c): Likewise.
2914         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
2915         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
2916         * sysdeps/x86_64/configure: Regenerated.
2917         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
2918         AVX-512 zmm register support.
2919         (_dl_x86_64_save_sse): Likewise.
2920         (_dl_x86_64_restore_sse): Likewise.
2921         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
2922         size vector registers.
2923         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
2924         (ZMM_SIZE): Likewise.
2925         * sysdeps/x86_64/tst-audit10.c: New file.
2926         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
2927         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
2928
2929 2014-03-13  Roland McGrath  <roland@hack.frob.com>
2930
2931         * configure.ac (HAVE_EHDR_START): New check.
2932         * configure: Regenerated.
2933         * config.h.in (HAVE_EHDR_START): New #undef.
2934         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
2935         assuming the lowest-addressed segment maps the start of the file.
2936
2937 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
2938
2939         * INSTALL: Regenerated.
2940
2941 2014-03-13  Will Newton  <will.newton@linaro.org>
2942
2943         * manual/setjmp.texi (System V contexts): Improve
2944         clarity and grammar of documentation.
2945
2946 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
2947
2948         [BZ #16381]
2949         * elf/Makefile (tests): Add tst-pie2.
2950         (tests-pie): Add tst-pie2.
2951         * elf/tst-pie2.c: New file.
2952         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
2953         for ET_EXEC.
2954         * elf/rtld.c (map_doit): Load executable as lt_executable.
2955         (dl_main): Likewise.
2956
2957 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
2958
2959         [BZ #16642]
2960         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2961         (__ASSUME_PSELECT): Undefine.
2962
2963 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2964
2965         [BZ #16689]
2966         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
2967         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
2968         static build.
2969         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
2970         selector for static builds.
2971
2972 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
2973
2974         [BZ #16695]
2975         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
2976         key in the buffer.
2977
2978 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2979
2980         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
2981         IFUNC selector for static builds.
2982
2983 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
2984
2985         * sysdeps/mips/math_private.h [__mips_hard_float]
2986         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
2987         libc_feresetround_mips_ctx.
2988         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
2989         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
2990         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
2991
2992         [BZ #16677]
2993         * math/s_nextafter.c (__nextafter): Do not return value from
2994         overflowing computation.
2995         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
2996         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
2997         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
2998         Likewise.
2999         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
3000         Likewise.
3001         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
3002         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
3003
3004 2014-03-11  Roland McGrath  <roland@hack.frob.com>
3005
3006         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
3007         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
3008         Move sfi_sp use from the load-multiple (that no longer sets sp) to
3009         the new mov targetting sp.
3010
3011 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3012
3013         [BZ #16683]
3014         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
3015         Define it for static builds as well.
3016         (NO_BZERO_IMPL): Likewise.
3017
3018 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3019
3020         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
3021         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
3022         multiarch strspn for PPC64.
3023         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
3024         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
3025         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3026         (__libc_ifunc_impl_list): Likewise.
3027         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
3028         multiarch optimizations
3029         * string/strspn.c (strspn): Using macro to redefine symbol name.
3030
3031 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3032             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3033
3034         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
3035         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
3036         multiarch strncat for PPC64.
3037         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
3038         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
3039         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3040         (__libc_ifunc_impl_list): Likewise.
3041         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
3042         multiarch optimizations
3043
3044 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3045
3046         [BZ #16639]
3047         * nscd/nscd.service: Make service type forking.
3048
3049 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3050
3051         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
3052         sign in non default rounding modes.
3053         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
3054
3055 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
3056
3057         * math/libm-test.inc (ALL_RM_TEST): New macro.
3058         (ceil_test): Use ALL_RM_TEST.
3059         (cimag_test): Likewise.
3060         (conj_test): Likewise.
3061         (copysign_test): Likewise.
3062         (cproj_test): Likewise.
3063         (creal_test): Likewise.
3064         (fabs_test): Likewise.
3065         (floor_test): Likewise.
3066         (fmax_test): Likewise.
3067         (fmin_test): Likewise.
3068         (fmod_test): Likewise.
3069         (fpclassify_test): Likewise.
3070         (frexp_test): Likewise.
3071         (ilogb_test): Likewise.
3072         (isfinite_test): Likewise.
3073         (finite_test): Likewise.
3074         (isgreater_test): Likewise.
3075         (isgreaterequal_test): Likewise.
3076         (isinf_test): Likewise.
3077         (isless_test): Likewise.
3078         (islessequal_test): Likewise.
3079         (islessgreater_test): Likewise.
3080         (isnan_test): Likewise.
3081         (isnormal_test): Likewise.
3082         (issignaling_test): Likewise.
3083         (isunordered_test): Likewise.
3084         (logb_test): Likewise.
3085         (logb_downward_test_data): Remove.
3086         (logb_test_downward): Likewise.
3087         (lround_test): Use ALL_RM_TEST.
3088         (llround_test): Likewise.
3089         (modf_test): Likewise.
3090         (nexttoward_test): Likewise.
3091         (remainder_test): Likewise.
3092         (drem_test): Likewise.
3093         (remainder_tonearest_test_data): Likewise.
3094         (remainder_test_tonearest): Likewise.
3095         (drem_test_tonearest): Likewise.
3096         (remainder_towardzero_test_data): Likewise.
3097         (remainder_test_towardzero): Likewise.
3098         (drem_test_towardzero): Likewise.
3099         (remainder_downward_test_data): Likewise.
3100         (remainder_test_downward): Likewise.
3101         (drem_test_downward): Likewise.
3102         (remainder_upward_test_data): Likewise.
3103         (remainder_test_upward): Likewise.
3104         (drem_test_upward): Likewise.
3105         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
3106         (round_test): Use ALL_RM_TEST.
3107         (signbit_test): Likewise.
3108         (trunc_test): Likewise.
3109         (significand_test): Likewise.
3110         (main): Don't call removed functions.
3111
3112 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
3113
3114         [BZ #16674]
3115         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
3116         || __USE_XOPEN2K8].
3117         (ILL_ILLOPN): Likewise.
3118         (ILL_ILLADR): Likewise.
3119         (ILL_ILLTRP): Likewise.
3120         (ILL_PRVOPC): Likewise.
3121         (ILL_PRVREG): Likewise.
3122         (ILL_COPROC): Likewise.
3123         (ILL_BADSTK): Likewise.
3124         (FPE_INTDIV): Likewise.
3125         (FPE_INTOVF): Likewise.
3126         (FPE_FLTDIV): Likewise.
3127         (FPE_FLTOVF): Likewise.
3128         (FPE_FLTUND): Likewise.
3129         (FPE_FLTRES): Likewise.
3130         (FPE_FLTINV): Likewise.
3131         (FPE_FLTSUB): Likewise.
3132         (SEGV_MAPERR): Likewise.
3133         (SEGV_ACCERR): Likewise.
3134         (BUS_ADRALN): Likewise.
3135         (BUS_ADRERR): Likewise.
3136         (BUS_OBJERR): Likewise.
3137         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3138         (TRAP_TRACE): Likewise.
3139         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3140         __USE_XOPEN2K8].
3141         (CLD_KILLED): Likewise.
3142         (CLD_DUMPED): Likewise.
3143         (CLD_TRAPPED): Likewise.
3144         (CLD_STOPPED): Likewise.
3145         (CLD_CONTINUED): Likewise.
3146         (POLL_IN): Likewise.
3147         (POLL_OUT): Likewise.
3148         (POLL_MSG): Likewise.
3149         (POLL_ERR): Likewise.
3150         (POLL_PRI): Likewise.
3151         (POLL_HUP): Likewise.
3152         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
3153         Likewise.
3154         (ILL_ILLOPN): Likewise.
3155         (ILL_ILLADR): Likewise.
3156         (ILL_ILLTRP): Likewise.
3157         (ILL_PRVOPC): Likewise.
3158         (ILL_PRVREG): Likewise.
3159         (ILL_COPROC): Likewise.
3160         (ILL_BADSTK): Likewise.
3161         (FPE_INTDIV): Likewise.
3162         (FPE_INTOVF): Likewise.
3163         (FPE_FLTDIV): Likewise.
3164         (FPE_FLTOVF): Likewise.
3165         (FPE_FLTUND): Likewise.
3166         (FPE_FLTRES): Likewise.
3167         (FPE_FLTINV): Likewise.
3168         (FPE_FLTSUB): Likewise.
3169         (SEGV_MAPERR): Likewise.
3170         (SEGV_ACCERR): Likewise.
3171         (BUS_ADRALN): Likewise.
3172         (BUS_ADRERR): Likewise.
3173         (BUS_OBJERR): Likewise.
3174         (BUS_MCEERR_AR): Likewise.
3175         (BUS_MCEERR_AO): Likewise.
3176         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3177         (TRAP_TRACE): Likewise.
3178         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3179         __USE_XOPEN2K8].
3180         (CLD_KILLED): Likewise.
3181         (CLD_DUMPED): Likewise.
3182         (CLD_TRAPPED): Likewise.
3183         (CLD_STOPPED): Likewise.
3184         (CLD_CONTINUED): Likewise.
3185         (POLL_IN): Likewise.
3186         (POLL_OUT): Likewise.
3187         (POLL_MSG): Likewise.
3188         (POLL_ERR): Likewise.
3189         (POLL_PRI): Likewise.
3190         (POLL_HUP): Likewise.
3191         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
3192         (ILL_ILLOPN): Likewise.
3193         (ILL_ILLADR): Likewise.
3194         (ILL_ILLTRP): Likewise.
3195         (ILL_PRVOPC): Likewise.
3196         (ILL_PRVREG): Likewise.
3197         (ILL_COPROC): Likewise.
3198         (ILL_BADSTK): Likewise.
3199         (FPE_INTDIV): Likewise.
3200         (FPE_INTOVF): Likewise.
3201         (FPE_FLTDIV): Likewise.
3202         (FPE_FLTOVF): Likewise.
3203         (FPE_FLTUND): Likewise.
3204         (FPE_FLTRES): Likewise.
3205         (FPE_FLTINV): Likewise.
3206         (FPE_FLTSUB): Likewise.
3207         (SEGV_MAPERR): Likewise.
3208         (SEGV_ACCERR): Likewise.
3209         (BUS_ADRALN): Likewise.
3210         (BUS_ADRERR): Likewise.
3211         (BUS_OBJERR): Likewise.
3212         (BUS_MCEERR_AR): Likewise.
3213         (BUS_MCEERR_AO): Likewise.
3214         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3215         (TRAP_TRACE): Likewise.
3216         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3217         __USE_XOPEN2K8].
3218         (CLD_KILLED): Likewise.
3219         (CLD_DUMPED): Likewise.
3220         (CLD_TRAPPED): Likewise.
3221         (CLD_STOPPED): Likewise.
3222         (CLD_CONTINUED): Likewise.
3223         (POLL_IN): Likewise.
3224         (POLL_OUT): Likewise.
3225         (POLL_MSG): Likewise.
3226         (POLL_ERR): Likewise.
3227         (POLL_PRI): Likewise.
3228         (POLL_HUP): Likewise.
3229         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
3230         Likewise.
3231         (ILL_ILLOPN): Likewise.
3232         (ILL_ILLADR): Likewise.
3233         (ILL_ILLTRP): Likewise.
3234         (ILL_PRVOPC): Likewise.
3235         (ILL_PRVREG): Likewise.
3236         (ILL_COPROC): Likewise.
3237         (ILL_BADSTK): Likewise.
3238         (ILL_BADIADDR): Likewise.
3239         (ILL_BREAK): Likewise.
3240         (FPE_INTDIV): Likewise.
3241         (FPE_INTOVF): Likewise.
3242         (FPE_FLTDIV): Likewise.
3243         (FPE_FLTOVF): Likewise.
3244         (FPE_FLTUND): Likewise.
3245         (FPE_FLTRES): Likewise.
3246         (FPE_FLTINV): Likewise.
3247         (FPE_FLTSUB): Likewise.
3248         (FPE_DECOVF): Likewise.
3249         (FPE_DECDIV): Likewise.
3250         (FPE_DECERR): Likewise.
3251         (FPE_INVASC): Likewise.
3252         (FPE_INVDEC): Likewise.
3253         (SEGV_MAPERR): Likewise.
3254         (SEGV_ACCERR): Likewise.
3255         (SEGV_PSTKOVF): Likewise.
3256         (BUS_ADRALN): Likewise.
3257         (BUS_ADRERR): Likewise.
3258         (BUS_OBJERR): Likewise.
3259         (BUS_MCEERR_AR): Likewise.
3260         (BUS_MCEERR_AO): Likewise.
3261         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3262         (TRAP_TRACE): Likewise.
3263         (TRAP_BRANCH): Likewise.
3264         (TRAP_HWBKPT): Likewise.
3265         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3266         __USE_XOPEN2K8].
3267         (CLD_KILLED): Likewise.
3268         (CLD_DUMPED): Likewise.
3269         (CLD_TRAPPED): Likewise.
3270         (CLD_STOPPED): Likewise.
3271         (CLD_CONTINUED): Likewise.
3272         (POLL_IN): Likewise.
3273         (POLL_OUT): Likewise.
3274         (POLL_MSG): Likewise.
3275         (POLL_ERR): Likewise.
3276         (POLL_PRI): Likewise.
3277         (POLL_HUP): Likewise.
3278         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
3279         (ILL_ILLOPN): Likewise.
3280         (ILL_ILLADR): Likewise.
3281         (ILL_ILLTRP): Likewise.
3282         (ILL_PRVOPC): Likewise.
3283         (ILL_PRVREG): Likewise.
3284         (ILL_COPROC): Likewise.
3285         (ILL_BADSTK): Likewise.
3286         (FPE_INTDIV): Likewise.
3287         (FPE_INTOVF): Likewise.
3288         (FPE_FLTDIV): Likewise.
3289         (FPE_FLTOVF): Likewise.
3290         (FPE_FLTUND): Likewise.
3291         (FPE_FLTRES): Likewise.
3292         (FPE_FLTINV): Likewise.
3293         (FPE_FLTSUB): Likewise.
3294         (SEGV_MAPERR): Likewise.
3295         (SEGV_ACCERR): Likewise.
3296         (BUS_ADRALN): Likewise.
3297         (BUS_ADRERR): Likewise.
3298         (BUS_OBJERR): Likewise.
3299         (BUS_MCEERR_AR): Likewise.
3300         (BUS_MCEERR_AO): Likewise.
3301         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3302         (TRAP_TRACE): Likewise.
3303         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3304         __USE_XOPEN2K8].
3305         (CLD_KILLED): Likewise.
3306         (CLD_DUMPED): Likewise.
3307         (CLD_TRAPPED): Likewise.
3308         (CLD_STOPPED): Likewise.
3309         (CLD_CONTINUED): Likewise.
3310         (POLL_IN): Likewise.
3311         (POLL_OUT): Likewise.
3312         (POLL_MSG): Likewise.
3313         (POLL_ERR): Likewise.
3314         (POLL_PRI): Likewise.
3315         (POLL_HUP): Likewise.
3316         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
3317         (ILL_ILLOPN): Likewise.
3318         (ILL_ILLADR): Likewise.
3319         (ILL_ILLTRP): Likewise.
3320         (ILL_PRVOPC): Likewise.
3321         (ILL_PRVREG): Likewise.
3322         (ILL_COPROC): Likewise.
3323         (ILL_BADSTK): Likewise.
3324         (FPE_INTDIV): Likewise.
3325         (FPE_INTOVF): Likewise.
3326         (FPE_FLTDIV): Likewise.
3327         (FPE_FLTOVF): Likewise.
3328         (FPE_FLTUND): Likewise.
3329         (FPE_FLTRES): Likewise.
3330         (FPE_FLTINV): Likewise.
3331         (FPE_FLTSUB): Likewise.
3332         (SEGV_MAPERR): Likewise.
3333         (SEGV_ACCERR): Likewise.
3334         (BUS_ADRALN): Likewise.
3335         (BUS_ADRERR): Likewise.
3336         (BUS_OBJERR): Likewise.
3337         (BUS_MCEERR_AR): Likewise.
3338         (BUS_MCEERR_AO): Likewise.
3339         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3340         (TRAP_TRACE): Likewise.
3341         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3342         __USE_XOPEN2K8].
3343         (CLD_KILLED): Likewise.
3344         (CLD_DUMPED): Likewise.
3345         (CLD_TRAPPED): Likewise.
3346         (CLD_STOPPED): Likewise.
3347         (CLD_CONTINUED): Likewise.
3348         (POLL_IN): Likewise.
3349         (POLL_OUT): Likewise.
3350         (POLL_MSG): Likewise.
3351         (POLL_ERR): Likewise.
3352         (POLL_PRI): Likewise.
3353         (POLL_HUP): Likewise.
3354         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
3355         (ILL_ILLOPN): Likewise.
3356         (ILL_ILLADR): Likewise.
3357         (ILL_ILLTRP): Likewise.
3358         (ILL_PRVOPC): Likewise.
3359         (ILL_PRVREG): Likewise.
3360         (ILL_COPROC): Likewise.
3361         (ILL_BADSTK): Likewise.
3362         (FPE_INTDIV): Likewise.
3363         (FPE_INTOVF): Likewise.
3364         (FPE_FLTDIV): Likewise.
3365         (FPE_FLTOVF): Likewise.
3366         (FPE_FLTUND): Likewise.
3367         (FPE_FLTRES): Likewise.
3368         (FPE_FLTINV): Likewise.
3369         (FPE_FLTSUB): Likewise.
3370         (SEGV_MAPERR): Likewise.
3371         (SEGV_ACCERR): Likewise.
3372         (BUS_ADRALN): Likewise.
3373         (BUS_ADRERR): Likewise.
3374         (BUS_OBJERR): Likewise.
3375         (BUS_MCEERR_AR): Likewise.
3376         (BUS_MCEERR_AO): Likewise.
3377         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3378         (TRAP_TRACE): Likewise.
3379         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3380         __USE_XOPEN2K8].
3381         (CLD_KILLED): Likewise.
3382         (CLD_DUMPED): Likewise.
3383         (CLD_TRAPPED): Likewise.
3384         (CLD_STOPPED): Likewise.
3385         (CLD_CONTINUED): Likewise.
3386         (POLL_IN): Likewise.
3387         (POLL_OUT): Likewise.
3388         (POLL_MSG): Likewise.
3389         (POLL_ERR): Likewise.
3390         (POLL_PRI): Likewise.
3391         (POLL_HUP): Likewise.
3392         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
3393         (ILL_ILLOPN): Likewise.
3394         (ILL_ILLADR): Likewise.
3395         (ILL_ILLTRP): Likewise.
3396         (ILL_PRVOPC): Likewise.
3397         (ILL_PRVREG): Likewise.
3398         (ILL_COPROC): Likewise.
3399         (ILL_BADSTK): Likewise.
3400         (ILL_DBLFLT): Likewise.
3401         (ILL_HARDWALL): Likewise.
3402         (FPE_INTDIV): Likewise.
3403         (FPE_INTOVF): Likewise.
3404         (FPE_FLTDIV): Likewise.
3405         (FPE_FLTOVF): Likewise.
3406         (FPE_FLTUND): Likewise.
3407         (FPE_FLTRES): Likewise.
3408         (FPE_FLTINV): Likewise.
3409         (FPE_FLTSUB): Likewise.
3410         (SEGV_MAPERR): Likewise.
3411         (SEGV_ACCERR): Likewise.
3412         (BUS_ADRALN): Likewise.
3413         (BUS_ADRERR): Likewise.
3414         (BUS_OBJERR): Likewise.
3415         (BUS_MCEERR_AR): Likewise.
3416         (BUS_MCEERR_AO): Likewise.
3417         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3418         (TRAP_TRACE): Likewise.
3419         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3420         __USE_XOPEN2K8].
3421         (CLD_KILLED): Likewise.
3422         (CLD_DUMPED): Likewise.
3423         (CLD_TRAPPED): Likewise.
3424         (CLD_STOPPED): Likewise.
3425         (CLD_CONTINUED): Likewise.
3426         (POLL_IN): Likewise.
3427         (POLL_OUT): Likewise.
3428         (POLL_MSG): Likewise.
3429         (POLL_ERR): Likewise.
3430         (POLL_PRI): Likewise.
3431         (POLL_HUP): Likewise.
3432         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
3433         (ILL_ILLOPN): Likewise.
3434         (ILL_ILLADR): Likewise.
3435         (ILL_ILLTRP): Likewise.
3436         (ILL_PRVOPC): Likewise.
3437         (ILL_PRVREG): Likewise.
3438         (ILL_COPROC): Likewise.
3439         (ILL_BADSTK): Likewise.
3440         (FPE_INTDIV): Likewise.
3441         (FPE_INTOVF): Likewise.
3442         (FPE_FLTDIV): Likewise.
3443         (FPE_FLTOVF): Likewise.
3444         (FPE_FLTUND): Likewise.
3445         (FPE_FLTRES): Likewise.
3446         (FPE_FLTINV): Likewise.
3447         (FPE_FLTSUB): Likewise.
3448         (SEGV_MAPERR): Likewise.
3449         (SEGV_ACCERR): Likewise.
3450         (BUS_ADRALN): Likewise.
3451         (BUS_ADRERR): Likewise.
3452         (BUS_OBJERR): Likewise.
3453         (BUS_MCEERR_AR): Likewise.
3454         (BUS_MCEERR_AO): Likewise.
3455         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3456         (TRAP_TRACE): Likewise.
3457         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3458         __USE_XOPEN2K8].
3459         (CLD_KILLED): Likewise.
3460         (CLD_DUMPED): Likewise.
3461         (CLD_TRAPPED): Likewise.
3462         (CLD_STOPPED): Likewise.
3463         (CLD_CONTINUED): Likewise.
3464         (POLL_IN): Likewise.
3465         (POLL_OUT): Likewise.
3466         (POLL_MSG): Likewise.
3467         (POLL_ERR): Likewise.
3468         (POLL_PRI): Likewise.
3469         (POLL_HUP): Likewise.
3470         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
3471         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
3472
3473         [BZ #16670]
3474         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
3475         before #include of <time.h>.
3476         [!__USE_XOPEN2K] (__need_timespec): Likewise.
3477         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
3478         (test-xfail-UNIX98/sched.h/conform): Likewise.
3479
3480 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3481
3482         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
3483         error absence of trapping exception support.
3484         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
3485
3486 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
3487
3488         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
3489         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
3490         * timezone/Makefile (testdata): Move definition above include of
3491         Rules.
3492         (test-zones): New variable.
3493         (tests-special): Add zone files.
3494         (build-testdata): Use $(evaluate-test).
3495
3496         * elf/Makefile (tests-special): Rename tests to end with .out.
3497         ($(objpfx)noload-mem): Likewise.
3498         ($(objpfx)tst-leaks1-mem): Likewise.
3499         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
3500         * iconv/Makefile (xtests-special): Change test-iconvconfig to
3501         $(objpfx)test-iconvconfig.out.
3502         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
3503         set -e inside subshell and redirect output to file.
3504         * iconvdata/Makefile (generated): Rename tests to end with .out.
3505         Correct type.
3506         (tests-special): Rename tests to end with .out.
3507         ($(objpfx)mtrace-tst-loading): Likewise.
3508         * intl/Makefile (generated): Likewise.
3509         (tests-special): Likewise.
3510         ($(objpfx)mtrace-tst-gettext): Likewise.
3511         * misc/Makefile (generated): Likewise.
3512         (tests-special): Likewise.
3513         ($(objpfx)tst-error1-mem): Likewise.
3514         * nptl/Makefile (tests-special): Likewise.
3515         ($(objpfx)tst-stack3-mem): Likewise.
3516         (generated): Likewise.
3517         * posix/Makefile (generated): Likewise.
3518         (tests-special): Likewise.
3519         (xtests-special): Likewise.
3520         ($(objpfx)tst-fnmatch-mem): Likewise.
3521         ($(objpfx)bug-regex2-mem): Likewise.
3522         ($(objpfx)bug-regex14-mem): Likewise.
3523         ($(objpfx)bug-regex21-mem): Likewise.
3524         ($(objpfx)bug-regex31-mem): Likewise.
3525         ($(objpfx)tst-vfork3-mem): Likewise.
3526         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
3527         ($(objpfx)tst-pcre-mem): Likewise.
3528         ($(objpfx)tst-boost-mem): Likewise.
3529         ($(objpfx)bug-ga2-mem): Likewise.
3530         ($(objpfx)bug-glob2-mem): Likewise.
3531         * resolv/Makefile (generate): Likewise.
3532         (tests-special): Likewise.
3533         (xtests-special): Likewise.
3534         (generated): Likewise.
3535         ($(objpfx)mtrace-tst-leaks): Likewise.
3536         ($(objpfx)mtrace-tst-leaks2): Likewise.
3537
3538         * scripts/merge-test-results.sh: New file.
3539         * Makefile (tests-special-notdir): New variable.
3540         (tests): Run merge-test-results.sh.
3541         (xtests): Likewise.
3542         * Rules (tests-special-notdir): New variable.
3543         (xtests-special-notdir): Likewise.
3544         (tests): Run merge-test-results.sh
3545         (xtests): Likewise.
3546
3547         * Makeconfig (test-xfail-name): New variable.
3548         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
3549         compute variable name for expected failures.
3550         * conform/Makefile (conformtest-headers-data): New variable.
3551         (conformtest-standards): Likewise.
3552         (conformtest-headers-ISO): Likewise.
3553         (conformtest-headers-ISO99): Likewise.
3554         (conformtest-headers-ISO11): Likewise.
3555         (conformtest-headers-POSIX): Likewise.
3556         (conformtest-headers-XPG3): Likewise.
3557         (conformtest-headers-XPG4): Likewise.
3558         (conformtest-headers-UNIX98): Likewise.
3559         (conformtest-headers-XOPEN2K): Likewise.
3560         (conformtest-headers-POSIX2008): Likewise.
3561         (conformtest-headers-XOPEN2K8): Likewise.
3562         (conformtest-header-list-base): Likewise.
3563         (conformtest-header-list-tests): Likewise.
3564         (conformtest-header-base): Likewise.
3565         (conformtest-header-tests): Likewise.
3566         (tests-special): Add $(conformtest-header-list-tests).  If
3567         [$(fast-check) && !$(cross-compiling)], add
3568         $(conformtest-header-tests) instead of
3569         $(objpfx)run-conformtest.out.
3570         (generated): Add $(conformtest-header-list-base).  If
3571         [$(fast-check) && !$(cross-compiling)], add
3572         $(conformtest-header-base).  Remove previous setting.
3573         ($(conformtest-header-list-tests)): New target.
3574         (test-xfail-run-conformtest): Remove variable.
3575         ($(objpfx)run-conformtest.out): Remove target.
3576         (test-xfail-ISO11/complex.h/conform): New variable.
3577         (test-xfail-ISO11/stdalign.h/conform): Likewise.
3578         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
3579         (test-xfail-XPG3/varargs.h/conform): Likewise.
3580         (test-xfail-XPG4/varargs.h/conform): Likewise.
3581         (test-xfail-UNIX98/varargs.h/conform): Likewise.
3582         (test-xfail-XPG4/ndbm.h/conform): Likewise.
3583         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
3584         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
3585         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
3586         (test-xfail-XPG3/fcntl.h/conform): Likewise.
3587         (test-xfail-XPG3/ftw.h/conform): Likewise.
3588         (test-xfail-XPG3/grp.h/conform): Likewise.
3589         (test-xfail-XPG3/langinfo.h/conform): Likewise.
3590         (test-xfail-XPG3/limits.h/conform): Likewise.
3591         (test-xfail-XPG3/pwd.h/conform): Likewise.
3592         (test-xfail-XPG3/search.h/conform): Likewise.
3593         (test-xfail-XPG3/signal.h/conform): Likewise.
3594         (test-xfail-XPG3/stdio.h/conform): Likewise.
3595         (test-xfail-XPG3/stdlib.h/conform): Likewise.
3596         (test-xfail-XPG3/string.h/conform): Likewise.
3597         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
3598         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
3599         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
3600         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
3601         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
3602         (test-xfail-XPG3/sys/types.h/conform): Likewise.
3603         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
3604         (test-xfail-XPG3/termios.h/conform): Likewise.
3605         (test-xfail-XPG3/time.h/conform): Likewise.
3606         (test-xfail-XPG3/unistd.h/conform): Likewise.
3607         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
3608         (test-xfail-XPG4/fcntl.h/conform): Likewise.
3609         (test-xfail-XPG4/langinfo.h/conform): Likewise.
3610         (test-xfail-XPG4/netdb.h/conform): Likewise.
3611         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
3612         (test-xfail-XPG4/signal.h/conform): Likewise.
3613         (test-xfail-XPG4/stdio.h/conform): Likewise.
3614         (test-xfail-XPG4/stdlib.h/conform): Likewise.
3615         (test-xfail-XPG4/stropts.h/conform): Likewise.
3616         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
3617         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
3618         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
3619         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
3620         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
3621         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
3622         (test-xfail-XPG4/sys/time.h/conform): Likewise.
3623         (test-xfail-XPG4/sys/types.h/conform): Likewise.
3624         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
3625         (test-xfail-XPG4/termios.h/conform): Likewise.
3626         (test-xfail-XPG4/ucontext.h/conform): Likewise.
3627         (test-xfail-XPG4/unistd.h/conform): Likewise.
3628         (test-xfail-XPG4/utmpx.h/conform): Likewise.
3629         (test-xfail-POSIX/sched.h/conform): Likewise.
3630         (test-xfail-POSIX/signal.h/conform): Likewise.
3631         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
3632         (test-xfail-POSIX/tar.h/conform): Likewise.
3633         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
3634         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
3635         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
3636         (test-xfail-UNIX98/netdb.h/conform): Likewise.
3637         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
3638         (test-xfail-UNIX98/sched.h/conform): Likewise.
3639         (test-xfail-UNIX98/signal.h/conform): Likewise.
3640         (test-xfail-UNIX98/stdio.h/conform): Likewise.
3641         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
3642         (test-xfail-UNIX98/stropts.h/conform): Likewise.
3643         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
3644         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
3645         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
3646         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
3647         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
3648         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
3649         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
3650         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
3651         (test-xfail-UNIX98/unistd.h/conform): Likewise.
3652         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
3653         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
3654         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
3655         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
3656         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
3657         (test-xfail-XOPEN2K/math.h/conform): Likewise.
3658         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3659         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
3660         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
3661         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
3662         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
3663         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
3664         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
3665         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
3666         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
3667         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
3668         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
3669         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
3670         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
3671         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
3672         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
3673         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
3674         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
3675         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
3676         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
3677         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
3678         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
3679         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
3680         (test-xfail-POSIX2008/signal.h/conform): Likewise.
3681         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
3682         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
3683         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
3684         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
3685         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
3686         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
3687         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
3688         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
3689         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
3690         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
3691         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
3692         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
3693         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
3694         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
3695         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
3696         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
3697         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
3698         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
3699         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
3700         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
3701         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3702         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
3703         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
3704         (conformtest-cc-flags): Likewise.
3705         ($(conformtest-header-tests): New target.
3706         * conform/check-header-lists.sh: New file.
3707         * conform/run-conformtest.sh: Remove.
3708
3709         * conform/conformtest.pl: Allow ' and \ in values given for
3710         constants.
3711         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
3712         inclusion.
3713         [POSIX] (sys/types.h): Likewise.
3714         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
3715         inclusion.
3716         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
3717         inclusion.
3718         * conform/data/signal.h-data (SIGIO): Remove expectation.
3719         [XPG3] (SIGBUS): Do not expect.
3720         [POSIX || XPG3] (SIGPOLL): Likewise.
3721         [POSIX || XPG3] (SIGPROF): Likewise.
3722         [POSIX || XPG3] (SIGSYS): Likewise.
3723         [XPG3] (SIGTRAP): Likewise.
3724         [POSIX || XPG3] (SIGURG): Likewise.
3725         [POSIX || XPG3] (SIGVTALRM): Likewise.
3726         [POSIX || XPG3] (SIGXCPU): Likewise.
3727         [POSIX || XPG3] (SIGXFSZ): Likewise.
3728         [POSIX] (SA_SIGINFO): Expect.
3729         [XPG3] (siginfo_t): Do not expect type or contents.
3730         [POSIX] (si_pid): Do not expect element.
3731         [POSIX] (si_uid): Likewise.
3732         [POSIX] (si_addr): Likewise.
3733         [POSIX] (si_status): Likewise.
3734         [POSIX] (si_band): Likewise.
3735         [XPG4] (si_value): Likewise.
3736         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
3737         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
3738         [POSIX || XPG3] (ILL_ILLADR): Likewise.
3739         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
3740         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
3741         [POSIX || XPG3] (ILL_PRVREG): Likewise.
3742         [POSIX || XPG3] (ILL_COPROC): Likewise.
3743         [POSIX || XPG3] (ILL_BADSTK): Likewise.
3744         [POSIX || XPG3] (FPE_INTDIV): Likewise.
3745         [POSIX || XPG3] (FPE_INTOVF): Likewise.
3746         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
3747         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
3748         [POSIX || XPG3] (FPE_FLTUND): Likewise.
3749         [POSIX || XPG3] (FPE_FLTRES): Likewise.
3750         [POSIX || XPG3] (FPE_FLTINV): Likewise.
3751         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
3752         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
3753         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
3754         [POSIX || XPG3] (BUS_ADRALN): Likewise.
3755         [POSIX || XPG3] (BUS_ADRERR): Likewise.
3756         [POSIX || XPG3] (BUS_OBJERR): Likewise.
3757         [POSIX || XPG3] (CLD_EXITED): Likewise.
3758         [POSIX || XPG3] (CLD_KILLED): Likewise.
3759         [POSIX || XPG3] (CLD_DUMPED): Likewise.
3760         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
3761         [POSIX || XPG3] (CLD_STOPPED): Likewise.
3762         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
3763         [POSIX || XPG3] (POLL_IN): Likewise.
3764         [POSIX || XPG3] (POLL_OUT): Likewise.
3765         [POSIX || XPG3] (POLL_MSG): Likewise.
3766         [POSIX || XPG3] (POLL_ERR): Likewise.
3767         [POSIX || XPG3] (POLL_PRI): Likewise.
3768         [POSIX || XPG3] (POLL_HUP): Likewise.
3769         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
3770         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
3771         (SIG*): Do not allow.
3772         [XPG3] (si_*): Likewise.
3773         [XPG3] (SI_*): Likewise.
3774         [XPG3 || XPG4] (sigev_*): Likewise.
3775         [XPG3 || XPG4] (SIGEV_*): Likewise.
3776         [XPG3 || XPG4] (sival_*): Likewise.
3777         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
3778         [POSIX || XPG3] (BUS_*): Likewise.
3779         [POSIX || XPG3] (CLD_*): Likewise.
3780         [POSIX || XPG3] (FPE_*): Likewise.
3781         [POSIX || XPG3] (ILL_*): Likewise.
3782         [POSIX || XPG3] (POLL_*): Likewise.
3783         [POSIX || XPG3] (SEGV_*): Likewise.
3784         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
3785         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
3786         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
3787         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
3788         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
3789         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
3790         Specify type and value.
3791         (TVERSLEN): Likewise.
3792         (REGTYPE): Likewise.
3793         (AREGTYPE): Likewise.
3794         (LNKTYPE): Likewise.
3795         (SYMTYPE): Likewise.
3796         (CHRTYPE): Likewise.
3797         (BLKTYPE): Likewise.
3798         (DIRTYPE): Likewise.
3799         (FIFOTYPE): Likewise.
3800         (CONTTYPE): Likewise.
3801         (TSUID): Likewise.
3802         (TSGID): Likewise.
3803         (TSVTX): Likewise.
3804         (TUREAD): Likewise.
3805         (TUWRITE): Likewise.
3806         (TUEXEC): Likewise.
3807         (TGREAD): Likewise.
3808         (TGWRITE): Likewise.
3809         (TGEXEC): Likewise.
3810         (TOREAD): Likewise.
3811         (TOWRITE): Likewise.
3812         (TOEXEC): Likewise.
3813         [POSIX] (TSVTX): Expect constant.
3814
3815 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
3816
3817         * Makefile (tests): Change dependencies to ....
3818         (tests-special): ... additions to this variable.
3819         (tests): Depend on $(tests-special).
3820         * Makerules (check-abi-list): New variable.
3821         (check-abi): Depend on $(check-abi-list).
3822         [$(subdir) = elf] (tests-special): Add
3823         $(objpfx)check-abi-libc.out.
3824         [$(build-shared) = yes && subdir] (tests-special): Add
3825         $(check-abi-list).
3826         [$(build-shared) = yes && subdir] (tests): Do not depend on
3827         check-abi.
3828         * Rules (tests): Depend on $(tests-special).
3829         (xtests): Depend on $(xtests-special).
3830         * catgets/Makefile (tests): Change dependencies to ....
3831         (tests-special): ... additions to this variable.
3832         * conform/Makefile (tests): Change dependencies to ....
3833         (tests-special): ... additions to this variable.
3834         * elf/Makefile (tests): Change dependencies to ....
3835         (tests-special): ... additions to this variable.
3836         * grp/Makefile (tests): Change dependencies to ....
3837         (tests-special): ... additions to this variable.
3838         * iconv/Makefile (xtests): Change dependencies to ....
3839         (xtests-special): ... additions to this variable.
3840         * iconvdata/Makefile (tests): Change dependencies to ....
3841         (tests-special): ... additions to this variable.
3842         * intl/Makefile (tests): Change dependencies to ....
3843         (tests-special): ... additions to this variable.  Also add
3844         $(objpfx)tst-gettext.out.
3845         * io/Makefile (tests): Change dependencies to ....
3846         (tests-special): ... additions to this variable.
3847         * libio/Makefile (tests): Change dependencies to ....
3848         (tests-special): ... additions to this variable.
3849         * malloc/Makefile (tests): Change dependencies to ....
3850         (tests-special): ... additions to this variable.
3851         * misc/Makefile (tests): Change dependencies to ....
3852         (tests-special): ... additions to this variable.
3853         * nptl/Makefile (tests): Change dependencies to ....
3854         (tests-special): ... additions to this variable.
3855         * nptl_db/Makefile (tests): Change dependencies to ....
3856         (tests-special): ... additions to this variable.
3857         * posix/Makefile (tests): Change dependencies to ....
3858         (tests-special): ... additions to this variable.
3859         (xtests): Change dependencies to ....
3860         (xtests-special): ... additions to this variable.
3861         * resolv/Makefile (tests): Change dependencies to ....
3862         (tests-special): ... additions to this variable.
3863         (xtests): Change dependencies to ....
3864         (xtests-special): ... additions to this variable.
3865         * stdio-common/Makefile (tests): Change dependencies to ....
3866         (tests-special): ... additions to this variable.
3867         (do-tst-unbputc): Remove target.
3868         (do-tst-printf): Likewise.
3869         * stdlib/Makefile (tests): Change dependencies to ....
3870         (tests-special): ... additions to this variable.
3871         * string/Makefile (tests): Change dependencies to ....
3872         (tests-special): ... additions to this variable.
3873         * sysdeps/x86/Makefile (tests): Change dependencies to ....
3874         (tests-special): ... additions to this variable.
3875
3876         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
3877         whole file.
3878         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
3879         whole file.
3880         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
3881         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
3882
3883         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
3884         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
3885         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
3886         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
3887         * conform/data/libgen.h-data [XPG3]: Likewise.
3888         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
3889         * conform/data/ndbm.h-data [XPG3]: Likewise.
3890         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
3891         * conform/data/netdb.h-data [XPG3]: Likewise.
3892         * conform/data/netinet/in.h-data [XPG3]: Likewise.
3893         * conform/data/poll.h-data [XPG3]: Likewise.
3894         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
3895         * conform/data/strings.h-data [XPG3]: Likewise.
3896         * conform/data/stropts.h-data [XPG3]: Likewise.
3897         * conform/data/sys/mman.h-data [XPG3]: Likewise.
3898         * conform/data/sys/resource.h-data [XPG3]: Likewise.
3899         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
3900         Likewise.
3901         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
3902         * conform/data/sys/time.h-data [XPG3]: Likewise.
3903         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
3904         * conform/data/sys/uio.h-data [XPG3]: Likewise.
3905         * conform/data/sys/un.h-data [XPG3]: Likewise.
3906         * conform/data/syslog.h-data [XPG3]: Likewise.
3907         * conform/data/ucontext.h-data [XPG3]: Likewise.
3908         * conform/data/utmpx.h-data [XPG3]: Likewise.
3909         * conform/data/varargs.h-data [UNIX98]: Enable file.
3910
3911         * manual/Makefile (INSTALL_INFO): Remove variable setting.
3912
3913         * math/libm-test.inc (struct test_f_f_data): Move expected results
3914         into structure for each rounding mode.
3915         (struct test_ff_f_data): Likewise.
3916         (struct test_ff_f_data_nexttoward): Likewise.
3917         (struct test_fi_f_data): Likewise.
3918         (struct test_fl_f_data): Likewise.
3919         (struct test_if_f_data): Likewise.
3920         (struct test_fff_f_data): Likewise.
3921         (struct test_c_f_data): Likewise.
3922         (struct test_f_f1_data): Likewise.
3923         (struct test_fF_f1_data): Likewise.
3924         (struct test_ffI_f1_data): Likewise.
3925         (struct test_c_c_data): Likewise.
3926         (struct test_cc_c_data): Likewise.
3927         (struct test_f_i_data): Likewise.
3928         (struct test_ff_i_data): Likewise.
3929         (struct test_f_l_data): Likewise.
3930         (struct test_f_L_data): Likewise.
3931         (struct test_fFF_11_data): Likewise.
3932         (RM_): New macro.
3933         (RM_FE_DOWNWARD): Likewise.
3934         (RM_FE_TONEAREST): Likewise.
3935         (RM_FE_TOWARDZERO): Likewise.
3936         (RM_FE_UPWARD): Likewise.
3937         (RUN_TEST_LOOP_f_f): Update references to expected results.
3938         (RUN_TEST_LOOP_2_f): Likewise.
3939         (RUN_TEST_LOOP_fff_f): Likewise.
3940         (RUN_TEST_LOOP_c_f): Likewise.
3941         (RUN_TEST_LOOP_f_f1): Likewise.
3942         (RUN_TEST_LOOP_fF_f1): Likewise.
3943         (RUN_TEST_LOOP_fI_f1): Likewise.
3944         (RUN_TEST_LOOP_ffI_f1): Likewise.
3945         (RUN_TEST_LOOP_c_c): Likewise.
3946         (RUN_TEST_LOOP_cc_c): Likewise.
3947         (RUN_TEST_LOOP_f_i): Likewise.
3948         (RUN_TEST_LOOP_f_i_tg): Likewise.
3949         (RUN_TEST_LOOP_ff_i_tg): Likewise.
3950         (RUN_TEST_LOOP_f_b): Likewise.
3951         (RUN_TEST_LOOP_f_b_tg): Likewise.
3952         (RUN_TEST_LOOP_f_l): Likewise.
3953         (RUN_TEST_LOOP_f_L): Likewise.
3954         (RUN_TEST_LOOP_fFF_11): Likewise.
3955         * math/gen-libm-test.pl (parse_args): Output four copies of
3956         expected results for each test.
3957
3958         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
3959         (__ASSUME_UTIMES): Remove.
3960         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3961         (__ASSUME_UTIMES): Likewise.
3962
3963         * math/gen-auto-libm-tests.c: Update comment on output format.
3964         (output_for_one_input_case): Generate before-rounding and
3965         after-rounding information as conditions on output flags not
3966         floating-point format.
3967         * math/auto-libm-test-out: Regenerated.
3968         * math/gen-libm-test.pl (cond_value): New function.
3969         (or_cond_value): Use cond_value.
3970         (generate_testfile): Handle conditional exceptions.
3971
3972 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
3973
3974         * math/libm-test.inc (max_valid_error): New variable.
3975         (init_max_error): Take new argument specifying whether function
3976         results are exactly determined.  Set max_valid_error and bound
3977         other variables for errors based on this argument.
3978         (set_max_error): Do not record results above max_valid_error.
3979         (check_float_internal): Only accept errors of up to 0.5ulps if
3980         also at most max_valid_error.
3981         (START): Take new argument EXACT and pass it to init_max_error.
3982         (acos_test): Update call to START.
3983         (acos_test_tonearest): Likewise.
3984         (acos_test_towardzero): Likewise.
3985         (acos_test_downward): Likewise.
3986         (acos_test_upward): Likewise.
3987         (acosh_test): Likewise.
3988         (asin_test): Likewise.
3989         (asin_test_tonearest): Likewise.
3990         (asin_test_towardzero): Likewise.
3991         (asin_test_downward): Likewise.
3992         (asin_test_upward): Likewise.
3993         (asinh_test): Likewise.
3994         (atan_test): Likewise.
3995         (atanh_test): Likewise.
3996         (atan2_test): Likewise.
3997         (cabs_test): Likewise.
3998         (cacos_test): Likewise.
3999         (cacosh_test): Likewise.
4000         (carg_test): Likewise.
4001         (casin_test): Likewise.
4002         (casinh_test): Likewise.
4003         (catan_test): Likewise.
4004         (catanh_test): Likewise.
4005         (cbrt_test): Likewise.
4006         (ccos_test): Likewise.
4007         (ccosh_test): Likewise.
4008         (ceil_test): Likewise.
4009         (cexp_test): Likewise.
4010         (cimag_test): Likewise.
4011         (clog_test): Likewise.
4012         (clog10_test): Likewise.
4013         (conj_test): Likewise.
4014         (copysign_test): Likewise.
4015         (cos_test): Likewise.
4016         (cos_test_tonearest): Likewise.
4017         (cos_test_towardzero): Likewise.
4018         (cos_test_downward): Likewise.
4019         (cos_test_upward): Likewise.
4020         (cosh_test): Likewise.
4021         (cosh_test_tonearest): Likewise.
4022         (cosh_test_towardzero): Likewise.
4023         (cosh_test_downward): Likewise.
4024         (cosh_test_upward): Likewise.
4025         (cpow_test): Likewise.
4026         (cproj_test): Likewise.
4027         (creal_test): Likewise.
4028         (csin_test): Likewise.
4029         (csinh_test): Likewise.
4030         (csqrt_test): Likewise.
4031         (ctan_test): Likewise.
4032         (ctan_test_tonearest): Likewise.
4033         (ctan_test_towardzero): Likewise.
4034         (ctan_test_downward): Likewise.
4035         (ctan_test_upward): Likewise.
4036         (ctanh_test): Likewise.
4037         (ctanh_test_tonearest): Likewise.
4038         (ctanh_test_towardzero): Likewise.
4039         (ctanh_test_downward): Likewise.
4040         (ctanh_test_upward): Likewise.
4041         (erf_test): Likewise.
4042         (erfc_test): Likewise.
4043         (exp_test): Likewise.
4044         (exp_test_tonearest): Likewise.
4045         (exp_test_towardzero): Likewise.
4046         (exp_test_downward): Likewise.
4047         (exp_test_upward): Likewise.
4048         (exp10_test): Likewise.
4049         (exp10_test_tonearest): Likewise.
4050         (exp10_test_towardzero): Likewise.
4051         (exp10_test_downward): Likewise.
4052         (exp10_test_upward): Likewise.
4053         (pow10_test): Likewise.
4054         (exp2_test): Likewise.
4055         (expm1_test): Likewise.
4056         (expm1_test_tonearest): Likewise.
4057         (expm1_test_towardzero): Likewise.
4058         (expm1_test_downward): Likewise.
4059         (expm1_test_upward): Likewise.
4060         (fabs_test): Likewise.
4061         (fdim_test): Likewise.
4062         (floor_test): Likewise.
4063         (fma_test): Likewise.
4064         (fma_test_towardzero): Likewise.
4065         (fma_test_downward): Likewise.
4066         (fma_test_upward): Likewise.
4067         (fmax_test): Likewise.
4068         (fmin_test): Likewise.
4069         (fmod_test): Likewise.
4070         (fpclassify_test): Likewise.
4071         (frexp_test): Likewise.
4072         (hypot_test): Likewise.
4073         (ilogb_test): Likewise.
4074         (isfinite_test): Likewise.
4075         (finite_test): Likewise.
4076         (isgreater_test): Likewise.
4077         (isgreaterequal_test): Likewise.
4078         (isinf_test): Likewise.
4079         (isless_test): Likewise.
4080         (islessequal_test): Likewise.
4081         (islessgreater_test): Likewise.
4082         (isnan_test): Likewise.
4083         (isnormal_test): Likewise.
4084         (issignaling_test): Likewise.
4085         (isunordered_test): Likewise.
4086         (j0_test): Likewise.
4087         (j1_test): Likewise.
4088         (jn_test): Likewise.
4089         (ldexp_test): Likewise.
4090         (lgamma_test): Likewise.
4091         (gamma_test): Likewise.
4092         (lrint_test): Likewise.
4093         (lrint_test_tonearest): Likewise.
4094         (lrint_test_towardzero): Likewise.
4095         (lrint_test_downward): Likewise.
4096         (lrint_test_upward): Likewise.
4097         (llrint_test): Likewise.
4098         (llrint_test_tonearest): Likewise.
4099         (llrint_test_towardzero): Likewise.
4100         (llrint_test_downward): Likewise.
4101         (llrint_test_upward): Likewise.
4102         (log_test): Likewise.
4103         (log10_test): Likewise.
4104         (log1p_test): Likewise.
4105         (log2_test): Likewise.
4106         (logb_test): Likewise.
4107         (logb_test_downward): Likewise.
4108         (lround_test): Likewise.
4109         (llround_test): Likewise.
4110         (modf_test): Likewise.
4111         (nearbyint_test): Likewise.
4112         (nextafter_test): Likewise.
4113         (nexttoward_test): Likewise.
4114         (pow_test): Likewise.
4115         (pow_test_tonearest): Likewise.
4116         (pow_test_towardzero): Likewise.
4117         (pow_test_downward): Likewise.
4118         (pow_test_upward): Likewise.
4119         (remainder_test): Likewise.
4120         (drem_test): Likewise.
4121         (remainder_test_tonearest): Likewise.
4122         (drem_test_tonearest): Likewise.
4123         (remainder_test_towardzero): Likewise.
4124         (drem_test_towardzero): Likewise.
4125         (remainder_test_downward): Likewise.
4126         (drem_test_downward): Likewise.
4127         (remainder_test_upward): Likewise.
4128         (drem_test_upward): Likewise.
4129         (remquo_test): Likewise.
4130         (rint_test): Likewise.
4131         (rint_test_tonearest): Likewise.
4132         (rint_test_towardzero): Likewise.
4133         (rint_test_downward): Likewise.
4134         (rint_test_upward): Likewise.
4135         (round_test): Likewise.
4136         (scalb_test): Likewise.
4137         (scalbn_test): Likewise.
4138         (scalbln_test): Likewise.
4139         (signbit_test): Likewise.
4140         (sin_test): Likewise.
4141         (sin_test_tonearest): Likewise.
4142         (sin_test_towardzero): Likewise.
4143         (sin_test_downward): Likewise.
4144         (sin_test_upward): Likewise.
4145         (sincos_test): Likewise.
4146         (sinh_test): Likewise.
4147         (sinh_test_tonearest): Likewise.
4148         (sinh_test_towardzero): Likewise.
4149         (sinh_test_downward): Likewise.
4150         (sinh_test_upward): Likewise.
4151         (sqrt_test): Likewise.
4152         (sqrt_test_tonearest): Likewise.
4153         (sqrt_test_towardzero): Likewise.
4154         (sqrt_test_downward): Likewise.
4155         (sqrt_test_upward): Likewise.
4156         (tan_test): Likewise.
4157         (tan_test_tonearest): Likewise.
4158         (tan_test_towardzero): Likewise.
4159         (tan_test_downward): Likewise.
4160         (tan_test_upward): Likewise.
4161         (tanh_test): Likewise.
4162         (tgamma_test): Likewise.
4163         (trunc_test): Likewise.
4164         (y0_test): Likewise.
4165         (y1_test): Likewise.
4166         (yn_test): Likewise.
4167         (significand_test): Likewise.
4168
4169         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
4170         individual tests in comment.
4171         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
4172         (prev_max_error): New variable.
4173         (prev_real_max_error): Likewise.
4174         (prev_imag_max_error): Likewise.
4175         (compare_ulp_data): Don't refer to test names in comment.
4176         (find_test_ulps): Remove function.
4177         (find_function_ulps): Likewise.
4178         (find_complex_function_ulps): Likewise.
4179         (init_max_error): Take function name as argument.  Look up ulps
4180         for that function.
4181         (print_ulps): Remove function.
4182         (print_max_error): Use prev_max_error instead of calling
4183         find_function_ulps.
4184         (print_complex_max_error): Use prev_real_max_error and
4185         prev_imag_max_error instead of calling find_complex_function_ulps.
4186         (check_float_internal): Take max_ulp parameter instead of calling
4187         find_test_ulps.  Don't call print_ulps.
4188         (check_float): Update call to check_float_internal.
4189         (check_complex): Update calls to check_float_internal.
4190         (START): Pass argument to init_max_error.
4191         * math/gen-libm-test.pl (%results): Don't include "kind"
4192         information.
4193         (parse_ulps): Don't handle ulps of individual tests.
4194         (print_ulps_file): Likewise.
4195         (output_ulps): Likewise.
4196         * math/README.libm-test: Update.
4197         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
4198         individual tests.
4199         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
4200         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
4201         * sysdeps/arm/libm-test-ulps: Likewise.
4202         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
4203         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
4204         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
4205         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
4206         * sysdeps/microblaze/libm-test-ulps: Likewise.
4207         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4208         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4209         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4210         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4211         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4212         * sysdeps/sh/libm-test-ulps: Likewise.
4213         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4214         * sysdeps/tile/libm-test-ulps: Likewise.
4215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4216
4217 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
4218
4219         * math/libm-test.inc (print_complex_max_error): Check separately
4220         whether real and imaginary errors are within allowed range and
4221         pass 0 to print_complex_function_ulps instead of value within
4222         allowed range.
4223
4224 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4225
4226         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
4227         formatting.
4228         (get_handles_fopen): Likewise.
4229         (do_write_test): Likewise.
4230
4231         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
4232
4233         * libio/fileops.c (do_ftell): Use cached offset when
4234         available.
4235         * libio/iofwide.c (do_ftell_wide): Likewise.
4236         * libio/iofdopen.c (_IO_new_fdopen): Don't use
4237         _IO_file_attach.
4238         * libio/wfileops.c (_IO_fwide): Don't cache offset.
4239
4240         [BZ #16532]
4241         * libio/libioP.h (get_file_offset): New function.
4242         * libio/fileops.c (get_file_offset): Likewise.
4243         (do_ftell): Likewise.
4244         (_IO_new_file_seekoff): Split out ftell logic.
4245         * libio/wfileops.c (do_ftell_wide): Likewise.
4246         (_IO_wfile_seekoff): Split out ftell logic.
4247         * libio/tst-ftell-active-handler.c: New test case.
4248         * libio/Makefile (tests): Add it.
4249
4250 2014-03-03  Roland McGrath  <roland@hack.frob.com>
4251
4252         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
4253         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
4254
4255 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
4256
4257         [BZ #16639]
4258         * nscd/connections.c (nscd_init): Call do_exit.
4259         (start_threads): Call do_exit and notify_parent.
4260         (begin_drop_privileges): Call do_exit.
4261         (finish_drop_privileges): Likewise.
4262         * nscd/selinux.c (preserve_capabilities): Likewise.
4263         (install_real_capabilities): Likewise.
4264         (nscd_selinux_enabled): Likewise.
4265         (avc_create_thread): Likewise.
4266         (avc_alloc_lock): Likewise.
4267         (nscd_avc_init): Likewise.
4268         * nscd/nscd.c (parent_fd): New static variable.
4269         (main): Create a pipe between parent and child processes.
4270         Skip closing parent_fd.
4271         (monitor_child): New function.
4272         (do_exit): Likewise.
4273         (notify_parent): Likewise.
4274         * nscd/nscd.h (notify_parent): Likewise.
4275         (do_exit): Likewise.
4276
4277 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
4278
4279         * malloc/malloc.c (__libc_calloc): Revert last change.
4280
4281 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4282
4283         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4284
4285 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4286
4287         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
4288         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
4289         implementation.
4290         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4291         (__libc_ifunc_impl_list): Likewise.
4292         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
4293         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
4294         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
4295         * string/strrchr.c: Define STRRCHR.
4296
4297 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
4298
4299         * benchtest/bench-strtok.c (simple_strtok): Delete.
4300         (strtok_string): Use as benchmark.
4301         * string/strtok (STRTOK): New macro.
4302
4303 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
4304
4305         * manual/threads.texi: Add header and standard comments to all
4306         functions.
4307
4308         * elf/dl-lookup.c (check_match): New function.
4309         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
4310         (do_lookup_x): Remove nested function check_match. Use non-nested
4311         function check_match.
4312
4313 2014-02-28  Roland McGrath  <roland@hack.frob.com>
4314
4315         * csu/Makefile (generated, before-compile): Use += rather than =.
4316         * catgets/Makefile (generated, generated-dirs): Likewise.
4317         * debug/Makefile (generated): Likewise.
4318         * dlfcn/Makefile (generated): Likewise.
4319         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
4320         * iconvdata/Makefile (before-compile, generated): Likewise.
4321         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
4322         * libio/Makefile (generated): Likewise.
4323         * malloc/Makefile (generated): Likewise.
4324         * manual/Makefile (generated, generated-dirs): Likewise.
4325         * misc/Makefile (generated): Likewise.
4326         * posix/Makefile (generated): Likewise.
4327         * resolv/Makefile (generated): Likewise.
4328         * sunrpc/Makefile (generated, generated-dirs): Likewise.
4329         * timezone/Makefile (generated, generated-dirs): Likewise.
4330
4331         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
4332
4333 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4334
4335         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
4336         power8 implementation.
4337         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
4338         file: POWER8 llround ifunc implementation.
4339         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
4340         (__lllround): Add POWER8 implementation.
4341         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
4342         POWER8 llround implementation.
4343
4344         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
4345         power8 implementation.
4346         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
4347         file: POWER8 llrint ifunc implementation.
4348         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
4349         Add POWER8 implementation.
4350         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
4351         POWER8 llrint implementation.
4352
4353         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
4354         power8 implementation.
4355         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
4356         file: POWER8 finite ifunc implementation.
4357         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
4358         Add POWER8 implementation.
4359         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
4360         Likewise.
4361         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
4362         POWER8 finite implementation.
4363         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
4364
4365         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
4366         power8 implementation.
4367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
4368         file: POWER8 isinf ifunc implementation.
4369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
4370         POWER8 implementation.
4371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
4372         Likewise.
4373         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
4374         isinf implementation.
4375         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
4376
4377         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
4378         (INIT_ARCH): Add hwcap2 initialization.
4379         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
4380         power8 implementation.
4381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
4382         file: POWER8 isnan ifunc implementation.
4383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
4384         POWER8 implementation.
4385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
4386         Likewise.
4387         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
4388         isnan implementation.
4389         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
4390
4391 2014-02-27  Joey Ye  <joey.ye@arm.com>
4392
4393         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
4394         (_FP_NANFRAC_Q): Set to zero.
4395
4396 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4397
4398         [BZ #16623]
4399         * math/auto-libm-test-in: New test inputs.
4400         * math/auto-libm-test-out: Regenerate.
4401         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
4402         and DA.
4403         (__cos): Likewise.
4404         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
4405
4406 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
4407
4408         * scripts/evaluate-test.sh: Take new argument indicating whether
4409         failure is expected.
4410         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
4411         indicating whether failure is expected.
4412         * conform/Makefile (test-xfail-run-conformtest): New variable.
4413         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
4414         level.
4415         * posix/Makefile (test-xfail-annexc): New variable.
4416         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
4417
4418 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
4419
4420         * argp/Makefile: Include Makeconfig immediately after defining
4421         subdir.
4422         * assert/Makefile: Likewise.
4423         * benchtests/Makefile: Likewise.
4424         * catgets/Makefile: Likewise.
4425         * conform/Makefile: Likewise.
4426         * crypt/Makefile: Likewise.
4427         * csu/Makefile: Likewise.
4428         (all): Remove target.
4429         * ctype/Makefile: Include Makeconfig immediately after defining
4430         subdir.
4431         * debug/Makefile: Likewise.
4432         * dirent/Makefile: Likewise.
4433         * dlfcn/Makefile: Likewise.
4434         * gmon/Makefile: Likewise.
4435         * gnulib/Makefile: Likewise.
4436         * grp/Makefile: Likewise.
4437         * gshadow/Makefile: Likewise.
4438         * hesiod/Makefile: Likewise.
4439         * hurd/Makefile: Likewise.
4440         (all): Remove target.
4441         * iconvdata/Makefile: Include Makeconfig immediately after
4442         defining subdir.
4443         * inet/Makefile: Likewise.
4444         * intl/Makefile: Likewise.
4445         * io/Makefile: Likewise.
4446         * libio/Makefile: Likewise.
4447         (all): Remove target.
4448         * locale/Makefile: Include Makeconfig immediately after defining
4449         subdir.
4450         * login/Makefile: Likewise.
4451         * mach/Makefile: Likewise.
4452         (all): Remove target.
4453         * malloc/Makefile: Include Makeconfig immediately after defining
4454         subdir.
4455         (all): Remove target.
4456         * manual/Makefile: Include Makeconfig immediately after defining
4457         subdir.
4458         * math/Makefile: Likewise.
4459         * misc/Makefile: Likewise.
4460         * nis/Makefile: Likewise.
4461         * nss/Makefile: Likewise.
4462         * po/Makefile: Likewise.
4463         (all): Remove target.
4464         * posix/Makefile: Include Makeconfig immediately after defining
4465         subdir.
4466         * pwd/Makefile: Likewise.
4467         * resolv/Makefile: Likewise.
4468         * resource/Makefile: Likewise.
4469         * rt/Makefile: Likewise.
4470         * setjmp/Makefile: Likewise.
4471         * shadow/Makefile: Likewise.
4472         * signal/Makefile: Likewise.
4473         * socket/Makefile: Likewise.
4474         * soft-fp/Makefile: Likewise.
4475         * stdio-common/Makefile: Likewise.
4476         * stdlib/Makefile: Likewise.
4477         * streams/Makefile: Likewise.
4478         * string/Makefile: Likewise.
4479         * sunrpc/Makefile: Likewise.
4480         (all): Remove target.
4481         * sysvipc/Makefile: Include Makeconfig immediately after defining
4482         subdir.
4483         * termios/Makefile: Likewise.
4484         * time/Makefile: Likewise.
4485         * timezone/Makefile: Likewise.
4486         (all): Remove target.
4487         * wcsmbs/Makefile: Include Makeconfig immediately after defining
4488         subdir.
4489         * wctype/Makefile: Likewise.
4490
4491 2014-02-26  Steve Ellcey  <sellcey@mips.com>
4492
4493         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
4494         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
4495         (libc_feholdexcept_setround_mips): Ditto.
4496         (libc_feholdsetround): New.
4497         (libc_feholdsetroundf): New.
4498         (libc_feholdsetroundl): New.
4499         (libc_feupdateenv_test_mips): New.
4500         (libc_feupdateenv_test): New.
4501         (libc_feupdateenv_testf): New.
4502         (libc_feupdateenv_testl): New.
4503         (libc_feresetround): New.
4504         (libc_feresetroundf): New.
4505         (libc_feresetroundl): New.
4506         (libc_fetestexcept_mips): New.
4507         (libc_fetestexcept): New.
4508         (libc_fetestexceptf): New.
4509         (libc_fetestexceptl): New.
4510         (HAVE_RM_CTX): New.
4511         (libc_feholdexcept_setround_mips_ctx): New.
4512         (libc_feholdexcept_setround_ctx): New.
4513         (libc_feholdexcept_setroundf_ctx): New.
4514         (libc_feholdexcept_setroundl_ctx): New.
4515         (libc_fesetenv_mips_ctx): New.
4516         (libc_fesetenv_ctx): New.
4517         (libc_fesetenv_ctxf): New.
4518         (libc_fesetenv_ctxl): New.
4519         (libc_feupdateenv_mips_ctx): New.
4520         (libc_feupdateenv_ctx): New.
4521         (libc_feupdateenvf_ctx): New.
4522         (libc_feupdateenvl_ctx): New.
4523         (libc_feholdsetround_mips_ctx): New.
4524         (libc_feholdsetround_ctx): New.
4525         (libc_feholdsetroundf_ctx): New.
4526         (libc_feholdsetroundl_ctx): New.
4527         (libc_feresetround_mips_ctx): New.
4528         (libc_feresetround_ctx): New.
4529         (libc_feresetroundf_ctx): New.
4530         (libc_feresetroundl_ctx): New.
4531
4532 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
4533
4534         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
4535
4536         * manual/ipc.texi: New file.
4537         * manual/Makefile (chapters): Add ipc.
4538         * manual/job.texi: Add "Inter-Process Communication" to next.
4539         * manual/process.texi: Add "Inter-Process Communication" to prev.
4540
4541 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4542
4543         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4544
4545 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
4546
4547         * malloc/malloc.c (__libc_calloc): Simplify implementation.
4548
4549         * manual/arith.texi: Fix spaces after sentences.
4550         * manual/charset.texi: Likewise.
4551         * manual/errno.texi: Likewise.
4552         * manual/install.texi: Likewise.
4553         * manual/llio.texi: Likewise.
4554         * manual/locale.texi: Likewise.
4555         * manual/maint.texi: Likewise.
4556         * manual/math.texi: Likewise.
4557         * manual/memory.texi: Likewise.
4558         * manual/message.texi: Likewise.
4559         * manual/probes.texi: Likewise.
4560         * manual/resource.texi: Likewise.
4561         * manual/signal.texi: Likewise.
4562         * manual/socket.texi: Likewise.
4563         * manual/stdio.texi: Likewise.
4564         * manual/string.texi: Likewise.
4565         * manual/time.texi: Likewise.
4566         * manual/users.texi: Likewise.
4567
4568 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
4569
4570         [BZ #16632]
4571         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
4572         _DEFAULT_SOURCE is defined.
4573
4574 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
4575             Carlos O'Donell  <carlos@redhat.com>
4576
4577         [BZ #16613]
4578         * elf/dl-tls.c (_dl_count_modids): New function.
4579         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
4580         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
4581         audit library and increment generation counter.
4582         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
4583         * elf/tst-audit9.c: New file.
4584         * elf/tst-auditmod9a.c: New file.
4585         * elf/tst-auditmod9b.c: New file.
4586         * elf/Makefile: Add rules to build and run tst-audit9.
4587
4588 2014-02-25  Florian Weimer  <fweimer@redhat.com>
4589
4590         [BZ #15347]
4591         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
4592
4593 2014-02-25  Will Newton  <will.newton@linaro.org>
4594
4595         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
4596         (__longjmp): Restore sp and lr before restoring callee
4597         saved registers.  Add longjmp and longjmp_target
4598         SystemTap probe point.
4599         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
4600         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
4601         Define to zero to match jmpbuf layout.
4602         * sysdeps/arm/setjmp.S: Include stap-probe.h.
4603         (__sigsetjmp): Save sp and lr before saving callee
4604         saved registers.  Add setjmp SystemTap probe point.
4605
4606 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
4607
4608         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4609
4610 2014-02-24  Andreas Schwab  <schwab@suse.de>
4611
4612         [BZ #15804]
4613         * elf/pldd.c (wait_for_ptrace_stop): New function.
4614         (main): Call it after attaching.
4615
4616 2014-02-22  Roland McGrath  <roland@hack.frob.com>
4617
4618         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
4619         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
4620         Versions files is now verboten.
4621         * hurd/Versions (libc: GLIBC_2.0):
4622         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
4623         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
4624         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
4625         * mach/Versions: Likewise.
4626
4627         * csu/Versions: Remove unused %include.
4628         * resolv/Versions: Likewise.
4629
4630 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
4631
4632         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
4633         ($(objpfx)check-local-headers.out): Likewise.
4634         ($(objpfx)begin-end-check.out): Likewise.
4635         * Makerules (check-abi-%.out): Likewise.
4636         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
4637         ($(objpfx)test2.cat): Likewise.
4638         ($(objpfx)de/libc.cat): Likewise.
4639         ($(objpfx)test-gencat.out): Likewise.
4640         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
4641         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
4642         ($(objpfx)noload-mem): Likewise.
4643         ($(objpfx)tst-pathopt.out): Likewise.
4644         ($(objpfx)tst-rtld-load-self.out): Likewise.
4645         ($(objpfx)tst-array1-cmp.out): Likewise.
4646         ($(objpfx)tst-array1-static-cmp.out): Likewise.
4647         ($(objpfx)tst-array2-cmp.out): Likewise.
4648         ($(objpfx)tst-array3-cmp.out): Likewise.
4649         ($(objpfx)tst-array4-cmp.out): Likewise.
4650         ($(objpfx)tst-array5-cmp.out): Likewise.
4651         ($(objpfx)tst-array5-static-cmp.out): Likewise.
4652         ($(objpfx)check-textrel.out): Likewise.
4653         ($(objpfx)check-execstack.out): Likewise.
4654         ($(objpfx)check-localplt.out): Likewise.
4655         ($(objpfx)order2-cmp.out): Likewise.
4656         ($(objpfx)tst-leaks1-mem): Likewise.
4657         ($(objpfx)tst-leaks1-static-mem): Likewise.
4658         ($(objpfx)tst-initorder-cmp.out): Likewise.
4659         ($(objpfx)tst-initorder2-cmp.out): Likewise.
4660         ($(objpfx)tst-unused-dep.out): Likewise.
4661         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
4662         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
4663         * iconv/Makefile (test-iconvconfig): Likewise.
4664         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
4665         ($(objpfx)iconv-test.out): Likewise.
4666         ($(objpfx)tst-tables.out): Likewise.
4667         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
4668         ($(objpfx)tst-gettext.out): Likewise.
4669         ($(objpfx)tst-translit.out): Likewise.
4670         ($(objpfx)tst-gettext2.out): Likewise.
4671         ($(objpfx)tst-gettext4.out): Likewise.
4672         ($(objpfx)tst-gettext6.out): Likewise.
4673         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
4674         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
4675         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
4676         ($(objpfx)tst-fopenloc-mem.out): Likewise.
4677         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
4678         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
4679         * posix/Makefile ($(objpfx)globtest.out): Likewise.
4680         ($(objpfx)wordexp-tst.out): Likewise.
4681         ($(objpfx)annexc.out): Likewise.
4682         ($(objpfx)tst-fnmatch-mem): Likewise.
4683         ($(objpfx)bug-regex2-mem): Likewise.
4684         ($(objpfx)bug-regex14-mem): Likewise.
4685         ($(objpfx)bug-regex21-mem): Likewise.
4686         ($(objpfx)bug-regex31-mem): Likewise.
4687         ($(objpfx)tst-vfork3-mem): Likewise.
4688         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
4689         ($(objpfx)tst-pcre-mem): Likewise.
4690         ($(objpfx)tst-boost-mem): Likewise.
4691         ($(objpfx)tst-getconf.out): Likewise.
4692         ($(objpfx)bug-ga2-mem): Likewise.
4693         ($(objpfx)bug-glob2-mem): Likewise.
4694         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
4695         ($(objpfx)mtrace-tst-leaks2): Likewise.
4696         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
4697         ($(objpfx)tst-printf.out): Likewise.
4698         ($(objpfx)tst-setvbuf1.out): Likewise.
4699         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
4700         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
4701         ($(objpfx)tst-fmtmsg.out): Likewise.
4702         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
4703         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
4704
4705         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
4706         * bits/sigaction.h [__USE_MISC]: Likewise.
4707         * bits/waitstatus.h: Update #endif comments.
4708         * ctype/ctype.h: Likewise.
4709         * dirent/dirent.h: Likewise.
4710         [__USE_MISC]: Remove redundant conditionals.
4711         * grp/grp.h: Update #endif comments.
4712         [__USE_GNU]: Remove redundant conditionals.
4713         [__USE_MISC]: Likewise.
4714         * inet/netinet/in.h [__USE_GNU]: Likewise.
4715         * io/sys/stat.h [__USE_MISC]: Likewise.
4716         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
4717         * libio/bits/stdio.h: Update #endif comments.
4718         [__USE_MISC]: Remove redundant conditionals.
4719         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
4720         * libio/stdio.h: Update #endif comments.
4721         [__USE_MISC]: Remove redundant conditionals.
4722         * math/bits/math-finite.h [__USE_MISC]: Likewise.
4723         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
4724         * math/math.h: Update #else and #endif comments.
4725         [__USE_MISC]: Remove redundant conditionals.
4726         * misc/sys/uio.h: Update #endif comments.
4727         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
4728         * posix/glob.h [__USE_MISC]: Likewise.
4729         * posix/sys/types.h: Update #endif comments.
4730         [__USE_MISC]: Remove redundant conditionals.
4731         * posix/sys/wait.h: Update #endif comments.
4732         [__USE_MISC]: Remove redundant conditionals.
4733         * posix/unistd.h: Update #endif comments.
4734         [__USE_MISC]: Remove redundant conditionals.
4735         * pwd/pwd.h [__USE_GNU]: Likewise.
4736         [__USE_MISC]: Likewise.
4737         * resolv/netdb.h [__USE_GNU]: Likewise.
4738         * signal/signal.h: Update #endif comments.
4739         [__USE_MISC]: Remove redundant conditionals.
4740         * stdlib/stdlib.h: Update #else and #endif comments.
4741         [__USE_MISC]: Remove redundant conditionals.
4742         [__USE_GNU]: Likewise.
4743         * string/bits/string2.h [__USE_MISC]: Likewise.
4744         * string/string.h: Update #endif comments.
4745         [__USE_MISC]: Remove redundant conditionals.
4746         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
4747         Likewise.
4748         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
4749         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
4750         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
4751         Likewise.
4752         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
4753         Likewise.
4754         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
4755         comments.
4756         [__USE_MISC]: Remove redundant conditionals.
4757         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
4758         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
4759         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
4760         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
4761         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
4762         Likewise.
4763         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
4764         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
4765         Likewise.
4766         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
4767         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
4768         Likewise.
4769         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
4770         Likewise.
4771         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
4772         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
4773         Likewise.
4774         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
4775         Likewise.
4776         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
4777         * sysdeps/x86/bits/string.h: Update #endif comments.
4778         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
4779         conditionals.
4780         * time/sys/time.h: Update #endif comments.
4781         * time/time.h: Likewise.
4782         [__USE_MISC]: Remove redundant conditionals.
4783
4784 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
4785
4786         [BZ #16600]
4787         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
4788
4789 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
4790
4791         * Versions.def (librt): Add GLIBC_2.17.
4792
4793 2014-02-21  Adam Conrad  <adconrad@0c3.net>
4794
4795         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
4796         synonym for _SYS_AUXV_H to allow direct inclusion.
4797         * sysdeps/sparc/bits/hwcap.h: Likewise.
4798         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
4799         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
4800         * sysdeps/sparc/sysdep.h: Likewise.
4801
4802 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4803
4804         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
4805
4806 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4807
4808         * benchtests/bench-strrchr.c: Print length instead of position.
4809
4810 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
4811
4812         [BZ #16611]
4813         * sysdeps/unix/sysv/linux/kernel-features.h
4814         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
4815         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
4816         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
4817         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
4818         Likewise.
4819         [__i386__ || __powerpc__ || __sh__ || __sparc__]
4820         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
4821         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
4822         (__ASSUME_SENDMMSG): Define instead of using previous
4823         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
4824         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
4825         (__ASSUME_SENDMMSG_SYSCALL): Define.
4826         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4827         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
4828         Likewise.
4829         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4830         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4831         Likewise.
4832         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4833         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4834         Likewise.
4835         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
4836         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
4837         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
4838         [__ASSUME_SENDMMSG]: Change conditionals to
4839         [__ASSUME_SENDMMSG_SOCKETCALL].
4840         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4841         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
4842         Define.
4843         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4844         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
4845         Likewise.
4846         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
4847         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
4848         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
4849         [!__ASSUME_SENDMMSG]: Change conditional to
4850         [!__ASSUME_SENDMMSG_SOCKETCALL].
4851         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4852         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4853         Define.
4854
4855         [BZ #16610]
4856         * sysdeps/unix/sysv/linux/kernel-features.h
4857         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
4858         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
4859         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
4860         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
4861         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4862         [__i386__ || __sparc__]
4863         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
4864         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
4865         (__ASSUME_RECVMMSG): Define instead of using previous
4866         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
4867         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
4868         (__ASSUME_RECVMMSG_SYSCALL): Define.
4869         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4870         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4871         Likewise.
4872         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4873         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4874         Likewise.
4875         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4876         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4877         Likewise.
4878         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
4879         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
4880         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
4881         [__ASSUME_RECVMMSG]: Change condition to
4882         [__ASSUME_RECVMMSG_SOCKETCALL].
4883         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4884         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4885         Define.
4886         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
4887         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4888         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4889         Likewise.
4890         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
4891         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
4892         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
4893         [!__ASSUME_RECVMMSG]: Change condition to
4894         [!__ASSUME_RECVMMSG_SOCKETCALL].
4895         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4896         (__ASSUME_RECVMMSG_SYSCALL): Define.
4897
4898         [BZ #16609]
4899         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
4900         __powerpc__ || __s390__ || __sh__ || __sparc__]
4901         (__ASSUME_SOCKETCALL): Define.
4902         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
4903         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
4904         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
4905         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
4906         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4907         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
4908         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
4909         (__ASSUME_ACCEPT4): Define instead of using previous
4910         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
4911         __powerpc__ || __sparc__ || __s390__)] condition.
4912         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
4913         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
4914         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
4915         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
4916         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
4917         [!__ASSUME_ACCEPT4]: Change condition to
4918         [!__ASSUME_ACCEPT4_SOCKETCALL].
4919         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4920         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
4921         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
4922         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4923         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
4924         __ASSUME_ACCEPT4_SYSCALL.
4925         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
4926         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
4927         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4928         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
4929         __ASSUME_ACCEPT4_SYSCALL.
4930         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
4931         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
4932         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
4933         [__ASSUME_ACCEPT4]: Change condition to
4934         [__ASSUME_ACCEPT4_SOCKETCALL].
4935         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4936         (__ASSUME_SOCKETCALL): Define.
4937         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
4938         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4939         (__ASSUME_SOCKETCALL): Define.
4940         (__ASSUME_ACCEPT4): Remove.
4941         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
4942         Define.
4943         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4944         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
4945         Likewise.
4946         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4947         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
4948
4949         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
4950         macro.
4951         (HWCAP_ARM_LPAE): Likewise.
4952         (HWCAP_ARM_EVTSTRM): Likewise.
4953         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
4954         Add vpfd32, lpae and evtstrm.
4955         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
4956         Increase to 22.
4957
4958 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
4959
4960         * math/auto-libm-test-in: Add tests of clog10.
4961         * math/auto-libm-test-out: Regenerated.
4962         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
4963         * sysdeps/i386/fpu/libm-test-ulps: Update.
4964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4965
4966 2014-02-18  Andreas Schwab  <schwab@suse.de>
4967
4968         [BZ #16574]
4969         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
4970         Store non-zero if the second buffer was newly allocated.
4971         (send_dg): Likewise.
4972         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
4973         to send_vc and send_dg.
4974         (res_nsend): Pass NULL for ansp2_malloced.
4975         * resolv/res_query.c (__libc_res_nquery): Add parameter
4976         answerp2_malloced and pass it down to __libc_res_nsend.
4977         (res_nquery): Pass additional NULL to __libc_res_nquery.
4978         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
4979         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
4980         second answer buffer if answerp2_malloced was set.
4981         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
4982         (__libc_res_nquerydomain): Add parameter
4983         answerp2_malloced and pass it down to __libc_res_nquery.
4984         (res_nquerydomain): Pass additional NULL to
4985         __libc_res_nquerydomain.
4986         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
4987         additional NULL to __libc_res_nsend and __libc_res_nquery.
4988         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
4989         additional NULL to __libc_res_nsearch.
4990         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
4991         parameter of __libc_res_nsearch to check for separately allocated
4992         second buffer.
4993         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
4994         __libc_res_nquery.
4995         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
4996         additional NULL to __libc_res_nquery.
4997         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
4998         __libc_res_nsearch.
4999         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
5000         * include/resolv.h: Update prototypes of __libc_res_nquery,
5001         __libc_res_nsearch, __libc_res_nsend.
5002
5003 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
5004
5005         * math/auto-libm-test-in: Add tests of fma.
5006         * math/auto-libm-test-out: Regenerated.
5007         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
5008         (fma_towardzero_test_data): Likewise.
5009         (fma_downward_test_data): Likewise.
5010         (fma_upward_test_data): Likewise.
5011         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
5012         mpc_mode.
5013         (rounding_modes): Add values for new field.
5014         (func_calc_method): Add value mpfr_fff_f.
5015         (func_calc_desc): Add mpfr_fff_f union field.
5016         (test_function): Add field exact_args.
5017         (FUNC): Add macro argument EXACT_ARGS.
5018         (FUNC_mpfr_f_f): Update call to FUNC.
5019         (FUNC_mpfr_f_f): Likewise.
5020         (FUNC_mpfr_ff_f): Likewise.
5021         (FUNC_mpfr_if_f): Likewise.
5022         (FUNC_mpc_c_f): Likewise.
5023         (FUNC_mpc_c_c): Likewise.
5024         (test_functions): Add fma.  Update calls to FUNC.
5025         (handle_input_arg): Add argument exact_args.
5026         (add_test): Update call to handle_input_arg.
5027         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
5028         (output_for_one_input_case): Update call to calc_generic_results.
5029         Recalculate exact zero results in each rounding mode.
5030
5031         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
5032         non-negative before setting low bit.
5033         * math/auto-libm-test-in: Mark one asin test possibly having
5034         spurious underflow.
5035         * math/auto-libm-test-out: Regenerated.
5036         * sysdeps/i386/fpu/libm-test-ulps: Update.
5037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5038
5039 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
5040
5041         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
5042         * sysdeps/unix/sysv/linux/microblaze: Move directory from
5043         ports/sysdeps/unix/sysv/linux/microblaze.
5044         * README: Add missing listing for microblaze*-*-linux-gnu.
5045
5046 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
5047
5048         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
5049         * sysdeps/unix/sysv/linux/ia64: Move directory from
5050         ports/sysdeps/unix/sysv/linux/ia64.
5051         * README: Update listing for ia64-*-linux-gnu.
5052
5053 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
5054             Joseph Myers  <joseph@codesourcery.com>
5055
5056         * Makeconfig (test-name): New variable.
5057         (evaluate-test): Likewise.
5058         * Makerules (do-test-clean): Remove .test-result files.
5059         (common-mostlyclean): Likewise.
5060         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
5061         * scripts/evaluate-test.sh: New file.
5062
5063 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
5064
5065         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
5066         separate $(objpfx)tst-fopenloc-cmp.out and
5067         $(objpfx)tst-fopenloc-mem.out targets.
5068         (tests): Update dependencies.
5069         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
5070         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
5071         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
5072         (tst-rxspencer-no-utf8-ARGS): New variable.
5073         (tst-rxspencer-no-utf8-ENV): Likewise.
5074         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
5075         instead of $(objpfx)tst-rxspencer-mem.
5076         ($(objpfx)tst-rxspencer-mem): Change target to
5077         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
5078         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
5079         * posix/tst-rxspencer-no-utf8.c: New file.
5080
5081         * elf/Makefile ($(objpfx)order.out): Remove rule.
5082         [$(run-built-tests) = yes] (tests): Depend on
5083         $(objpfx)order-cmp.out.
5084         ($(objpfx)order-cmp.out): New rule.
5085         [$(run-built-tests) = yes] (tests): Depend on
5086         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
5087         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
5088         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
5089         $(objpfx)tst-array5-static-cmp.out.
5090         ($(objpfx)tst-array1.out): Remove rule.
5091         ($(objpfx)tst-array1-cmp.out): New rule.
5092         ($(objpfx)tst-array1-static.out): Remove rule.
5093         ($(objpfx)tst-array1-static-cmp.out): New rule.
5094         ($(objpfx)tst-array2.out): Remove rule.
5095         ($(objpfx)tst-array2-cmp.out): New rule.
5096         ($(objpfx)tst-array3.out): Remove rule.
5097         ($(objpfx)tst-array3-cmp.out): New rule.
5098         ($(objpfx)tst-array4.out): Remove rule.
5099         ($(objpfx)tst-array4-cmp.out): New rule.
5100         ($(objpfx)tst-array5.out): Remove rule.
5101         ($(objpfx)tst-array5-cmp.out): New rule.
5102         ($(objpfx)tst-array5-static.out): Remove rule.
5103         ($(objpfx)tst-array5-static-cmp.out): New rule.
5104         [$(run-built-tests) = yes] (tests): Depend on
5105         $(objpfx)order2-cmp.out.
5106         ($(objpfx)order2.out): Remove rule.
5107         ($(objpfx)order2-cmp.out): New rule.
5108         ($(objpfx)tst-initorder.out): Remove rule.
5109         [$(run-built-tests) = yes] (tests): Depend on
5110         $(objpfx)tst-initorder-cmp.out.
5111         ($(objpfx)tst-initorder-cmp.out): New rule.
5112         ($(objpfx)tst-initorder2.out): Remove rule.
5113         [$(run-built-tests) = yes] (tests): Depend on
5114         $(objpfx)tst-initorder2-cmp.out.
5115         ($(objpfx)tst-initorder2-cmp.out): New rule.
5116         [$(run-built-tests) = yes] (tests): Depend on
5117         $(objpfx)tst-unused-dep-cmp.out.
5118         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
5119         ($(objpfx)tst-unused-dep-cmp.out): New rule.
5120         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
5121         on $(objpfx)tst-setvbuf1-cmp.out.
5122         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
5123         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
5124         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
5125         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
5126         ($(objpfx)tst-svc.out): Remove rule.
5127         ($(objpfx)tst-svc-cmp.out): New rule.
5128
5129 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
5130
5131         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
5132         * ctype/ctype.h [__USE_MISC]: Likewise.
5133         * dirent/dirent.h [__USE_MISC]: Likewise.
5134         * grp/grp.h [__USE_MISC]: Likewise.
5135         * io/fcntl.h [__USE_MISC]: Likewise.
5136         * io/sys/stat.h [__USE_MISC]: Likewise.
5137         * libio/stdio.h [__USE_MISC]: Likewise.
5138         * posix/unistd.h [__USE_MISC]: Likewise.
5139         * pwd/pwd.h [__USE_MISC]: Likewise.
5140         * stdlib.h [__USE_MISC]: Likewise.
5141         * string/bits/string2.h [__USE_MISC]: Likewise.
5142         * string/string.h [__USE_MISC]: Likewise.
5143         * time/time.h [__USE_MISC]: Likewise.
5144
5145 2014-02-13  Andreas Schwab  <schwab@suse.de>
5146
5147         [BZ #16574]
5148         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
5149         second answer buffer if it was separately allocated.
5150
5151 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
5152
5153         * sysdeps/mips/math-tests.h: Include <features.h>.
5154         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
5155         (ROUNDING_TESTS_long_double): Do not define.
5156         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
5157         (EXCEPTION_TESTS_long_double): Likewise.
5158         * sysdeps/mips/mips64/libm-test-ulps: Update.
5159
5160         * include/features.h (__USE_BSD): Remove macro definitions.
5161         (__USE_SVID): Likewise.
5162         (_BSD_SOURCE): Likewise.
5163         (_SVID_SOURCE): Likewise.
5164         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
5165         from definition of _DEFAULT_SOURCE.
5166         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
5167         [_DEFAULT_SOURCE].
5168         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
5169         * bits/mman.h [__USE_BSD]: Likewise.
5170         * bits/termios.h [__USE_BSD]: Likewise.
5171         * bits/waitstatus.h [__USE_BSD]: Likewise.
5172         * ctype/ctype.h [__USE_SVID]: Likewise.
5173         * dirent/dirent.h [__USE_BSD]: Likewise.
5174         * grp/grp.h [__USE_SVID]: Likewise.
5175         [__USE_BSD]: Likewise.
5176         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
5177         * io/fcntl.h [__USE_BSD]: Likewise.
5178         * io/ftw.h [__USE_BSD]: Likewise.
5179         * io/sys/stat.h [__USE_BSD]: Likewise.
5180         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
5181         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
5182         * libio/stdio.h [__USE_SVID]: Likewise.
5183         [__USE_BSD]: Likewise.
5184         * math/math.h [__USE_SVID]: Likewise.
5185         [__USE_BSD]: Likewise.
5186         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
5187         * misc/bits/syslog.h [__USE_BSD]: Likewise.
5188         * misc/search.h [__USE_SVID]: Likewise.
5189         * misc/sys/mman.h [__USE_BSD]: Likewise.
5190         * misc/sys/syslog.h [__USE_BSD]: Likewise.
5191         * misc/sys/uio.h [__USE_BSD]: Likewise.
5192         * posix/bits/unistd.h [__USE_BSD]: Likewise.
5193         * posix/glob.h [__USE_BSD]: Likewise.
5194         * posix/regex.h [__USE_BSD]: Likewise.
5195         * posix/sys/types.h [__USE_BSD]: Likewise.
5196         [__USE_SVID]: Likewise.
5197         * posix/sys/utsname.h [__USE_SVID]: Likewise.
5198         * posix/sys/wait.h [__USE_BSD]: Likewise.
5199         [__USE_SVID]: Likewise.
5200         * posix/unistd.h [__USE_BSD]: Likewise.
5201         [__USE_SVID]: Likewise.
5202         * pwd/pwd.h [__USE_SVID]: Likewise.
5203         * resolv/netdb.h [__USE_BSD]: Likewise.
5204         * setjmp/setjmp.h [__USE_BSD]: Likewise.
5205         * signal/signal.h [__USE_BSD]: Likewise.
5206         [__USE_SVID]: Likewise.
5207         * socket/sys/socket.h [__USE_BSD]: Likewise.
5208         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
5209         * stdlib/stdlib.h [__USE_BSD]: Likewise.
5210         [__USE_SVID]: Likewise.
5211         * string/bits/string2.h [__USE_BSD]: Likewise.
5212         [__USE_SVID]: Likewise.
5213         * string/bits/string3.h [__USE_BSD]: Likewise.
5214         * string/endian.h [__USE_BSD]: Likewise.
5215         * string/string.h [__USE_SVID]: Likewise.
5216         [__USE_BSD]: Likewise.
5217         * string/strings.h [__USE_BSD]: Likewise.
5218         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
5219         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
5220         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
5221         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
5222         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
5223         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
5224         Likewise.
5225         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
5226         Likewise.
5227         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
5228         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
5229         Likewise.
5230         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
5231         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
5232         Likewise.
5233         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
5234         Likewise.
5235         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
5236         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
5237         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
5238         Likewise.
5239         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
5240         Likewise.
5241         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
5242         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
5243         * termios/termios.h [__USE_BSD]: Likewise.
5244         * time/sys/time.h [__USE_BSD]: Likewise.
5245         * time/time.h [__USE_BSD]: Likewise.
5246         [__USE_SVID]: Likewise.
5247
5248         * Makefile (subdir_targets): Remove subdir_lint.out.
5249
5250         * stdio-common/Makefile (do-tst-unbputc): Remove target.
5251         (do-tst-printf): Likewise.
5252         (tests): Depend directly on $(objpfx)tst-unbputc.out and
5253         $(objpfx)tst-printf.out.
5254
5255         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
5256
5257         * Makerules (check-abi-%): Change target to
5258         $(objpfx)check-abi-%.out.
5259         (check-abi target): Update dependencies.
5260         (check-abi-pattern variable): Redirect output of diff to $@.
5261         (check-abi variable): Likewise.
5262         * elf/Makefile (check-abi): Update dependencies.
5263
5264         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
5265         unused.
5266         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
5267         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
5268         subnormal range.
5269         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
5270         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
5271         value has largest subnormal exponent.
5272         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
5273         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
5274         * sysdeps/aarch64/soft-fp/sfp-machine.h
5275         (_FP_TININESS_AFTER_ROUNDING): New macro.
5276         * sysdeps/alpha/soft-fp/sfp-machine.h
5277         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5278         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
5279         Likewise.
5280         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
5281         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5282         * sysdeps/mips/soft-fp/sfp-machine.h
5283         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5284         * sysdeps/powerpc/soft-fp/sfp-machine.h
5285         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5286         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
5287         Likewise.
5288         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5289         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5290         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5291         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5292         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
5293         Likewise.
5294
5295 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
5296
5297         [BZ #16545]
5298         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
5299         model 1.
5300
5301 2014-02-12  Richard Henderson  <rth@redhat.com>
5302
5303         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
5304         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
5305         * sysdeps/unix/sysv/linux/alpha: Move directory from
5306         ports/sysdeps/unix/sysv/linux/alpha.
5307         * README: Update listing for alpha-*-linux-gnu.
5308
5309 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
5310
5311         * include/features.h: Update comment documenting feature test
5312         macros.
5313         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
5314         _DEFAULT_SOURCE.
5315         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
5316         (_SVID_SOURCE): Likewise.
5317         (_DEFAULT_SOURCE): Update description of default features.
5318         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
5319         with _GNU_SOURCE.
5320         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
5321         (S_ISVTX): Likewise.
5322         * manual/math.texi (Mathematical Constants): Likewise.
5323         * manual/signal.texi (Interrupted Primitives): Likewise.
5324         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
5325         * math/test-matherr.c (_SVID_SOURCE): Do not define.
5326         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
5327         Don't refer to _SVID_SOURCE in warning text.
5328
5329         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5330
5331         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
5332         already defined.
5333         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
5334         * sysdeps/mips/dl-lookup.c: Remove.
5335         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
5336
5337 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
5338
5339         [BZ #16447]
5340         * math/auto-libm-test-in: Add testcase for expl.
5341         * math/auto-libm-test-out: Regenerate.
5342         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
5343         calculation of unsafe.
5344         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
5345
5346 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5347
5348         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
5349         * sysdeps/unix/sysv/linux/aarch64: Move directory from
5350         ports/sysdeps/unix/sysv/linux/aarch64.
5351         * README: Update listing for aarch64*-*-linux-gnu.
5352
5353 2014-02-11  Will Newton  <will.newton@linaro.org>
5354
5355         * manual/probes.texi (Mathematical Function Probes): Use
5356         "triggered" instead of "hit".
5357
5358         * manual/probes.texi (Internal Probes): Add documentation
5359         of setjmp, longjmp and longjmp_target probes.
5360
5361         * include/stap-probe.h: Add comment about probe argument
5362         format.
5363
5364         * malloc/mtrace.c (attribute_hidden): Remove unused macro
5365         definition.  (tr_where, tr_freehook, tr_mallochook,
5366         tr_reallochook, tr_memalignhook): Use ANSI protoype.
5367
5368 2014-02-11  David S. Miller  <davem@davemloft.net>
5369
5370         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
5371         processing int_tests.
5372
5373 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
5374
5375         * sysdeps/mips: Move directory from ports/sysdeps/mips.
5376         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
5377         * sysdeps/unix/sysv/linux/mips: Move directory from
5378         ports/sysdeps/unix/sysv/linux/mips.
5379         * README: Update listing for mips-*-linux-gnu and
5380         mips64-*-linux-gnu.
5381
5382 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
5383
5384         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
5385         * sysdeps/unix/sysv/linux/m68k: Move directory from
5386         ports/sysdeps/unix/sysv/linux/m68k.
5387         * README: Update listing for m68k-*-linux-gnu.
5388
5389 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
5390
5391         * sysdeps/tile: Move directory from ports/sysdeps/tile.
5392         * sysdeps/unix/sysv/linux/generic: Move directory from
5393         ports/sysdeps/unix/sysv/linux/generic.
5394         * sysdeps/unix/sysv/linux/tile: Move directory from
5395         ports/sysdeps/unix/sysv/linux/tile.
5396         * README: Update listing for tile*-*-linux-gnu.
5397
5398 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
5399
5400         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
5401         __builtin_expect.
5402         * benchtests/bench-memmem.c (simple_memmem): Likewise.
5403         * catgets/open_catalog.c (__open_catalog): Likewise.
5404         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
5405         * debug/confstr_chk.c: Likewise.
5406         * debug/fread_chk.c (__fread_chk): Likewise.
5407         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
5408         * debug/getgroups_chk.c: Likewise.
5409         * debug/mbsnrtowcs_chk.c: Likewise.
5410         * debug/mbsrtowcs_chk.c: Likewise.
5411         * debug/mbstowcs_chk.c: Likewise.
5412         * debug/memcpy_chk.c: Likewise.
5413         * debug/memmove_chk.c: Likewise.
5414         * debug/mempcpy_chk.c: Likewise.
5415         * debug/memset_chk.c: Likewise.
5416         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
5417         * debug/strcat_chk.c (__strcat_chk): Likewise.
5418         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
5419         * debug/strncat_chk.c (__strncat_chk): Likewise.
5420         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
5421         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
5422         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
5423         * debug/wcpncpy_chk.c: Likewise.
5424         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
5425         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
5426         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
5427         * debug/wcsncpy_chk.c: Likewise.
5428         * debug/wcsnrtombs_chk.c: Likewise.
5429         * debug/wcsrtombs_chk.c: Likewise.
5430         * debug/wcstombs_chk.c: Likewise.
5431         * debug/wmemcpy_chk.c: Likewise.
5432         * debug/wmemmove_chk.c: Likewise.
5433         * debug/wmempcpy_chk.c: Likewise.
5434         * debug/wmemset_chk.c: Likewise.
5435         * dirent/scandirat.c (SCANDIRAT): Likewise.
5436         * dlfcn/dladdr1.c (dladdr1): Likewise.
5437         * dlfcn/dladdr.c (dladdr): Likewise.
5438         * dlfcn/dlclose.c (dlclose_doit): Likewise.
5439         * dlfcn/dlerror.c (__dlerror): Likewise.
5440         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5441         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
5442         * dlfcn/dlopen.c (dlopen_doit): Likewise.
5443         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
5444         * dlfcn/dlsym.c (dlsym_doit): Likewise.
5445         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
5446         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
5447         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
5448         Likewise.
5449         * elf/dl-conflict.c: Likewise.
5450         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
5451         * elf/dl-dst.h: Likewise.
5452         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
5453         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
5454         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
5455         * elf/dl-init.c (call_init, _dl_init): Likewise.
5456         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
5457         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
5458         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
5459         Likewise.
5460         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
5461         Likewise.
5462         * elf/dl-minimal.c (__libc_memalign): Likewise.
5463         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
5464         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5465         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
5466         * elf/dl-sym.c (do_sym): Likewise.
5467         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
5468         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
5469         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
5470         * elf/dl-writev.h (_dl_writev): Likewise.
5471         * elf/ldconfig.c (search_dir): Likewise.
5472         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
5473         (dl_main): Likewise.
5474         * elf/setup-vdso.h (setup_vdso): Likewise.
5475         * grp/compat-initgroups.c (compat_call): Likewise.
5476         * grp/fgetgrent.c (fgetgrent): Likewise.
5477         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
5478         * grp/putgrent.c (putgrent): Likewise.
5479         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
5480         Likewise.
5481         * hurd/hurdinit.c: Likewise.
5482         * iconvdata/8bit-gap.c (struct): Likewise.
5483         * iconvdata/ansi_x3.110.c : Likewise.
5484         * iconvdata/big5.c : Likewise.
5485         * iconvdata/big5hkscs.c : Likewise.
5486         * iconvdata/cp1255.c: Likewise.
5487         * iconvdata/cp1258.c : Likewise.
5488         * iconvdata/cp932.c : Likewise.
5489         * iconvdata/euc-cn.c: Likewise.
5490         * iconvdata/euc-jisx0213.c : Likewise.
5491         * iconvdata/euc-jp.c: Likewise.
5492         * iconvdata/euc-jp-ms.c : Likewise.
5493         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
5494         * iconvdata/gb18030.c : Likewise.
5495         * iconvdata/gbbig5.c (const): Likewise.
5496         * iconvdata/gbgbk.c: Likewise.
5497         * iconvdata/gbk.c : Likewise.
5498         * iconvdata/ibm1364.c : Likewise.
5499         * iconvdata/ibm930.c : Likewise.
5500         * iconvdata/ibm932.c: Likewise.
5501         * iconvdata/ibm933.c : Likewise.
5502         * iconvdata/ibm935.c : Likewise.
5503         * iconvdata/ibm937.c : Likewise.
5504         * iconvdata/ibm939.c : Likewise.
5505         * iconvdata/ibm943.c: Likewise.
5506         * iconvdata/iso_11548-1.c: Likewise.
5507         * iconvdata/iso-2022-cn.c : Likewise.
5508         * iconvdata/iso-2022-cn-ext.c : Likewise.
5509         * iconvdata/iso-2022-jp-3.c: Likewise.
5510         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
5511         * iconvdata/iso-2022-kr.c : Likewise.
5512         * iconvdata/iso646.c (gconv_end): Likewise.
5513         * iconvdata/iso_6937-2.c : Likewise.
5514         * iconvdata/iso_6937.c : Likewise.
5515         * iconvdata/iso8859-1.c: Likewise.
5516         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
5517         * iconvdata/shift_jisx0213.c : Likewise.
5518         * iconvdata/sjis.c : Likewise.
5519         * iconvdata/t.61.c : Likewise.
5520         * iconvdata/tcvn5712-1.c : Likewise.
5521         * iconvdata/tscii.c: Likewise.
5522         * iconvdata/uhc.c : Likewise.
5523         * iconvdata/unicode.c (gconv_end): Likewise.
5524         * iconvdata/utf-16.c (gconv_end): Likewise.
5525         * iconvdata/utf-32.c (gconv_end): Likewise.
5526         * iconvdata/utf-7.c (base64): Likewise.
5527         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5528         * iconv/gconv_close.c (__gconv_close): Likewise.
5529         * iconv/gconv_open.c (__gconv_open): Likewise.
5530         * iconv/gconv_simple.c (internal_ucs4_loop_single)
5531         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
5532         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
5533         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
5534         (ucs4le_internal_loop_single): Likewise.
5535         * iconv/iconv.c (iconv): Likewise.
5536         * iconv/iconv_close.c: Likewise.
5537         * iconv/loop.c (SINGLE): Likewise.
5538         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
5539         * include/atomic.h: Likewise.
5540         * inet/inet6_option.c (option_alloc): Likewise.
5541         * intl/bindtextdom.c (set_binding_values): Likewise.
5542         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
5543         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5544         * intl/localealias.c (read_alias_file): Likewise.
5545         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
5546         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
5547         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
5548         * libio/fmemopen.c (fmemopen): Likewise.
5549         * libio/iofgets.c (_IO_fgets): Likewise.
5550         * libio/iofgets_u.c (fgets_unlocked): Likewise.
5551         * libio/iofgetws.c (fgetws): Likewise.
5552         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
5553         * libio/iogetdelim.c (_IO_getdelim): Likewise.
5554         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
5555         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
5556         * locale/findlocale.c (_nl_find_locale): Likewise.
5557         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
5558         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
5559         Likewise.
5560         * locale/setlocale.c (setlocale): Likewise.
5561         * login/programs/pt_chown.c (main): Likewise.
5562         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
5563         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
5564         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
5565         (mmap, mmap64, mremap, munmap): Likewise.
5566         * math/e_exp2l.c: Likewise.
5567         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
5568         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
5569         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
5570         * math/s_catan.c (__catan): Likewise.
5571         * math/s_catanf.c (__catanf): Likewise.
5572         * math/s_catanh.c (__catanh): Likewise.
5573         * math/s_catanhf.c (__catanhf): Likewise.
5574         * math/s_catanhl.c (__catanhl): Likewise.
5575         * math/s_catanl.c (__catanl): Likewise.
5576         * math/s_ccosh.c (__ccosh): Likewise.
5577         * math/s_ccoshf.c (__ccoshf): Likewise.
5578         * math/s_ccoshl.c (__ccoshl): Likewise.
5579         * math/s_cexp.c (__cexp): Likewise.
5580         * math/s_cexpf.c (__cexpf): Likewise.
5581         * math/s_cexpl.c (__cexpl): Likewise.
5582         * math/s_clog10.c (__clog10): Likewise.
5583         * math/s_clog10f.c (__clog10f): Likewise.
5584         * math/s_clog10l.c (__clog10l): Likewise.
5585         * math/s_clog.c (__clog): Likewise.
5586         * math/s_clogf.c (__clogf): Likewise.
5587         * math/s_clogl.c (__clogl): Likewise.
5588         * math/s_csin.c (__csin): Likewise.
5589         * math/s_csinf.c (__csinf): Likewise.
5590         * math/s_csinh.c (__csinh): Likewise.
5591         * math/s_csinhf.c (__csinhf): Likewise.
5592         * math/s_csinhl.c (__csinhl): Likewise.
5593         * math/s_csinl.c (__csinl): Likewise.
5594         * math/s_csqrt.c (__csqrt): Likewise.
5595         * math/s_csqrtf.c (__csqrtf): Likewise.
5596         * math/s_csqrtl.c (__csqrtl): Likewise.
5597         * math/s_ctan.c (__ctan): Likewise.
5598         * math/s_ctanf.c (__ctanf): Likewise.
5599         * math/s_ctanh.c (__ctanh): Likewise.
5600         * math/s_ctanhf.c (__ctanhf): Likewise.
5601         * math/s_ctanhl.c (__ctanhl): Likewise.
5602         * math/s_ctanl.c (__ctanl): Likewise.
5603         * math/w_pow.c: Likewise.
5604         * math/w_powf.c: Likewise.
5605         * math/w_powl.c: Likewise.
5606         * math/w_scalb.c (sysv_scalb): Likewise.
5607         * math/w_scalbf.c (sysv_scalbf): Likewise.
5608         * math/w_scalbl.c (sysv_scalbl): Likewise.
5609         * misc/error.c (error_tail): Likewise.
5610         * misc/pselect.c (__pselect): Likewise.
5611         * nis/nis_callback.c (__nis_create_callback): Likewise.
5612         * nis/nis_call.c (__nisfind_server): Likewise.
5613         * nis/nis_creategroup.c (nis_creategroup): Likewise.
5614         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
5615         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5616         * nis/nis_getservlist.c (nis_getservlist): Likewise.
5617         * nis/nis_lookup.c (nis_lookup): Likewise.
5618         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
5619         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
5620         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
5621         * nis/nis_xdr.c (xdr_endpoint): Likewise.
5622         * nis/nss_compat/compat-grp.c (getgrent_next_file)
5623         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
5624         * nis/nss_compat/compat-initgroups.c (add_group)
5625         (internal_getgrent_r): Likewise.
5626         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
5627         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
5628         * nis/nss_compat/compat-spwd.c (getspent_next_file)
5629         (internal_getspnam_r): Likewise.
5630         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
5631         (_nss_nis_getaliasbyname_r): Likewise.
5632         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
5633         (_nss_nis_getntohost_r): Likewise.
5634         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
5635         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
5636         (_nss_nis_getgrgid_r): Likewise.
5637         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
5638         (internal_nis_gethostent_r, internal_gethostbyname2_r)
5639         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
5640         (_nss_nis_gethostbyname4_r): Likewise.
5641         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
5642         (initgroups_netid): Likewise.
5643         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
5644         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
5645         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
5646         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
5647         (_nss_nis_getprotobynumber_r): Likewise.
5648         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
5649         (_nss_nis_getsecretkey): Likewise.
5650         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
5651         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
5652         (_nss_nis_getpwuid_r): Likewise.
5653         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
5654         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
5655         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
5656         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
5657         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
5658         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
5659         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
5660         Likewise.
5661         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
5662         (_nss_nisplus_getntohost_r): Likewise.
5663         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
5664         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
5665         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
5666         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
5667         Likewise.
5668         * nis/nss_nisplus/nisplus-initgroups.c
5669         (_nss_nisplus_initgroups_dyn): Likewise.
5670         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
5671         (_nss_nisplus_getnetbyaddr_r): Likewise.
5672         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
5673         (_nss_nisplus_getprotobynumber_r): Likewise.
5674         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
5675         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
5676         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
5677         Likewise.
5678         * nis/nss_nisplus/nisplus-service.c
5679         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
5680         (_nss_nisplus_getservbyport_r): Likewise.
5681         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
5682         (_nss_nisplus_getspnam_r): Likewise.
5683         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
5684         Likewise.
5685         * nscd/aicache.c (addhstaiX): Likewise.
5686         * nscd/cache.c (cache_search, prune_cache): Likewise.
5687         * nscd/connections.c (register_traced_file, send_ro_fd)
5688         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
5689         (main_loop_epoll): Likewise.
5690         * nscd/grpcache.c (addgrbyX): Likewise.
5691         * nscd/hstcache.c (addhstbyX): Likewise.
5692         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5693         * nscd/mem.c (gc, mempool_alloc): Likewise.
5694         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
5695         (addinnetgrX): Likewise.
5696         * nscd/nscd-client.h (__nscd_acquire_maplock)
5697         (__nscd_drop_map_ref): Likewise.
5698         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5699         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5700         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
5701         Likewise.
5702         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5703         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5704         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
5705         (__nscd_get_map_ref): Likewise.
5706         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
5707         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
5708         Likewise.
5709         * nscd/pwdcache.c (addpwbyX): Likewise.
5710         * nscd/selinux.c (preserve_capabilities): Likewise.
5711         * nscd/servicescache.c (addservbyX): Likewise.
5712         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
5713         * posix/fnmatch.c (fnmatch): Likewise.
5714         * posix/getopt.c (_getopt_internal_r): Likewise.
5715         * posix/glob.c (glob, glob_in_dir): Likewise.
5716         * posix/wordexp.c (exec_comm_child): Likewise.
5717         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
5718         (getanswer_r, gaih_getanswer_slice): Likewise.
5719         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
5720         * resolv/res_init.c: Likewise.
5721         * resolv/res_mkquery.c (res_nmkquery): Likewise.
5722         * resolv/res_query.c (__libc_res_nquery): Likewise.
5723         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
5724         Likewise.
5725         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
5726         * stdio-common/perror.c (perror): Likewise.
5727         * stdio-common/printf_fp.c (___printf_fp): Likewise.
5728         * stdio-common/tmpnam.c (tmpnam): Likewise.
5729         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
5730         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
5731         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
5732         Likewise.
5733         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
5734         * stdlib/putenv.c (putenv): Likewise.
5735         * stdlib/setenv.c (__add_to_environ): Likewise.
5736         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
5737         * stdlib/strtol_l.c (INTERNAL): Likewise.
5738         * string/memmem.c (memmem): Likewise.
5739         * string/strerror.c (strerror): Likewise.
5740         * string/strnlen.c (__strnlen): Likewise.
5741         * string/test-memmem.c (simple_memmem): Likewise.
5742         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
5743         * sunrpc/pm_getport.c (__get_socket): Likewise.
5744         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
5745         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
5746         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
5747         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
5748         Likewise.
5749         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5750         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
5751         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
5752         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
5753         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
5754         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
5755         Likewise.
5756         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
5757         Likewise.
5758         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
5759         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
5760         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
5761         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
5762         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5763         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
5764         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
5765         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
5766         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
5767         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5768         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5769         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
5770         Likewise.
5771         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
5772         Likewise.
5773         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
5774         Likewise.
5775         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
5776         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5777         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
5778         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
5779         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5780         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
5781         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5782         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
5783         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
5784         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
5785         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
5786         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5787         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
5788         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
5789         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5790         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5791         Likewise.
5792         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
5793         Likewise.
5794         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
5795         Likewise.
5796         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
5797         Likewise.
5798         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5799         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5800         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
5801         Likewise.
5802         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
5803         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
5804         * sysdeps/posix/opendir.c (__opendirat): Likewise.
5805         * sysdeps/posix/sleep.c: Likewise.
5806         * sysdeps/posix/tempname.c: Likewise.
5807         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
5808         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
5809         Likewise.
5810         * sysdeps/powerpc/powerpc32/dl-machine.h
5811         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
5812         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
5813         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5814         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
5815         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
5816         Likewise.
5817         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
5818         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
5819         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
5820         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
5821         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
5822         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
5823         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
5824         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
5825         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5826         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
5827         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
5828         (elf_machine_lazy_rel): Likewise.
5829         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
5830         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
5831         (elf_machine_lazy_rel): Likewise.
5832         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
5833         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
5834         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
5835         * sysdeps/unix/grantpt.c (grantpt): Likewise.
5836         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
5837         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
5838         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
5839         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5840         Likewise.
5841         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
5842         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
5843         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
5844         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
5845         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
5846         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
5847         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
5848         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
5849         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
5850         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
5851         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
5852         Likewise.
5853         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
5854         (__posix_fallocate64_l64): Likewise.
5855         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
5856         (posix_fallocate): Likewise.
5857         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
5858         Likewise.
5859         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5860         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
5861         (getifaddrs_internal): Likewise.
5862         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
5863         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
5864         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
5865         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
5866         * sysdeps/unix/sysv/linux/posix_fallocate64.c
5867         (__posix_fallocate64_l64): Likewise.
5868         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
5869         Likewise.
5870         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
5871         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
5872         (__get_clockfreq): Likewise.
5873         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
5874         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
5875         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
5876         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
5877         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5878         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
5879         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
5880         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
5881         Likewise.
5882         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
5883         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
5884         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
5885         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
5886         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
5887         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
5888         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
5889         Likewise.
5890         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5891         (posix_fallocate): Likewise.
5892         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5893         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
5894         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
5895         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
5896         (elf_machine_rela, elf_machine_rela_relative)
5897         (elf_machine_lazy_rel): Likewise.
5898         * time/asctime.c (asctime_internal): Likewise.
5899         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
5900         * time/tzset.c (__tzset_parse_tz): Likewise.
5901         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
5902         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
5903         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
5904         * wcsmbs/wcsmbsload.h: Likewise.
5905
5906         [BZ #15894]
5907         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
5908
5909         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
5910         (arena_get2): Remove THREAD_STATS conditionals.
5911         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
5912         (__malloc_stats, int): Likewise.
5913
5914 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
5915
5916         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
5917         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
5918
5919         * manual/setjmp.texi: Fix typos/grammar errors.
5920
5921         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
5922         Only return early when n is <= 0.  Delete unused return statement.
5923
5924         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
5925         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
5926         * debug/tst-longjmp_chk3.c: New file.
5927
5928         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
5929         (test_main): Replace code with set_fortify_handler call.
5930         * debug/test-strcpy_chk.c: Likewise.
5931         * debug/tst-chk1.c: Likewise.
5932         * debug/tst-longjmp_chk.c: Likewise.
5933         * test-skeleton.c: Include fcntl.h & paths.h
5934         (set_fortify_handler): Define.
5935
5936         * debug/tst-longjmp_chk.c: Add header comment and include
5937         ../test-skeleton.c.
5938         (do_test): Mark static.
5939         (TEST_FUNCTION): Define.
5940
5941         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
5942         (IP_PMTUDISC_INTERFACE): Likewise.
5943         (IP_MULTICAST_IF): Likewise.
5944         (IP_MULTICAST_TTL): Likewise.
5945         (IP_MULTICAST_LOOP): Likewise.
5946         (IP_ADD_MEMBERSHIP): Likewise.
5947         (IP_DROP_MEMBERSHIP): Likewise.
5948         (IP_UNBLOCK_SOURCE): Likewise.
5949         (IP_BLOCK_SOURCE): Likewise.
5950         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
5951         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
5952         (IP_MSFILTER): Likewise.
5953         (MCAST_JOIN_GROUP): Likewise.
5954         (MCAST_BLOCK_SOURCE): Likewise.
5955         (MCAST_UNBLOCK_SOURCE): Likewise.
5956         (MCAST_LEAVE_GROUP): Likewise.
5957         (MCAST_JOIN_SOURCE_GROUP): Likewise.
5958         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
5959         (MCAST_MSFILTER): Likewise.
5960         (IP_MULTICAST_ALL): Likewise.
5961         (IP_UNICAST_IF): Likewise.
5962
5963         * timezone/Makefile: Delete $(have-ksh) check.
5964         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
5965         * timezone/tzselect.ksh: Add +x mode bits.
5966
5967         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
5968         (ANON_INODE_FS_MAGIC): Likewise.
5969         (BDEVFS_MAGIC): Likewise.
5970         (BINFMTFS_MAGIC): Likewise.
5971         (BTRFS_TEST_MAGIC): Likewise.
5972         (CRAMFS_MAGIC_WEND): Likewise.
5973         (DEBUGFS_MAGIC): Likewise.
5974         (ECRYPTFS_SUPER_MAGIC): Likewise.
5975         (EXT3_SUPER_MAGIC): Likewise.
5976         (EXT4_SUPER_MAGIC): Likewise.
5977         (FUTEXFS_SUPER_MAGIC): Likewise.
5978         (HOSTFS_SUPER_MAGIC): Likewise.
5979         (HUGETLBFS_MAGIC): Likewise.
5980         (MINIX3_SUPER_MAGIC): Likewise.
5981         (MTD_INODE_FS_MAGIC): Likewise.
5982         (NILFS_SUPER_MAGIC): Likewise.
5983         (OPENPROM_SUPER_MAGIC): Likewise.
5984         (PIPEFS_MAGIC): Likewise.
5985         (PSTOREFS_MAGIC): Likewise.
5986         (QNX6_SUPER_MAGIC): Likewise.
5987         (RAMFS_MAGIC): Likewise.
5988         (REISERFS_SUPER_MAGIC_STRING): Likewise.
5989         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
5990         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
5991         (SECURITYFS_MAGIC): Likewise.
5992         (SELINUX_MAGIC): Likewise.
5993         (SMACK_MAGIC): Likewise.
5994         (SOCKFS_MAGIC): Likewise.
5995         (SQUASHFS_MAGIC): Likewise.
5996         (STACK_END_MAGIC): Likewise.
5997         (TMPFS_MAGIC): Likewise.
5998         (USBDEVICE_SUPER_MAGIC): Likewise.
5999         (V9FS_MAGIC): Likewise.
6000         (XENFS_SUPER_MAGIC): Likewise.
6001         (CRAMFS_MAGIC): Fix typo in comment.
6002         (EXT2_SUPER_MAGIC): Update comment.
6003         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
6004
6005 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
6006
6007         * sysdeps/arm: Move directory from ports/sysdeps/arm.
6008         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
6009         * sysdeps/unix/sysv/linux/arm: Move directory from
6010         ports/sysdeps/unix/sysv/linux/arm.
6011         * README: Update listing for arm-*-linux-gnueabi.
6012
6013         * README: Remove mention of am33.
6014
6015 2014-02-07  Roland McGrath  <roland@hack.frob.com>
6016
6017         * bits/sigset.h (__sigemptyset): Use a statement expression rather
6018         than the comma operator, to avoid "rhs of comma has no effect"
6019         compiler warnings.
6020         (__sigfillset, __sigandset, __sigorset): Likewise.
6021         * include/signal.h (__sigemptyset): Likewise.
6022         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
6023
6024 2014-02-07  Allan McRae  <allan@archlinux.org>
6025
6026         * version.h (RELEASE): Set to "development".
6027         (VERSION): Set to "2.19.90"
6028         * NEWS: Add 2.20 section.
6029
6030 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
6031
6032         [BZ #16529]
6033         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
6034
6035 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6036
6037         * manual/contrib.texi: Update entry for Carlos O'Donell,
6038         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
6039
6040 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
6041
6042         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
6043
6044         * sysdeps/unix/sysv/linux/kernel-features.h
6045         [__LINUX_KERNEL_VERSION >= 0x020621]
6046         (__ASSUME_PROC_PID_TASK_COMM): Define.
6047
6048 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6049
6050         [BZ #16398]
6051         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
6052         conversion when destination buffer does not have enough space.
6053         * libio/tst-ftell-partial-wide.c: New test case.
6054         * libio/Makefile (tests): Add tst-ftell-partial-wide.
6055
6056         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
6057         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
6058         Leonard and Allan McRae.
6059
6060 2014-02-04  David S. Miller  <davem@davemloft.net>
6061
6062         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
6063         32-bit.
6064
6065 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6066
6067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
6068         New file
6069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
6070         New file
6071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
6072         New file.
6073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
6074         New file.
6075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
6076         New file.
6077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
6078         New file.
6079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
6080         New file.
6081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
6082         New file.
6083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
6084         New file.
6085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
6086         New file.
6087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
6088         New file.
6089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
6090         New file.
6091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
6092         New file.
6093
6094 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6095
6096         * nptl/shlib-versions: Change powerpc*le start to 2.17.
6097         * shlib-versions: Likewise.
6098
6099 2014-02-04  Roland McGrath  <roland@hack.frob.com>
6100             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6101
6102         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
6103         (abilist-pattern): New variable, set to %-le.abilist.
6104
6105         * Makerules (abilist-pattern): New variable.
6106         (vpath): Use $(abilist-pattern) in place of %.abilist.
6107         (check-abi-% pattern rule): Likewise.
6108         (check-abi, update-abi): Likewise.
6109
6110 2014-02-04  Eric Wong  <normalperson@yhbt.net>
6111
6112         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6113
6114 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
6115
6116         * manual/startup.texi: Add next, previous, and top entries for
6117         the `Program Arguments' and `Environment Variables' nodes.
6118
6119 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
6120
6121         * manual/macros.texi: Add comments before MTASC-safety macros.
6122
6123         * manual/users.texi: Document MTASC-safety properties.
6124
6125         * manual/threads.texi (pthread_key_create, pthread_key_delete)
6126         (pthread_getspecific, pthread_setspecific): Format with
6127         @deftypefun, and add @safety note.
6128         * manual/signal.texi: Move comments that analyze the above
6129         functions to their home place.
6130
6131 2014-02-03  Allan McRae  <allan@archlinux.org>
6132
6133         * po/sl.po: Update Slovenian translation from translation project.
6134
6135 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
6136
6137         * manual/time.texi (timegm): Add missing blank after @c.
6138         Reported by Joseph Myers <joseph@codesourcery.com>.
6139
6140 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
6141
6142         * manual/check-safety.sh: New.
6143         * manual/Makefile ($(objpfx)stamp-summary): Run it.
6144
6145         * manual/terminal.texi: Document MTASC-safety properties.
6146
6147         * manual/filesys.texi: Document MTASC-safety properties.
6148
6149         * manual/errno.texi: Document MTASC-safety properties.
6150
6151         * manual/intro.texi: Document safety identifiers and
6152         conditionals.
6153
6154         * manual/string.texi (wcstok): Fix prototype.
6155         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
6156
6157         * manual/time.texi: Document MTASC-safety properties.
6158
6159         * manual/string.texi: Document MTASC-safety properties.
6160
6161         * manual/threads.texi: Document MTASC-safety properties.
6162
6163         * manual/stdio.texi: Document MTASC-safety properties.
6164
6165         * manual/syslog.texi: Document MTASC-safety properties.
6166
6167         * manual/sysinfo.texi: Document MTASC-safety properties.
6168
6169         * manual/startup.texi: Document MTASC-safety properties.
6170
6171         * manual/socket.texi: Document MTASC-safety properties.
6172
6173         * manual/signal.texi: Document MTASC-safety properties.
6174
6175 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
6176
6177         * manual/setjmp.texi: Document MTASC-safety properties.
6178
6179         * manual/search.texi: Document MTASC-safety properties.
6180
6181         * manual/resource.texi: Document MTASC-safety properties.
6182
6183         * manual/process.texi: Document MTASC-safety properties.
6184
6185         * manual/platform.texi: Document MTASC-safety properties.
6186
6187         * manual/pipe.texi: Document MTASC-safety properties.
6188
6189         * manual/pattern.texi: Document MTASC-safety properties.
6190
6191         * manual/message.texi: Document MTASC-safety properties.
6192
6193         [BZ #12751]
6194         * manual/memory.texi: Document MTASC-safety properties.
6195
6196         * manual/math.texi: Document MTASC-safety properties.
6197
6198         * manual/locale.texi: Document MTASC-safety properties.
6199
6200         * manual/llio.texi: Document MTASC-safety properties.
6201
6202         * manual/libdl.texi: New.
6203
6204         * manual/lang.texi: Document MTASC-safety properties.
6205
6206         * manual/job.texi: Document MTASC-safety properties.
6207
6208         * manual/getopt.texi: Document MTASC-safety properties.
6209
6210         * manual/ctype.texi: Document MTASC-safety properties.
6211
6212 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
6213
6214         [BZ #16046]
6215         * csu/libc-tls.c (static_map): Remove variable.
6216         (__libc_setup_tls): Use main executable's link map for TLS data.
6217         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
6218         casing for LM_ID_BASE and GL(dl_nns).
6219         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
6220         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
6221         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
6222         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
6223         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
6224         member.
6225         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
6226         l_phnum members.
6227
6228 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
6229
6230         * manual/debug.texi: Document MTASC-safety properties.
6231
6232 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
6233
6234         [BZ #16510]
6235         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
6236         of __x86_64__ when disabling x87 inline functions.
6237
6238 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
6239
6240         * manual/charset.texi: Document MTASC-safety properties.
6241
6242         * manual/crypt.texi: Document MTASC-safety properties.
6243
6244         * manual/conf.texi: Document MTASC-safety properties.
6245
6246         * manual/arith.texi: Document MTASC-safety properties.
6247
6248         * manual/argp.texi: Document MTASC-safety properties.
6249
6250         * manual/macros.texi: Introduce macros to document multi
6251         thread, asynchronous signal and asynchronous cancellation
6252         safety properties.
6253         * manual/intro.texi: Introduce the properties themselves.
6254
6255 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6256
6257         * sysdeps/sh/sh4/Makefile: New file.
6258
6259 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
6260
6261         * math/gen-libm-test.pl ($srcdir): New variable.
6262         ($auto_input): Use it.
6263
6264 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6265
6266         [BZ #16506]
6267         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
6268         access beyond array bounds when parsing netgroups file.
6269
6270         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
6271         the old buffer before realloc.
6272
6273 2014-01-27  Allan McRae  <allan@archlinux.org>
6274
6275         * po/fr.po: Update French translation from translation project.
6276
6277 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6278
6279         * sysdeps/sh/libm-test-ulps: Regenerate.
6280
6281 2014-01-24  David S. Miller  <davem@davemloft.net>
6282
6283         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
6284
6285 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6286
6287         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
6288         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
6289
6290 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6291
6292         [BZ #16474]
6293         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
6294         string pointers after reallocation.
6295
6296 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6297
6298         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
6299         __SH4A__ instead of __SH_FPU_ANY__.
6300
6301 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6302
6303         * sysdeps/sh/fpu_control.h: New file.
6304         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
6305         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6306         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
6307         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
6308         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
6309         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
6310         * sysdeps/sh/sys/ucontext.h: Remove.
6311         * sysdeps/sh/sys: Remove directory.
6312
6313 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6314
6315         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
6316         s390/sys/ucontext.h.
6317         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6318         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
6319
6320 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
6321
6322         [BZ #15605]
6323         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
6324
6325 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6326
6327         [BZ#16431]
6328         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
6329         Adjust the vDSO correctly for internal calls.
6330         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
6331
6332 2014-01-20  Allan McRae  <allan@archlinux.org>
6333
6334         * po/ca.po: Update Catalan translation from translation project.
6335
6336 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
6337
6338         * sysdeps/s390/sotruss-lib.c: New file.
6339
6340 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6341
6342         [BZ#16430]
6343         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
6344         (__GI___gettimeofday): Alias for a different internal symbol to avoid
6345         local calls issues by not having a PLT stub required for IFUNC calls.
6346         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
6347
6348 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
6349
6350         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
6351         * math/test-fpucw-static.c: Likewise.
6352
6353 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6354
6355         [BZ #16453]
6356         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
6357
6358 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6359
6360         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
6361         implementation for powerpc.
6362
6363 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
6364
6365         [BZ #14782]
6366         * sysdeps/posix/system.c (__libc_system): Do not enable
6367         asynchronous cancellation.
6368
6369 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6370
6371         [BZ #16427]
6372         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
6373         handling only for numbers special also in the IEEE case.
6374
6375 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6376
6377         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
6378
6379 2014-01-11  Allan McRae  <allan@archlinux.org>
6380
6381         * po/bg.po: Update Bulgarian translation from translation project.
6382
6383         * po/de.po: Update German translation from translation project.
6384
6385 2014-01-10  Roland McGrath  <roland@hack.frob.com>
6386
6387         * sysdeps/generic/gcc-compat.h: New file.
6388
6389 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6390
6391         * benchtests/asin-inputs: Correct slow inputs.
6392         * benchtests/acos-inputs: Likewise.
6393
6394 2014-01-10  Allan McRae  <allan@archlinux.org>
6395
6396         * po:sv.po: Update Swedish translation from translation project.
6397
6398         * po/vi.po: Update Vietnamese translation from translation project.
6399
6400         * po/eo.po: Update Esperanto translation from translation project.
6401
6402         * po/cs.po: Update Czech translation from translation project.
6403
6404         * po/nl.po: Update Dutch translation from translation project.
6405
6406         * po/pl.po: Update Polish translation from translation project.
6407
6408         * po/ru.po: Update Russian translation from translation project.
6409
6410         * po/uk.po: Update Ukrainian translation from translation project.
6411
6412 2014-01-08  Brooks Moses  <bmoses@google.com>
6413
6414         * elf/dl-load.c: Fix comment typo.
6415
6416 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
6417
6418         * po/header.pot: Rename to...
6419         * po/pot.header: ... this.
6420         * po/Makefile: Use pot.header.
6421
6422 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
6423             Maxim Kuvyrkov  <maxim@kugelworks.com>
6424
6425         [BZ #16394]
6426         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
6427         SRC and DEST against LEN.
6428
6429 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6430
6431         [BZ #16414]
6432         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
6433         implementation.
6434         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
6435
6436 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6437
6438         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6439
6440 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
6441
6442         [BZ #16408]
6443         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
6444         for large positive arguments.
6445
6446 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
6447
6448         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
6449
6450         * math/auto-libm-test-in: Mark various tests with
6451         xfail-rounding:ldbl-128ibm.
6452         * math/auto-libm-test-out: Regenerated.
6453
6454         [BZ #16407]
6455         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
6456         Increase overflow threshold.
6457
6458 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
6459
6460         [BZ #14286]
6461         * stdio-common/vfprintf.c: Check for integer overflow.
6462
6463 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6464
6465         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
6466         the first argument and return value of __tls_get_addr_internal.
6467
6468 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6469
6470         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
6471         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
6472
6473 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6474
6475         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
6476         * sysdeps/s390/rtld-global-offsets.sym: New file.
6477         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
6478         GLIBC_2.19 symbol.
6479         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
6480         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
6481         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
6482         ... this.
6483         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
6484         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
6485         ... this.
6486         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
6487         Regenerate.
6488         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
6489         Regenerate.
6490         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
6491         halfs of GPRs for high_gprs contexts.
6492         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
6493         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
6494         field.
6495         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
6496         uc_flags field.
6497         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
6498         64 bit versions:
6499         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
6500         for high GPRs (uc_high_gprs) and for future extensions
6501         (__reserved).
6502         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
6503         for future extensions (__reserved).
6504         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
6505         64 bit versions:
6506         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
6507         SC_HIGHGPRS offset definition.
6508         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
6509         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
6510
6511         * Versions.def: Add GLIBC_2.19 for libpthread.
6512         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
6513         siglongjmp for libpthread with GLIBC_2.19 symver.
6514         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
6515         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
6516         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
6517         * sysdeps/s390/__longjmp.c: New file.
6518         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
6519         * sysdeps/s390/longjmp.c: New file.
6520         * sysdeps/s390/setjmp.S: New file.
6521         * sysdeps/s390/sigjmp.S: New file.
6522         * sysdeps/s390/v1-longjmp.c: New file.
6523         * sysdeps/s390/v1-setjmp.h: New file.
6524         * sysdeps/s390/v1-sigjmp.c: New file.
6525         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
6526         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
6527         GLIBC_2.19 version.
6528         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
6529         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
6530         versioned symbols for ____longjmp_chk.
6531         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
6532         Likewise.
6533         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
6534         Regenerate.
6535         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6536         Regenerate.
6537         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
6538         Regenerate.
6539         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6540         Regenerate.
6541         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
6542         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
6543         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
6544         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
6545         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
6546         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
6547         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
6548         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
6549         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
6550         * sysdeps/s390/rtld-__longjmp.c: New file.
6551         * sysdeps/s390/rtld-setjmp.S: New file.
6552
6553 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
6554
6555         [BZ #16400]
6556         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6557         Return -__logl (x) for small positive arguments without evaluating
6558         a polynomial.
6559
6560 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
6561
6562         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
6563         Rename to ...
6564         (__ptrace_peeksiginfo_args): ... this.
6565         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6566         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6567         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6568
6569 2014-01-06  Allan McRae  <allan@archlinux.org>
6570
6571         * inet/netinet/in.h: Fix typo in comment.
6572
6573 2014-01-05  Andreas Jaeger  <aj@suse.de>
6574
6575         * sysdeps/i386/fpu/libm-test-ulps: Update.
6576
6577 2014-01-05  Allan McRae  <allan@archlinux.org>
6578
6579         * po/libc.pot: Regenerated.
6580
6581         * malloc/memusagestat.c: Fix gettext call formatting.
6582
6583 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
6584
6585         * nscd/nscd.c: Improve usage() output.
6586
6587 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
6588
6589         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
6590         * sysdeps/unix/sysv/linux/configure: Regenerated.
6591         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
6592         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
6593
6594 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
6595
6596         [BZ #16390]
6597         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
6598         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
6599
6600 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6601
6602         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
6603         extra tokens at end of #undef directive.
6604         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
6605         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
6606         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
6607
6608 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
6609
6610         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
6611
6612         * math/auto-libm-test-in: Mark various tests with
6613         xfail-rounding:ldbl-128ibm.
6614         * math/auto-libm-test-out: Regenerated.
6615
6616 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
6617
6618         [BZ #16386]
6619         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
6620         numbers with subnormal high part when calculating exponent.
6621
6622         [BZ #16385]
6623         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
6624         fabs.
6625
6626         [BZ #16384]
6627         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
6628         M_LN2l.
6629         (__ieee754_acoshl): Use __log1pl not __log1p.
6630
6631 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
6632
6633         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
6634         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
6635         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
6636         (grow_heap, heap_trim, _int_new_arena, get_free_list)
6637         (reused_arena, arena_get2): Convert to GNU style.
6638         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
6639         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
6640         (memalign_check, __malloc_set_state): Likewise.
6641         * malloc/mallocbug.c (main): Likewise.
6642         * malloc/malloc.c (__malloc_assert, malloc_init_state)
6643         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
6644         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
6645         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
6646         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
6647         (__posix_memalign, malloc_info): Likewise.
6648         * malloc/malloc.h: Likewise.
6649         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
6650         (mallochook, memalignhook, reallochook, mabort): Likewise.
6651         * malloc/mcheck.h: Likewise.
6652         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
6653         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
6654         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
6655         * malloc/morecore.c (__default_morecore): Likewise.
6656         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
6657         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
6658         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
6659         (print_and_abort): Likewise.
6660         * malloc/obstack.h: Likewise.
6661         * malloc/set-freeres.c (__libc_freeres): Likewise.
6662         * malloc/tst-mallocstate.c (main): Likewise.
6663         * malloc/tst-mtrace.c (main): Likewise.
6664         * malloc/tst-realloc.c (do_test): Likewise.
6665
6666 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
6667
6668         [BZ #16366]
6669         * nscd/netgroupcache.c (do_notfound): New function.
6670         (addgetnetgrentX): Use it.
6671
6672         [BZ # 16365]
6673         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
6674         NSS_STATUS_NOTFOUND.
6675
6676 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
6677
6678         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6680
6681 2014-01-01  Allan McRae  <allan@archlinux.org>
6682
6683         * scripts/update-copyrights: Update configure input file suffix.
6684
6685         * NEWS: Update copyright year.
6686         * catgets/gencat.c: Likewise.
6687         * csu/version.c: Likewise.
6688         * debug/catchsegv.sh: Likewise.
6689         * debug/pcprofiledump.c: Likewise.
6690         * debug/xtrace.sh: Likewise.
6691         * elf/ldconfig.c: Likewise.
6692         * elf/ldd.bash.in: Likewise.
6693         * elf/pldd.c: Likewise.
6694         * elf/sotruss.ksh: Likewise.
6695         * elf/sprof.c: Likewise.
6696         * iconv/iconv_prog.c: Likewise.
6697         * iconv/iconvconfig.c: Likewise.
6698         * locale/programs/locale.c: Likewise.
6699         * locale/programs/localedef.c: Likewise.
6700         * login/programs/pt_chown.c: Likewise.
6701         * malloc/memusage.sh: Likewise.
6702         * malloc/memusagestat.c: Likewise.
6703         * malloc/mtrace.pl: Likewise.
6704         * manual/libc.texinfo: Likewise.
6705         * nscd/nscd.c: Likewise.
6706         * nss/getent.c: Likewise.
6707         * nss/makedb.c: Likewise.
6708         * posix/getconf.c: Likewise.
6709         * scripts/test-installation.pl: Likewise.
6710
6711         * All files with FSF copyright notices: Update copyright dates
6712         using scripts/update-copyrights.
6713         * intl/plural.c: Regenerated.
6714         * locale/programs/charmap-kw.h: Likewise.
6715         * locale/programs/locfile-kw.h: Likewise.
6716
6717 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
6718
6719         * sysdeps/unix/sysv/linux/configure: Regenerated.
6720         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
6721         the linux/fanotify.h header.
6722         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
6723         HAVE_LINUX_FANOTIFY_H is defined.
6724
6725 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
6726
6727         * benchtests/cos-inputs: New inputs.
6728         * benchtests/sin-inputs: Likewise.
6729
6730         * benchtests/atan-inputs: New inputs. Fix name of multiple
6731         precision fallback inputs.
6732
6733         * benchtests/atanh-inputs: New inputs.
6734         * benchtests/tanh-inputs: Likewise.
6735
6736         * benchtests/acosh-inputs: New inputs.
6737         * benchtests/asinh-inputs: Likewise.
6738
6739         * benchtests/cosh-inputs: New inputs.
6740         * benchtests/sinh-inputs: Likewise.
6741
6742         * benchtests/acos-inputs: Add more inputs.
6743         * benchtests/asin-inputs: Likewise.
6744
6745 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
6746
6747         [BZ #16375]
6748         * manual/arith.texi: Fix spelling.
6749         * manual/charset.texi: Likewise.
6750         * manual/errno.texi: Likewise.
6751         * manual/filesys.texi: Likewise.
6752         * manual/lang.texi: Likewise.
6753         * manual/llio.texi: Likewise.
6754         * manual/locale.texi: Likewise.
6755         * manual/message.texi: Likewise.
6756         * manual/resource.texi: Likewise.
6757         * manual/search.texi: Likewise.
6758         * manual/setjmp.texi: Likewise.
6759         * manual/stdio.texi: Likewise.
6760         * manual/string.texi: Likewise.
6761         * manual/sysinfo.texi: Likewise.
6762         * manual/time.texi: Likewise.
6763
6764 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
6765
6766         * po/sl.po: New file.
6767
6768 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
6769
6770         * .gitignore: Add core/.gdbinit/.gdb_history.
6771
6772 2013-12-27  Allan McRae  <allan@archlinux.org>
6773
6774         [BZ #16369]
6775         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
6776         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
6777
6778 2013-12-24  Brooks Moses  <bmoses@google.com>
6779
6780         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
6781         all compilers that claim C++98 compliance, not just GCC.
6782         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
6783         Likewise.
6784
6785 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
6786
6787         * NEWS: Restore accidentally deleted bug-fix entries.
6788
6789 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
6790             Ondřej Bílka  <neleai@seznam.cz>
6791
6792         [BZ #15073]
6793         * malloc/malloc.c (_int_free): Perform sanity check only if we
6794         have_lock.
6795
6796 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
6797
6798         [BZ #12986]
6799         * manual/stdio.texi (String Input Conversions): Clarify that character
6800         classes are not supported.
6801
6802 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6803
6804         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6805
6806 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
6807
6808         [BZ #16337]
6809         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6810         Calculate results for small negative arguments directly rather
6811         than using reflection formula with special underflow handling.
6812
6813         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
6814         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
6815         sysdeps/unix/bsd/bsd4.4/syscalls.list.
6816         (fchflags): Likewise.
6817         (revoke): Likewise.
6818         (setlogin): Likewise.
6819         (sigaltstack): Likewise.
6820         (wait4): Likewise.
6821         (sigblock): Remove.
6822         (sigsetmask): Likewise.
6823         (wait3): Likewise.
6824         (waitpid): Likewise.
6825         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
6826         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
6827         file.
6828         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
6829         * sysdeps/unix/bsd/Makefile: ... here.
6830         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
6831         * sysdeps/unix/bsd/Versions: ... here.
6832         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
6833         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
6834         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
6835         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
6836         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
6837         * sysdeps/unix/bsd/sigblock.c: ... here.
6838         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
6839         * sysdeps/unix/bsd/sigsetmask.c: ... here.
6840         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
6841         * sysdeps/unix/bsd/sigvec.c: ... here.
6842         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
6843         * sysdeps/unix/bsd/tcdrain.c: ... here.
6844         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
6845         * sysdeps/unix/bsd/tcgetattr.c: ... here.
6846         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
6847         * sysdeps/unix/bsd/tcsetattr.c: ... here.
6848         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
6849         * sysdeps/unix/bsd/wait.c: ... here.
6850         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
6851         * sysdeps/unix/bsd/wait3.c: ... here.
6852         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
6853         * sysdeps/unix/bsd/waitpid.c: ... here.
6854
6855 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
6856
6857         [BZ #16356]
6858         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
6859         round-to-nearest for [!USE_AS_EXPM1L].
6860         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
6861         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
6862         more tests of exp and exp10.  Expect some exp10 tests to miss
6863         exceptions or fail in directed rounding modes.
6864         * math/auto-libm-test-out: Regenerated.
6865         * math/libm-test.inc (exp10_tonearest_test_data): New array.
6866         (exp10_test_tonearest): New function.
6867         (exp10_towardzero_test_data): New array.
6868         (exp10_test_towardzero): New function.
6869         (exp10_downward_test_data): New array.
6870         (exp10_test_downward): New function.
6871         (exp10_upward_test_data): New array.
6872         (exp10_test_upward): New function.
6873         (main): Call the new functions.
6874         * sysdeps/i386/fpu/libm-test-ulps: Update.
6875         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6876
6877 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
6878
6879         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
6880         asinh, atan, atan2, atanh, cbrt, cos and cosh.
6881         * math/auto-libm-test-out: Regenerated.
6882         * math/libm-test.inc (acosh_test_data): Add more tests.
6883         (atanh_test_data): Likewise.
6884         (ceil_test_data): Likewise.
6885         (copysign_test_data): Likewise.
6886         * sysdeps/i386/fpu/libm-test-ulps: Update.
6887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6888
6889         * timezone/checktab.awk: Update from tzcode 2013i.
6890         * timezone/private.h: Likewise.
6891         * timezone/scheck.c: Likewise.
6892         * timezone/tzfile.h: Likewise.
6893         * timezone/tzselect.ksh: Likewise.
6894         * timezone/zdump.c: Likewise.
6895         * timezone/zic.c: Likewise.
6896
6897         * math/auto-libm-test-in: Add tests of cpow.
6898         * math/auto-libm-test-out: Regenerated.
6899         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
6900         * math/gen-auto-libm-tests.c (func_calc_method): Add value
6901         mpc_cc_c.
6902         (func_calc_desc): Add mpc_cc_c union field.
6903         (test_functions): Add cpow.
6904         (special_fill_2pi): New function.
6905         (special_real_inputs): Add 2pi.
6906         (calc_generic_results): Handle mpc_cc_c.
6907         * sysdeps/i386/fpu/libm-test-ulps: Update.
6908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6909
6910         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
6911         csqrt, ctan and ctanh.
6912         * math/auto-libm-test-out: Regenerated.
6913         * math/libm-test.inc (TEST_COND_x86_64): New macro.
6914         (TEST_COND_x86): Likewise.
6915         (ccos_test_data): Use AUTO_TESTS_c_c.
6916         (ccosh_test_data): Likewise.
6917         (cexp_test_data): Likewise.
6918         (clog_test_data): Likewise.
6919         (csqrt_test_data): Likewise.
6920         (ctan_test_data): Likewise.
6921         (ctan_tonearest_test_data): Likewise.
6922         (ctan_towardzero_test_data): Likewise.
6923         (ctan_downward_test_data): Likewise.
6924         (ctan_upward_test_data): Likewise.
6925         (ctanh_test_data): Likewise.
6926         (ctanh_tonearest_test_data): Likewise.
6927         (ctanh_towardzero_test_data): Likewise.
6928         (ctanh_downward_test_data): Likewise.
6929         (ctanh_upward_test_data): Likewise.
6930         * math/gen-auto-libm-tests.c (func_calc_method): Add value
6931         mpc_c_c.
6932         (func_calc_desc): Add mpc_c_c union field.
6933         (FUNC_mpc_c_c): New macro.
6934         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
6935         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
6936         ctanh.
6937         (special_fill_min_subnorm_p120): New function.
6938         (special_real_inputs): Add min_subnorm_p120.
6939         (calc_generic_results): Handle mpc_c_c.
6940         * sysdeps/i386/fpu/libm-test-ulps: Update.
6941         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6942
6943 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6944
6945         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
6946         (do_sin_slow): New functions.
6947         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
6948         (cslow2, csloww1, csloww2): Use the new functions.
6949
6950         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
6951         Use M to change sign of result instead of X.  Assume X is
6952         positive.
6953         (csloww1): Likewise.
6954         (__sin): Adjust.
6955         (__cos): Adjust.
6956
6957         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
6958         arguments A and DA.
6959         (__sin): Adjust.
6960         (__cos): Likewise.
6961
6962         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
6963         (__cos): Likewise.
6964         (sloww1): Don't adjust sign of DX.
6965         (csloww1): Likewise.
6966         (sloww2): Use X directly and don't adjust sign of DX.
6967         (csloww2): Likewise.
6968
6969 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
6970
6971         * math/auto-libm-test-in: Add tests of cabs and carg.
6972         * math/auto-libm-test-out: Regenerated.
6973         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
6974         (carg_test_data): Likewise.
6975         * math/gen-auto-libm-tests.c (func_calc_method): Add value
6976         mpc_c_f.
6977         (func_calc_desc): Add mpc_c_f union field.
6978         (test_functions): Add cabs and carg.
6979         (calc_generic_results): Handle mpc_c_f.
6980
6981         * sysdeps/powerpc/powerpc32/libgcc-compat.S
6982         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
6983         as a macro and a compat symbol.
6984         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
6985         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
6986         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
6987         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
6988         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
6989         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
6990         not use .hidden.
6991         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
6992         Likewise.
6993         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
6994         Likewise.
6995         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
6996         Likewise.
6997         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
6998         Likewise.
6999         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
7000         Likewise.
7001         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
7002         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
7003         from GLIBC_2.3.2.
7004
7005 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7006
7007         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7008
7009 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
7010
7011         * manual/texinfo.tex: Update to version 2013-11-26.10 with
7012         trailing whitespace removed.
7013         * scripts/config.guess: Update to version 2013-11-29.
7014         * scripts/config.sub: Update to version 2013-10-01.
7015
7016         * math/auto-libm-test-in: Add tests of sincos.
7017         * math/auto-libm-test-out: Regenerated.
7018         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
7019         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7020         mpfr_f_11.
7021         (func_calc_desc): Add mpfr_f_11 union field.
7022         (test_functions): Add sincos.
7023         (calc_generic_results): Handle mpfr_f_11.
7024         * sysdeps/i386/fpu/libm-test-ulps: Update.
7025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7026
7027 2013-12-19  Andreas Schwab  <schwab@suse.de>
7028
7029         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
7030         CALL_MCOUNT.
7031         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
7032         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
7033         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
7034
7035 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
7036
7037         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
7038         * sysdeps/i386/fpu/libm-test-ulps: Update.
7039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7040
7041         [BZ #16293]
7042         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
7043         round-to-nearest mode when using frndint.
7044         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
7045         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
7046         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
7047         Likewise.
7048         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
7049         sinh test to fail.
7050         * math/auto-libm-test-out: Regenerated.
7051         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
7052         (TEST_COND_x86): Likewise.
7053         (expm1_tonearest_test_data): New array.
7054         (expm1_test_tonearest): New function.
7055         (expm1_towardzero_test_data): New array.
7056         (expm1_test_towardzero): New function.
7057         (expm1_downward_test_data): New array.
7058         (expm1_test_downward): New function.
7059         (expm1_upward_test_data): New array.
7060         (expm1_test_upward): New function.
7061         (main): Run the new test functions.
7062         * sysdeps/i386/fpu/libm-test-ulps: Update.
7063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7064
7065         * include/features.h: Update comment documenting feature test
7066         macros.  Mention _DEFAULT_SOURCE in comment.
7067         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
7068         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
7069         _BSD_SOURCE and _SVID_SOURCE.
7070         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
7071         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
7072         !_SVID_SOURCE]: Likewise.
7073         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
7074         (__USE_POSIX_IMPLICITLY): Define.
7075         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
7076         (_POSIX_SOURCE): Undefine and redefine.
7077         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
7078         (_POSIX_C_SOURCE): Likewise.
7079         * manual/creature.texi (_DEFAULT_SOURCE): Document.
7080         (Feature Test Macros): Update documentation of default features.
7081
7082 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7083
7084         * benchtests/Makefile: Add bench-strtok.
7085         * benchtests/bench-strtok.c: New file: strtok benchtest.
7086
7087 2013-12-19  Allan McRae  <allan@archlinux.org>
7088
7089         * manual/install.texi: Suppress menu for plain text output.
7090         * INSTALL: Regenerated.
7091
7092 2013-12-18  Brooks Moses  <bmoses@google.com>
7093
7094         [BZ #15846]
7095         * misc/getauxval.c: Include errno.h.
7096         (__getauxval): Set errno to ENOENT if the requested type is not
7097         found.
7098         * misc/sys/auxv.h (getauxval): Document that it may set errno;
7099         don't declare with __attribute_const__.
7100         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
7101         * manual/startup.texi: Document that getauxval sets errno.
7102
7103 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
7104
7105         * math/auto-libm-test-in: Add tests of jn and yn.
7106         * math/auto-libm-test-out: Regenerated.
7107         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
7108         (yn_test_data): Likewise.
7109         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7110         mpfr_if_f.
7111         (func_calc_desc): Add mpfr_if_f union field.
7112         (FUNC_mpfr_if_f): New macro.
7113         (test_functions): Add jn and yn.
7114         (calc_generic_results): Assert type of second input for
7115         mpfr_ff_f.  Handle mpfr_if_f.
7116         (output_for_one_input_case): Disable all checking for arguments
7117         fitting floating-point types in case of an integer argument.
7118         * sysdeps/i386/fpu/libm-test-ulps: Update.
7119         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7120
7121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
7122         Don't expect fegetround reference in libm.so.
7123
7124 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7125
7126         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
7127         $(config-cflags-nofma).
7128
7129 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
7130
7131         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
7132         * math/auto-libm-test-out: Regenerated.
7133
7134         [BZ #16338]
7135         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
7136         to determine exponent and adjust argument to have exponent of -1.
7137         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7138         log2.
7139         * math/auto-libm-test-out: Regenerated.
7140         * sysdeps/i386/fpu/libm-test-ulps: Update.
7141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7142
7143 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
7144
7145         * manual/probes.texi: Remove cases when per-thread arenas are
7146         disabled.
7147
7148 2013-12-18  Andreas Schwab  <schwab@suse.de>
7149
7150         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
7151         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
7152         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
7153         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
7154         * sysdeps/i386/i686/multiarch/Makefile: Update.
7155         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
7156
7157 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
7158
7159         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
7160         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
7161
7162 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7163
7164         [BZ #15968]
7165         Support TZ transition times < 00:00:00.
7166         This is needed for version-3 tz-format files; it supports time
7167         stamps past 2037 for America/Godthab (the only entry in the tz
7168         database for which this change is relevant).
7169         * manual/time.texi (TZ Variable): Document transition times
7170         from -167:59:59 through -00:00:01.
7171         * time/tzset.c (tz_rule): Time of day is now signed.
7172         (__tzset_parse_tz): Parse negative time of day.
7173
7174         Document TZ transition times >= 25:00:00.
7175         * manual/time.texi (TZ Variable): Document transition times from
7176         25:00:00 through 167:59:59.  These are already supported, and this
7177         support will help with version-3 tz-format files.
7178
7179         * manual/time.texi (TZ Variable): Modernize North America example
7180         to reflect current (i.e., 2007-and-later) daylight saving rules.
7181
7182         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
7183
7184 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
7185
7186         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
7187         * sysdeps/unix/bsd/bits/stat.h: Likewise.
7188         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
7189         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7190         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
7191         * sysdeps/unix/bsd/bsdstat.h: Likewise.
7192         * sysdeps/unix/bsd/clock.c: Likewise.
7193         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7194         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
7195         * sysdeps/unix/bsd/init-posix.c: Likewise.
7196         * sysdeps/unix/bsd/poll.c: Likewise.
7197         * sysdeps/unix/bsd/ptsname.c: Likewise.
7198         * sysdeps/unix/bsd/seekdir.c: Likewise.
7199         * sysdeps/unix/bsd/setegid.c: Likewise.
7200         * sysdeps/unix/bsd/seteuid.c: Likewise.
7201         * sysdeps/unix/bsd/setgid.c: Likewise.
7202         * sysdeps/unix/bsd/setrgid.c: Likewise.
7203         * sysdeps/unix/bsd/setruid.c: Likewise.
7204         * sysdeps/unix/bsd/setsid.c: Likewise.
7205         * sysdeps/unix/bsd/setuid.c: Likewise.
7206         * sysdeps/unix/bsd/sigaction.c: Likewise.
7207         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
7208         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
7209         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
7210         * sysdeps/unix/bsd/telldir.c: Likewise.
7211         * sysdeps/unix/bsd/times.c: Likewise.
7212         * sysdeps/unix/bsd/usleep.c: Likewise.
7213
7214         * misc/Makefile (install-lib): Remove libbsd-compat.a.
7215         ($(objpfx)libbsd-compat.a): Remove rule.
7216
7217         * include/features.h (__FAVOR_BSD): Do not define.
7218         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
7219         features conflicting with POSIX.
7220         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
7221         (_BSD_SOURCE): Remove description of not being a subset of other
7222         feature test macros.
7223         * manual/job.texi (getpgrp): Do not document BSD version.
7224         (getpgid): Do not document by reference to BSD getpgrp.
7225         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
7226         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
7227         * signal/signal.h [__FAVOR_BSD]: Likewise.
7228         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
7229         instead of making contents conditional on [__FAVOR_BSD].
7230         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
7231
7232 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7233
7234         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7235
7236 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
7237
7238         [BZ #16314]
7239         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
7240         values below 2**-450, not 2**-500.
7241         * math/auto-libm-test-in: Don't allow spurious underflow from
7242         hypot.
7243         * math/auto-libm-test-out: Regenerated.
7244
7245         [BZ #16316]
7246         [BZ #16330]
7247         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
7248         values of ha and hb and sort them after adjusting subnormal
7249         arguments.
7250         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
7251         Likewise.
7252         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
7253         values of ea and eb and sort them after adjusting subnormal
7254         arguments.
7255         * math/auto-libm-test-in: Do not expect some hypot tests of
7256         subnormals to fail.  Add more hypot tests.
7257         * math/auto-libm-test-out: Regenerated.
7258
7259 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7260
7261         [BZ #13304]
7262         * sysdeps/sh/s_fma.c: New file.
7263         * sysdeps/sh/s_fmaf.c: New file.
7264         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
7265         version.
7266         * sysdeps/sh/Implies: Add sh/soft-fp.
7267
7268 2013-12-16  Roland McGrath  <roland@hack.frob.com>
7269
7270         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
7271         level of indirection to members `objname', `errstring', `malloced'.
7272         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
7273         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
7274         it as the __longjmp argument (just pass 1 instead).
7275         (_dl_catch_error): Initialize C with argument pointers and address of
7276         volatile local ERRCODE rather than copying values out of C at return.
7277
7278 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
7279
7280         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
7281         * math/auto-libm-test-out: Regenerated.
7282         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
7283         (hypot_test_data): Likewise.
7284         (pow_test_data): Likewise.
7285         (pow_tonearest_test_data): Likewise.
7286         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7287         mpfr_ff_f.
7288         (func_calc_desc): Add mpfr_ff_f union field.
7289         (FUNC_mpfr_ff_f): New macro.
7290         (test_functions): Add atan2, hypot and pow.
7291         (special_fill_min): New function.
7292         (special_fill_minus_min): Likewise.
7293         (special_fill_min_subnorm): Likewise.
7294         (special_fill_minus_min_subnorm): Likewise.
7295         (special_real_inputs): Add min, -min, min_subnorm and
7296         -min_subnorm.
7297         (calc_generic_results): Handle mpfr_ff_f.
7298         * sysdeps/i386/fpu/libm-test-ulps: Update.
7299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7300
7301 2013-12-16  Will Newton  <will.newton@linaro.org>
7302
7303         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
7304         (Aligned Memory Blocks): Add documentation for aligned_alloc
7305         and suggest it as an alternative to posix_memalign.
7306         (Hooks for Malloc): Document __memalign_hook is also called
7307         for aligned_alloc.  (Summary of Malloc): Add summary for
7308         aligned alloc.  Document __memalign_hook is also called
7309         for aligned_alloc.
7310
7311 2013-12-16  Will Newton  <will.newton@linaro.org>
7312
7313         * manual/memory.texi (Malloc Examples): Clarify default
7314         alignment documentation.  Suggest posix_memalign rather
7315         than memalign or valloc.
7316         (Aligned Memory Blocks): Remove suggestion to use memalign
7317         or valloc.  Remove obsolete comment about BSD.
7318         Document memalign errno values and mark the function obsolete.
7319         Document posix_memalign returned error codes.  Mark valloc
7320         as obsolete.  (Hooks for Malloc): __memalign_hook is also
7321         called for posix_memalign and valloc.
7322         (Summary of Malloc): Add posix_memalign to function summary.
7323         __memalign_hook is also called for posix_memalign and valloc.
7324
7325 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7326
7327         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
7328         TAYLOR_SIN.
7329         (__sin): Adjust.
7330         (__cos): Likewise.
7331         (sloww): Use mynumber union.  Expand ternary operator into
7332         if-else statements.
7333         (cslow): use mynumber union.
7334
7335 2013-12-16  Allan McRae  <allan@archlinux.org>
7336
7337         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
7338         * configure: Regenerated.
7339
7340         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
7341
7342         [BZ #14120]
7343         * configure.ac: Added --enable-maintainer-mode. Check for
7344         autoconf when enabled.
7345         * configure: Regenerated.
7346
7347         * nscd/nscd.service: New file.
7348         * nscd/nscd.tmpfiles: New file.
7349
7350 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
7351
7352         [BZ #12100]
7353         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
7354         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
7355         * sysdeps/x86_64/multiarch/strstr.c: ... here.
7356         (strstr): Add __strstr_sse2_unaligned ifunc.
7357         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
7358         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
7359         (strcasestr): Remove __strcasestr_sse42 ifunc.
7360         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
7361         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
7362         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
7363
7364 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7365
7366         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
7367         * sysdeps/sh/bits/fenv.h: ... here.
7368         * sysdeps/sh/sh4/fpu/bits: Remove directory.
7369
7370 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7371
7372         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
7373
7374         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
7375         hypotf multiarch implementations.
7376         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
7377         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
7378         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
7379         multiarch hypot for PPC64.
7380         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
7381         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
7382         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
7383         multiarch hypotf for PPC64.
7384
7385         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
7386         modff multiarch implementations.
7387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
7388         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
7389         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
7390         multiarch modf for PPC64.
7391         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
7392         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
7393         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
7394         multiarch modff for PPC64.
7395
7396         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
7397         and logl multiarch implementations.
7398         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
7399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
7400         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
7401         multiarch logb for PPC64.
7402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
7403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
7404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
7405         multiarch logb for PPC64.
7406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
7407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
7408         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
7409         multiarch logb for PPC64.
7410
7411         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
7412         isinff multiarch implementation.
7413         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
7414         file.
7415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
7416         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
7417         multiarch isinf for PPC64.
7418         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
7419         file.
7420         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
7421         multiarch isinff for PPC64.
7422
7423         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
7424         finitef multiarch implementation.
7425         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
7426         file.
7427         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
7428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
7429         multiarch finite for PPC64.
7430         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
7431         file.
7432         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
7433         multiarch finitef for PPC64.
7434
7435         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
7436         lrint multiarch implementation.
7437         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
7438         file.
7439         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
7440         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
7441         multiarch llrint for PPC64.
7442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
7443         multiarch lrint for PPC64.
7444
7445         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
7446         copysignf multiarch implementation.
7447         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
7448         file.
7449         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
7450         file.
7451         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
7452         multiarch copysign for PPC64.
7453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
7454         multiarch copysignf for PPC64.
7455
7456         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
7457         multiarch implementation.
7458         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
7459         file.
7460         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
7461         file.
7462         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
7463         file.
7464         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
7465         file.
7466         multiarch llround for PPC64.
7467         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
7468         multiarch trunc for PPC64.
7469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
7470         multiarch truncf for PPC64.
7471
7472         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
7473         multiarch implementation.
7474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
7475         file.
7476         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
7477         file.
7478         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
7479         file.
7480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
7481         file.
7482         multiarch llround for PPC64.
7483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
7484         multiarch round for PPC64.
7485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
7486         multiarch roundf for PPC64.
7487
7488         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
7489         multiarch implementation.
7490         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
7491         file.
7492         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
7493         file.
7494         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
7495         file.
7496         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
7497         file.
7498         multiarch llround for PPC64.
7499         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
7500         multiarch floor for PPC64.
7501         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
7502         multiarch floorf for PPC64.
7503
7504         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
7505         multiarch implementation.
7506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
7507         file.
7508         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
7509         file.
7510         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
7511         file.
7512         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
7513         file.
7514         multiarch llround for PPC64.
7515         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
7516         multiarch ceil for PPC64.
7517         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
7518         multiarch ceilf for PPC64.
7519
7520         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
7521         multiarch implementation.
7522         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
7523         file.
7524         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
7525         file.
7526         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
7527         file.
7528         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
7529         multiarch llround for PPC64.
7530         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
7531         multiarch lround for PPC64.
7532
7533         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
7534         multiarch implementation.
7535         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
7536         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
7537         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
7538         file.
7539         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
7540         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
7541         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
7542         multiarch isnan for PPC64.
7543         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
7544         multiarch isnanf for PPC64.
7545
7546         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
7547         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
7548         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
7549         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
7550         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
7551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
7552
7553         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
7554         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7555         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7556         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7557
7558         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
7559         multiarch implementations.
7560         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7561         (__libc_ifunc_impl_list): Likewise.
7562         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
7563         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
7564         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
7565         multiarch stpcpy for PPC64.
7566
7567         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
7568         multiarch implementations.
7569         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7570         (__libc_ifunc_impl_list): Likewise.
7571         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
7572         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
7573         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
7574         multiarch strcpy for PPC64.
7575
7576         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
7577         redefine function name.
7578         (_wordcopy_fwd_dest_aligned): Likewise.
7579         (_wordcopy_bwd_aligned): Likewise.
7580         (_wordcopy_bwd_dest_aligned): Likewise.
7581         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
7582         multiarch implementations.
7583         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7584         (__libc_ifunc_impl_list): Likewise.
7585         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
7586         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
7587         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
7588         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
7589         multiarch wcscpy for PPC64.
7590
7591         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
7592         multiarch implementations.
7593         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7594         (__libc_ifunc_impl_list): Likewise.
7595         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
7596         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
7597         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
7598         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
7599         multiarch wcscpy for PPC64.
7600
7601         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
7602         multiarch implementations.
7603         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7604         (__libc_ifunc_impl_list): Likewise.
7605         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
7606         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
7607         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
7608         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
7609         multiarch wcsrchr for PPC64.
7610
7611         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
7612         multiarch implementations.
7613         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7614         (__libc_ifunc_impl_list): Likewise.
7615         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
7616         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
7617         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
7618         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
7619         multiarch wcschr for PPC64.
7620
7621         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
7622         multiarch implementations.
7623         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7624         (__libc_ifunc_impl_list): Likewise.
7625         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
7626         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
7627         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
7628         multiarch strchrnul for PPC64.
7629
7630         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
7631         implementations.
7632         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7633         (__libc_ifunc_impl_list): Likewise.
7634         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
7635         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
7636         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
7637         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
7638         strchr for PPC64.
7639
7640         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
7641         implementations.
7642         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7643         (__libc_ifunc_impl_list): Likewise.
7644         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
7645         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
7646         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
7647         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
7648         strncmp for PPC64.
7649
7650         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
7651         multiarch implementations.
7652         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7653         (__libc_ifunc_impl_list): Likewise.
7654         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
7655         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
7656         strncasecmp for PPC64.
7657         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
7658         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
7659         multiarch strncasecmp_l for PPC64.
7660
7661         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
7662         multiarch implementations.
7663         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
7664         (__libc_ifunc_impl_list): Likewise.
7665         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
7666         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
7667         multiarch strcasecmp for PPC64.
7668         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
7669         file.
7670         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
7671         multiarch strcasecmp_l for PPC64.
7672
7673         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
7674         implementations.
7675         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7676         (__libc_ifunc_impl_list): Likewise.
7677         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
7678         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
7679         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
7680         strnlen for PPC64.
7681
7682         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
7683         implementations.
7684         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7685         (__libc_ifunc_impl_list): Likewise.
7686         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
7687         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
7688         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
7689         strlen for PPC64.
7690
7691         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
7692         implementations.
7693         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7694         (__libc_ifunc_impl_list): Likewise.
7695         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
7696         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
7697         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
7698         rawmemrchr for PPC64.
7699
7700         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
7701         implementation.
7702         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7703         (__libc_ifunc_impl_list): Likewise.
7704         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
7705         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
7706         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
7707         memrchr for PPC64.
7708
7709         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
7710         implementation.
7711         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7712         (__libc_ifunc_impl_list): Likewise.
7713         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
7714         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
7715         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
7716         memchr for PPC64.
7717
7718         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
7719         implementation.
7720         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7721         (__libc_ifunc_impl_list): Likewise.
7722         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
7723         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
7724         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
7725         mempcpy for PPC64.
7726
7727         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
7728         avoid cretion of __bzero symbol.
7729         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
7730         Likewise.
7731         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
7732         Likewise.
7733         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
7734         Likewise.
7735         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
7736         multiarch implementations.
7737         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7738         (__libc_ifunc_impl_list): Likewise.
7739         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
7740         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
7741         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
7742         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
7743         bzero for PPC32.
7744         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
7745         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
7746         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
7747         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
7748         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
7749         memset for PPC64.
7750         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
7751
7752         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
7753         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
7754         implementations.
7755         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7756         (__libc_ifunc_impl_list): Likewise.
7757         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
7758         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
7759         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
7760         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
7761         memcmp for PPC64.
7762
7763         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
7764         multiarch for POWER/PPC64.
7765         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
7766         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
7767         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
7768         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
7769         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
7770         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
7771         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
7772         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
7773         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
7774         memcpy for PPC64.
7775
7776         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
7777         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
7778         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
7779         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
7780         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
7781         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
7782         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
7783         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
7784         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
7785         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
7786         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
7787         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
7788         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
7789         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
7790         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
7791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
7792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
7793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
7794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
7795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
7796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
7797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
7798
7799 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7800
7801         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
7802
7803 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
7804
7805         * benchtests/Makefile (bench): Add exp2 and log2.
7806         (LDLIBS-bench-exp2): Add -lm.
7807         (LDLIBS-bench-log2): Likewise.
7808         * benchtests/exp2-inputs: New inputs file.
7809         * benchtests/log2-inputs: New inputs file.
7810         * benchtests/log-inputs: Add new inputs.
7811         * benchtests/tan-inputs: Likewise.
7812
7813 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7814
7815         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
7816         definition...
7817         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
7818         (csloww2): ... from here.
7819
7820         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
7821         instead of structures.
7822         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
7823         (POLYNOMIAL): Likewise.
7824         (TAYLOR_SLOW): Likewise.
7825         (__sin): Likewise.
7826         (__cos): Likewise.
7827         (slow1): Likewise.
7828         (slow2): Likewise.
7829         (sloww): Likewise.
7830         (sloww1); Likewise.
7831         (sloww2): Likewise.
7832         (bsloww1): Likewise.
7833         (bsloww2): Likewise.
7834         (cslow2): Likewise.
7835         (csloww): Likewise.
7836         (csloww1): Likewise.
7837         (csloww2): Likewise.
7838
7839 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
7840
7841         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
7842         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
7843         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
7844         * malloc/hooks.c (realloc_check): Likewise.
7845
7846         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
7847         * malloc/arena.c: Remove PER_THREAD conditional.
7848         [!PER_THREAD]: Remove code.
7849         (ptmalloc_unlock_all2): Likewise.
7850         (ptmalloc_init): Likewise.
7851         (_int_new_arena): Likewise.
7852         (arena_get2): Likewise.
7853         * malloc/hooks.c (__malloc_get_state): Likewise.
7854         (__malloc_set_state): Likewise.
7855         * malloc/malloc.c: Likewise.
7856         (struct malloc_state): Likewise.
7857         (struct malloc_par): Likewise.
7858         (__libc_realloc): Likewise.
7859         (__libc_mallopt): Likewise.
7860
7861 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7862
7863         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
7864
7865 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
7866
7867         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
7868         macro to a function.  Check for zero perturb_byte.
7869         (_int_malloc, _int_free): Remove zero perturb_byte checks.
7870
7871         * malloc/malloc.c: (force_reg): Remove.
7872         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
7873         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
7874         force_reg by atomic_forced_read.
7875         * malloc/arena.c (ptmalloc_init): Likewise.
7876         * malloc/hooks.c (top_check): Likewise.
7877
7878 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7879
7880         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7881
7882 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
7883
7884         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7885
7886 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
7887
7888         * math/auto-libm-test-in: Add tests of lgamma.
7889         * math/auto-libm-test-out: Regenerated.
7890         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
7891         (M_LOG_2_SQRT_PIl): Likewise.
7892         (lgamma_test_data): Use AUTO_TESTS_f_f1.
7893         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7894         mpfr_f_f1.
7895         (func_calc_desc): Add mpfr_f_f1 union field.
7896         (ARGS1): New macro.
7897         (ARGS2): Likewise.
7898         (ARGS3): Likewise.
7899         (ARGS4): Likewise.
7900         (RET1): Likewise.
7901         (RET2): Likewise.
7902         (CALC): Likewise.
7903         (FUNC): Likewise.
7904         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
7905         (test_functions): Add lgamma.
7906         (calc_generic_results): Handle mpfr_f_f1.
7907         * sysdeps/i386/fpu/libm-test-ulps: Update.
7908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7909
7910 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7911
7912         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
7913         __mpn_add_n for PowerPC64/POWER7.
7914         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
7915         __mpn_sub_n for PowerPC64/POWER7.
7916
7917         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
7918         __mpn_addmul_1 for PowerPC64.
7919         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
7920         __mpn_submul_1 for PowerPC64.
7921         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
7922         for PowerPC64.
7923         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
7924         for PowerPC64.
7925
7926 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
7927
7928         [BZ #15089]
7929         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
7930
7931 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7932
7933         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
7934
7935         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
7936         add multiarch folders.
7937         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
7938         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
7939         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
7940         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
7941         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
7942         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
7943         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
7944         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
7945         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
7946         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
7947         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
7948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
7949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
7950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
7951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
7952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
7953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
7954
7955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
7956         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
7957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
7958         New file.
7959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
7960         New file.
7961         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
7962         multiarch __ieee754_hypot for PowerPC32.
7963         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
7964         New file.
7965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
7966         New file.
7967         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
7968         multiarch __ieee754_hypotf for PowerPC32.
7969
7970         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
7971         long_double_symbol only if __logbl is defined.
7972         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
7973         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
7974         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
7975         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
7976         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
7977         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
7978         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
7979         path for implementation.
7980         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
7981         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
7982         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
7983         logb, and logbl multiarch implementations for PowerPC32.
7984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
7985         file.
7986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
7987         file.
7988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
7989         multiarch logb for PowerPC32.
7990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
7991         file.
7992         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
7993         file.
7994         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
7995         multiarch logbf for PowerPC32.
7996         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
7997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
7998         file.
7999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
8000         multiarch logbl implementation for PowerPC32.
8001
8002         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
8003         and modff multiarch implementations.
8004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
8005         New file.
8006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
8007         New file.
8008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
8009         multiarch modf for PowerPC32.
8010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
8011         New file.
8012         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
8013         New file.
8014         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
8015         multiarch modff for PowerPC32.
8016
8017         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
8018         and lrintf multiarch implementations.
8019         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
8020         New file.
8021         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
8022         New file.
8023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
8024         multiarch lrint for PowerPC32.
8025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
8026         file: multiarch lrintf for PowerPC32.
8027
8028         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
8029         and lroundf multiarch implementations.
8030         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
8031         New file.
8032         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
8033         New file.
8034         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
8035         New file.
8036         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
8037         multiarch lround for PowerPC32.
8038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
8039         file: multiarch lroundf for PowerPC32.
8040
8041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
8042         copysign and copysignf multiarch implementations.
8043         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
8044         New file.
8045         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
8046         New file.
8047         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
8048         file: multiarch copysign for PowerPC32.
8049         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
8050         file: multiarch copysignf for PowerPC32.
8051
8052         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
8053         and truncf multiarch implementations.
8054         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
8055         New file.
8056         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
8057         file.
8058         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
8059         multiarch trunc for PowerPC32.
8060         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
8061         New file.
8062         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
8063         New file.
8064         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
8065         multiarch truncf for PowerPC32.
8066
8067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
8068         and roundf multiarch implementations.
8069         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
8070         New file.
8071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
8072         file.
8073         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
8074         multiarch round for PowerPC32.
8075         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
8076         New file.
8077         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
8078         New file.
8079         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
8080         multiarch roundf for PowerPC32.
8081
8082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
8083         and floorf multiarch implementations.
8084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
8085         New file.
8086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
8087         file.
8088         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
8089         multiarch floor for PowerPC32.
8090         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
8091         New file.
8092         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
8093         New file.
8094         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
8095         multiarch floorf for PowerPC32.
8096
8097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
8098         and ceilf multiarch implementations.
8099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
8100         New file.
8101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
8102         file.
8103         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
8104         multiarch ceil for PowerPC32.
8105         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
8106         New file.
8107         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
8108         file.
8109         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
8110         multiarch ceilf for PowerPC32.
8111
8112         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
8113         is defined.
8114         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
8115         FINITEF is defined.
8116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
8117         and finitef multiarch implementations.
8118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
8119         New file.
8120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
8121         file.
8122         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
8123         multiarch finite for PowerPC32.
8124         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
8125         New file.
8126         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
8127         file: multiarch finitef for PowerPC32.
8128
8129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
8130         and isinff multiarch implementations.
8131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
8132         file.
8133         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
8134         file.
8135         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
8136         multiarch isinf for PowerPC32.
8137         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
8138         New file.
8139         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
8140         multiarch isinff for PowerPC32.
8141
8142         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
8143         alias when __isnan is defined.
8144         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
8145         and isnanf multiarch implementations.
8146         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
8147         file.
8148         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
8149         file.
8150         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
8151         file.
8152         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
8153         file.
8154         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
8155         multiarch isnan for PowerPC32.
8156         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
8157         New file.
8158         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
8159         New file.
8160         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
8161         multiarch isnanf for PowerPC32.
8162
8163         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
8164         and sqrtf multiarch implementations.
8165         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
8166         file.
8167         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
8168         file.
8169         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
8170         multiarch sqrt for PowerPC32.
8171         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
8172         file.
8173         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
8174         file.
8175         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
8176         multiarch sqrtf for PowerPC32.
8177
8178         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
8179         and llroundf multiarch implementations.
8180         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
8181         New file.
8182         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
8183         New file.
8184         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
8185         New file.
8186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
8187         file: multiarch llround for PowerPC32.
8188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
8189         file: multiarch llroundf for PowerPC32.
8190
8191         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
8192         multiarch PowerPC32 fpu implementations.
8193         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
8194         New file.
8195         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
8196         New file.
8197         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
8198         multiarch llrint for PowerPC32.
8199         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
8200         New file.
8201         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
8202         New file.
8203         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
8204         file.
8205
8206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
8207
8208         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
8209         file.
8210         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
8211         file.
8212         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
8213         file.
8214         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
8215         multiarch wordcopy for PPC32.
8216         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
8217         wordcopy objects.
8218         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8219         (__libc_ifunc_impl_list): Likewise.
8220         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
8221         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
8222         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
8223         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
8224         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
8225         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
8226
8227         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
8228         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
8229         file.
8230         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
8231         file.
8232         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
8233         file.
8234         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
8235         multiarch wcscpy for PPC32.
8236         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
8237         multiarch objects.
8238         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8239         (__libc_ifunc_impl_list): Likewise.
8240         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
8241         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
8242         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
8243         sysdeps/powerpc/power6/wcscpy.c.
8244
8245         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
8246         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
8247         file.
8248         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
8249         file.
8250         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
8251         file.
8252         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
8253         multiarch wcsrchr for PPC32.
8254         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
8255         multiarch objects.
8256         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8257         (__libc_ifunc_impl_list): Likewise.
8258         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
8259         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
8260         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
8261         sysdeps/powerpc/power6/wcsrchr.c.
8262
8263         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
8264         file.
8265         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
8266         file.
8267         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
8268         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
8269         multiarch wcschr for PPc32.
8270         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
8271         multiarch objects.
8272         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8273         (__libc_ifunc_impl_list): Likewise.
8274         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
8275         * sysdeps/powerpc/power6/wcschr.c: ... to here.
8276         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
8277         sysdeps/powerpc/power6/wcschr.c.
8278
8279         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
8280         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
8281         file.
8282         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
8283         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
8284         file: multiarch strchr for PPC32.
8285         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
8286         multiarch objects.
8287         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8288         (__libc_ifunc_impl_list): Likewise.
8289
8290         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
8291         name.
8292         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
8293         file.
8294         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
8295         file.
8296         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
8297         multiarch strchrnul for PPC32.
8298         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
8299         multiarch objects.
8300         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8301         (__libc_ifunc_impl_list): Likewise.
8302
8303         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
8304         file.
8305         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
8306         multiarch strncasecmp for PPC32.
8307         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
8308         file.
8309         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
8310         multiarch strncasecmp_l for PPC32.
8311         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
8312         strncasecmp multiarch objects.
8313         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8314         (__libc_ifunc_impl_list): Likewise.
8315
8316         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
8317         file.
8318         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
8319         multiarch strncasecmp for PPC32.
8320         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
8321         New file.
8322         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
8323         multiarch strcasecmp_l for PPC32.
8324         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
8325         multiarch objects.
8326         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8327         (__libc_ifunc_impl_list): Likewise.
8328
8329         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
8330         file.
8331         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
8332         file.
8333         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
8334         multiarch strncmp for PPC32.
8335         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
8336         multiarch objects.
8337         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8338         (__libc_ifunc_impl_list): Likewise.
8339
8340         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
8341         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
8342         file.
8343         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
8344         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
8345         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
8346         multiarch objects.
8347         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8348         (__libc_ifunc_impl_list): Likewise.
8349
8350         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
8351         file.
8352         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
8353         file.
8354         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
8355         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
8356         multiarch objects.
8357         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8358         (__libc_ifunc_impl_list): Likewise.
8359
8360         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
8361         file.
8362         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
8363         file.
8364         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
8365         multiarch rawmemchr for PPC32.
8366         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
8367         multiarch objects.
8368         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8369         (__libc_ifunc_impl_list): Likewise.
8370
8371         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
8372         file.
8373         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
8374         file.
8375         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
8376         file: memrchr multiarch for PPC32.
8377         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
8378         multiarch objects.
8379         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8380         (__libc_ifunc_impl_list): Likewise.
8381
8382         * string/memchr.c (__memchr): Using macro to redefine symbol name.
8383         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
8384         file.
8385         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
8386         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
8387         multiarch memchr for PPC32.
8388         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
8389         multiarch objects.
8390         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
8391         (__libc_ifunc_impl_list): Likewise.
8392
8393         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
8394         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
8395         file.
8396         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
8397         file.
8398         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
8399         file: multiarch mempcpy for PPC32.
8400         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
8401         multiarch objects.
8402         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
8403         (__libc_ifunc_impl_list): Likewise.
8404
8405         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
8406         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
8407         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
8408         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
8409         multiarch bzero for PPC32.
8410         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
8411         file.
8412         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
8413         file.
8414         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
8415         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
8416         file: multiarch memset for PPC32.
8417         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
8418         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
8419         memset multiarch objects.
8420         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
8421         (__libc_ifunc_impl_list): Likewise.
8422
8423         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
8424         file.
8425         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
8426         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
8427         memcmp for PPC32.
8428         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
8429         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
8430         multiarch objects.
8431         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
8432         (__libc_ifunc_impl_list): Likewise.
8433
8434         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
8435         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
8436         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
8437         file.
8438         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
8439         file.
8440         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
8441         file.
8442         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
8443         multiarch memcpy for PPC32.
8444         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
8445         multiarch objects.
8446         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
8447         (__libc_ifunc_impl_list): Likewise.
8448
8449         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
8450         support multiarch for POWER/PPC32.
8451         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
8452         Likewise.
8453         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
8454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
8455         Implies file to make multiarch folder appers before the fpu and
8456         default folder for power4 configuration.
8457
8458 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8459
8460         * scripts/bench.pl: Append volatile keyword to type.
8461
8462 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8463
8464         * sysdeps/sh/sotruss-lib.c: New file.
8465         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
8466
8467 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8468
8469         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8470
8471 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
8472
8473         [BZ #6810]
8474         * math/w_tgamma.c: Include <errno.h>.
8475         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
8476         * math/w_tgammaf.c: Include <errno.h>.
8477         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
8478         * math/w_tgammal.c: Include <errno.h>.
8479         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
8480         * math/auto-libm-test-in: Do not allow missing errno on tgamma
8481         underflow.  Add more tgamma tests.
8482         * math/auto-libm-test-out: Regenerated.
8483         * sysdeps/i386/fpu/libm-test-ulps: Update.
8484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8485
8486         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
8487         sin, sinh, tan, tanh, tgamma, y0 and y1.
8488         * math/auto-libm-test-out: Regenerated.
8489         * math/libm-test.inc (TEST_COND_x86_64): New macro.
8490         (TEST_COND_x86): Likewise.
8491         (M_E2l): Remove macro.
8492         (M_E3l): Likewise.
8493         (M_2_SQRT_PIl): Likewise.
8494         (M_SQRT_PIl): Likewise.
8495         (M_1_DIV_El): Likewise.
8496         (log_test_data): Use AUTO_TESTS_f_f.
8497         (log10_test_data): Likewise.
8498         (log1p_test_data): Likewise.
8499         (log2_test_data): Likewise.
8500         (sin_test_data): Likewise.
8501         (sin_tonearest_test_data): Likewise.
8502         (sin_towardzero_test_data): Likewise.
8503         (sin_downward_test_data): Likewise.
8504         (sin_upward_test_data): Likewise.
8505         (sinh_test_data): Likewise.
8506         (sinh_tonearest_test_data): Likewise.
8507         (sinh_towardzero_test_data): Likewise.
8508         (sinh_downward_test_data): Likewise.
8509         (sinh_upward_test_data): Likewise.
8510         (tan_test_data): Likewise.
8511         (tan_tonearest_test_data): Likewise.
8512         (tan_towardzero_test_data): Likewise.
8513         (tan_downward_test_data): Likewise.
8514         (tan_upward_test_data): Likewise.
8515         (tanh_test_data): Likewise.
8516         (tgamma_test_data): Likewise.
8517         (y0_test_data): Likewise.
8518         (y1_test_data): Likewise.
8519         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
8520         (special_real_inputs): Add pi/4.
8521         * sysdeps/i386/fpu/libm-test-ulps: Update.
8522         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8523
8524 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8525
8526         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
8527         "longjmp_target" static probes.
8528         (__longjmp): Rename to __longjmp_symbol.
8529         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
8530         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
8531         on which longjmp to generate.
8532         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
8533         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
8534         probe.
8535         (__sigsetjmp): Rename to __sigsetjmp_symbol.
8536         (__sigjmp_save): Rename to __sigjmp_save_symbol.
8537         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
8538         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
8539         and __sigjmp_save_symbol based on which sigsetjmp to generated.
8540         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
8541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
8542         __longjmp_symbol based on which __longjmp to generate.
8543         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
8544         probe.
8545         (setjmp): Rename to setjmp_symbol.
8546         (__sigsetjmp): Rename to __sigsetjmp_symbol.
8547         (_setjmp): Rename to _setjmp_symbol.
8548         (__sigsetjmp): Rename to __sigsetjmp_symbol.
8549         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
8550         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
8551         which setjmp to generate.
8552         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
8553         "longjmp_target" static probes.
8554
8555 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8556
8557         * benchtests/README: Add note about output arguments.
8558         * benchtests/bench-sincos.c: Remove file.
8559         * benchtests/sincos-inputs: New file.
8560         * scripts/bench.pl: Identify output arguments and define
8561         static variables for them.
8562
8563         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
8564
8565         [BZ #15941]
8566         * Makefile (INSTALL): Add install-plain.texi as the primary
8567         dependency.
8568         * manual/install-plain.texi: New file.
8569         * manual/install.texi: Include node directive only for
8570         non-plaintext output.
8571
8572 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
8573
8574         * stdlib/longlong.h: Update from GCC.
8575
8576         [BZ #6807]
8577         [BZ #15901]
8578         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
8579         * math/w_j0f.c (y0f): Likewise.
8580         * math/w_j0l.c (__y0l): Likewise.
8581         * math/w_j1.c (y1): Likewise.
8582         * math/w_j1f.c (y1f): Likewise.
8583         * math/w_j1l.c (__y1l): Likewise
8584         * math/w_jn.c (yn): Likewise.
8585         * math/w_jnf.c (ynf): Likewise.
8586         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
8587         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
8588         value for Bessel function domain errors outside _SVID_ mode.
8589         Adjust sign of return value for yn (negative integer, 0).
8590         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
8591         by zero in return for negative x and set sign appropriately for
8592         negative n.
8593         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
8594         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
8595         * math/libm-test.inc (y0_test_data): Add more tests and adjust
8596         expectations in error cases.
8597         (y1_test_data): Likewise.
8598         (yn_test_data): Likewise.
8599         * sysdeps/i386/fpu/libm-test-ulps: Update.
8600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8601
8602 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8603
8604         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
8605         "64" to "64-v1".  Add "64-v2".
8606         (abi-64-options): Rename to ...
8607         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
8608         (abi-64-condition): Rename to ...
8609         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
8610         (abi-64-ld-soname): Rename to ...
8611         (abi-64-v1-ld-soname): ... this.
8612         (abi-64-v2-options): Define.
8613         (abi-64-v2-condition): Likewise.
8614         (abi-64-v2-ld-soname): Likewise.
8615         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
8616         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
8617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
8618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
8619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
8620
8621 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8622             Alan Modra  <amodra@gmail.com>
8623
8624         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
8625         New versions for use with the ELFv2 ABI.
8626         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
8627         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
8628         declaration.
8629         (struct La_ppc64v2_retval): Likewise.
8630         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
8631         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
8632         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
8633         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
8634         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
8635         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
8636         Do not save or restore CR.
8637         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
8638         (_dl_profile_resolve): Do no save or restore CR.  Support extended
8639         return values for ELFv2 ABI.  Fix location of FPR return registers.
8640         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
8641         updated values for _CALL_ELF == 2.
8642         (La_regs, La_retval, int_retval): Likewise.
8643
8644 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8645
8646         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
8647         (FRAME_MIN_SIZE_PARM): Likewise.
8648         (FRAME_BACKCHAIN): Likewise.
8649         (FRAME_CR_SAVE): Likewise.
8650         (FRAME_LR_SAVE): Likewise.
8651         (FRAME_TOC_SAVE): Likewise.
8652         (FRAME_PARM_SAVE): Likewise.
8653         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
8654         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
8655         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
8656         (call_mcount_parm_offset): New macro.
8657         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
8658         (PROF): Use symbolic stack frame offsets.
8659         (TAIL_CALL_SYSCALL_ERROR): Likewise.
8660         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
8661         Redefine in terms of FRAME_MIN_SIZE.
8662         (_dl_runtime_resolve): Use symbolic stack frame offsets.
8663         (_dl_profile_resolve): Likewise.  Update comment.
8664         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
8665         symbols stack frame offsets.
8666         (__sigsetjmp): Likewise.
8667         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8668         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
8669         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
8670         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
8671
8672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
8673         (FRAME_BACKCHAIN): Remove.
8674         (FRAME_CR_SAVE): Likewise.
8675         (FRAME_LR_SAVE): Likewise.
8676         (FRAME_COMPILER_DW): Likewise.
8677         (FRAME_LINKER_DW): Likewise.
8678         (FRAME_TOC_SAVE): Likewise.
8679         (FRAME_PARM_SAVE): Likewise.
8680         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
8681         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
8682         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
8683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
8684         (CHECK_SP): Use symbolic stack frame offsets.
8685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
8686         zone" instead of caller's parameter save area for temp storage.
8687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
8688         Likewise.  Also, use symbolic stack frame offsets.
8689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
8690         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
8691         our own stack frame instead of the caller's.
8692         (__socket): Use symbolic stack frame offsets.
8693
8694 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8695             Alan Modra  <amodra@gmail.com>
8696
8697         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
8698         Define.
8699         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
8700         (PPC64_LOCAL_ENTRY_OFFSET): Define.
8701         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
8702         New function.
8703         (elf_machine_fixup_plt): Call it.
8704         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
8705         reloc arguments.
8706         (elf_machine_rela): Update call to elf_machine_plt_conflict.
8707         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
8708         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
8709         r2 before calling target.
8710
8711 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8712             Alan Modra  <amodra@gmail.com>
8713
8714         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
8715         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
8716         versions of macros to support ELFv2 ABI.
8717         (LOCALENTRY): New macro.
8718         (ENTRY, EALIGN): Use it.
8719         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
8720         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
8721         fall through into ENTRY entry point.
8722         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
8723         Only define if _CALL_ELF != 2.
8724
8725         (elf_machine_matches_host): Verify ABI version matches.
8726         (RTLD_START): Use LOCALENTRY.
8727         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
8728         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
8729         (PLT_ENTRY_WORDS): New macro.
8730         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
8731         (elf_machine_runtime_setup): Support ELFv2 ABI.
8732         (elf_machine_fixup_plt): Likewise.
8733         (elf_machine_plt_conflict): Likewise.
8734         (resolve_ifunc): Likewise.
8735         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
8736         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
8737         Likewise.
8738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8739         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
8740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
8741         (makecontext): Support ELFv2 ABI.
8742         * elf/elf.h (EF_PPC64_ABI): Define.
8743
8744 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8745
8746         * sysdeps/powerpc/powerpc64/sysdep.h
8747         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
8748         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
8749         (ENTRY) [ASSEMBLER]: ... but instead here ...
8750         (EALIGN) [ASSEMBLER]: ... and here.
8751         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
8752         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
8753         (ENTRY_2) [!ASSEMBLER]: Use it.
8754         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
8755         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
8756         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
8757         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
8758         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
8759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
8760         Use PPC64_LOAD_FUNCPTR.
8761
8762         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
8763
8764 2013-12-04  Alan Modra  <amodra@gmail.com>
8765
8766         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
8767         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
8768         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
8769         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
8770
8771         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
8772         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
8773         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
8774         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
8775         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
8776         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
8777
8778 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8779
8780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
8781         (__makecontext): Fix incorrect CFI when backtracing out of
8782         context created via makecontext.
8783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
8784         (__setcontext): Fix incorrect CFI during switch to new context.
8785         (__novec_setcontext): Likewise.
8786
8787 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
8788
8789         [BZ #4772]
8790         * time/strptime_l.c (__strptime_internal): Allow modifiers
8791         in strptime.
8792         * time/tst-strptime.c (day_tests): Add testcase.
8793
8794 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
8795
8796         * scripts/bench.pl: Skip over blank lines.
8797
8798 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
8799
8800         [BZ #926]
8801         * manual/time.texi (Calendar Time): Clarify what timezone functions
8802         use.
8803
8804 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8805
8806         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8807
8808 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
8809
8810         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
8811         implementation.
8812         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8813         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8814         * debug/memset_chk.c (__memset_chk): Likewise.
8815         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
8816         * debug/strncpy_chk.c: Likewise.
8817
8818 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
8819
8820         [BZ #15268]
8821         [BZ #15425]
8822         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
8823         (__ieee754_exp): For possibly underflowing results, check size of
8824         result and force underflow exception if required.
8825         * math/auto-libm-test-in: Add more tests of exp.
8826         * math/auto-libm-test-out: Regenerated.
8827         * sysdeps/i386/fpu/libm-test-ulps: Update.
8828         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8829
8830         [BZ #16283]
8831         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
8832         * math/w_exp2f.c (__exp2f): Likewise.
8833         * math/w_exp2l.c (__exp2l): Likewise.
8834         * math/auto-libm-test-in: Do not allow missing errno on exp2
8835         underflow.
8836         * math/auto-libm-test-out: Regenerated.
8837
8838 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
8839
8840         [BZ #16274]
8841         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
8842         handle filename validation.
8843         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
8844         (do_open): Delete.
8845
8846 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
8847
8848         [BZ #6786]
8849         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
8850         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
8851         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
8852         <float.h>.
8853         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
8854         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
8855         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
8856         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
8857         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
8858         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
8859         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
8860         * math/auto-libm-test-in: Don't allow missing errno from erfc.
8861         Add more erfc tests.
8862         * math/auto-libm-test-out: Regenerated.
8863         * sysdeps/i386/fpu/libm-test-ulps: Update.
8864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8865
8866         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
8867         exp2, expm1, j0 and j1.
8868         * math/auto-libm-test-out: Regenerated.
8869         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
8870         (erfc_test_data): Likewise.
8871         (exp_test_data): Likewise.
8872         (exp_tonearest_test_data): Likewise.
8873         (exp_towardzero_test_data): Likewise.
8874         (exp_downward_test_data): Likewise.
8875         (exp_upward_test_data): Likewise.
8876         (exp10_test_data): Likewise.
8877         (exp2_test_data): Likewise.
8878         (expm1_test_data): Likewise.
8879         (j0_test_data): Likewise.
8880         (j1_test_data): Likewise.
8881         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
8882         (input_flag_type): Add flag_xfail_rounding.
8883         (input_flags): Add xfail-rounding.
8884         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
8885         (output_for_one_input_case): Handle flag_xfail_rounding.
8886         * sysdeps/i386/fpu/libm-test-ulps: Update.
8887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8888
8889 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
8890
8891         [BZ #16289]
8892         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
8893         division by 0.
8894
8895 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
8896
8897         [BZ #16195]
8898         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
8899         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
8900         (STAP_PROBE0): New macro.
8901         (STAP_PROBE1): Likewise.
8902         (STAP_PROBE2): Likewise.
8903         (STAP_PROBE3): Likewise.
8904         (STAP_PROBE4): Likewise.
8905
8906 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
8907
8908         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
8909
8910 2013-12-02  Steve Ellcey  <sellcey@mips.com>
8911
8912         * benchtests/Makefile (bench): Add sqrt.
8913         (LDLIBS-bench-sqrt): New.
8914         * benchtests/sqrt-input: New.
8915
8916 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
8917
8918         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
8919         (GAIH_EAI): Likewise.
8920         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
8921         (gaih_inet): Likewise.
8922         (getaddrinfo): Don't use GAIH_EAI.
8923
8924         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
8925         (struct gaih): Remove definition.
8926
8927 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
8928
8929         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
8930         Use HERRNOP directly.
8931
8932 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8933
8934         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8935
8936 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
8937
8938         * math/gen-auto-libm-tests.c (test_functions): Add more
8939         single-argument functions.
8940         (special_fill_pi_2): New function.
8941         (special_fill_minus_pi_2): Likewise.
8942         (special_fill_pi_6): Likewise.
8943         (special_fill_minus_pi_6): Likewise.
8944         (special_fill_pi_3): Likewise.
8945         (special_fill_2pi_3): Likewise.
8946         (special_fill_e): Likewise.
8947         (special_fill_1_e): Likewise.
8948         (special_fill_e_minus_1): Likewise.
8949         (special_real_inputs): Add more special inputs.
8950         (output_for_one_input_case): Do not require ERANGE on underflow to
8951         zero if round-to-nearest result does not underflow to zero, unless
8952         exact results required.
8953         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
8954         atan, atanh, cbrt, cos and cosh.
8955         * math/auto-libm-test-out: Regenerated.
8956         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
8957         (acos_tonearest_test_data): Likewise.
8958         (acos_towardzero_test_data): Likewise.
8959         (acos_downward_test_data): Likewise.
8960         (acos_upward_test_data): Likewise.
8961         (acosh_test_data): Likewise.
8962         (asin_test_data): Likewise.
8963         (asin_tonearest_test_data): Likewise.
8964         (asin_towardzero_test_data): Likewise.
8965         (asin_upward_test_data): Likewise.
8966         (asinh_test_data): Likewise.
8967         (atan_test_data): Likewise.
8968         (atanh_test_data): Likewise.
8969         (cbrt_test_data): Likewise.
8970         (cos_test_data): Likewise.
8971         (cos_tonearest_test_data): Likewise.
8972         (cos_towardzero_test_data): Likewise.
8973         (cos_downward_test_data): Likewise.
8974         (cos_upward_test_data): Likewise.
8975         (cosh_test_data): Likewise.
8976         (cosh_tonearest_test_data): Likewise.
8977         (cosh_towardzero_test_data): Likewise.
8978         (cosh_downward_test_data): Likewise.
8979         (cosh_upward_test_data): Likewise.
8980         * sysdeps/i386/fpu/libm-test-ulps: Update.
8981         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8982
8983 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
8984
8985         [BZ #6787]
8986         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
8987         * math/w_exp10f.c (__exp10f): Likewise.
8988         * math/w_exp10l.c (__exp10l): Likewise.
8989         * math/libm-test.inc (exp10_test_data): Add more tests and expect
8990         errno settings in existing tests.
8991
8992         [BZ #14032]
8993         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
8994         precision control set to double precision.
8995         * sysdeps/i386/fpu/w_sqrt.c: New file.
8996         * math/auto-libm-test-in: Add more tests.
8997         * math/auto-libm-test-out: Update.
8998
8999         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
9000         (sqrt_test_tonearest): New function.
9001         (sqrt_towardzero_test_data): New variable.
9002         (sqrt_test_towardzero): New function.
9003         (sqrt_downward_test_data): New variable.
9004         (sqrt_test_downward): New function.
9005         (sqrt_upward_test_data): New variable.
9006         (sqrt_test_upward): New function.
9007         (main): Call the new functions.
9008
9009         * math/gen-auto-libm-tests.c: New file.
9010         * math/auto-libm-test-in: Likewise.
9011         * math/auto-libm-test-out: New generated file.
9012         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
9013         variables.
9014         (%beautify): Add generated representations of zero.
9015         (top level): Set $auto_input and call parse_auto_input.
9016         (beautify): Remove trailing "f" from hex float constants.
9017         (parse_args): Handle XFAIL_TEST.
9018         (convert_condition): New function.
9019         (or_value): Likewise.
9020         (or_cond_value): Likewise.
9021         (generate_testfile): Handle AUTO_TESTS_* lines.
9022         (parse_auto_input): New function.
9023         * math/libm-test.inc (XFAIL_TEST): New macro.
9024         (ERRNO_UNCHANGED): Update value.
9025         (ERRNO_EDOM): Likewise.
9026         (ERRNO_ERANGE): Likewise.
9027         (IGNORE_RESULT): Likewise.
9028         (TEST_COND_flt_32): New macro.
9029         (TEST_COND_dbl_64): Likewise.
9030         (TEST_COND_ldbl_96_intel): Likewise.
9031         (TEST_COND_ldbl_96_m68k): Likewise.
9032         (TEST_COND_ldbl_128): Likewise.
9033         (TEST_COND_ldbl_128ibm): Likewise.
9034         (TEST_COND_long32): Likewise.
9035         (TEST_COND_long64): Likewise.
9036         (TEST_COND_before_rounding): Likewise.
9037         (TEST_COND_after_rounding): Likewise.
9038         (enable_test): Handle XFAIL_TEST flag.
9039         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
9040         with finite results.
9041         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
9042         auto-libm-test-out.
9043
9044 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
9045             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9046
9047         [BZ #16214]
9048         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
9049         __tls_get_addr_internal instead of __tls_get_offset in order to
9050         avoid GOT pointer dependency.  Make rtld export
9051         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
9052         __tls_get_addr since we are a __tls_get_offset platform.
9053         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
9054         GOT pointer being set up before.
9055         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
9056
9057 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
9058
9059         * manual/math.texi (Errors in Math Functions): Document accuracy
9060         goals.
9061
9062         [BZ #15004]
9063         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
9064         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
9065         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9066         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9067         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9068         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9069         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9070         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9071         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9072         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9073         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9074         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9075         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9076         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9077         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9078         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9079
9080         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
9081         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
9082         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
9083         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
9084         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
9085         Likewise.
9086         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
9087         Likewise.
9088         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
9089         Likewise.
9090         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
9091         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
9092         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
9093         atomic-feupdateenv and flt-rounds.
9094         * sysdeps/powerpc/nofpu/Versions (libc): Add
9095         __atomic_feholdexcept, __atomic_feclearexcept,
9096         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
9097         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
9098         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
9099         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
9100         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
9101         here.
9102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
9103         Update.
9104
9105         * manual/arith.texi (FP Exceptions): Document that exceptions may
9106         not be raised when matherr is used.
9107         (Math Error Reporting): Document overflow in directed rounding
9108         modes.  Document that errno may not be set when finite values are
9109         returned on overflow.  Document intent to set errno on underflow
9110         only for underflow to zero.
9111
9112         [BZ #16271]
9113         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
9114         round-to-nearest then adjust result for other rounding modes.
9115         * include/fenv.h (fegetround): Use libm_hidden_proto.
9116         * math/fegetround.c (fegetround): Use libm_hidden_def.
9117         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
9118         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
9119         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
9120         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
9121         Likewise.
9122         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
9123         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
9124         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
9125         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
9126
9127 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9128
9129         [BZ #16077]
9130         * nss/Versions (libnss_files): Add
9131         _nss_files_gethostbyname3_r.
9132         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
9133         New function.
9134         (HOST_DB_LOOKUP): Remove macro.
9135         (_nss_files_gethostbyname_r): Implement function without the
9136         HOST_DB_LOOKUP macro.
9137         (_nss_files_gethostbyname2_r): Likewise.
9138
9139 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
9140
9141         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
9142
9143 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
9144
9145         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
9146         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
9147         warning.
9148
9149 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9150
9151         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
9152         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
9153         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
9154         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
9155         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
9156         __fe_nomask_env_priv and attribute_hidden.
9157         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
9158         (libc_feupdateenv_test_ppc): Likewise.
9159         (libc_feresetround_ppc): Likewise.
9160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
9161         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
9162         compat_symbol macro.
9163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
9164         (__fe_nomask_env): Likewise.
9165         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
9166
9167 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9168
9169         * string/Makefile: Remove ifunc tests.
9170         * string/test-string.h: Define TEST_IFUNC.
9171         * string/test-bcopy-ifunc.c: Remove.
9172         * string/test-bzero-ifunc.c: Likewise.
9173         * string/test-memccpy-ifunc.c: Likewise.
9174         * string/test-memchr-ifunc.c: Likewise.
9175         * string/test-memcmp-ifunc.c: Likewise.
9176         * string/test-memcpy-ifunc.c: Likewise.
9177         * string/test-memmem-ifunc.c: Likewise.
9178         * string/test-memmove-ifunc.c: Likewise.
9179         * string/test-mempcpy-ifunc.c: Likewise.
9180         * string/test-memrchr-ifunc.c: Likewise.
9181         * string/test-memset-ifunc.c: Likewise.
9182         * string/test-rawmemchr-ifunc.c: Likewise.
9183         * string/test-stpcpy-ifunc.c: Likewise.
9184         * string/test-stpncpy-ifunc.c: Likewise.
9185         * string/test-strcasecmp-ifunc.c: Likewise.
9186         * string/test-strcasestr-ifunc.c: Likewise.
9187         * string/test-strcat-ifunc.c: Likewise.
9188         * string/test-strchr-ifunc.c: Likewise.
9189         * string/test-strchrnul-ifunc.c: Likewise.
9190         * string/test-strcmp-ifunc.c: Likewise.
9191         * string/test-strcpy-ifunc.c: Likewise.
9192         * string/test-strcspn-ifunc.c: Likewise.
9193         * string/test-strlen-ifunc.c: Likewise.
9194         * string/test-strncasecmp-ifunc.c: Likewise.
9195         * string/test-strncat-ifunc.c: Likewise.
9196         * string/test-strncmp-ifunc.c: Likewise.
9197         * string/test-strncpy-ifunc.c: Likewise.
9198         * string/test-strnlen-ifunc.c: Likewise.
9199         * string/test-strpbrk-ifunc.c: Likewise.
9200         * string/test-strrchr-ifunc.c: Likewise.
9201         * string/test-strspn-ifunc.c: Likewise.
9202         * string/test-strstr-ifunc.c: Likewise.
9203
9204 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9205
9206         * benchtests/Makefile: Remove ifunc tests.
9207         * benchtests/bench-string.h: Define TEST_IFUNC.
9208         * benchtests/bench-bcopy-ifunc.c: Remove.
9209         * benchtests/bench-bzero-ifunc.c: Likewise.
9210         * benchtests/bench-memccpy-ifunc.c: Likewise.
9211         * benchtests/bench-memchr-ifunc.c: Likewise.
9212         * benchtests/bench-memcmp-ifunc.c: Likewise.
9213         * benchtests/bench-memcpy-ifunc.c: Likewise.
9214         * benchtests/bench-memmem-ifunc.c: Likewise.
9215         * benchtests/bench-memmove-ifunc.c: Likewise.
9216         * benchtests/bench-mempcpy-ifunc.c: Likewise.
9217         * benchtests/bench-memrchr-ifunc.c: Likewise.
9218         * benchtests/bench-memset-ifunc.c: Likewise.
9219         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
9220         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
9221         * benchtests/bench-stpcpy-ifunc.c: Likewise.
9222         * benchtests/bench-stpncpy-ifunc.c: Likewise.
9223         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
9224         * benchtests/bench-strcasestr-ifunc.c: Likewise.
9225         * benchtests/bench-strcat-ifunc.c: Likewise.
9226         * benchtests/bench-strchr-ifunc.c: Likewise.
9227         * benchtests/bench-strchrnul-ifunc.c: Likewise.
9228         * benchtests/bench-strcmp-ifunc.c: Likewise.
9229         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
9230         * benchtests/bench-strcpy-ifunc.c: Likewise.
9231         * benchtests/bench-strcspn-ifunc.c: Likewise.
9232         * benchtests/bench-strlen-ifunc.c: Likewise.
9233         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
9234         * benchtests/bench-strncat-ifunc.c: Likewise.
9235         * benchtests/bench-strncmp-ifunc.c: Likewise.
9236         * benchtests/bench-strncpy-ifunc.c: Likewise.
9237         * benchtests/bench-strnlen-ifunc.c: Likewise.
9238         * benchtests/bench-strpbrk-ifunc.c: Likewise.
9239         * benchtests/bench-strrchr-ifunc.c: Likewise.
9240         * benchtests/bench-strsep-ifunc.c: Likewise.
9241         * benchtests/bench-strspn-ifunc.c: Likewise.
9242         * benchtests/bench-strstr-ifunc.c: Likewise.
9243
9244 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9245
9246         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
9247
9248 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9249
9250         * resolv/netdb.h: Use __glibc_reserved instead __unused.
9251         * rt/aio.h: Likewise.
9252         * sysdeps/gnu/bits/utmp.h: Likewise.
9253         * sysdeps/gnu/bits/utmpx.h: Likewise.
9254         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
9255         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
9256         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
9257         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
9258         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
9259         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9260         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
9261         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
9262         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
9263         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
9264         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
9265         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
9266         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
9267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
9268         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
9269         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
9270         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
9271         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
9272         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
9273         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9274         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
9275         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
9276         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
9277         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
9278         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
9279         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9280         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
9281         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
9282         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
9283         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
9284         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9285         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
9286         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
9287         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
9288         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9289         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
9290         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
9291         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
9292         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
9293         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
9294         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9295         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
9296
9297 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
9298
9299         [BZ #16245]
9300         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
9301         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
9302
9303 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
9304
9305         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
9306         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
9307         Likewise.
9308
9309 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9310
9311         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
9312         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
9313         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
9314         (__fesetround): Remove define.
9315         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
9316         rounding and exceptions handling.
9317         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
9318         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
9319         (__fe_nomask_env): Likewise.
9320         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
9321         __fegetround instead of fegetround.
9322         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
9323         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
9324
9325 2013-11-21  Roland McGrath  <roland@hack.frob.com>
9326
9327         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
9328         it's there.
9329
9330         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
9331
9332 2013-11-21  Meador Inge  <meadori@codesourcery.com>
9333
9334         [BZ #11157]
9335         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
9336         (encrypt_r): Likewise.
9337         * malloc/obstack.h (obstack_free): Likewise.
9338         * posix/unistd.h (encrypt): Likewise.
9339
9340 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
9341
9342         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
9343         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
9344         DL_CALL_DT_FINI() that call the functions directly.
9345         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
9346         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
9347         * elf/dl-fini.c: Likewise.
9348
9349 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
9350
9351         * malloc/hooks.c (memalign_check): Add alignment rounding.
9352         * malloc/malloc.c (_mid_memalign): New function.
9353         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
9354         Implement by calling _mid_memalign.
9355         * manual/probes.texi (Memory Allocation Probes): Remove
9356         memory_valloc_retry and memory_pvalloc_retry.
9357
9358 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9359
9360         * locale/programs/locarchive.c (open_archive): Add const
9361         qualifier to ARCHIVEFNAME and copy default fname to
9362         DEFAULT_FNAME.
9363
9364         [BZ #15601]
9365         * libio/tst-widetext.input: Rename Oriya to Odia.
9366         * locale/iso-639.def: Likewise.
9367
9368         * manual/probes.texi (Mathematical Function Probes): Add
9369         documentation for sin, cos, asin and acos probes.
9370         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
9371         (__sin32): Add slowasin probe.
9372         (__cos32): Add slowacos probe.
9373         (__mpsin): Add slowsin probe.
9374         (__mpcos): Add slowcos probe.
9375
9376 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
9377
9378         [BZ #15483]
9379         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
9380         thread-local __sim_exceptions_thread and global
9381         __sim_exceptions_global.
9382         (__sim_disabled_exceptions): Change to thread-local
9383         __sim_disabled_exceptions_thread and global
9384         __sim_disabled_exceptions_global.
9385         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
9386         and global __sim_round_mode_global.
9387         (__simulate_exceptions): Use thread-local floating-point state and
9388         set global state from it as needed.
9389         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
9390         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
9391         __sim_round_mode_thread.
9392         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
9393         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
9394         and global __sim_exceptions_global.
9395         (__sim_disabled_exceptions): Change to thread-local
9396         __sim_disabled_exceptions_thread and global
9397         __sim_disabled_exceptions_global.
9398         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
9399         and global __sim_round_mode_global.
9400         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
9401         (SIM_SET_GLOBAL): Likewise.
9402         * sysdeps/powerpc/soft-fp/sfp-machine.h
9403         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
9404         __sim_round_mode_thread.
9405         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
9406         __sim_disabled_exceptions_thread.
9407         (__sim_exceptions): Change to __sim_exceptions_thread.
9408         (__sim_disabled_exceptions): Change to
9409         __sim_disabled_exceptions_thread.
9410         (__sim_round_mode): Change to __sim_round_mode_thread.
9411         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
9412         thread-local floating-point state and set global state from it as
9413         needed.
9414         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
9415         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
9416         (__sim_disabled_exceptions): Remove extern declaration.
9417         (feenableexcept): Use thread-local floating-point state and set
9418         global state from it as needed.
9419         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
9420         extern declaration.
9421         (__sim_disabled_exceptions): Likewise.
9422         (__sim_round_mode): Likewise.
9423         (__fegetenv): Use thread-local floating-point state.
9424         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
9425         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
9426         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
9427         floating-point state and set global state from it as needed.
9428         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
9429         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
9430         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
9431         Likewise.
9432         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
9433         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
9434         Likewise.
9435         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
9436         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
9437         Use __sim_round_mode_thread.
9438         * math/test-fenv-tls.c: New file.
9439         * math/Makefile (tests): Add test-fenv-tls.
9440         ($(objpfx)test-fenv-tls): Depend on
9441         $(common-objpfx)nptl/libpthread.so.
9442
9443 2013-11-19  Andreas Schwab  <schwab@suse.de>
9444
9445         * locale/programs/locale.c (show_info): Decode wordarray elements.
9446         * locale/categories.def (LC_MONETARY): Add element for
9447         _NL_MONETARY_CRNCYSTR.
9448         * locale/C-monetary.c (conversion_rate): New variable.
9449         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
9450         element.
9451
9452 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
9453
9454         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
9455         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
9456
9457 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
9458
9459         * elf/Makefile (tst-auxv): New test.
9460         * elf/tst-auxv.c: New
9461         * elf/rtld.c (dl_main): Adjust AT_EXECFN
9462
9463 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
9464
9465         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
9466         (hidden_proto): Caller changed.
9467         (hidden_tls_proto): New macro.
9468         (libc_hidden_tls_proto): Likewise.
9469         (rtld_hidden_tls_proto): Likewise.
9470         (libm_hidden_tls_proto): Likewise.
9471         (libresolv_hidden_tls_proto): Likewise.
9472         (librt_hidden_tls_proto): Likewise.
9473         (libdl_hidden_tls_proto): Likewise.
9474         (libnss_files_hidden_tls_proto): Likewise.
9475         (libnsl_hidden_tls_proto): Likewise.
9476         (libnss_nisplus_hidden_tls_proto): Likewise.
9477         (libutil_hidden_tls_proto): Likewise.
9478
9479 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
9480
9481         [BZ #10253]
9482         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
9483         (decompose_rpath): Defer expansion to fillin_rpath.
9484         (_dl_init_paths): Pass linkmap to fillin_rpath.
9485
9486 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9487
9488         * benchtests/Makefile: Add strsep.
9489         * benchtests/bench-strsep.c: New file: strsep benchtest.
9490         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
9491
9492 2013-11-18  Andreas Schwab  <schwab@suse.de>
9493
9494         * locale/programs/locale.c (show_info) [case byte]: Check for
9495         '\377' instead of '\177'.
9496         * locale/C-monetary.c (not_available): Always use "\377".
9497         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
9498         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
9499         detect unavailable sign_posn locale elements.
9500         * locale/localeconv.c (__localeconv): For grouping and
9501         mon_grouping handle "\177" and "\377" like no grouping.
9502         (INT_ELEM): New macro.  Use it to set all numeric members.
9503         * locale/programs/ld-monetary.c (monetary_read)
9504         <tok_mon_grouping>: Normalize single -1 to the empty string.
9505         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
9506         Likewise.
9507
9508 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
9509
9510         [BZ #16055]
9511         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
9512         when we match (nil).
9513         * stdio-common/tst-sscanf.c (struct test): Add testcase.
9514
9515 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
9516
9517         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
9518         (NO_TEST_INLINE): Update value.
9519         (ERRNO_UNCHANGED): Likewise.
9520         (ERRNO_EDOM): Likewise.
9521         (ERRNO_ERANGE): Likewise.
9522         (IGNORE_RESULT): Likewise.
9523         (check_float_internal): Check signs of NaN results if
9524         TEST_NAN_SIGN used.
9525         (check_complex): Pass TEST_NAN_SIGN flag through to second
9526         check_float_internal call.
9527         (copysign_test_data): Add tests with quiet NaNs as second
9528         argument.  Use TEST_NAN_SIGN.
9529         (fabs_test_data): Add test of negative quiet NaN argument.  Use
9530         TEST_NAN_SIGN.
9531         (signbit_test_data): Add tests of quiet NaN argument.
9532         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
9533
9534         * math/gen-libm-test.pl (show_exceptions): Take extra argument
9535         $ignore_result.
9536         (parse_args): Handle function results specified as IGNORE.
9537         * math/libm-test.inc (IGNORE_RESULT): New macro.
9538         (check_float_internal): Do not check numerical result if flag
9539         IGNORE_RESULT set.
9540         (check_complex): Pass through IGNORE_RESULT to second
9541         check_float_internal call.
9542         (check_int): Do not check numerical result if flag IGNORE_RESULT
9543         set.
9544         (check_long): Likewise.
9545         (check_bool): Likewise.
9546         (check_longlong): Likewise.
9547         (lrint_test_data): Add tests of infinite and NaN arguments.
9548         (lrint_tonearest_test_data): Likewise.
9549         (lrint_towardzero_test_data): Likewise.
9550         (lrint_downward_test_data): Likewise.
9551         (lrint_upward_test_data): Likewise.
9552         (llrint_test_data): Likewise.
9553         (llrint_tonearest_test_data): Likewise.
9554         (llrint_towardzero_test_data): Likewise.
9555         (llrint_downward_test_data): Likewise.
9556         (llrint_upward_test_data): Likewise.
9557         (lround_test_data): Likewise.
9558         (llround_test_data): Likewise.
9559
9560         * math/libm-test.inc (NO_TEST_INLINE): New macro.
9561         (ERRNO_UNCHANGED): Update value.
9562         (ERRNO_EDOM): Likewise.
9563         (ERRNO_ERANGE): Likewise.
9564         (NO_TEST_INLINE_FLOAT): New macro.
9565         (NO_TEST_INLINE_DOUBLE): Likewise.
9566         (enable_test): New function.
9567         (RUN_TEST_f_f): Check enable_test before running test.
9568         (RUN_TEST_2_f): Likewise.
9569         (RUN_TEST_fff_f): Likewise.
9570         (RUN_TEST_c_f): Likewise.
9571         (RUN_TEST_f_f1): Likewise.
9572         (RUN_TEST_fF_f1): Likewise.
9573         (RUN_TEST_fI_f1): Likewise.
9574         (RUN_TEST_ffI_f1): Likewise.
9575         (RUN_TEST_c_c): Likewise.
9576         (RUN_TEST_cc_c): Likewise.
9577         (RUN_TEST_f_i): Likewise.
9578         (RUN_TEST_f_i_tg): Likewise.
9579         (RUN_TEST_ff_i_tg): Likewise.
9580         (RUN_TEST_f_b): Likewise.
9581         (RUN_TEST_f_b_tg): Likewise.
9582         (RUN_TEST_f_l): Likewise.
9583         (RUN_TEST_f_L): Likewise.
9584         (RUN_TEST_fFF_11): Likewise.
9585         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
9586         conditionals.
9587         (cosh_test_data): Likewise.
9588         (exp_test_data): Likewise.
9589         (expm1_test_data): Likewise.
9590         (hypot_test_data): Likewise.
9591         (pow_test_data): Likewise.
9592         (sinh_test_data): Likewise.
9593         (tanh_test_data): Likewise.
9594         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
9595         flags argument.
9596
9597         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
9598         tests with quiet NaN input and output.
9599         (acosh_test_data): Likewise.
9600         (asin_test_data): Likewise.
9601         (asinh_test_data): Likewise.
9602         (atan_test_data): Likewise.
9603         (atanh_test_data): Likewise.
9604         (atan2_test_data): Likewise.
9605         (cbrt_test_data): Likewise.
9606         (cos_test_data): Likewise.
9607         (cosh_test_data): Likewise.
9608         (erf_test_data): Likewise.
9609         (erfc_test_data): Likewise.
9610         (exp_test_data): Likewise.
9611         (exp10_test_data): Likewise.
9612         (exp2_test_data): Likewise.
9613         (expm1_test_data): Likewise.
9614         (hypot_test_data): Likewise.
9615         (j0_test_data): Likewise.
9616         (j1_test_data): Likewise.
9617         (jn_test_data): Likewise.
9618         (lgamma_test_data): Likewise.
9619         (log_test_data): Likewise.
9620         (log10_test_data): Likewise.
9621         (log1p_test_data): Likewise.
9622         (log2_test_data): Likewise.
9623         (pow_test_data): Likewise.
9624         (scalb_test_data): Likewise.
9625         (sin_test_data): Likewise.
9626         (sincos_test_data): Likewise.
9627         (sinh_test_data): Likewise.
9628         (tan_test_data): Likewise.
9629         (tanh_test_data): Likewise.
9630         (tgamma_test_data): Likewise.
9631         (y0_test_data): Likewise.
9632         (y1_test_data): Likewise.
9633         (yn_test_data): Likewise.
9634
9635         [BZ #16167]
9636         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
9637         argument being NaN and avoid computations with second argument in
9638         that case.
9639         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9640         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9641         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9642
9643 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
9644
9645         * locale/iso-639.def: Add Chitwani Tharu (the).
9646
9647 2013-11-14  Andreas Schwab  <schwab@suse.de>
9648
9649         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
9650         word instead of empty string.
9651
9652 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9653
9654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
9655         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
9656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
9657         (__fe_nomask_env): Likewise.
9658
9659 2013-11-13  Steve Ellcey  <sellcey@mips.com>
9660
9661         * benchtests/bench-timing.h: Include time.h.
9662
9663 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
9664
9665         [BZ #15997]
9666         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
9667         to 3.4.0 for x32.
9668         * sysdeps/unix/sysv/linux/configure: Regenerated.
9669
9670 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
9671
9672         [BZ #16151]
9673         * stdlib/strtod_l.c (round_and_return): Do not consider
9674         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
9675         exponent one less than half the least subnormal exponent.
9676         * stdlib/test-strtod-round-data: Add more tests.
9677         * stdlib/tst-strtod-round.c (tests): Regenerated.
9678
9679 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9680
9681         [BZ #14143]
9682         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
9683         (__fe_mask_env): Likewise.
9684         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
9685         libm_hidden_proto and add function prototype.
9686         (__fe_mask_env): Add function prototype.
9687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
9688         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
9689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
9690         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
9691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
9692         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
9693
9694 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9695
9696         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
9697         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
9698
9699 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9700
9701         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
9702         of htab_find_slot().
9703
9704 2013-11-11  David S. Miller  <davem@davemloft.net>
9705
9706         [BZ #16150]
9707         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
9708         symbol in the non-vis3 case in static builds.
9709         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
9710         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
9711         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
9712         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
9713
9714 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9715
9716         [BZ #387]
9717         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
9718         it is empty.
9719
9720 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9721
9722         * benchtests/Makefile: Add bench-strtod.
9723         * benchtests/bench-strtod.c: New file: strtod benchtest
9724
9725 2013-11-11  Andreas Schwab  <schwab@suse.de>
9726
9727         [BZ #16153]
9728         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
9729         terminating NUL in key length.
9730
9731 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9732
9733         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
9734         Add artificial ODP entry for vDSO symbol for PPC64.
9735         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
9736         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
9737
9738 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
9739
9740         [BZ #15374]
9741         * nss/getent.c (services_keys): Recognize services starting with digit.
9742
9743 2013-11-06  David S. Miller  <davem@davemloft.net>
9744
9745         [BZ #15985]
9746         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
9747         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
9748
9749 2013-11-06  Will Newton  <will.newton@linaro.org>
9750
9751         * manual/memory.texi (Malloc Examples): Remove register
9752         keyword from examples.
9753
9754 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
9755
9756         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
9757
9758 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
9759
9760         [BZ #6981]
9761         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
9762         depending on [__GCC_IEC_559 > 0].
9763         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
9764         depending on [__GCC_IEC_559_COMPLEX > 0].
9765
9766 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
9767
9768         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
9769         to iso-639.def.
9770
9771 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
9772
9773         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
9774
9775 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
9776
9777         [BZ #16112]
9778         * malloc/malloc (malloc_info): Do not handle first bin as
9779         special case.
9780
9781 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
9782
9783         * locale/iso-639.def: Add Central Nahuatl (nhn).
9784
9785 2013-11-01  Bruno Haible  <bruno@clisp.org>
9786
9787         [BZ #7003]
9788         * manual/math.texi (BSD Random): Specify range upper bound as
9789         in POSIX.
9790
9791 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
9792
9793         * locale/iso-639.def: Add Meadow Mari (mhr).
9794
9795 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
9796
9797         [BZ #14752], [BZ #15763]
9798         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
9799         Validate name.
9800         * rt/tst_shm.c: Add test for escaping directory.
9801
9802 2013-10-31  Andreas Schwab  <schwab@suse.de>
9803
9804         [BZ #15917]
9805         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
9806         followed by 'x' as part of digit sequence.
9807         * stdio-common/tst-sscanf.c (double_tests2): New tests.
9808
9809 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
9810
9811         [BZ #16037]
9812         * configure.ac: allow GNU Make 4.0 and greater.
9813         * configure: Regenerated.
9814
9815 2013-10-30  Will Newton  <will.newton@linaro.org>
9816
9817         [BZ #16038]
9818         * malloc/hooks.c (memalign_check): Limit alignment to the
9819         maximum representable power of two.
9820         * malloc/malloc.c (__libc_memalign): Likewise.
9821         * malloc/tst-memalign.c (do_test): Add test for very
9822         large alignment values.
9823         * malloc/tst-posix_memalign.c (do_test): Likewise.
9824
9825 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
9826
9827         [BZ #11087]
9828         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
9829         (munmap_chunk): Likewise.
9830         (mremap_chunk): Likewise.
9831
9832 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
9833
9834         [BZ #15799]
9835         * stdlib/div.c (div): Remove obsolete code.
9836         * stdlib/ldiv.c (ldiv): Likewise.
9837         * stdlib/lldiv.c (lldiv): Likewise.
9838
9839 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9840
9841         [BZ #16071]
9842         * nss/nss_files/files-XXX.c (get_contents_ret): New
9843         enumerator.
9844         (get_contents): New function.
9845         (internal_getent): Use it.  Expand size of LINEBUFLEN.
9846
9847 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
9848
9849         * configure.in: Moved to ...
9850         * configure.ac: ... here. Change reference to configure.in
9851         to configure.ac.
9852         * sysdeps/arm/preconfigure.ac: ... here.
9853         configure.in to configure.ac.
9854         * sysdeps/gnu/configure.in: Moved to ...
9855         * sysdeps/gnu/configure.ac: ... here.
9856         * sysdeps/i386/configure.in: Moved to ...
9857         * sysdeps/i386/configure.ac: ... here.
9858         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
9859         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
9860         * sysdeps/mach/configure.in: Moved to ...
9861         * sysdeps/mach/configure.ac: ... here.
9862         * sysdeps/mach/hurd/configure.in: Moved to ...
9863         * sysdeps/mach/hurd/configure.ac: ... here.
9864         * sysdeps/powerpc/configure.in: Moved to ...
9865         * sysdeps/powerpc/configure.ac: ... here.
9866         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
9867         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
9868         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
9869         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
9870         * sysdeps/s390/s390-32/configure.in: Moved to ...
9871         * sysdeps/s390/s390-32/configure.ac: ... here.
9872         * sysdeps/s390/s390-64/configure.in: Moved to ...
9873         * sysdeps/s390/s390-64/configure.ac: ... here.
9874         * sysdeps/sh/configure.in: Moved to ...
9875         * sysdeps/sh/configure.ac: ... here.
9876         * sysdeps/sparc/configure.in: Moved to ...
9877         * sysdeps/sparc/configure.ac: ... here.
9878         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
9879         * sysdeps/unix/sysv/linux/configure.ac: ... here.
9880         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
9881         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
9882         * sysdeps/x86_64/configure.in: Moved to ...
9883         * sysdeps/x86_64/configure.ac: ... here.
9884         * sysdeps/x86_64/preconfigure.in: Moved to ...
9885         * sysdeps/x86_64/preconfigure.ac: ... here.
9886         * aclocal.m4: Change reference to configure.in to configure.ac.
9887         * config.h.in: Likewise.
9888         * manual/install.texi: Likewise.
9889         * manual/maint.texi: Likewise.
9890         * Makefile: Likewise.
9891         * malloc/Makefile: Likewise.
9892         * nscd/Makefile: Likewise.
9893         * Makeconfig: Change reference to configure.in and
9894         preconfigure.in to configure.ac and preconfigure.ac
9895         respectively.
9896         * INSTALL: Regenerated.
9897         * configure: Likewise.
9898         * sysdeps/gnu/configure: Likewise.
9899         * sysdeps/i386/configure: Likewise.
9900         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
9901         * sysdeps/mach/configure: Likewise.
9902         * sysdeps/mach/hurd/configure: Likewise.
9903         * sysdeps/powerpc/configure: Likewise.
9904         * sysdeps/powerpc/powerpc32/configure: Likewise.
9905         * sysdeps/powerpc/powerpc64/configure: Likewise.
9906         * sysdeps/s390/s390-32/configure: Likewise.
9907         * sysdeps/s390/s390-64/configure: Likewise.
9908         * sysdeps/sh/configure: Likewise.
9909         * sysdeps/sparc/configure: Likewise.
9910         * sysdeps/unix/sysv/linux/configure: Likewise.
9911         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
9912         * sysdeps/x86_64/configure: Likewise.
9913         * sysdeps/x86_64/preconfigure: Likewise.
9914
9915 2013-10-29  Andreas Schwab  <schwab@suse.de>
9916
9917         * stdio-common/Makefile (tst-swscanf-ENV): Define.
9918
9919 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9920
9921         * benchtests/pow-inputs: Add new inputs.
9922
9923         * benchtests/exp-inputs: Add new inputs.
9924
9925         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
9926         conditional check for return value.
9927         (__cos32): Likewise.
9928
9929 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9930
9931         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
9932         to provide a boost for large inputs with word alignment.
9933         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
9934         implementation based on optimized PPC64 strcpy.
9935         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
9936         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
9937         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
9938         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
9939
9940 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
9941
9942         [BZ #2801]
9943         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
9944
9945 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
9946
9947         [BZ #14876]
9948         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
9949         * time/tst-strptime.c (day_tests): Add testcase.
9950
9951 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
9952
9953         [BZ #14029]
9954         * manual/pattern.texi: Acknowledge that fnmatch can fail.
9955
9956 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
9957
9958         [BZ #16074]
9959         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
9960         MAP_FAILED on error.
9961
9962 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9963
9964         [BZ #16072]
9965         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
9966         heap for large requests.
9967
9968 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
9969
9970         [BZ #9954]
9971         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
9972         result if the result has no associated interface.
9973         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
9974         interface for all 127.X.Y.Z addresses.
9975
9976 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
9977
9978         * locale/iso-639.def: Add Ligurian (lij)
9979
9980 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
9981
9982         [BZ #15825]
9983         * sunrpc/rpc_main.c: Document rpcgen -5.
9984
9985 2013-10-19  Michael Stahl  <mstahl@redhat.com>
9986
9987         * elf/rtld.c (do_preload): Print the reason why preloading failed.
9988
9989 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
9990
9991         [BZ #10278]
9992         * posix/glob.c: Match only directories when trailing slash is present.
9993         * posix/tst-gnuglob.c (my_opendir): Do not open files.
9994         (main): Add testcase.
9995
9996 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
9997
9998         [BZ #15670]
9999         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
10000
10001 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
10002
10003         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
10004         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
10005         AUTH_DES and cindex for FIPS 140-2.
10006         (DES Encryption): Add cindex FIPS 46-3.
10007
10008         * locale/locarchive.h (struct locarhandle): Add fname.
10009         * locale/programs/localedef.c (main): Pass ARGV[remaining]
10010         if an optional argument was specified to --list-archive,
10011         otherwise NULL.
10012         * locale/programs/locarchive.c (show_archive_content): Take new
10013         argument fname and pass it via ah.fname to open_archive.
10014         * locale/programs/localedef.h: Update decl.
10015         (open_archive): If AH->fname is non-null, open that file
10016         rather than the default file name, and don't ignore ENOENT.
10017         (create_archive): Set AH.fname to NULL.
10018         (delete_locales_from_archive): Likewise.
10019         (add_locales_to_archive): Likewise.
10020         * locale/programs/locfile.c (write_all_categories): Likewise.
10021
10022 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
10023             Aldy Hernandez  <aldyh@redhat.com>
10024
10025         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
10026         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
10027         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
10028         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
10029         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
10030         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
10031         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
10032         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
10033         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
10034         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
10035         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
10036         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
10037         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
10038         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
10039         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
10040         Likewise.
10041         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
10042         Likewise.
10043         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
10044         Likewise.
10045         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
10046         Likewise.
10047         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
10048         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
10049         Likewise.
10050         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
10051         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
10052         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
10053         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
10054         Likewise.
10055         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
10056         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
10057         * sysdeps/powerpc/preconfigure: Likewise.
10058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10059         Likewise.
10060         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
10061         Replace contents of file by #include of <fenv_libc.h>.
10062         * sysdeps/powerpc/soft-fp/sfp-machine.h
10063         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
10064         and <sys/prctl.h>.
10065         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
10066         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
10067         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
10068         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
10069         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
10070         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
10071         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
10072         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
10073         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
10074         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
10075         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
10076         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
10077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
10078         Allow copysignl PLT reference to be missing.
10079
10080 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
10081             Joseph Myers  <joseph@codesourcery.com
10082
10083         [BZ #15948]
10084         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
10085         single character.
10086         (add_to_tablewc): Assert sequence of wide characters is nonempty.
10087
10088 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
10089
10090         * elf/tst-tls-dlinfo.c: Don't include tls.h.
10091         * elf/tst-tls1.c: Likewise.
10092         * elf/tst-tls10.h: Likewise.
10093         * elf/tst-tls14.c: Likewise.
10094         * elf/tst-tls2.c: Likewise.
10095         * elf/tst-tls3.c: Likewise.
10096         * elf/tst-tls4.c: Likewise.
10097         * elf/tst-tls5.c: Likewise.
10098         * elf/tst-tls6.c: Likewise.
10099         * elf/tst-tls7.c: Likewise.
10100         * elf/tst-tls8.c: Likewise.
10101         * elf/tst-tls9.c: Likewise.
10102         * elf/tst-tlsmod1.c: Likewise.
10103         * elf/tst-tlsmod13.c: Likewise.
10104         * elf/tst-tlsmod13a.c: Likewise.
10105         * elf/tst-tlsmod14a.c: Likewise.
10106         * elf/tst-tlsmod16a.c: Likewise.
10107         * elf/tst-tlsmod16b.c: Likewise.
10108         * elf/tst-tlsmod2.c: Likewise.
10109         * elf/tst-tlsmod3.c: Likewise.
10110         * elf/tst-tlsmod4.c: Likewise.
10111         * elf/tst-tlsmod5.c: Likewise.
10112         * elf/tst-tlsmod6.c: Likewise.
10113
10114 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
10115
10116         [BZ #12486]
10117         * malloc/malloc.c: remove checks for statistics.
10118
10119 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
10120
10121         [BZ #15277]
10122         * inet/inet_net.c (inet_network): Detect additional invalid strings.
10123         * inet/tst-network.c: Add testcase.
10124
10125 2013-10-17  Andreas Schwab  <schwab@suse.de>
10126
10127         [BZ #15218]
10128         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
10129         to determine canonical name.
10130
10131 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
10132
10133         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
10134         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
10135         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10136         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10137         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10138         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10139         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10140         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10141         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10142         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10143         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10144         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10145         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10146         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10147         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10148         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10149         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10150         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10151         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10152         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10153         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10154         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10155         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10156         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
10157         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
10158         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
10159         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
10160         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
10161         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
10162         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
10163         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10164         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10165         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10166         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10167         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10168         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10169         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10170         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10171         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10172         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10173         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10174         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10175         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10176         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10177         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10178         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10179         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10180         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10181         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10182         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10183         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10184         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10185         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10186         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10187         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10188         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10189         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10190         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10191
10192 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
10193
10194         [BZ #16041]
10195         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
10196         make result into a quiet NaN.
10197
10198 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
10199
10200         * soft-fp/adddf3.c: Fix horizontal whitespace.
10201         * soft-fp/addsf3.c: Likewise.
10202         * soft-fp/addtf3.c: Likewise.
10203         * soft-fp/divdf3.c: Likewise.
10204         * soft-fp/divsf3.c: Likewise.
10205         * soft-fp/divtf3.c: Likewise.
10206         * soft-fp/double.h: Likewise.
10207         * soft-fp/eqdf2.c: Likewise.
10208         * soft-fp/eqsf2.c: Likewise.
10209         * soft-fp/eqtf2.c: Likewise.
10210         * soft-fp/extenddftf2.c: Likewise.
10211         * soft-fp/extended.h: Likewise.
10212         * soft-fp/extendsfdf2.c: Likewise.
10213         * soft-fp/extendsftf2.c: Likewise.
10214         * soft-fp/extendxftf2.c: Likewise.
10215         * soft-fp/fixdfdi.c: Likewise.
10216         * soft-fp/fixdfsi.c: Likewise.
10217         * soft-fp/fixdfti.c: Likewise.
10218         * soft-fp/fixsfdi.c: Likewise.
10219         * soft-fp/fixsfsi.c: Likewise.
10220         * soft-fp/fixsfti.c: Likewise.
10221         * soft-fp/fixtfdi.c: Likewise.
10222         * soft-fp/fixtfsi.c: Likewise.
10223         * soft-fp/fixtfti.c: Likewise.
10224         * soft-fp/fixunsdfdi.c: Likewise.
10225         * soft-fp/fixunsdfsi.c: Likewise.
10226         * soft-fp/fixunsdfti.c: Likewise.
10227         * soft-fp/fixunssfdi.c: Likewise.
10228         * soft-fp/fixunssfsi.c: Likewise.
10229         * soft-fp/fixunssfti.c: Likewise.
10230         * soft-fp/fixunstfdi.c: Likewise.
10231         * soft-fp/fixunstfsi.c: Likewise.
10232         * soft-fp/fixunstfti.c: Likewise.
10233         * soft-fp/floatdidf.c: Likewise.
10234         * soft-fp/floatdisf.c: Likewise.
10235         * soft-fp/floatditf.c: Likewise.
10236         * soft-fp/floatsidf.c: Likewise.
10237         * soft-fp/floatsisf.c: Likewise.
10238         * soft-fp/floatsitf.c: Likewise.
10239         * soft-fp/floattidf.c: Likewise.
10240         * soft-fp/floattisf.c: Likewise.
10241         * soft-fp/floattitf.c: Likewise.
10242         * soft-fp/floatundidf.c: Likewise.
10243         * soft-fp/floatundisf.c: Likewise.
10244         * soft-fp/floatunditf.c: Likewise.
10245         * soft-fp/floatunsidf.c: Likewise.
10246         * soft-fp/floatunsisf.c: Likewise.
10247         * soft-fp/floatunsitf.c: Likewise.
10248         * soft-fp/floatuntidf.c: Likewise.
10249         * soft-fp/floatuntisf.c: Likewise.
10250         * soft-fp/floatuntitf.c: Likewise.
10251         * soft-fp/fmadf4.c: Likewise.
10252         * soft-fp/fmasf4.c: Likewise.
10253         * soft-fp/fmatf4.c: Likewise.
10254         * soft-fp/gedf2.c: Likewise.
10255         * soft-fp/gesf2.c: Likewise.
10256         * soft-fp/getf2.c: Likewise.
10257         * soft-fp/ledf2.c: Likewise.
10258         * soft-fp/lesf2.c: Likewise.
10259         * soft-fp/letf2.c: Likewise.
10260         * soft-fp/muldf3.c: Likewise.
10261         * soft-fp/mulsf3.c: Likewise.
10262         * soft-fp/multf3.c: Likewise.
10263         * soft-fp/negdf2.c: Likewise.
10264         * soft-fp/negsf2.c: Likewise.
10265         * soft-fp/negtf2.c: Likewise.
10266         * soft-fp/op-1.h: Likewise.
10267         * soft-fp/op-2.h: Likewise.
10268         * soft-fp/op-4.h: Likewise.
10269         * soft-fp/op-8.h: Likewise.
10270         * soft-fp/op-common.h: Likewise.
10271         * soft-fp/quad.h: Likewise.
10272         * soft-fp/single.h: Likewise.
10273         * soft-fp/soft-fp.h: Likewise.
10274         * soft-fp/sqrtdf2.c: Likewise.
10275         * soft-fp/sqrtsf2.c: Likewise.
10276         * soft-fp/sqrttf2.c: Likewise.
10277         * soft-fp/subdf3.c: Likewise.
10278         * soft-fp/subsf3.c: Likewise.
10279         * soft-fp/subtf3.c: Likewise.
10280         * soft-fp/truncdfsf2.c: Likewise.
10281         * soft-fp/trunctfdf2.c: Likewise.
10282         * soft-fp/trunctfsf2.c: Likewise.
10283         * soft-fp/trunctfxf2.c: Likewise.
10284         * soft-fp/unorddf2.c: Likewise.
10285         * soft-fp/unordsf2.c: Likewise.
10286         * soft-fp/unordtf2.c: Likewise.
10287
10288 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
10289
10290         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
10291         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
10292
10293 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
10294
10295         * elf/dl-libc.c: Clear initfini list after freeing.
10296
10297 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
10298
10299         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
10300         * soft-fp/addsf3.c: Likewise.
10301         * soft-fp/addtf3.c: Likewise.
10302         * soft-fp/divdf3.c: Likewise.
10303         * soft-fp/divsf3.c: Likewise.
10304         * soft-fp/divtf3.c: Likewise.
10305         * soft-fp/double.h: Likewise.
10306         * soft-fp/eqdf2.c: Likewise.
10307         * soft-fp/eqsf2.c: Likewise.
10308         * soft-fp/eqtf2.c: Likewise.
10309         * soft-fp/extenddftf2.c: Likewise.
10310         * soft-fp/extended.h: Likewise.
10311         * soft-fp/extendsfdf2.c: Likewise.
10312         * soft-fp/extendsftf2.c: Likewise.
10313         * soft-fp/extendxftf2.c: Likewise.
10314         * soft-fp/fixdfdi.c: Likewise.
10315         * soft-fp/fixdfsi.c: Likewise.
10316         * soft-fp/fixdfti.c: Likewise.
10317         * soft-fp/fixsfdi.c: Likewise.
10318         * soft-fp/fixsfsi.c: Likewise.
10319         * soft-fp/fixsfti.c: Likewise.
10320         * soft-fp/fixtfdi.c: Likewise.
10321         * soft-fp/fixtfsi.c: Likewise.
10322         * soft-fp/fixtfti.c: Likewise.
10323         * soft-fp/fixunsdfdi.c: Likewise.
10324         * soft-fp/fixunsdfsi.c: Likewise.
10325         * soft-fp/fixunsdfti.c: Likewise.
10326         * soft-fp/fixunssfdi.c: Likewise.
10327         * soft-fp/fixunssfsi.c: Likewise.
10328         * soft-fp/fixunssfti.c: Likewise.
10329         * soft-fp/fixunstfdi.c: Likewise.
10330         * soft-fp/fixunstfsi.c: Likewise.
10331         * soft-fp/fixunstfti.c: Likewise.
10332         * soft-fp/floatdidf.c: Likewise.
10333         * soft-fp/floatdisf.c: Likewise.
10334         * soft-fp/floatditf.c: Likewise.
10335         * soft-fp/floatsidf.c: Likewise.
10336         * soft-fp/floatsisf.c: Likewise.
10337         * soft-fp/floatsitf.c: Likewise.
10338         * soft-fp/floattidf.c: Likewise.
10339         * soft-fp/floattisf.c: Likewise.
10340         * soft-fp/floattitf.c: Likewise.
10341         * soft-fp/floatundidf.c: Likewise.
10342         * soft-fp/floatundisf.c: Likewise.
10343         * soft-fp/floatunsidf.c: Likewise.
10344         * soft-fp/floatunsisf.c: Likewise.
10345         * soft-fp/floatuntidf.c: Likewise.
10346         * soft-fp/floatuntisf.c: Likewise.
10347         * soft-fp/floatuntitf.c: Likewise.
10348         * soft-fp/fmadf4.c: Likewise.
10349         * soft-fp/fmasf4.c: Likewise.
10350         * soft-fp/fmatf4.c: Likewise.
10351         * soft-fp/gedf2.c: Likewise.
10352         * soft-fp/gesf2.c: Likewise.
10353         * soft-fp/getf2.c: Likewise.
10354         * soft-fp/ledf2.c: Likewise.
10355         * soft-fp/lesf2.c: Likewise.
10356         * soft-fp/letf2.c: Likewise.
10357         * soft-fp/muldf3.c: Likewise.
10358         * soft-fp/mulsf3.c: Likewise.
10359         * soft-fp/multf3.c: Likewise.
10360         * soft-fp/negdf2.c: Likewise.
10361         * soft-fp/negsf2.c: Likewise.
10362         * soft-fp/negtf2.c: Likewise.
10363         * soft-fp/op-1.h: Likewise.
10364         * soft-fp/op-2.h: Likewise.
10365         * soft-fp/op-4.h: Likewise.
10366         * soft-fp/op-8.h: Likewise.
10367         * soft-fp/op-common.h: Likewise.
10368         * soft-fp/quad.h: Likewise.
10369         * soft-fp/single.h: Likewise.
10370         * soft-fp/soft-fp.h: Likewise.
10371         * soft-fp/sqrtdf2.c: Likewise.
10372         * soft-fp/sqrtsf2.c: Likewise.
10373         * soft-fp/sqrttf2.c: Likewise.
10374         * soft-fp/subdf3.c: Likewise.
10375         * soft-fp/subsf3.c: Likewise.
10376         * soft-fp/subtf3.c: Likewise.
10377         * soft-fp/truncdfsf2.c: Likewise.
10378         * soft-fp/trunctfdf2.c: Likewise.
10379         * soft-fp/trunctfsf2.c: Likewise.
10380         * soft-fp/trunctfxf2.c: Likewise.
10381         * soft-fp/unorddf2.c: Likewise.
10382         * soft-fp/unordsf2.c: Likewise.
10383         * soft-fp/unordtf2.c: Likewise.
10384
10385 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
10386
10387         [BZ #15672]
10388         * misc/error.c (error_tail): Fix possible buffer overflow.
10389
10390 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
10391
10392         [BZ #13028]
10393         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
10394         address.
10395
10396 2013-10-14  P. J. McDermott  <pj@pehjota.net>
10397
10398         [BZ #832]
10399         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
10400         testing pipefail option.
10401
10402 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
10403
10404         * soft-fp/double.h: Indent preprocessor directives inside #if.
10405         * soft-fp/extended.h: Likewise.
10406         * soft-fp/op-2.h: Likewise.
10407         * soft-fp/op-4.h: Likewise.
10408         * soft-fp/op-common.h: Likewise.
10409         * soft-fp/quad.h: Likewise.
10410         * soft-fp/single.h: Likewise.
10411         * soft-fp/soft-fp.h: Likewise.
10412
10413 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
10414
10415         * iconv/iconv_prog.c: Fix typos.
10416         * stdio-common/psiginfo-data.h: Likewise.
10417
10418 2013-10-12   Reuben Thomas <rrt@sc3d.org>
10419
10420         [BZ #15764]
10421         * locale/setlocale.c: Fix typo.
10422
10423 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
10424
10425         [BZ #16036]
10426         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
10427         signaling NaN arguments.
10428         * soft-fp/unordsf2.c (__unordsf2): Likewise.
10429         * soft-fp/unordtf2.c (__unordtf2): Likewise.
10430
10431         [BZ #14910]
10432         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
10433         unordered operands.
10434         * soft-fp/gesf2.c (__gesf2): Likewise.
10435         * soft-fp/getf2.c (__getf2): Likewise.
10436         * soft-fp/ledf2.c (__ledf2): Likewise.
10437         * soft-fp/lesf2.c (__lesf2): Likewise.
10438         * soft-fp/letf2.c (__letf2): Likewise.
10439
10440         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
10441         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10442         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10443         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
10444         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
10445         * soft-fp/fixdfti.c (__fixdfti): Likewise.
10446         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
10447         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
10448         * soft-fp/fixsfti.c (__fixsfti): Likewise.
10449         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
10450         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
10451         * soft-fp/fixtfti.c (__fixtfti): Likewise.
10452         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
10453         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
10454         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
10455         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
10456         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
10457         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
10458         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
10459         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
10460         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
10461         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
10462         * soft-fp/floatdisf.c (__floatdisf): Likewise.
10463         * soft-fp/floatsisf.c (__floatsisf): Likewise.
10464         * soft-fp/floattidf.c (__floattidf): Likewise.
10465         * soft-fp/floattisf.c (__floattisf): Likewise.
10466         * soft-fp/floattitf.c (__floattitf): Likewise.
10467         * soft-fp/floatundidf.c (__floatundidf): Likewise.
10468         * soft-fp/floatundisf.c (__floatundisf): Likewise.
10469         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
10470         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
10471         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
10472         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
10473         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
10474         * soft-fp/gesf2.c (__gesf2): Likewise.
10475         * soft-fp/getf2.c (__getf2): Likewise.
10476         * soft-fp/ledf2.c (__ledf2): Likewise.
10477         * soft-fp/lesf2.c (__lesf2): Likewise.
10478         * soft-fp/letf2.c (__letf2): Likewise.
10479
10480         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
10481         Undefine and redefine.
10482         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
10483         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
10484         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
10485         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
10486         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10487         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
10488         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10489         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
10490         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10491         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
10492         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10493         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
10494         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10495         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
10496         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10497
10498         [BZ #16032]
10499         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
10500         without decrementing exponent if mantissa >= that for the
10501         denominator, not >.
10502         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
10503         denominator, not >.  Decrement exponent in < case instead of
10504         incrementing in >= case.
10505         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
10506         without decrementing exponent if mantissa >= that for the
10507         denominator, not >.
10508
10509         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
10510         computing saturated result for unsigned overflow.
10511
10512 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10513             Jeff Law  <law@redhat.com>
10514
10515         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
10516         (atan2Mp): Add systemtap probe marker.
10517         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
10518         (__ieee754_log): Add systemtap probe marker.
10519         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
10520         (atanMp): Add systemtap probe marker.
10521         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
10522         (tanMp): Add systemtap probe marker.
10523         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
10524         (__slowexp): Add systemtap probe marker.
10525         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
10526         (__slowpow): Add systemtap probe marker.
10527         * manual/probes.texi: Document probes.
10528
10529 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
10530
10531         [BZ #15362]
10532         * libio/fileops.c (_IO_new_file_write): Return count of bytes
10533         written.
10534         (_IO_new_file_xsputn): Don't return EOF if nothing has been
10535         written.
10536         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
10537         written to buffer but not flushed.
10538         * libio/iofwrite_u.c:  Likewise.
10539         * libio/iopadn.c:  Return bytes returned even if EOF was
10540         encountered.
10541         * libio/iowpadn.c:  Likewise.
10542         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
10543         if _IO_padn does not write the whole buffer.
10544         [!COMPILE_WPRINTF] (PAD): Likewise.
10545
10546 2013-10-10  David S. Miller  <davem@davemloft.net>
10547
10548         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
10549         directory block.
10550
10551 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
10552
10553         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
10554         instead of FSF address.
10555         * soft-fp/fixdfti.c: Likewise.
10556         * soft-fp/fixsfti.c: Likewise.
10557         * soft-fp/fixtfti.c: Likewise.
10558         * soft-fp/fixunsdfti.c: Likewise.
10559         * soft-fp/fixunssfti.c: Likewise.
10560         * soft-fp/fixunstfti.c: Likewise.
10561         * soft-fp/floattidf.c: Likewise.
10562         * soft-fp/floattisf.c: Likewise.
10563         * soft-fp/floattitf.c: Likewise.
10564         * soft-fp/floatuntidf.c: Likewise.
10565         * soft-fp/floatuntisf.c: Likewise.
10566         * soft-fp/floatuntitf.c: Likewise.
10567         * soft-fp/trunctfxf2.c: Likewise.
10568
10569         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
10570         * soft-fp/fixdfti.c: Likewise.
10571         * soft-fp/fixsfti.c: Likewise.
10572         * soft-fp/fixtfti.c: Likewise.
10573         * soft-fp/fixunsdfti.c: Likewise.
10574         * soft-fp/fixunssfti.c: Likewise.
10575         * soft-fp/fixunstfti.c: Likewise.
10576         * soft-fp/floattidf.c: Likewise.
10577         * soft-fp/floattisf.c: Likewise.
10578         * soft-fp/floattitf.c: Likewise.
10579         * soft-fp/floatuntidf.c: Likewise.
10580         * soft-fp/floatuntisf.c: Likewise.
10581         * soft-fp/floatuntitf.c: Likewise.
10582         * soft-fp/trunctfxf2.c: Likewise.
10583
10584 2013-10-10  David S. Miller  <davem@davemloft.net>
10585
10586         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10587
10588 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
10589
10590         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
10591         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
10592         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
10593         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
10594         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
10595         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
10596         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
10597
10598         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
10599         for NaNs before doing comparisons on argument.
10600         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
10601         Likewise.
10602
10603 2013-10-10  Will Newton  <will.newton@linaro.org>
10604
10605         * malloc/hooks.c (memalign_check): Ensure the value of bytes
10606         passed to _int_memalign does not overflow.
10607
10608 2013-10-10  Torvald Riegel  <triegel@redhat.com>
10609
10610         * scripts/bench.pl: Add include-sources directive.
10611         * benchtests/README: Update documentation.
10612
10613 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
10614
10615         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
10616         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
10617         instead of FP_INIT_ROUNDMODE.
10618         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
10619         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
10620
10621         [BZ #16034]
10622         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
10623         copy class of input value.
10624         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
10625         not handle exceptions.
10626         * soft-fp/negsf2.c (__negsf2): Likewise.
10627         * soft-fp/negtf2.c (__negtf2): Likewise.
10628         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
10629
10630 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
10631
10632         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
10633         semicolon.  From Linux kernel.
10634
10635 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
10636
10637         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
10638
10639 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
10640
10641         [BZ #156]
10642         * manual/socket.texi: Added statement about buffer
10643         for gethostbyname2_r.
10644
10645 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
10646
10647         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
10648         Use .p2align directive instead, throughout.
10649         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
10650         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
10651         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
10652         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
10653         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10654         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
10655         * sysdeps/x86_64/strchr.S: Likewise.
10656         * sysdeps/x86_64/strrchr.S: Likewise.
10657
10658 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
10659
10660         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
10661
10662         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
10663
10664         * sysdeps/generic/math_private.h (__mpsin1): Remove
10665         declaration.
10666         (__mpcos1): Likewise.
10667         (__mpsin): New argument __range_reduce.
10668         (__mpcos): Likewise.
10669         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10670         (slow): Use __mpsin and __mpcos.
10671         (slow1): Likewise.
10672         (slow2): Likewise.
10673         (sloww): Likewise.
10674         (sloww1): Likewise.
10675         (sloww2): Likewise.
10676         (bsloww): Likewise.
10677         (bsloww1): Likewise.
10678         (bsloww2): Likewise.
10679         (cslow2): Likewise.
10680         (csloww): Likewise.
10681         (csloww1): Likewise.
10682         (csloww2): Likewise.
10683         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
10684         range_reduce.  Merge in __mpsin1.
10685         (__mpcos): Likewise.
10686         (__mpsin1): Remove.
10687         (__mpcos1): Likewise.
10688
10689 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
10690
10691         * locale/loadlocale.c (_nl_intern_locale_data): Use
10692         LOCFILE_ALIGNED_P.
10693         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
10694         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
10695         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
10696         obstack data is appropriately aligned.
10697         (obstack_int32_grow_fast): Likewise.
10698         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
10699         * locale/programs/locfile.c (add_locale_uint32): Likewise.
10700         (add_locale_uint32_array): Likewise.
10701
10702 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
10703
10704         * benchtests/Makefile: Remove ARGLIST and RET variables.
10705         ($(objpfx)bench-%.c): Pass only function name to the script.
10706         * benchtests/README: Update documentation.
10707         * benchtests/acos-inputs: Add new directives.
10708         * benchtests/acosh-inputs: Likewise.
10709         * benchtests/asin-inputs: Likewise.
10710         * benchtests/asinh-inputs: Likewise.
10711         * benchtests/atan-inputs: Likewise.
10712         * benchtests/atanh-inputs: Likewise.
10713         * benchtests/cos-inputs: Likewise.
10714         * benchtests/cosh-inputs: Likewise.
10715         * benchtests/exp-inputs: Likewise.
10716         * benchtests/log-inputs: Likewise.
10717         * benchtests/pow-inputs: Likewise.
10718         * benchtests/rint-inputs: Likewise.
10719         * benchtests/sin-inputs: Likewise.
10720         * benchtests/sinh-inputs: Likewise.
10721         * benchtests/tan-inputs: Likewise.
10722         * benchtests/tanh-inputs: Likewise.
10723         * scripts/bench.pl: Add support for new directives.
10724
10725 2013-10-07  Alan Modra  <amodra@gmail.com>
10726
10727         * README: Fix careless merge.
10728
10729 2013-10-05  Alan Modra  <amodra@gmail.com>
10730
10731         * NEWS: Mention powerpc64le support and bugs fixed.
10732         * README: Both big-endian and little-endian powerpc64 supported.
10733
10734 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10735
10736         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
10737         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
10738         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
10739         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
10740
10741 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
10742
10743         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
10744         match prototype.
10745
10746 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
10747
10748         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
10749         Move -mhard-float appending from
10750         ports/sysdeps/powerpc/powerpc32/Makefile.
10751         [$(with-fp) = yes] (ASFLAGS): Likewise.
10752         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
10753         * sysdeps/powerpc/nofpu: Move directory from
10754         ports/sysdeps/powerpc/nofpu.
10755         * sysdeps/powerpc/soft-fp: Move directory from
10756         ports/sysdeps/powerpc/soft-fp.
10757         * sysdeps/powerpc/powerpc32/405: Move directory from
10758         ports/sysdeps/powerpc/powerpc32/405.
10759         * sysdeps/powerpc/powerpc32/440: Move directory from
10760         ports/sysdeps/powerpc/powerpc32/440.
10761         * sysdeps/powerpc/powerpc32/464: Move directory from
10762         ports/sysdeps/powerpc/powerpc32/464.
10763         * sysdeps/powerpc/powerpc32/476: Move directory from
10764         ports/sysdeps/powerpc/powerpc32/476.
10765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
10766         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
10767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
10768         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
10769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
10770         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
10771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
10772         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
10773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
10774         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
10775         * README: Update for powerpc-*-linux-gnu software floating point
10776         support in libc.
10777
10778         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
10779         case to powerpc/powerpc32*.
10780         * sysdeps/unix/sysv/linux/configure: Regenerated.
10781
10782         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
10783         (_FPU_MASK_OM): Define as 0x04.
10784         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
10785         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
10786         0x00c10080.
10787         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
10788         0x0000003c.
10789         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
10790
10791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
10792         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
10793         getcontext_e500.
10794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
10795         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
10796         setcontext_e500.
10797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
10798         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
10799         and setcontext_e500.
10800
10801 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
10802
10803         * locale/iso-3166.def: Update iso-1366.def and related occurrences
10804
10805 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10806
10807         * manual/threads.texi (Default Thread Attributes): Fix typo.
10808
10809 2013-10-04  Will Newton  <will.newton@linaro.org>
10810
10811         * malloc/Makefile: Add tst-memalign.
10812         * malloc/tst-memalign.c: New file.
10813
10814         * malloc/tst-posix_memalign.c: Add comments.
10815         (do_test): Add comments and call free on all potentially
10816         allocated pointers. Add space after cast.
10817
10818         * malloc/tst-pvalloc.c: Add comments.
10819         (do_test): Add comments and call free on all potentially
10820         allocated pointers. Remove duplicate check for NULL pointer.
10821         Add space after cast.
10822
10823         * malloc/tst-valloc.c: Add comments.
10824         (do_test): Add comments and call free on all potentially
10825         allocated pointers. Remove duplicate check for NULL pointer.
10826         Add space after cast.
10827
10828 2013-10-04  Alan Modra  <amodra@gmail.com>
10829
10830         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10831         Use stdint types in rather than __attribute__((mode())).
10832         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
10833
10834 2013-10-04  Alan Modra  <amodra@gmail.com>
10835
10836         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10837         Correct handling of unaligned relocs for little-endian.
10838         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
10839
10840 2013-10-04  Alan Modra  <amodra@gmail.com>
10841
10842         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
10843         * configure: Regenerate.
10844         * nptl/shlib-versions: Powerpc*le starts at 2.18.
10845         * shlib-versions: Likewise.
10846
10847 2013-10-04  Alan Modra  <amodra@gmail.com>
10848
10849         * string/tester.c (test_memrchr): Increment reported test cycle.
10850
10851 2013-10-04  Alan Modra  <amodra@gmail.com>
10852
10853         * string/test-memcpy.c (do_one_test): When reporting errors, print
10854         string address and don't overrun end of string.
10855
10856 2013-10-04  Alan Modra  <amodra@gmail.com>
10857
10858         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
10859         insrdi.  Make better use of reg selection to speed exit slightly.
10860         Schedule entry path a little better.  Remove useless "are we done"
10861         checks on entry to main loop.  Handle wrapping around zero address.
10862         Correct main loop count.  Handle single left-over word from main
10863         loop inline rather than by using loop_small.  Remove extra word
10864         case in loop_small caused by wrong loop count.  Add little-endian
10865         support.
10866         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
10867         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
10868         cache hint.
10869         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
10870         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
10871         support.  Avoid rlwimi.
10872         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
10873
10874 2013-10-04  Alan Modra  <amodra@gmail.com>
10875
10876         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
10877         insrdi.  Formatting.
10878         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10879         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10880         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
10881         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
10882         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
10883         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
10884
10885 2013-10-04  Alan Modra  <amodra@gmail.com>
10886
10887         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
10888         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10889         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
10890         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
10891         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
10892         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10893         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
10894         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
10895         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
10896         use of regs.  Use power7 mtocrf.  Tidy function tails.
10897
10898 2013-10-04  Alan Modra  <amodra@gmail.com>
10899
10900         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
10901         Formatting.  Consistently use rXXX register defines or rN defines.
10902         Use early exit labels that avoid restoring unused non-volatile regs.
10903         Make cr field use more consistent with rWORDn compares.  Rename
10904         regs used as shift registers for unaligned loop, using rN defines
10905         for short lifetime/multiple use regs.
10906         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10907         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
10908         addi 1,1,64 to pop stack frame.  Simplify return value code.
10909         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
10910
10911 2013-10-04  Alan Modra  <amodra@gmail.com>
10912
10913         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
10914         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
10915         rather than rlwimi.
10916         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
10917         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
10918         little-endian support.  Correct typos.
10919         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
10920         rather than rlwimi.
10921         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
10922         in loop and entry code to keep "and." results.
10923         (strchr): Add little-endian support.  Comment.  Move cntlzd
10924         earlier in tail.
10925         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
10926
10927 2013-10-04  Alan Modra  <amodra@gmail.com>
10928
10929         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
10930         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
10931         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
10932         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
10933
10934 2013-10-04  Alan Modra  <amodra@gmail.com>
10935
10936         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
10937         (rTMP): Define as r11.
10938         (strcmp): Add little-endian support.  Optimise tail.
10939         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
10940         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
10941         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
10942         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
10943         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
10944         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10945         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
10946
10947 2013-10-04  Alan Modra  <amodra@gmail.com>
10948
10949         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
10950         little-endian support.  Remove unnecessary "are we done" tests.
10951         Handle "s" wrapping around zero and extremely large "size".
10952         Correct main loop count.  Handle single left-over word from main
10953         loop inline rather than by using small_loop.  Correct comments.
10954         Delete "zero" tail, use "end_max" instead.
10955         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
10956
10957 2013-10-04  Alan Modra  <amodra@gmail.com>
10958
10959         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
10960         support.  Don't branch over align.
10961         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
10962         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
10963         support.  Rearrange tmp reg use to suit.  Comment.
10964         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
10965
10966 2013-10-04  Alan Modra  <amodra@gmail.com>
10967
10968         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
10969
10970 2013-10-04  Alan Modra  <amodra@gmail.com>
10971
10972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
10973         conditional form of branch and link when obtaining pc.
10974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
10975
10976 2013-10-04  Alan Modra  <amodra@gmail.com>
10977
10978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
10979         HIWORD/LOWORD.
10980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
10981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
10982
10983 2013-10-04  Alan Modra  <amodra@gmail.com>
10984
10985         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
10986         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
10987         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
10988         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
10989         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
10990         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
10991         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
10992         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
10993         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
10994         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
10995
10996 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
10997             Alistair Popple <alistair@ozlabs.au.ibm.com>
10998             Alan Modra <amodra@gmail.com>
10999
11000         [BZ #15723]
11001         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
11002         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
11003         _dl_hwcap access for little-endian.
11004         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
11005         destroy vmx regs when saving unaligned.
11006         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
11007         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
11008         destroy vmx regs when saving unaligned.
11009
11010 2013-10-04  Alan Modra  <amodra@gmail.com>
11011
11012         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
11013         Don't use a union to pack hi/low value.
11014
11015 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
11016
11017         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
11018         for little-endian.
11019         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
11020         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
11021         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
11022         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
11023         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
11024
11025 2013-10-04  Alan Modra  <amodra@gmail.com>
11026
11027         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
11028         constants to usual value for .cst8 section, and remove redundant
11029         high address load.
11030         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
11031         constant for 0x1p52.  Load little-endian words of double from
11032         correct stack offsets.
11033
11034 2013-10-04  Alan Modra  <amodra@gmail.com>
11035
11036         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
11037         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
11038         words of double from correct stack offsets.
11039         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
11040         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
11041         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
11042         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
11043         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
11044         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
11045         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
11046         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
11047         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
11048         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
11049         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
11050         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
11051         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
11052         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
11053         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
11054         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
11055         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
11056
11057 2013-10-04  Alan Modra  <amodra@gmail.com>
11058
11059         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
11060         64-bit int/double union.
11061         (_FPU_SETCW): Likewise.
11062         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
11063         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
11064
11065 2013-10-04  Alan Modra  <amodra@gmail.com>
11066
11067         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
11068         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
11069
11070 2013-10-04  Alan Modra  <amodra@gmail.com>
11071
11072         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
11073         use vector int constants.
11074         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
11075
11076 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
11077
11078         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
11079         array with long long.
11080         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
11081         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
11082         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
11083         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
11084         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
11085         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
11086         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
11087         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
11088         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
11089         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
11090         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
11091         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
11092         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
11093
11094 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
11095
11096         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
11097         (__signbit): Likewise.  Correct for little-endian.
11098         (__signbitl): Call __signbit.
11099         (lrint): Correct for little-endian.
11100         (lrintf): Call lrint.
11101
11102 2013-10-04  Alan Modra  <amodra@gmail.com>
11103
11104         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
11105         union 32-bit int array member with 64-bit int array.
11106         (t515, tm256): Double rather than long double.
11107         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
11108
11109 2013-10-04  Alan Modra  <amodra@gmail.com>
11110
11111         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
11112         Delete.
11113         (IEEE854_LONG_DOUBLE_BIAS): Delete.
11114         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
11115         version of math_ldbl.h.
11116
11117 2013-10-04  Alan Modra  <amodra@gmail.com>
11118
11119         [BZ #15734], [BZ #15735]
11120         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
11121         all uses of ieee875 long double macros and unions.  Simplify test
11122         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
11123         ldbl_extract_mantissa value for ix,iy exponents.  Properly
11124         normalize after ldbl_extract_mantissa, and don't add hidden bit
11125         already handled.  Don't treat low word of ieee854 mantissa like
11126         low word of IBM long double and mask off bit when testing for
11127         zero.
11128         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
11129         all uses of ieee875 long double macros and unions.  Simplify tests
11130         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
11131         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
11132         two1022, instead use their values.  Recognise that tests for large
11133         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
11134         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
11135         Rewrite all uses of ieee875 long double macros and unions.  Simplify
11136         test for 0.0L and nan.  Correct negation.
11137         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
11138         ieee875 long double macros and unions.  Correct output for large
11139         magnitude x.  Correct absolute value calculation.
11140         (__erfcl): Likewise.
11141         * math/libm-test.inc: Add tests for errors discovered in IBM long
11142         double versions of fmodl, remainderl, erfl and erfcl.
11143
11144 2013-10-04  Alan Modra  <amodra@gmail.com>
11145
11146         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
11147         all uses of ieee854 long double macros and unions.  Simplify tests
11148         for long doubles that are fully specified by the high double.
11149         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11150         Likewise.
11151         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
11152         Remove dead code too.
11153         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11154         (__ieee754_ynl): Likewise.
11155         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
11156         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
11157         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
11158         Remove dead code too.
11159         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11160         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
11161         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
11162         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
11163         Simplify.
11164         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
11165         Simplify.
11166         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
11167         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
11168         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
11169         Comment on variable precision.
11170         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
11171         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11172         Likewise.
11173         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
11174         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11175         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11176         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11177         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
11178
11179 2013-10-04  Alan Modra  <amodra@gmail.com>
11180
11181         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
11182         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
11183         all uses of ieee854 long double macros and unions.
11184         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
11185         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
11186         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
11187         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
11188         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
11189         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
11190         Likewise.
11191         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
11192         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11193         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
11194         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11195         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11196         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11197         Simplify sign and nan test too.
11198         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
11199         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
11200         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
11201         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
11202         Likewise.
11203         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
11204         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
11205         Likewise.
11206         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11207         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11208         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
11209         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
11210         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
11211         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
11212
11213 2013-10-04  Alan Modra  <amodra@gmail.com>
11214
11215         * stdio-common/printf_size.c (__printf_size): Don't use
11216         union ieee854_long_double in fpnum union.
11217         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
11218         signbit macro to retrieve sign from long double.
11219         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
11220         retrieve sign from long double.
11221         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
11222         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
11223         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
11224         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11225         * math/test-misc.c (main): Don't use union ieee854_long_double.
11226
11227 2013-10-04  Alan Modra  <amodra@gmail.com>
11228
11229         [BZ #15680]
11230         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
11231         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
11232         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
11233         calculation.  Remove unnecessary test for denormal exponent.
11234         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
11235         Correct handling of denormals.  Avoid undefined shift behaviour.
11236         Correct normalisation of low mantissa when low double is denormal.
11237         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
11238         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
11239         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
11240         Correct normalisation of low mantissa.  Test for overflow of high
11241         mantissa and normalise.
11242         (ldbl_nearbyint): Use more readable constant for two52.
11243         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
11244         (__mpn_construct_long_double): Fix test for overflow of high
11245         mantissa and correct normalisation.  Avoid undefined shift.
11246
11247 2013-10-04  Alan Modra  <amodra@gmail.com>
11248
11249         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
11250         (union ibm_extended_long_double): Define as an array of ieee754_double.
11251         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
11252         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
11253         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
11254         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
11255         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
11256         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
11257         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
11258         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
11259         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11260         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
11261         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
11262
11263 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
11264
11265         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
11266         page size instead of calling getpagesize.
11267
11268         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
11269         (LOCFILE_ALIGN_MASK): Likewise.
11270         (LOCFILE_ALIGN_UP): Likewise.
11271         (LOCFILE_ALIGNED_P): Likewise.
11272         * locale/programs/ld-collate.c (collate_output): Use the new
11273         macros instead of __alignof__ (int32_t).
11274         * locale/weight.h (findidx): Likewise.
11275
11276 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
11277
11278         [BZ #431]
11279         * manual/string.texi: Fix strncat and wcsncat.
11280
11281 2013-10-03  Brooks Moses  <bmoses@google.com>
11282
11283         [BZ #15915]
11284         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
11285         * Makerules: ...here, and adjust associated comments.
11286
11287 2013-10-02  Will Newton  <will.newton@linaro.org>
11288
11289         * malloc/Makefile: Add tst-pvalloc.
11290         * malloc/tst-pvalloc.c: New file.
11291
11292 2013-10-02  Will Newton  <will.newton@linaro.org>
11293
11294         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
11295         improve test coverage.
11296
11297 2013-10-02  Will Newton  <will.newton@linaro.org>
11298
11299         * malloc/Makefile: Add tst-posix_memalign.
11300         * malloc/tst-posix_memalign.c: New file.
11301
11302 2013-10-01  Eric Blake  <eblake@redhat.com>
11303
11304         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
11305         Use __THROWNL rather than __THROW on static functions.
11306
11307 2013-09-30  Petr Machata  <pmachata@redhat.com>
11308
11309         * elf/elf.h (R_AARCH64_ABS16): New macro.
11310         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
11311         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
11312         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
11313         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
11314         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
11315         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
11316         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
11317         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
11318         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
11319         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
11320         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
11321         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
11322         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
11323         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
11324         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
11325         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
11326         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
11327         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
11328         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
11329         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
11330         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
11331         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
11332         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
11333         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
11334         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
11335         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
11336         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
11337         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
11338         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
11339         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
11340         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
11341         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
11342         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
11343         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
11344         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
11345         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
11346         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
11347         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
11348         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
11349         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
11350         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
11351         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
11352         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
11353         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
11354         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
11355         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
11356         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
11357         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
11358         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
11359         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
11360         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
11361         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
11362         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
11363         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
11364         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
11365         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
11366         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
11367         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
11368         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
11369         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
11370         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
11371         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
11372         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
11373         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
11374         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
11375         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
11376         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
11377         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
11378         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
11379         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
11380         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
11381         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
11382         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
11383         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
11384         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
11385         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
11386         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
11387         (R_AARCH64_TLSDESC_LDR): Likewise.
11388         (R_AARCH64_TLSDESC_ADD): Likewise.
11389         (R_AARCH64_TLSDESC_CALL): Likewise.
11390
11391 2013-09-30  Andreas Schwab  <schwab@suse.de>
11392
11393         [BZ #15048]
11394         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
11395         the nss database lookup.
11396         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11397         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11398
11399 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
11400
11401         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
11402
11403 2013-09-28  P. J. McDermott  <pj@pehjota.net>
11404
11405         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
11406         ${Bash-specific parameter/pattern/string} parameter expansion.
11407         * sysdeps/unix/make-syscalls.sh: Likewise.
11408
11409 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11410
11411         * sysdeps/sh/stackguard-macros.h: New file.
11412
11413 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
11414
11415         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
11416         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
11417         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
11418         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
11419         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
11420         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
11421
11422 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11423
11424         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
11425         Fix thread ID register.
11426
11427 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
11428
11429         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
11430         [POSIX || UNIX98]: Require rather than permitting all symbols from
11431         <time.h>.
11432         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
11433         element of struct sched_param.
11434         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
11435         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
11436         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
11437         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
11438         constant.
11439
11440 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
11441
11442         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
11443         argument calculation.
11444
11445 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
11446
11447         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
11448         Expect macro.
11449         [POSIX] (pthread_attr_t): Do not require type.
11450         [POSIX] (pthread_cond_t): Likewise.
11451         [POSIX] (pthread_condattr_t): Likewise.
11452         [POSIX] (pthread_key_t): Likewise.
11453         [POSIX] (pthread_mutex_t): Likewise.
11454         [POSIX] (pthread_mutexattr_t): Likewise.
11455         [POSIX] (pthread_once_t): Likewise.
11456         [POSIX] (pthread_t): Likewise.
11457         [POSIX-based standards] (pthread_atfork): Expect function.
11458
11459 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
11460             Richard Sandiford  <richard@codesourcery.com>
11461
11462         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
11463         (swap_endianness_p): New extern variable.
11464         (set_big_endian): New inline function.
11465         (maybe_swap_uint32): Likewise.
11466         (maybe_swap_uint32_array): Likewise.
11467         (maybe_swap_uint32_obstack): Likewise.
11468         * locale/programs/locfile.c: Include <stdbool.h>.
11469         (swap_endianness_p): New variable.
11470         (add_locale_uint32): Call maybe_swap_uint32.
11471         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
11472         (write_locale_data): Call maybe_swap_uint32_array.
11473         * locale/programs/ld-collate.c (obstack_int32_grow): Call
11474         maybe_swap_uint32.
11475         (obstack_int32_grow_fast): Likewise.
11476         (output_weightwc): Call maybe_swap_uint32_obstack.
11477         (collate_output): Likewise.
11478         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
11479         (OPT_LITTLE_ENDIAN): Likewise.
11480         (options): Add --little-endian and --big-endian options.
11481         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
11482         * locale/programs/locarchive.c: Include "locfile.h".
11483         (GET): New macro.
11484         (SET): Likewise.
11485         (INC): Likewise.
11486         (create_archive): Use the new macros to access fields of
11487         structures directly mapped from or written to locale archives.
11488         (oldlocrecentcmp): Likewise.
11489         (enlarge_archive): Likewise.
11490         (insert_name): Likewise.
11491         (add_alias): Likewise.
11492         (add_locale): Likewise.
11493         (delete_locales_from_archive): Likewise.
11494         (show_archive_content): Likewise.
11495         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
11496         locale data.
11497
11498 2013-09-24  Roland McGrath  <roland@hack.frob.com>
11499
11500         * manual/freemanuals.texi: Updated from (newly) canonical copy at
11501         http://www.gnu.org/doc/freemanuals.texi.
11502         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
11503
11504 2013-09-24  Will Newton  <will.newton@linaro.org>
11505
11506         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
11507         macro.
11508
11509 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
11510
11511         * locale/hashval.h (compute_hashval): Interpret bytes of key as
11512         unsigned char.
11513
11514 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
11515
11516         * manual/threads.texi (POSIX Threads): Fix a typo.
11517
11518 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
11519
11520         [BZ #14547]
11521         * string/tst-strcoll-overflow.c: New test case.
11522         * string/Makefile (xtests): Add tst-strcoll-overflow.
11523         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
11524         cache if string sizes may cause integer overflow.
11525
11526         [BZ #14547]
11527         * string/strcoll_l.c (coll_seq): New members rule, idx,
11528         save_idx and back_us.
11529         (get_next_seq_nocache): New function.
11530         (do_compare_nocache): New function.
11531         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
11532         when malloc fails.
11533
11534 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
11535
11536         [BZ #15754]
11537         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
11538         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
11539         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
11540
11541         [BZ #15754]
11542         * elf/Makefile (tests): Add tst-ptrguard1.
11543         (tests-static): Add tst-ptrguard1-static.
11544         (tst-ptrguard1-ARGS): Define.
11545         (tst-ptrguard1-static-ARGS): Define.
11546         * elf/tst-ptrguard1.c: New file.
11547         * elf/tst-ptrguard1-static.c: New file.
11548         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
11549         * sysdeps/i386/stackguard-macros.h: Likewise.
11550         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
11551         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
11552         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
11553         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
11554         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
11555         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
11556
11557 2013-09-23  Hector Marco  <hecmargi@upv.es>
11558             Ismael Ripoll  <iripoll@disca.upv.es>
11559             Carlos O'Donell  <carlos@redhat.com>
11560
11561         [BZ #15754]
11562         * sysdeps/generic/stackguard-macros.h: Define
11563         __pointer_chk_guard_local and POINTER_CHK_GUARD.
11564         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
11565         Define __pointer_chk_guard_local.
11566         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
11567         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
11568
11569 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
11570
11571         [BZ #15859]
11572         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
11573
11574 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
11575
11576         * include/string.h (__ffs): Declare as hidden.
11577         * string/ffs.c (__ffs): Define as hidden.
11578         * sysdeps/i386/ffs.c (__ffs): Likewise.
11579         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
11580         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
11581         * sysdeps/s390/ffs.c (__ffs): Likewise.
11582         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
11583
11584 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
11585
11586         * NEWS: Mention malloc probes.
11587
11588         * malloc/arena.c (new_heap): New memory_heap_new probe.
11589         (grow_heap): New memory_heap_more probe.
11590         (shrink_heap): New memory_heap_less probe.
11591         (heap_trim): New memory_heap_free probe.
11592         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
11593         (systrim): New memory_sbrk_less probe.
11594         * manual/probes.texi: Document them.
11595
11596         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
11597         * manual/probes.texi: Document it.
11598
11599         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
11600         (__libc_realloc): Add memory_realloc_retry probe.
11601         (__libc_memalign): Add memory_memalign_retry probe.
11602         (__libc_valloc): Add memory_valloc_retry probe.
11603         (__libc_pvalloc): Add memory_pvalloc_retry probe.
11604         (__libc_calloc): Add memory_calloc_retry probe.
11605         * manual/probes.texi: Document them.
11606
11607         * malloc/arena.c (get_free_list): Add probe
11608         memory_arena_reuse_free_list.
11609         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
11610         and memory_arena_reuse.
11611         (arena_get2) [!PER_THREAD]: Likewise.
11612         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
11613         memory_arena_reuse_realloc.
11614         * manual/probes.texi: Document them.
11615
11616         * malloc/malloc.c (__libc_free): Add
11617         memory_mallopt_free_dyn_thresholds probe.
11618         (__libc_mallopt): Add multiple memory_mallopt probes.
11619         * manual/probes.texi: Document them.
11620
11621         * malloc/malloc.c: Include stap-probe.h.
11622         (__libc_mallopt): Add memory_mallopt probe.
11623         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
11624         * manual/probes.texi: New.
11625         * manual/Makefile (chapters): Add probes.
11626         * manual/threads.texi: Set next node.
11627
11628 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
11629
11630         [BZ #15963, #13985]
11631         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
11632         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
11633         Add `Chinese' to `nan' entry name.
11634
11635 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11636
11637         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
11638         (POLYNOMIAL): Likewise.
11639         (TAYLOR_SINCOS): Likewise.
11640         (TAYLOR_SLOW): Likewise.
11641         (__sin): Use TAYLOR_SINCOS.
11642         (__cos): Likewise.
11643         (slow): Use TAYLOR_SLOW.
11644         (sloww): Likewise.
11645         (bsloww): Likewise.
11646         (csloww): Likewise.
11647
11648 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11649
11650         * stdlib/strtod_l.c: Fix buffer overrun.
11651
11652 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11653
11654         * benchtests/Makefile (bench): Add sincos.
11655         * benchtests/bench-sincos.c: New file.
11656
11657         * math/libm-test.inc (cos_test_data): New test inputs.
11658         (sin_test_data): Likewise.
11659
11660         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
11661         macro.
11662         (__sin): Use it.
11663         (__cos): Likewise.
11664         (slow1): Likewise.
11665         (slow2): Likewise.
11666         (sloww1): Likewise.
11667         (sloww2): Likewise.
11668         (bsloww1): Likewise.
11669         (bsloww2): Likewise.
11670         (cslow2): Likewise.
11671         (csloww1): Likewise.
11672         (csloww2): Likewise.
11673
11674         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
11675         function.
11676         (__sin): Use it.
11677         (__cos): Likewise.
11678
11679         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
11680         gotos.
11681         (__cos): Likewise.
11682
11683 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
11684
11685         * config.h.in (HAVE_MIPS_NAN2008): New macro.
11686         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
11687         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
11688         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
11689         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
11690         * elf/cache.c (print_entry): Handle the new cache flags.
11691
11692 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
11693             Aldy Hernandez  <aldyh@redhat.com>
11694
11695         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
11696         Change condition to [_SOFT_FLOAT].
11697         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
11698         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
11699         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
11700         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
11701         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
11702         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
11703         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
11704         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
11705         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
11706         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
11707         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
11708         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
11709         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
11710         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
11711         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
11712         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
11713         declaration.
11714
11715 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
11716
11717         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
11718         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
11719         (__longjmp): Use LOAD_GP to load saved GPRs.
11720         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
11721         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
11722         (__sigsetjmp): Use SAVE_GP to save GPRs.
11723
11724         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
11725         Do not append -msoft-float.
11726         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
11727
11728 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
11729
11730         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
11731
11732 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
11733
11734         [BZ #15966]
11735         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
11736         (_FPU_GETCW): Use initial "__" on variable and field names but not
11737         on macro parameter name.
11738         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
11739         parentheses around reference to macro parameter.
11740
11741 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
11742
11743         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
11744         prototype.
11745         (ctype_startup): Use uint32_t in cast and sizeof for
11746         ctype->charnames.
11747
11748 2013-09-11  Jia Liu  <proljc@gmail.com>
11749
11750         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
11751         __daddr_t_defined.
11752         [__FreeBSD__]: Likewise.
11753
11754 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
11755
11756         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11757         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
11758         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
11759         (strchr): Remove __strchr_sse42 ifunc selection.
11760         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
11761         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
11762
11763 2013-09-11  Will Newton  <will.newton@linaro.org>
11764
11765         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
11766         parameter to RES. Remove hardcoded 1000 value.
11767         * benchtests/bench-skeleton.c (main): Pass RES parameter
11768         to TIMING_INIT and multiply result by 1000.
11769
11770 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11771
11772         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11773
11774 2013-09-11  Andreas Schwab  <schwab@suse.de>
11775
11776         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
11777         if not defined.
11778         (O_TMPFILE) [__USE_GNU]: Define.
11779         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
11780         Define.
11781
11782 2013-09-11  Will Newton  <will.newton@linaro.org>
11783
11784         [BZ #15857]
11785         * malloc/malloc.c (__libc_memalign): Check the value of bytes
11786         does not overflow.
11787
11788 2013-09-11  Will Newton  <will.newton@linaro.org>
11789
11790         [BZ #15856]
11791         * malloc/malloc.c (__libc_valloc): Check the value of bytes
11792         does not overflow.
11793
11794 2013-09-11  Will Newton  <will.newton@linaro.org>
11795
11796         [BZ #15855]
11797         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
11798         does not overflow.
11799
11800 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
11801
11802         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
11803         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11804         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11805         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11806         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11807
11808 2013-09-10  Allan McRae  <allan@archlinux.org>
11809
11810         [BZ #15748]
11811         * manual/arith.texi (Parsing of Floats): Clarify
11812         cross-reference.
11813
11814         [BZ #15849]
11815         * manual/install.texi (Running make install): Mention
11816         --enable-pt-chown.
11817         * INSTALL: Regenerated.
11818
11819 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
11820
11821         * csu/init-first.c (_init): Remove the !SHARED condition around
11822         FPU control word initialization.
11823         * elf/dl-support.c (_dl_fpu_control): New variable.
11824         (_dl_aux_init) <AT_FPUCW>: Initialize it.
11825         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
11826         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
11827         * math/test-fpucw-static.c: New file.
11828         * math/test-fpucw-ieee.c: New file.
11829         * math/test-fpucw-ieee-static.c: New file.
11830         * math/Makefile (tests): Add `test-fpucw-ieee' and
11831         `$(tests-static)'.
11832         (tests-static): New variable.
11833         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
11834         dependency to...
11835         [($(build-shared),yes)]
11836         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
11837         ... this.
11838         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
11839         New dependency.
11840
11841 2013-09-09  Allan McRae  <allan@archlinux.org>
11842
11843         [BZ #15939]
11844         * manual/string.texi (Collation Functions): Fix typo in
11845         strcoll example.
11846         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
11847
11848         [BZ #15893]
11849         * stdlib/isomac.c (get_null_defines): Fix memory leak.
11850
11851         [BZ #15892]
11852         * libio/memstream.c (open_memstream): Fix memory leak.
11853         * libio/wmemstream.c (open_wmemstream): Likewise.
11854
11855         [BZ #15895]
11856         * nscd/netgroupcache.c: Fix nesting of ifdefs.
11857
11858 2013-09-09  Will Newton  <will.newton@linaro.org>
11859
11860         * malloc/Makefile: Add tst-realloc to tests.
11861         * malloc/tst-realloc.c: New file.
11862
11863 2013-09-09  Allan McRae  <allan@archlinux.org>
11864
11865         [BZ #15844]
11866         * COPYING: Update from GNU website to fix FSF address.
11867         * COPYING.LIB: Likewise.
11868
11869 2013-09-06  David S. Miller  <davem@davemloft.net>
11870
11871         * po/zh_TW.po: Update Chinese (traditional) translation from
11872         translation project.
11873
11874 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
11875             Joseph Myers  <joseph@codesourcery.com>
11876
11877         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
11878         "localeinfo.h".
11879         (obstack_chunk_alloc): New macro.
11880         (obstack_chunk_free): Likewise.
11881         (record_offset): New function.
11882         (init_locale_data): Likewise.
11883         (align_locale_data): Likewise.
11884         (add_locale_empty): Likewise.
11885         (add_locale_raw_data): Likewise.
11886         (add_locale_raw_obstack): Likewise.
11887         (add_locale_string): Likewise.
11888         (add_locale_wstring): Likewise.
11889         (add_locale_uint32): Likewise.
11890         (add_locale_uint32_array): Likewise.
11891         (add_locale_char): Likewise.
11892         (start_locale_structure): Likewise.
11893         (end_locale_structure): Likewise.
11894         (start_locale_prelude): Likewise.
11895         (end_locale_prelude): Likewise.
11896         (write_locale_data): Take locale_file structure rather than an
11897         iovec.
11898         * locale/programs/locfile.h: Include "obstack.h".
11899         (struct locale_file): Change to store locale file contents instead
11900         of header.
11901         (init_locale_data): New prototype.
11902         (align_locale_data): Likewise.
11903         (add_locale_empty): Likewise.
11904         (add_locale_raw_data): Likewise.
11905         (add_locale_raw_obstack): Likewise.
11906         (add_locale_string): Likewise.
11907         (add_locale_wstring): Likewise.
11908         (add_locale_uint32): Likewise.
11909         (add_locale_uint32_array): Likewise.
11910         (add_locale_char): Likewise.
11911         (start_locale_structure): Likewise.
11912         (end_locale_structure): Likewise.
11913         (start_locale_prelude): Likewise.
11914         (end_locale_prelude): Likewise.
11915         (write_locale_data): Update prototype.
11916         * locale/programs/3level.h (struct TABLE): Remove result field.
11917         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
11918         Use new locale_file interface.
11919         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
11920         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
11921         * locale/programs/ld-address.c (address_output): Use new
11922         locale_file interface.
11923         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
11924         NO_ADD_LOCALE.
11925         (collate_finish): Don't call collseq_table_finalize.
11926         (collate_output): Use new locale_file interface.
11927         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
11928         in file.
11929         (NO_FINALIZE): Change to NO_ADD_LOCALE.
11930         (TABLE): Move defines earlier in file.
11931         (ELEMENT): Likewise.
11932         (DEFAULT): Likewise.
11933         (wctrans_table_add): Move macro and inline function earlier in
11934         file.
11935         (struct wctype_table): Move type earlier in file.
11936         (add_locale_wctype_table): New static prototype.
11937         (struct locale_ctype_t): Use logical types instead of struct iovec
11938         pointers for members.
11939         (ctype_output): Use new locale_file interface.
11940         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
11941         new locale_file interface.
11942         (allocate_arrays): Update for use of new locale_file interface.
11943         * locale/programs/ld-identification.c (identification_output): Use
11944         new locale_file interface.
11945         * locale/programs/ld-measurement.c (measurement_output): Likewise.
11946         * locale/programs/ld-messages.c (messages_output): Likewise.
11947         * locale/programs/ld-monetary.c (monetary_output): Likewise.
11948         * locale/programs/ld-name.c (name_output): Likewise.
11949         * locale/programs/ld-numeric.c (numeric_output): Likewise.
11950         * locale/programs/ld-paper.c (paper_output): Likewise.
11951         * locale/programs/ld-telephone.c (telephone_output): Likewise.
11952         * locale/programs/ld-time.c (time_output): Likewise.
11953
11954 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11955
11956         * benchtests/Makefile: Add memrchr benchmark.
11957         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
11958         benchmark as memrchr.
11959         * benchtests/bench-memrchr-ifunc.c: New file.
11960         * benchtests/bench-memrchr.c: New file.
11961
11962 2013-09-06   Will Newton  <will.newton@linaro.org>
11963
11964         * benchtests/Makefile (string-bench): Add memcpy.
11965
11966 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
11967             Cong Wang  <amwang@redhat.com>
11968
11969         [BZ #15850]
11970         * sysdeps/unix/sysv/linux/bits/in.h
11971         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
11972         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
11973         before __USE_KERNEL_IPV6_DEFS uses.
11974         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
11975         IPPROTO_BEETPH.
11976         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
11977         sockaddr_in6, or ipv6_mreq.
11978
11979 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11980
11981         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
11982         memory access for final bytes in some large inputs.
11983         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
11984
11985 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11986
11987         * string/test-memrchr.c: New file.
11988         * string/test-memrchr-ifunc.c: New file.
11989         * string/Makefile: Add new memrchr testcase.
11990
11991 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
11992
11993         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
11994         fanotify_init returns EPERM.
11995
11996 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
11997
11998         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
11999         errors.
12000         (top level): Treat second token from macro or constant entries for
12001         allowed headers as allowed.
12002         * include/complex.h: Condition internal declarations on
12003         [!_ISOMAC].
12004         * include/fenv.h: Condition include of <stdbool.h> and internal
12005         declarations on [!_ISOMAC].
12006
12007 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
12008
12009         [BZ #15923]
12010         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
12011
12012 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
12013
12014         * configure.in (--enable-versioning): Remove configure option.
12015         (libc_cv_asm_symver_directive): Remove configure test.
12016         (libc_cv_ld_version_script_option): Likewise.
12017         (VERSIONING): Remove variable and AC_SUBST.
12018         (DO_VERSIONING): Remove AC_DEFINE.
12019         * configure: Regenerated.
12020         * config.h.in (DO_VERSIONING): Remove macro.
12021         * Makerules [$(versioning) = yes]: Change conditionals to
12022         [$(build-shared) = yes].
12023         * config.make.in (versioning): Remove variable.
12024         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
12025         [$(build-shared) = yes].
12026         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
12027         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
12028         * elf/Makefile [$(versioning) = yes]: Change conditionals to
12029         [$(build-shared) = yes].
12030         * extra-lib.mk [$(versioning) = yes]: Likewise.
12031         * hurd/Makefile [$(versioning) = yes]: Likewise.
12032         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
12033         [SHARED].
12034         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
12035         [SHARED].
12036         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
12037         [SHARED && !NO_HIDDEN].
12038         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
12039         [SHARED].
12040         [SHARED && DO_VERSIONING]: Likewise..
12041         * libio/Makefile [$(versioning) = yes]: Change conditionals to
12042         [$(build-shared) = yes].
12043         * manual/install.texi (--disable-versioning): Remove
12044         documentation.
12045         * INSTALL: Regenerated.
12046         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
12047         to [SHARED].
12048         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
12049         [$(build-shared) = yes].
12050         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
12051         * sysdeps/i386/i686/multiarch/strstr-c.c
12052         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
12053         [SHARED && !NO_HIDDEN].
12054         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
12055         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
12056         * sysdeps/powerpc/powerpc32/dl-machine.c
12057         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
12058         * sysdeps/powerpc/powerpc32/sysdep.h
12059         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
12060         to [SHARED && PIC && !NO_HIDDEN].
12061         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
12062         conditional to [SHARED].
12063
12064 2013-09-04   Will Newton  <will.newton@linaro.org>
12065
12066         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
12067         * benchtests/bench-string.h: Include bench-timing.h instead
12068         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
12069         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
12070         call to HP_TIMING_DIFF_INIT.
12071         * benchtests/bench-memccpy.c: Use bench-timing.h macros
12072         instead of hp-timing.h macros.
12073         * benchtests/bench-memchr.c: Likewise.
12074         * benchtests/bench-memcmp.c: Likewise.
12075         * benchtests/bench-memcpy.c: Likewise.
12076         * benchtests/bench-memmem.c: Likewise.
12077         * benchtests/bench-memmove.c: Likewise.
12078         * benchtests/bench-memset.c: Likewise.
12079         * benchtests/bench-rawmemchr.c: Likewise.
12080         * benchtests/bench-strcasecmp.c: Likewise.
12081         * benchtests/bench-strcasestr.c: Likewise.
12082         * benchtests/bench-strcat.c: Likewise.
12083         * benchtests/bench-strchr.c: Likewise.
12084         * benchtests/bench-strcmp.c: Likewise.
12085         * benchtests/bench-strcpy.c: Likewise.
12086         * benchtests/bench-strcpy_chk.c: Likewise.
12087         * benchtests/bench-strlen.c: Likewise.
12088         * benchtests/bench-strncasecmp.c: Likewise.
12089         * benchtests/bench-strncat.c: Likewise.
12090         * benchtests/bench-strncmp.c: Likewise.
12091         * benchtests/bench-strncpy.c: Likewise.
12092         * benchtests/bench-strnlen.c: Likewise.
12093         * benchtests/bench-strpbrk.c: Likewise.
12094         * benchtests/bench-strrchr.c: Likewise.
12095         * benchtests/bench-strspn.c: Likewise.
12096         * benchtests/bench-strstr.c: Likewise.
12097
12098 2013-09-04  Will Newton  <will.newton@linaro.org>
12099
12100         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
12101
12102 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
12103
12104         [BZ #15427]
12105         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
12106         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
12107         * math/libm-test.inc (lgamma_test_data): Add more tests.
12108         * sysdeps/i386/fpu/libm-test-ulps: Update.
12109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12110
12111 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
12112
12113         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
12114         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
12115         Add ifunc.
12116         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
12117         Add strcmp-sse2-unaligned
12118         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
12119
12120 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
12121
12122         * Versions.def (libc): Add GLIBC_2.19.
12123
12124 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
12125
12126         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
12127         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
12128
12129 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
12130
12131         [BZ #14155]
12132         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
12133         intermediate calculations in recurrence.
12134         (__ieee754_ynf): Likewise.
12135         * math/libm-test.inc (jn_test_data): Do not allow spurious
12136         underflow exception.  Add more tests.
12137         (yn_test_data): Add more tests.
12138         * sysdeps/i386/fpu/libm-test-ulps: Update.
12139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12140
12141 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
12142
12143         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
12144
12145 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
12146
12147         * csu/init-first.c: Fix then/than typos.
12148         * locale/programs/ld-collate.c: Likewise.
12149         * locale/programs/linereader.h: Likewise.
12150         * manual/charset.texi: Likewise.
12151         * manual/filesys.texi: Likewise.
12152         * manual/stdio.texi: Likewise.
12153         * manual/string.texi: Likewise.
12154         * stdlib/fmtmsg.c: Likewise.
12155         * sysdeps/i386/stpncpy.S: Likewise.
12156         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
12157         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
12158         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
12159         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
12160
12161 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
12162
12163         * elf/dl-open.c: Fix typos.
12164         * iconvdata/gbbig5.c: Likewise.
12165         * iconvdata/iso-2022-jp.c: Likewise.
12166         * iconv/gconv_int.h: Likewise.
12167         * iconv/loop.c: Likewise.
12168         * nis/rpcsvc/nis.h: Likewise.
12169         * resolv/ns_name.c: Likewise.
12170         * stdio-common/vfscanf.c: Likewise.
12171         * streams/stropts.h: Likewise.
12172         * sunrpc/rpc_thread.c: Likewise.
12173         * sysdeps/i386/strpbrk.S: Likewise.
12174         * sysdeps/ieee754/k_standard.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12177         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12178         * sysdeps/mach/hurd/profil.c: Likewise.
12179         * sysdeps/s390/dl-procinfo.h: Likewise.
12180         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
12181         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
12182         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
12183         * sysdeps/x86_64/dl-trampoline.S: Likewise.
12184         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
12185
12186 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
12187
12188         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
12189         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
12190
12191 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
12192
12193         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
12194         aix specific files.
12195         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
12196         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
12197         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
12198         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
12199         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
12200         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
12201         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
12202         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
12203
12204 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
12205             Roland McGrath  <roland@hack.frob.com>
12206
12207         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
12208         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
12209
12210 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12211
12212         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
12213         __executable_start symbol instead of _start.
12214
12215 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
12216
12217         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
12218         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
12219         Move macros to...
12220         * sysdeps/gnu/ldsodefs.h: ... this new file.
12221
12222         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
12223         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
12224         instead of ELFOSABI_LINUX.
12225
12226         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
12227         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
12228         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
12229         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
12230         Likewise.
12231         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
12232         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
12233         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
12234         Likewise.
12235         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
12236         (ibm_extended_long_double): Add ieee_nan member.
12237         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
12238         (do_test): New function.
12239
12240         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
12241         TEST_TRUNC.
12242         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
12243         functions, renamed from truncdfsf_test, trunctfsf_test,
12244         trunctfdf_test.
12245         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
12246         functions.
12247         (do_test): Run all these.
12248
12249 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
12250
12251         * argp/argp-help.c: Fix typos.
12252         * argp/argp-parse.c: Likewise.
12253         * debug/backtracesyms.c: Likewise.
12254         * elf/elf.h: Likewise.
12255         * malloc/malloc.c: Likewise.
12256         * nis/nis_print.c: Likewise.
12257         * resolv/res_comp.c: Likewise.
12258         * stdlib/stdlib.h: Likewise.
12259         * sunrpc/clnt_tcp.c: Likewise.
12260         * sunrpc/clnt_udp.c: Likewise.
12261         * sunrpc/clnt_unix.c: Likewise.
12262         * sysdeps/unix/bsd/ptsname.c: Likewise.
12263         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
12264         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
12265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
12266         Likewise.
12267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
12268         Likewise.
12269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
12270         Likewise.
12271         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
12272
12273 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12274
12275         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
12276         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12277
12278 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
12279
12280         [BZ #15897]
12281         * dlfcn/Makefile (tests): Add bug-dl-leaf.
12282         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
12283         ($(objpfx)bug-dl-leaf): New rule.
12284         ($(objpfx)bug-dl-leaf.so): Likewise.
12285         ($(objpfx)bug-dl-leaf.out): Likewise.
12286         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
12287         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
12288         * dlfcn/bug-dl-leaf.c: New test.
12289         * dlfcn/bug-dl-leaf-lib.c: Likewise.
12290         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
12291         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
12292         (dlclose): Likewise.
12293         (dlmopen): Likewise.
12294
12295 2013-08-27  Roland McGrath  <roland@hack.frob.com>
12296
12297         * include/netdb.h [!_ISOMAC]:
12298         Don't include <tls.h>.
12299         (h_errno, __libc_h_errno): Move declaration and macros out of
12300         [_LIBC_REENTRANT].
12301
12302         * include/resolv.h [_RESOLV_H_]:
12303         Don't include <tls.h>.
12304         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
12305         * resolv/res_libc.c: Don't include <tls.h>.
12306         (_res): Use __attribute__ ((nocommon)) in place of
12307         __attribute__ ((section (".bss"))).
12308
12309         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
12310         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
12311
12312         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
12313
12314         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
12315         only under [SIOCGIFCONF && SIOCGIFNETMASK].
12316
12317         * resolv/res_mkquery.c: Include <sys/time.h>.
12318
12319         * inet/ifreq.c: Moved to ...
12320         * sysdeps/unix/ifreq.c: ... here.
12321         * inet/ifreq.c: New file, true stub version.
12322
12323         * socket/sa_len.c: New file.
12324         * socket/Makefile (aux): Add it.
12325         * sysdeps/unix/sysv/linux/Makefile
12326         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
12327         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
12328         and #include <socket/sa_len.c>.
12329         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
12330         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
12331
12332         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
12333         * bits/socket.h: ... here.
12334
12335         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
12336         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
12337         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
12338
12339 2013-08-27  Andreas Schwab  <schwab@suse.de>
12340
12341         [BZ #15736]
12342         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
12343         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
12344         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
12345         * string/test-strcasecmp.c (test_main): Run tests in several
12346         locales.
12347         * string/test-strncasecmp.c (test_main): Likewise.
12348
12349         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
12350         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
12351         to __strcasecmp_nonascii and __strncasecmp_nonascii.
12352         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
12353         (__strncasecmp_ssse3) [PIC]: Likewise.
12354
12355 2013-08-26  Roland McGrath  <roland@hack.frob.com>
12356
12357         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
12358
12359         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
12360         instead of explicitly declaring xdecrypt.
12361         * nis/nss_nis/nis-publickey.c: Likewise.
12362
12363 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12364
12365         [BZ #15890]
12366         * nscd/aicache.c: Include res_hconf.h.
12367         (addhstaiX): Initialize res_hconf.
12368
12369 2013-08-26  Andreas Schwab  <schwab@suse.de>
12370
12371         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
12372         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
12373
12374 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12375
12376         * nscd/aicache.c (addhstaiX): Fix indentation.
12377
12378 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
12379
12380         * configure.ac: Quote $build_pt_chown test.
12381         * configure: Regenerated.
12382
12383 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
12384
12385         [BZ #15532]
12386         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
12387         * math/s_cexpf.c (__cexpf): Likewise.
12388         * math/s_cexpl.c (__cexpl): Likewise.
12389         * math/libm-test.inc (cexp_test_data): Correct expected return
12390         value for NaN + i0.  Add another test.
12391
12392 2013-08-22  David S. Miller  <davem@davemloft.net>
12393
12394         * po/ca.po: Update Catalan translation from translation project.
12395         * po/uk.po: Add Ukrainian translations from translation project.
12396
12397 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
12398
12399         [BZ #15797]
12400         * math/s_fdim.c (__fdim): Check for infinite arguments if result
12401         is infinite, not alongside NaN test.
12402         * math/s_fdimf.c (__fdimf): Likewise.
12403         * math/s_fdiml.c (__fdiml): Likewise.
12404         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
12405         errno is unchanged.
12406
12407 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
12408
12409         * argp/argp-help.c: Fix typos.
12410         * crypt/speeds.c: Likewise.
12411         * csu/check_fds.c: Likewise.
12412         * elf/dl-load.c: Likewise.
12413         * elf/dl-open.c: Likewise.
12414         * elf/reldep3.c: Likewise.
12415         * elf/reldep.c: Likewise.
12416         * elf/sprof.c: Likewise.
12417         * iconv/iconv_charmap.c: Likewise.
12418         * iconv/skeleton.c: Likewise.
12419         * iconv/strtab.c: Likewise.
12420         * io/lockf64.c: Likewise.
12421         * libio/libioP.h: Likewise.
12422         * resolv/gai_notify.c: Likewise.
12423         * resolv/ns_name.c: Likewise.
12424         * resolv/ns_samedomain.c: Likewise.
12425         * resolv/res_send.c: Likewise.
12426         * stdlib/random.c: Likewise.
12427         * sunrpc/rpc/xdr.h: Likewise.
12428         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
12429         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12430         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12431         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12432         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12433         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12434         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12435         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12436         * sysdeps/mach/hurd/check_fds.c: Likewise.
12437         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
12438         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
12439         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
12440         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
12441         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
12442         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
12443         * sysdeps/pthread/aio_notify.c: Likewise.
12444         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
12445         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
12446         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
12447         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
12448         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
12449
12450 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12451
12452         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
12453         version if bit_Slow_SSE4_2 is set.
12454         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12455         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12456
12457 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12458
12459         [BZ #15867]
12460         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
12461         trampoline stack frame information.
12462         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
12463         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
12464         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
12465         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
12466         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
12467         * sysdeps/unix/sysv/linux/powerpc/init-first.c
12468         (_libc_vdso_platform_setup): Initialize the signal trampolines.
12469         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
12470         sa_flags value.
12471         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
12472         interrupting a syscall and set with option SA_SIGINFO.
12473
12474 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
12475
12476         [BZ #15531]
12477         * math/s_cproj.c (__cproj): Only return an infinity if one part of
12478         argument is infinite.
12479         * math/s_cprojf.c (__cprojf): Likewise.
12480         * math/s_cprojl.c (__cprojl): Likewise.
12481         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
12482         * math/libm-test.inc (cproj_test_data): Add more tests.
12483
12484         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
12485
12486         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
12487         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
12488         size.  Use __ffs to determine corresponding shift.
12489
12490 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
12491             Roland McGrath  <roland@hack.frob.com>
12492
12493         * Makefile (INSTALL): Remove trailing blank lines from output of
12494         makeinfo.
12495
12496 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12497
12498         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
12499         Align 32 bit compat elf_greg to 8 bytes.
12500
12501 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12502
12503         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
12504
12505 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12506
12507         * string/strcoll_l.c (coll_seq): New structure.
12508         (get_next_seq_cached): New function.
12509         (get_next_seq): New function.
12510         (do_compare): New function.
12511         (STRCOLL): Use GNU style definition.  Simplify implementation
12512         by using get_next_seq, get_next_seq_cached and do_compare.
12513
12514 2013-08-16  Florian Weimer  <fweimer@redhat.com>
12515
12516         [BZ #14699]
12517         CVE-2013-4237
12518         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
12519         member.
12520         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
12521         member.
12522         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
12523         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
12524         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
12525         conditional.
12526         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
12527         GETDENTS_64BIT_ALIGNED.
12528         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12529         * manual/filesys.texi (Reading/Closing Directory): Document
12530         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
12531         strongly.
12532         * manual/conf.texi (Limits for Files): Add portability note to
12533         NAME_MAX, PATH_MAX.
12534         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
12535
12536 2013-08-13  Andreas Schwab  <schwab@suse.de>
12537
12538         [BZ #15749]
12539         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
12540         of fabs.
12541         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
12542         LDBL_MAX_EXP >= 16384]: Add tests for it.
12543
12544 2013-08-12  David S. Miller  <davem@davemloft.net>
12545
12546         * version.h (RELEASE): Set to "development".
12547         (VERSION): Set to "2.18.90".
12548         * NEWS: Add 2.19 section.
12549
12550 2013-08-03  David S. Miller  <davem@davemloft.net>
12551
12552         * po/ko.po: Update Korean translation from translation project.
12553
12554 2013-08-01  David S. Miller  <davem@davemloft.net>
12555
12556         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
12557         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
12558         Bilka.
12559
12560 2013-07-30  David S. Miller  <davem@davemloft.net>
12561
12562         * po/fr.po: Update French translation from translation project.
12563
12564 2013-07-28  David S. Miller  <davem@davemloft.net>
12565
12566         * po/cs.po: Update Czech translation from translation project.
12567
12568         * po/sv.po: Update Swedish translation from translation project.
12569
12570 2013-07-27  David S. Miller  <davem@davemloft.net>
12571
12572         * po/eo.po: Update Esperanto translation from translation project.
12573
12574         * po/vi.po: Update Vietnamese translation from translation project.
12575
12576         * po/de.po: Update German translation from translation project.
12577
12578 2013-07-26  David S. Miller  <davem@davemloft.net>
12579
12580         * po/bg.po: Update Bulgarian translation from translation project.
12581
12582         * po/nl.po: Update Dutch translation from translation project.
12583         * po/pl.po: Update Polish translation from translation project.
12584         * po/ru.po: Update Russian translation from translation project.
12585
12586 2013-07-24  David S. Miller  <davem@davemloft.net>
12587
12588         * po/libc.pot: Update.
12589
12590 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12591
12592         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
12593         variable page size.
12594         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
12595         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
12596         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
12597
12598 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12599
12600         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
12601
12602 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12603             Andreas Schwab  <schwab@suse.de>
12604             Roland McGrath  <roland@hack.frob.com>
12605             Joseph Myers  <joseph@codesourcery.com>
12606             Carlos O'Donell  <carlos@redhat.com>
12607
12608         [BZ #15755]
12609         * config.h.in: Define HAVE_PT_CHOWN.
12610         * config.make.in (build-pt-chown): New variable.
12611         * configure.in (--enable-pt_chown): New configure option.
12612         * configure: Regenerate.
12613         * login/Makefile: Include Makeconfig.  Build pt_chown only if
12614         build-pt-chown is enabled.
12615         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
12616         pt_chown to fix pty ownership.
12617         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
12618         CLOSE_ALL_FDS.
12619         * manual/install.texi (Configuring and compiling): Mention
12620         --enable-pt_chown. Add @findex for grantpt.
12621         * INSTALL: Regenerate.
12622
12623 2013-07-20  David S. Miller  <davem@davemloft.net>
12624
12625         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
12626         difference between 32-bit and 64-bit.
12627
12628 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
12629
12630         [BZ #15711]
12631         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
12632         Avoid system header dependency with -ffreestanding.
12633         ($(objpfx)bits/syscall%d): Likewise.
12634
12635 2013-07-13  David S. Miller  <davem@davemloft.net>
12636
12637         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
12638         underflows from atanl/atan2l due to bug 15319.
12639         (casinh_test_data): Likewise.
12640
12641 2013-07-07  David S. Miller  <davem@davemloft.net>
12642
12643         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
12644
12645 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
12646
12647         * sysdeps/i386/fpu/libm-test-ulps: Update.
12648         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12649
12650 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12651
12652         * configure.in (--enable-lock-elision): Fix message text.
12653         * INSTALL: Regenerate.
12654         * configure: Regenerate.
12655
12656 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12657
12658         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12659
12660 2013-07-03  Andreas Jaeger  <aj@suse.de>
12661
12662         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
12663         define.
12664         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
12665         (ptrace_peeksiginfo_args): Add.
12666         (__ptrace_peeksiginfo_flags): Add.
12667         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12668         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12669         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12670
12671 2013-07-03  Allan McRae  <allan@archlinux.org>
12672
12673         * sysdeps/i386/fpu/libm-test-ulps: Update.
12674
12675 2013-07-02  David S. Miller  <davem@davemloft.net>
12676
12677         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12678
12679 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
12680
12681         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12682
12683 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
12684
12685         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
12686         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12687
12688 2013-07-02  Andi Kleen <ak@linux.intel.com>
12689
12690         * config.h.in (ENABLE_LOCK_ELISION): Add.
12691         * configure.in (--enable-lock-elision): Add option.
12692         * manual/install.texi: Document --enable lock elision.
12693         * configure: Regenerate
12694         * INSTALL: Regenerate.
12695
12696 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
12697
12698         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
12699         SSE4.2 strcasecmp for libc.a.
12700         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
12701
12702 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
12703
12704         [BZ #13304]
12705         * soft-fp/op-common.h (_FP_FMA): New macro.
12706         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
12707         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
12708         (_FP_MUL_MEAT_1_imm): ... here.
12709         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
12710         (_FP_MUL_MEAT_1_wide): ... here.
12711         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
12712         (_FP_MUL_MEAT_1_hard): ... here.
12713         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
12714         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
12715         (_FP_MUL_MEAT_2_wide): ... here.
12716         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
12717         (_FP_MUL_MEAT_2_wide_3mul): ... here.
12718         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
12719         (_FP_MUL_MEAT_2_gmp): ... here.
12720         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
12721         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
12722         (_FP_MUL_MEAT_4_wide): ... here.
12723         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
12724         (_FP_MUL_MEAT_4_gmp): ... here.
12725         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
12726         (_FP_WFRACBITS_DW_S): Likewise.
12727         (_FP_WFRACXBITS_DW_S): Likewise.
12728         (_FP_HIGHBIT_DW_S): Likewise.
12729         (FP_FMA_S): Likewise.
12730         (_FP_FRAC_HIGH_DW_S): Likewise.
12731         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
12732         (_FP_WFRACBITS_DW_D): Likewise.
12733         (_FP_WFRACXBITS_DW_D): Likewise.
12734         (_FP_HIGHBIT_DW_D): Likewise.
12735         (FP_FMA_D): Likewise.
12736         (_FP_FRAC_HIGH_DW_D): Likewise.
12737         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
12738         (_FP_WFRACBITS_DW_E): Likewise.
12739         (_FP_WFRACXBITS_DW_E): Likewise.
12740         (_FP_HIGHBIT_DW_E): Likewise.
12741         (FP_FMA_E): Likewise.
12742         (_FP_FRAC_HIGH_DW_E): Likewise.
12743         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
12744         (_FP_WFRACBITS_DW_Q): Likewise.
12745         (_FP_WFRACXBITS_DW_Q): Likewise.
12746         (_FP_HIGHBIT_DW_Q): Likewise.
12747         (FP_FMA_Q): Likewise.
12748         (_FP_FRAC_HIGH_DW_Q): Likewise.
12749         * soft-fp/fmasf4.c: New file.
12750         * soft-fp/fmadf4.c: Likewise.
12751         * soft-fp/fmatf4.c: Likewise.
12752
12753 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12754
12755         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
12756         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
12757         Silvermont.
12758         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
12759         macro.
12760         (index_Slow_SSE4_2): Likewise.
12761         (index_Prefer_PMINUB_for_stringop): Likewise.
12762         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
12763         bit_Slow_SSE4_2 is set.
12764         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
12765         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
12766
12767 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
12768
12769         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
12770         rtld_global._dl_hwcap2.
12771         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
12772         POWER8.
12773         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
12774         POWER8 feature descriptions defined in _dl_hwcap2.
12775         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
12776         string handling for POWER8 feature bits.
12777         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
12778         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
12779         _dl_powerpc_cap_flags.
12780         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
12781         * sysdeps/powerpc/rtld-global-offsets.sym
12782         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
12783         _dl_hwcap2 in the rtld_global_ro structure.
12784
12785 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
12786
12787         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
12788         hardware capabilities in support of AT_HWCAP2.
12789         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
12790         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
12791         GLRO(dl_hwcap2).
12792         (_dl_show_auxv): Add support for calling _dl_procinfo to display
12793         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
12794         explicitly the unknown a_type display mechanism is used.
12795         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
12796         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
12797         struct member.
12798         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
12799         to macro prototype for AT_HWCAP2 support.
12800         * sysdeps/i386/dl-procinfo.h: Likewise.
12801         * sysdeps/s390/dl-procinfo.h: Likewise.
12802         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
12803         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
12804         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
12805         return -1 for unknown a_type display fallback.
12806         * sysdeps/sparc/dl-procinfo.h: Likewise.
12807         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
12808         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
12809
12810 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
12811
12812         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
12813         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
12814
12815 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
12816
12817         [BZ #12492]
12818         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
12819         mprotect making __stack_prot writable.
12820
12821 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
12822             Joseph Myers  <joseph@codesourcery.com>
12823
12824         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
12825         as being properly aligned.
12826
12827 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
12828
12829         * dlfcn/modstatic5.c: New file.
12830         * dlfcn/tststatic5.c: New file.
12831         * dlfcn/Makefile (tests): Add tststatic5.
12832         (tests-static): Likewise.
12833         (modules-names): Add modstatic5.
12834         (tststatic5-ENV): New variable.
12835         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
12836
12837         [BZ #15022]
12838         * elf/dl-support.c (_dl_main_map): New variable.
12839         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
12840         (_dl_nns, _dl_load_adds): Set to 1.
12841         (_dl_initial_searchlist): Refer to _dl_main_map.
12842         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
12843         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
12844         call to _dl_get_origin.
12845         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
12846         around call_map.
12847         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
12848         * dlfcn/modstatic3.c: New file.
12849         * dlfcn/tststatic3.c: New file.
12850         * dlfcn/tststatic4.c: New file.
12851         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
12852         (tests-static): Likewise.
12853         (modules-names): Add modstatic3.
12854         (tststatic3-ENV, tststatic4-ENV): New variables.
12855         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
12856         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
12857
12858 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
12859
12860         * configure.in (CC): Require GCC version 4.4 or later.
12861         * configure: Regenerated.
12862         * manual/install.texi (Tools for Compilation): Update GCC version
12863         requirement.
12864         * INSTALL: Regenerated.
12865
12866 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12867
12868         [BZ #15674]
12869         * string/test-memcmp.c (check2): New.
12870         (main): Call check2.
12871
12872         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
12873
12874 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
12875
12876         [BZ #15022]
12877         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
12878         over to...
12879         (dl_open_worker) [!SHARED]: ... here.
12880
12881 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
12882
12883         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
12884
12885 2013-06-25  Richard Henderson  <rth@redhat.com>
12886
12887         * locale/programs/locarchive.c: Include <libc-internal.h>
12888
12889 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
12890
12891         * manual/texinfo.tex: Update to version 2013-06-21.17, with
12892         trailing whitespace removed.
12893
12894 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
12895
12896         [BZ #10283]
12897         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
12898         * locale/programs/locarchive.c: Include libc-mmap.h.
12899         (prepare_address_space): Take two new outputs (the mmap base and len).
12900         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
12901         values.
12902         (create_archive): Declare new mmap base and len values for
12903         prepare_address_space, and store the result in ah.
12904         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
12905         (enlarge_archive): If ah->mmap_base is not NULL, use that and
12906         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
12907         Declare new mmap base and len values for
12908         prepare_address_space, and store the result in new_ah.
12909         (open_archive): Declare new mmap base and len values for
12910         prepare_address_space, and store the result in ah.
12911         (close_archive): If ah->mmap_base is not NULL, use that and
12912         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
12913         * sysdeps/generic/libc-mmap.h: New file.
12914
12915 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
12916
12917         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
12918         (ALIGN_UP): Likewise.
12919         (PTR_ALIGN_DOWN): Likewise.
12920         (PTR_ALIGN_UP): Likewise.
12921
12922 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
12923
12924         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
12925         entry mapped to PPC_PLATFORM_POWER8.
12926         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
12927         POWER8.
12928         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
12929         (_dl_string_platform): Add case for exporting platform position for
12930         POWER8.
12931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
12932         search path to sysdeps/powerpc/powerpc32/power8 directory.
12933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
12934         search path to sysdeps/powerpc/powerpc64/power8 directory.
12935         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
12936         power7 directories.
12937         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
12938         power7 directories.
12939
12940 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
12941
12942         * INSTALL: Regenerate.
12943
12944         * nscd/connections.c (nscd_init): Fix comment.
12945
12946 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
12947
12948         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
12949
12950         [BZ #15667]
12951         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
12952         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
12953
12954 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
12955
12956         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
12957         DL_DST_REQ_STATIC.
12958         (DL_DST_REQ_STATIC): Remove macro.
12959
12960 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
12961
12962         [BZ #7006]
12963         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
12964         with a shift of 0 bits.
12965
12966 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
12967
12968         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
12969         $(tststatic-ENV).
12970
12971 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12972
12973         [BZ #15655]
12974         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
12975
12976 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12977
12978         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
12979         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
12980         accepts -fno-tree-loop-distribute-patterns.
12981         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
12982         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
12983         recursive call.
12984         * string/memset.c (memset): Likewise.
12985         * string/test-memmove.c (simple_memmove): Disable loop transformation
12986         to library calls.
12987         * string/test-memset.c (simple_memset): Likewise.
12988         * benchtests/bench-memmove.c (simple_memmove): Likewise.
12989         * benchtests/bench-memset.c (simple_memset): Likewise.
12990         * configure: Regenerated.
12991
12992 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
12993
12994         * math/test-misc.c (main): Ignore fesetround failure when failures
12995         of subsequent rounding tests would be ignored.
12996
12997         [BZ #15654]
12998         * math/fedisblxcpt.c (fedisableexcept): Return 0.
12999         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
13000         * math/fegetenv.c (__fegetenv): Return 0.
13001         * math/fegetexcept.c (fegetexcept): Return 0.
13002         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
13003         FE_TONEAREST.
13004         * math/feholdexcpt.c (feholdexcept): Return 0.
13005         * math/fesetenv.c (__fesetenv): Return 0.
13006         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
13007         argument FE_TONEAREST.
13008         * math/feupdateenv.c (__feupdateenv): Return 0.
13009         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
13010
13011 2013-06-18  Roland McGrath  <roland@hack.frob.com>
13012
13013         * elf/rtld-Rules (rtld-compile-command.S): New variable.
13014         (rtld-compile-command.s, rtld-compile-command.c): New variables.
13015         ($(objpfx)rtld-%.os rules): Use them.
13016
13017 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13018
13019         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
13020         fields.
13021
13022 2013-06-17  Roland McGrath  <roland@hack.frob.com>
13023
13024         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
13025         length of target pattern, then descending length of dependency pattern.
13026         * configure.in (AWK): Require gawk 3.1.2 or newer.
13027         * manual/install.texi (Tools for Compilation): Say that we do.
13028         * configure: Regenerated.
13029
13030         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
13031         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
13032         * scripts/sysd-rules.awk: ... this new script.
13033         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
13034         than a glob-style pattern.
13035
13036 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
13037
13038         * math/test-misc.c (main): Do not treat incorrectly rounded
13039         conversions as failure unless ROUNDING_TESTS passes.
13040
13041 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
13042
13043         [BZ #15631]
13044         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
13045         restore exception state around main square root computation, then
13046         check for inexactness explicitly.
13047
13048         * math/libm-test.inc (fma_test_data): Add another test.
13049
13050 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
13051
13052         * manual/threads.texi (Non-POSIX Extensions): New document
13053         node.  Document pthread_getattr_default_np and
13054         pthread_setattr_default_np.
13055
13056         * Versions.def (libpthread): Add GLIBC_2.18.
13057         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
13058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
13059         Likewise.
13060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
13061         Likewise.
13062         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13063         Likewise.
13064         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13065         Likewise.
13066         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
13067         Likewise.
13068         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
13069         Likewise.
13070         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
13071         Likewise.
13072         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
13073         Likewise.
13074         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13075         Likewise.
13076
13077 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13078
13079         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13080         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
13081
13082 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13083             H.J. Lu  <hjl.tools@gmail.com>
13084
13085         [BZ #15627]
13086         * sysdeps/x86_64/rtld-memset.c: Remove file.
13087         * sysdeps/x86_64/rtld-memset.S: New file.
13088
13089 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
13090
13091         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
13092         (test_in_one_mode): Take arguments for whether the rounding mode
13093         is supported for each floating-point type.
13094         (do_test): Pass new arguments to test_in_one_mode using
13095         ROUNDING_TESTS.
13096
13097 2013-06-13  Roland McGrath  <roland@hack.frob.com>
13098
13099         * posix/tst-waitid.c (do_test): Distinguish different instances of
13100         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
13101         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
13102         before entering the kernel for waitpid.
13103
13104 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13105
13106         * NEWS: Fix note on clock function precision.  Text by Roland
13107         McGrath.
13108
13109 2013-06-13  Roland McGrath  <roland@hack.frob.com>
13110
13111         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
13112         it into place only when and if the sanity check passes.
13113
13114 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
13115
13116         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
13117         output for whether conversion result is exact.  Take argument
13118         indicating whether type is IBM long double.
13119         (round_for_all): Change need_exact field to ibm_ld.
13120         * stdlib/tst-strtod-round.c (struct exactness): New type.
13121         (struct test): Change bool ld_ok field to struct exactness exact.
13122         (TEST): Update all definitions for change to field.
13123         (tests): Regenerate array contents.
13124         (test_in_one_mode): Take pointer to new field instead of old ld_ok
13125         field value.  Check for IBM long double here.
13126         (do_test): Update calls to test_in_one_mode.
13127
13128 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13129
13130         [BZ #12515]
13131         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
13132         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
13133
13134 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13135
13136         [BZ #15605]
13137         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
13138         generated by the compiler on loop optimizations.
13139         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
13140         general definitions.
13141
13142 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
13143
13144         * math/bug-nextafter.c: Include <math-tests.h>.
13145         (main): Only test for exceptions if EXCEPTION_TESTS is true for
13146         the relevant type.
13147         * math/bug-nexttoward.c: Include <math-tests.h>.
13148         (main): Only test for exceptions if EXCEPTION_TESTS is true for
13149         the relevant type.
13150         * math/test-misc.c: Include <math-tests.h>.
13151         (main): Only test for exceptions if EXCEPTION_TESTS is true for
13152         the relevant type.
13153
13154 2013-06-12  Andreas Jaeger  <aj@suse.de>
13155
13156         * po/ia.po: Update Interlingua translation from translation
13157         project.
13158
13159 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
13160
13161         * include/fenv.h: Include stdbool.h.
13162         (struct rm_ctx): New structure.
13163         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
13164         Define macro.
13165         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
13166         (SET_RESTORE_ROUNDF): Likewise.
13167         (SET_RESTORE_ROUNDL): Likewise.
13168         (SET_RESTORE_ROUND_NOEX): Likewise.
13169         (SET_RESTORE_ROUND_NOEXF): Likewise.
13170         (SET_RESTORE_ROUND_NOEXL): Likewise.
13171         (SET_RESTORE_ROUND_53BIT): Likewise.
13172         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
13173         (libc_feresetround_noexf_ctx): Likewise.
13174         (libc_feresetround_noexl_ctx): Likewise.
13175         (libc_feholdsetround_53bit_ctx): Likewise.
13176         (libc_feresetround_53bit_ctx): Likewise.
13177         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
13178         (libc_feholdexcept_setround_sse_ctx): New function.
13179         (libc_fesetenv_sse_ctx): Likewise.
13180         (libc_feupdateenv_sse_ctx): Likewise.
13181         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
13182         (libc_feholdexcept_setround_387_ctx): Likewise.
13183         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
13184         (libc_feholdsetround_387_prec_ctx): Likewise.
13185         (libc_feholdsetround_387_ctx): Likewise.
13186         (libc_feholdsetround_387_53bit_ctx): Likewise.
13187         (libc_feholdsetround_sse_ctx): Likewise.
13188         (libc_feresetround_sse_ctx): Likewise.
13189         (libc_feresetround_387_ctx): Likewise.
13190         (libc_feupdateenv_387_ctx): Likewise.
13191         (libc_feholdexcept_setroundf_ctx): Define macro.
13192         (libc_fesetenvf_ctx): Likewise.
13193         (libc_feupdateenvf_ctx): Likewise.
13194         (libc_feholdsetroundf_ctx): Likewise.
13195         (libc_feresetroundf_ctx): Likewise.
13196         (libc_feholdexcept_setround_ctx): Likewise.
13197         (libc_fesetenv_ctx): Likewise.
13198         (libc_feupdateenv_ctx): Likewise.
13199         (libc_feholdsetround_ctx): Likewise.
13200         (libc_feresetround_ctx): Likewise.
13201         (libc_feholdexcept_setroundl_ctx): Likewise.
13202         (libc_feupdateenvl_ctx): Likewise.
13203         (libc_feholdsetroundl_ctx): Likewise.
13204         (libc_feresetroundl_ctx): Likewise.
13205         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
13206         (libc_feresetround_53bit_ctx): Likewise.
13207
13208 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13209
13210         * locale/iso-639.def: Convert to UTF-8.
13211
13212 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
13213
13214         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
13215         (EXCEPTION_TESTS_double): Likewise.
13216         (EXCEPTION_TESTS_long_double): Likewise.
13217         (EXCEPTION_TESTS): Likewise.
13218         * math/libm-test.inc (test_exceptions): Only test exceptions if
13219         EXCEPTION_TESTS (FLOAT).
13220
13221 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13222
13223         * benchtests/Makefile (string-bench): Add strcpy_chk and
13224         stpcpy_chk.
13225         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
13226         * benchtests/bench-stpcpy_chk.c: New file.
13227         * benchtests/bench-strcpy_chk-ifunc.c: New file.
13228         * benchtests/bench-strcpy_chk.c: New file.
13229         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
13230         code.
13231         (do_test): Likewise.
13232
13233 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13234
13235         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
13236         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
13237         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
13238         with tabs where appropriate.
13239         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
13240         dl-procinfo.h.
13241         [PPC_PLATFORM_PPC440]: Likewise.
13242         [PPC_PLATFORM_PPC464]: Likewise.
13243         [PPC_PLATFORM_PPC476]: Likewise.
13244         (_dl_string_platform): Add support for detecting ppc405, ppc440,
13245         ppc464, and ppc476 platform strings merging from ports/
13246         dl-procinfo.h.
13247
13248 2013-06-11  Andreas Schwab  <schwab@suse.de>
13249
13250         [BZ #14991]
13251         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
13252         (from_ucs4_idx): Regenerate.
13253         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
13254         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
13255         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
13256         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
13257         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
13258         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
13259         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
13260         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
13261         from FROM_LOOP and TO_LOOP specific macros.
13262         (BODY): Handle combining characters.
13263         * iconvdata/BIG5HKSCS.irreversible: Update.
13264         * iconvdata/BIG5HKSCS.precomposed: New file.
13265         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
13266         characters.
13267         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
13268
13269 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13270
13271         * include/sys/time.h: Fix indentation and add copyright header.
13272
13273         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
13274         (do_test): Likewise.
13275         * string/test-memchr.c (do_one_test): Likewise.
13276         (do_test): Likewise.
13277         * string/test-memcmp.c (do_one_test): Likewise.
13278         (do_test): Likewise.
13279         * string/test-memcpy.c (do_one_test): Likewise.
13280         (do_test): Likewise.
13281         * string/test-memmem.c (do_one_test): Likewise.
13282         (do_test): Likewise.
13283         (do_random_tests): Likewise.
13284         * string/test-memmove.c (do_one_test): Likewise.
13285         (do_test): Likewise.
13286         * string/test-memset.c (do_one_test): Likewise.
13287         (do_test): Likewise.
13288         * string/test-rawmemchr.c (do_one_test): Likewise.
13289         (do_test): Likewise.
13290         * string/test-strcasecmp.c (do_one_test): Likewise.
13291         (do_test): Likewise.
13292         * string/test-strcasestr.c (do_one_test): Likewise.
13293         (do_test): Likewise.
13294         * string/test-strcat.c (do_one_test): Likewise.
13295         (do_test): Likewise.
13296         * string/test-strchr.c (do_one_test): Likewise.
13297         (do_test): Likewise.
13298         * string/test-strcmp.c (do_one_test): Likewise.
13299         (do_test): Likewise.
13300         * string/test-strcpy.c (do_one_test): Likewise.
13301         (do_test): Likewise.
13302         * string/test-string.h: Likewise.
13303         (test_init): Likewise.
13304         * string/test-strlen.c (do_one_test): Likewise.
13305         (do_test): Likewise.
13306         * string/test-strncasecmp.c (do_one_test): Likewise.
13307         (do_test): Likewise.
13308         * string/test-strncat.c (do_one_test): Likewise.
13309         (do_test): Likewise.
13310         * string/test-strncmp.c (do_one_test): Likewise.
13311         (do_test_limit): Likewise.
13312         (do_test): Likewise.
13313         * string/test-strncpy.c (do_one_test): Likewise.
13314         (do_test): Likewise.
13315         * string/test-strnlen.c (do_one_test): Likewise.
13316         (do_test): Likewise.
13317         * string/test-strpbrk.c (do_one_test): Likewise.
13318         (do_test): Likewise.
13319         * string/test-strrchr.c (do_one_test): Likewise.
13320         (do_test): Likewise.
13321         * string/test-strspn.c (do_one_test): Likewise.
13322         (do_test): Likewise.
13323         * string/test-strstr.c (do_one_test): Likewise.
13324         (do_test): Likewise.
13325
13326         * benchtests/Makefile (string-bench): Add string benchmarks.
13327         * benchtests/bench-bcopy-ifunc.c: New file.
13328         * benchtests/bench-bcopy.c: New file.
13329         * benchtests/bench-bzero-ifunc.c: New file.
13330         * benchtests/bench-bzero.c: New file.
13331         * benchtests/bench-memccpy-ifunc.c: New file.
13332         * benchtests/bench-memccpy.c: New file.
13333         * benchtests/bench-memchr-ifunc.c: New file.
13334         * benchtests/bench-memchr.c: New file.
13335         * benchtests/bench-memcmp-ifunc.c: New file.
13336         * benchtests/bench-memcmp.c: New file.
13337         * benchtests/bench-memmem-ifunc.c: New file.
13338         * benchtests/bench-memmem.c: New file.
13339         * benchtests/bench-memmove-ifunc.c: New file.
13340         * benchtests/bench-memmove.c: New file.
13341         * benchtests/bench-mempcpy-ifunc.c: New file.
13342         * benchtests/bench-mempcpy.c: New file.
13343         * benchtests/bench-memset-ifunc.c: New file.
13344         * benchtests/bench-memset.c: New file.
13345         * benchtests/bench-rawmemchr-ifunc.c: New file.
13346         * benchtests/bench-rawmemchr.c: New file.
13347         * benchtests/bench-stpcpy-ifunc.c: New file.
13348         * benchtests/bench-stpcpy.c: New file.
13349         * benchtests/bench-stpncpy-ifunc.c: New file.
13350         * benchtests/bench-stpncpy.c: New file.
13351         * benchtests/bench-strcasecmp-ifunc.c: New file.
13352         * benchtests/bench-strcasecmp.c: New file.
13353         * benchtests/bench-strcasestr-ifunc.c: New file.
13354         * benchtests/bench-strcasestr.c: New file.
13355         * benchtests/bench-strcat-ifunc.c: New file.
13356         * benchtests/bench-strcat.c: New file.
13357         * benchtests/bench-strchr-ifunc.c: New file.
13358         * benchtests/bench-strchr.c: New file.
13359         * benchtests/bench-strchrnul-ifunc.c: New file.
13360         * benchtests/bench-strchrnul.c: New file.
13361         * benchtests/bench-strcmp-ifunc.c: New file.
13362         * benchtests/bench-strcmp.c: New file.
13363         * benchtests/bench-strcpy-ifunc.c: New file.
13364         * benchtests/bench-strcpy.c: New file.
13365         * benchtests/bench-strcspn-ifunc.c: New file.
13366         * benchtests/bench-strcspn.c: New file.
13367         * benchtests/bench-strlen-ifunc.c: New file.
13368         * benchtests/bench-strlen.c: New file.
13369         * benchtests/bench-strncasecmp-ifunc.c: New file.
13370         * benchtests/bench-strncasecmp.c: New file.
13371         * benchtests/bench-strncat-ifunc.c: New file.
13372         * benchtests/bench-strncat.c: New file.
13373         * benchtests/bench-strncmp-ifunc.c: New file.
13374         * benchtests/bench-strncmp.c: New file.
13375         * benchtests/bench-strncpy-ifunc.c: New file.
13376         * benchtests/bench-strncpy.c: New file.
13377         * benchtests/bench-strnlen-ifunc.c: New file.
13378         * benchtests/bench-strnlen.c: New file.
13379         * benchtests/bench-strpbrk-ifunc.c: New file.
13380         * benchtests/bench-strpbrk.c: New file.
13381         * benchtests/bench-strrchr-ifunc.c: New file.
13382         * benchtests/bench-strrchr.c: New file.
13383         * benchtests/bench-strspn-ifunc.c: New file.
13384         * benchtests/bench-strspn.c: New file.
13385         * benchtests/bench-strstr-ifunc.c: New file.
13386         * benchtests/bench-strstr.c: New file.
13387
13388         * benchtests/Makefile: Disable parallel execution of targets.
13389         (string-bench): Add memcpy.
13390         (benchset): New variable to store a list of benchmark sets.
13391         (bench-func): Renamed from bench.
13392         (bench-set): New target.
13393         (bench): Depend on bench-func and bench-set.
13394         * benchtests/README: Add section on benchmark sets.
13395         * benchtests/bench-memcpy-ifunc.c: New file.
13396         * benchtests/bench-memcpy.c: New file.
13397         * benchtests/bench-string.h: New file.
13398
13399 2013-06-11  Andreas Schwab  <schwab@suse.de>
13400
13401         [BZ #15577]
13402         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
13403         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
13404         values in the triple.
13405         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
13406         terminator in the group key.
13407
13408 2013-06-11  Andreas Jaeger  <aj@suse.de>
13409
13410         * po/zh_TW.po: Update Chinese (traditional) translation from
13411         translation project.
13412
13413 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13414
13415         * include/time.h (__clock_gettime): Add libc_hidden_proto.
13416         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
13417         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
13418         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
13419         (clock_getcpuclockid): Likewise.
13420         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
13421         Add weak_alias and libc_hidden_def.
13422         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
13423         * rt/clock_gettime.c (clock_gettime): Rename to
13424         __clock_gettime.  Add weak_alias and libc_hidden_def.
13425         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
13426         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
13427         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
13428         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
13429         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
13430         Likewise.
13431         * rt/clock_settime.c (clock_settime): Rename to
13432         __clock_settime.  Add weak_alias and libc_hidden_def.
13433         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
13434
13435 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
13436
13437         * mach/err_boot.sub: Remove trailing whitespace.
13438         * mach/err_ipc.sub: Likewise.
13439         * mach/err_mach.sub: Likewise.
13440
13441         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
13442         (ROUNDING_TESTS_double): Likewise.
13443         (ROUNDING_TESTS_long_double): Likewise.
13444         (ROUNDING_TESTS): Likewise.
13445         * math/libm-test.inc: Include <math-tests.h>.
13446         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
13447         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
13448         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13449         (IF_ROUND_INIT_FE_UPWARD): Likewise.
13450
13451 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
13452
13453         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
13454         of assigning.
13455
13456 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
13457
13458         * sysdeps/gnu/errlist.awk: Do not generate space at end of
13459         otherwise empty TRANS lines.
13460         * sysdeps/gnu/errlist.c: Regenerated.
13461
13462         * catgets/gencat.c (error_print): Use (void) in function
13463         definition.
13464         * crypt/crypt_util.c (__init_des): Likewise.
13465         * crypt/speeds.c (Stop): Likewise.
13466         (main): Likewise.
13467         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
13468         * inet/ruserpass.c (token): Likewise.
13469         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
13470         * intl/localealias.c (extend_alias_table): Likewise.
13471         * intl/plural-exp.c (init_germanic_plural): Likewise.
13472         * libio/fcloseall.c (__fcloseall): Likewise.
13473         * libio/genops.c (_IO_flush_all): Likewise.
13474         (_IO_flush_all_linebuffered): Likewise.
13475         (_IO_cleanup): Likewise.
13476         (_IO_iter_begin): Likewise.
13477         (_IO_iter_end): Likewise.
13478         (_IO_list_lock): Likewise.
13479         (_IO_list_unlock): Likewise.
13480         (_IO_list_resetlock): Likewise.
13481         * libio/getchar.c (getchar): Likewise.
13482         * libio/getchar_u.c (getchar_unlocked): Likewise.
13483         * libio/getwchar.c (getwchar): Likewise.
13484         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
13485         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
13486         * login/getpt.c (__getpt): Likewise.
13487         * login/tst-utmp.c (main): Likewise.
13488         * malloc/hooks.c (__malloc_check_init): Likewise.
13489         * malloc/malloc.c (__malloc_stats): Likewise.
13490         * malloc/mtrace.c (tr_break): Likewise.
13491         (mtrace): Likewise.
13492         (muntrace): Likewise.
13493         * misc/fstab.c (endfsent): Likewise.
13494         * misc/getclktck.c (__getclktck): Likewise.
13495         * misc/getdtsz.c (__getdtablesize): Likewise.
13496         * misc/gethostid.c (gethostid): Likewise.
13497         * misc/getpagesize.c (__getpagesize): Likewise.
13498         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
13499         (__get_nprocs): Likewise.
13500         (__get_phys_pages): Likewise.
13501         (__get_avphys_pages): Likewise.
13502         * misc/getttyent.c (getttyent): Likewise.
13503         (setttyent): Likewise.
13504         (endttyent): Likewise.
13505         * misc/getusershell.c (getusershell): Likewise.
13506         (endusershell): Likewise.
13507         (setusershell): Likewise.
13508         (initshells): Likewise.
13509         * misc/hsearch.c (__hdestroy): Likewise.
13510         * misc/sync.c (sync): Likewise.
13511         * misc/syslog.c (closelog_internal): Likewise.
13512         (closelog): Likewise.
13513         * misc/ttyslot.c (ttyslot): Likewise.
13514         * misc/vhangup.c (vhangup): Likewise.
13515         * posix/fork.c (__fork): Likewise.
13516         * posix/getegid.c (__getegid): Likewise.
13517         * posix/geteuid.c (__geteuid): Likewise.
13518         * posix/getgid.c (__getgid): Likewise.
13519         * posix/getpid.c (__getpid): Likewise.
13520         * posix/getppid.c (__getppid): Likewise.
13521         * posix/getuid.c (__getuid): Likewise.
13522         * posix/pause.c (pause): Likewise.
13523         * posix/setpgrp.c (setpgrp): Likewise.
13524         * posix/setsid.c (__setsid): Likewise.
13525         * posix/test-vfork.c (noop): Likewise.
13526         * resolv/gethnamaddr.c (_endhtent): Likewise.
13527         (_gethtent): Likewise.
13528         (ht_endhostent): Likewise.
13529         (gethostent): Likewise.
13530         (dns_service): Likewise.
13531         * stdlib/drand48.c (drand48): Likewise.
13532         * stdlib/lrand48.c (lrand48): Likewise.
13533         * stdlib/mrand48.c (mrand48): Likewise.
13534         * stdlib/rand.c (rand): Likewise.
13535         * stdlib/random.c (__random): Likewise.
13536         * stdlib/setenv.c (clearenv): Likewise.
13537         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
13538         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
13539         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
13540         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
13541         (__get_nprocs): Likewise.
13542         (__get_phys_pages): Likewise.
13543         (__get_avphys_pages): Likewise.
13544         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
13545         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
13546         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
13547         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
13548         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
13549         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
13550         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
13551         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
13552         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
13553         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
13554         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
13555         * sysdeps/mach/hurd/sync.c (sync): Likewise.
13556         * sysdeps/posix/clock.c (clock): Likewise.
13557         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
13558         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
13559         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
13560         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
13561         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
13562         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
13563         (__get_nprocs_conf): Likewise.
13564         (__get_phys_pages): Likewise.
13565         (__get_avphys_pages): Likewise.
13566         * time/clock.c (clock): Likewise.
13567         * time/tzset.c (__tzname_max): Likewise.
13568
13569 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
13570
13571         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
13572         (__bswap_32): Do not use "register".
13573         * crypt/crypt.c (_ufc_doit_r): Likewise.
13574         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
13575         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
13576         * gmon/gmon.c (__monstartup): Likewise.
13577         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
13578         * hurd/hurdmalloc.c (more_memory): Likewise.
13579         (malloc): Likewise.
13580         (free): Likewise.
13581         (realloc): Likewise.
13582         (malloc_fork_prepare): Likewise.
13583         (malloc_fork_parent): Likewise.
13584         (malloc_fork_child): Likewise.
13585         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
13586         (_svcauth_des): Likewise.
13587         * inet/inet_lnaof.c (inet_lnaof): Likewise.
13588         * inet/inet_net.c (inet_network): Likewise.
13589         * inet/inet_netof.c (inet_netof): Likewise.
13590         * inet/rcmd.c (__validuser2_sa): Likewise.
13591         * io/fts.c (fts_open): Likewise.
13592         (fts_load): Likewise.
13593         (fts_close): Likewise.
13594         (fts_read): Likewise.
13595         (fts_children): Likewise.
13596         (fts_build): Likewise.
13597         (fts_stat): Likewise.
13598         (fts_sort): Likewise.
13599         (fts_alloc): Likewise.
13600         (fts_lfree): Likewise.
13601         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
13602         (_IO_file_xsgetn): Likewise.
13603         (_IO_file_xsgetn_mmap): Likewise.
13604         * libio/iofopncook.c (_IO_cookie_read): Likewise.
13605         (_IO_cookie_write): Likewise.
13606         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
13607         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
13608         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
13609         * malloc/obstack.c (_obstack_begin): Likewise.
13610         (_obstack_begin_1): Likewise.
13611         (_obstack_newchunk): Likewise.
13612         (_obstack_allocated_p): Likewise.
13613         (obstack_free): Likewise.
13614         (_obstack_memory_used): Likewise.
13615         * misc/getttyent.c (getttynam): Likewise.
13616         (getttyent): Likewise.
13617         (skip): Likewise.
13618         (value): Likewise.
13619         * misc/getusershell.c (initshells): Likewise.
13620         * misc/syslog.c (__vsyslog_chk): Likewise.
13621         * misc/ttyslot.c (ttyslot): Likewise.
13622         * nis/nis_hash.c (__nis_hash): Likewise.
13623         * posix/fnmatch_loop.c (FCT): Likewise.
13624         * posix/getconf.c (print_all): Likewise.
13625         (main): Likewise.
13626         * posix/getopt.c (exchange): Likewise.
13627         * posix/glob.c (globfree): Likewise.
13628         (prefix_array): Likewise.
13629         (__glob_pattern_type): Likewise.
13630         * resolv/arpa/nameser.h (NS_GET16): Likewise.
13631         (NS_GET32): Likewise.
13632         (NS_PUT16): Likewise.
13633         (NS_PUT32): Likewise.
13634         * resolv/gethnamaddr.c (getanswer): Likewise.
13635         (gethostbyname2): Likewise.
13636         (gethostbyaddr): Likewise.
13637         (_gethtent): Likewise.
13638         (_gethtbyname2): Likewise.
13639         (_gethtbyaddr): Likewise.
13640         * resolv/ns_print.c (dst_s_get_int16): Likewise.
13641         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
13642         * resolv/res_init.c (__res_vinit): Likewise.
13643         (net_mask): Likewise.
13644         * resolv/res_mkquery.c (outchar): Likewise.
13645         (PRINT): Likewise.
13646         * stdio-common/printf_fp.c (outchar): Likewise.
13647         (PRINT): Likewise.
13648         * stdio-common/printf_fphex.c (outchar): Likewise.
13649         (PRINT): Likewise.
13650         * stdio-common/printf_size.c (outchar): Likewise.
13651         (PRINT): Likewise.
13652         * stdio-common/test_rdwr.c (main): Likewise.
13653         * stdio-common/tfformat.c (matches): Likewise.
13654         * stdio-common/vfprintf.c (outchar): Likewise.
13655         (printf_unknown): Likewise.
13656         (buffered_vfprintf): Likewise.
13657         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
13658         * stdio-common/xbug.c (AppendToBuffer): Likewise.
13659         (ReadFile): Likewise.
13660         * stdlib/qsort.c (SWAP): Likewise.
13661         (_quicksort): Likewise.
13662         * stdlib/setenv.c (__add_to_environ): Likewise.
13663         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
13664         * stdlib/strtol_l.c (__strtol_l): Likewise.
13665         * stdlib/tst-strtod.c (main): Likewise.
13666         * stdlib/tst-strtol.c (main): Likewise.
13667         * stdlib/tst-strtoll.c (main): Likewise.
13668         * string/bits/string2.h (__strcmp_cc): Likewise.
13669         (__strcmp_cg): Likewise.
13670         (__strcspn_c1): Likewise.
13671         (__strcspn_c2): Likewise.
13672         (__strcspn_c3): Likewise.
13673         (__strspn_c1): Likewise.
13674         (__strspn_c2): Likewise.
13675         (__strspn_c3): Likewise.
13676         (__strsep_1c): Likewise.
13677         (__strsep_2c): Likewise.
13678         (__strsep_3c): Likewise.
13679         * string/memccpy.c (__memccpy): Likewise.
13680         * string/stpcpy.c (__stpcpy): Likewise.
13681         * string/strcmp.c (strcmp): Likewise.
13682         * string/strrchr.c (strrchr): Likewise.
13683         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
13684         Likewise.
13685         * sysdeps/mach/hurd/getcwd.c
13686         (_hurd_canonicalize_directory_name_internal): Likewise.
13687         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
13688         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
13689         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
13690         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
13691         Likewise, in both definitions.
13692         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
13693         definitions.
13694         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
13695         64] (__bswap_64): Likewise.
13696         * time/test_time.c (main): Likewise.
13697         * time/tzfile.c (__tzfile_read): Likewise.
13698         (__tzfile_compute): Likewise.
13699         * time/tzset.c (__tzset_parse_tz): Likewise.
13700         (tzset_internal): Likewise.
13701         (compute_change): Likewise.
13702         * wcsmbs/wcscat.c (__wcscat): Likewise.
13703         * wcsmbs/wcschr.c (wcschr): Likewise.
13704         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
13705         * wcsmbs/wcscspn.c (wcscspn): Likewise.
13706         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
13707         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
13708         * wcsmbs/wcsspn.c (wcsspn): Likewise.
13709         * wcsmbs/wcsstr.c (wcsstr): Likewise.
13710         * wcsmbs/wmemchr.c (wmemchr): Likewise.
13711         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13712         * wcsmbs/wmemset.c (wmemset): Likewise.
13713
13714 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
13715
13716         * scripts/config.guess: Update to version 2013-05-16.
13717         * scripts/config.sub: Update to version 2013-04-24.
13718         * scripts/install-sh: Update to version 2011-11-20.07.
13719         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
13720         * scripts/move-if-change: Update to version 2012-01-06 07:23.
13721
13722 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
13723
13724         * debug/fgetws_u_chk.c: Fix leading whitespaces.
13725         * elf/sln.c: Likewise.
13726         * hurd/hurd/ioctl.h: Likewise.
13727         * hurd/hurdmalloc.c: Likewise.
13728         * hurd/xattr.c: Likewise.
13729         * include/shlib-compat.h: Likewise.
13730         * inet/ruserpass.c: Likewise.
13731         * libio/iofgets_u.c: Likewise.
13732         * libio/iofgetws_u.c: Likewise.
13733         * locale/programs/ld-identification.c: Likewise.
13734         * locale/programs/ld-time.c: Likewise.
13735         * mach/msg-destroy.c: Likewise.
13736         * nss/nss_files/files-netgrp.c: Likewise.
13737         * resolv/res_data.c: Likewise.
13738         * soft-fp/op-1.h: Likewise.
13739         * soft-fp/op-2.h: Likewise.
13740         * soft-fp/op-4.h: Likewise.
13741         * soft-fp/op-common.h: Likewise.
13742         * stdio-common/printf_fphex.c: Likewise.
13743         * stdlib/strtod_l.c: Likewise.
13744         * sunrpc/rpc/clnt.h: Likewise.
13745         * sysdeps/generic/framestate.c: Likewise.
13746         * sysdeps/i386/bsd-_setjmp.S: Likewise.
13747         * sysdeps/i386/bsd-setjmp.S: Likewise.
13748         * sysdeps/i386/__longjmp.S: Likewise.
13749         * sysdeps/i386/setjmp.S: Likewise.
13750         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13751         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13752         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13753         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13754         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13755         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
13756         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13757         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13758         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13759         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
13760         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
13761         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13762         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13763         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13764         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13765         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13766         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
13767         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
13768         * sysdeps/ieee754/support.c: Likewise.
13769         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
13770         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
13771         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
13772         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
13773         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
13774         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
13775         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
13776         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
13777         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
13778         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
13779         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
13780         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
13781         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
13782         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
13783         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
13784         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
13785         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
13786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
13787
13788 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
13789
13790         * posix/transbug.c: Remove executable mode.
13791
13792 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
13793
13794         * crypt/speeds.c: Remove trailing whitespace.
13795         * dlfcn/default.c: Likewise.
13796         * elf/ifuncdep2.c: Likewise.
13797         * elf/ifuncmain1.c: Likewise.
13798         * elf/ifuncmain1vis.c: Likewise.
13799         * elf/testobj.h: Likewise.
13800         * elf/tst-stackguard1.c: Likewise.
13801         * gmon/sys/gmon.h: Likewise.
13802         * hurd/hurdmsg.c: Likewise.
13803         * hurd/new-fd.c: Likewise.
13804         * hurd/ports-get.c: Likewise.
13805         * iconvdata/ibm1008_420.c: Likewise.
13806         * inet/tst-getni1.c: Likewise.
13807         * inet/tst-getni2.c: Likewise.
13808         * libio/ioungetc.c: Likewise.
13809         * libio/wfiledoalloc.c: Likewise.
13810         * manual/libm-err-tab.pl: Likewise.
13811         * math/w_dremf.c: Likewise.
13812         * misc/ftruncate.c: Likewise.
13813         * posix/bug-glob2.c: Likewise.
13814         * posix/tst-pcre.c: Likewise.
13815         * posix/wait4.c: Likewise.
13816         * resolv/README: Likewise.
13817         * resolv/res_debug.h: Likewise.
13818         * resolv/tst-inet_ntop.c: Likewise.
13819         * setjmp/bug269-setjmp.c: Likewise.
13820         * soft-fp/extended.h: Likewise.
13821         * soft-fp/op-1.h: Likewise.
13822         * soft-fp/op-2.h: Likewise.
13823         * soft-fp/op-4.h: Likewise.
13824         * soft-fp/op-8.h: Likewise.
13825         * soft-fp/testit.c: Likewise.
13826         * stdio-common/bug16.c: Likewise.
13827         * stdlib/random.c: Likewise.
13828         * sunrpc/rpcsvc/rquota.x: Likewise.
13829         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
13830         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13831         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13832         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13833         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13834         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13835         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13836         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13837         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13838         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13839         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13840         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
13841         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13842         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13843         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13844         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13845         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13846         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13847         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
13848         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13849         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13850         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13851         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
13852         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
13853         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13854         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13855         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
13856         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13857         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13858         * sysdeps/ieee754/s_lib_version.c: Likewise.
13859         * sysdeps/mach/hurd/check_fds.c: Likewise.
13860         * sysdeps/mach/hurd/getsockname.c: Likewise.
13861         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
13862         * sysdeps/mach/hurd/recvfrom.c: Likewise.
13863         * sysdeps/powerpc/bits/link.h: Likewise.
13864         * sysdeps/powerpc/dl-procinfo.c: Likewise.
13865         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
13866         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
13867         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
13868         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
13869         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13870         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
13871         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
13872         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
13873         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13874         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
13875         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
13876         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
13877         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13878         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13879         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13880         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
13881         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
13882         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13883         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13884         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13885         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
13886         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13887         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
13888         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
13889         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
13890         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
13891         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13892         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13893         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
13894         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
13895         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
13896         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13897         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
13898         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
13899         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
13900         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
13901         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
13902         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
13903         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
13904         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
13905         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
13906         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
13907         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
13908         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
13909         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
13910         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
13911         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
13912         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
13913         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
13914         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13915         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13916         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13917         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13918         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
13919         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
13920         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
13921         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13922         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
13923         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
13924         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
13925         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
13926         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
13927         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13928         * sysdeps/powerpc/sysdep.h: Likewise.
13929         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
13930         * sysdeps/s390/s390-64/sub_n.S: Likewise.
13931         * sysdeps/sh/dl-trampoline.S: Likewise.
13932         * sysdeps/sh/memset.S: Likewise.
13933         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
13934         * sysdeps/sh/strlen.S: Likewise.
13935         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
13936         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
13937         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
13938         * sysdeps/sparc/sparc32/rem.S: Likewise.
13939         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
13940         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
13941         * sysdeps/sparc/sparc32/strchr.S: Likewise.
13942         * sysdeps/sparc/sparc32/udiv.S: Likewise.
13943         * sysdeps/sparc/sparc32/urem.S: Likewise.
13944         * sysdeps/sparc/sparc64/add_n.S: Likewise.
13945         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
13946         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
13947         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
13948         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
13949         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
13950         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
13951         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
13952         * sysdeps/unix/bsd/times.c: Likewise.
13953         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
13954         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
13955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
13956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
13957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
13958         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
13959         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
13960         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
13961         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
13962         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
13963         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
13964         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
13965         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
13966         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
13967         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
13968         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
13969         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
13970         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13971         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
13972         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
13973         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
13974         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
13975         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
13976         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
13977         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
13978         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
13979         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
13980         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13981         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
13982         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
13983         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
13984         * sysdeps/x86_64/strcspn.S: Likewise.
13985
13986 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13987
13988         * locale/C-translit.h: Revert #include <stdint.h> because this is a
13989         generated file.  Regenerate properly from gen-translit.pl.
13990         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
13991         locale/C-translit.h.
13992
13993 2013-06-05  Andreas Schwab  <schwab@suse.de>
13994
13995         [BZ #15100]
13996         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
13997         week as 6 instead of -1.
13998         * time/tst-strptime.c (day_tests): Add test case.
13999
14000 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
14001
14002         * sysdeps/generic/math_private.h
14003         (libc_feholdexcept_setround_53bit): Replace with
14004         libc_feholdsetround_53bit.
14005         (libc_feupdateenv_53bit): Replace with
14006         libc_feresetround_53bit.
14007         (SET_RESTORE_ROUND_53BIT): Adjust.
14008
14009 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
14010
14011         * string/test-strchrnul.c: Add copyright header.
14012
14013         * posix/tst-getaddrinfo4.c: Increase test timeout.
14014
14015 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
14016
14017         [BZ #15536]
14018         * math/libm-test.inc (MAX_EXP): Remove
14019         (MIN_EXP): Define.
14020         (ulp): Use MIN_EXP - MANT_DIG.
14021         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
14022
14023 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
14024
14025         * po/be.po: Revert last change.
14026         * po/zh_CN.po: Likewise.
14027         * po/header.pot: Likewise.
14028
14029 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
14030
14031         * Makefile ($(common-objpfx)linkobj/libc.so): Define
14032         link-libc-deps to empty as target-specific variable.
14033         * Makerules (link-libc-args): New variable.
14034         (libc-for-link): Likewise.
14035         (link-libc-deps): Likewise.
14036         (lib%.so): Depend on $(link-libc-deps).  Link with
14037         $(link-libc-args).
14038         (build-module): Link with $(link-libc-args).
14039         (build-module-asneeded): Likewise.
14040         (build-module-helper-objlist): Filter out $(link-libc-deps) from
14041         list of objects.
14042         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
14043         target-specific variable.
14044         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
14045         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
14046         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
14047         libc.
14048         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
14049         libc and ld.so.
14050         ($(objpfx)libpcprofile.so): Likewise.
14051         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
14052         libc_nonshared.a.
14053         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
14054         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
14055         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
14056         $(link-libc-deps).
14057         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
14058         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
14059         * login/Makefile ($(objpfx)libutil.so): Likewise.
14060         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
14061         * math/Makefile ($(objpfx)libm.so): Likewise.
14062         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
14063         $(objpfx)libnsl.so): Define libc-for-link as target-specific
14064         variable instead of depending directly on libc.
14065         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
14066         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
14067         $(link-libc-deps).
14068         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
14069         libc.
14070         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
14071         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
14072         ($(objpfx)libanl.so): Likewise.
14073         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
14074         ld.so.
14075         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
14076         $(link-libc-deps).
14077         * sysdeps/i386/fpu/Makefile: Remove file.
14078         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
14079         ($(objpfx)libm.so): Remove dependency on ld.so.
14080
14081 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
14082
14083         [BZ # 15553]
14084         * nis/yp_xdr.c (XDRMAXNAME): Define.
14085         (XDRMAXRECORD): Define.
14086         (xdr_domainname): Use XDRMAXNAME.
14087         (xdr_mapname): Likewise.
14088         (xdr_peername): Likewise.
14089         (xdr_keydat): Use XDRMAXRECORD.
14090         (xdr_valdat): Likewise.
14091
14092 2013-05-30  Jeff Law  <law@redhat.com>
14093
14094         [BZ #14256]
14095         * manual/errno.texi (ESTALE): Update to account for more than
14096         just NFS file systems.
14097         * sysdeps/gnu/errlist.c: Regenerated.
14098
14099 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
14100
14101         [BZ #15465]
14102         * elf/Makefile (tests): Add tst-null-argv.
14103         (modules-names):  Add tst-null-argv-lib.
14104         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
14105         (tst-null-argv-ENV): Set environment for tst-null-argv.
14106         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
14107         (RTLD_PROGNAME): New macro.
14108         * elf/tst-null-argv.c: New test case.
14109         * elf/tst-null-argv-lib.c: Library for test case.
14110         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
14111         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
14112         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
14113         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
14114         * elf/dl-init.c (call_init): Likewise.
14115         (_dl_init): Likewise.
14116         * elf/dl-load.c (print_search_path): Likewise.
14117         (_dl_map_object): Likewise.
14118         * elf/dl-lookup.c (do_lookup_x): Likewise.
14119         (add_dependency): Likewise.
14120         (_dl_lookup_symbol_x): Likewise.
14121         (_dl_debug_bindings): Likewise.
14122         * elf/dl-open.c (_dl_show_scope): Likewise.
14123         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
14124         * elf/dl-version.c (match_symbol): Likewise.
14125         (_dl_check_map_versions): Likewise.
14126         * elf/rtld.c (dl_main): Likewise.
14127         (print_unresolved): Use RTLD_PROGNAME.
14128         (print_missing_version): Likewise.
14129         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
14130         (elf_machine_rela): Likewise.
14131         * sysdeps/powerpc/powerpc32/dl-machine.c
14132         (__process_machine_rela): Likewise.
14133         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14134         Likewise.
14135         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
14136         Likewise.
14137         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
14138         Likewise.
14139         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14140         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
14141         Likewise.
14142         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
14143         Likewise.
14144         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14145
14146 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
14147
14148         * po/be.po: Add descriptive title.
14149         * po/zh_CN.po: Likewise.
14150         * po/header.pot: Likewise.
14151
14152 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
14153
14154         * locale/programs/locarchive.c (create_archive): Inlucde fname in
14155         error message.
14156         (enlarge_archive): Likewise.
14157
14158 2013-05-28  Ben North  <ben@redfrontdoor.org>
14159
14160         * manual/arith.texi (frexp): It is the magnitude of the return
14161         value which lies in [0.5, 1), not the return value itself.
14162
14163 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14164
14165         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14166
14167 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
14168
14169         * stdio-common/bug26.c (main): Correct fscanf template.
14170
14171         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
14172         declare _dl_skip_args.
14173
14174         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
14175         Don't declare.
14176
14177         * manual/platform.texi: Add missing @end deftypefun.
14178
14179 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
14180
14181         [BZ #15529]
14182         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
14183         bit of mantissa of 2^16382.
14184         * math/libm-test.inc (hypot_test_data): Add more tests.
14185
14186         * math/libm-test.inc: Add drem and pow10 to list of tested
14187         functions.
14188         (pow10_test): New function.
14189         (drem_test): Likewise.
14190         (drem_test_tonearest): Likewise.
14191         (drem_test_towardzero): Likewise.
14192         (drem_test_downward): Likewise.
14193         (drem_test_upward): Likewise.
14194         (main): Call the new functions.
14195
14196         * math/libm-test.inc (finite_test_data): Remove.
14197         (finite_test): Run tests from isfinite_test_data.
14198         (gamma_test_data): Remove.
14199         (gamma_test): Run tests from lgamma_test_data.
14200         * sysdeps/i386/fpu/libm-test-ulps: Update.
14201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14202
14203 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14204
14205         * manual/platform.texi: Add PowerPC PPR function set documentation.
14206         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
14207         implementation.
14208
14209 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
14210
14211         * math/libm-test.inc (MAX_EXP): Define.
14212         (ULPDIFF): Define.
14213         (ulp): New function.
14214         (check_float_internal): Use ULPDIFF.
14215         (cpow_test): Disable failing test.
14216         (check_ulp): Test ulp() implemetnation.
14217         (main): Call check_ulp before starting tests.
14218
14219 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
14220
14221         * math/gen-libm-test.pl (generate_testfile): Do not handle
14222         START_DATA and END_DATA.
14223         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
14224         END_DATA.
14225         (acos_tonearest_test_data): Likewise.
14226         (acos_towardzero_test_data): Likewise.
14227         (acos_downward_test_data): Likewise.
14228         (acos_upward_test_data): Likewise.
14229         (acosh_test_data): Likewise.
14230         (asin_test_data): Likewise.
14231         (asin_tonearest_test_data): Likewise.
14232         (asin_towardzero_test_data): Likewise.
14233         (asin_downward_test_data): Likewise.
14234         (asin_upward_test_data): Likewise.
14235         (asinh_test_data): Likewise.
14236         (atan_test_data): Likewise.
14237         (atanh_test_data): Likewise.
14238         (atan2_test_data): Likewise.
14239         (cabs_test_data): Likewise.
14240         (cacos_test_data): Likewise.
14241         (cacosh_test_data): Likewise.
14242         (carg_test_data): Likewise.
14243         (casin_test_data): Likewise.
14244         (casinh_test_data): Likewise.
14245         (catan_test_data): Likewise.
14246         (catanh_test_data): Likewise.
14247         (cbrt_test_data): Likewise.
14248         (ccos_test_data): Likewise.
14249         (ccosh_test_data): Likewise.
14250         (ceil_test_data): Likewise.
14251         (cexp_test_data): Likewise.
14252         (cimag_test_data): Likewise.
14253         (clog_test_data): Likewise.
14254         (clog10_test_data): Likewise.
14255         (conj_test_data): Likewise.
14256         (copysign_test_data): Likewise.
14257         (cos_test_data): Likewise.
14258         (cos_tonearest_test_data): Likewise.
14259         (cos_towardzero_test_data): Likewise.
14260         (cos_downward_test_data): Likewise.
14261         (cos_upward_test_data): Likewise.
14262         (cosh_test_data): Likewise.
14263         (cosh_tonearest_test_data): Likewise.
14264         (cosh_towardzero_test_data): Likewise.
14265         (cosh_downward_test_data): Likewise.
14266         (cosh_upward_test_data): Likewise.
14267         (cpow_test_data): Likewise.
14268         (cproj_test_data): Likewise.
14269         (creal_test_data): Likewise.
14270         (csin_test_data): Likewise.
14271         (csinh_test_data): Likewise.
14272         (csqrt_test_data): Likewise.
14273         (ctan_test_data): Likewise.
14274         (ctan_tonearest_test_data): Likewise.
14275         (ctan_towardzero_test_data): Likewise.
14276         (ctan_downward_test_data): Likewise.
14277         (ctan_upward_test_data): Likewise.
14278         (ctanh_test_data): Likewise.
14279         (ctanh_tonearest_test_data): Likewise.
14280         (ctanh_towardzero_test_data): Likewise.
14281         (ctanh_downward_test_data): Likewise.
14282         (ctanh_upward_test_data): Likewise.
14283         (erf_test_data): Likewise.
14284         (erfc_test_data): Likewise.
14285         (exp_test_data): Likewise.
14286         (exp_tonearest_test_data): Likewise.
14287         (exp_towardzero_test_data): Likewise.
14288         (exp_downward_test_data): Likewise.
14289         (exp_upward_test_data): Likewise.
14290         (exp10_test_data): Likewise.
14291         (exp2_test_data): Likewise.
14292         (expm1_test_data): Likewise.
14293         (fabs_test_data): Likewise.
14294         (fdim_test_data): Likewise.
14295         (finite_test_data): Likewise.
14296         (floor_test_data): Likewise.
14297         (fma_test_data): Likewise.
14298         (fma_towardzero_test_data): Likewise.
14299         (fma_downward_test_data): Likewise.
14300         (fma_upward_test_data): Likewise.
14301         (fmax_test_data): Likewise.
14302         (fmin_test_data): Likewise.
14303         (fmod_test_data): Likewise.
14304         (fpclassify_test_data): Likewise.
14305         (frexp_test_data): Likewise.
14306         (gamma_test_data): Likewise.
14307         (hypot_test_data): Likewise.
14308         (ilogb_test_data): Likewise.
14309         (isfinite_test_data): Likewise.
14310         (isgreater_test_data): Likewise.
14311         (isgreaterequal_test_data): Likewise.
14312         (isinf_test_data): Likewise.
14313         (isless_test_data): Likewise.
14314         (islessequal_test_data): Likewise.
14315         (islessgreater_test_data): Likewise.
14316         (isnan_test_data): Likewise.
14317         (isnormal_test_data): Likewise.
14318         (issignaling_test_data): Likewise.
14319         (isunordered_test_data): Likewise.
14320         (j0_test_data): Likewise.
14321         (j1_test_data): Likewise.
14322         (jn_test_data): Likewise.
14323         (ldexp_test_data): Likewise.
14324         (lgamma_test_data): Likewise.
14325         (lrint_test_data): Likewise.
14326         (lrint_tonearest_test_data): Likewise.
14327         (lrint_towardzero_test_data): Likewise.
14328         (lrint_downward_test_data): Likewise.
14329         (lrint_upward_test_data): Likewise.
14330         (llrint_test_data): Likewise.
14331         (llrint_tonearest_test_data): Likewise.
14332         (llrint_towardzero_test_data): Likewise.
14333         (llrint_downward_test_data): Likewise.
14334         (llrint_upward_test_data): Likewise.
14335         (log_test_data): Likewise.
14336         (log10_test_data): Likewise.
14337         (log1p_test_data): Likewise.
14338         (log2_test_data): Likewise.
14339         (logb_test_data): Likewise.
14340         (logb_downward_test_data): Likewise.
14341         (lround_test_data): Likewise.
14342         (llround_test_data): Likewise.
14343         (modf_test_data): Likewise.
14344         (nearbyint_test_data): Likewise.
14345         (nextafter_test_data): Likewise.
14346         (nexttoward_test_data): Likewise.
14347         (pow_test_data): Likewise.
14348         (pow_tonearest_test_data): Likewise.
14349         (pow_towardzero_test_data): Likewise.
14350         (pow_downward_test_data): Likewise.
14351         (pow_upward_test_data): Likewise.
14352         (remainder_test_data): Likewise.
14353         (remainder_tonearest_test_data): Likewise.
14354         (remainder_towardzero_test_data): Likewise.
14355         (remainder_downward_test_data): Likewise.
14356         (remainder_upward_test_data): Likewise.
14357         (remquo_test_data): Likewise.
14358         (rint_test_data): Likewise.
14359         (rint_tonearest_test_data): Likewise.
14360         (rint_towardzero_test_data): Likewise.
14361         (rint_downward_test_data): Likewise.
14362         (rint_upward_test_data): Likewise.
14363         (round_test_data): Likewise.
14364         (scalb_test_data): Likewise.
14365         (scalbn_test_data): Likewise.
14366         (scalbln_test_data): Likewise.
14367         (signbit_test_data): Likewise.
14368         (sin_test_data): Likewise.
14369         (sin_tonearest_test_data): Likewise.
14370         (sin_towardzero_test_data): Likewise.
14371         (sin_downward_test_data): Likewise.
14372         (sin_upward_test_data): Likewise.
14373         (sincos_test_data): Likewise.
14374         (sinh_test_data): Likewise.
14375         (sinh_tonearest_test_data): Likewise.
14376         (sinh_towardzero_test_data): Likewise.
14377         (sinh_downward_test_data): Likewise.
14378         (sinh_upward_test_data): Likewise.
14379         (sqrt_test_data): Likewise.
14380         (tan_test_data): Likewise.
14381         (tan_tonearest_test_data): Likewise.
14382         (tan_towardzero_test_data): Likewise.
14383         (tan_downward_test_data): Likewise.
14384         (tan_upward_test_data): Likewise.
14385         (tanh_test_data): Likewise.
14386         (tgamma_test_data): Likewise.
14387         (trunc_test_data): Likewise.
14388         (y0_test_data): Likewise.
14389         (y1_test_data): Likewise.
14390         (yn_test_data): Likewise.
14391         (significand_test_data): Likewise.
14392
14393         * math/gen-libm-test.pl (@functions): Remove variable.
14394         (generate_testfile): Don't handle START and END lines.
14395         * math/libm-test.inc (START): New macro.
14396         (END): Likewise.
14397         (END_COMPLEX): Likewise.
14398         (acos_test): Use END macro without arguments.
14399         (acos_test_tonearest): Likewise.
14400         (acos_test_towardzero): Likewise.
14401         (acos_test_downward): Likewise.
14402         (acos_test_upward): Likewise.
14403         (acosh_test): Likewise.
14404         (asin_test): Likewise.
14405         (asin_test_tonearest): Likewise.
14406         (asin_test_towardzero): Likewise.
14407         (asin_test_downward): Likewise.
14408         (asin_test_upward): Likewise.
14409         (asinh_test): Likewise.
14410         (atan_test): Likewise.
14411         (atanh_test): Likewise.
14412         (atan2_test): Likewise.
14413         (cabs_test): Likewise.
14414         (cacos_test): Use END_COMPLEX macro without arguments.
14415         (cacosh_test): Likewise.
14416         (carg_test): Use END macro without arguments.
14417         (casin_test): Use END_COMPLEX macro without arguments.
14418         (casinh_test): Likewise.
14419         (catan_test): Likewise.
14420         (catanh_test): Likewise.
14421         (cbrt_test): Use END macro without arguments.
14422         (ccos_test): Use END_COMPLEX macro without arguments.
14423         (ccosh_test): Likewise.
14424         (ceil_test): Use END macro without arguments.
14425         (cexp_test): Use END_COMPLEX macro without arguments.
14426         (cimag_test): Use END macro without arguments.
14427         (clog_test): Use END_COMPLEX macro without arguments.
14428         (clog10_test): Likewise.
14429         (conj_test): Likewise.
14430         (copysign_test): Use END macro without arguments.
14431         (cos_test): Likewise.
14432         (cos_test_tonearest): Likewise.
14433         (cos_test_towardzero): Likewise.
14434         (cos_test_downward): Likewise.
14435         (cos_test_upward): Likewise.
14436         (cosh_test): Likewise.
14437         (cosh_test_tonearest): Likewise.
14438         (cosh_test_towardzero): Likewise.
14439         (cosh_test_downward): Likewise.
14440         (cosh_test_upward): Likewise.
14441         (cpow_test): Use END_COMPLEX macro without arguments.
14442         (cproj_test): Likewise.
14443         (creal_test): Use END macro without arguments.
14444         (csin_test): Use END_COMPLEX macro without arguments.
14445         (csinh_test): Likewise.
14446         (csqrt_test): Likewise.
14447         (ctan_test): Likewise.
14448         (ctan_test_tonearest): Likewise.
14449         (ctan_test_towardzero): Likewise.
14450         (ctan_test_downward): Likewise.
14451         (ctan_test_upward): Likewise.
14452         (ctanh_test): Likewise.
14453         (ctanh_test_tonearest): Likewise.
14454         (ctanh_test_towardzero): Likewise.
14455         (ctanh_test_downward): Likewise.
14456         (ctanh_test_upward): Likewise.
14457         (erf_test): Use END macro without arguments.
14458         (erfc_test): Likewise.
14459         (exp_test): Likewise.
14460         (exp_test_tonearest): Likewise.
14461         (exp_test_towardzero): Likewise.
14462         (exp_test_downward): Likewise.
14463         (exp_test_upward): Likewise.
14464         (exp10_test): Likewise.
14465         (exp2_test): Likewise.
14466         (expm1_test): Likewise.
14467         (fabs_test): Likewise.
14468         (fdim_test): Likewise.
14469         (finite_test): Likewise.
14470         (floor_test): Likewise.
14471         (fma_test): Likewise.
14472         (fma_test_towardzero): Likewise.
14473         (fma_test_downward): Likewise.
14474         (fma_test_upward): Likewise.
14475         (fmax_test): Likewise.
14476         (fmin_test): Likewise.
14477         (fmod_test): Likewise.
14478         (fpclassify_test): Likewise.
14479         (frexp_test): Likewise.
14480         (gamma_test): Likewise.
14481         (hypot_test): Likewise.
14482         (ilogb_test): Likewise.
14483         (isfinite_test): Likewise.
14484         (isgreater_test): Likewise.
14485         (isgreaterequal_test): Likewise.
14486         (isinf_test): Likewise.
14487         (isless_test): Likewise.
14488         (islessequal_test): Likewise.
14489         (islessgreater_test): Likewise.
14490         (isnan_test): Likewise.
14491         (isnormal_test): Likewise.
14492         (issignaling_test): Likewise.
14493         (isunordered_test): Likewise.
14494         (j0_test): Likewise.
14495         (j1_test): Likewise.
14496         (jn_test): Likewise.
14497         (ldexp_test): Likewise.
14498         (lgamma_test): Likewise.
14499         (lrint_test): Likewise.
14500         (lrint_test_tonearest): Likewise.
14501         (lrint_test_towardzero): Likewise.
14502         (lrint_test_downward): Likewise.
14503         (lrint_test_upward): Likewise.
14504         (llrint_test): Likewise.
14505         (llrint_test_tonearest): Likewise.
14506         (llrint_test_towardzero): Likewise.
14507         (llrint_test_downward): Likewise.
14508         (llrint_test_upward): Likewise.
14509         (log_test): Likewise.
14510         (log10_test): Likewise.
14511         (log1p_test): Likewise.
14512         (log2_test): Likewise.
14513         (logb_test): Likewise.
14514         (logb_test_downward): Likewise.
14515         (lround_test): Likewise.
14516         (llround_test): Likewise.
14517         (modf_test): Likewise.
14518         (nearbyint_test): Likewise.
14519         (nextafter_test): Likewise.
14520         (nexttoward_test): Likewise.
14521         (pow_test): Likewise.
14522         (pow_test_tonearest): Likewise.
14523         (pow_test_towardzero): Likewise.
14524         (pow_test_downward): Likewise.
14525         (pow_test_upward): Likewise.
14526         (remainder_test): Likewise.
14527         (remainder_test_tonearest): Likewise.
14528         (remainder_test_towardzero): Likewise.
14529         (remainder_test_downward): Likewise.
14530         (remainder_test_upward): Likewise.
14531         (remquo_test): Likewise.
14532         (rint_test): Likewise.
14533         (rint_test_tonearest): Likewise.
14534         (rint_test_towardzero): Likewise.
14535         (rint_test_downward): Likewise.
14536         (rint_test_upward): Likewise.
14537         (round_test): Likewise.
14538         (scalb_test): Likewise.
14539         (scalbn_test): Likewise.
14540         (scalbln_test): Likewise.
14541         (signbit_test): Likewise.
14542         (sin_test): Likewise.
14543         (sin_test_tonearest): Likewise.
14544         (sin_test_towardzero): Likewise.
14545         (sin_test_downward): Likewise.
14546         (sin_test_upward): Likewise.
14547         (sincos_test): Likewise.
14548         (sinh_test): Likewise.
14549         (sinh_test_tonearest): Likewise.
14550         (sinh_test_towardzero): Likewise.
14551         (sinh_test_downward): Likewise.
14552         (sinh_test_upward): Likewise.
14553         (sqrt_test): Likewise.
14554         (tan_test): Likewise.
14555         (tan_test_tonearest): Likewise.
14556         (tan_test_towardzero): Likewise.
14557         (tan_test_downward): Likewise.
14558         (tan_test_upward): Likewise.
14559         (tanh_test): Likewise.
14560         (tgamma_test): Likewise.
14561         (trunc_test): Likewise.
14562         (y0_test): Likewise.
14563         (y1_test): Likewise.
14564         (yn_test): Likewise.
14565         (significand_test): Likewise.
14566
14567 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
14568
14569         [BZ #15381]
14570         * libio/genops.c (_IO_no_init): Initialize wide struct info.
14571
14572 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
14573
14574         [BZ #14894]
14575         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
14576         __ppc_mdoio and __ppc_mdoom.
14577         * manual/platform.texi: Document new functions __ppc_yield,
14578         __ppc_mdoio and __ppc_mdoom.
14579
14580 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
14581
14582         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
14583         (main): Mention "tls" pseudo-hwcap is legacy.
14584         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
14585
14586 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
14587
14588         * math/gen-libm-test.pl (parse_args): Output only string of
14589         arguments as text for test name, not full call or descriptions of
14590         tests for extra outputs.
14591         (generate_testfile): Do not pass function name to parse_args.
14592         Generate this_func variable from START.
14593         * math/libm-test.inc (struct test_f_f_data): Rename test_name
14594         field to arg_str.
14595         (struct test_ff_f_data): Likewise.
14596         (test_ff_f_data_nexttoward): Likewise.
14597         (struct test_fi_f_data): Likewise.
14598         (struct test_fl_f_data): Likewise.
14599         (struct test_if_f_data): Likewise.
14600         (struct test_fff_f_data): Likewise.
14601         (struct test_c_f_data): Likewise.
14602         (struct test_f_f1_data): Likewise.  Remove field extra_name.
14603         (struct test_fF_f1_data): Likewise.
14604         (struct test_ffI_f1_data): Likewise.
14605         (struct test_c_c_data): Rename test_name field to arg_str.
14606         (struct test_cc_c_data): Likewise.
14607         (struct test_f_i_data): Likewise.
14608         (struct test_ff_i_data): Likewise.
14609         (struct test_f_l_data): Likewise.
14610         (struct test_f_L_data): Likewise.
14611         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
14612         and extra2_name.
14613         (COMMON_TEST_SETUP): New macro.
14614         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
14615         (COMMON_TEST_CLEANUP): Likewise.
14616         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
14617         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
14618         macros.
14619         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
14620         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
14621         macros.
14622         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
14623         (RUN_TEST_fff_f): Take argument string.  Call new setup and
14624         cleanup macros.
14625         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
14626         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
14627         macros.
14628         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
14629         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
14630         macros.
14631         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
14632         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
14633         cleanup macros.
14634         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
14635         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
14636         cleanup macros.
14637         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
14638         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
14639         cleanup macros.
14640         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
14641         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
14642         macros.
14643         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
14644         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
14645         macros.
14646         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
14647         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
14648         macros.
14649         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
14650         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
14651         cleanup macros.
14652         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
14653         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
14654         cleanup macros.
14655         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
14656         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
14657         macros.
14658         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
14659         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
14660         cleanup macros.
14661         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
14662         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
14663         macros.
14664         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
14665         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
14666         macros.
14667         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
14668         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
14669         cleanup macros.
14670         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
14671
14672 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
14673
14674         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
14675         to _sifields.sigfault.
14676         (si_addr_lsb): Define new macro.
14677         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
14678         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
14679         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
14680
14681 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
14682
14683         [BZ #15441]
14684         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
14685         returns -1.
14686         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
14687         null return -1.
14688         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
14689         loading the domain.
14690
14691 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
14692
14693         * math/gen-libm-test.pl (parse_args): Do not include expected
14694         result in test name.
14695         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
14696         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14697         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
14698         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14699         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
14700         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14701
14702 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
14703
14704         * benchtests/Makefile: Sort function entries.
14705
14706         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
14707         tanh, asinh, acosh, atanh.
14708         * benchtests/acos-inputs: New file.
14709         * benchtests/acosh-inputs: New file.
14710         * benchtests/asin-inputs: New file.
14711         * benchtests/asinh-inputs: New file.
14712         * benchtests/atanh-inputs: New file.
14713         * benchtests/cosh-inputs: New file.
14714         * benchtests/log-inputs: New file.
14715         * benchtests/sinh-inputs: New file.
14716         * benchtests/tanh-inputs: New file.
14717
14718 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
14719
14720         [BZ #15339]
14721         * posix/tst-getaddrinfo4.c: New test.
14722         * posix/Makefile (tests): Add it.
14723
14724 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14725
14726         [BZ #15339]
14727         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
14728         when no services were used.
14729         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
14730         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
14731
14732 2013-05-21  Andreas Schwab  <schwab@suse.de>
14733
14734         [BZ #15014]
14735         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
14736         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
14737         successful.
14738         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
14739         redundant variable declarations and reallocation of buffer when
14740         parsing as IPv6 address.  Always set NSS status when called from
14741         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
14742         buffer too small.  Correct computation of needed size.
14743         * nss/Makefile (tests): Add test-digits-dots.
14744         * nss/test-digits-dots.c: New test.
14745
14746 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14747
14748         * benchtests/Makefile: Remove instructions for adding
14749         benchmark tests.
14750         * benchtests/README: New file to explain how to execute and
14751         enhance the benchmark tests.
14752
14753 2013-05-21  Andreas Schwab  <schwab@suse.de>
14754
14755         [BZ #15493]
14756         * setjmp/Makefile (tests): Add tst-sigsetjmp.
14757         * setjmp/tst-sigsetjmp.c: New test.
14758
14759 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
14760
14761         * sysdeps/x86_64/memset.S (memset): New implementation.
14762         (__bzero): Likewise.
14763         (__memset_tail): New function.
14764
14765 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
14766
14767         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
14768         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
14769         __memcpy_sse2_unaligned ifunc selection.
14770         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
14771         Add memcpy-sse2-unaligned.S.
14772         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
14773         Add: __memcpy_sse2_unaligned.
14774
14775 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
14776
14777         [BZ #15490]
14778         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
14779         math_force_eval before restoring floating-point envrionment.
14780         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
14781         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
14782         Likewise.
14783         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
14784         <math_private.h>.
14785         (__nearbyintl): Use math_force_eval before restoring
14786         floating-point environment.
14787         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
14788
14789         * math/gen-libm-test.pl (special_functions): Remove.
14790         (parse_args): Don't handle TEST_extra.  Handle functions with no
14791         return value.
14792         * math/libm-test.inc (struct test_sincos_data): Replace with
14793         struct test_fFF_11_data.
14794         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
14795         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
14796         (sincos_test_data): Change element type to struct
14797         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
14798         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
14799         RUN_TEST_LOOP_sincos.
14800         * math/README.libm-test: Don't mention special handling of
14801         individual functions.
14802         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
14803         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14804         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
14805         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14806         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
14807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14808
14809         * math/gen-libm-test.pl (get_variable): Remove function.
14810         (parse_args): Don't show pointer parameters to call in test
14811         names.  Use "extra output N" in test names for extra outputs
14812         rather than naming variables.
14813
14814 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
14815
14816         [BZ #15488]
14817         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
14818         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
14819         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
14820         double tests.
14821         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
14822         disable.
14823         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
14824         check_long_double.
14825
14826         * math/gen-libm-test.pl (@tests): Remove variable.
14827         ($count): Likewise.
14828         (new_test): Remove function.
14829         (show_exceptions): New function.
14830         (special_functions): Use show_exceptions instead of new_test.
14831         (parse_args): Likewise.
14832         (generate_testfile): Pass only function name in generated call to
14833         print_max_error or print_complex_max_error.
14834         (get_ulps): Do not handle complex tests specially.
14835         (output_test): Rename to ...
14836         (get_all_ulps_for_test): ... this.  Return a string rather than
14837         printing to a file.  Require ulps to be present.
14838         (output_ulps): Generate arrays rather than #defines.
14839         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
14840         (struct ulp_data): New type.
14841         (BUILD_COMPLEX_ULP): Remove macro.
14842         (compare_ulp_data): New function.
14843         (find_ulps): Likewise.
14844         (find_test_ulps): Likewise.
14845         (find_function_ulps): Likewise.
14846         (find_complex_function_ulps): Likewise.
14847         (print_max_error): Determine allowed ulps using
14848         find_function_ulps.
14849         (print_complex_max_error): Determine allowed ulps using
14850         find_complex_function_ulps.
14851         (check_float_internal): Determine max ulps using find_test_ulps.
14852         (check_float): Do not take max_ulp parameter.  Update call to
14853         check_float_internal.
14854         (check_complex): Likewise.
14855         (check_int): Do not take max_ulp parameter.
14856         (check_long): Likewise.
14857         (check_bool): Likewise.
14858         (check_longlong): Likewise.
14859         (struct test_f_f_data): Remove max_ulp field.
14860         (struct test_ff_f_data): Likewise.
14861         (struct test_ff_f_data_nexttoward): Likewise.
14862         (struct test_fi_f_data): Likewise.
14863         (struct test_fl_f_data): Likewise.
14864         (struct test_if_f_data): Likewise.
14865         (struct test_fff_f_data): Likewise.
14866         (struct test_c_f_data): Likewise.
14867         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
14868         (struct test_fF_f1_data): Likewise.
14869         (struct test_ffI_f1_data): Likewise.
14870         (struct test_c_c_data): Remove max_ulp field.
14871         (struct test_cc_c_data): Likewise.
14872         (struct test_f_i_data): Likewise.
14873         (struct test_ff_i_data): Likewise.
14874         (struct test_f_l_data): Likewise.
14875         (struct test_f_L_data): Likewise.
14876         (struct test_sincos_data): Likewise.
14877         (RUN_TEST_f_f): Do not handle ulps.
14878         (RUN_TEST_LOOP_f_f): Likewise.
14879         (RUN_TEST_2_f): Likewise.
14880         (RUN_TEST_LOOP_2_f): Likewise.
14881         (RUN_TEST_fff_f): Likewise.
14882         (RUN_TEST_LOOP_fff_f): Likewise.
14883         (RUN_TEST_c_f): Likewise.
14884         (RUN_TEST_LOOP_c_f): Likewise.
14885         (RUN_TEST_f_f1): Likewise.
14886         (RUN_TEST_LOOP_f_f1): Likewise.
14887         (RUN_TEST_fF_f1): Likewise.
14888         (RUN_TEST_LOOP_fF_f1): Likewise.
14889         (RUN_TEST_fI_f1): Likewise.
14890         (RUN_TEST_LOOP_fI_f1): Likewise.
14891         (RUN_TEST_ffI_f1): Likewise.
14892         (RUN_TEST_LOOP_ffI_f1): Likewise.
14893         (RUN_TEST_c_c): Likewise.
14894         (RUN_TEST_LOOP_c_c): Likewise.
14895         (RUN_TEST_cc_c): Likewise.
14896         (RUN_TEST_LOOP_cc_c): Likewise.
14897         (RUN_TEST_f_i): Likewise.
14898         (RUN_TEST_LOOP_f_i): Likewise.
14899         (RUN_TEST_f_i_tg): Likewise.
14900         (RUN_TEST_LOOP_f_i_tg): Likewise.
14901         (RUN_TEST_ff_i_tg): Likewise.
14902         (RUN_TEST_LOOP_ff_i_tg): Likewise.
14903         (RUN_TEST_f_b): Likewise.
14904         (RUN_TEST_LOOP_f_b): Likewise.
14905         (RUN_TEST_f_b_tg): Likewise.
14906         (RUN_TEST_LOOP_f_b_tg): Likewise.
14907         (RUN_TEST_f_l): Likewise.
14908         (RUN_TEST_LOOP_f_l): Likewise.
14909         (RUN_TEST_f_L): Likewise.
14910         (RUN_TEST_LOOP_f_L): Likewise.
14911         (RUN_TEST_sincos): Likewise.
14912         (RUN_TEST_LOOP_sincos): Likewise.
14913
14914 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
14915
14916         [BZ #15480]
14917         [BZ #15485]
14918         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
14919         main case of finite arguments, set rounding mode to FE_TONEAREST
14920         and discard exceptions.
14921         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
14922         exceptions.
14923         (remainder_tonearest_test_data): New variable.
14924         (remainder_test_tonearest): New function.
14925         (remainder_towardzero_test_data): New variable.
14926         (remainder_test_towardzero): New function.
14927         (remainder_downward_test_data): New variable.
14928         (remainder_test_downward): New function.
14929         (remainder_upward_test_data): New variable.
14930         (remainder_test_upward): New function.
14931         (main): Call the new test functions.
14932
14933         * math/libm-test.inc (struct test_f_f1_data): Remove field
14934         extra_init.
14935         (struct test_fF_f1_data): Likewise.
14936         (struct test_ffI_f1_data): Likewise.
14937         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
14938         based on value of EXTRA_EXPECTED.
14939         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
14940         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
14941         EXTRA_VAR based on value of EXTRA_EXPECTED.
14942         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
14943         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
14944         EXTRA_VAR based on value of EXTRA_EXPECTED.
14945         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
14946         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
14947         EXTRA_VAR based on value of EXTRA_EXPECTED.
14948         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
14949         * math/gen-libm-test.pl (parse_args): Don't output initializers
14950         for extra output values.
14951
14952         * math/libm-test.inc (check_int): Expect result to be exactly
14953         equal to expected value and do not handle ulps.
14954         (check_long): Likewise.
14955         (check_longlong): Likewise.
14956
14957         * math/libm-test.inc (ceil_test_data): Test for "inexact"
14958         exceptions.
14959         (cimag_test_data): Likewise.
14960         (conj_test_data): Likewise.
14961         (copysign_test_data): Likewise.
14962         (cproj_test_data): Likewise.
14963         (creal_test_data): Likewise.
14964         (fabs_test_data): Likewise.
14965         (fdim_test_data): Likewise.
14966         (finite_test_data): Likewise.
14967         (floor_test_data): Likewise.
14968         (fmax_test_data): Likewise.
14969         (fmin_test_data): Likewise.
14970         (fmod_test_data): Likewise.
14971         (fpclassify_test_data): Likewise.
14972         (frexp_test_data): Likewise.
14973         (ilogb_test_data): Likewise.
14974         (isfinite_test_data): Likewise.
14975         (isgreater_test_data): Likewise.
14976         (isgreaterequal_test_data): Likewise.
14977         (isinf_test_data): Likewise.
14978         (isless_test_data): Likewise.
14979         (islessequal_test_data): Likewise.
14980         (islessgreater_test_data): Likewise.
14981         (isnan_test_data): Likewise.
14982         (isnormal_test_data): Likewise.
14983         (issignaling_test_data): Likewise.
14984         (isunordered_test_data): Likewise.
14985         (ldexp_test_data): Likewise.
14986         (lrint_test_data): Likewise.
14987         (lrint_test_data) [TEST_FLOAT]: Disable one test.
14988         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
14989         (lrint_tonearest_test_data): Test for "inexact" exceptions.
14990         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
14991         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
14992         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
14993         test input.
14994         (lrint_towardzero_test_data): Test for "inexact" exceptions.
14995         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
14996         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
14997         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
14998         that test input.
14999         (lrint_downward_test_data): Test for "inexact" exceptions.
15000         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
15001         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
15002         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
15003         test input.
15004         (lrint_upward_test_data): Test for "inexact" exceptions.
15005         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
15006         test input.
15007         (llrint_test_data): Test for "inexact" exceptions.
15008         (llrint_test_data) [TEST_FLOAT]: Disable one test.
15009         (llrint_tonearest_test_data): Test for "inexact" exceptions.
15010         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
15011         (llrint_towardzero_test_data): Test for "inexact" exceptions.
15012         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
15013         (llrint_downward_test_data): Test for "inexact" exceptions.
15014         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
15015         (llrint_upward_test_data): Test for "inexact" exceptions.
15016         (logb_test_data): Likewise.
15017         (logb_downward_test_data): Likewise.
15018         (nextafter_test_data): Likewise.
15019         (nexttoward_test_data): Likewise.
15020         (remainder_test_data): Likewise.
15021         (remquo_test_data): Likewise.
15022         (scalbn_test_data): Likewise.
15023         (scalbln_test_data): Likewise.
15024         (signbit_test_data): Likewise.
15025         (sqrt_test_data): Likewise.
15026         (significand_test_data): Likewise.
15027
15028 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
15029
15030         [BZ #15424]
15031         * benchtests/bench-modf.c (struct args): Mark arg0 as
15032         volatile.
15033         * scripts/bench.pl: Mark members of struct args as volatile.
15034
15035 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15036
15037         [BZ # 15497]
15038         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
15039         negative infinity on POWER6 or lower.
15040         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
15041
15042 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
15043
15044         [BZ #15442]
15045         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
15046         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
15047         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
15048         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
15049         (_FP_SETQNAN): New macro.
15050         (_FP_SETQNAN_SEMIRAW): Likewise.
15051         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
15052         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
15053         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
15054         (FP_EXTEND): Use _FP_FRAC_SNANP.
15055         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
15056         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
15057         into account.
15058         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
15059         New macro.
15060         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
15061         Likewise.
15062
15063 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
15064
15065         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
15066         with DIVIDE_BY_ZERO_EXCEPTION.
15067         (gamma_test_data): Likewise.
15068         (lgamma_test_data): Likewise.
15069         (log_test_data): Likewise.
15070         (log10_test_data): Likewise.
15071         (log2_test_data): Likewise.
15072         (tgamma_test_data): Likewise.
15073
15074         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
15075         (acos_test_tonearest): Likewise.
15076         (acos_test_towardzero): Likewise.
15077         (acos_test_downward): Likewise.
15078         (acos_test_upward): Likewise.
15079         (acosh_test): Likewise.
15080         (asin_test): Likewise.
15081         (asin_test_tonearest): Likewise.
15082         (asin_test_towardzero): Likewise.
15083         (asin_test_downward): Likewise.
15084         (asin_test_upward): Likewise.
15085         (asinh_test): Likewise.
15086         (atan_test): Likewise.
15087         (atanh_test): Likewise.
15088         (atan2_test): Likewise.
15089         (cabs_test): Likewise.
15090         (cacos_test): Likewise.
15091         (cacosh_test): Likewise.
15092         (casin_test): Likewise.
15093         (casinh_test): Likewise.
15094         (catan_test): Likewise.
15095         (catanh_test): Likewise.
15096         (cbrt_test): Likewise.
15097         (ccos_test): Likewise.
15098         (ccosh_test): Likewise.
15099         (cexp_test): Likewise.
15100         (clog_test): Likewise.
15101         (clog10_test): Likewise.
15102         (cos_test): Likewise.
15103         (cos_test_tonearest): Likewise.
15104         (cos_test_towardzero): Likewise.
15105         (cos_test_downward): Likewise.
15106         (cos_test_upward): Likewise.
15107         (cosh_test): Likewise.
15108         (cosh_test_tonearest): Likewise.
15109         (cosh_test_towardzero): Likewise.
15110         (cosh_test_downward): Likewise.
15111         (cosh_test_upward): Likewise.
15112         (cpow_test): Likewise.
15113         (csin_test): Likewise.
15114         (csinh_test): Likewise.
15115         (csqrt_test): Likewise.
15116         (ctan_test): Likewise.
15117         (ctan_test_tonearest): Likewise.
15118         (ctan_test_towardzero): Likewise.
15119         (ctan_test_downward): Likewise.
15120         (ctan_test_upward): Likewise.
15121         (ctanh_test): Likewise.
15122         (ctanh_test_tonearest): Likewise.
15123         (ctanh_test_towardzero): Likewise.
15124         (ctanh_test_downward): Likewise.
15125         (ctanh_test_upward): Likewise.
15126         (erf_test): Likewise.
15127         (erfc_test): Likewise.
15128         (exp_test): Likewise.
15129         (exp_test_tonearest): Likewise.
15130         (exp_test_towardzero): Likewise.
15131         (exp_test_downward): Likewise.
15132         (exp_test_upward): Likewise.
15133         (exp10_test): Likewise.
15134         (exp2_test): Likewise.
15135         (expm1_test): Likewise.
15136         (fmod_test): Likewise.
15137         (gamma_test): Likewise.
15138         (hypot_test): Likewise.
15139         (j0_test): Likewise.
15140         (j1_test): Likewise.
15141         (jn_test): Likewise.
15142         (lgamma_test): Likewise.
15143         (log_test): Likewise.
15144         (log10_test): Likewise.
15145         (log1p_test): Likewise.
15146         (log2_test): Likewise.
15147         (logb_test_downward): Likewise.
15148         (pow_test): Likewise.
15149         (pow_test_tonearest): Likewise.
15150         (pow_test_towardzero): Likewise.
15151         (pow_test_downward): Likewise.
15152         (pow_test_upward): Likewise.
15153         (remainder_test): Likewise.
15154         (remquo_test): Likewise.
15155         (sin_test): Likewise.
15156         (sin_test_tonearest): Likewise.
15157         (sin_test_towardzero): Likewise.
15158         (sin_test_downward): Likewise.
15159         (sin_test_upward): Likewise.
15160         (sincos_test): Likewise.
15161         (sinh_test): Likewise.
15162         (sinh_test_tonearest): Likewise.
15163         (sinh_test_towardzero): Likewise.
15164         (sinh_test_downward): Likewise.
15165         (sinh_test_upward): Likewise.
15166         (sqrt_test): Likewise.
15167         (tan_test): Likewise.
15168         (tan_test_tonearest): Likewise.
15169         (tan_test_towardzero): Likewise.
15170         (tan_test_downward): Likewise.
15171         (tan_test_upward): Likewise.
15172         (tanh_test): Likewise.
15173         (tgamma_test): Likewise.
15174         (y0_test): Likewise.
15175         (y1_test): Likewise.
15176         (yn_test): Likewise.
15177
15178         * math/gen-libm-test.pl (adjust_arg): Remove function.
15179         (special_function): Remove argument $in_func.  Only handle
15180         generating output for tables of tests, not inside functions.
15181         (parse_args): Likewise.
15182         (generate_testfile): Remove variable $in_func.  Update call to
15183         parse_args.
15184         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
15185         (MINUS_ZERO_INIT): Rename macro to minus_zero.
15186         (PLUS_INFTY_INIT): Rename macro to plus_infty.
15187         (MINUS_INFTY_INIT): Rename macro to minus_infty.
15188         (QNAN_VALUE_INIT): Rename macro to qnan_value.
15189         (MAX_VALUE_INIT): Rename macro to max_value.
15190         (MIN_VALUE_INIT): Rename macro to min_value.
15191         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
15192         (plus_zero): Remove variable.
15193         (minus_zero): Likewise.
15194         (plus_infty): Likewise.
15195         (minus_infty): Likewise.
15196         (qnan_value): Likewise.
15197         (max_value): Likewise.
15198         (min_value): Likewise.
15199         (min_subnorm_value): Likewise.
15200
15201 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15202
15203         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
15204         uint64_t or uint32_t usage.
15205         * crypt/sha256-block.c: Likewise.
15206         * crypt/sha256-crypt.c: Likewise.
15207         * crypt/sha256.c: Likewise.
15208         * crypt/sha512-block.c: Likewise.
15209         * crypt/sha512-crypt.c: Likewise.
15210         * crypt/sha512.c: Likewise.
15211         * debug/backtrace-tst.c: Likewise.
15212         * debug/pcprofiledump.c: Likewise.
15213         * elf/cache.c: Likewise.
15214         * elf/dl-cache.c: Likewise.
15215         * elf/dl-misc.c: Likewise.
15216         * elf/dl-profile.c: Likewise.
15217         * elf/dl-support.c: Likewise.
15218         * elf/ldconfig.c: Likewise.
15219         * elf/sprof.c: Likewise.
15220         * iconv/dummy-repertoire.c: Likewise.
15221         * iconv/iconv_charmap.c: Likewise.
15222         * iconv/skeleton.c: Likewise.
15223         * iconvdata/8bit-generic.c: Likewise.
15224         * iconvdata/cp737.h: Likewise.
15225         * iconvdata/cp775.h: Likewise.
15226         * iconvdata/ibm1008.h: Likewise.
15227         * iconvdata/ibm1025.h: Likewise.
15228         * iconvdata/ibm1046.h: Likewise.
15229         * iconvdata/ibm1097.h: Likewise.
15230         * iconvdata/ibm1112.h: Likewise.
15231         * iconvdata/ibm1122.h: Likewise.
15232         * iconvdata/ibm1123.h: Likewise.
15233         * iconvdata/ibm1124.h: Likewise.
15234         * iconvdata/ibm1129.h: Likewise.
15235         * iconvdata/ibm1130.h: Likewise.
15236         * iconvdata/ibm1132.h: Likewise.
15237         * iconvdata/ibm1133.h: Likewise.
15238         * iconvdata/ibm1137.h: Likewise.
15239         * iconvdata/ibm1140.h: Likewise.
15240         * iconvdata/ibm1141.h: Likewise.
15241         * iconvdata/ibm1142.h: Likewise.
15242         * iconvdata/ibm1143.h: Likewise.
15243         * iconvdata/ibm1144.h: Likewise.
15244         * iconvdata/ibm1145.h: Likewise.
15245         * iconvdata/ibm1146.h: Likewise.
15246         * iconvdata/ibm1147.h: Likewise.
15247         * iconvdata/ibm1148.h: Likewise.
15248         * iconvdata/ibm1149.h: Likewise.
15249         * iconvdata/ibm1153.h: Likewise.
15250         * iconvdata/ibm1154.h: Likewise.
15251         * iconvdata/ibm1155.h: Likewise.
15252         * iconvdata/ibm1156.h: Likewise.
15253         * iconvdata/ibm1157.h: Likewise.
15254         * iconvdata/ibm1158.h: Likewise.
15255         * iconvdata/ibm1160.h: Likewise.
15256         * iconvdata/ibm1161.h: Likewise.
15257         * iconvdata/ibm1162.h: Likewise.
15258         * iconvdata/ibm1163.h: Likewise.
15259         * iconvdata/ibm1164.h: Likewise.
15260         * iconvdata/ibm1166.h: Likewise.
15261         * iconvdata/ibm1167.h: Likewise.
15262         * iconvdata/ibm12712.h: Likewise.
15263         * iconvdata/ibm1390.h: Likewise.
15264         * iconvdata/ibm1399.h: Likewise.
15265         * iconvdata/ibm16804.h: Likewise.
15266         * iconvdata/ibm4517.h: Likewise.
15267         * iconvdata/ibm4899.h: Likewise.
15268         * iconvdata/ibm4909.h: Likewise.
15269         * iconvdata/ibm4971.h: Likewise.
15270         * iconvdata/ibm5347.h: Likewise.
15271         * iconvdata/ibm803.h: Likewise.
15272         * iconvdata/ibm856.h: Likewise.
15273         * iconvdata/ibm901.h: Likewise.
15274         * iconvdata/ibm902.h: Likewise.
15275         * iconvdata/ibm9030.h: Likewise.
15276         * iconvdata/ibm9066.h: Likewise.
15277         * iconvdata/ibm921.h: Likewise.
15278         * iconvdata/ibm922.h: Likewise.
15279         * iconvdata/ibm9448.h: Likewise.
15280         * iconvdata/isiri-3342.h: Likewise.
15281         * iconvdata/jis0201.h: Likewise.
15282         * include/link.h: Likewise.
15283         * include/netdb.h: Likewise.
15284         * inet/check_native.c: Likewise.
15285         * inet/check_pf.c: Likewise.
15286         * inet/getipv4sourcefilter.c: Likewise.
15287         * inet/getnameinfo.c: Likewise.
15288         * inet/getsourcefilter.c: Likewise.
15289         * inet/htonl.c: Likewise.
15290         * inet/setipv4sourcefilter.c: Likewise.
15291         * inet/setsourcefilter.c: Likewise.
15292         * inet/test-inet6_opt.c: Likewise.
15293         * inet/tst-network.c: Likewise.
15294         * locale/C-collate.c: Likewise.
15295         * locale/C-ctype.c: Likewise.
15296         * locale/C-time.c: Likewise.
15297         * locale/C-translit.h: Likewise.
15298         * locale/loadarchive.c: Likewise.
15299         * locale/programs/3level.h: Likewise.
15300         * locale/programs/charmap.c: Likewise.
15301         * locale/programs/charmap.h: Likewise.
15302         * locale/programs/ld-address.c: Likewise.
15303         * locale/programs/ld-collate.c: Likewise.
15304         * locale/programs/ld-ctype.c: Likewise.
15305         * locale/programs/ld-identification.c: Likewise.
15306         * locale/programs/ld-measurement.c: Likewise.
15307         * locale/programs/ld-messages.c: Likewise.
15308         * locale/programs/ld-monetary.c: Likewise.
15309         * locale/programs/ld-name.c: Likewise.
15310         * locale/programs/ld-numeric.c: Likewise.
15311         * locale/programs/ld-paper.c: Likewise.
15312         * locale/programs/ld-telephone.c: Likewise.
15313         * locale/programs/ld-time.c: Likewise.
15314         * locale/programs/linereader.c: Likewise.
15315         * locale/programs/locale.c: Likewise.
15316         * locale/programs/locarchive.c: Likewise.
15317         * locale/programs/locfile.h: Likewise.
15318         * locale/programs/repertoire.c: Likewise.
15319         * locale/programs/simple-hash.c: Likewise.
15320         * locale/programs/simple-hash.h: Likewise.
15321         * malloc/memusage.c: Likewise.
15322         * malloc/memusagestat.c: Likewise.
15323         * nis/nis_defaults.c: Likewise.
15324         * nis/nis_hash.c: Likewise.
15325         * nis/nis_print.c: Likewise.
15326         * nis/nis_xdr.c: Likewise.
15327         * nscd/connections.c: Likewise.
15328         * nscd/hstcache.c: Likewise.
15329         * nscd/nscd_gethst_r.c: Likewise.
15330         * nscd/nscd_getserv_r.c: Likewise.
15331         * nscd/nscd_helper.c: Likewise.
15332         * nscd/servicescache.c: Likewise.
15333         * nss/makedb.c: Likewise.
15334         * nss/nss_db/db-XXX.c: Likewise.
15335         * nss/nss_db/db-initgroups.c: Likewise.
15336         * nss/nss_db/db-netgrp.c: Likewise.
15337         * nss/nss_files/files-network.c: Likewise.
15338         * nss/nss_files/files-parse.c: Likewise.
15339         * posix/bug-regex5.c: Likewise.
15340         * posix/fnmatch_loop.c: Likewise.
15341         * posix/regcomp.c: Likewise.
15342         * posix/regexec.c: Likewise.
15343         * posix/tst-rfc3484-2.c: Likewise.
15344         * posix/tst-rfc3484-3.c: Likewise.
15345         * posix/tst-rfc3484.c: Likewise.
15346         * resolv/nss_dns/dns-canon.c: Likewise.
15347         * resolv/nss_dns/dns-network.c: Likewise.
15348         * resolv/res_init.c: Likewise.
15349         * resolv/res_mkquery.c: Likewise.
15350         * resolv/tst-aton.c: Likewise.
15351         * stdlib/cxa_atexit.c: Likewise.
15352         * stdlib/cxa_finalize.c: Likewise.
15353         * stdlib/gen-fpioconst.c: Likewise.
15354         * stdlib/strtol_l.c: Likewise.
15355         * string/tst-endian.c: Likewise.
15356         * sunrpc/auth_des.c: Likewise.
15357         * sunrpc/clnt_udp.c: Likewise.
15358         * sunrpc/rtime.c: Likewise.
15359         * sunrpc/svcauth_des.c: Likewise.
15360         * sunrpc/xdr.c: Likewise.
15361         * sunrpc/xdr_intXX_t.c: Likewise.
15362         * sunrpc/xdr_rec.c: Likewise.
15363         * sysdeps/generic/ldconfig.h: Likewise.
15364         * sysdeps/generic/ldsodefs.h: Likewise.
15365         * sysdeps/generic/memusage.h: Likewise.
15366         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
15367         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
15368         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
15369         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
15370         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15371         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
15372         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
15373         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
15374         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15375         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
15376         * sysdeps/posix/getaddrinfo.c: Likewise.
15377         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15378         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15379         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15380         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15381         * sysdeps/powerpc/test-gettimebase.c: Likewise.
15382         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
15383         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
15384         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
15385         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
15386         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
15387         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15388         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15389         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
15390         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
15391         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
15392         * sysdeps/x86_64/dl-tls.h: Likewise.
15393         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
15394         * time/alt_digit.c: Likewise.
15395         * time/era.c: Likewise.
15396         * wcsmbs/tst-c16c32-1.c: Likewise.
15397
15398 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
15399
15400         * math/libm-test.inc (struct test_sincos_data): New type.
15401         (RUN_TEST_LOOP_sincos): New macro.
15402         (sincos_test_data): New variable.
15403         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
15404
15405 2013-05-16  Richard Henderson  <rth@redhat.com>
15406
15407         * math/atest-exp2.c (LIMB64): New macro.
15408         (CONSTSZ): New macro.
15409         (mp_exp1, mp_exp_m1, mp_log2): New variables.
15410         (hexdig): Move ...
15411         (print_mpn_fp): ... to function scope.
15412         (read_mpn_hex): Remove.
15413         (get_log2): Remove.
15414         (exp2_mpn): Use mp_log2.
15415         (main): Use mp_exp1.
15416
15417 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
15418
15419         * math/libm-test.inc: Remove comment about not testing "inexact"
15420         exceptions.
15421         (INEXACT_EXCEPTION): New macro.
15422         (NO_INEXACT_EXCEPTION): Likewise.
15423         (INVALID_EXCEPTION_OK): Update value.
15424         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
15425         (OVERFLOW_EXCEPTION_OK): Likewise.
15426         (UNDERFLOW_EXCEPTION_OK): Likewise.
15427         (IGNORE_ZERO_INF_SIGN): Likewise.
15428         (ERRNO_UNCHANGED): Likewise.
15429         (ERRNO_EDOM): Likewise.
15430         (ERRNO_ERANGE): Likewise.
15431         (test_exceptions): Handle testing "inexact" exceptions.
15432         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
15433         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
15434         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
15435         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
15436         INEXACT_EXCEPTION.
15437         (rint_towardzero_test_data): Likewise.
15438         (rint_downward_test_data): Likewise.
15439         (rint_upward_test_data): Likewise.
15440
15441         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
15442         with OVERFLOW_EXCEPTION.
15443         (exp10_test_data): Likewise.
15444         (exp2_test_data): Likewise.
15445         (expm1_test_data): Likewise.
15446         (lgamma_test_data): Likewise.
15447         (pow_test_data): Likewise.
15448         (tgamma_test_data): Likewise.
15449         (yn_test_data): Remove duplicate test of overflow.
15450
15451         * math/libm-test.inc (struct test_cc_c_data): New type.
15452         (RUN_TEST_LOOP_cc_c): New macro.
15453         (cpow_test_data): New variable.
15454         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
15455
15456         * math/libm-test.inc (struct test_f_L_data): New type.
15457         (RUN_TEST_LOOP_f_L): New macro.
15458         (llrint_test_data): New variable.
15459         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
15460         (llrint_tonearest_test_data): New variable.
15461         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
15462         (llrint_towardzero_test_data): New variable.
15463         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
15464         (llrint_downward_test_data): New variable.
15465         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
15466         (llrint_upward_test_data): New variable.
15467         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
15468         (llround_test_data): New variable.
15469         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
15470
15471 2013-05-13  Peter Collingbourne  <pcc@google.com>
15472
15473         * math/atest-exp2.c (get_log2): Remove const attribute.
15474
15475 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
15476
15477         * math/libm-test.inc (struct test_f_l_data): New type.
15478         (RUN_TEST_LOOP_f_l): New macro.
15479         (lrint_test_data): New variable.
15480         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
15481         (lrint_tonearest_test_data): New variable.
15482         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
15483         (lrint_towardzero_test_data): New variable.
15484         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
15485         (lrint_downward_test_data): New variable.
15486         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
15487         (lrint_upward_test_data): New variable.
15488         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
15489         (lround_test_data): New variable.
15490         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
15491
15492 2013-05-15  Peter Collingbourne  <pcc@google.com>
15493
15494         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
15495         (EXTRACT_WORDS64) Use where appropriate.
15496         (INSERT_WORDS64) Likewise.
15497
15498         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
15499         constraints with x constraints.
15500         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
15501
15502         * malloc/obstack.c (_obstack_compat): Add initializer.
15503
15504 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
15505
15506         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
15507         si_trapno and add si_addr_lsb to _sifields.sigfault.
15508         (si_trapno): Remove macro.
15509         (si_addr_lsb): Define new macro.
15510         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
15511
15512 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
15513
15514         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
15515         instead of TEST_f_l.
15516         (llrint_test_tonearest): Likewise.
15517         (llrint_test_towardzero): Likewise.
15518         (llrint_test_downward): Likewise.
15519         (llrint_test_upward): Likewise.
15520         (llround_test): Likewise.
15521
15522         * math/libm-test.inc (struct test_f_i_data): Add comment.
15523         (RUN_TEST_LOOP_f_b): New macro.
15524         (RUN_TEST_LOOP_f_b_tg): Likewise.
15525         (finite_test_data): New variable.
15526         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
15527         (isfinite_test_data): New variable.
15528         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15529         (isinf_test_data): New variable.
15530         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15531         (isnan_test_data): New variable.
15532         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15533         (isnormal_test_data): New variable.
15534         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15535         (issignaling_test_data): New variable.
15536         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15537         (signbit_test_data): New variable.
15538         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15539
15540         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
15541         with INVALID_EXCEPTION.
15542         (acosh_test_data): Likewise.
15543         (asin_test_data): Likewise.
15544         (atanh_test_data): Likewise.
15545         (fmod_test_data): Likewise.
15546         (log_test_data): Likewise.
15547         (log10_test_data): Likewise.
15548         (log2_test_data): Likewise.
15549         (pow_test_data): Likewise.
15550         (sqrt_test_data): Likewise.
15551         (y0_test_data): Likewise.
15552         (y1_test_data): Likewise.
15553         (yn_test_data): Likewise.
15554
15555         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
15556         function contents.
15557
15558         * math/libm-test.inc (struct test_ff_i_data): New type.
15559         (RUN_TEST_LOOP_ff_i_tg): New macro.
15560         (isgreater_test_data): New variable.
15561         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15562         (isgreaterequal_test_data): New variable.
15563         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15564         (isless_test_data): New variable.
15565         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15566         (islessequal_test_data): New variable.
15567         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15568         (islessgreater_test_data): New variable.
15569         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15570         (isunordered_test_data): New variable.
15571         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15572
15573 2013-05-14  David S. Miller  <davem@davemloft.net>
15574
15575         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15576
15577 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
15578
15579         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
15580
15581         * math/libm-test.inc (struct test_fF_f1_data): Change type of
15582         extra_test to int.
15583         (struct test_f_i_data): Change type of max_ulp to int.
15584
15585         * math/libm-test.inc (test_ffI_f1_data): New type.
15586         (RUN_TEST_LOOP_ffI_f1): New macro.
15587         (remquo_test_data): New variable.
15588         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
15589
15590         * setjmp/tst-setjmp-fp.c: New file.
15591         * setjmp/Makefile (tests): Add tst-setjmp-fp.
15592         (link-libm): New variable.
15593         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
15594
15595         * math/libm-test.inc (struct test_f_i_data): New type.
15596         (RUN_TEST_LOOP_f_i): New macro.
15597         (RUN_TEST_LOOP_f_i_tg): Likewise.
15598         (fpclassify_test_data): New variable.
15599         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
15600         (ilogb_test_data): New variable.
15601         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
15602
15603         * math/libm-test.inc (scalbln_test): Correct function name in END
15604         call.
15605
15606         * math/libm-test.inc (struct test_f_f1_data): Add comment.
15607         (RUN_TEST_LOOP_fI_f1): New macro.
15608         (frexp_test_data): New variable.
15609         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
15610
15611         * math/libm-test.inc (struct test_fF_f1_data): New type.
15612         (RUN_TEST_LOOP_fF_f1): New macro.
15613         (modf_test_data): New variable.
15614         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
15615
15616         * math/libm-test.inc (struct test_f_f1_data): New type.
15617         (RUN_TEST_LOOP_f_f1): New macro.
15618         (gamma_test_data): New variable.
15619         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
15620         (lgamma_test_data): New variable.
15621         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
15622
15623 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
15624
15625         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
15626         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
15627         (main): Comment "tls" pseudo-hwcap.
15628
15629 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
15630
15631         * math/libm-test.inc (struct test_fl_f_data): New type.
15632         (RUN_TEST_LOOP_fl_f): New variable.
15633         (scalbln_test_data): New variable.
15634         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
15635
15636         * math/libm-test.inc (struct test_fi_f_data): New type.
15637         (RUN_TEST_LOOP_fi_f): New macro.
15638         (ldexp_test_data): New variable.
15639         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
15640         (scalbn_test_data): New variable.
15641         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
15642
15643         * math/libm-test.inc (struct test_c_f_data): New type.
15644         (RUN_TEST_LOOP_c_f): New macro.
15645         (cabs_test_data): New variable.
15646         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
15647         (carg_test_data): New variable.
15648         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
15649         (cimag_test_data): New variable.
15650         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
15651         (creal_test_data): New variable.
15652         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
15653
15654         * math/libm-test.inc (struct test_if_f_data): New type.
15655         (RUN_TEST_LOOP_if_f): New macro.
15656         (jn_test_data): New variable.
15657         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
15658         (yn_test_data): New variable.
15659         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
15660
15661         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
15662
15663 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15664
15665         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
15666         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
15667
15668 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15669
15670         * benchtests/Makefile (CPPFLAGS-nonlib): Add
15671         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
15672         (bench-deps): Add bench-timing.h.
15673         * benchtests-bench-skeleton.c: Include bench-timing.h.
15674         (main): Use TIMING_* macros instead of clock_gettime.
15675         * benchtests/bench-timing.h: New file.
15676
15677         [BZ #14582]
15678         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
15679         Renamed from _LIB_VERSION.
15680         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
15681
15682 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
15683
15684         * math/libm-test.inc (struct test_fff_f_data): New type.
15685         (RUN_TEST_LOOP_fff_f): New macro.
15686         (fma_test_data): New variable.
15687         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
15688         (fma_towardzero_test_data): New variable.
15689         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
15690         (fma_downward_test_data): New variable.
15691         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
15692         (fma_upward_test_data): New variable.
15693         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
15694
15695         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
15696         (struct test_c_c_data): New type.
15697         (RUN_TEST_LOOP_c_c): New macro.
15698         (cacos_test_data): New variable.
15699         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
15700         (cacosh_test_data): New variable.
15701         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
15702         (casin_test_data): New variable.
15703         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
15704         (casinh_test_data): New variable.
15705         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
15706         (catan_test_data): New variable.
15707         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
15708         (catanh_test_data): New variable.
15709         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
15710         (ccos_test_data): New variable.
15711         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
15712         (ccosh_test_data): New variable.
15713         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
15714         (cexp_test_data): New variable.
15715         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
15716         (clog_test_data): New variable.
15717         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
15718         (clog10_test_data): New variable.
15719         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
15720         (conj_test_data): New variable.
15721         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
15722         (cproj_test_data): New variable.
15723         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
15724         (csin_test_data): New variable.
15725         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
15726         (csinh_test_data): New variable.
15727         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
15728         (csqrt_test_data): New variable.
15729         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
15730         (ctan_test_data): New variable.
15731         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
15732         (ctan_tonearest_test_data): New variable.
15733         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
15734         (ctan_towardzero_test_data): New variable.
15735         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
15736         (ctan_downward_test_data): New variable.
15737         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
15738         (ctan_upward_test_data): New variable.
15739         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
15740         (ctanh_test_data): New variable.
15741         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
15742         (ctanh_tonearest_test_data): New variable.
15743         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
15744         (ctanh_towardzero_test_data): New variable.
15745         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
15746         (ctanh_downward_test_data): New variable.
15747         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
15748         (ctanh_upward_test_data): New variable.
15749         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
15750         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
15751         of BUILD_COMPLEX.
15752
15753         * math/libm-test.inc (struct test_ff_f_data): New type.
15754         (struct test_ff_f_data_nexttoward): Likewise.
15755         (RUN_TEST_LOOP_2_f): New macro.
15756         (RUN_TEST_LOOP_ff_f): Likewise.
15757         (atan2_test_data): New variable.
15758         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
15759         (copysign_test_data): New variable.
15760         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
15761         (fdim_test_data): New variable.
15762         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
15763         (fmax_test_data): New variable.
15764         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
15765         (fmin_test_data): New variable.
15766         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
15767         (fmod_test_data): New variable.
15768         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
15769         (hypot_test_data): New variable.
15770         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
15771         (nextafter_test_data): New variable.
15772         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
15773         (nexttoward_test_data): New variable.
15774         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
15775         (pow_test_data): New variable.
15776         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
15777         (pow_tonearest_test_data): New variable.
15778         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
15779         (pow_towardzero_test_data): New variable.
15780         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
15781         (pow_downward_test_data): New variable.
15782         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
15783         (pow_upward_test_data): New variable.
15784         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
15785         (remainder_test_data): New variable.
15786         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
15787         (scalb_test_data): New variable.
15788         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
15789         * sysdeps/i386/fpu/libm-test-ulps: Update.
15790
15791 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
15792
15793         * math/libm-test.inc (fma_test): Use max_value instead of local
15794         variable fltmax.
15795         (nextafter_test): Likewise.
15796
15797         * math/libm-test.inc (acos_towardzero_test_data): New variable.
15798         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
15799         (acos_downward_test_data): New variable.
15800         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
15801         (acos_upward_test_data): New variable.
15802         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
15803         (acosh_test_data): New variable.
15804         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
15805         (asin_test_data): New variable.
15806         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
15807         (asin_tonearest_test_data): New variable.
15808         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
15809         (asin_towardzero_test_data): New variable.
15810         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
15811         (asin_downward_test_data): New variable.
15812         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
15813         (asin_upward_test_data): New variable.
15814         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
15815         (asinh_test_data): New variable.
15816         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
15817         (atan_test_data): New variable.
15818         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
15819         (atanh_test_data): New variable.
15820         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
15821         (cbrt_test_data): New variable.
15822         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
15823         (ceil_test_data): New variable.
15824         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
15825         (cos_test_data): New variable.
15826         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
15827         (cos_tonearest_test_data): New variable.
15828         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
15829         (cos_towardzero_test_data): New variable.
15830         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
15831         (cos_downward_test_data): New variable.
15832         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
15833         (cos_upward_test_data): New variable.
15834         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
15835         (cosh_test_data): New variable.
15836         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
15837         (cosh_tonearest_test_data): New variable.
15838         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
15839         (cosh_towardzero_test_data): New variable.
15840         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
15841         (cosh_downward_test_data): New variable.
15842         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
15843         (cosh_upward_test_data): New variable.
15844         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
15845         (erf_test_data): New variable.
15846         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
15847         (erfc_test_data): New variable.
15848         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
15849         (exp_test_data): New variable.
15850         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
15851         (exp_tonearest_test_data): New variable.
15852         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
15853         (exp_towardzero_test_data): New variable.
15854         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
15855         (exp_downward_test_data): New variable.
15856         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
15857         (exp_upward_test_data): New variable.
15858         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
15859         (exp10_test_data): New variable.
15860         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
15861         (exp2_test_data): New variable.
15862         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
15863         (expm1_test_data): New variable.
15864         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
15865         (fabs_test_data): New variable.
15866         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
15867         (floor_test_data): New variable.
15868         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
15869         (j0_test_data): New variable.
15870         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
15871         (j1_test_data): New variable.
15872         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
15873         (log_test_data): New variable.
15874         (log_test): Run tests with RUN_TEST_LOOP_f_f.
15875         (log10_test_data): New variable.
15876         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
15877         (log1p_test_data): New variable.
15878         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
15879         (log2_test_data): New variable.
15880         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
15881         (logb_test_data): New variable.
15882         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
15883         (logb_downward_test_data): New variable.
15884         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
15885         (nearbyint_test_data): New variable.
15886         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
15887         (rint_test_data): New variable.
15888         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
15889         (rint_tonearest_test_data): New variable.
15890         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
15891         (rint_towardzero_test_data): New variable.
15892         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
15893         (rint_downward_test_data): New variable.
15894         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
15895         (rint_upward_test_data): New variable.
15896         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
15897         (round_test_data): New variable.
15898         (round_test): Run tests with RUN_TEST_LOOP_f_f.
15899         (sin_test_data): New variable.
15900         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
15901         (sin_tonearest_test_data): New variable.
15902         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
15903         (sin_towardzero_test_data): New variable.
15904         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
15905         (sin_downward_test_data): New variable.
15906         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
15907         (sin_upward_test_data): New variable.
15908         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
15909         (sinh_test_data): New variable.
15910         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
15911         (sinh_tonearest_test_data): New variable.
15912         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
15913         (sinh_towardzero_test_data): New variable.
15914         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
15915         (sinh_downward_test_data): New variable.
15916         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
15917         (sinh_upward_test_data): New variable.
15918         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
15919         (sqrt_test_data): New variable.
15920         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
15921         (tan_test_data): New variable.
15922         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
15923         (tan_tonearest_test_data): New variable.
15924         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
15925         (tan_towardzero_test_data): New variable.
15926         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
15927         (tan_downward_test_data): New variable.
15928         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
15929         (tan_upward_test_data): New variable.
15930         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
15931         (tanh_test_data): New variable.
15932         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
15933         (tgamma_test_data): New variable.
15934         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
15935         (trunc_test_data): New variable.
15936         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
15937         (y0_test_data): New variable.
15938         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
15939         (y1_test_data): New variable.
15940         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
15941         (significand_test_data): New variable.
15942         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
15943
15944 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
15945
15946         [BZ #12387]
15947         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
15948
15949 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15950
15951         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
15952
15953 2013-05-10  Andreas Jaeger  <aj@suse.de>
15954
15955         [BZ #15448]
15956         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
15957         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
15958
15959 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
15960
15961         * math/gen-libm-test.pl (adjust_arg): New function.
15962         (special_functions): Handle generating output in both functions
15963         and arrays.
15964         (parse_args): Likewise.
15965         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
15966         $in_func argument to parse_args.
15967         * math/libm-test.inc (struct test_f_f_data): New type.
15968         (IF_ROUND_INIT_): New macro.
15969         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
15970         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
15971         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
15972         (IF_ROUND_INIT_FE_UPWARD): Likewise.
15973         (ROUND_RESTORE_): Likewise.
15974         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
15975         (ROUND_RESTORE_FE_TONEAREST): Likewise.
15976         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
15977         (ROUND_RESTORE_FE_UPWARD): Likewise.
15978         (RUN_TEST_LOOP_f_f): New macro.
15979         (acos_test_data): New variable.
15980         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
15981         (acos_tonearest_test_data): New variable.
15982         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
15983
15984 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15985
15986         * benchtests/bench-skeleton.c (startup): Fix coding style.
15987
15988 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
15989
15990         [BZ #6809]
15991         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
15992         negative infinity argument.
15993         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
15994         negative infinity argument.
15995         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
15996         negative infinity argument.
15997         * math/libm-test.inc (tgamma_test): Expect errno to be set for
15998         domain errors.
15999
16000 2013-05-10  Florian Weimer  <fweimer@redhat.com>
16001
16002         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
16003         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
16004         * iconv/iconv_prog.c (main): Likewise.
16005         * locale/programs/charmap-dir.c (charmap_readdir)
16006         (fopen_uncompressed): Likewise.
16007         * locale/programs/locfile.c (siblings_uncached)
16008         (write_locale_data): Use lstat64 instead of lstat.
16009         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
16010         stat.
16011
16012 2013-05-10  Andreas Jaeger  <aj@suse.de>
16013
16014         [BZ #15395]
16015         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
16016         localization.
16017         Include <locale.h>.
16018
16019 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
16020
16021         * elf/dl-close.c (_dl_close_worker): Add comments.
16022
16023 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
16024
16025         [BZ #15359]
16026         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
16027         high part of pi/2.
16028         (__ieee754_rem_pio2l): Update comments.
16029
16030         [BZ #15429]
16031         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
16032         high part of pi/2.
16033         (__ieee754_rem_pio2l): Update comments.
16034
16035         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
16036         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
16037
16038         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
16039         M_PI_4l.
16040
16041         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
16042         (M_PI_34_LOG10El): Likewise.
16043         (M_PI2_LOG10El): Likewise.
16044         (M_PI4_LOG10El): Likewise.
16045         (M_PI_LOG10El): Likewise.
16046
16047 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16048
16049         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16050
16051 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
16052
16053         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
16054         (MINUS_ZERO_INIT): Likewise.
16055         (PLUS_INFTY_INIT): Likewise.
16056         (MINUS_INFTY_INIT): Likewise.
16057         (QNAN_VALUE_INIT): Likewise.
16058         (MAX_VALUE_INIT): Likewise.
16059         (MIN_VALUE_INIT): Likewise.
16060         (MIN_SUBNORM_VALUE_INIT): Likewise.
16061         (plus_zero): Initialize with PLUS_ZERO_INIT.
16062         (minus_zero): Initialize with MINUS_ZERO_INIT.
16063         (plus_infty): Initialize with PLUS_INFTY_INIT.
16064         (minus_infty): Initialize with MINUS_INFTY_INIT.
16065         (qnan_value): Initialize with QNAN_VALUE_INIT.
16066         (max_value): Initialize with MAX_VALUE_INIT.
16067         (min_value): Initialize with MIN_VALUE_INIT.
16068         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
16069
16070         * math/libm-test.inc (RUN_TEST_if_f): New macro.
16071         (jn_test): Use TEST_if_f instead of TEST_ff_f.
16072         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
16073         (yn_test): Use TEST_if_f instead of TEST_ff_f.
16074
16075         * math/libm-test.inc (RUN_TEST_f_f): New macro.
16076         (RUN_TEST_2_f): Likewise.
16077         (RUN_TEST_ff_f): Likewise.
16078         (RUN_TEST_fi_f): Likewise.
16079         (RUN_TEST_fl_f): Likewise.
16080         (RUN_TEST_fff_f): Likewise.
16081         (RUN_TEST_c_f): Likewise.
16082         (RUN_TEST_f_f1): Likewise.
16083         (RUN_TEST_fF_f1): Likewise.
16084         (RUN_TEST_fI_f1): Likewise.
16085         (RUN_TEST_ffI_f1): Likewise.
16086         (RUN_TEST_c_c): Likewise.
16087         (RUN_TEST_cc_c): Likewise.
16088         (RUN_TEST_f_i): Likewise.
16089         (RUN_TEST_f_i_tg): Likewise.
16090         (RUN_TEST_ff_i_tg): Likewise.
16091         (RUN_TEST_f_b): Likewise.
16092         (RUN_TEST_f_b_tg): Likewise.
16093         (RUN_TEST_f_l): Likewise.
16094         (RUN_TEST_f_L): Likewise.
16095         (RUN_TEST_sincos): Likewise.
16096         * math/gen-libm-test.pl (new_test): Take new argument to indicate
16097         whether to show exceptions.  Do not include ");\n" in return
16098         value.
16099         (special_functions): Output call to RUN_TEST_sincos instead of
16100         check_float calls.  Update calls to new_test.
16101         (parse_args): Output call to single RUN_TEST_* macro instead of
16102         check_* calls and other assignments.  Update calls to new_test.
16103
16104         [BZ #2546]
16105         [BZ #2560]
16106         [BZ #5159]
16107         [BZ #15426]
16108         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
16109         input to result for tgamma overflow.
16110         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
16111         (gamma_coeff): New variable.
16112         (NCOEFF): New macro.
16113         (gamma_positive): New function.
16114         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
16115         underflow here.  Use gamma_positive instead of exp (lgamma) for
16116         other arguments.
16117         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
16118         (gamma_coeff): New variable.
16119         (NCOEFF): New macro.
16120         (gammaf_positive): New function.
16121         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
16122         underflow here.  Use gamma_positive instead of exp (lgamma) for
16123         other arguments.
16124         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
16125         (gamma_coeff): New variable.
16126         (NCOEFF): New macro.
16127         (gammal_positive): New function.
16128         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
16129         underflow here.  Use gamma_positive instead of exp (lgamma) for
16130         other arguments.
16131         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
16132         (gamma_coeff): New variable.
16133         (NCOEFF): New macro.
16134         (gammal_positive): New function.
16135         (__ieee754_gammal_r): Handle positive infinity, overflow and
16136         underflow here.  Handle NaN the same as positive infinity.  Remove
16137         check x < 0xffffffff for negative integers.  Use gamma_positive
16138         instead of exp (lgamma) for other arguments.
16139         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
16140         (gamma_coeff): New variable.
16141         (NCOEFF): New macro.
16142         (gammal_positive): New function.
16143         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
16144         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
16145         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
16146         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
16147         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
16148         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
16149         * sysdeps/generic/math_private.h (__gamma_productf): New
16150         prototype.
16151         (__gamma_product): Likewise.
16152         (__gamma_productl): Likewise.
16153         * math/Makefile (libm-calls): Add gamma_product.
16154         * math/libm-test.inc (tgamma_test): Add more tests.
16155         * sysdeps/i386/fpu/libm-test-ulps: Update.
16156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16157
16158 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
16159
16160         * benchtests/bench-skeleton.c (main): Preheat CPU.
16161
16162 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
16163
16164         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
16165
16166 2013-05-07  Roland McGrath  <roland@hack.frob.com>
16167
16168         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
16169         and _dl_skip_args_internal.
16170
16171 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
16172
16173         * manual/message.texi (Message Translation): Talk about users.
16174         Message to key mapping impacts design.
16175
16176 2013-05-06  Roland McGrath  <roland@hack.frob.com>
16177
16178         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
16179
16180         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
16181
16182         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
16183         * sysdeps/wordsize-64/glob64.c: ... here.
16184
16185         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
16186         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
16187         New macros.
16188
16189         * debug/getlogin_r_chk.c: Moved to ...
16190         * login/getlogin_r_chk.c: ... here.
16191         * debug/Makefile (routines): Move getlogin_r_chk to ...
16192         * login/Makefile (routines): ... here.
16193         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
16194         * login/Versions (libc: GLIBC_2.4): ... here.
16195
16196         * io/poll.c (__poll): Renamed from poll.
16197         Add libc_hidden_def.
16198         (poll): Define as weak alias.
16199
16200         * debug/ptsname_r_chk.c: Moved to ...
16201         * login/ptsname_r_chk.c: ... here.
16202         * debug/Makefile (routines): Move ptsname_r_chk to ...
16203         * login/Makefile (routines): ... here.
16204         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
16205         * login/Versions (libc: GLIBC_2.4): ... here.
16206
16207         * posix/getlogin.c: Moved to ...
16208         * login/getlogin.c: ... here.
16209         * posix/getlogin_r.c: Moved to ...
16210         * login/getlogin_r.c: ... here.
16211         * posix/getlogin_r.c: Moved to ...
16212         * login/getlogin_r.c: ... here.
16213         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
16214         * login/Makefile (routines): ... here.
16215         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
16216         * login/Versions (libc: GLIBC_2.0): ... here.
16217
16218         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
16219         (setrlimit): Define as weak alias.
16220
16221         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
16222         Call __ names for open, ftruncate, and close.
16223         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
16224         (truncate): Define as weak alias.
16225
16226 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
16227
16228         * math/gen-libm-test.pl (parse_args): Initialize x before each
16229         test of frexp, modf and remquo.
16230
16231         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
16232         test signgam value.
16233
16234 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16235
16236         [BZ #15418]
16237         [BZ #15419]
16238         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
16239         internal tests.
16240         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16241
16242 2013-05-06  Roland McGrath  <roland@hack.frob.com>
16243
16244         * elf/dl-writev.h: New file.
16245         * elf/dl-misc.c: Include it.
16246         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
16247         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
16248
16249 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
16250
16251         * math/libm-test.inc (noXFails): Remove variable.
16252         (noXPasses): Likewise.
16253         (BUILD_COMPLEX_INT): Remove macro.
16254         (print_screen): Remove xfail argument.
16255         (print_screen_max_error): Likewise.
16256         (update_stats): Likewise.
16257         (print_max_error): Likewise.  Update calls to other affected
16258         functions.
16259         (print_complex_max_error): Likewise.
16260         (test_single_exception): Update calls to print_screen.
16261         (test_single_errno): Likewise.
16262         (check_float_internal): Remove xfail argument.  Update calls to
16263         other affected functions.
16264         (check_float): Likewise.
16265         (check_complex): Likewise.
16266         (check_int): Likewise.
16267         (check_long): Likewise.
16268         (check_bool): Likewise.
16269         (check_longlong): Likewise.
16270         (main): Don't print noXFails and noXPasses.
16271         * math/gen-libm-test.pl (top level): Don't mention expected
16272         failure handling in comment.
16273         (new_test): Don't handle expected failures.
16274         (parse_args): Don't mention expected failure handling in comment.
16275         (generate_testfile): Don't handle expected failures.
16276         (parse_ulps): Likewise.
16277         (print_ulps_file): Likewise.
16278         (get_failure): Remove function.
16279         (output_test): Don't handle expected failures.
16280         * make/README.libm-test: Don't mention expected failure handling.
16281
16282         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
16283         (minus_zero): Likewise.
16284         (plus_infty): Likewise.
16285         (minus_infty): Likewise.
16286         (qnan_value): Likewise.
16287         (max_value): Likewise.
16288         (min_value): Likewise.
16289         (min_subnorm_value): Likewise.
16290         (initialize): Do not initialize those variables dynamically.
16291
16292 2013-05-03  Roland McGrath  <roland@hack.frob.com>
16293
16294         * io/open.c (__open_2): Moved to ...
16295         * io/open_2.c: ... this new file.
16296         * io/open64.c (__open64_2): Moved to ...
16297         * io/open64_2.c: ... this new file.
16298         * io/openat.c (__openat_2): Moved to ...
16299         * io/openat_2.c: ... this new file.
16300         * io/openat64.c (__openat64_2): Moved to ...
16301         * io/openat64_2.c: ... this new file.
16302         * io/Makefile (routines): Add them.
16303         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
16304         * sysdeps/unix/sysv/linux/open_2.c: File removed.
16305         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
16306         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
16307         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
16308         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
16309         (__openat64): Add hidden_ver.
16310         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
16311         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
16312
16313         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
16314         Separately conditionalize setting of GLRO(dl_sysinfo) so
16315         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
16316         as well, but the actual setting is only under [NEED_DL_SYSINFO].
16317
16318 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16319
16320         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
16321         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
16322         definition.
16323         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
16324         * sysdeps/unix/sysv/linux/powerpc/init-first.c
16325         (_libc_vdso_platform_setup): Add __vdso_time initialization.
16326         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
16327         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
16328
16329 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
16330
16331         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
16332         test signgam value.
16333
16334         * math/libm-test.inc (hypot_test): Do not use
16335         IGNORE_ZERO_INF_SIGN.
16336
16337 2013-05-03  Andreas Jaeger  <aj@suse.de>
16338
16339         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
16340         Linux 3.9.
16341         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
16342         (PF_MAX): Adjust for VSOCK change.
16343
16344 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16345
16346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16347
16348 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
16349
16350         [BZ #15264]
16351         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
16352         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
16353         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
16354
16355 2013-05-02  David S. Miller  <davem@davemloft.net>
16356
16357         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16358
16359 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
16360
16361         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
16362
16363 2013-05-01  Roland McGrath  <roland@hack.frob.com>
16364
16365         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
16366
16367 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
16368
16369         [BZ #14952]
16370         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
16371         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
16372         Use __attribute__ ((__gnu_inline__)).
16373         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
16374         Don't use __attribute__ ((__gnu_inline__)).
16375
16376 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
16377
16378         [BZ #15423]
16379         * math/s_catan.c (__catan): Handle small real or imaginary part of
16380         input specially to avoid spurious underflow.
16381         * math/s_catanf.c (__catanf): Likewise.
16382         * math/s_catanh.c (__catanh): Likewise.
16383         * math/s_catanhf.c (__catanhf): Likewise.
16384         * math/s_catanhl.c (__catanhl): Likewise.
16385         * math/s_catanl.c (__catanl): Likewise.
16386         * math/libm-test.inc (catan_test): Add more tests.
16387         (catanh_test): Likewise.
16388         * sysdeps/i386/fpu/libm-test-ulps: Update.
16389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16390
16391 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16392
16393         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16394
16395 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
16396
16397         [BZ #15416]
16398         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
16399         accurately for denominator in atan2.
16400         * math/s_catanf.c (__catanf): Likewise.
16401         * math/s_catanh.c (__catanh): Likewise.
16402         * math/s_catanhf.c (__catanhf): Likewise.
16403         * math/s_catanhl.c (__catanhl): Likewise.
16404         * math/s_catanl.c (__catanl): Likewise.
16405         * math/libm-test.inc (catan_test): Add more tests.
16406         (catanh_test): Likewise.
16407         * sysdeps/i386/fpu/libm-test-ulps: Update.
16408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16409
16410 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
16411
16412         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
16413
16414         * benchtests/Makefile (bench): Remove slow benchmarks.
16415         * benchtests/atan-inputs: Add slow benchmark inputs.
16416         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
16417         (BENCH_FUNC): Accept variant offset.
16418         (VARIANT): Define.
16419         * benchtests/bench-skeleton.c (main): Run benchmark for each
16420         variant.
16421         * benchtests/cos-inputs: Add slow benchmark inputs.
16422         * benchtests/exp-inputs: Likewise.
16423         * benchtests/pow-inputs: Likewise.
16424         * benchtests/sin-inputs: Likewise.
16425         * benchtests/slowatan-inputs: Remove.
16426         * benchtests/slowatan.c: Remove.
16427         * benchtests/slowcos-inputs: Remove.
16428         * benchtests/slowcos.c: Remove.
16429         * benchtests/slowexp-inputs: Remove.
16430         * benchtests/slowexp.c: Remove.
16431         * benchtests/slowpow-inputs: Remove.
16432         * benchtests/slowpow.c: Remove.
16433         * benchtests/slowsin-inputs: Remove.
16434         * benchtests/slowsin.c: Remove.
16435         * benchtests/slowtan-inputs: Remove.
16436         * benchtests/slowtan.c: Remove.
16437         * benchtests/tan-inputs: Add slow benchmark inputs.
16438         * scripts/bench.pl: Parse comments and directives.
16439
16440         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
16441         in CPPFLAGS.
16442         ($(objpfx)bench-%.c): Remove *-ITER.
16443         * benchtests/bench-modf.c: Remove definition of ITER.
16444         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
16445         (main): Loop for DURATION seconds instead of fixed number of
16446         iterations.
16447         * scripts/bench.pl: Don't expect iterations in parameters.
16448
16449 2013-04-29  Roland McGrath  <roland@hack.frob.com>
16450
16451         * io/fchdir.c (__fchdir): Renamed from fchdir.
16452         (fchdir): Define as weak alias.
16453
16454 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
16455
16456         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
16457         (ERRNO_EDOM): Likewise.
16458         (ERRNO_ERANGE): Likewise.
16459         (noErrnoTests): New variable.
16460         (init_max_error): Set errno to 0.
16461         (test_single_errno): New function.
16462         (test_errno): Likewise.
16463         (check_float_internal): Call test_errno.  Set errno to 0.
16464         (check_complex): Refer to errno tests in comment.
16465         (check_int): Call test_errno.  Set errno to 0.
16466         (check_long): Likewise.
16467         (check_bool): Likewise.
16468         (check_longlong): Likewise.
16469         (cos_test): Use ERRNO_* flags for errno tests instead of
16470         check_int.
16471         (expm1_test): Likewise.
16472         (fmod_test): Likewise.
16473         (ilogb_test): Likewise.
16474         (lgamma_test): Likewise.
16475         (pow_test): Likewise.
16476         (remainder_test): Likewise.
16477         (sin_test): Likewise.
16478         (tan_test): Likewise.
16479         (yn_test): Likewise.
16480         (initialize): Set errno to 0.
16481         (main): Print number of errno tests.
16482         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
16483
16484 2013-04-29  Andreas Jaeger  <aj@suse.de>
16485
16486         [BZ #15084]
16487         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
16488         and RES_USEVC.
16489
16490         [BZ #15085]
16491         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
16492         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
16493         unimplemented.
16494
16495         [BZ #15380]
16496         * stdlib/random.c (__initstate): Return NULL if
16497         __initstate fails.
16498
16499         [BZ #15086]
16500         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
16501         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
16502         RES_SNGLKUPREOP.
16503
16504 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16505
16506         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16507
16508 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
16509
16510         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
16511         of individual tests.
16512         (casin_test): Likewise.
16513         (casinh_test): Likewise.
16514
16515 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
16516
16517         [BZ #15409]
16518         * math/s_catan.c (__catan): Handle arguments with large real or
16519         imaginary part separately without squaring.
16520         * math/s_catanf.c (__catanf): Likewise.
16521         * math/s_catanh.c (__catanh): Likewise.
16522         * math/s_catanhf.c (__catanhf): Likewise.
16523         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16524         and redefine.
16525         (__catanhl): Handle arguments with large real or imaginary part
16526         separately without squaring.
16527         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16528         and redefine.
16529         (__catanl): Handle arguments with large real or imaginary part
16530         separately without squaring.
16531         * math/libm-test.inc (catan_test): Add more tests.
16532         (catanh_test): Likewise.
16533         * sysdeps/i386/fpu/libm-test-ulps: Update.
16534         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16535
16536 2013-04-27  Andreas Jaeger  <aj@suse.de>
16537
16538         [BZ #15007]
16539         * stdlib/stdlib.h: Update guards for qecvt.
16540         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
16541         <stdlib.h>.
16542
16543 2013-04-27  Allan McRae  <allan@archlinux.org>
16544
16545         * sysdeps/i386/fpu/libm-test-ulps: Update.
16546
16547 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
16548
16549         [BZ #15406]
16550         * math/s_catan.c: Include <float.h>.
16551         (__catan): Ensure underflow exception occurs for underflowed
16552         result.
16553         * math/s_catanf.c: Include <float.h>.
16554         (__catanf): Ensure underflow exception occurs for underflowed
16555         result.
16556         * math/s_catanh.c: Include <float.h>.
16557         (__catanh): Ensure underflow exception occurs for underflowed
16558         result.
16559         * math/s_catanhf.c: Include <float.h>.
16560         (__catanhf): Ensure underflow exception occurs for underflowed
16561         result.
16562         * math/s_catanhl.c: Include <float.h>.
16563         (__catanhl): Ensure underflow exception occurs for underflowed
16564         result.
16565         * math/s_catanl.c: Include <float.h>.
16566         (__catanl): Ensure underflow exception occurs for underflowed
16567         result.
16568         * math/libm-test.inc (catan_test): Add more tests.
16569         (catanh_test): Likewise.
16570
16571         [BZ #15405]
16572         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
16573         underflowed result.
16574         * math/s_ccoshf.c (__ccoshf): Likewise.
16575         * math/s_ccoshl.c (__ccoshl): Likewise.
16576         * math/s_csin.c (__csin): Likewise.
16577         * math/s_csinf.c (__csinf): Likewise.
16578         * math/s_csinh.c (__csinh): Likewise.
16579         * math/s_csinhf.c (__csinhf): Likewise.
16580         * math/s_csinhl.c (__csinhl): Likewise.
16581         * math/s_csinl.c (__csinl): Likewise.
16582         * math/libm-test.inc (ccos_test): Add more tests.
16583         (ccosh_test): Likewise.
16584         (csin_test): Likewise.
16585         (csinh_test): Likewise.
16586
16587 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16588
16589         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
16590         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
16591         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
16592         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
16593         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
16594         powerpc/power5+/fpu folders.
16595         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
16596
16597
16598 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
16599
16600         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16601
16602 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
16603
16604         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
16605         additions to variable.
16606         [$(config-machine) = x86_64] (modules-names): Likewise.
16607         ($(objpfx)tst-audit3): Remove dependency.
16608         ($(objpfx)tst-audit3.out): Likewise.
16609         ($(objpfx)tst-audit4): Likewise.
16610         ($(objpfx)tst-audit4.out): Likewise.
16611         ($(objpfx)tst-audit5): Likewise.
16612         ($(objpfx)tst-audit5.out): Likewise.
16613         ($(objpfx)tst-audit6): Likewise.
16614         ($(objpfx)tst-audit6.out): Likewise.
16615         ($(objpfx)tst-audit7): Likewise.
16616         ($(objpfx)tst-audit7.out): Likewise.
16617         (tst-audit3-ENV): Remove variable.
16618         (tst-audit4-ENV): Likewise.
16619         (tst-audit5-ENV): Likewise.
16620         (tst-audit6-ENV): Likewise.
16621         (tst-audit7-ENV): Likewise.
16622         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
16623         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
16624         addition to variable.
16625         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
16626         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
16627         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
16628         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
16629         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
16630         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
16631         tst-audit3, tst-audit4 and tst-audit5.
16632         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
16633         tst-audit6 and tst-audit7.
16634         [$(subdir) = elf] (modules-names): Add audit modules for those
16635         tests.
16636         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
16637         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
16638         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
16639         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
16640         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
16641         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
16642         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
16643         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
16644         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
16645         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
16646         [$(subdir) = elf] (tst-audit3-ENV): New variable.
16647         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
16648         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
16649         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
16650         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
16651         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
16652         Likewise.
16653         [$(subdir) = elf && $(config-cflags-avx) = yes]
16654         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
16655         [$(subdir) = elf && $(config-cflags-avx) = yes]
16656         (CFLAGS-tst-auditmod4a.c): Likewise.
16657         [$(subdir) = elf && $(config-cflags-avx) = yes]
16658         (CFLAGS-tst-auditmod4b.c): Likewise.
16659         [$(subdir) = elf && $(config-cflags-avx) = yes]
16660         (CFLAGS-tst-auditmod6b.c): Likewise.
16661         [$(subdir) = elf && $(config-cflags-avx) = yes]
16662         (CFLAGS-tst-auditmod6c.c): Likewise.
16663         [$(subdir) = elf && $(config-cflags-avx) = yes]
16664         (CFLAGS-tst-auditmod7b.c): Likewise.
16665         * elf/tst-audit3.c: Move to ...
16666         * sysdeps/x86_64/tst-audit3.c: ... here.
16667         * elf/tst-audit4.c: Move to ...
16668         * sysdeps/x86_64/tst-audit4.c: ... here.
16669         * elf/tst-audit5.c: Move to ...
16670         * sysdeps/x86_64/tst-audit5.c: ... here.
16671         * elf/tst-audit6.c: Move to ...
16672         * sysdeps/x86_64/tst-audit6.c: ... here.
16673         * elf/tst-audit7.c: Move to ...
16674         * sysdeps/x86_64/tst-audit7.c: ... here.
16675         * elf/tst-auditmod3a.c: Move to ...
16676         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
16677         * elf/tst-auditmod3b.c: Move to ...
16678         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
16679         * elf/tst-auditmod4a.c: Move to ...
16680         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
16681         * elf/tst-auditmod4b.c: Move to ...
16682         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
16683         * elf/tst-auditmod5a.c: Move to ...
16684         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
16685         * elf/tst-auditmod5b.c: Move to ...
16686         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
16687         * elf/tst-auditmod6a.c: Move to ...
16688         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
16689         * elf/tst-auditmod6b.c: Move to ...
16690         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
16691         * elf/tst-auditmod6c.c: Move to ...
16692         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
16693         * elf/tst-auditmod7a.c: Move to ...
16694         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
16695         * elf/tst-auditmod7b.c: Move to ...
16696         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
16697
16698 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
16699
16700         [BZ #15366]
16701         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
16702         define unconditionally.
16703         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
16704         define unconditionally.
16705         (INT8_C, INT16_C, etc.): Likewise.
16706
16707 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
16708
16709         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
16710         __ehdr_start with hidden visibility.
16711
16712         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
16713
16714 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
16715
16716         * math/libm-test.inc (cos_test): Use accurate hex constants.
16717         (sincost_test): Likewise.
16718
16719 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
16720
16721         * math/libm-test.inc (catan_test): Add more tests.
16722         (catanh_test): Likewise.
16723
16724         * math/s_catanf.c (__catanf): Use suffixed floating-point
16725         constants.
16726         * math/s_catanhf.c (__catanhf): Likewise.
16727         * math/s_catanhl.c (__catanhl): Likewise.
16728         * math/s_catanl.c (__catanl): Likewise.
16729
16730         [BZ #15394]
16731         * math/s_catan.c (__catan): Calculate imaginary part of result
16732         with log1p not log unless computing log of number close to 0.
16733         * math/s_catanf.c (__catanf): Likewise.
16734         * math/s_catanl.c (__catanl): Likewise.
16735         * math/s_catanh.c (__catanh): Calculate real part of result with
16736         log1p not log unless computing log of number close to 0.
16737         * math/s_catanhf.c (__catanhf): Likewise.
16738         * math/s_catanhl.c (__catanhl): Likewise.
16739         * math/libm-test.inc (catan_test): Add more tests.
16740         (catanh_test): Likewise.
16741         * sysdeps/i386/fpu/libm-test-ulps: Update.
16742         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16743
16744 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
16745
16746         * benchtests/Makefile: Mention files in which fast and slow
16747         paths of math functions are implemented.
16748
16749 2013-04-23  Roland McGrath  <roland@hack.frob.com>
16750
16751         * sysdeps/posix/timespec_get.c: New file.
16752
16753 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16754
16755         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
16756         POWER.
16757         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
16758         for POWER.
16759         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
16760         powerpc/power5/fpu folders.
16761         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
16762         * benchtests/Makefile: Add modf testcase.
16763         * benchtests/bench-modf.c: New file: Benchmark test for mo
16764
16765 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
16766
16767         [BZ #14888]
16768         * time/Makefile (tests): Add tst-strptime-whitespace.
16769         * time/strptime_l.c (get_number): Use ISSPACE.
16770         (__strptime_internal): Likewise.
16771         * time/tst-strptime-whitespace.c: New test case.
16772
16773 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
16774
16775         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
16776         member.
16777         (_nss_files_init): Set it here.
16778
16779 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
16780
16781         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
16782         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
16783         unsigned.
16784
16785 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
16786
16787         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
16788
16789 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
16790
16791         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
16792         size just once.
16793
16794 2013-04-21  David S. Miller  <davem@davemloft.net>
16795
16796         * po/ru.po: Update Russion translation from translation project.
16797
16798 2013-04-17  Adam Conrad  <adconrad@0c3.net>
16799
16800         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
16801         and setfsgid.
16802
16803 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
16804
16805         * configure.in: Remove i386 configure warning. Remove i386 case.
16806         * configure: Regenerate.
16807         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
16808         Add example to error message.
16809         * sysdeps/i386/configure: Regenerate.
16810
16811 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
16812
16813         * benchtests/Makefile (bench): Add cos, tan, slowcos and
16814         slowtan.
16815         * benchtests/cos-inputs: New file.
16816         * benchtests/slowcos-inputs: New file.
16817         * benchtests/slowcos.c: New file.
16818         * benchtests/slowtan-inputs: New file.
16819         * benchtests/slowtan.c: New file.
16820         * benchtests/tan-inputs: New file.
16821
16822 2013-04-16  Roland McGrath  <roland@hack.frob.com>
16823
16824         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
16825         considered kosher.
16826
16827 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16828
16829         * benchtests/Makefile: Include cppflags-iterator.mk to add
16830         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
16831
16832         * Makefile.in (bench-clean): New target.
16833         * benchtests/Makefile (bench-clean): Likewise.
16834
16835 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
16836
16837         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
16838
16839 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
16840
16841         * stdio-common/tstdiomisc.c: Fix coding-style violation.
16842
16843 2013-04-15  Andreas Schwab  <schwab@suse.de>
16844
16845         * nscd/grpcache.c (cache_addgr): Properly check for short write.
16846         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16847         * nscd/pwdcache.c (cache_addpw): Likewise.
16848         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
16849         more than recsize.
16850
16851 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
16852
16853         * benchtests/Makefile (bench): Write all output to
16854         bench-out.tmp together.
16855
16856 2013-04-15  Andreas Schwab  <schwab@suse.de>
16857
16858         * nscd/nscd.c (main): Don't fork again after closing files.
16859
16860 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
16861
16862         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
16863
16864         * benchtests/Rules (bench-deps): Collect dependencies into a
16865         single variable.  Add Makefile to dependencies.
16866         ($(objpfx)bench-%.c): Depend on bench-deps.
16867
16868 2013-04-12  Roland McGrath  <roland@hack.frob.com>
16869             Xavier Roche  <roche+kml2@exalead.com>
16870
16871         [BZ #15361]
16872         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
16873         just that it's a file descriptor.
16874         * manual/llio.texi (Synchronizing AIO Operations): Update description
16875         for EBADF error from aio_fsync.
16876
16877 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
16878
16879         * Rules (bench): Move target definition...
16880         * benchtests/Makefile: ... here.
16881
16882 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
16883
16884         * math/libm-test.inc (cos_test): Fix PI/2 test.
16885         (sincos_test): Likewise.
16886         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
16887         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
16888
16889 2013-04-11  Andreas Schwab  <schwab@suse.de>
16890
16891         [BZ #13988]
16892         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
16893         accept exponent character only when digits were seen.
16894         * stdio-common/Makefile (tests): Add bug26.
16895         * stdio-common/bug26.c: New file.
16896
16897         [BZ #14293]
16898         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
16899         non-freeable.
16900
16901 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16902
16903         * Makeconfig (rtld-prefix): Define built linker prefix.
16904         * Rules (run-bench): Use it.
16905         * math/Makefile (run-regen-ulps): Likewise.
16906
16907         * Rules (bench): Remove eval.
16908
16909 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16910             Roland McGrath  <roland@hack.frob.com>
16911             Ondrej Bilka  <neleai@seznam.cz>
16912
16913         [BZ #15346]
16914         * time/getdate.c: Include ctype.h and alloca.h.
16915         (__getdate_r): Trim leading and trailing spaces of input.
16916         * time/tst-getdate.c (tests): Add tests with leading and
16917         trailing spaces.
16918
16919 2013-04-08  Roland McGrath  <roland@hack.frob.com>
16920
16921         [BZ #14280]
16922         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
16923         when computing value.
16924
16925 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
16926
16927         * math/README.libm-test (How can I generate "libm-test-ulps"?):
16928         Use testrun.sh to run libm tests.
16929
16930         [BZ #15309]
16931         * elf/dl-open.c (dl_open_worker): memset all of seen array.
16932
16933 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
16934
16935         [BZ #15264]
16936         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
16937
16938 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
16939
16940         * Makefile.in (regen-ulps): New target.
16941         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
16942         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
16943         [ifneq (no,$(PERL)] (regen-ulps): New target.
16944         [ifeq (no,$(PERL)] (regen-ulps): New target.
16945         * math/libm-test.inc (ulps_file_name): Define.
16946         (output_dir): New variable.
16947         (options): Add "output-dir" option.
16948         (parse_opt): Handle 'o' case.
16949         (main): If output_dir is non-NULL use it as a prefix
16950         otherwise use "".
16951         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
16952
16953 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
16954
16955         [BZ #10060, #10062]
16956         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
16957         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
16958         fail configure if __sync_val_compare_and_swap is not inlined.
16959         * sysdeps/i386/configure: Regenerate.
16960         * configure.in: Build for i686 when configured for i386.
16961         * configure: Regenerate.
16962         * README: Remove i386 reference.
16963
16964 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
16965
16966         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
16967         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16968
16969 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
16970
16971         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
16972         (lmsnanval): New variables.
16973         (F): Add conversion tests.
16974         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
16975         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
16976
16977         * stdio-common/tstdiomisc.c (F): Properly collect individual
16978         tests' results.
16979
16980         [BZ #14686, #15336]
16981         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
16982         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
16983         Instead, use input NaN values or generate a qNaN by arithmetic
16984         operation.  Also fix bugs to comply with the standard.
16985         * math/libm-test.inc (remainder_test): Add more tests.
16986
16987         [BZ #15335, #15342]
16988         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
16989         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
16990         input NaN values or generate a qNaN by arithmetic operation.
16991
16992         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
16993         unreachable code.
16994
16995         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
16996         definitions.
16997
16998 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
16999
17000         [BZ #14478]
17001         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
17002         underflowed result.
17003         * math/s_cexpf.c (__cexpf): Likewise.
17004         * math/s_cexpl.c (__cexpl): Likewise.
17005         * math/libm-test.inc (cexp_test): Add more tests.
17006
17007 2013-04-03  Andreas Schwab  <schwab@suse.de>
17008
17009         [BZ #15330]
17010         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
17011         order arrays from heap if bigger than alloca cutoff.
17012
17013 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
17014
17015         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
17016         (SNAN_TESTS_double): Refer to GCC PR56831.
17017         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
17018         GCC PR56828.
17019
17020 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
17021
17022         * Rules (bench): Move bench.out after the run is complete.
17023
17024         * Rules (bench): Echo currently running benchmark.
17025
17026         * benchtests/Makefile (bench): Add atan and slowatan.
17027         * benchtests/atan-inputs: New file.
17028         * benchtests/slowatan-inputs: New file.
17029         * benchtests/slowatan.c: New file.
17030
17031         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
17032         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
17033         its value.
17034
17035         [BZ #15305]
17036         * sysdeps/unix/sysv/linux/kernel-features.h
17037         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
17038         __ASSUME_XFS_RESTRICTED_CHOWN.
17039         * sysdeps/unix/sysv/linux/pathconf.c
17040         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
17041         Save and restore errno.
17042
17043 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
17044
17045         [BZ #15327]
17046         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
17047         arguments using __kernel_casinh.
17048         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
17049         arguments using __kernel_casinhf.
17050         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
17051         arguments using __kernel_casinhl.
17052         * math/libm-test.inc (cacosh_test): Add more tests.
17053         * sysdeps/i386/fpu/libm-test-ulps: Update.
17054         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17055
17056 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
17057
17058         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
17059         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
17060
17061         * bench/Makefile (bench): Add sin and slowsin.
17062         * benchtests/sin-inputs: New file.
17063         * benchtests/slowsin-inputs: New file.
17064         * benchtests/slowsin.c: New file.
17065
17066         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
17067         (bench): Add slowexp and slowpow.
17068         (exp-ITER): Increase iterations.
17069         (pow-ITER): Likewise.
17070         * benchtests/exp-inputs: Change input.
17071         * benchtests/pow-inputs: Likewise.
17072         * benchtests/slowexp-inputs: New file.
17073         * benchtests/slowexp.c: New file.
17074         * benchtests/slowpow-inputs: New file.
17075         * benchtests/slowpow.c: New file.
17076
17077 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17078
17079         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
17080         instructions.
17081         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
17082         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
17083         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
17084         * benchtests/Makefile: Add rint benchtest.
17085         * benchtests/rint-inputs: Input for rint benchtest.
17086
17087 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17088
17089         * Versions.def (libm): Add GLIBC_2.18.
17090         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
17091         hidden libm prototypes.
17092         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
17093         * math/Makefile (libm-calls): Add s_issignaling.
17094         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
17095         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
17096         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
17097         declaration.
17098         * math/math.h [__USE_GNU] (issignaling): New macro.
17099         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
17100         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
17101         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
17102         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
17103         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
17104         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
17105         * manual/arith.texi (issignaling): New section.
17106         * manual/libm-err-tab.pl (@all_functions): Update comment.
17107         * math/gen-libm-test.pl (parse_args): Apply special handling for
17108         issignaling.
17109         * math/libm-test.inc (print_float, issignaling_test): New
17110         functions.
17111         (check_float_internal): Add issignaling checks.
17112         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
17113         default definition.
17114         * sysdeps/powerpc/math-tests.h: New file.
17115         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
17116         tests.
17117         * math/test-snan.c (TEST_FUNC): Likewise.
17118
17119 2013-03-30  David S. Miller  <davem@davemloft.net>
17120
17121         * po/de.po: Update from translation team.
17122
17123 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
17124
17125         [BZ #10357]
17126         * math/k_casinh.c (__kernel_casinh): Handle arguments with
17127         imaginary part less than 1.0 and real part less than 0.5
17128         specially.
17129         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17130         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17131         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
17132         (cacos_test): Add more tests.
17133         (casin_test): Likewise.
17134         (casinh_test): Likewise.
17135         * sysdeps/i386/fpu/libm-test-ulps: Update.
17136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17137
17138 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
17139
17140         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
17141         ONE with its value.
17142
17143         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
17144         (__pow_mp): Replace ONE and MONE with their values.
17145         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
17146         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
17147         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
17148         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
17149         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
17150         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
17151
17152         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
17153
17154         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
17155         (__pow_mp): Replace ZERO and MZERO with their values.
17156         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
17157         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
17158         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
17159         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
17160         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
17161         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
17162         (__sqr): Likewise.
17163
17164         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
17165
17166         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
17167
17168 2013-03-28  Roland McGrath  <roland@hack.frob.com>
17169
17170         * include/stdlib.h [!SHARED] (__call_tls_dtors):
17171         Declare with __attribute__ ((weak)).
17172         * stdlib/exit.c (__libc_atexit) [!SHARED]:
17173         Call __call_tls_dtors only if it's not NULL.
17174
17175 2013-03-28  Roland McGrath  <roland@hack.frob.com>
17176
17177         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
17178         didn't do it already, then set _dl_phdr and _dl_phnum based on the
17179         magic __ehdr_start linker symbol if it's defined.
17180         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
17181         them up here if it was already done.
17182
17183         * elf/dl-support.c (_dl_phdr): Make pointer to const.
17184         (_dl_aux_init): Use const in cast when setting it.
17185         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
17186         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
17187         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
17188
17189         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
17190         Declare them here.
17191         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
17192         * csu/libc-tls.c: Nor here.
17193         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
17194
17195         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
17196         (__libc_message): Never call vsyslog.
17197
17198 2013-03-28  Alan Modra  <amodra@gmail.com>
17199
17200         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
17201         Define as empty.
17202         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
17203         Likewise.
17204
17205 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17206
17207         [BZ #15214]
17208         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
17209         underflow.
17210         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17211
17212 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17213
17214         [BZ #15304]
17215         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
17216         Don't add gid passed as argument.
17217
17218         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
17219
17220 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
17221
17222         [BZ #15307]
17223         * math/k_casinh.c (__kernel_casinh): Handle arguments with
17224         imaginary part between 1.0 and 1.5 and real part less than 0.5
17225         specially.
17226         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17227         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17228         * math/libm-test.inc (cacos_test): Add more tests.
17229         (casin_test): Likewise.
17230         (casinh_test): Likewise.
17231         * sysdeps/i386/fpu/libm-test-ulps: Update.
17232         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17233
17234 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17235
17236         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
17237         constants.
17238         (norm): Likewise.
17239         (denorm): Likewise.
17240         (__dbl_mp): Likewise.
17241         (add_magnitudes): Likewise.
17242         (sub_magnitudes): Likewise.
17243         (__add): Likewise.
17244         (__sub): Likewise.
17245         (__mul): Likewise.
17246         (__sqr): Likewise.
17247         (__inv): Likewise.
17248         (__dvd): Likewise.
17249
17250         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
17251         commented code.
17252         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
17253         (__dubcos): Likewise.
17254         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
17255         (__ieee754_acos): Likewise.
17256         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
17257         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
17258         (__exp1): Likewise.
17259         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
17260         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
17261         (log1): Likewise.
17262         (my_log2): Likewise.
17263         (checkint): Likewise.
17264         * sysdeps/ieee754/dbl-64/e_remainder.c
17265         (__ieee754_remainder): Likewise.
17266         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
17267         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
17268         (bsloww): Likewise.
17269         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
17270
17271         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
17272         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
17273         MANTISSA_STORE_T to store computations on mantissa.  Use
17274         macros for rounding and division.
17275         (denorm): Likewise.
17276         (__dbl_mp): Likewise.
17277         (add_magnitudes): Likewise.
17278         (sub_magnitudes): Likewise.
17279         (__mul): Likewise.
17280         (__sqr): Likewise.
17281         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
17282         powers of two in terms of TWOPOW macro.
17283         (mp_no): Make type of mantissa as MANTISSA_T.
17284         [!RADIXI]: Define RADIXI.
17285         [!TWO52]: Define TWO52.
17286         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
17287
17288 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17289
17290         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
17291         llroundl symbol when building for PPC32.
17292
17293 2013-03-24  Mark H Weaver  <mhw@netris.org>
17294
17295         * manual/arith.texi (Normalization Functions): Fix prototypes for
17296         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
17297
17298 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17299
17300         [BZ #13889]
17301         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
17302         high value to check if expl overflow.
17303         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
17304         to check for underflow and overflow.
17305         * math/libm-test.inc: Add exp test.
17306
17307 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
17308
17309         [BZ #11120]
17310         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
17311         with NOT_IN_libc.
17312
17313 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17314
17315         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
17316         symbol.
17317
17318 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
17319
17320         * math/gen-libm-test.pl (parse_args, special_functions): Properly
17321         wrap blocks consisting of several statements.
17322
17323         * sysdeps/generic/math-tests.h: New file.
17324         * sysdeps/i386/fpu/math-tests.h: Likewise.
17325         * math/test-snan.c: Include it.
17326         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
17327
17328 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
17329
17330         [BZ #15285]
17331         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
17332         (__ieee754_j0l): Do not improve calculations using cos of twice
17333         input for inputs above LDBL_MAX / 2.0L.
17334         (__ieee754_y0l): Likewise.
17335         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
17336         (__ieee754_j1l): Do not improve calculations using cos of twice
17337         input for inputs above LDBL_MAX / 2.0L.
17338         (__ieee754_y1l): Likewise.
17339         * math/libm-test.inc (j0_test): Add another test.
17340         (j1_test): Likewise.
17341         (y0_test): Likewise.
17342         (y1_test): Likewise.
17343         * sysdeps/i386/fpu/libm-test-ulps: Update.
17344
17345 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17346
17347         * Rules ($(objpfx)bench-%.c): Include code from a C source
17348         file.
17349
17350 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
17351
17352         [BZ #15287]
17353         * math/k_casinh.c (__kernel_casinh): Handle arguments with
17354         imaginary part 1.0 and real part less than 0.5 specially.
17355         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17356         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17357         * math/libm-test.inc (cacos_test): Add more tests.
17358         (casin_test): Likewise.
17359         (casinh_test): Likewise.
17360         * sysdeps/i386/fpu/libm-test-ulps: Update.
17361         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17362
17363 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17364
17365         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
17366         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
17367
17368 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
17369
17370         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
17371         * config.make.in (config-cflags-sse4): Remove variable.
17372         (config-cflags-avx): Likewise.
17373         (config-cflags-sse2avx): Likewise.
17374         (config-cflags-novzeroupper): Likewise.
17375         (config-asflags-i686): Likewise.
17376         (have-mfma4): Likewise.
17377         (have-as-vis3): Likewise.
17378         (MIG): Likewise.
17379         * configure.in (MIG): Do not AC_SUBST.
17380         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
17381         (libc_cv_cc_sse4): Do not AC_SUBST.
17382         (libc_cv_cc_avx): Likewise.
17383         (libc_cv_cc_sse2avx): Likewise.
17384         (libc_cv_cc_novzeroupper): Likewise.
17385         (libc_cv_cc_fma4): Likewise.
17386         (libc_cv_as_i686): Likewise.
17387         (libc_cv_sparc_as_vis3): Likewise.
17388         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
17389         LIBC_CONFIG_VAR.
17390         (config-asflags-i686): Likewise.
17391         (config-cflags-avx): Likewise.
17392         (config-cflags-sse2avx): Likewise.
17393         (have-mfma4): Likewise.
17394         (config-cflags-novzeroupper): Likewise.
17395         * sysdeps/mach/configure.in (MIG): Likewise.
17396         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
17397         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
17398         LIBC_CONFIG_VAR.
17399         (config-cflags-avx): Likewise.
17400         (config-cflags-sse2avx): Likewise.
17401         (have-mfma4): Likewise.
17402         (config-cflags-novzeroupper): Likewise.
17403         * configure: Regenerated.
17404         * sysdeps/i386/configure: Likewise.
17405         * sysdeps/mach/configure: Likewise.
17406         * sysdeps/sparc/configure: Likewise.
17407         * sysdeps/x86_64/configure: Likewise.
17408
17409 2013-03-20  Roland McGrath  <roland@hack.frob.com>
17410
17411         [BZ #14812]
17412         * locale/programs/localedef.c (options): Put N_ translation marker
17413         on argument names, not just descriptions.
17414
17415 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
17416
17417         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
17418
17419 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
17420
17421         [BZ #14176]
17422         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
17423
17424 2013-03-19  Roland McGrath  <roland@hack.frob.com>
17425
17426         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
17427         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
17428         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
17429         [!BEFORE_ABORT] (before_abort): New function.
17430         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
17431         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
17432         (writev_for_fatal): New function.
17433         (WRITEV_FOR_FATAL): New macro; call that.
17434         (backtrace_and_maps): New function.
17435         (BEFORE_ABORT): New macro; call that.
17436         (struct str_list): Type removed.
17437         (__libc_message, __libc_fatal): Functions removed.
17438         Include <sysdeps/posix/libc_fatal.c> instead.
17439
17440 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
17441
17442         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
17443         constants.
17444         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
17445         double constants.
17446
17447 2013-03-19  Andreas Schwab  <schwab@suse.de>
17448
17449         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
17450         * sysdeps/gnu/configure: Regenerate.
17451
17452         * configure.in: Substitute libc_cv_rtlddir.
17453         * configure: Regenerate.
17454         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
17455         * Makeconfig (rtlddir, inst_rtlddir): New variables.
17456         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
17457         * elf/Makefile (install-others, CFLAGS-interp.c)
17458         (ldso_install, common-ldd-rewrite): Likewise.
17459         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
17460         $(inst_slibdir)/$(rtld-installed-name).
17461         * scripts/rellns-sh: Add -p option.
17462         * Makerules (make-shlib-link): Use rellns-sh to get relative name
17463         for source.
17464
17465 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17466
17467         * manual/nptl.texi: Renamed to ...
17468         * manual/threads.texi: ... this.
17469         * manual/Makefile (chapters): Update.
17470
17471 2013-03-18  Roland McGrath  <roland@hack.frob.com>
17472
17473         [BZ #14812]
17474         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
17475         on argument names, not just descriptions.
17476         * malloc/memusagestat.c (options): Likewise.
17477         * nss/getent.c (options): Likewise.
17478
17479 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
17480
17481         [BZ #14812]
17482         * iconv/iconv_prog.c (options): Put N_ translation marker
17483         on argument names, not just descriptions.
17484         * iconv/iconvconfig.c (options): Likewise.
17485
17486 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
17487
17488         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
17489         implementation which is faster on all x86_64 architectures.
17490         Tested on AMD, Intel Nehalem, SNB, IVB.
17491         * sysdeps/x86_64/strnlen.S: Likewise.
17492
17493         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
17494         Remove all multiarch strlen and strnlen versions.
17495         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
17496         Remove strlen and strnlen related parts.
17497
17498         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
17499         Inline strlen part.
17500         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
17501
17502         * sysdeps/x86_64/multiarch/strlen.S: Remove.
17503         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
17504         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
17505         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
17506         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
17507         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
17508
17509 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
17510
17511         * manual/memory.texi (Malloc Tunable Parameters):
17512         Sort parameters alphabetically. Add comments for missing entries.
17513
17514 2013-03-17  David S. Miller  <davem@davemloft.net>
17515
17516         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17517
17518 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
17519
17520         [BZ #15283]
17521         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
17522         for arguments at most half maximum finite value.
17523         * math/libm-test.inc (j0_test): Add more tests.
17524         (j1_test): Likewise.
17525         (y0_test): Likewise.
17526         (y1_test): Likewise.
17527         * sysdeps/i386/fpu/libm-test-ulps: Update.
17528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17529
17530         [BZ #14155]
17531         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
17532         1 / x and functions P and Q for arguments above 0x1p256L.
17533         (__ieee754_y0l): Likewise.
17534         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
17535         (__ieee754_y1l): Likewise.
17536         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
17537         (j1_test): Likewise.
17538         (y0_test): Likewise.
17539         (y1_test): Likewise.
17540
17541 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
17542
17543         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
17544         variable.
17545
17546 2013-03-15  Roland McGrath  <roland@hack.frob.com>
17547
17548         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
17549         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
17550         zero since it's initialized to EXEC_PAGESIZE.
17551
17552         * sysdeps/unix/sysv/linux/ldsodefs.h
17553         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
17554         * sysdeps/generic/ldsodefs.h: ... here.
17555
17556 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
17557
17558         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
17559
17560         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
17561         math/test-snan.c.
17562         * math/test-snan.c: Renamed from
17563         sysdeps/powerpc/fpu/test-powerpc-snan.c.
17564         * math/Makefile (tests): Add test-snan.
17565         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
17566         test-powerpc-snan.
17567
17568         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
17569         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
17570         functions.
17571         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
17572         __builtin_nan family of functions.
17573         * math/libm-test.inc (initialize): Initialize qnan_value with
17574         __builtin_nan family of functions.
17575         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
17576         Remove variables.
17577         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
17578         Remove functions.
17579         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
17580         storage class.  Initialize qNaN_var and sNaN_var with
17581         __builtin_nan and __builtin_nans families of functions,
17582         respectively.
17583
17584         * math/libm-test.inc (acosh_test): Also test with qNaN input.
17585         (sqrt_test): Remove duplicate test with qNaN input.
17586         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
17587         (round_test, signbit_test, significand_test): Note missing +/-Inf
17588         as well as qNaN tests.
17589
17590         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
17591         qNaN_var.  Fix a few strings, too.
17592         * math/libm-test.inc (nan_value): Rename to qnan_value.
17593         * math/gen-libm-test.pl (%beautify): Adjust to that.
17594         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
17595         * math/test-misc.c (main): Likewise.
17596         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
17597         to __qnan_bytes, and __qnan_union, respectively.
17598         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
17599         Likewise.
17600         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
17601         and lqnanval, respectively.
17602         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
17603         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
17604         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
17605         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
17606
17607         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
17608         * math/test-misc.c (main) [__x86_64__]: Enable test for long
17609         doubles.
17610
17611         * math/test-misc.c (main): Fix copy'n'pastos.
17612         * misc/tst-efgcvt.c (special): Likewise.
17613
17614         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
17615         Remove declarations.
17616
17617 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
17618
17619         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
17620         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
17621         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
17622         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
17623
17624 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17625
17626         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
17627         macro to return vdso values correctly in IFUNC implementations.
17628         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
17629         Optimization by using IFUNC.
17630
17631 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
17632             Richard Henderson  <rth@redhat.com>
17633             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17634
17635         * Makefile.in (bench): New target.
17636         * NEWS: Mention the benchmark framework.
17637         * Rules (bench): Likewise.
17638         (binaries-bench): Generate binaries for functions to
17639         benchmark.
17640         * benchtests/Makefile: New makefile for benchmark tests.
17641         * benchtests/bench-skeleton.c: New skeleton file for benchmark
17642         programs.
17643         * benchtests/exp-inputs: New input file for EXP function.
17644         * benchtests/pow-inputs: New input file for POW function.
17645         * scripts/bench.pl: New script to generate source files for
17646         benchmark programs.
17647
17648 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
17649
17650         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
17651         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
17652         computations on mantissa.  Use macros for rounding and
17653         division.
17654         (denorm): Likewise.
17655         (__dbl_mp): Likewise.
17656         (add_magnitudes): Likewise.
17657         (sub_magnitudes): Likewise.
17658         (__mul): Likewise.
17659         (__sqr): Likewise.
17660         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
17661         powers of two in terms of TWOPOW macro.
17662         (mp_no): Make type of mantissa as MANTISSA_T.
17663         [!RADIXI]: Define RADIXI.
17664         [!TWO52]: Define TWO52.
17665         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
17666
17667         * manual/nptl.texi (cindex): Modify threads to pthreads.
17668
17669 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
17670
17671         * sysdeps/x86_64/preconfigure: Regenerated.
17672
17673 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
17674
17675         [BZ #14155]
17676         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
17677         0x1p28 and above.
17678         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
17679         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
17680         0x1p28 and above.
17681         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
17682         * math/libm-test.inc (j0_test): Do not allow one spurious
17683         underflow exception.
17684         (y1_test): Likewise.
17685
17686 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
17687
17688         * manual/Makefile (chapters): Add nptl.
17689         * manual/debug.texi (Debugging Support): Add link to Threads
17690         chapter.
17691         * manual/nptl.texi: New file.
17692
17693         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
17694
17695 2013-03-14  Petr Baudis  <pasky@ucw.cz>
17696
17697         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
17698         for non-NULL pointer before the memory validity test. Pointed
17699         out by Holger Brunck <holger.brunck@keymile.com>.
17700
17701 2013-03-13  Andreas Schwab  <schwab@suse.de>
17702
17703         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
17704         instead of .os.
17705
17706 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
17707
17708         * timezone/zic.c: Update from tzcode 2013b.
17709
17710 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
17711
17712         * manual/install.texi (Configuring and compiling):
17713         Mention i686 and i586.
17714         * INSTALL: Regenerate.
17715
17716 2013-03-12  Roland McGrath  <roland@hack.frob.com>
17717
17718         * sysdeps/init_array/elf-init.c: New file.
17719         * csu/elf-init.c
17720         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
17721         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
17722
17723         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
17724         __gmon_start__ as global, but as static with a .preinit_array pointer.
17725         * sysdeps/init_array/gmon-start.c: New file.  Use that.
17726         * sysdeps/init_array/crti.S: New file, empty except for comments.
17727         * sysdeps/init_array/crtn.S: Likewise.
17728
17729 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
17730
17731         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
17732         definining bcopy.
17733         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17734         Remove Prefer_SSE_for_memop.
17735         * sysdeps/x86_64/multiarch/init-arch.h: Remove
17736         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
17737         HAS_PREFER_SSE_FOR_MEMOP.
17738         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
17739         memset-x86-64.
17740         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
17741         Remove bzero, memset ifunc support.
17742         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
17743         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
17744         * sysdeps/x86_64/multiarch/memset.S: Likewise.
17745         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
17746
17747 2013-03-11  Andreas Schwab  <schwab@suse.de>
17748
17749         [BZ #15234]
17750         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
17751         by SHLIB_COMPAT.
17752         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
17753         (GLIBC_2.16): Remove pthread_atfork.
17754
17755 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
17756
17757         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
17758         (ptestcases.h): Likewise.
17759
17760 2013-03-08  Roland McGrath  <roland@hack.frob.com>
17761
17762         * Makeconfig ($(common-objpfx)config.status): Depend on
17763         sysdeps/*/preconfigure{,.in} too.
17764
17765 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
17766
17767         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
17768         (__free_hook): Use void * instead of __malloc_ptr_t.
17769         (__malloc_hook): Likewise.
17770         (__realloc_hook): Likewise.
17771         (__memalign_hook): Likewise.
17772         (__after_morecore_hook): Likewise.
17773         * malloc/arena.c (save_malloc_hook): Likewise.
17774         (save_free_hook): Likewise.
17775         * malloc/hooks.c (malloc_hook_ini): Likewise.
17776         (realloc_hook_ini): Likewise.
17777         (memalign_hook_ini): Likewise.
17778         * malloc/malloc.c (malloc_hook_ini): Likewise.
17779         (realloc_hook_ini): Likewise.
17780         (memalign_hook_ini): Likewise.
17781         (__free_hook): Likewise.
17782         (__malloc_hook): Likewise.
17783         (__realloc_hook): Likewise.
17784         (__memalign_hook): Likewise.
17785         (__libc_malloc): Likewise.
17786         (__libc_free): Likewise.
17787         (__libc_realloc): Likewise.
17788         (__libc_memalign): Likewise.
17789         (__libc_valloc): Likewise.
17790         (__libc_pvalloc): Likewise.
17791         (__libc_calloc): Likewise.
17792         (__posix_memalign): Likewise.
17793         * malloc/morecore.c (__sbrk): Likewise.
17794         (__default_morecore): Likewise.
17795
17796         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
17797
17798         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
17799         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
17800         __malloc_ptrdiff_t.
17801
17802         * malloc/malloc.h (__malloc_size_t): Remove macro.
17803         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
17804         __malloc_size_t.
17805         (old_memalign_hook): Likewise.
17806         (old_realloc_hook): Likewise.
17807         (struct hdr): Likewise.
17808         (flood): Likewise.
17809         (mallochook): Likewise.
17810         (memalignhook): Likewise.
17811         (reallochook): Likewise.
17812         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
17813         (tr_old_realloc_hook): Likewise.
17814         (tr_old_memalign_hook): Likewise.
17815         (tr_mallochook): Likewise.
17816         (tr_reallochook): Likewise.
17817         (tr_memalignhook): Likewise.
17818
17819 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17820
17821         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
17822         default_ldbl_pack and using as default implementation.
17823         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
17824         implementation.
17825         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
17826         redundant definition.
17827         (ldbl_insert_mantissa): Likewise.
17828         (ldbl_canonicalize): Likewise.
17829         (ldbl_nearbyint): Likewise.
17830         (ldbl_pack): Rename to ldbl_pack_ppc.
17831         (ldbl_unpack): Rename to ldbl_unpack_ppc.
17832         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
17833         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
17834
17835 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
17836
17837         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
17838         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
17839         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
17840         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
17841         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
17842         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
17843         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
17844         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
17845
17846 2013-03-07  Andreas Jaeger  <aj@suse.de>
17847
17848         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17849         bits/mman-linux.h.
17850
17851 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
17852
17853         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
17854         Include mpa.h and declare __MPEXP.
17855         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
17856         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
17857         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
17858         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
17859         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
17860         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
17861         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
17862
17863         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
17864         (__slowpow): Use long double EXPL and LOGL functions to
17865         compute POW.
17866         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
17867         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
17868         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
17869         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
17870         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
17871         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
17872
17873         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
17874         intermediate variable to calculate exponent.
17875         (__sqr): Likewise.
17876         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
17877         Likewise.
17878         (__sqr): Likewise.
17879
17880         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
17881         [!NO__SQR]: Define __sqr.
17882         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
17883         and NO__SQR.  Remove all code except __mul and __sqr.  Include
17884         sysdeps/ieee754/dbl-64/mpa.c.
17885         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
17886
17887         [BZ #12723]
17888         * posix/Makefile (tests): Add tst-pathconf.
17889         * posix/tst-pathconf.c: New test case.
17890         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
17891         _PC_PIPE_BUF.
17892         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
17893
17894 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
17895
17896         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
17897
17898 2013-03-06  Andreas Jaeger  <aj@suse.de>
17899
17900         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
17901         definition via __MAP_ANONYMOUS.
17902
17903         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
17904         it's not part of Linux headers.
17905
17906         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
17907         (MAP_HUGE_MASK): Define.
17908
17909         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
17910         Define.
17911         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
17912         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
17913         Define.
17914         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
17915         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
17916         Define.
17917         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
17918         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
17919         Define.
17920         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
17921
17922         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
17923         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
17924         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
17925         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
17926         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
17927         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
17928
17929         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
17930         Handle f2fs.
17931
17932         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17933         Handle f2fs and efivarfs.
17934
17935         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
17936         f2fs.
17937
17938         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
17939         (EFIVARFS_MAGIC): Add.
17940         (F2FS_LINK_MAX): Add.
17941
17942 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17943
17944         * stdio-common/vfprintf.c: Replace __builtin_expect with
17945         __glibc_unlikely.
17946
17947 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
17948
17949         [BZ #13550]
17950         * sysdeps/generic/bp-sym.h: Remove file.
17951         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
17952         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
17953         <bp-sym.h> and <bp-asm.h>.
17954         (__longjmp): Don't use BP_SYM.
17955         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
17956         and <bp-asm.h>.
17957         (memcpy): Don't use BP_SYM.
17958         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
17959         <bp-sym.h> and <bp-asm.h>.
17960         (memcpy): Don't use BP_SYM.
17961         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
17962         <bp-asm.h>.
17963         (memcpy): Don't use BP_SYM.
17964         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
17965         <bp-asm.h>.
17966         (memset): Don't use BP_SYM.
17967         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
17968         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
17969         (__bzero): Don't use BP_SYM.
17970         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
17971         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
17972         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
17973         <bp-sym.h> and <bp-asm.h>.
17974         (memcmp): Don't use BP_SYM.  Remove comment about bounded
17975         pointers.
17976         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
17977         <bp-sym.h> and <bp-asm.h>.
17978         (memcpy): Don't use BP_SYM.
17979         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
17980         <bp-sym.h> and <bp-asm.h>.
17981         (memset): Don't use BP_SYM.
17982         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
17983         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
17984         (__bzero): Don't use BP_SYM.
17985         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
17986         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
17987         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
17988         <bp-sym.h> and <bp-asm.h>.
17989         (strncmp): Don't use BP_SYM.  Remove comment about bounded
17990         pointers.
17991         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
17992         <bp-sym.h> and <bp-asm.h>.
17993         (memcpy): Don't use BP_SYM.
17994         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
17995         <bp-sym.h> and <bp-asm.h>.
17996         (memset): Don't use BP_SYM.
17997         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
17998         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
17999         (__bzero): Don't use BP_SYM.
18000         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
18001         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
18002         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
18003         <bp-sym.h> and <bp-asm.h>.
18004         (__memchr): Don't use BP_SYM.
18005         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
18006         <bp-sym.h> and <bp-asm.h>.
18007         (memcmp): Don't use BP_SYM.  Remove comment about bounded
18008         pointers.
18009         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
18010         <bp-sym.h> and <bp-asm.h>.
18011         (memcpy): Don't use BP_SYM.
18012         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
18013         <bp-sym.h> and <bp-asm.h>.
18014         (__mempcpy): Don't use BP_SYM.
18015         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
18016         <bp-sym.h> and <bp-asm.h>.
18017         (__memrchr): Don't use BP_SYM.
18018         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
18019         <bp-sym.h> and <bp-asm.h>.
18020         (memset): Don't use BP_SYM.
18021         (__bzero): Likewise.
18022         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
18023         <bp-sym.h> and <bp-asm.h>.
18024         (__rawmemchr): Don't use BP_SYM.
18025         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
18026         <bp-sym.h> and <bp-asm.h>.
18027         (__STRCMP): Don't use BP_SYM.
18028         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
18029         <bp-sym.h> and <bp-asm.h>.
18030         (strchr): Don't use BP_SYM.
18031         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
18032         <bp-sym.h> and <bp-asm.h>.
18033         (__strchrnul): Don't use BP_SYM.
18034         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
18035         <bp-sym.h> and <bp-asm.h>.
18036         (strlen): Don't use BP_SYM.
18037         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
18038         <bp-sym.h> and <bp-asm.h>.
18039         (strncmp): Don't use BP_SYM.  Remove comment about bounded
18040         pointers.
18041         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
18042         <bp-sym.h> and <bp-asm.h>.
18043         (__strnlen): Don't use BP_SYM.
18044         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
18045         <bp-sym.h> and <bp-asm.h>.
18046         (__GI__setjmp): Don't use BP_SYM.
18047         (_setjmp): Likewise.
18048         (__sigsetjmp): Likewise.
18049         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
18050         (L(start_addresses)): Don't use BP_SYM.
18051         (_start): Likewise.
18052         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
18053         <bp-asm.h>.
18054         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
18055         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
18056         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
18057         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
18058         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
18059         <bp-asm.h>.
18060         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
18061         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
18062         about bounded pointers.
18063         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
18064         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
18065         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
18066         <bp-asm.h>.
18067         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
18068         about bounded pointers.  Remove GKM FIXME comments.
18069         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
18070         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
18071         <bp-asm.h>.
18072         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
18073         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
18074         Remove GKM FIXME comments.
18075         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
18076         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
18077         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
18078         <bp-asm.h>.
18079         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
18080         about bounded pointers.  Remove GKM FIXME comment.
18081         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
18082         and <bp-asm.h>.
18083         (strncmp): Don't use BP_SYM.  Remove comment about bounded
18084         pointers.
18085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
18086         <bp-sym.h> and <bp-asm.h>.
18087         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
18088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
18089         <bp-sym.h> and <bp-asm.h>.
18090         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
18091         comment.
18092
18093 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18094
18095         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
18096         call free(NULL).
18097
18098 2013-03-05  David S. Miller  <davem@davemloft.net>
18099
18100         * po/es.po: Update from translation team.
18101
18102 2013-03-05  Andreas Jaeger  <aj@suse.de>
18103
18104         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
18105         <bits/mman-linux.h>.
18106         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
18107         is fine.
18108         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
18109         <bits/mman-linux.h> to end of file.
18110         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
18111         is fine.
18112         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
18113         <bits/mman-linux.h> to end of file.
18114         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
18115         is fine.
18116         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
18117         <bits/mman-linux.h> to end of file.
18118
18119         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
18120         (MCL_CURRENT, MCL_FUTURE): Define here.
18121
18122 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18123
18124         [BZ #15232]
18125         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
18126         attribute_hidden.
18127         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
18128
18129 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18130
18131         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
18132         fourth parameter needed for rt_sigprocmask syscall.
18133         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
18134         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
18135         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
18136         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
18137         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
18138         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
18139
18140 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
18141
18142         [BZ #13550]
18143         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
18144         comment about bounded pointers.
18145         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
18146         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
18147
18148 2013-03-04  Andreas Jaeger  <aj@suse.de>
18149
18150         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
18151         common definitions.
18152
18153         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
18154         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
18155         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
18156         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18157         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18158         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18159
18160 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18161
18162         [BZ #15055]
18163         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
18164         __ieee754_sqrl instead of __sqrl.
18165
18166 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
18167
18168         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
18169         * sysdeps/powerpc/fpu_control.h: ... here.
18170         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
18171         * sysdeps/powerpc/bits/fenvinline.h: ... here.
18172         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
18173         * sysdeps/powerpc/bits/mathinline.h: ... here.
18174
18175 2013-03-01  Roland McGrath  <roland@hack.frob.com>
18176
18177         * elf/dl-hwcaps.c (_dl_important_hwcaps):
18178         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
18179         to just [NEED_DL_SYSINFO_DSO].
18180         * elf/dl-support.c: Likewise.
18181         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
18182         * elf/rtld.c (dl_main): Likewise.
18183         * elf/setup-vdso.h (setup_vdso): Likewise.
18184         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
18185         * sysdeps/unix/sysv/linux/dl-sysdep.c
18186         (_dl_discover_osversion): Likewise.
18187
18188 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
18189
18190         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
18191         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
18192
18193 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
18194
18195         * NEWS: Mention libm performance improvements and non-x86 PI
18196         futex support.
18197
18198         * csu/libc-start.c (__pthread_initialize_minimal): Change
18199         function arguments.
18200         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
18201
18202 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
18203
18204         [BZ #13550]
18205         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
18206         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
18207         <bp-sym.h> and <bp-asm.h>.
18208         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
18209         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
18210         and <bp-asm.h>.
18211         (memcpy): Don't use BP_SYM.
18212         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
18213         <bp-asm.h>.
18214         (__mpn_add_n): Don't use BP_SYM.
18215         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
18216         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
18217         and <bp-asm.h>.
18218         (__mpn_addmul_1): Don't use BP_SYM.
18219         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18220         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
18221         <bp-sym.h>.
18222         (_setjmp): Don't use BP_SYM.
18223         (__novmx_setjmp): Likewise.
18224         (__GI__setjmp): Likewise.
18225         (__vmx_setjmp): Likewise.
18226         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
18227         <bp-sym.h>.
18228         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
18229         (__bzero): Don't use BP_SYM.
18230         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
18231         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
18232         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
18233         <bp-sym.h> and <bp-asm.h>.
18234         (memcpy): Don't use BP_SYM.
18235         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
18236         <bp-sym.h> and <bp-asm.h>.
18237         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
18238         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
18239         <bp-sym.h> and <bp-asm.h>.
18240         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
18241         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
18242         <bp-asm.h>.
18243         (__mpn_lshift): Don't use BP_SYM.
18244         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
18245         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
18246         <bp-asm.h>.
18247         (memset): Don't use BP_SYM.
18248         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
18249         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
18250         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
18251         <bp-asm.h>.
18252         (__mpn_mul_1): Don't use BP_SYM.
18253         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18254         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
18255         <bp-sym.h> and <bp-asm.h>.
18256         (memcmp): Don't use BP_SYM.
18257         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
18258         <bp-sym.h> and <bp-asm.h>.
18259         (memcpy): Don't use BP_SYM.
18260         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
18261         <bp-sym.h> and <bp-asm.h>.
18262         (memset): Don't use BP_SYM.
18263         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
18264         <bp-sym.h> and <bp-asm.h>.
18265         (strncmp): Don't use BP_SYM.
18266         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
18267         <bp-sym.h> and <bp-asm.h>.
18268         (memcpy): Don't use BP_SYM.
18269         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
18270         <bp-sym.h> and <bp-asm.h>.
18271         (memset): Don't use BP_SYM.
18272         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
18273         <bp-sym.h> and <bp-asm.h>.
18274         (__memchr): Don't use BP_SYM.
18275         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
18276         <bp-sym.h> and <bp-asm.h>.
18277         (memcmp): Don't use BP_SYM.
18278         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
18279         <bp-sym.h> and <bp-asm.h>.
18280         (memcpy): Don't use BP_SYM.
18281         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
18282         <bp-sym.h> and <bp-asm.h>.
18283         (__mempcpy): Don't use BP_SYM.
18284         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
18285         <bp-sym.h> and <bp-asm.h>.
18286         (__memrchr): Don't use BP_SYM.
18287         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
18288         <bp-sym.h> and <bp-asm.h>.
18289         (memset): Don't use BP_SYM.
18290         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
18291         <bp-sym.h> and <bp-asm.h>.
18292         (__rawmemchr): Don't use BP_SYM.
18293         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
18294         <bp-sym.h> and <bp-asm.h>.
18295         (__STRCMP): Don't use BP_SYM.
18296         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
18297         <bp-sym.h> and <bp-asm.h>.
18298         (strchr): Don't use BP_SYM.
18299         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
18300         <bp-sym.h> and <bp-asm.h>.
18301         (__strchrnul): Don't use BP_SYM.
18302         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
18303         <bp-sym.h> and <bp-asm.h>.
18304         (strlen): Don't use BP_SYM.
18305         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
18306         <bp-sym.h> and <bp-asm.h>.
18307         (strncmp): Don't use BP_SYM.
18308         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
18309         <bp-sym.h> and <bp-asm.h>.
18310         (__strnlen): Don't use BP_SYM.
18311         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
18312         <bp-asm.h>.
18313         (__mpn_rshift): Don't use BP_SYM.
18314         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
18315         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
18316         <bp-sym.h> and <bp-asm.h>.
18317         (__sigsetjmp): Don't use BP_SYM.
18318         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
18319         (L(start_addresses)): Don't use BP_SYM.
18320         (_start): Likewise.
18321         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
18322         <bp-asm.h>.
18323         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
18324         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
18325         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
18326         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
18327         <bp-asm.h>.
18328         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
18329         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
18330         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
18331         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
18332         <bp-asm.h>.
18333         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
18334         comments.
18335         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
18336         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
18337         <bp-asm.h>.
18338         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
18339         FIXME comments.
18340         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
18341         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
18342         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
18343         <bp-asm.h>.
18344         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
18345         comment.
18346         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
18347         and <bp-asm.h>.
18348         (strncmp): Don't use BP_SYM,
18349         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
18350         <bp-asm.h>.
18351         (__mpn_sub_n): Don't use BP_SYM.
18352         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
18353         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
18354         and <bp-asm.h>.
18355         (__mpn_submul_1): Don't use BP_SYM.
18356         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
18358         <bp-sym.h> and <bp-asm.h>.
18359         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
18360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
18361         <bp-sym.h> and <bp-asm.h>.
18362         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
18363         comment.
18364
18365 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18366
18367         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
18368         Use ZK to minimize writes to Z.
18369         (sub_magnitudes): Simplify code a bit.
18370         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
18371         Use ZK to minimize writes to Z.
18372         (sub_magnitudes): Simplify code a bit.
18373
18374 2013-02-27  Roland McGrath  <roland@hack.frob.com>
18375
18376         * csu/gmon-start.c: Add special exception to license text.
18377
18378 2013-02-27  Richard Henderson  <rth@redhat.com>
18379
18380         * scripts/config.guess: Update from config.git.
18381         * scripts/config.sub: Likewise.
18382
18383 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
18384
18385         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
18386
18387         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
18388
18389         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
18390
18391         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
18392
18393         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
18394
18395 2013-02-26  Roland McGrath  <roland@hack.frob.com>
18396
18397         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
18398         [$(build-shared = yes].
18399
18400 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18401
18402         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
18403         (__mul): Reduce iterations for calculating mantissa.
18404
18405         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
18406         MPTWO.
18407         (__mpranred): Likewise.
18408
18409         [BZ #15160]
18410         * malloc/memusagestat.c (main): Draw graphs for heap and stack
18411         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
18412
18413 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
18414
18415         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
18416         Define __attribute__.
18417
18418 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18419
18420         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
18421         unused.
18422         * posix/regex_internal.h (__attribute): Remove.
18423         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
18424         (re_string_context_at): Likewise.
18425         (bitset_not): Use __attribute__ and mark function as possibly
18426         unused.
18427         (bitset_merge): Likewise.
18428         (bitset_mask): Likewise.
18429         (re_string_char_size_at): Likewise.
18430         (re_string_wchar_at): Likewise.
18431         (re_string_elem_size_at): Likewise.
18432
18433 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18434
18435         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
18436         code.
18437         (cc32): Likewise.
18438
18439         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
18440         (__acr): Likewise.
18441         (__cpy): Likewise.
18442         (norm): Likewise.
18443         (denorm): Likewise.
18444         (__dbl_mp): Likewise.
18445         (add_magnitudes): Likewise.
18446         (sub_magnitudes): Likewise.
18447         (__mul): Likewise.
18448         (__inv): Likewise.
18449
18450         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
18451         style.
18452
18453         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
18454         style.
18455
18456         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
18457         code.
18458
18459         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
18460         up changes with default code.
18461         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
18462         Likewise.
18463
18464 2013-02-24  Allan McRae  <allan@archlinux.org>
18465
18466         * manual/socket.texi (The Internet Namespace): Order menu items
18467         to match that in the file.
18468
18469         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
18470         node listing of the info page menu.
18471
18472 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
18473
18474         [BZ #13550]
18475         * sysdeps/i386/bp-asm.h: Remove file.
18476         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
18477         (PARMS): Do not use macros from bp-asm.h.
18478         (S1): Likewise.
18479         (S2): Likewise.
18480         (SIZE): Likewise.
18481         (__mpn_add_n): Do not use BP_SYM
18482         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
18483         "bp-asm.h".
18484         (PARMS): Do not use macros from bp-asm.h.
18485         (S1): Likewise.
18486         (SIZE): Likewise.
18487         (__mpn_addmul_1): Do not use BP_SYM
18488         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
18489         "bp-asm.h".
18490         (PARMS): Do not use macros from bp-asm.h.
18491         (SIGMSK): Likewise.
18492         (_setjmp): Likewise.  Do not use BP_SYM.
18493         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
18494         "bp-asm.h".
18495         (PARMS): Do not use macros from bp-asm.h.
18496         (SIGMSK): Likewise.
18497         (setjmp): Likewise.  Do not use BP_SYM.
18498         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
18499         "bp-asm.h".
18500         (PARMS): Do not use macros from bp-asm.h.
18501         (__frexp): Do not use BP_SYM.
18502         (frexp): Likewise.
18503         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
18504         "bp-asm.h".
18505         (PARMS): Do not use macros from bp-asm.h.
18506         (__frexpf): Do not use BP_SYM.
18507         (frexpf): Likewise.
18508         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
18509         "bp-asm.h".
18510         (PARMS): Do not use macros from bp-asm.h.
18511         (__frexpl): Do not use BP_SYM.
18512         (frexpl): Likewise.
18513         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
18514         "bp-asm.h".
18515         (PARMS): Do not use macros from bp-asm.h.
18516         (__remquo): Do not use BP_SYM.
18517         (remquo): Likewise.
18518         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
18519         "bp-asm.h".
18520         (PARMS): Do not use macros from bp-asm.h.
18521         (__remquof): Do not use BP_SYM.
18522         (remquof): Likewise.
18523         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
18524         "bp-asm.h".
18525         (PARMS): Do not use macros from bp-asm.h.
18526         (__remquol): Do not use BP_SYM.
18527         (remquol): Likewise.
18528         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
18529         "bp-asm.h".
18530         (PARMS): Do not use macros from bp-asm.h.
18531         (DEST): Likewise.
18532         (SRC): Likewise.
18533         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
18534         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
18535         "bp-asm.h".
18536         (PARMS): Do not use macros from bp-asm.h.
18537         (strlen): Do not use BP_SYM.
18538         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
18539         "bp-asm.h".
18540         (PARMS): Do not use macros from bp-asm.h.
18541         (S1): Likewise.
18542         (S2): Likewise.
18543         (SIZE): Likewise.
18544         (__mpn_add_n): Do not use BP_SYM.
18545         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
18546         "bp-asm.h".
18547         (PARMS): Do not use macros from bp-asm.h.
18548         (S1): Likewise.
18549         (SIZE): Likewise.
18550         (__mpn_addmul_1): Do not use BP_SYM.
18551         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
18552         weak_alias.
18553         (bzero): Likewise.
18554         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
18555         "bp-asm.h".
18556         (PARMS): Do not use macros from bp-asm.h.
18557         (S): Likewise.
18558         (SIZE): Likewise.
18559         (__mpn_lshift): Do not use BP_SYM.
18560         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
18561         "bp-asm.h".
18562         (PARMS): Do not use macros from bp-asm.h.
18563         (DEST): Likewise.
18564         (SRC): Likewise.
18565         (LEN): Likewise.
18566         (memcpy): Likewise.  Do not use BP_SYM.
18567         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
18568         libc_hidden_def and weak_alias.
18569         (mempcpy): Do not use BP_SYM in weak_alias.
18570         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
18571         "bp-asm.h".
18572         (PARMS): Do not use macros from bp-asm.h.
18573         (DEST): Likewise.
18574         (LEN): Likewise.
18575         [!BZERO_P] (CHR): Likewise.
18576         (memset): Likewise.  Do not use BP_SYM.
18577         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
18578         "bp-asm.h".
18579         (PARMS): Do not use macros from bp-asm.h.
18580         (S1): Likewise.
18581         (SIZE): Likewise.
18582         (__mpn_mul_1): Do not use BP_SYM.
18583         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
18584         "bp-asm.h".
18585         (PARMS): Do not use macros from bp-asm.h.
18586         (S): Likewise.
18587         (SIZE): Likewise.
18588         (__mpn_rshift): Do not use BP_SYM.
18589         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
18590         "bp-asm.h".
18591         (PARMS): Do not use macros from bp-asm.h.
18592         (STR): Likewise.
18593         (CHR): Likewise.
18594         (strchr): Likewise.  Do not use BP_SYM.
18595         (index): Do not use BP_SYM in weak_alias.
18596         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
18597         "bp-asm.h".
18598         (PARMS): Do not use macros from bp-asm.h.
18599         (DEST): Likewise.
18600         (SRC): Likewise.
18601         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
18602         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
18603         "bp-asm.h".
18604         (PARMS): Do not use macros from bp-asm.h.
18605         (strlen): Do not use BP_SYM.
18606         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
18607         "bp-asm.h".
18608         (PARMS): Do not use macros from bp-asm.h.
18609         (S1): Likewise.
18610         (S2): Likewise.
18611         (SIZE): Likewise.
18612         (__mpn_sub_n): Do not use BP_SYM.
18613         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
18614         "bp-asm.h".
18615         (PARMS): Do not use macros from bp-asm.h.
18616         (S1): Likewise.
18617         (SIZE): Likewise.
18618         (__mpn_submul_1): Do not use BP_SYM.
18619         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
18620         "bp-asm.h".
18621         (PARMS): Do not use macros from bp-asm.h.
18622         (S1): Likewise.
18623         (S2): Likewise.
18624         (SIZE): Likewise.
18625         (__mpn_add_n): Do not use BP_SYM.
18626         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
18627         weak_alias.
18628         (bzero): Likewise.
18629         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
18630         "bp-asm.h".
18631         (PARMS): Do not use macros from bp-asm.h.
18632         (BLK2): Likewise.
18633         (LEN): Likewise.
18634         (memcmp): Do not use BP_SYM.
18635         (bcmp): Do not use BP_SYM in weak_alias.
18636         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
18637         "bp-asm.h".
18638         (PARMS): Do not use macros from bp-asm.h.
18639         (DEST): Likewise.
18640         (SRC): Likewise.
18641         (LEN): Likewise.
18642         (memcpy): Likewise.  Do not use BP_SYM.
18643         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
18644         "bp-asm.h".
18645         (PARMS): Do not use macros from bp-asm.h.
18646         (DEST): Likewise.
18647         (SRC): Likewise.
18648         (LEN): Likewise.
18649         (memmove): Likewise.  Do not use BP_SYM.
18650         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
18651         "bp-asm.h".
18652         (PARMS): Do not use macros from bp-asm.h.
18653         (DEST): Likewise.
18654         (SRC): Likewise.
18655         (LEN): Likewise.
18656         (__mempcpy): Likewise.  Do not use BP_SYM.
18657         (mempcpy): Do not use BP_SYM in weak_alias.
18658         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
18659         "bp-asm.h".
18660         (PARMS): Do not use macros from bp-asm.h.
18661         (DEST): Likewise.
18662         (LEN): Likewise.
18663         [!BZERO_P] (CHR): Likewise.
18664         (memset): Likewise.  Do not use BP_SYM.
18665         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
18666         "bp-asm.h".
18667         (PARMS): Do not use macros from bp-asm.h.
18668         (STR2): Likewise.
18669         (strcmp): Do not use BP_SYM.
18670         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
18671         "bp-asm.h".
18672         (PARMS): Do not use macros from bp-asm.h.
18673         (STR): Likewise.
18674         (DELIM): Likewise.
18675         [USE_AS_STRTOK_R] (SAVE): Likewise.
18676         (FUNCTION): Likewise.  Do not use BP_SYM.
18677         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
18678         aliases.
18679         (strtok_r): Likewise.
18680         (__GI___strtok_r): Likewise.
18681         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
18682         (PARMS): Do not use macros from bp-asm.h.
18683         (S): Likewise.
18684         (SIZE): Likewise.
18685         (__mpn_lshift): Do not use BP_SYM.
18686         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
18687         (PARMS): Do not use macros from bp-asm.h.
18688         (STR): Likewise.
18689         (CHR): Likewise.
18690         (__memchr): Do not use BP_SYM.
18691         (memchr): Do not use BP_SYM in weak_alias.
18692         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
18693         (PARMS): Do not use macros from bp-asm.h.
18694         (BLK2): Likewise.
18695         (LEN): Likewise.
18696         (memcmp): Do not use BP_SYM.
18697         (bcmp): Do not use BP_SYM in weak_alias.
18698         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
18699         (PARMS): Do not use macros from bp-asm.h.
18700         (S1): Likewise.
18701         (SIZE): Likewise.
18702         (__mpn_mul_1): Do not use BP_SYM.
18703         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
18704         "bp-asm.h".
18705         (PARMS): Do not use macros from bp-asm.h.
18706         (STR): Likewise.
18707         (CHR): Likewise.
18708         (__rawmemchr): Do not use BP_SYM.
18709         (rawmemchr): Do not use BP_SYM in weak_alias.
18710         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
18711         (PARMS): Do not use macros from bp-asm.h.
18712         (S): Likewise.
18713         (SIZE): Likewise.
18714         (__mpn_rshift): Do not use BP_SYM.
18715         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
18716         (PARMS): Do not use macros from bp-asm.h.
18717         (SIGMSK): Likewise.
18718         (__sigsetjmp): Likewise.  Do not use BP_SYM.
18719         * sysdeps/i386/start.S: Do not include "bp-sym.h".
18720         (_start): Do not use BP_SYM.
18721         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
18722         (PARMS): Do not use macros from bp-asm.h.
18723         (DEST): Likewise.
18724         (SRC): Likewise.
18725         (__stpcpy): Likewise.  Do not use BP_SYM.
18726         (stpcpy): Do not use BP_SYM in weak_alias.
18727         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
18728         "bp-asm.h".
18729         (PARMS): Do not use macros from bp-asm.h.
18730         (DEST): Likewise.
18731         (SRC): Likewise.
18732         (LEN): Likewise.
18733         (__stpncpy): Likewise.  Do not use BP_SYM.
18734         (stpncpy): Do not use BP_SYM in weak_alias.
18735         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
18736         (PARMS): Do not use macros from bp-asm.h.
18737         (STR): Likewise.
18738         (CHR): Likewise.
18739         (strchr): Likewise.  Do not use BP_SYM.
18740         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
18741         "bp-asm.h".
18742         (PARMS): Do not use macros from bp-asm.h.
18743         (STR): Likewise.
18744         (CHR): Likewise.
18745         (__strchrnul): Likewise.  Do not use BP_SYM.
18746         (strchrnul): Do not use BP_SYM in weak_alias.
18747         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
18748         "bp-asm.h".
18749         (PARMS): Do not use macros from bp-asm.h.
18750         (STOP): Likewise.
18751         (strcspn): Do not use BP_SYM.
18752         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
18753         "bp-asm.h".
18754         (PARMS): Do not use macros from bp-asm.h.
18755         (STR): Likewise.
18756         (STOP): Likewise.
18757         (strpbrk): Likewise.  Do not use BP_SYM.
18758         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
18759         "bp-asm.h".
18760         (PARMS): Do not use macros from bp-asm.h.
18761         (STR): Likewise.
18762         (CHR): Likewise.
18763         (strrchr): Likewise.  Do not use BP_SYM.
18764         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
18765         (PARMS): Do not use macros from bp-asm.h.
18766         (SKIP): Likewise.
18767         (strspn): Do not use BP_SYM.
18768         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
18769         (PARMS): Do not use macros from bp-asm.h.
18770         (STR): Likewise.
18771         (DELIM): Likewise.
18772         (SAVE): Likewise.
18773         (FUNCTION): Likewise.  Do not use BP_SYM.
18774         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
18775         aliases.
18776         (strtok_r): Likewise.
18777         (__GI___strtok_r): Likewise.
18778         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
18779         (PARMS): Do not use macros from bp-asm.h.
18780         (S1): Likewise.
18781         (S2): Likewise.
18782         (SIZE): Likewise.
18783         (__mpn_sub_n): Do not use BP_SYM.
18784         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
18785         "bp-asm.h".
18786         (PARMS): Do not use macros from bp-asm.h.
18787         (S1): Likewise.
18788         (SIZE): Likewise.
18789         (__mpn_submul_1): Do not use BP_SYM.
18790         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
18791         <bp-sym.h>.
18792         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
18793         and <bp-asm.h>.
18794         (PARMS): Do not use macros from bp-asm.h.
18795         (FLAGS): Likewise.
18796         (PTID): Likewise.
18797         (TLS): Likewise.
18798         (CTID): Likewise.
18799         (__clone): Do not use BP_SYM.
18800         (clone): Do not use BP_SYM in weak_alias.
18801         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
18802         and <bp-asm.h>.
18803         (PARMS): Do not use macros from bp-asm.h.
18804         (LEN): Likewise.
18805         (__mmap64): Do not use BP_SYM.
18806         (mmap64): Do not use BP_SYM in weak_alias.
18807         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
18808         <bp-sym.h> and <bp-asm.h>.
18809         (PARMS): Do not use macros from bp-asm.h.
18810         (__posix_fadvise64_l64): Do not use BP_SYM.
18811         * sysdeps/unix/sysv/linux/i386/semtimedop.S
18812         (PARMS): Do not use macros from bp-asm.h.
18813         (NSOPS): Likewise.
18814         (semtimedop): Do not use BP_SYM.
18815         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
18816         and <bp-asm.h>.
18817
18818 2013-02-21  Allan McRae  <allan@archlinux.org>
18819
18820         * manual/message.texi (Charset conversion in gettext):
18821         Move @end statement to beginning of line.
18822
18823 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
18824
18825         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
18826         static.
18827         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
18828         Likewise.
18829
18830         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
18831         (denorm): Likewise.
18832         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
18833         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
18834
18835 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18836
18837         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
18838         tail-call to the resolved function if pltexit isn't needed.
18839
18840 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
18841
18842         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
18843         or Y being zero as being unlikely.
18844         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
18845         Likewise.
18846
18847 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
18848
18849         * manual/nss.texi (System Databases and Name Service Switch):
18850         Remove frobnicate @pxref.
18851
18852 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
18853
18854         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
18855         __attribute__ ((unused)) to __attribute__ ((__unused__)).
18856
18857 2013-02-20  Petr Machata  <pmachata@redhat.com>
18858
18859         * elf/elf.h (R_ARM_TARGET1): New macro.
18860         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
18861         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
18862         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
18863         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
18864         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
18865         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
18866         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
18867         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
18868         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
18869         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
18870         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
18871         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
18872         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
18873         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
18874         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
18875         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
18876         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
18877         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
18878         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
18879         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
18880         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
18881         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
18882         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
18883         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
18884         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
18885         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
18886         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
18887         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
18888         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
18889         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
18890         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
18891         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
18892         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
18893         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
18894         (R_ARM_THM_GOT_BREL12): Likewise.
18895         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
18896         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
18897         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
18898         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
18899         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
18900         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
18901         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
18902         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
18903         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
18904
18905 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
18906
18907         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
18908         __attribute_used__ to __attribute__ ((unused)).
18909
18910 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
18911
18912         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
18913         powerpc mpa.c.
18914         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
18915         comment formatting.
18916         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
18917
18918 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
18919
18920         [BZ #13550]
18921         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
18922         Remove macro.
18923         (ENTER): Remove both macro definitions.
18924         (LEAVE): Likewise.
18925         (CHECK_BOUNDS_LOW): Likewise.
18926         (CHECK_BOUNDS_HIGH): Likewise.
18927         (CHECK_BOUNDS_BOTH): Likewise.
18928         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
18929         (RETURN_BOUNDED_POINTER): Likewise.
18930         (RETURN_NULL_BOUNDED_POINTER): Likewise.
18931         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
18932         (POP_ERRNO_LOCATION_RETURN): Likewise.
18933         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
18934         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
18935         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
18936         macros.
18937         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18938         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
18939         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
18940         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
18941         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
18942         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
18943         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
18944         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
18945         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
18946         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
18947         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
18948         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
18949         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
18950         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
18951         removed macros.
18952         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18953         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
18954         macros.
18955         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
18956         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
18957         * sysdeps/i386/i586/memset.S (memset): Likewise.
18958         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
18959         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18960         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
18961         macros.
18962         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
18963         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
18964         Change uses of L(2) to L(out).
18965         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
18966         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
18967         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
18968         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
18969         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
18970         removed macros.
18971         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18972         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
18973         macros.
18974         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
18975         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
18976         (RETURN): Do not use macro LEAVE.
18977         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
18978         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
18979         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
18980         * sysdeps/i386/i686/memset.S (memset): Likewise.
18981         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
18982         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
18983         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
18984         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
18985         Likewise.
18986         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
18987         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
18988         L(1_2) and L(1_3) into L(1).
18989         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
18990         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
18991         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
18992         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
18993         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
18994         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
18995         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
18996         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18997         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
18998         macros.
18999         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
19000         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19001         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
19002         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
19003         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
19004         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19005         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
19006         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
19007         * sysdeps/i386/strcspn.S (strcspn): Likewise.
19008         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
19009         * sysdeps/i386/strrchr.S (strrchr): Likewise.
19010         * sysdeps/i386/strspn.S (strspn): Likewise.
19011         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
19012         conditional code.
19013         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
19014         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
19015         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
19016         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
19017         L(1_3) into L(1_1).
19018         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
19019         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19020         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
19021         macros.
19022         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19023
19024 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
19025
19026         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
19027         macro.
19028
19029 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
19030
19031         * math/atest-exp.c (exp_mpn): Remove ROUND.
19032         * math/atest-exp2.c (exp_mpn): Likewise.
19033         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
19034
19035         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
19036         * stdlib/tst-tls-atexit-lib.c: Likewise.
19037         * stdlib/tst-tls-atexit.c: Likewise.
19038
19039 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
19040
19041         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
19042         and __attribute_alloc_size__.
19043
19044 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
19045
19046         * include/programs/xmalloc.h: Change __attribute_alloc_size to
19047         __attribute_alloc_size__.
19048         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
19049         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
19050
19051 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
19052
19053         * include/programs/xmalloc.h: New file.
19054         * catgets/gencat.c: Include it.
19055         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
19056         * elf/pldd.c: Likewise.
19057         * iconv/iconv_charmap.c: Likewise.
19058         * iconv/iconvconfig.c: Likewise.
19059         * iconv/strtab.c: Likewise.
19060         * locale/programs/locale.c: Likewise.
19061         * locale/programs/localedef.h: Likewise.
19062         * locale/programs/simple-hash.c: Likewise.
19063         * nscd/nscd.h: Likewise.
19064         * nss/makedb.c: Likewise.
19065         * sysdeps/generic/ldconfig.h: Likewise.
19066
19067 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
19068
19069         * Versions.def: Add GLIBC_2.18.
19070         * include/link.h (struct link_map): New member l_tls_dtor_count.
19071         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
19072         (__call_tls_dtors): Likewise.
19073         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
19074         __cxa_thread_atexit_impl.
19075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19076         Likewise.
19077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
19078         Likewise.
19079         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
19080         Likewise.
19081         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
19082         Likewise.
19083         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
19084         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
19085         Likewise.
19086         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
19087         Likewise.
19088         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
19089         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
19090         Likewise.
19091         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
19092         (tests): Add test case tst-tls-atexit.
19093         (modules-names): Add shared library for tst-tls-atexit.
19094         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
19095         (GLIBC_PRIVATE): Add __call_tls_dtors.
19096         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
19097         for libstdc++.
19098         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
19099         * stdlib/tst-tls-atexit.c: New test case.
19100         * stdlib/tst-tls-atexit-lib.c: New test case.
19101
19102         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
19103
19104         * elf/Versions (ld): Add _dl_find_dso_for_object.
19105         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
19106         * elf/dl-open.c (_dl_find_dso_for_object): New function.
19107         (dl_open_worker): Use _dl_find_dso_for_object.
19108         * elf/dl-sym.c (do_sym): Likewise.
19109         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
19110
19111 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19112
19113         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
19114         Syntactic changes only.
19115         (_dl_runtime_profile): Do a tail-call to the resolved function.
19116
19117 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
19118
19119         [BZ #13550]
19120         * sysdeps/x86_64/bp-asm.h: Remove file.
19121         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
19122         <bp-sym.h> and <bp-asm.h>.
19123         (__clone): Do not use BP_SYM.
19124         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
19125         <bp-sym.h> and <bp-asm.h>.
19126         * sysdeps/unix/x86_64/sysdep.S: Likewise.
19127         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
19128         "bp-asm.h".
19129         (_setjmp): Do not use BP_SYM.
19130         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
19131         "bp-asm.h".
19132         (setjmp): Do not use BP_SYM.
19133         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
19134         libc_hidden_def.
19135         (mempcpy): Do not use BP_SYM in weak_alias.
19136         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
19137         "bp-asm.h".
19138         (strchr): Do not use BP_SYM.
19139         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
19140         "bp-asm.h".
19141         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
19142         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
19143         (_start): Do not use BP_SYM.
19144         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
19145         "bp-asm.h".
19146         (strcat): Do not use BP_SYM.
19147         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
19148         "bp-asm.h".
19149         (STRCMP): Do not use BP_SYM.
19150         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
19151         "bp-asm.h".
19152         (STRCPY): Do not use BP_SYM.
19153         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
19154         "bp-asm.h".
19155         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
19156         "bp-asm.h".
19157         (FUNCTION): Do not use BP_SYM.
19158         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
19159         weak_alias.
19160         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
19161
19162 2013-02-17  Andreas Jaeger  <aj@suse.de>
19163
19164         * time/Versions: Sort entries.
19165         * string/Versions: Likewise.
19166         * resolv/Versions: Likewise.
19167         * posix/Versions: Likewise.
19168         * iconv/Versions: Likewise.
19169         * elf/Versions: Likewise.
19170         * wcsmbs/Versions: Likewise.
19171
19172 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19173
19174         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
19175         loop termination condition.
19176
19177         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
19178         variable to calculate EZ.
19179         (__sqr): Likewise.
19180
19181         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
19182         the lower precision input.
19183
19184 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
19185
19186         [BZ #13550]
19187         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
19188         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
19189         (run-via-rtld-prefix): Do not handle %-bp tests.
19190         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
19191         (all-object-suffixes): Remove .ob.
19192         (bppfx): Remove variable.
19193         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
19194         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
19195         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
19196         [$(build-bounded) = yes] (libtype.ob): Likewise.
19197         * Makerules (elide-routines.ob): Remove variable.
19198         (do-tests-clean): Do not handle *-bp.out.
19199         (common-mostlyclean): Do not handle *-bp and *-bp.out.
19200         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
19201         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
19202         (tests): Do not include $(tests-bp.out).
19203         (xtests): Do not include $(xtests-bp.out).
19204         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
19205         [$(build-bounded) = yes] ($(addprefix
19206         $(objpfx),$(binaries-bounded))): Remove rule.
19207         ($(objpfx)%-bp.out): Remove rule.
19208         * config.make.in (build-bounded): Remove variable.
19209         * crypt/Makefile [$(build-bounded) = yes]
19210         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
19211         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
19212         append to variable.
19213         [$(build-bounded) = yes] (install-lib): Likewise.
19214         [$(build-bounded) = yes] (generated): Likewise.
19215         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
19216         Remove rule.
19217         * intl/Makefile [$(build-bounded) = yes]
19218         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
19219         * math/Makefile [$(build-bounded) = yes]
19220         ($(tests:%=$(objpfx)%-bp): Likewise.
19221         * misc/Makefile [$(build-bounded) = yes]
19222         ($(objpfx)tst-tsearch-bp): Likewise.
19223         * nptl/Makeconfig (bounded-thread-library): Remove variable.
19224         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
19225         Remove dependency.
19226         * string/Makefile (o-objects.ob): Remove variable.
19227         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
19228         (CFLAGS-.ob): Remove variable.
19229         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
19230         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
19231         both definitions of variable.
19232         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
19233         (ASFLAGS-.ob): Remove variable.
19234
19235 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
19236
19237         [BZ #13550]
19238         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
19239         Remove __BOUNDED_POINTERS__ from condition.
19240         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
19241         * string/bits/string2.h [!__NO_STRING_INLINES &&
19242         !__BOUNDED_POINTERS__]: Likewise.
19243         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
19244         Likewise.
19245         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
19246         Remove conditional code.
19247         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
19248         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
19249         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
19250         condition.
19251
19252         [BZ #13550]
19253         * csu/libc-start.c: Do not include <bp-sym.h>.
19254         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
19255         * elf/dl-open.c: Do not include <bp-sym.h>.
19256         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
19257         * math/fegetenv.c: Do not include <bp-sym.h>.
19258         (fegetenv): Do not use BP_SYM in versioned symbols.
19259         * nptl/sysdeps/pthread/bits/libc-lockP.h
19260         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
19261         <bp-sym.h>.
19262         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19263         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
19264         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19265         (__pthread_mutex_destroy): Likewise.
19266         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19267         (__pthread_mutex_lock): Likewise.
19268         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19269         (__pthread_mutex_trylock): Likewise.
19270         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19271         (__pthread_mutex_unlock): Likewise.
19272         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19273         (__pthread_mutexattr_init): Likewise.
19274         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19275         (__pthread_mutexattr_destroy): Likewise.
19276         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19277         (__pthread_mutexattr_settype): Likewise.
19278         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19279         (__pthread_rwlock_init): Likewise.
19280         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19281         (__pthread_rwlock_destroy): Likewise.
19282         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19283         (__pthread_rwlock_rdlock): Likewise.
19284         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19285         (__pthread_rwlock_tryrdlock): Likewise.
19286         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19287         (__pthread_rwlock_wrlock): Likewise.
19288         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19289         (__pthread_rwlock_trywrlock): Likewise.
19290         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19291         (__pthread_rwlock_unlock): Likewise.
19292         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19293         (__pthread_key_create): Likewise.
19294         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19295         (__pthread_setspecific): Likewise.
19296         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19297         (__pthread_getspecific): Likewise.
19298         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
19299         Likewise.
19300         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19301         (_pthread_cleanup_push_defer): Likewise.
19302         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19303         (_pthread_cleanup_pop_restore): Likewise.
19304         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19305         (pthread_setcancelstate): Likewise.
19306         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
19307         <bp-sym.h>.
19308         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
19309         (memchr): Do not use BP_SYM in weak_alias.
19310         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
19311         (fegetenv): Do not use BP_SYM in versioned symbols.
19312         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
19313         (fesetenv): Do not use BP_SYM in versioned symbols.
19314         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
19315         (feupdateenv): Do not use BP_SYM in versioned symbols.
19316         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
19317         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
19318         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
19319         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
19320         (open64): Do not use BP_SYM in weak_alias.
19321         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
19322         (fegetenv): Do not use BP_SYM in versioned symbols.
19323         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
19324         (fesetenv): Do not use BP_SYM in versioned symbols.
19325         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
19326         (feupdateenv): Do not use BP_SYM in versioned symbols.
19327         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
19328         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
19329         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
19330         (feraiseexcept): Do not use BP_SYM in versioned symbols.
19331         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
19332         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
19333         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
19334         <bp-sym.h>.
19335         (__libc_start_main): Do not use BP_SYM.
19336
19337 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19338
19339         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
19340         redundant return line.
19341         (norm): Likewise.
19342         (denorm): Likewise.
19343         (dbl_mp): Likewise.
19344         (sub_magnitudes): Likewise.
19345         (__add): Likewise.
19346         (__sub): Likewise.
19347         (__mul): Likewise.
19348         (__inv): Likewise.
19349         (__dvd): Likewise.
19350         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
19351         (norm): Likewise.
19352         (denorm): Likewise.
19353         (dbl_mp): Likewise.
19354         (sub_magnitudes): Likewise.
19355         (__add): Likewise.
19356         (__sub): Likewise.
19357         (__mul): Likewise.
19358         (__inv): Likewise.
19359         (__dvd): Likewise.
19360
19361         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
19362         instead of __mul.
19363         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
19364         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
19365         (cc32): Likewise.
19366
19367         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
19368         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
19369         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
19370         of __mul for squares.
19371         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
19372         function
19373         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
19374         Likewise.
19375         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
19376         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
19377
19378 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
19379
19380         [BZ #13550]
19381         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
19382         code.
19383         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
19384         prototype or function definition.  Rename ubp_* variables and
19385         parameters.  Remove argv definitions conditional on
19386         [__BOUNDED_POINTERS__].
19387         * debug/backtrace.c (__backtrace): Do not use __unbounded.
19388         * elf/dl-runtime.c (_dl_fixup): Likewise.
19389         * include/set-hooks.h (RUN_HOOK): Likewise.
19390         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
19391         definition.
19392         * string/strcpy.c (strcpy): Do not use __unbounded.
19393         * sysdeps/generic/frame.h (struct layout): Likewise.
19394         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
19395         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
19396         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
19397         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
19398         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
19399         (__backtrace): Likewise.
19400         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
19401         use __ptrvalue.
19402         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
19403         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
19404         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
19405         Likewise.
19406         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
19407         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
19408         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
19409         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
19410         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
19411         Do not use __unbounded.
19412         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
19413         Rename __unboundedrlimits parameter to rlimits in prototype.
19414         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
19415         Do not use __unbounded.
19416         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
19417         not use __ptrvalue.
19418         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
19419         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
19420         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
19421         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
19422         __ptrvalue or __unbounded.
19423         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
19424         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
19425         use __unbounded.
19426         (__new_msgctl): Do not use __ptrvalue.
19427         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
19428         __unbounded.
19429         (__libc_msgrcv): Do not use __ptrvalue.
19430         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
19431         startup_info): Do not use __unbounded.
19432         (__libc_start_main): Likewise.  Rename ubp_* variables and
19433         parameters.  Remove argv definitions conditional on
19434         [__BOUNDED_POINTERS__].
19435         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
19436         __ptrvalue.
19437         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
19438         use __unbounded.
19439         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
19440         or __ptrvalue.
19441         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
19442         use __unbounded.
19443         (__new_shmctl): Do not use __ptrvalue.
19444         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
19445         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
19446         Likewise.
19447         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
19448         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
19449         (__libc_sigaction): Likewise.
19450         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
19451         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
19452         Likewise.
19453         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
19454
19455 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
19456
19457         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
19458
19459         * string/mempcpy.c: Implement by calling memcpy.
19460
19461 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
19462
19463         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
19464
19465         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
19466         evaluation.
19467
19468         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
19469         values in the mantissa.
19470
19471         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
19472         minimize writes to Z.
19473         (sub_magnitudes): Simplify code a bit.
19474
19475 2013-02-12  Roland McGrath  <roland@hack.frob.com>
19476
19477         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
19478         from the message.  The linker prefixes all warnings with that already.
19479
19480 2013-02-12  Andreas Schwab  <schwab@suse.de>
19481
19482         [BZ #15078]
19483         * posix/regexec.c (extend_buffers): Add parameter min_len.
19484         (check_matching): Pass minimum needed length.
19485         (clean_state_log_if_needed): Likewise.
19486         (get_subexp): Likewise.
19487         * posix/Makefile (tests): Add bug-regex34.
19488         (bug-regex34-ENV): Define.
19489         * posix/bug-regex34.c: New file.
19490
19491         [BZ #11561]
19492         * posix/regcomp.c (parse_bracket_exp): When looking up collating
19493         elements compare against the byte sequence of it, not its name.
19494         * posix/Makefile (tests): Add bug-regex35.
19495         (bug-regex35-ENV): Define.
19496         * posix/bug-regex35.c: New file.
19497
19498 2013-02-11  Tom de Vries  <tom@codesourcery.com>
19499
19500         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
19501         comment.
19502         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
19503         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
19504         (CHECK_EOL): Add undef.
19505
19506 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
19507
19508         * bits/stdlib-bsearch.h: New file.
19509         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
19510         * stdlib/stdlib.h: Likewise.
19511
19512 2013-02-11  Roland McGrath  <roland@hack.frob.com>
19513
19514         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
19515         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
19516         declaration.
19517         * manual/search.texi (Array Search Function): Add missing const in
19518         lfind prototype.
19519         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
19520         declaration to use rlim_t.
19521         (Basic Scheduling Functions): Remove erroneous const from
19522         sched_getparam prototype.  Remove erroneous * from
19523         sched_get_priority_max and sched_get_priority_min prototypes.
19524         (Resource Usage): Fix summary @comment on vtimes to refer to
19525         sys/vtimes.h rather than vtimes.h.
19526         Add missing *s in vtimes prototype.
19527         (Limits on Resources): Fix ulimit prototype to return long int.
19528         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
19529         prototypes to use long int rather than double.
19530         (BSD Random): Fix initstate and setstate to use char *, not void *.
19531         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
19532         prototype to make second argument 'struct aiocb64 *const[]'.
19533         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
19534         (Status of AIO Operations): Remove erroneous const in aio_return and
19535         aio_return64 prototypes.
19536         (Synchronizing I/O): Fix sync prototype to return void.
19537         * manual/startup.texi (Suboptions): Remove an erroneous const in
19538         getsubopt prototype.
19539         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
19540         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
19541         use size_t rather than int.
19542         (Scanning All Users): Likewise for getpwent_r.
19543         (Setting Groups): Add missing const to setgroups prototype.
19544         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
19545         * manual/socket.texi (Host Names): Fix gethostbyaddr and
19546         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
19547         'const void *' rather than 'const char *'.
19548         (Host Address Functions): Likewise for inet_ntop.
19549         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
19550         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
19551         ssize_t for return value.
19552         (Sending Data): Likewise for send, sendto, sendmsg.
19553         (Socket Option Functions): Add a missing const in setsockopt prototype.
19554         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
19555         use wchar_t for the argument.
19556         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
19557         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
19558         take no arguments.
19559         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
19560         double/float/long double for second argument.
19561         Fix return types of significand, significandf, significandl.
19562         * manual/filesys.texi (Setting Permissions): Use mode_t for second
19563         argument in fchmod prototype.
19564         (File Owner): Use uid_t and gid_t in fchown prototype.
19565         (File Times): Add const to utimes, futimes, and lutimes prototypes.
19566         (Making Special Files): Use mode_t and dev_t in mknod prototype.
19567         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
19568         use 'const struct dirent **' as argument types to CMP function pointer
19569         argument.
19570         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
19571         (File Times): Fix summary magic @comment for struct utimbuf and utime
19572         to refer to utime.h, not time.h.
19573         * manual/string.texi (Argz Functions): Add missing const in
19574         argz_extract and argz_next prototypes.
19575         (Finding Tokens in a String): Likewise for basename.
19576         (String/Array Comparison): Fix typo in wcscasecmp prototype.
19577         (Copying and Concatenation): Fix typo in wmemmove prototype.
19578         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
19579         (Signal Stack): Remove erroneous const in sigstack prototype.
19580         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
19581         prototype.
19582         (Simple Calendar Time): Likewise for stime.
19583         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
19584         prototype.
19585         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
19586         say sys/sysctl.h instead.
19587         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
19588         and vsyslog prototypes.
19589
19590 2013-02-11  Tom de Vries  <tom@codesourcery.com>
19591
19592         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
19593         Remove.
19594
19595 2013-02-11  Roland McGrath  <roland@hack.frob.com>
19596
19597         * misc/sys/mman.h: Fix typo in mremap comment.
19598
19599 2013-02-08  Roland McGrath  <roland@hack.frob.com>
19600
19601         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
19602         the '\0' terminator.
19603
19604 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
19605
19606         [BZ #13550]
19607         * debug/segfault.c: Don't include <bp-checks.h>.
19608         * sysdeps/generic/bp-checks.h: Remove file.
19609         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
19610         (__GETDENTS): Don't use CHECK_N.
19611         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
19612         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
19613         (__getgroups): Don't use CHECK_N.
19614         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
19615         (setgroups): Don't use CHECK_N.
19616         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
19617         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
19618         (__libc_msgrcv): Don't use CHECK_N.
19619         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
19620         (__libc_msgsnd): Don't use CHECK_N.
19621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
19622         <bp-checks.h>.
19623         (__libc_pread): Don't use CHECK_N.
19624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
19625         include <bp-checks.h>.
19626         (__libc_pread64): Don't use CHECK_N.
19627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
19628         include <bp-checks.h>.
19629         (__libc_pwrite): Don't use CHECK_N.
19630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
19631         include <bp-checks.h>.
19632         (__libc_pwrite64): Don't use CHECK_N.
19633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
19634         <bp-checks.h>.
19635         (__libc_pread): Don't use CHECK_N.
19636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
19637         include <bp-checks.h>.
19638         (__libc_pread64): Don't use CHECK_N.
19639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
19640         include <bp-checks.h>.
19641         (__libc_pwrite): Don't use CHECK_N.
19642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
19643         include <bp-checks.h>.
19644         (__libc_pwrite64): Don't use CHECK_N.
19645         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
19646         (do_pread): Don't use CHECK_N.
19647         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
19648         (do_pread64): Don't use CHECK_N.
19649         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
19650         (do_pwrite): Don't use CHECK_N.
19651         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
19652         (do_pwrite64): Don't use CHECK_N.
19653         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
19654         (__libc_readv): Don't use CHECK_N.
19655         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
19656         (semop): Don't use CHECK_N.
19657         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
19658         <bp-checks.h>.
19659         (semtimedop): Don't use CHECK_N.
19660         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
19661         (__libc_pread): Don't use CHECK_N.
19662         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
19663         <bp-checks.h>.
19664         (__libc_pread64): Don't use CHECK_N.
19665         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
19666         <bp-checks.h>.
19667         (__libc_pwrite): Don't use CHECK_N.
19668         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
19669         <bp-checks.h>.
19670         (__libc_pwrite64): Don't use CHECK_N.
19671         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
19672         <bp-checks.h>.
19673         (__libc_msgrcv): Don't use CHECK_N.
19674         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
19675         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
19676         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
19677         (__libc_writev): Don't use CHECK_N.
19678
19679 2013-02-08  Roland McGrath  <roland@hack.frob.com>
19680
19681         * string/strcpy.c: Removed unused variable.
19682
19683         * Makeconfig (+sysdep-includes): Define with := rather than =.
19684         Use an existing include/ subdir of each sysdeps dir before it.
19685
19686 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
19687
19688         * nscd/connection.c (register_traced_file): Comment function.
19689         [HAVE_INOTIFY] (union __inev): Define.
19690         [HAVE_INOTIFY] (inotify_check_files): New function.
19691         [HAVE_INOTIFY] (clear_db_cache): Likewise.
19692         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
19693         clear_db_cache.
19694         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
19695
19696 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
19697
19698         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
19699         loaded if not already and that a failure is permanent.
19700
19701 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
19702
19703         [BZ #15006]
19704         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
19705         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
19706
19707 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
19708
19709         [BZ #13550]
19710         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
19711         (CHECK_1_NULL_OK): Likewise.
19712         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
19713         (__fxstat): Do not use CHECK_1.
19714         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
19715         <bp-checks.h>.
19716         (___fxstat64): Do not use CHECK_1.
19717         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
19718         <bp-checks.h>.
19719         (__fxstatat): Do not use CHECK_1.
19720         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
19721         <bp-checks.h>.
19722         (__fxstatat64): Do not use CHECK_1.
19723         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
19724         <bp-checks.h>.
19725         (__fxstat): Do not use CHECK_1.
19726         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
19727         <bp-checks.h>.
19728         (__fxstatat): Do not use CHECK_1.
19729         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
19730         <bp-checks.h>.
19731         (__getresgid): Do not use CHECK_1.
19732         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
19733         <bp-checks.h>.
19734         (__getresuid): Do not use CHECK_1.
19735         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
19736         <bp-checks.h>.
19737         (__lxstat): Do not use CHECK_1.
19738         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
19739         <bp-checks.h>.
19740         (__old_msgctl): Do not use CHECK_1.
19741         (__new_msgctl): Likewise.
19742         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
19743         <bp-checks.h>.
19744         (__new_setrlimit): Do not use CHECK_1.
19745         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
19746         <bp-checks.h>.
19747         (__old_shmctl): Do not use CHECK_1.
19748         (__new_shmctl): Likewise.
19749         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
19750         <bp-checks.h>.
19751         (__xstat): Do not use CHECK_1.
19752         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
19753         (__lxstat): Do not use CHECK_1.
19754         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
19755         <bp-checks.h>.
19756         (___lxstat64): Do not use CHECK_1.
19757         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
19758         (__old_msgctl): Do not use CHECK_1.
19759         (__new_msgctl): Likewise.
19760         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
19761         <bp-checks.h>.
19762         (__gettimeofday): Do not use CHECK_1.
19763         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
19764         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
19765         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
19766         <bp-checks.h>.
19767         (__gettimeofday): Do not use CHECK_1.
19768         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
19769         (__old_shmctl): Do not use CHECK_1_NULL_OK.
19770         (__new_shmctl): Do not use CHECK_1.
19771         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
19772         <bp-checks.h>.
19773         (do_sigtimedwait): Do not use CHECK_1.
19774         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
19775         <bp-checks.h>.
19776         (do_sigwaitinfo): Do not use CHECK_1.
19777         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
19778         <bp-checks.h>.
19779         (msgctl): Do not use CHECK_1.
19780         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
19781         <bp-checks.h>.
19782         (shmctl): Do not use CHECK_1.
19783         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
19784         (ustat): Do not use CHECK_1.
19785         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
19786         <bp-checks.h>.
19787         (__fxstat): Do not use CHECK_1.
19788         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
19789         <bp-checks.h>.
19790         (__fxstatat): Do not use CHECK_1.
19791         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
19792         <bp-checks.h>.
19793         (__lxstat): Do not use CHECK_1.
19794         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
19795         <bp-checks.h>.
19796         (__xstat): Do not use CHECK_1.
19797         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
19798         (__xstat): Do not use CHECK_1.
19799         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
19800         (___xstat64): Do not use CHECK_1.
19801
19802         [BZ #13550]
19803         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
19804         definitions.
19805         (CHECK_BOUNDS_HIGH): Likewise.
19806         * string/strcpy.c: Do not include <bp-checks.h>.
19807         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
19808
19809 2013-02-07  Roland McGrath  <roland@hack.frob.com>
19810
19811         * nscd/nscd-client.h (__nscd_drop_map_ref):
19812         Add __attribute__ ((unused)).
19813         * nis/nss-nisplus.h (niserr2nss): Likewise.
19814
19815         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
19816         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
19817
19818         * csu/libc-tls.c (init_static_tls, init_slotinfo):
19819         Remove inline keyword.
19820         * include/rounding-mode.h (round_away): Likewise.
19821         * libio/wfileops.c (adjust_wide_data): Likewise.
19822         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
19823         (__m128i_strloadu_tolower): Likewise.
19824         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
19825         (__m128i_strloadu_tolower): Likewise.
19826         * time/mktime.c (ydhms_diff): Likewise.
19827         * locale/elem-hash.h (elem_hash): Likewise.
19828         * locale/setlocale.c (setdata): Likewise.
19829         * posix/regex_internal.h (re_string_char_size_at): Likewise.
19830         (re_string_wchar_at): Likewise.
19831         (bitset_not, bitset_merge, bitset_mask): Likewise.
19832         [!(__GNUC__ > 3)] (inline): Remove macro.
19833         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
19834         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
19835         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
19836         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
19837         * string/memcmp.c (memcmp_bytes): Likewise.
19838         * locale/programs/locarchive.c (compute_hashval): Likewise.
19839         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
19840         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
19841         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
19842         * nss/getent.c (print_rpc, print_protocols): Likewise.
19843         (print_passwd, print_group, print_aliases): Likewise.
19844         * nis/nss-nisplus.h (niserr2nss): Likewise.
19845         * nscd/connections.c (restart_p): Likewise.
19846         Change return type to bool.
19847
19848 2013-02-05  Roland McGrath  <roland@hack.frob.com>
19849
19850         * Makeconfig (all-Depend-files): Add existing
19851         $(sorted-subdirs:=/Depend) files.
19852         (all-subdirs): Remove nss.
19853         * sysdeps/unix/inet/Subdirs: Add it here instead.
19854         * hesiod/Depend: New file.
19855
19856         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
19857         instead of calling alloca.
19858
19859         * io/lseek.c (__lseek): Rename to __libc_lseek.
19860         Define __lseek as an alias.
19861
19862         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
19863
19864 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
19865
19866         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
19867         else clause and remove check for non-standard endianness.
19868
19869 2013-02-04  David S. Miller  <davem@davemloft.net>
19870
19871         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19872
19873 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
19874
19875         [BZ #13550]
19876         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
19877         (__ubp_memchr): Remove prototype.
19878         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
19879         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
19880         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
19881         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
19882         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
19883         Remove alias.
19884         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
19885         (__ubp_memchr): Likewise.
19886         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
19887         (__ubp_memchr): Likewise.
19888         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
19889         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
19890         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
19891         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
19892         CHECK_STRING.
19893         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
19894         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
19895         (__getcwd): Do not use CHECK_STRING.
19896         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
19897         <bp-checks.h>.
19898         (__real_chown): Do not use CHECK_STRING.
19899         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
19900         <bp-checks.h>.
19901         (fchownat): Do not use CHECK_STRING.
19902         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
19903         CHECK_STRING.
19904         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
19905         <bp-checks.h>.
19906         (__lchown): Do not use CHECK_STRING.
19907         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
19908         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
19909         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
19910         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
19911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
19912         include <bp-checks.h>.
19913         (truncate64): Do not use CHECK_STRING.
19914         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
19915         <bp-checks.h>.
19916         (__real_chown): Do not use CHECK_STRING.
19917         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
19918         <bp-checks.h>.
19919         (__lchown): Do not use CHECK_STRING.
19920         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
19921         <bp-checks.h>.
19922         (__chown): Do not use CHECK_STRING.
19923         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
19924         <bp-checks.h>.
19925         (truncate64): Do not use CHECK_STRING.
19926         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
19927         Likewise.
19928         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
19929         (__xmknod): Do not use CHECK_STRING.
19930         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
19931         <bp-checks.h>.
19932         (__xmknodat): Do not use CHECK_STRING.
19933         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
19934         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
19935
19936 2013-02-04  Andreas Schwab  <schwab@suse.de>
19937
19938         [BZ #14142]
19939         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
19940         * include/netdb.h: Likewise for h_errno.
19941         * elf/tst-stackguard1.c: Include <tls.h>.
19942
19943 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
19944
19945         * elf/link.h (struct link_map): Extend the l_addr comment.
19946         * include/link.h (struct link_map): Likewise.
19947
19948 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
19949
19950         [BZ #13550]
19951         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
19952         (BOUNDED_1): Remove macro.
19953         * debug/backtrace.c: Don't include <bp-checks.h>.
19954         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
19955         (__backtrace): Likewise.
19956         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
19957         <bp-checks.h>.
19958         (__backtrace): Don't use BOUNDED_1.
19959         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
19960         <bp-checks.h>.
19961         (__backtrace): Don't use BOUNDED_1.
19962         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
19963         (__backtrace): Don't use BOUNDED_1.
19964         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
19965         (shmat): Don't use BOUNDED_N.
19966
19967 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
19968
19969         [BZ #13550]
19970         * sysdeps/generic/bp-start.h: Remove file.
19971         * csu/libc-start.c: Don't include <bp-start.h>.
19972         (LIBC_START_MAIN): Set up __environ directly instead of using
19973         INIT_ARGV_and_ENVIRON.
19974         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
19975         <bp-start.h>.
19976
19977         [BZ #13550]
19978         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
19979         definitions.
19980         (CHECK_FCNTL): Likewise.
19981         (CHECK_N_PAGES): Likewise.
19982
19983         [BZ #13550]
19984         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
19985         definitions.
19986         (CHECK_SIGSET_NULL_OK): Likewise.
19987         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
19988         <bp-checks.h>.
19989         (sigpending): Don't use CHECK_SIGSET.
19990         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
19991         <bp-checks.h>.
19992         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
19993         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
19994         <bp-checks.h>.
19995         (do_sigsuspend): Don't use CHECK_SIGSET.
19996         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
19997         use CHECK_SIGSET.
19998         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
19999         (do_sigwait): Don't use CHECK_SIGSET.
20000         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
20001         use CHECK_SIGSET.
20002         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
20003         include <bp-checks.h>.
20004         (sigpending): Don't use CHECK_SIGSET.
20005         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
20006         include <bp-checks.h>.
20007         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
20008         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
20009         <bp-checks.h>.
20010         (sigpending): Don't use CHECK_SIGSET.
20011         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
20012         <bp-checks.h>.
20013         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
20014
20015         [BZ #13550]
20016         * sysdeps/generic/bp-semctl.h: Remove file.
20017         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
20018         <bp-checks.h> and <bp-semctl.h>.
20019         (__old_semctl): Don't use CHECK_SEMCTL.
20020         (__new_semctl): Likewise.
20021         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
20022         and <bp-semctl.h>.
20023         (__old_semctl): Don't use CHECK_SEMCTL.
20024         (__new_semctl): Likewise.
20025         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
20026         <bp-checks.h> and <bp-semctl.h>.
20027         (__old_semctl): Don't use CHECK_SEMCTL.
20028         (__new_semctl): Likewise.
20029         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
20030         <bp-checks.h> and <bp-semctl.h>.
20031         (semctl): Don't use CHECK_SEMCTL.
20032
20033         [BZ #13550]
20034         * Makerules (elide-bp-thunks): Remove variable.
20035         (elide-routines.oS): Don't use $(elide-bp-thunks).
20036         (elide-routines.os): Likewise.
20037         (elide-routines.o): Likewise.
20038         (elide-routines.op): Likewise.
20039         (elide-routines.og): Likewise.
20040         (objects): Don't use $(bp-thunks).
20041         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
20042         include.
20043         (common-generated): Do not add s-proto-bp.d.
20044         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
20045         (int): Likewise.
20046         (typ): Likewise.
20047         Do not generate makefile rules for bounded-pointer thunks.
20048         * sysdeps/generic/bp-thunks.h: Remove file.
20049         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
20050         * sysdeps/unix/s-proto-bp.S: Likewise.
20051
20052         [BZ #15062]
20053         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
20054         parts of result separately when argument is not close to line from
20055         -i to i and one part of argument is small.
20056         * math/k_casinhf.c (__kernel_casinhf): Likewise.
20057         * math/k_casinhl.c (__kernel_casinhl): Likewise.
20058         * math/libm-test.inc (cacos_test): Add more tests.
20059         (casin_test): Likewise.
20060         (casinh_test): Likewise.
20061         * sysdeps/i386/fpu/libm-test-ulps: Update.
20062         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20063
20064 2013-01-31  David S. Miller  <davem@davemloft.net>
20065
20066         * po/de.po: Update from translation team.
20067
20068 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
20069
20070         * time/tzfile.c: Include stdint.h for SIZE_MAX.
20071
20072 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
20073
20074         * configure.in (_AC_PROG_CC_C89): New definition.
20075         * configure: Regenerate.
20076
20077         * configure.in (AC_PROG_CPP): New definition.
20078         * configure: Regenerate.
20079
20080 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
20081
20082         * debug/tst-backtrace.h: New file.
20083         * debug/tst-backtrace2.c: Include tst-backtrace.h.
20084         (ret): Remove variable.
20085         (x): Likewise.
20086         (FAIL): Remove macro.
20087         (NO_INLINE): Likewise.
20088         (fn1): Use match function instead of strstr.
20089         * debug/tst-backtrace3.c: Include tst-backtrace.h.
20090         (ret): Remove variable.
20091         (x): Likewise.
20092         (FAIL): Remove macro.
20093         (NO_INLINE): Likewise.
20094         (fn): Use match function instead of strstr.
20095         * debug/tst-backtrace4.c: Include tst-backtrace.h.
20096         (ret): Remove variable.
20097         (x): Likewise.
20098         (FAIL): Remove macro.
20099         (NO_INLINE): Likewise.
20100         (handle_signal): Use match function instead of strstr.
20101         * debug/tst-backtrace5.c: Include tst-backtrace.h.
20102         (ret): Remove variable.
20103         (x): Likewise.
20104         (FAIL): Remove macro.
20105         (NO_INLINE): Likewise.
20106         (handle_signal): Use match function instead of strstr.
20107
20108 2013-01-23  Roland McGrath  <roland@hack.frob.com>
20109
20110         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
20111
20112 2013-01-23  David S. Miller  <davem@davemloft.net>
20113
20114         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
20115         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
20116         argument of CAS if possible.
20117         * sysdeps/sparc/sparc64/bits/atomic.h
20118         (__arch_compare_and_exchange_val_32_acq): Likewise.
20119         (__arch_compare_and_exchange_val_64_acq): Likewise.
20120
20121 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
20122
20123         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
20124         * sysdeps/posix/ulimit.c: ... this.
20125         Include <limits.h>.
20126         * sysdeps/unix/bsd/ulimit.c: Remove file.
20127
20128 2013-01-23  Adam Conrad  <adconrad@0c3.net>
20129
20130         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
20131         (LDFLAGS-tst-array5): Likewise.
20132
20133 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
20134
20135         [BZ #15036]
20136         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
20137         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
20138         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
20139         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
20140
20141 2013-01-21  David S. Miller  <davem@davemloft.net>
20142
20143         * sysdeps/sparc/backtrace.c: New file.
20144         * sysdeps/sparc/sparc32/backtrace.h: New file.
20145         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
20146         * sysdeps/sparc/sparc64/backtrace.h: New file.
20147         * sysdeps/sparc/sparc64/backtrace.c: Delete.
20148         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
20149         -funwind-tables.
20150
20151 2013-01-21  Andreas Schwab  <schwab@suse.de>
20152
20153         [BZ #15020]
20154         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
20155         closed its stdout.
20156
20157 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
20158
20159         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
20160         "mpa2.h".
20161         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20162
20163 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
20164             Mark Mitchell  <mark@codesourcery.com>
20165             Tom de Vries  <tom@codesourcery.com>
20166             Paul Pluzhnikov  <ppluzhnikov@google.com>
20167
20168         * debug/tst-backtrace2.c: New file.
20169         * debug/tst-backtrace3.c: Likewise.
20170         * debug/tst-backtrace4.c: Likewise.
20171         * debug/tst-backtrace5.c: Likewise.
20172         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
20173         (CFLAGS-tst-backtrace3.c): Likewise.
20174         (CFLAGS-tst-backtrace4.c): Likewise.
20175         (CFLAGS-tst-backtrace5.c): Likewise.
20176         (LDFLAGS-tst-backtrace2): Likewise.
20177         (LDFLAGS-tst-backtrace3): Likewise.
20178         (LDFLAGS-tst-backtrace4): Likewise.
20179         (LDFLAGS-tst-backtrace5): Likewise.
20180         (tests): Add new tests tst-backtrace2, tst-backtrace3,
20181         tst-backtrace4 and tst-backtrace5.
20182
20183 2013-01-18  Anton Blanchard  <anton@samba.org>
20184             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
20185
20186         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
20187         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
20188         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
20189         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
20190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
20191         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
20192         "+r" and remove output regs list as redundant.  Add explicit inline
20193         asm to specify register of return val to work around compiler codegen
20194         bug.  Remove (int) cast on return value.  Add return type parameter to
20195         use in macro so that this macro does not truncate return value for
20196         64-bit values.
20197         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
20198         pass to INTERNAL_VSYSCALL_NCS.
20199         (INLINE_VSYSCALL): Add 'long int' as return type to
20200         INTERNAL_VSYSCALL_NCS macro invocation.
20201         (INTERNAL_VSYSCALL): Add 'long int' as return type to
20202         INTERNAL_VSYSCALL_NCS macro invocation.
20203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
20204
20205 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20206
20207         [BZ #14496]
20208         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
20209         Fix application of SIMD FP exception mask.
20210
20211         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
20212         mp_no from a power of two.
20213         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
20214         __mpexp_twomm1.  Use __pow_mp.
20215
20216         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
20217         multiplication.
20218
20219 2013-01-17  David S. Miller  <davem@davemloft.net>
20220
20221         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20222
20223 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
20224
20225         [BZ #15023]
20226         * include/complex.h: Condition contents on [!_COMPLEX_H].
20227         (__kernel_casinhf): New prototype.
20228         (__kernel_casinh): Likewise.
20229         (__kernel_casinhl): Likewise.
20230         * math/Makefile (libm_calls): Add k_casinh.
20231         * math/k_casinh.c: New file.
20232         * math/k_casinhf.c: Likewise.
20233         * math/k_casinhl.c: Likewise.
20234         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
20235         finite nonzero arguments.
20236         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
20237         finite nonzero arguments.
20238         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
20239         finite nonzero arguments.
20240         * math/s_casinh.c: Do not include <float.h>.
20241         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
20242         * math/s_casinhf.c: Do not include <float.h>.
20243         (__casinhf): Move code for finite nonzero arguments to
20244         k_casinhf.c.
20245         * math/s_casinhl.c: Do not include <float.h>.
20246         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
20247         redefine.
20248         (__casinhl): Move code for finite nonzero arguments to
20249         k_casinhl.c.
20250         * math/libm-test.inc (cacos_test): Add more tests.
20251         * sysdeps/i386/fpu/libm-test-ulps: Update.
20252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20253
20254 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
20255
20256         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
20257         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
20258         [!HAVE_MREMAP]: Remove [defined linux] case.
20259         * malloc/arena.c: Do not include <malloc-sysdep.h>.
20260
20261 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
20262
20263         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
20264
20265 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
20266
20267         * elf/elf.h (R_386_SIZE32): New relocation.
20268         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
20269         R_386_SIZE32.
20270         (elf_machine_rela): Likewise.
20271         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
20272         R_X86_64_SIZE64 and R_X86_64_SIZE32.
20273
20274 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
20275
20276         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
20277         (FP_FAST_FMA): Do not define.
20278         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
20279         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
20280         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
20281         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
20282         !_SOFT_FLOAT]: Likewise.
20283         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
20284         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
20285         value.
20286         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
20287         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
20288         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
20289         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
20290         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
20291         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
20292         file.
20293
20294 2013-01-16  Andreas Schwab  <schwab@suse.de>
20295
20296         [BZ #14327]
20297         * include/stdlib.h (__mktemp): Add declaration.
20298         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
20299         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
20300
20301 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
20302
20303         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
20304         definitions.
20305         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
20306         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
20307         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
20308         definitions here.
20309         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
20310         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
20311         definitions.
20312         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
20313         and ONE.
20314         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
20315         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
20316         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
20317         definitions.
20318         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
20319         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
20320         definitions.
20321         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
20322
20323         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
20324
20325 2013-01-15  David S. Miller  <davem@davemloft.net>
20326
20327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
20328         trunc{,f} to libm-sysdep_routes.
20329         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
20330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
20331         file.
20332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
20333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
20334         file.
20335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
20336         file.
20337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
20338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
20339         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
20340         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
20341         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
20342         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
20343         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
20344         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
20345
20346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
20347         nearbyint{,f} to libm-sysdep_routes.
20348         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
20349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
20350         New file.
20351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
20352         file.
20353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
20354         New file.
20355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
20356         file.
20357         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
20358         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
20359         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
20360         file.
20361         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
20362         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
20363         file.
20364         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
20365         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
20366         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
20367
20368         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
20369         libc_feholdexcept and libc_fesetenv.
20370
20371 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
20372
20373         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
20374
20375 2013-01-14  David S. Miller  <davem@davemloft.net>
20376
20377         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
20378         (SPARC_ASM_VIS2_IFUNC): Likewise.
20379         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
20380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
20381         use of 'siam' instruction.
20382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
20383         Likewise.
20384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
20385         Likewise.
20386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
20387         Likewise.
20388         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
20389         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
20390         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
20391         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
20392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
20393         file.
20394         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
20395         file.
20396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
20397         file.
20398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
20399         file.
20400         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
20401         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
20402         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
20403         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
20404         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
20405         new VIS2 routines.
20406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
20407         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
20408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
20409         Likewise.
20410         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
20411         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
20412         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
20413         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
20414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
20415         routines to libm-sysdep_routines.
20416         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
20417
20418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
20419         fdim/fdimf to libm-sysdep_routines.
20420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
20421         file.
20422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
20423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
20424         file.
20425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
20426         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
20427         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
20428         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
20429         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
20430         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
20431         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
20432
20433 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20434
20435         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
20436         to optimize copies.
20437
20438         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
20439         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
20440         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20441
20442         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
20443         local variable MPTWO.
20444         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
20445         Likewise.
20446
20447 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
20448
20449         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
20450         GLOB_NOESCAPE.
20451
20452 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
20453
20454         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
20455
20456 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
20457
20458         * manual/pattern.texi (glob_t): Document gl_flags.
20459         (glob64_t): Likewise.
20460
20461 2013-01-11  David S. Miller  <davem@davemloft.net>
20462
20463         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
20464         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
20465         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
20466         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
20467         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
20468         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
20469         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
20470         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
20471         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
20472         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
20473         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
20474         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
20475         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
20476
20477         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
20478         sparc V9 rather than using V8 code.
20479         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
20480         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
20481
20482         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
20483         Move to...
20484         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
20485         Here.
20486
20487 2013-01-11  Roland McGrath  <roland@hack.frob.com>
20488
20489         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
20490         not in the main loop.
20491         * configure: Regenerated.
20492
20493 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
20494
20495         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
20496         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
20497         to just #else.
20498         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
20499         [!__GLIBC_HAVE_LONG_LONG] case.
20500         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
20501         condition to just #else.
20502         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
20503         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
20504         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
20505         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
20506         unconditional.
20507         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
20508         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
20509         #elif condition to just #else.
20510         * sysdeps/unix/sysv/linux/sys/sysmacros.h
20511         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
20512         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
20513         #elif condition to just #else.
20514
20515 2013-01-11  Steve Ellcey  <sellcey@mips.com>
20516
20517         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
20518         (EF_MIPS_ARCH_64): Fix value.
20519         (EF_MIPS_ARCH_32R2): New.
20520         (EF_MIPS_ARCH_64R2): New.
20521
20522 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
20523
20524         * Makeconfig (+link-pie-before-libc): New.
20525         (+link-pie-after-libc): Likewise.
20526         (+link-pie-tests): Likewise.
20527         (+link-pie): Rewritten.
20528         (link-before-libc): Remove $(config-LDFLAGS).
20529         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
20530         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
20531         (config-LDFLAGS): Renamed to ...
20532         (rtld-LDFLAGS): This.
20533         (rtld-tests-LDFLAGS): New macro.
20534         (link-libc-rpath-link): Likewise.
20535         (link-libc-tests-rpath-link): Likewise.
20536         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
20537         (link-libc): Prepand $(link-libc-rpath-link).
20538         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
20539         (test-program-prefix): New macro.
20540         (test-via-rtld-prefix): Likewise.
20541         (test-program-cmd): Likewise.
20542         (host-test-program-cmd): Likewise.
20543         * Makefile ($(common-objpfx)testrun.sh): Replace
20544         $(run-program-prefix) with $(test-program-prefix).
20545         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
20546         $(rtld-LDFLAGS).
20547         ($(common-objpfx)shlib.lds): Likewise.
20548         (build-module-helper): Likewise.
20549         ($(common-objpfx)format.lds): Likewise.
20550         * Rules (binaries-pie-tests): New.
20551         (binaries-pie-notests): Likewise.
20552         (binaries-pie): Rewritten.
20553         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
20554         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
20555         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
20556         (make-test-out): Replace $(host-built-program-cmd) with
20557         $(host-test-program-cmd).
20558         * config.make.in (build-hardcoded-path-in-tests): New variable.
20559         * configure.in (--enable-hardcoded-path-in-tests): New configure
20560         option.
20561         (hardcoded_path_in_tests): New AC_SUBST.
20562         * configure: Regenerated.
20563         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
20564         $(built-program-cmd) with $(test-program-cmd).
20565         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
20566         (test_program_cmd): This.
20567         * elf/Makefile ($(objpfx)order.out): Run test with
20568         $(test-program-prefix).
20569         ($(objpfx)order2.out): Likewise.
20570         ($(objpfx)tst-initorder.out): Likewise.
20571         ($(objpfx)tst-initorder2.out): Likewise.
20572         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
20573         $(test-program-cmd).
20574         ($(objpfx)tst-array1-static.out): Likewise.
20575         ($(objpfx)tst-array2.out): Likewise.
20576         ($(objpfx)tst-array3.out): Likewise.
20577         ($(objpfx)tst-array4.out): Likewise.
20578         ($(objpfx)tst-array5.out): Likewise.
20579         ($(objpfx)tst-array5-static.out): Likewise.
20580         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
20581         $(test-program-cmd).
20582         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
20583         $(run-program-prefix) with $(test-program-prefix).
20584         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
20585         (test_program_prefix): This.
20586         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
20587         $(run-program-prefix) with $(test-program-prefix).
20588         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
20589         (test_program_prefix): This.
20590         * iconvdata/tst-tables.sh: Likewise.
20591         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
20592         $(run-program-prefix) with $(test-program-prefix).
20593         ($(objpfx)tst-translit.out): Likewise.
20594         ($(objpfx)tst-gettext2.out): Likewise.
20595         ($(objpfx)tst-gettext4.out): Likewise.
20596         ($(objpfx)tst-gettext6.out): Likewise.
20597         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
20598         (test_program_prefix): This.
20599         * intl/tst-gettext2.sh: Likewise.
20600         * intl/tst-gettext4.sh  Likewise.
20601         * intl/tst-gettext6.sh: Likewise.
20602         * intl/tst-translit.sh: Likewise.
20603         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
20604         with $(test-program-cmd).
20605         * libio/Makefile ($(objpfx)test-freopen.out): Replace
20606         $(run-program-prefix) with $(test-program-prefix).
20607         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
20608         (test_program_prefix): This.
20609         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
20610         $(run-program-prefix) with $(test-program-prefix).
20611         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
20612         (test_program_prefix): This.
20613         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
20614         * posix/Makefile ($(objpfx)globtest.out): Replace
20615         $(run-via-rtld-prefix) and $(test-wrapper) with
20616         $(test-program-prefix) and $(test-via-rtld-prefix).
20617         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
20618         $(test-program-prefix).
20619         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
20620         $(host-test-program-cmd).
20621         (tst-spawn-ARGS): Likewise.
20622         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
20623         $(test-program-prefix).
20624         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
20625         (test_via_rtld_prefix): This.
20626         (test_wrapper): Renamed to ...
20627         (test_program_prefix): This.
20628         (run_program_prefix): Replaced by test_program_prefix.
20629         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
20630         (test_program_prefix): This.
20631         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
20632         with $(host-test-program-cmd).
20633         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
20634         $(run-program-prefix) with $(test-program-prefix).
20635         ($(objpfx)tst-printf.out): Likewise.
20636         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
20637         $(test-program-cmd).
20638         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
20639         (test_program_prefix): This.
20640         * stdio-common/tst-unbputc.sh: Likewise.
20641         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
20642         $(run-program-prefix) with $(test-program-prefix).
20643         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
20644         (test_program_prefix): This.
20645         * string/Makefile ($(objpfx)tst-svc.out):  Replace
20646         $(built-program-cmd) with $(test-program-cmd).
20647
20648 2013-01-11  Andreas Jaeger  <aj@suse.de>
20649
20650         [BZ #15003]
20651         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
20652         value. Sync with Linux 3.7.
20653
20654 2013-01-10  David S. Miller  <davem@davemloft.net>
20655
20656         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
20657         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
20658         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
20659
20660 2013-01-10  Roland McGrath  <roland@hack.frob.com>
20661
20662         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
20663         never set.
20664         * configure: Regenerated.
20665
20666 2013-01-10  David S. Miller  <davem@davemloft.net>
20667
20668         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
20669         sparc V9 rather than using V8 code.
20670         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
20671         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
20672
20673 2013-01-10  Roland McGrath  <roland@hack.frob.com>
20674
20675         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
20676         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
20677         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
20678         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
20679         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
20680         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
20681         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
20682         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
20683         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
20684         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
20685         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
20686         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
20687         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
20688         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
20689         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
20690         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
20691         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
20692         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
20693         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
20694         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
20695         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
20696         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
20697         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
20698         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
20699         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
20700         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
20701         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
20702
20703 2013-01-10  David S. Miller  <davem@davemloft.net>
20704
20705         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20706
20707 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
20708
20709         * posix/Makefile (tests-static): New variable.
20710         (tests): Add $(tests-static).
20711         (tst-exec-static-ARGS): New variable.
20712         (tst-spawn-static-ARGS): Likewise.
20713         * posix/tst-exec-static.c: New file.
20714         * posix/tst-spawn-static.c: Likewise.
20715         * posix/tst-exec.c: Support run directly.
20716         * posix/tst-spawn.c: Likewise.
20717
20718 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
20719
20720         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
20721         long.
20722         * math/bits/mathcalls.h (llrint): Likewise.
20723         (llround): Likewise.
20724         * stdlib/stdlib.h (struct drand48_data): Likewise.
20725         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
20726         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
20727         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
20728         Likewise.
20729         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
20730         Likewise.
20731         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
20732         (elf_greg_t): Likewise.
20733         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
20734         (__jmp_buf): Likewise.
20735         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
20736         definitions.
20737         (llrint): Likewise, for all definitions.
20738         (llrintl): Likewise.
20739
20740         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
20741         Remove [__GNUC__] condition.
20742         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
20743         condition to just [__USE_ISOC99].
20744         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
20745
20746 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
20747
20748         [BZ #14200]
20749         * sysdeps/unix/sysv/linux/x86/bits/environments.h
20750         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
20751         defined.
20752         (_POSIX_V6_ILP32_OFF32): Likewise.
20753         (_XBS5_ILP32_OFF32): Likewise.
20754         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
20755         (__ILP32_OFFBIG_LDFLAGS): Likewise.
20756
20757 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
20758
20759         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
20760
20761         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
20762         doubles __mpexp_twomm1.  Adjust usage.
20763         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
20764         Remove.
20765
20766 2013-01-10  Andreas Schwab  <schwab@suse.de>
20767
20768         [BZ #14964]
20769         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
20770         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
20771
20772 2013-01-09  David S. Miller  <davem@davemloft.net>
20773
20774         [BZ #15003]
20775         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
20776         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
20777         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
20778         (TCP_FASTOPEN): Define.
20779         (tcp_repair_opt): New structure.
20780         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
20781         enum values.
20782         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
20783         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
20784         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
20785         (tcp_cookie_transactions): New structure.
20786
20787 2013-01-09  Anton Blanchard  <anton@samba.org>
20788
20789         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
20790         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
20791         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
20792         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
20793
20794 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
20795
20796         * include/features.h (__USE_ANSI): Remove.
20797
20798 2013-01-09  Roland McGrath  <roland@hack.frob.com>
20799
20800         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
20801
20802         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
20803
20804 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
20805
20806         * sysdeps/s390/fpu/libm-test-ulps: Update.
20807
20808         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20809
20810         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
20811         (__acr): Likewise.
20812         (__cpy): Likewise.
20813         (norm): Likewise.
20814         (denorm): Likewise.
20815         (__mp_dbl): Likewise.
20816         (__dbl_mp): Likewise.
20817         (add_magnitudes): Likewise.
20818         (sub_magnitudes): Likewise.
20819         (__add): Likewise.
20820         (__sub): Likewise.
20821         (__mul): Likewise.
20822         (__inv): Likewise.
20823         (__dvd): Likewise.
20824         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
20825         (__acr): Likewise.
20826         (__cpy): Likewise.
20827         (norm): Likewise.
20828         (denorm): Likewise.
20829         (__mp_dbl): Likewise.
20830         (__dbl_mp): Likewise.
20831         (add_magnitudes): Likewise.
20832         (sub_magnitudes): Likewise.
20833         (__add): Likewise.
20834         (__sub): Likewise.
20835         (__mul): Likewise.
20836         (__inv): Likewise.
20837         (__dvd): Likewise.
20838         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
20839         (__acr): Likewise.
20840         (__cpy): Likewise.
20841         (norm): Likewise.
20842         (denorm): Likewise.
20843         (__mp_dbl): Likewise.
20844         (__dbl_mp): Likewise.
20845         (add_magnitudes): Likewise.
20846         (sub_magnitudes): Likewise.
20847         (__add): Likewise.
20848         (__sub): Likewise.
20849         (__mul): Likewise.
20850         (__inv): Likewise.
20851         (__dvd): Likewise.
20852
20853 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
20854
20855         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
20856         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
20857         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
20858         2 && __USE_EXTERN_INLINES]: Likewise.
20859
20860 2013-01-08  Andreas Jaeger  <aj@suse.de>
20861
20862         [BZ# 14985]
20863         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
20864         Remove.
20865         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
20866         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
20867
20868 2013-01-07  Anton Blanchard  <anton@samba.org>
20869
20870         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
20871         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
20872         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
20873         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
20874         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
20875         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
20876         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
20877         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
20878         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
20879         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
20880         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
20881         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
20882         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
20883         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
20884         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
20885         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
20886         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
20887         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
20888         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
20889         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
20890         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
20891         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
20892         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20893         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
20894         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
20895         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
20896         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
20897         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
20898         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
20899         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
20900         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
20901         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20902         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
20903         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
20904         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
20905         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20906         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
20907         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
20908         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
20909         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
20910         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
20911         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20912         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
20913
20914 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
20915
20916         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
20917         (__MALLOC_PMT): Likewise.
20918         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
20919         [__GNUC__], only on [_LIBC].
20920         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
20921         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
20922         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
20923         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
20924         forward declaration.
20925         (realloc_hook_ini): Likewise.
20926         (memalign_hook_ini): Likewise.
20927         (__libc_memalign): Do not use __MALLOC_PMT in variable
20928         declaration.
20929         (__libc_valloc): Likewise.
20930         (__libc_pvalloc): Likewise.
20931         (__libc_calloc): Likewise.
20932         (__posix_memalign): Likewise.
20933
20934         [BZ #14996]
20935         * math/s_casinh.c: Include <float.h>.
20936         (__casinh): Do not do computation with squaring and square root
20937         for large arguments.
20938         * math/s_casinhf.c: Include <float.h>.
20939         (__casinhf): Do not do computation with squaring and square root
20940         for large arguments.
20941         * math/s_casinhl.c: Include <float.h>.
20942         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
20943         (__casinhl): Do not do computation with squaring and square root
20944         for large arguments.
20945         * math/libm-test.inc (casin_test): Add more tests.
20946         (casinh_test): Likewise.
20947         * sysdeps/i386/fpu/libm-test-ulps: Update.
20948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20949
20950 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
20951
20952         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
20953         (__x86_64_raw_data_cache_size): Likewise.
20954         (__x86_64_data_cache_size_half): Likewise.
20955         (__x86_64_raw_data_cache_size_half): Likewise.
20956         (__x86_64_shared_cache_size): Likewise.
20957         (__x86_64_raw_shared_cache_size): Likewise.
20958         (__x86_64_shared_cache_size_half): Likewise.
20959         (__x86_64_raw_shared_cache_size_half): Likewise.
20960         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
20961         to ...
20962         (__x86_data_cache_size): This.
20963         (__x86_64_raw_data_cache_size): Renamed to ...
20964         (__x86_raw_data_cache_size): This.
20965         (__x86_64_data_cache_size_half): Renamed to ...
20966         (__x86_data_cache_size_half): This.
20967         (__x86_64_raw_data_cache_size_half): Renamed to ...
20968         (__x86_raw_data_cache_size_half): This.
20969         (__x86_64_shared_cache_size): Renamed to ...
20970         (__x86_shared_cache_size): This.
20971         (__x86_64_raw_shared_cache_size): Renamed to ...
20972         (__x86_raw_shared_cache_size): This.
20973         (__x86_64_shared_cache_size_half): Renamed to ...
20974         (__x86_shared_cache_size_half): This.
20975         (__x86_64_raw_shared_cache_size_half): Renamed to ...
20976         (__x86_raw_shared_cache_size_half): This.
20977         * sysdeps/x86_64/memcpy.S: Updated.
20978         * sysdeps/x86_64/memset.S: Likewise.
20979         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
20980         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20981         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20982
20983 2013-01-04  David S. Miller  <davem@davemloft.net>
20984
20985         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20986
20987 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
20988
20989         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
20990         1 to avoid redefinition warning.
20991         (__USE_GNU): Don't define.
20992         (init_signaling_nan): Protoize.
20993
20994         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20995
20996 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
20997
20998         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
20999         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
21000         (__cpymn): Likewise.
21001         (norm): Remove commented code.
21002         (denorm): Likewise.
21003         (__mp_dbl): Likewise.
21004         (__inv): Likewise.
21005         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
21006         (__cpymn): Likewise.
21007         (norm): Remove commented code.
21008         (denorm): Likewise.
21009         (__mp_dbl): Likewise.
21010         (__inv): Likewise.
21011
21012         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
21013         mp_no value for 1.0 and 2.0.
21014         (norm): Use RADIXI instead of radixi.d.
21015         (denorm): Likewise.
21016         (__mul): Use 0.0 instead of zero.d.
21017         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
21018         mp_no value for 1.0 and 2.0.
21019         (norm): Use RADIXI instead of radixi.d.
21020         (denorm): Likewise.
21021         (__mul): Use 0.0 instead of zero.d.
21022
21023 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
21024
21025         [BZ #14994]
21026         * math/s_casinh.c (__casinh): Reduce finite argument to first
21027         quadrant then set signs of results at the end.
21028         * math/s_casinhf.c (__casinhf): Likewise.
21029         * math/s_casinhl.c (__casinhl): Likewise.
21030         * math/libm-test.inc (casin_test): Add more tests.
21031         (casinh_test): Likewise.
21032         * sysdeps/i386/fpu/libm-test-ulps: Update.
21033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21034
21035 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
21036
21037         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
21038
21039         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
21040
21041         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
21042         declarations.
21043         (denorm): Likewise.
21044         (__mp_dbl): Likewise.
21045         (__inv): Likewise.
21046
21047         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
21048         and adjust the header comment.
21049
21050         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
21051         variable name from declaration.
21052
21053 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
21054
21055         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21056         Initialize COMMON_CPUID_INDEX_7 element.
21057         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
21058         (CPUID_RTM): Likewise.
21059         (HAS_RTM): Likewise.
21060         (COMMON_CPUID_INDEX_7): New enum.
21061
21062 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
21063
21064         [BZ #14981]
21065         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
21066         size is zero, record memory as freed.
21067
21068 2013-01-03  Andreas Jaeger  <aj@suse.de>
21069
21070         * po/ia.po: Add new Interlingua translation.
21071
21072 2012-01-03  Allan McRae  <allan@archlinux.org>
21073
21074         * locale/programs/localedef.c: Fix description of '--posix' flag.
21075
21076 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
21077
21078         * NEWS: Update dates in second copyright notice.
21079         * README: Update copyright dates in example.
21080         * manual/libc.texinfo: Update copyright dates.
21081         * scripts/test-installation.pl: Update copyright date in --version
21082         output.
21083
21084         * hurd/ctty-input.c: Fix copyright notice formatting.
21085         * hurd/ctty-output.c: Likewise.
21086         * hurd/dtable.c: Likewise.
21087         * hurd/hurd-raise.c: Likewise.
21088         * hurd/hurdprio.c: Likewise.
21089         * hurd/msgportdemux.c: Likewise.
21090         * misc/sys/file.h: Likewise.
21091         * misc/sys/ioctl.h: Likewise.
21092         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
21093         * sysdeps/mach/hurd/chdir.c: Likewise.
21094         * sysdeps/mach/hurd/fchdir.c: Likewise.
21095         * sysdeps/mach/hurd/rename.c: Likewise.
21096         * sysdeps/mach/hurd/rmdir.c: Likewise.
21097         * sysdeps/mach/hurd/seekdir.c: Likewise.
21098         * sysdeps/mach/hurd/setsid.c: Likewise.
21099         * sysdeps/posix/wait3.c: Likewise.
21100
21101         * All files with FSF copyright notices: Update copyright dates
21102         using scripts/update-copyrights.
21103         * intl/plural.c: Regenerated.
21104         * locale/programs/charmap-kw.h: Likewise.
21105         * locale/programs/locfile-kw.h: Likewise.
21106
21107 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
21108
21109         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
21110         four values.
21111
21112         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
21113         calculation loop and add branch prediction.
21114
21115         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
21116         check access beyond bounds of m1np.
21117
21118         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
21119         MPTWO.
21120         (__inv): Remove local variable MPTWO to use the global
21121         constant.
21122         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
21123         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
21124         variable MPTWO.
21125         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
21126         MP3HALFS static const.
21127
21128 2013-01-01  David S. Miller  <davem@davemloft.net>
21129
21130         * po/ca.po: Update from translation team.
21131
21132 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
21133
21134         * scripts/update-copyrights: New file.
21135         * Makeconfig: Reformat copyright notice.
21136         * ctype/ctype.h: Likewise.
21137         * debug/swprintf_chk.c: Likewise.
21138         * elf/dl-cache.c: Likewise.
21139         * elf/dl-debug.c: Likewise.
21140         * elf/dl-object.c: Likewise.
21141         * grp/initgroups.c: Likewise.
21142         * hurd/Makefile: Likewise.
21143         * hurd/hurd/signal.h: Likewise.
21144         * hurd/hurdfault.c: Likewise.
21145         * hurd/hurdioctl.c: Likewise.
21146         * hurd/hurdlookup.c: Likewise.
21147         * hurd/intr-msg.c: Likewise.
21148         * iconv/gconv_open.c: Likewise.
21149         * libio/swprintf.c: Likewise.
21150         * locale/lc-ctype.c: Likewise.
21151         * locale/nl_langinfo.c: Likewise.
21152         * mach/Machrules: Likewise.
21153         * mach/Makefile: Likewise.
21154         * malloc/obstack.h: Likewise.
21155         * manual/Makefile: Likewise.
21156         * manual/tsort.awk: Likewise.
21157         * misc/bits/stab.def: Likewise.
21158         * nis/nis_print_group_entry.c: Likewise.
21159         * nis/nis_table.c: Likewise.
21160         * nis/nss_compat/compat-pwd.c: Likewise.
21161         * nis/nss_compat/compat-spwd.c: Likewise.
21162         * po/Makefile: Likewise.
21163         * posix/fnmatch.c: Likewise.
21164         * posix/regex.h: Likewise.
21165         * resolv/Makefile: Likewise.
21166         * resolv/nss_dns/dns-network.c: Likewise.
21167         * resolv/res_hconf.c: Likewise.
21168         * scripts/gen-sorted.awk: Likewise.
21169         * soft-fp/soft-fp.h: Likewise.
21170         * stdio-common/printf.h: Likewise.
21171         * stdlib/monetary.h: Likewise.
21172         * stdlib/random.c: Likewise.
21173         * stdlib/random_r.c: Likewise.
21174         * sysdeps/generic/Makefile: Likewise.
21175         * sysdeps/gnu/Makefile: Likewise.
21176         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
21177         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21178         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
21179         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21180         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
21181         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21182         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21183         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
21184         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
21185         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21186         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
21187         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
21188         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
21189         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
21190         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21191         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
21192         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
21193         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21194         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
21195         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21196         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
21197         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
21198         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21199         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
21200         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
21201         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
21202         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
21203         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
21204         * sysdeps/mach/hurd/errnos.awk: Likewise.
21205         * sysdeps/mach/hurd/fork.c: Likewise.
21206         * sysdeps/mach/hurd/getcwd.c: Likewise.
21207         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
21208         * sysdeps/mach/hurd/mmap.c: Likewise.
21209         * sysdeps/mach/hurd/utimes.c: Likewise.
21210         * sysdeps/mach/hurd/xmknod.c: Likewise.
21211         * sysdeps/posix/profil.c: Likewise.
21212         * sysdeps/posix/readdir_r.c: Likewise.
21213         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21214         * sysdeps/powerpc/bits/setjmp.h: Likewise.
21215         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
21216         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
21217         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
21218         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
21219         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
21220         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21221         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
21222         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
21223         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
21224         * sysdeps/pthread/lio_listio.c: Likewise.
21225         * sysdeps/sparc/dl-procinfo.h: Likewise.
21226         * sysdeps/unix/i386/sysdep.S: Likewise.
21227         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
21228         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
21229         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
21230         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
21231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21232         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
21233         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
21234         * sysdeps/unix/sysv/linux/speed.c: Likewise.
21235         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
21236         * sysdeps/wordsize-32/divdi3.c: Likewise.
21237         * time/sys/time.h: Likewise.
21238         * wcsmbs/Makefile: Likewise.
21239
21240 2013-01-01  David S. Miller  <davem@davemloft.net>
21241
21242         * po/fr.po: Update from translation team.
21243
21244         * catgets/gencat.c: Update copyright year.
21245         * csu/version.c: Likewise.
21246         * debug/catchsegv.sh: Likewise.
21247         * debug/pcprofiledump.c: Likewise.
21248         * debug/xtrace.sh: Likewise.
21249         * elf/ldconfig.c: Likewise.
21250         * elf/ldd.bash.in: Likewise.
21251         * elf/pldd.c: Likewise.
21252         * elf/sotruss.ksh: Likewise.
21253         * elf/sprof.c: Likewise.
21254         * iconv/iconv_prog.c: Likewise.
21255         * iconv/iconvconfig.c: Likewise.
21256         * locale/programs/locale.c: Likewise.
21257         * locale/programs/localedef.c: Likewise.
21258         * login/programs/pt_chown.c: Likewise.
21259         * malloc/memusage.sh: Likewise.
21260         * malloc/memusagestat.c: Likewise.
21261         * malloc/mtrace.pl: Likewise.
21262         * nscd/nscd.c: Likewise.
21263         * nss/getent.c: Likewise.
21264         * nss/makedb.c: Likewise.
21265         * posix/getconf.c: Likewise.
21266
21267 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
21268
21269         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
21270         numbers.
21271
21272 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
21273
21274         * math/bits/mathcalls.h (modf): Use __nonnull.
21275
21276 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
21277
21278         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
21279         (split): Use macro CN instead of the bare value.
21280         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
21281         could be used.
21282         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
21283         instead of the bare value.
21284         (power1): Likewise.
21285
21286 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21287
21288         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
21289         __ATAN_TWOM.
21290         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
21291
21292         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
21293         their values.
21294         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
21295         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
21296         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
21297         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
21298
21299 2012-12-28  Andreas Jaeger  <aj@suse.de>
21300
21301         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
21302         values are from Linux 3.7.
21303
21304         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
21305         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
21306
21307 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21308
21309         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
21310         TRUE case.
21311
21312         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
21313         (norm): Likewise.
21314         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
21315         variables with preprocessor constants.
21316         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
21317         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
21318         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
21319
21320 2012-12-27  Bruno Haible  <bruno@clisp.org>
21321
21322         [BZ #14317]
21323         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
21324         only if needed.
21325
21326 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
21327
21328         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
21329         and use variable directly.
21330         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
21331
21332         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
21333         MPONE.
21334         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
21335         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
21336         variable MPONE.
21337         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
21338         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
21339         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
21340         include directive.  Remove local variable MPONE.
21341         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
21342         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
21343         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21344
21345 2012-12-25  David S. Miller  <davem@davemloft.net>
21346
21347         * version.h (RELEASE): Set to "development".
21348         (VERSION): Set to "2.17.90".
21349         * NEWS: Add 2.18 section.
21350
21351 2012-12-21  David S. Miller  <davem@davemloft.net>
21352
21353         * po/hr.po: Update from translation team.
21354
21355 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21356
21357         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
21358
21359 2012-12-19  Steve Ellcey  <sellcey@mips.com>
21360
21361         * NEWS:  Mention new memcpy for MIPS.
21362
21363 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
21364
21365         * manual/contrib.texi (Contributors): Spelling correction.
21366
21367 2012-12-15  David S. Miller  <davem@davemloft.net>
21368
21369         * po/ru.po: Update from translation team.
21370
21371 2012-12-13  David S. Miller  <davem@davemloft.net>
21372
21373         * NEWS: Mention IFUNC testsuite enhancements.
21374
21375         * po/pl.po: Update from translation team.
21376         * po/bg.po: Likewise.
21377
21378         * manual/contrib.texi (Contributors): Update entries for Hongjiu
21379         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
21380
21381 2012-12-11  David S. Miller  <davem@davemloft.net>
21382
21383         * po/sv.po: Update from translation team.
21384
21385         * po/vi.po: Update from translation team.
21386
21387         * po/cs.po: Update from translation team.
21388
21389         * po/de.po: Update from translation team.
21390         * po/eo.po: Likewise.
21391         * po/nl.po: Likewise.
21392
21393 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
21394
21395         [BZ #14246]
21396         * manual/argp.texi (Argp Helper Functions): Move node to follow
21397         Argp Parsing State.
21398
21399         [BZ #14872]
21400         * manual/conf.texi (Limits on File System Capacity): Mention if
21401         terminating null is included in the max size.
21402
21403 2012-12-10  Andreas Jaeger  <aj@suse.de>
21404
21405         * po/cs.po: Update from translation team.
21406
21407 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
21408
21409         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
21410         void pointer and cast to uintptr_t.
21411         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
21412         path.
21413         * sysdeps/s390/s390-64/memcpy.S: Likewise.
21414         * sysdeps/s390/s390-64/memset.S: Likewise.
21415
21416 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
21417
21418         [BZ #14833]
21419         * menual/message.texi (Message Translation): Fix typos.
21420         (Helper programs for gettext): Likewise.
21421
21422 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
21423
21424         [BZ #14898]
21425         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
21426         Change to -1.
21427
21428 2012-12-07  David S. Miller  <davem@davemloft.net>
21429
21430         * po/libc.pot: Update.
21431
21432 2012-12-07  Richard Henderson  <rth@redhat.com>
21433
21434         [BZ #10114]
21435         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
21436         normal/normal case to before the switch.
21437         (_FP_DIV): Likewise.
21438
21439 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
21440             Mike Frysinger  <vapier@gentoo.org>
21441
21442         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
21443         check for __NR_fadvise64_64.
21444
21445 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
21446
21447         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
21448         0, not just to plain "0" as a statement.
21449         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
21450         with cw.
21451
21452 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
21453
21454         * NEWS: Use sourceware.org in Bugzilla URL.
21455
21456 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
21457
21458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21459         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
21460
21461         * stdio-common/tst-put-error.c (do_test): Add newline to the
21462         padded test to ensure flush.
21463
21464 2012-12-05  Jeff Law  <law@redhat.com>
21465
21466         * sunrpc/etc.rpc (fedfs_admin): Add entry.
21467
21468 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
21469
21470         * README: Don't refer to ports add-on as distributed separately.
21471         Mention AArch64 in list of systems supported in the ports add-on.
21472
21473         * LICENSES: Add more non-FSF copyright and license notices.
21474
21475         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
21476         ((unused)).
21477
21478         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
21479
21480         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
21481         10000 as width of padded output.
21482
21483 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
21484
21485         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
21486
21487         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
21488         variable LX with __attribute__ ((unused)).
21489         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
21490         Likewise.
21491         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
21492         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
21493         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
21494         with __attribute__ ((unused)).
21495
21496 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
21497
21498         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
21499
21500 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
21501
21502         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
21503         (CFLAGS-nldbl-acos.c): New variable.
21504         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
21505         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
21506         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
21507         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
21508         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
21509         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
21510         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
21511         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
21512         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
21513         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
21514         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
21515         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
21516         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
21517         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
21518         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
21519         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
21520         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
21521         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
21522         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
21523         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
21524         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
21525         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
21526         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
21527         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
21528         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
21529         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
21530         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
21531         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
21532         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
21533         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
21534         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
21535         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
21536         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
21537         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
21538         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
21539         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
21540         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
21541         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
21542         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
21543         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
21544         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
21545         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
21546         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
21547         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
21548         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
21549         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
21550         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
21551         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
21552         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
21553         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
21554         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
21555         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
21556         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
21557         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
21558         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
21559         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
21560         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
21561         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
21562         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
21563         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
21564         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
21565         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
21566         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
21567         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
21568         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
21569         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
21570         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
21571         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
21572         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
21573         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
21574         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
21575         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
21576         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
21577         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
21578         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
21579         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
21580         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
21581         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
21582         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
21583         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
21584         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
21585         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
21586         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
21587         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
21588         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
21589         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
21590         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
21591         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
21592         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
21593         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
21594         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
21595         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
21596         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
21597         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
21598         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
21599         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
21600         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
21601
21602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21603         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
21604
21605         [BZ #14914]
21606         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
21607         whole low double instead of just low 47 bits when splitting values
21608         into two parts.
21609
21610 2012-12-03  Allan McRae  <allan@archlinux.org>
21611
21612         * manual/stdio.texi (Predefined Printf Handlers): Remove
21613         @hsep and @vsep usage.
21614
21615 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
21616
21617         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
21618         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
21619
21620 2012-12-03  Jeff Law  <law@redhat.com>
21621
21622         * time/sys/time.h (settimeofday): Do not mark TV argument
21623         as __nonnull.
21624
21625 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
21626
21627         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
21628         when currently writing and seek to current position when not.
21629         * libio/Makefile (tests): Remove bug-fclose1.
21630         * libio/bug-fclose1.c: Delete.
21631
21632 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
21633
21634         * manual/arith.texi (feenableexcept): Fix typo.
21635         (fedisableexcept): Likewise.
21636
21637 2012-11-30  Roland McGrath  <roland@hack.frob.com>
21638
21639         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
21640         second, differently-typed declaration, rather than a cast.
21641
21642 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
21643
21644         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
21645         * include/rpc/svc.h: ... here.
21646
21647 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
21648
21649         [BZ #13013]
21650         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
21651         depending n and resplen2 to catch cases where answer
21652         equals answerp2.
21653
21654 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
21655
21656         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
21657         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
21658
21659 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
21660
21661         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
21662
21663 2012-11-29  Roland McGrath  <roland@hack.frob.com>
21664
21665         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
21666
21667 2012-11-28  Jeff Law  <law@redhat.com>
21668
21669         [BZ #13761]
21670         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
21671         dataset_temporary.  Track alloca usage into alloca_used.
21672         If dataset is large allocate and release it via malloc/free.
21673
21674 2012-06-04  Florian Weimer  <fweimer@redhat.com>
21675
21676         [BZ #14197]
21677         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
21678
21679 2012-11-28  David S. Miller  <davem@davemloft.net>
21680
21681         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21682
21683 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
21684
21685         [BZ #14803]
21686         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
21687         of pi/2 rounded to nearest to 64 bits.
21688         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
21689         nearest to 64 bits.
21690         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
21691         bits.
21692
21693 2012-11-28  Jeff Law <law@redhat.com>
21694             Martin Osvald <mosvald@redhat.com>
21695
21696         [BZ #14889]
21697         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
21698         * sunrpc/svc.c: Include time.h.
21699         (__svc_accept_failed): New function.
21700         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
21701         any reason other than EINTR, call __svc_accept_failed.
21702         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
21703         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
21704
21705 2012-11-28  Andreas Schwab  <schwab@suse.de>
21706
21707         * scripts/abilist.awk: Also handle indirect functions in .opd
21708         section.
21709
21710 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
21711
21712         [BZ #13881]
21713         * sysdeps/x86/fpu/powl_helper.c: New file.
21714         * sysdeps/x86/fpu/Makefile: Likewise.
21715         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
21716         (p3): New object.
21717         (__ieee754_powl): Use __powl_helper for finite arguments except
21718         integer exponents below 8.
21719         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
21720         (p3): New object.
21721         (__ieee754_powl): Use __powl_helper for finite arguments except
21722         integer exponents below 8.
21723         * math/libm-test.inc (pow_test): Add more tests and enable some
21724         previously disabled tests.
21725         * sysdeps/i386/fpu/libm-test-ulps: Update.
21726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21727
21728 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21729             Carlos O'Donell  <carlos_odonell@mentor.com>
21730
21731         * nss/makedb.c (is_prime): Assert that input is odd and greater
21732         than 4.  Note that fact in a comment too.
21733         (next_prime): Add 4 to input.
21734
21735 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
21736
21737         [BZ #11741]
21738         * libio/Makefile (tests): Add test case tst-fwrite-error.
21739         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
21740         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
21741         * libio/tst-fwrite-error.c: New test case.
21742
21743 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
21744
21745         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
21746         before casting to void *.
21747         * include/libc-internal.h (__pointer_type): New macro.
21748         (__integer_if_pointer_type_sub): Likewise.
21749         (__integer_if_pointer_type): Likewise.
21750         (cast_to_integer): Likewise.
21751         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
21752         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
21753         before casting to atomic64_t.
21754         (atomic_exchange_acq): Likewise.
21755         (__arch_exchange_and_add_body): Likewise.
21756         (__arch_add_body): Likewise.
21757         (atomic_add_negative): Likewise.
21758         (atomic_add_zero): Likewise.
21759
21760 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
21761
21762         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
21763         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
21764         (add_fdes): Likewise.
21765         (linear_search_fdes): Likewise.
21766         (binary_search_unencoded_fdes): Likewise.
21767
21768 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
21769
21770         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
21771
21772 2012-11-24  Adam Conrad  <adconrad@0c3.net>
21773
21774         * configure.in: Autodetect C++ header directories.
21775         * configure: Regenerated.
21776
21777 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
21778
21779         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
21780
21781 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
21782
21783         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21784
21785 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
21786
21787         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
21788         LDBL_MANT_DIG == 106]: Disable some tests.
21789         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
21790         Likewise.
21791         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
21792         Likewise.
21793
21794         [BZ #14871]
21795         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
21796         input for small inputs.  Return +/- pi/2 for large inputs.
21797         * math/libm-test.inc (atan_test): Add more tests.
21798
21799         * sysdeps/generic/unwind-dw2-fde-glibc.c
21800         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
21801         __attribute__ ((unused)).
21802
21803         [BZ #14645]
21804         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
21805         x * y if x and y are nonzero and z is zero.
21806
21807         [BZ #14811]
21808         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
21809         nonzero exponents with absolute value below 0x1p-117 to +/-
21810         0x1p-117.
21811
21812         [BZ #14869]
21813         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
21814         up arguments below 2**-450, not just those below 2**-500.
21815         * math/libm-test.inc (hypot_test): Add another test.
21816
21817         [BZ #14868]
21818         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
21819         Return a+b for ratio over 2**120, not 2**60.
21820         * math/libm-test.inc (hypot_test): Add another test.
21821
21822         * math/libm-test.inc (clog_test): Use
21823         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
21824         (clog10_test): Likewise.
21825
21826         [BZ #6778]
21827         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
21828
21829 2012-11-22  Andreas Schwab  <schwab@suse.de>
21830
21831         * sysdeps/i386/fpu/libm-test-ulps: Update.
21832
21833 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
21834
21835         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
21836         printf output with newline.
21837
21838 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
21839
21840         [BZ #14865]
21841         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
21842         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
21843         -z nodlopen, -z initfirst and -z execstack support.
21844         * configure: Regenerated.
21845
21846         * elf/elf.h (DF_1_NODIRECT): New macro.
21847         (DF_1_IGNMULDEF): Likewise.
21848         (DF_1_NOKSYMS): Likewise.
21849         (DF_1_NOHDR): Likewise.
21850         (DF_1_EDITED): Likewise.
21851         (DF_1_NORELOC): Likewise.
21852         (DF_1_SYMINTPOSE): Likewise.
21853         (DF_1_GLOBAUDIT): Likewise.
21854         (DF_1_SINGLETON): Likewise.
21855         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
21856         DT_1_SUPPORTED_MASK bits.
21857         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
21858
21859 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
21860
21861         * sysdeps/unix/make-syscalls.sh: Document prefixes.
21862
21863 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
21864
21865         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
21866         macro.
21867
21868         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
21869         (sendmmsg): Move declarations...
21870         * socket/sys/socket.h: ... here.
21871         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
21872         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
21873         include it from...
21874         * socket/recvmmsg.c: ... this new file.
21875         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
21876         (sendmmsg): Rename to __sendmmsg, create weak alias and make
21877         definition of __sendmmsg hidden.
21878         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
21879         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
21880         Move ENOSYS stub into and include it from...
21881         * socket/sendmmsg.c: ... this new file.
21882         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
21883         (sysdep_routines): Move recvmmsg and sendmmsg...
21884         * socket/Makefile (routines): ... here.
21885         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
21886         (GLIBC_PRIVATE): Add __sendmmsg.
21887         * include/sys/socket.h (__sendmmsg): Add declarations.
21888         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
21889         sendmmsg.
21890
21891 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
21892
21893         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
21894         variable I1 with __attribute__ ((unused)).
21895         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
21896
21897 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
21898
21899         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
21900         DUMMY variables with __attribute__ ((unused)).
21901
21902         * bits/byteswap.h: Include <bits/types.h>.
21903         (__bswap_64): Use __uint64_t instead of unsigned long long int.
21904
21905 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
21906
21907         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
21908         string_t.  Do not manually set errno.
21909         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
21910         length with __strnlen.  Make sure to both set errno and return it on
21911         failure.
21912
21913 2012-11-19  David S. Miller  <davem@davemloft.net>
21914
21915         With help from Joseph Myers.
21916         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
21917         very large arguments properly.
21918         * math/libm-test.inc (atan_test): New tests.
21919         (atan2_test): New tests.
21920         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21921         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21922
21923 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
21924
21925         [BZ #14856]
21926         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
21927         Define to 3.
21928
21929         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
21930         [POSIX] (EADDRNOTAVAIL): Likewise.
21931         [POSIX] (EAFNOSUPPORT): Likewise.
21932         [POSIX] (EALREADY): Likewise.
21933         [POSIX] (ECONNABORTED): Likewise.
21934         [POSIX] (ECONNREFUSED): Likewise.
21935         [POSIX] (ECONNRESET): Likewise.
21936         [POSIX] (EDESTADDRREQ): Likewise.
21937         [POSIX] (EDQUOT): Likewise.
21938         [POSIX] (EHOSTUNREACH): Likewise.
21939         [POSIX] (EIDRM): Likewise.
21940         [POSIX] (EISCONN): Likewise.
21941         [POSIX] (ELOOP): Likewise.
21942         [POSIX] (EMULTIHOP): Likewise.
21943         [POSIX] (ENETDOWN): Likewise.
21944         [POSIX] (ENETUNREACH): Likewise.
21945         [POSIX] (ENOBUFS): Likewise.
21946         [POSIX] (ENODATA): Likewise.
21947         [POSIX] (ENOLINK): Likewise.
21948         [POSIX] (ENOMSG): Likewise.
21949         [POSIX] (ENOPROTOOPT): Likewise.
21950         [POSIX] (ENOSR): Likewise.
21951         [POSIX] (ENOSTR): Likewise.
21952         [POSIX] (ENOTCONN): Likewise.
21953         [POSIX] (ENOTSOCK): Likewise.
21954         [POSIX] (EOPNOTSUPP): Likewise.
21955         [POSIX] (EOVERFLOW): Likewise.
21956         [POSIX] (EPROTO): Likewise.
21957         [POSIX] (EPROTONOSUPPORT): Likewise.
21958         [POSIX] (EPROTOTYPE): Likewise.
21959         [POSIX] (ESTALE): Likewise.
21960         [POSIX] (ETIME): Likewise.
21961         [POSIX] (ETXTBSY): Likewise.
21962         [POSIX] (EWOULDBLOCK): Likewise.
21963         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
21964         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
21965         [POSIX] (SEEK_CUR): Likewise.
21966         [POSIX] (SEEK_END): Likewise.
21967         [POSIX || UNIX98] (mode_t): Do not require.
21968         [POSIX] (off_t): Likewise.
21969         [POSIX] (pid_t): Likewise.
21970         [POSIX] (sys/stat.h): Do not allow header.
21971         [POSIX] (unistd.h): Likewise.
21972         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
21973         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
21974         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
21975         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
21976         require.
21977         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
21978         sigevent): Specify elements.
21979         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
21980         entry.
21981         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
21982         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
21983
21984         * conform/data/cpio.h-data [POSIX]: Disable whole file.
21985         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
21986         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
21987         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
21988         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
21989         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
21990         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
21991         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
21992         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
21993         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
21994         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
21995         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
21996         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
21997         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
21998         Likewise.
21999         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
22000         Likewise.
22001         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
22002         Likewise.
22003         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
22004         Likewise.
22005         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
22006         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
22007         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
22008         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
22009         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
22010         Specify lower bound on value.
22011         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
22012         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
22013         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
22014         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
22015         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
22016         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
22017         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
22018         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
22019         value.
22020         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
22021         as optional.
22022         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
22023         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
22024         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
22025         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
22026         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
22027         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
22028         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
22029         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
22030         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
22031         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
22032         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
22033         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
22034         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
22035         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
22036         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
22037         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
22038         entry.
22039         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
22040         optional.
22041         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
22042         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
22043         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
22044         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
22045         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
22046         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
22047         Likewise.
22048         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
22049         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
22050         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
22051         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
22052         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
22053         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
22054         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
22055         as optional.
22056         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
22057         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
22058         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
22059         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
22060         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
22061         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
22062         specify as optional.
22063         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
22064         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
22065         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
22066         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
22067         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
22068         [XPG3] (NL_LANGMAX): Likewise.
22069         [POSIX || XPG3] (NL_MSGMAX): Likewise.
22070         [POSIX || XPG3] (NL_NMAX): Likewise.
22071         [POSIX || XPG3] (NL_SETMAX): Likewise.
22072         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
22073         [XPG3] (NZERO): Likewise.
22074         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
22075         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
22076         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
22077         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
22078         (REG_ERANGE): Expect.
22079         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
22080         optional-constant.
22081         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
22082         Use (void) in prototype.
22083         [POSIX] (*_t): Allow.
22084         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
22085         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
22086         (WRDE_BADVAL): Expect.
22087
22088         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
22089         expect.
22090         [XPG3 || XPG4] (O_RSYNC): Likewise.
22091         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
22092         Likewise.
22093         [XPG3 || XPG4] (pthread_sigmask): Likewise.
22094         [XPG3 || XPG4] (sigqueue): Likewise.
22095         [XPG3 || XPG4] (sigtimedwait): Likewise.
22096         [XPG3 || XPG4] (sigwaitinfo): Likewise.
22097         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
22098         [XPG3 || XPG4] (vsnprintf): Likewise.
22099         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
22100         Likewise.
22101         [XPG3 || XPG4] (blksize_t): Likewise.
22102         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
22103         Likewise.
22104         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
22105         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
22106         [XPG3 || XPG4] (struct itimerspec): Likewise.
22107         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
22108         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
22109         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
22110         [XPG3 || XPG4] (clockid_t): Likewise.
22111         [XPG3 || XPG4] (timer_t): Likewise.
22112         [XPG3 || XPG4] (clock_getres): Likewise.
22113         [XPG3 || XPG4] (clock_gettime): Likewise.
22114         [XPG3 || XPG4] (clock_settime): Likewise.
22115         [XPG3 || XPG4] (nanosleep): Likewise.
22116         [XPG3 || XPG4] (timer_create): Likewise.
22117         [XPG3 || XPG4] (timer_delete): Likewise.
22118         [XPG3 || XPG4] (timer_gettime): Likewise.
22119         [XPG3 || XPG4] (timer_getoverrun): Likewise.
22120         [XPG3 || XPG4] (timer_settime): Likewise.
22121         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
22122         [XPG3 || XPG4] (getlogin_r): Likewise.
22123         [XPG3 || XPG4] (pread): Likewise.
22124         [XPG3 || XPG4] (pthread_atfork): Likewise.
22125         [XPG3 || XPG4] (pwrite): Likewise.
22126
22127         [BZ #14835]
22128         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
22129         <bits/siginfo.h>.
22130
22131 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
22132
22133         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
22134         finalizing MALLSTREAM.
22135
22136         * sysdeps/mach/hurd/syncfs.c: New file.
22137
22138 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
22139
22140         [BZ #14719]
22141         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
22142         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
22143         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
22144         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
22145         (_nss_dns_gethostbyname4_r): Likewise.
22146         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
22147         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
22148
22149 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
22150
22151         [BZ #13763]
22152         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
22153
22154 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
22155
22156         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
22157         * elf/cache.c (print_entry): Print ",AArch64" for
22158         FLAG_AARCH64_LIB64
22159
22160         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
22161         * elf/cache.c (print_entry): Print ",hard-float" for
22162         FLAG_ARM_LIBHF.
22163
22164 2012-11-18  David S. Miller  <davem@davemloft.net>
22165
22166         With help from Joseph Myers.
22167         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
22168         cutoff to 2**-13.
22169         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
22170         cutoff to 2**-25.
22171         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
22172         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
22173         small.
22174         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
22175         * math/libm-test.inc (y0_test): New tests.
22176         (y1_test): New tests.
22177         * sysdeps/i386/fpu/libm-test-ulps: Update.
22178         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22179         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22180
22181 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
22182
22183         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
22184         64-bit targets.
22185         * configure: Regenerated.
22186
22187 2012-11-17  David S. Miller  <davem@davemloft.net>
22188
22189         [BZ #14811]
22190         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
22191         nonzero exponents with absolute value below 0x1p-128 to +/-
22192         0x1p-128.
22193
22194 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
22195
22196         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
22197
22198         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
22199
22200         * posix/getconf-speclist.c: New file.
22201         * posix/posix-envs.def: Likewise.
22202         * posix/confstr.c (START_ENV_GROUP): New macro.
22203         (END_ENV_GROUP): Likewise.
22204         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
22205         (KNOWN_PRESENT_ENV_STRING): Likewise.
22206         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
22207         (UNKNOWN_ENVIRONMENT): Likewise.
22208         (confstr): Include posix-envs.def instead of handling
22209         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
22210         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
22211         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
22212         (END_ENV_GROUP): Likewise.
22213         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
22214         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
22215         (UNKNOWN_ENVIRONMENT): Likewise.
22216         (__sysconf): Include posix-envs.def instead of handling associated
22217         cases directly here.
22218         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
22219         preprocessing getconf-speclist.c rather than running getconf or
22220         generating empty file.
22221
22222 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
22223
22224         * scripts/check-local-headers.sh: Ignore 'mach' headers.
22225
22226 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
22227
22228         [BZ #14672]
22229         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
22230
22231 2012-11-16  David S. Miller  <davem@davemloft.net>
22232
22233         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
22234         smaller than LDBL_EPSILON/2.0L, just return xm1.
22235
22236 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
22237
22238         * elf/tst-array1.c (init): Set constructor priority to 1000.
22239         (fini): Set destructor priority to 1000.
22240         * elf/tst-array2dep.c: Likewise.
22241
22242 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22243
22244         [BZ #11741]
22245         * libio/fileops.c (_IO_new_file_write): Correctly return error.
22246         (_IO_new_file_xsputn): Also return EOF if none of the input
22247         data was written when overflow failed.
22248         * libio/iopadn.c (_IO_padn): Likewise.
22249         * libio/iowpadn.c (_IO_wpadn): Likewise.
22250         * stdio-common/tst-put-error.c: Add copyright notice.
22251         (do_test): Add case for printing padded string.
22252         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
22253         _IO_padn returned error.
22254         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
22255         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
22256         return EOF.
22257
22258 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22259
22260         * libio/libioP.h: Add comment note that the references to C++
22261         bits are now obsolete.
22262
22263 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
22264
22265         * math/libm-test.inc (check_complex): Use asprintf.
22266
22267 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
22268
22269         * debug/pcprofiledump.c (print_version): Update copyright year.
22270         * malloc/memusagestat.c (print_version): Likewise.
22271
22272 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
22273
22274         [BZ #14831]
22275         * elf/Makefile (tests): Add tst-audit8.
22276         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
22277         ($(objpfx)tst-audit8.out): New target.
22278         (tst-audit8-ENV): New variable.
22279         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
22280         audit if l_reloc_result is NULL.
22281         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
22282         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
22283         * elf/tst-audit8.c: New file.
22284
22285 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
22286
22287         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
22288         * misc/Makefile (CFLAGS-select.c): Define.
22289         * posix/Makefile (CFLAGS-pause.c): Define.
22290
22291 2012-11-13  David S. Miller  <davem@davemloft.net>
22292
22293         * crypt/Makefile: Move test targets after toplevel Rules
22294         inclusion.  Grab any necessary sysdep routines when linking.
22295         * crypt/md5.c (md5_process_block): Remove define, we will always
22296         name it __md5_process_block.
22297         (md5_finish_ctx): Update md5_process_block call.
22298         (md5_stream): Likewise.
22299         (md5_process_bytes): Likewise.
22300         (md5_process_block): Rename to __md5_process_block and move to ...
22301         * crypt/md5-block.c: ... here.
22302         * crypt/sha256.c (sha256_process_block): Move to ...
22303         * crypt/sha256-block.c: ... here.
22304         * crypt/sha512.c (sha512_process_block): Move to ...
22305         * crypt/sha512-block.c: ... here.
22306         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
22307         path.
22308         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
22309         * sysdeps/sparc/sparc64/multiarch/Makefile
22310         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
22311         crypt subdir.
22312         (localedef-aux): Add md5 crypto assembler when in locale subdir.
22313         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
22314         multiarch changes.
22315         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
22316         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
22317         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
22318         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
22319         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
22320         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
22321         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
22322         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
22323         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
22324         file.
22325         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
22326         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
22327         file.
22328         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
22329
22330 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
22331
22332         * timezone/tzselect.ksh: Update from tzcode git revision
22333         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
22334         * timezone/zdump.c: Likewise.
22335         * timezone/zic.c: Likewise.
22336         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
22337         in TZVERSION setting, not $(PKGVERSION).
22338         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
22339         REPORT_BUGS_TO settings.
22340
22341         [BZ #14838]
22342         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
22343         macro.
22344
22345 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
22346
22347         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
22348         detection to immediately after _FP_ROUND().
22349         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
22350         bits are 0.
22351
22352 2012-11-11  David S. Miller  <davem@davemloft.net>
22353
22354         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
22355         inttypes.h
22356         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
22357         __close rather than their public counterparts.
22358
22359 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
22360
22361         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
22362         file.
22363         [UNIX98] (sem_timedwait): Do not expect.
22364         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
22365         [XPG4 || UNIX98] (sockatmark): Do not expect.
22366         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
22367         (clock_getcpuclockid): Do not expect.
22368         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
22369         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
22370         Do not expect.
22371         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
22372         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
22373         [UNIX98] (vwscanf): Likewise.
22374         [UNIX98] (vswscanf): Likewise.
22375
22376 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
22377
22378         * timezone/version.h: Remove file.
22379         * timezone/README: Do not refer to version.h.
22380         * timezone/Makefile ($(objpfx)zic.o): New dependency on
22381         $(objpfx)version.h.
22382         ($(objpfx)zdump.o): Likewise.
22383         ($(objpfx)version.h): New target.
22384
22385         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
22386         2012i.
22387         * timezone/README: Don't mention modification to tzselect.ksh.
22388         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
22389         work on unmodified tzselect.ksh.  Substitute version numbers in
22390         tzselect.ksh.
22391
22392         * Makefile (format-me): Remove.
22393         (INSTALL): Adjust indentation.  Use commands directly instead of
22394         using $(format-me).
22395
22396         * aclocal.m4 (ACX_PKGVERSION): New macro.
22397         (ACX_BUGURL): Likewise.
22398         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
22399         (PKGVERSION): New AC_DEFINE_UNQUOTED.
22400         (REPORT_BUGS_TO): Likewise.
22401         * configure: Regenerated.
22402         * config.h.in (PKGVERSION): New macro.
22403         (REPORT_BUGS_TO): Likewise.
22404         * config.make.in (PKGVERSION): New variable.
22405         (PKGVERSION_TEXI): Likewise.
22406         (REPORT_BUGS_TO): Likewise.
22407         (REPORT_BUGS_TEXI): Likewise.
22408         * Makefile (format-me): Use -I$(common-objpfx)manual.
22409         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
22410         ($(common-objpfx)manual/%): New target.
22411         (manual/%): Remove target.
22412         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
22413         (print_version): Use PKGVERSION.
22414         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
22415         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
22416         and REPORT_BUGS_TO.
22417         ($(objpfx)xtrace): Likewise.
22418         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
22419         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
22420         (print_version): Use PKGVERSION.
22421         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
22422         (do_version): Use PKGVERSION.
22423         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
22424         REPORT_BUGS_TO.
22425         (common-ldd-rewrite): Likewise.
22426         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
22427         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
22428         (print_version): Use PKGVERSION.
22429         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
22430         * elf/pldd.c (argp_program_bug_address): Remove variable.
22431         (more_help): New function.
22432         (argp): Use more_help.
22433         (print_version): Use PKGVERSION.
22434         * elf/sln.c (main): Use PKGVERSION.
22435         (usage): Use REPORT_BUGS_TO.
22436         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
22437         (top level): Use PKGVERSION.
22438         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
22439         (print_version): Use PKGVERSION.
22440         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
22441         (print_version): Use PKGVERSION.
22442         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
22443         (print_version): Use PKGVERSION.
22444         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
22445         (print_version): Use PKGVERSION.
22446         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
22447         (print_version): Use PKGVERSION.
22448         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
22449         (print_version): Use PKGVERSION.
22450         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
22451         and BUGURL.
22452         ($(objpfx)memusage): Likewise.
22453         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
22454         (do_version): Use PKGVERSION.
22455         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
22456         (print_version): Use PKGVERSION.
22457         * malloc/mtrace.pl ($PACKAGE): Remove variable.
22458         ($PKGVERSION): New variable.
22459         ($REPORT_BUGS_TO): Likewise.
22460         (usage): Use $REPORT_BUGS_TO.
22461         (top level): Use $PKGVERSION.
22462         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
22463         ($(objpfx)pkgvers.texi): New rule.
22464         ($(objpfx)stamp-pkgvers): Likewise.
22465         * manual/install.texi: Include pkgvers.texi.
22466         (--with-pkgversion): Document new configure option.
22467         (--with-bugurl): Likewise.
22468         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
22469         than necessarily for this particular distribution.  Use
22470         REPORT_BUGS_TO for where to report bugs.
22471         * INSTALL: Regenerated.
22472         * manual/libc.texinfo: Include pkgvers.texi.
22473         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
22474         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
22475         (print_version): Use PKGVERSION.
22476         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
22477         (print_version): Use PKGVERSION.
22478         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
22479         (print_version): Use PKGVERSION.
22480         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
22481         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
22482         macro.
22483         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
22484         (print_version): Use PKGVERSION.
22485         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
22486         (print_version): Use PKGVERSION.
22487         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
22488         and PKGVERSION.
22489
22490         * timezone/checktab.awk: Update from tzcode 2012i.
22491         * timezone/ialloc.c: Likewise.
22492         * timezone/private.h: Likewise.
22493         * timezone/scheck.c: Likewise.
22494         * timezone/tzfile.h: Likewise.
22495         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
22496         (TZVERSION): Hardcode tzcode version number.
22497         * timezone/zdump.c: Update from tzcode 2012i.
22498         * timezone/zic.c: Likewise.
22499         * timezone/version.h: New file.
22500         * timezone/README: Describe version.h.  Update upstream location.
22501
22502         [BZ #14824]
22503         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
22504         (mktemp): Enable declaration.
22505         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
22506         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
22507         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
22508         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
22509         Likewise.
22510         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
22511         Likewise.
22512         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
22513         Likewise.
22514         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
22515         Likewise.
22516         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
22517         Likewise.
22518         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
22519         Likewise.
22520
22521         [BZ #14821]
22522         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
22523         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
22524         for copies of such integer values.
22525         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22526         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22527
22528 2012-11-09  Andreas Jaeger  <aj@suse.de>
22529
22530         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
22531         definitions and declarations that are provided by
22532         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
22533
22534 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22535
22536         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
22537         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
22538         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
22539         definition.
22540
22541 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
22542
22543         * elf/elf.h: Update comment before AArch64 relocations.
22544
22545 2012-11-07  David S. Miller  <davem@davemloft.net>
22546
22547         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
22548         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
22549         (__start_context): Declare.
22550         (__makecontext_ret): Delete.
22551         (__makecontext): Hook up __start_context instead of
22552         __makecontext_ret.
22553         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
22554         (sysdep_routines): Add __start_context when in stdlib.
22555
22556 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
22557
22558         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
22559         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
22560         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
22561         hardcoded "nm".
22562         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
22563         (READELF): New variable.  Use it instead of hardcoded "readelf".
22564
22565 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
22566
22567         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
22568         * sysdeps/x86/Makefile: Here.
22569         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
22570         * sysdeps/x86/tst-xmmymm.sh: This.
22571
22572 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
22573
22574         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
22575         expectations.
22576         [UNIX98] (pthread_barrier_t): Do not expect.
22577         [UNIX98] (pthread_barrierattr_t): Likewise.
22578         [UNIX98] (pthread_spinlock_t): Likewise.
22579         [UNIX98] (pthread_barrier_destroy): Likewise.
22580         [UNIX98] (pthread_barrier_init): Likewise.
22581         [UNIX98] (pthread_barrier_wait): Likewise.
22582         [UNIX98] (pthread_barrierattr_destroy): Likewise.
22583         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
22584         [UNIX98] (pthread_barrierattr_init): Likewise.
22585         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
22586         [UNIX98] (pthread_getcpuclockid): Likewise.
22587         [UNIX98] (pthread_mutex_timedlock): Likewise.
22588         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
22589         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
22590         [UNIX98] (pthread_sigmask): Likewise.
22591         [UNIX98] (pthread_spin_destroy): Likewise.
22592         [UNIX98] (pthread_spin_init): Likewise.
22593         [UNIX98] (pthread_spin_lock): Likewise.
22594         [UNIX98] (pthread_spin_trylock): Likewise.
22595         [UNIX98] (pthread_spin_unlock): Likewise.
22596         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
22597         Do not expect.
22598         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
22599         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
22600         [XPG3 || XPG4] (pthread_cond_t): Likewise.
22601         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
22602         [XPG3 || XPG4] (pthread_key_t): Likewise.
22603         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
22604         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
22605         [XPG3 || XPG4] (pthread_once_t): Likewise.
22606         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
22607         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
22608         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
22609         [XPG3 || XPG4] (pthread_t): Likewise.
22610
22611         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
22612         not expect.
22613         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
22614
22615         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
22616         Change function return type to int.
22617
22618         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
22619         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
22620         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
22621         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
22622         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
22623         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
22624         [!POSIX] (posix_madvise): Likewise.
22625         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
22626         && !UNIX98].
22627         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
22628         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
22629         (mode_t): Likewise.
22630         (posix_mem_offset): Likewise.
22631         (posix_typed_mem_get_info): Likewise.
22632         (posix_typed_mem_open): Likewise.
22633
22634         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
22635         Change condition to [XOPEN2K8].
22636
22637         * conform/conformtest.pl: Preprocess allow-header data with -x c
22638         instead of from stdin.
22639         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
22640         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
22641         [C99-based standards] (cerfc): Likewise.
22642         [C99-based standards] (cexp2): Likewise.
22643         [C99-based standards] (cexpm1): Likewise.
22644         [C99-based standards] (clog10): Likewise.
22645         [C99-based standards] (clog1p): Likewise.
22646         [C99-based standards] (clog2): Likewise.
22647         [C99-based standards] (clgamma): Likewise.
22648         [C99-based standards] (ctgamma): Likewise.
22649         [C99-based standards] (cerff): Likewise.
22650         [C99-based standards] (cerfcf): Likewise.
22651         [C99-based standards] (cexp2f): Likewise.
22652         [C99-based standards] (cexpm1f): Likewise.
22653         [C99-based standards] (clog10f): Likewise.
22654         [C99-based standards] (clog1pf): Likewise.
22655         [C99-based standards] (clog2f): Likewise.
22656         [C99-based standards] (clgammaf): Likewise.
22657         [C99-based standards] (ctgammaf): Likewise.
22658         [C99-based standards] (cerfl): Likewise.
22659         [C99-based standards] (cerfcl): Likewise.
22660         [C99-based standards] (cexp2l): Likewise.
22661         [C99-based standards] (cexpm1l): Likewise.
22662         [C99-based standards] (clog10l): Likewise.
22663         [C99-based standards] (clog1pl): Likewise.
22664         [C99-based standards] (clog2l): Likewise.
22665         [C99-based standards] (clgammal): Likewise.
22666         [C99-based standards] (ctgammal): Likewise.
22667         * conform/data/inttypes.h-data [C99-based standards]: Include
22668         stdint.h-data.  Remove all expectations for stdint.h contents.
22669         [C99-based standards] (PRI*): Do not allow.
22670         [C99-based standards] (SCN*): Likewise.
22671         [C99-based standards] (*_t): Likewise.
22672         [C99-based-standards] (PRId8): Expect macro.
22673         [C99-based-standards] (PRIi8): Likewise.
22674         [C99-based-standards] (PRIo8): Likewise.
22675         [C99-based-standards] (PRIu8): Likewise.
22676         [C99-based-standards] (PRIx8): Likewise.
22677         [C99-based-standards] (PRIX8): Likewise.
22678         [C99-based-standards] (SCNd8): Likewise.
22679         [C99-based-standards] (SCNi8): Likewise.
22680         [C99-based-standards] (SCNo8): Likewise.
22681         [C99-based-standards] (SCNu8): Likewise.
22682         [C99-based-standards] (SCNx8): Likewise.
22683         [C99-based-standards] (PRIdLEAST8): Likewise.
22684         [C99-based-standards] (PRIiLEAST8): Likewise.
22685         [C99-based-standards] (PRIoLEAST8): Likewise.
22686         [C99-based-standards] (PRIuLEAST8): Likewise.
22687         [C99-based-standards] (PRIxLEAST8): Likewise.
22688         [C99-based-standards] (PRIXLEAST8): Likewise.
22689         [C99-based-standards] (SCNdLEAST8): Likewise.
22690         [C99-based-standards] (SCNiLEAST8): Likewise.
22691         [C99-based-standards] (SCNoLEAST8): Likewise.
22692         [C99-based-standards] (SCNuLEAST8): Likewise.
22693         [C99-based-standards] (SCNxLEAST8): Likewise.
22694         [C99-based-standards] (PRIdFAST8): Likewise.
22695         [C99-based-standards] (PRIiFAST8): Likewise.
22696         [C99-based-standards] (PRIoFAST8): Likewise.
22697         [C99-based-standards] (PRIuFAST8): Likewise.
22698         [C99-based-standards] (PRIxFAST8): Likewise.
22699         [C99-based-standards] (PRIXFAST8): Likewise.
22700         [C99-based-standards] (SCNdFAST8): Likewise.
22701         [C99-based-standards] (SCNiFAST8): Likewise.
22702         [C99-based-standards] (SCNoFAST8): Likewise.
22703         [C99-based-standards] (SCNuFAST8): Likewise.
22704         [C99-based-standards] (SCNxFAST8): Likewise.
22705         [C99-based-standards] (PRId16): Likewise.
22706         [C99-based-standards] (PRIi16): Likewise.
22707         [C99-based-standards] (PRIo16): Likewise.
22708         [C99-based-standards] (PRIu16): Likewise.
22709         [C99-based-standards] (PRIx16): Likewise.
22710         [C99-based-standards] (PRIX16): Likewise.
22711         [C99-based-standards] (SCNd16): Likewise.
22712         [C99-based-standards] (SCNi16): Likewise.
22713         [C99-based-standards] (SCNo16): Likewise.
22714         [C99-based-standards] (SCNu16): Likewise.
22715         [C99-based-standards] (SCNx16): Likewise.
22716         [C99-based-standards] (PRIdLEAST16): Likewise.
22717         [C99-based-standards] (PRIiLEAST16): Likewise.
22718         [C99-based-standards] (PRIoLEAST16): Likewise.
22719         [C99-based-standards] (PRIuLEAST16): Likewise.
22720         [C99-based-standards] (PRIxLEAST16): Likewise.
22721         [C99-based-standards] (PRIXLEAST16): Likewise.
22722         [C99-based-standards] (SCNdLEAST16): Likewise.
22723         [C99-based-standards] (SCNiLEAST16): Likewise.
22724         [C99-based-standards] (SCNoLEAST16): Likewise.
22725         [C99-based-standards] (SCNuLEAST16): Likewise.
22726         [C99-based-standards] (SCNxLEAST16): Likewise.
22727         [C99-based-standards] (PRIdFAST16): Likewise.
22728         [C99-based-standards] (PRIiFAST16): Likewise.
22729         [C99-based-standards] (PRIoFAST16): Likewise.
22730         [C99-based-standards] (PRIuFAST16): Likewise.
22731         [C99-based-standards] (PRIxFAST16): Likewise.
22732         [C99-based-standards] (PRIXFAST16): Likewise.
22733         [C99-based-standards] (SCNdFAST16): Likewise.
22734         [C99-based-standards] (SCNiFAST16): Likewise.
22735         [C99-based-standards] (SCNoFAST16): Likewise.
22736         [C99-based-standards] (SCNuFAST16): Likewise.
22737         [C99-based-standards] (SCNxFAST16): Likewise.
22738         [C99-based-standards] (PRId32): Likewise.
22739         [C99-based-standards] (PRIi32): Likewise.
22740         [C99-based-standards] (PRIo32): Likewise.
22741         [C99-based-standards] (PRIu32): Likewise.
22742         [C99-based-standards] (PRIx32): Likewise.
22743         [C99-based-standards] (PRIX32): Likewise.
22744         [C99-based-standards] (SCNd32): Likewise.
22745         [C99-based-standards] (SCNi32): Likewise.
22746         [C99-based-standards] (SCNo32): Likewise.
22747         [C99-based-standards] (SCNu32): Likewise.
22748         [C99-based-standards] (SCNx32): Likewise.
22749         [C99-based-standards] (PRIdLEAST32): Likewise.
22750         [C99-based-standards] (PRIiLEAST32): Likewise.
22751         [C99-based-standards] (PRIoLEAST32): Likewise.
22752         [C99-based-standards] (PRIuLEAST32): Likewise.
22753         [C99-based-standards] (PRIxLEAST32): Likewise.
22754         [C99-based-standards] (PRIXLEAST32): Likewise.
22755         [C99-based-standards] (SCNdLEAST32): Likewise.
22756         [C99-based-standards] (SCNiLEAST32): Likewise.
22757         [C99-based-standards] (SCNoLEAST32): Likewise.
22758         [C99-based-standards] (SCNuLEAST32): Likewise.
22759         [C99-based-standards] (SCNxLEAST32): Likewise.
22760         [C99-based-standards] (PRIdFAST32): Likewise.
22761         [C99-based-standards] (PRIiFAST32): Likewise.
22762         [C99-based-standards] (PRIoFAST32): Likewise.
22763         [C99-based-standards] (PRIuFAST32): Likewise.
22764         [C99-based-standards] (PRIxFAST32): Likewise.
22765         [C99-based-standards] (PRIXFAST32): Likewise.
22766         [C99-based-standards] (SCNdFAST32): Likewise.
22767         [C99-based-standards] (SCNiFAST32): Likewise.
22768         [C99-based-standards] (SCNoFAST32): Likewise.
22769         [C99-based-standards] (SCNuFAST32): Likewise.
22770         [C99-based-standards] (SCNxFAST32): Likewise.
22771         [C99-based-standards] (PRId64): Likewise.
22772         [C99-based-standards] (PRIi64): Likewise.
22773         [C99-based-standards] (PRIo64): Likewise.
22774         [C99-based-standards] (PRIu64): Likewise.
22775         [C99-based-standards] (PRIx64): Likewise.
22776         [C99-based-standards] (PRIX64): Likewise.
22777         [C99-based-standards] (SCNd64): Likewise.
22778         [C99-based-standards] (SCNi64): Likewise.
22779         [C99-based-standards] (SCNo64): Likewise.
22780         [C99-based-standards] (SCNu64): Likewise.
22781         [C99-based-standards] (SCNx64): Likewise.
22782         [C99-based-standards] (PRIdLEAST64): Likewise.
22783         [C99-based-standards] (PRIiLEAST64): Likewise.
22784         [C99-based-standards] (PRIoLEAST64): Likewise.
22785         [C99-based-standards] (PRIuLEAST64): Likewise.
22786         [C99-based-standards] (PRIxLEAST64): Likewise.
22787         [C99-based-standards] (PRIXLEAST64): Likewise.
22788         [C99-based-standards] (SCNdLEAST64): Likewise.
22789         [C99-based-standards] (SCNiLEAST64): Likewise.
22790         [C99-based-standards] (SCNoLEAST64): Likewise.
22791         [C99-based-standards] (SCNuLEAST64): Likewise.
22792         [C99-based-standards] (SCNxLEAST64): Likewise.
22793         [C99-based-standards] (PRIdFAST64): Likewise.
22794         [C99-based-standards] (PRIiFAST64): Likewise.
22795         [C99-based-standards] (PRIoFAST64): Likewise.
22796         [C99-based-standards] (PRIuFAST64): Likewise.
22797         [C99-based-standards] (PRIxFAST64): Likewise.
22798         [C99-based-standards] (PRIXFAST64): Likewise.
22799         [C99-based-standards] (SCNdFAST64): Likewise.
22800         [C99-based-standards] (SCNiFAST64): Likewise.
22801         [C99-based-standards] (SCNoFAST64): Likewise.
22802         [C99-based-standards] (SCNuFAST64): Likewise.
22803         [C99-based-standards] (SCNxFAST64): Likewise.
22804         [C99-based-standards] (PRIdMAX): Likewise.
22805         [C99-based-standards] (PRIiMAX): Likewise.
22806         [C99-based-standards] (PRIoMAX): Likewise.
22807         [C99-based-standards] (PRIuMAX): Likewise.
22808         [C99-based-standards] (PRIxMAX): Likewise.
22809         [C99-based-standards] (PRIXMAX): Likewise.
22810         [C99-based-standards] (SCNdMAX): Likewise.
22811         [C99-based-standards] (SCNiMAX): Likewise.
22812         [C99-based-standards] (SCNoMAX): Likewise.
22813         [C99-based-standards] (SCNuMAX): Likewise.
22814         [C99-based-standards] (SCNxMAX): Likewise.
22815         [C99-based-standards] (PRIdPTR): Likewise.
22816         [C99-based-standards] (PRIiPTR): Likewise.
22817         [C99-based-standards] (PRIoPTR): Likewise.
22818         [C99-based-standards] (PRIuPTR): Likewise.
22819         [C99-based-standards] (PRIxPTR): Likewise.
22820         [C99-based-standards] (PRIXPTR): Likewise.
22821         [C99-based-standards] (SCNdPTR): Likewise.
22822         [C99-based-standards] (SCNiPTR): Likewise.
22823         [C99-based-standards] (SCNoPTR): Likewise.
22824         [C99-based-standards] (SCNuPTR): Likewise.
22825         [C99-based-standards] (SCNxPTR): Likewise.
22826         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
22827         allow.
22828         * conform/data/stdint.h-data: Update comments to clarify
22829         requirements.
22830         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
22831         type.
22832         [C99-based standards] (INT8_MAX): Likewise.
22833         [C99-based standards] (INT16_MIN): Likewise.
22834         [C99-based standards] (INT16_MAX): Likewise.
22835         [C99-based standards] (INT32_MIN): Likewise.
22836         [C99-based standards] (INT32_MAX): Likewise.
22837         [C99-based standards] (INT64_MIN): Likewise.
22838         [C99-based standards] (INT64_MAX): Likewise.
22839         [C99-based standards] (UINT8_MAX): Likewise.
22840         [C99-based standards] (UINT16_MAX): Likewise.
22841         [C99-based standards] (UINT32_MAX): Likewise.
22842         [C99-based standards] (UINT64_MAX): Likewise.
22843         [C99-based standards] (INT_LEAST8_MIN): Likewise.
22844         [C99-based standards] (INT_LEAST8_MAX): Likewise.
22845         [C99-based standards] (INT_LEAST16_MIN): Likewise.
22846         [C99-based standards] (INT_LEAST16_MAX): Likewise.
22847         [C99-based standards] (INT_LEAST32_MIN): Likewise.
22848         [C99-based standards] (INT_LEAST32_MAX): Likewise.
22849         [C99-based standards] (INT_LEAST64_MIN): Likewise.
22850         [C99-based standards] (INT_LEAST64_MAX): Likewise.
22851         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
22852         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
22853         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
22854         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
22855         [C99-based standards] (INT_FAST8_MIN): Likewise.
22856         [C99-based standards] (INT_FAST8_MAX): Likewise.
22857         [C99-based standards] (INT_FAST16_MIN): Likewise.
22858         [C99-based standards] (INT_FAST16_MAX): Likewise.
22859         [C99-based standards] (INT_FAST32_MIN): Likewise.
22860         [C99-based standards] (INT_FAST32_MAX): Likewise.
22861         [C99-based standards] (INT_FAST64_MIN): Likewise.
22862         [C99-based standards] (INT_FAST64_MAX): Likewise.
22863         [C99-based standards] (UINT_FAST8_MAX): Likewise.
22864         [C99-based standards] (UINT_FAST16_MAX): Likewise.
22865         [C99-based standards] (UINT_FAST32_MAX): Likewise.
22866         [C99-based standards] (UINT_FAST64_MAX): Likewise.
22867         [C99-based standards] (INTPTR_MIN): Likewise.
22868         [C99-based standards] (INTPTR_MAX): Likewise.
22869         [C99-based standards] (UINTPTR_MAX): Likewise.
22870         [C99-based standards] (INTMAX_MIN): Likewise.
22871         [C99-based standards] (INTMAX_MAX): Likewise.
22872         [C99-based standards] (UINTMAX_MAX): Likewise.
22873         [C99-based standards] (PTRDIFF_MIN): Likewise.
22874         [C99-based standards] (PTRDIFF_MAX): Likewise.
22875         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
22876         [C99-based standards] (SIZE_MAX): Likewise.
22877         [C99-based standards] (WCHAR_MAX): Likewise.
22878         [C99-based standards] (WINT_MAX): Likewise.
22879         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
22880         constraint on value.
22881         [C99-based standards] (WCHAR_MIN): Likewise.
22882         [C99-based standards] (WINT_MIN): Likewise.
22883         [C99-based standards] (*_t): Allow.
22884         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
22885         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
22886         Include math.h-data and complex.h-data.  Remove all expectations
22887         of math.h and complex.h contents.
22888         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
22889         at end of line.
22890         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
22891         (struct tm): Expect tag.
22892         [C99-based-standards] (wcstof): Expect function.
22893         [C99-based-standards] (wcstold): Likewise.
22894         [C99-based-standards] (wcstoll): Likewise.
22895         [C99-based-standards] (wcstoull): Likewise.
22896         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
22897         macro-int-constant.  Specify type.
22898         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
22899         constraint on value.
22900         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
22901         Specify type.
22902         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
22903         Specify value.
22904         [ISO C standards]: Do not allow headers.
22905         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
22906         wcs[abcdefghijklmnopqrstuvwxyz]*.
22907         [ISO C standards] (*_t): Do not allow.
22908         * conform/data/wctype.h-data [C99-based standards] (iswblank):
22909         Expect function.
22910         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
22911         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
22912         Specify type.
22913         [ISO C standards]: Do not allow headers.
22914         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
22915         is[abcdefghijklmnopqrstuvwxyz]*.
22916         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
22917         to[abcdefghijklmnopqrstuvwxyz]*.
22918         [ISO C standards] (*_t): Do not allow.
22919         * conform/data/stdalign.h-data: New file.
22920         * conform/data/stdbool.h-data: Likewise.
22921         * conform/data/stdnoreturn.h-data: Likewise.
22922
22923 2012-11-07  Roland McGrath  <roland@hack.frob.com>
22924
22925         [BZ #14815]
22926         * manual/filesys.texi (Directory Entries): Typo fix.
22927         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
22928
22929 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
22930
22931         * elf/elf.h (EM_AARCH64): New macro.
22932         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
22933         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
22934         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
22935         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
22936         (R_AARCH64_TLSDESC): Likewise.
22937         (NT_ARM_TLS): Likewise.
22938         (NT_ARM_HW_BREAK): Likewise.
22939         (NT_ARM_HW_WATCH): Likewise.
22940
22941 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
22942
22943         [BZ #14811]
22944         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
22945         (__ieee754_powl): Saturate nonzero exponents with absolute value
22946         below 0x1p-79 to +/- 0x1p-79.
22947         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
22948         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
22949         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
22950         nonzero exponents with absolute value below 0x1p-32 to +/-
22951         0x1p-32.
22952         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
22953         (__ieee754_powl): Saturate nonzero exponents with absolute value
22954         below 0x1p-79 to +/- 0x1p-79.
22955         * math/libm-test.inc (pow_test): Add more tests.
22956
22957 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22958
22959         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
22960         _dl_s390_cap_flags with kernel. Increase string length.
22961         (_dl_s390_platforms): Add z196 and zEC12.
22962
22963 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
22964
22965         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
22966         Change XOPEN21K to XOPEN2K.
22967
22968 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
22969
22970         * string/memmove.c: Use memcpy when possible.
22971
22972 2012-11-06  Andreas Jaeger  <aj@suse.de>
22973
22974         * po/eo.po: Update from translation team.
22975
22976 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
22977
22978         [BZ #14793]
22979         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
22980         exponent and small x and y exponents, scale x or y up.  Increase
22981         by 2 the exponent used in scaling up.
22982         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
22983         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
22984         * math/libm-test.inc (fma_test): Add more tests.
22985         (fma_test_towardzero): Likewise.
22986         (fma_test_downward): Likewise.
22987         (fma_test_upward): Likewise.
22988
22989 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
22990
22991         [BZ #14805]
22992         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
22993         fenv_t *.
22994
22995         [BZ #14801]
22996         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
22997         namespace for names of struct fields.
22998         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
22999         fenv_t fields.
23000         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
23001         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
23002
23003 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23004
23005         [BZ #3665]
23006         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
23007
23008 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
23009
23010         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
23011         PTR_DEMANGLE.
23012
23013         [BZ #5246]
23014         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
23015         PTR_DEMANGLE.
23016
23017 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
23018
23019         [BZ #14797]
23020         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
23021         definitely overflow as x * y not x * y + z.
23022         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
23023         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
23024         * math/libm-test.inc (fma_test): Add more tests.
23025         (fma_test_towardzero): Likewise.
23026         (fma_test_downward): Likewise.
23027         (fma_test_upward): Likewise.
23028
23029 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
23030
23031         [BZ #157]
23032
23033         * include/stub-tag.h: Remove file.
23034         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
23035         '#include' of it.
23036         * manual/maint.texi (Porting): Don't reference it.
23037         * Makerules ($(objpfx)stubs): Likewise.
23038         * dirent/closedir.c: Don't include <stub-tag.h>.
23039         * dirent/dirfd.c: Likewise.
23040         * dirent/fdopendir.c: Likewise.
23041         * dirent/getdents.c: Likewise.
23042         * dirent/getdents64.c: Likewise.
23043         * dirent/opendir.c: Likewise.
23044         * dirent/readdir.c: Likewise.
23045         * dirent/readdir64.c: Likewise.
23046         * dirent/readdir64_r.c: Likewise.
23047         * dirent/readdir_r.c: Likewise.
23048         * dirent/rewinddir.c: Likewise.
23049         * dirent/seekdir.c: Likewise.
23050         * dirent/telldir.c: Likewise.
23051         * gmon/profil.c: Likewise.
23052         * grp/setgroups.c: Likewise.
23053         * inet/if_index.c: Likewise.
23054         * io/access.c: Likewise.
23055         * io/chdir.c: Likewise.
23056         * io/chmod.c: Likewise.
23057         * io/chown.c: Likewise.
23058         * io/close.c: Likewise.
23059         * io/dup.c: Likewise.
23060         * io/dup2.c: Likewise.
23061         * io/dup3.c: Likewise.
23062         * io/euidaccess.c: Likewise.
23063         * io/faccessat.c: Likewise.
23064         * io/fchdir.c: Likewise.
23065         * io/fchmod.c: Likewise.
23066         * io/fchmodat.c: Likewise.
23067         * io/fchown.c: Likewise.
23068         * io/fchownat.c: Likewise.
23069         * io/fcntl.c: Likewise.
23070         * io/flock.c: Likewise.
23071         * io/fstatfs.c: Likewise.
23072         * io/fstatfs64.c: Likewise.
23073         * io/fstatvfs.c: Likewise.
23074         * io/fstatvfs64.c: Likewise.
23075         * io/futimens.c: Likewise.
23076         * io/fxstat.c: Likewise.
23077         * io/fxstat64.c: Likewise.
23078         * io/fxstatat.c: Likewise.
23079         * io/fxstatat64.c: Likewise.
23080         * io/getcwd.c: Likewise.
23081         * io/isatty.c: Likewise.
23082         * io/lchmod.c: Likewise.
23083         * io/lchown.c: Likewise.
23084         * io/link.c: Likewise.
23085         * io/linkat.c: Likewise.
23086         * io/lseek.c: Likewise.
23087         * io/lseek64.c: Likewise.
23088         * io/lxstat64.c: Likewise.
23089         * io/mkdir.c: Likewise.
23090         * io/mkdirat.c: Likewise.
23091         * io/mkfifo.c: Likewise.
23092         * io/mkfifoat.c: Likewise.
23093         * io/open.c: Likewise.
23094         * io/open64.c: Likewise.
23095         * io/openat.c: Likewise.
23096         * io/openat64.c: Likewise.
23097         * io/pipe.c: Likewise.
23098         * io/pipe2.c: Likewise.
23099         * io/poll.c: Likewise.
23100         * io/posix_fadvise.c: Likewise.
23101         * io/posix_fadvise64.c: Likewise.
23102         * io/posix_fallocate.c: Likewise.
23103         * io/posix_fallocate64.c: Likewise.
23104         * io/read.c: Likewise.
23105         * io/readlink.c: Likewise.
23106         * io/readlinkat.c: Likewise.
23107         * io/rmdir.c: Likewise.
23108         * io/sendfile.c: Likewise.
23109         * io/sendfile64.c: Likewise.
23110         * io/statfs.c: Likewise.
23111         * io/statfs64.c: Likewise.
23112         * io/statvfs.c: Likewise.
23113         * io/statvfs64.c: Likewise.
23114         * io/symlink.c: Likewise.
23115         * io/symlinkat.c: Likewise.
23116         * io/ttyname.c: Likewise.
23117         * io/ttyname_r.c: Likewise.
23118         * io/umask.c: Likewise.
23119         * io/unlink.c: Likewise.
23120         * io/unlinkat.c: Likewise.
23121         * io/utime.c: Likewise.
23122         * io/utimensat.c: Likewise.
23123         * io/write.c: Likewise.
23124         * io/xmknod.c: Likewise.
23125         * io/xmknodat.c: Likewise.
23126         * io/xstat.c: Likewise.
23127         * io/xstat64.c: Likewise.
23128         * login/getpt.c: Likewise.
23129         * login/grantpt.c: Likewise.
23130         * login/unlockpt.c: Likewise.
23131         * math/e_acoshl.c: Likewise.
23132         * math/e_acosl.c: Likewise.
23133         * math/e_asinl.c: Likewise.
23134         * math/e_atan2l.c: Likewise.
23135         * math/e_atanhl.c: Likewise.
23136         * math/e_coshl.c: Likewise.
23137         * math/e_expl.c: Likewise.
23138         * math/e_fmodl.c: Likewise.
23139         * math/e_gammal_r.c: Likewise.
23140         * math/e_hypotl.c: Likewise.
23141         * math/e_j0l.c: Likewise.
23142         * math/e_j1l.c: Likewise.
23143         * math/e_jnl.c: Likewise.
23144         * math/e_lgammal_r.c: Likewise.
23145         * math/e_log10l.c: Likewise.
23146         * math/e_log2l.c: Likewise.
23147         * math/e_logl.c: Likewise.
23148         * math/e_powl.c: Likewise.
23149         * math/e_rem_pio2l.c: Likewise.
23150         * math/e_sinhl.c: Likewise.
23151         * math/e_sqrtl.c: Likewise.
23152         * math/fclrexcpt.c: Likewise.
23153         * math/fedisblxcpt.c: Likewise.
23154         * math/feenablxcpt.c: Likewise.
23155         * math/fegetenv.c: Likewise.
23156         * math/fegetexcept.c: Likewise.
23157         * math/fegetround.c: Likewise.
23158         * math/feholdexcpt.c: Likewise.
23159         * math/fesetenv.c: Likewise.
23160         * math/fesetround.c: Likewise.
23161         * math/feupdateenv.c: Likewise.
23162         * math/fgetexcptflg.c: Likewise.
23163         * math/fraiseexcpt.c: Likewise.
23164         * math/fsetexcptflg.c: Likewise.
23165         * math/ftestexcept.c: Likewise.
23166         * math/k_cosl.c: Likewise.
23167         * math/k_rem_pio2l.c: Likewise.
23168         * math/k_sinl.c: Likewise.
23169         * math/k_tanl.c: Likewise.
23170         * math/s_asinhl.c: Likewise.
23171         * math/s_atanl.c: Likewise.
23172         * math/s_cbrtl.c: Likewise.
23173         * math/s_erfl.c: Likewise.
23174         * math/s_expm1l.c: Likewise.
23175         * math/s_log1pl.c: Likewise.
23176         * math/s_tanhl.c: Likewise.
23177         * misc/acct.c: Likewise.
23178         * misc/brk.c: Likewise.
23179         * misc/chflags.c: Likewise.
23180         * misc/chroot.c: Likewise.
23181         * misc/fchflags.c: Likewise.
23182         * misc/fgetxattr.c: Likewise.
23183         * misc/flistxattr.c: Likewise.
23184         * misc/fremovexattr.c: Likewise.
23185         * misc/fsetxattr.c: Likewise.
23186         * misc/fsync.c: Likewise.
23187         * misc/ftruncate.c: Likewise.
23188         * misc/futimes.c: Likewise.
23189         * misc/futimesat.c: Likewise.
23190         * misc/getdomain.c: Likewise.
23191         * misc/getdtsz.c: Likewise.
23192         * misc/gethostid.c: Likewise.
23193         * misc/gethostname.c: Likewise.
23194         * misc/getloadavg.c: Likewise.
23195         * misc/getpagesize.c: Likewise.
23196         * misc/getsysstats.c: Likewise.
23197         * misc/getxattr.c: Likewise.
23198         * misc/gtty.c: Likewise.
23199         * misc/ioctl.c: Likewise.
23200         * misc/lgetxattr.c: Likewise.
23201         * misc/listxattr.c: Likewise.
23202         * misc/llistxattr.c: Likewise.
23203         * misc/lremovexattr.c: Likewise.
23204         * misc/lsetxattr.c: Likewise.
23205         * misc/lutimes.c: Likewise.
23206         * misc/madvise.c: Likewise.
23207         * misc/mincore.c: Likewise.
23208         * misc/mlock.c: Likewise.
23209         * misc/mlockall.c: Likewise.
23210         * misc/mmap.c: Likewise.
23211         * misc/mprotect.c: Likewise.
23212         * misc/msync.c: Likewise.
23213         * misc/munlock.c: Likewise.
23214         * misc/munlockall.c: Likewise.
23215         * misc/munmap.c: Likewise.
23216         * misc/preadv.c: Likewise.
23217         * misc/preadv64.c: Likewise.
23218         * misc/ptrace.c: Likewise.
23219         * misc/pwritev.c: Likewise.
23220         * misc/pwritev64.c: Likewise.
23221         * misc/readv.c: Likewise.
23222         * misc/reboot.c: Likewise.
23223         * misc/remap_file_pages.c: Likewise.
23224         * misc/removexattr.c: Likewise.
23225         * misc/revoke.c: Likewise.
23226         * misc/select.c: Likewise.
23227         * misc/setdomain.c: Likewise.
23228         * misc/setegid.c: Likewise.
23229         * misc/seteuid.c: Likewise.
23230         * misc/sethostid.c: Likewise.
23231         * misc/sethostname.c: Likewise.
23232         * misc/setregid.c: Likewise.
23233         * misc/setreuid.c: Likewise.
23234         * misc/setxattr.c: Likewise.
23235         * misc/sstk.c: Likewise.
23236         * misc/stty.c: Likewise.
23237         * misc/swapoff.c: Likewise.
23238         * misc/swapon.c: Likewise.
23239         * misc/sync.c: Likewise.
23240         * misc/syncfs.c: Likewise.
23241         * misc/syscall.c: Likewise.
23242         * misc/truncate.c: Likewise.
23243         * misc/ualarm.c: Likewise.
23244         * misc/usleep.c: Likewise.
23245         * misc/ustat.c: Likewise.
23246         * misc/utimes.c: Likewise.
23247         * misc/vhangup.c: Likewise.
23248         * misc/writev.c: Likewise.
23249         * posix/_exit.c: Likewise.
23250         * posix/alarm.c: Likewise.
23251         * posix/execve.c: Likewise.
23252         * posix/fexecve.c: Likewise.
23253         * posix/fork.c: Likewise.
23254         * posix/fpathconf.c: Likewise.
23255         * posix/getaddrinfo.c: Likewise.
23256         * posix/getegid.c: Likewise.
23257         * posix/geteuid.c: Likewise.
23258         * posix/getgid.c: Likewise.
23259         * posix/getgroups.c: Likewise.
23260         * posix/getlogin.c: Likewise.
23261         * posix/getlogin_r.c: Likewise.
23262         * posix/getpgid.c: Likewise.
23263         * posix/getpid.c: Likewise.
23264         * posix/getppid.c: Likewise.
23265         * posix/getresgid.c: Likewise.
23266         * posix/getresuid.c: Likewise.
23267         * posix/getsid.c: Likewise.
23268         * posix/getuid.c: Likewise.
23269         * posix/glob64.c: Likewise.
23270         * posix/nanosleep.c: Likewise.
23271         * posix/pathconf.c: Likewise.
23272         * posix/pause.c: Likewise.
23273         * posix/posix_madvise.c: Likewise.
23274         * posix/pread.c: Likewise.
23275         * posix/pread64.c: Likewise.
23276         * posix/pwrite.c: Likewise.
23277         * posix/pwrite64.c: Likewise.
23278         * posix/sched_getaffinity.c: Likewise.
23279         * posix/sched_getp.c: Likewise.
23280         * posix/sched_gets.c: Likewise.
23281         * posix/sched_primax.c: Likewise.
23282         * posix/sched_primin.c: Likewise.
23283         * posix/sched_rr_gi.c: Likewise.
23284         * posix/sched_setaffinity.c: Likewise.
23285         * posix/sched_setp.c: Likewise.
23286         * posix/sched_sets.c: Likewise.
23287         * posix/sched_yield.c: Likewise.
23288         * posix/setgid.c: Likewise.
23289         * posix/setlogin.c: Likewise.
23290         * posix/setpgid.c: Likewise.
23291         * posix/setresgid.c: Likewise.
23292         * posix/setresuid.c: Likewise.
23293         * posix/setsid.c: Likewise.
23294         * posix/setuid.c: Likewise.
23295         * posix/sleep.c: Likewise.
23296         * posix/spawni.c: Likewise.
23297         * posix/sysconf.c: Likewise.
23298         * posix/times.c: Likewise.
23299         * posix/wait.c: Likewise.
23300         * posix/wait3.c: Likewise.
23301         * posix/wait4.c: Likewise.
23302         * posix/waitpid.c: Likewise.
23303         * resolv/gai_sigqueue.c: Likewise.
23304         * resource/getpriority.c: Likewise.
23305         * resource/getrlimit.c: Likewise.
23306         * resource/getrusage.c: Likewise.
23307         * resource/nice.c: Likewise.
23308         * resource/setpriority.c: Likewise.
23309         * resource/setrlimit.c: Likewise.
23310         * resource/ulimit.c: Likewise.
23311         * rt/aio_cancel.c: Likewise.
23312         * rt/aio_fsync.c: Likewise.
23313         * rt/aio_read.c: Likewise.
23314         * rt/aio_sigqueue.c: Likewise.
23315         * rt/aio_suspend.c: Likewise.
23316         * rt/aio_write.c: Likewise.
23317         * rt/clock_getres.c: Likewise.
23318         * rt/clock_gettime.c: Likewise.
23319         * rt/clock_nanosleep.c: Likewise.
23320         * rt/clock_settime.c: Likewise.
23321         * rt/lio_listio.c: Likewise.
23322         * rt/mq_close.c: Likewise.
23323         * rt/mq_getattr.c: Likewise.
23324         * rt/mq_notify.c: Likewise.
23325         * rt/mq_open.c: Likewise.
23326         * rt/mq_receive.c: Likewise.
23327         * rt/mq_send.c: Likewise.
23328         * rt/mq_setattr.c: Likewise.
23329         * rt/mq_timedreceive.c: Likewise.
23330         * rt/mq_timedsend.c: Likewise.
23331         * rt/mq_unlink.c: Likewise.
23332         * rt/shm_open.c: Likewise.
23333         * rt/shm_unlink.c: Likewise.
23334         * rt/timer_create.c: Likewise.
23335         * rt/timer_delete.c: Likewise.
23336         * rt/timer_getoverr.c: Likewise.
23337         * rt/timer_gettime.c: Likewise.
23338         * rt/timer_settime.c: Likewise.
23339         * setjmp/__longjmp.c: Likewise.
23340         * setjmp/setjmp.c: Likewise.
23341         * signal/kill.c: Likewise.
23342         * signal/killpg.c: Likewise.
23343         * signal/raise.c: Likewise.
23344         * signal/sigaction.c: Likewise.
23345         * signal/sigaltstack.c: Likewise.
23346         * signal/sigblock.c: Likewise.
23347         * signal/sigignore.c: Likewise.
23348         * signal/sigintr.c: Likewise.
23349         * signal/signal.c: Likewise.
23350         * signal/sigpause.c: Likewise.
23351         * signal/sigpending.c: Likewise.
23352         * signal/sigqueue.c: Likewise.
23353         * signal/sigreturn.c: Likewise.
23354         * signal/sigset.c: Likewise.
23355         * signal/sigsetmask.c: Likewise.
23356         * signal/sigstack.c: Likewise.
23357         * signal/sigsuspend.c: Likewise.
23358         * signal/sigtimedwait.c: Likewise.
23359         * signal/sigvec.c: Likewise.
23360         * signal/sigwait.c: Likewise.
23361         * signal/sigwaitinfo.c: Likewise.
23362         * signal/sysv_signal.c: Likewise.
23363         * socket/accept.c: Likewise.
23364         * socket/accept4.c: Likewise.
23365         * socket/bind.c: Likewise.
23366         * socket/connect.c: Likewise.
23367         * socket/getpeername.c: Likewise.
23368         * socket/getsockname.c: Likewise.
23369         * socket/getsockopt.c: Likewise.
23370         * socket/isfdtype.c: Likewise.
23371         * socket/listen.c: Likewise.
23372         * socket/recv.c: Likewise.
23373         * socket/recvfrom.c: Likewise.
23374         * socket/recvmsg.c: Likewise.
23375         * socket/send.c: Likewise.
23376         * socket/sendmsg.c: Likewise.
23377         * socket/sendto.c: Likewise.
23378         * socket/setsockopt.c: Likewise.
23379         * socket/shutdown.c: Likewise.
23380         * socket/sockatmark.c: Likewise.
23381         * socket/socket.c: Likewise.
23382         * socket/socketpair.c: Likewise.
23383         * stdio-common/ctermid.c: Likewise.
23384         * stdio-common/cuserid.c: Likewise.
23385         * stdio-common/remove.c: Likewise.
23386         * stdio-common/rename.c: Likewise.
23387         * stdio-common/renameat.c: Likewise.
23388         * stdio-common/tempname.c: Likewise.
23389         * stdlib/getcontext.c: Likewise.
23390         * stdlib/makecontext.c: Likewise.
23391         * stdlib/setcontext.c: Likewise.
23392         * stdlib/swapcontext.c: Likewise.
23393         * stdlib/system.c: Likewise.
23394         * streams/fattach.c: Likewise.
23395         * streams/fdetach.c: Likewise.
23396         * streams/getmsg.c: Likewise.
23397         * streams/getpmsg.c: Likewise.
23398         * streams/putmsg.c: Likewise.
23399         * streams/putpmsg.c: Likewise.
23400         * sysdeps/unix/bsd/getpt.c: Likewise.
23401         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
23402         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
23403         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
23404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
23405         Likewise.
23406         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
23407         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
23408         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
23409         * sysvipc/msgctl.c: Likewise.
23410         * sysvipc/msgget.c: Likewise.
23411         * sysvipc/msgrcv.c: Likewise.
23412         * sysvipc/msgsnd.c: Likewise.
23413         * sysvipc/semctl.c: Likewise.
23414         * sysvipc/semget.c: Likewise.
23415         * sysvipc/semop.c: Likewise.
23416         * sysvipc/semtimedop.c: Likewise.
23417         * sysvipc/shmat.c: Likewise.
23418         * sysvipc/shmctl.c: Likewise.
23419         * sysvipc/shmdt.c: Likewise.
23420         * sysvipc/shmget.c: Likewise.
23421         * termios/tcdrain.c: Likewise.
23422         * termios/tcflow.c: Likewise.
23423         * termios/tcflush.c: Likewise.
23424         * termios/tcgetattr.c: Likewise.
23425         * termios/tcgetpgrp.c: Likewise.
23426         * termios/tcsendbrk.c: Likewise.
23427         * termios/tcsetattr.c: Likewise.
23428         * termios/tcsetpgrp.c: Likewise.
23429         * time/adjtime.c: Likewise.
23430         * time/clock.c: Likewise.
23431         * time/getitimer.c: Likewise.
23432         * time/gettimeofday.c: Likewise.
23433         * time/setitimer.c: Likewise.
23434         * time/settimeofday.c: Likewise.
23435         * time/stime.c: Likewise.
23436         * time/time.c: Likewise.
23437
23438 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
23439
23440         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
23441         /usr/old/bin.
23442
23443         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
23444         instead of spaces.
23445         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
23446
23447 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
23448
23449         [BZ #14796]
23450         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
23451         FE_TONEAREST before applying Dekker multiplication and Knuth
23452         addition.  Clear inexact exceptions and check for exact zero
23453         results afterwards.
23454         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
23455         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
23456         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
23457         * math/libm-test.inc (fma_test): Add more tests.
23458         (fma_test_towardzero): Likewise.
23459         (fma_test_downward): Likewise.
23460         (fma_test_upward): Likewise.
23461         * sysdeps/generic/math_private.h (default_libc_fesetround): New
23462         function.
23463         (libc_fesetround): New macro.
23464         (libc_fesetroundf): Likewise.
23465         (libc_fesetroundl): Likewise.
23466         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
23467         function.
23468         (libc_fesetround_387): Likewise.
23469         (libc_fesetroundf): New macro.
23470         (libc_fesetround): Likewise.
23471         (libc_fesetroundl): Likewise.
23472         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
23473         function.
23474         (libc_fesetroundf): New macro.
23475         (libc_fesetround): Likewise.
23476         (libc_fesetroundl): Likewise.
23477         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
23478         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
23479         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
23480         libm_hidden_ver.
23481         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
23482         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
23483         libm_hidden_def.
23484         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
23485         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
23486         libm_hidden_ver.
23487         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
23488         libm_hidden_def.
23489
23490         [BZ #3439]
23491         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
23492         integer constant usable in #if and use that to give value to enum
23493         constant.
23494         (FE_DIVBYZERO): Likewise.
23495         (FE_UNDERFLOW): Likewise.
23496         (FE_OVERFLOW): Likewise.
23497         (FE_INVALID): Likewise.
23498         (FE_INVALID_SNAN): Likewise.
23499         (FE_INVALID_ISI): Likewise.
23500         (FE_INVALID_IDI): Likewise.
23501         (FE_INVALID_ZDZ): Likewise.
23502         (FE_INVALID_IMZ): Likewise.
23503         (FE_INVALID_COMPARE): Likewise.
23504         (FE_INVALID_SOFTWARE): Likewise.
23505         (FE_INVALID_SQRT): Likewise.
23506         (FE_INVALID_INTEGER_CONVERSION): Likewise.
23507         (FE_TONEAREST): Likewise.
23508         (FE_TOWARDZERO): Likewise.
23509         (FE_UPWARD): Likewise.
23510         (FE_DOWNWARD): Likewise.
23511         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
23512         (FE_DIVBYZERO): Likewise.
23513         (FE_OVERFLOW): Likewise.
23514         (FE_UNDERFLOW): Likewise.
23515         (FE_INEXACT): Likewise.
23516         (FE_TONEAREST): Likewise.
23517         (FE_DOWNWARD): Likewise.
23518         (FE_UPWARD): Likewise.
23519         (FE_TOWARDZERO): Likewise.
23520         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
23521         (FE_UNDERFLOW): Likewise.
23522         (FE_OVERFLOW): Likewise.
23523         (FE_DIVBYZERO): Likewise.
23524         (FE_INVALID): Likewise.
23525         (FE_TONEAREST): Likewise.
23526         (FE_TOWARDZERO): Likewise.
23527         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
23528         (FE_OVERFLOW): Likewise.
23529         (FE_UNDERFLOW): Likewise.
23530         (FE_DIVBYZERO): Likewise.
23531         (FE_INEXACT): Likewise.
23532         (FE_TONEAREST): Likewise.
23533         (FE_TOWARDZERO): Likewise.
23534         (FE_UPWARD): Likewise.
23535         (FE_DOWNWARD): Likewise.
23536         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
23537         (FE_DIVBYZERO): Likewise.
23538         (FE_OVERFLOW): Likewise.
23539         (FE_UNDERFLOW): Likewise.
23540         (FE_INEXACT): Likewise.
23541         (FE_TONEAREST): Likewise.
23542         (FE_DOWNWARD): Likewise.
23543         (FE_UPWARD): Likewise.
23544         (FE_TOWARDZERO): Likewise.
23545
23546 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
23547
23548         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
23549
23550 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
23551
23552         * scripts/cross-test-ssh.sh (command): Use newlines to separate
23553         commands.  Quote $PWD.
23554         (blacklist_exports): Don't use remove_newlines.  Replace "declare
23555         -x" by "export".
23556         (remove_newlines): Remove.
23557
23558 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
23559
23560         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
23561         * stdlib/stdlib.h (atof): Moved to ...
23562         * include/bits/stdlib-float.h: Here.  New file.
23563         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
23564         * stdlib/bits/stdlib-float.h: New file.
23565         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
23566         -mno-sse -mno-mmx.
23567         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
23568         <xmmintrin.h>.
23569
23570 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
23571
23572         * conform/conformtest.pl (@headers): Add fenv.h.
23573         * conform/data/fenv.h-data: New file.
23574         * include/fenv.h [_ISOMAC]: Disable all contents of file except
23575         include of <math/fenv.h>.
23576
23577         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
23578         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
23579         && !UNIX98].  Enables tests for XOPEN2K8.
23580         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
23581         POSIX2008]: Likewise.
23582
23583         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
23584         (struct rusage): Do not expect type or its members.
23585
23586         [BZ #3439]
23587         * math/math.h (FP_NAN): Define macro to integer constant usable in
23588         #if and use that to give value to enum constant.
23589         (FP_INFINITE): Likewise.
23590         (FP_ZERO): Likewise.
23591         (FP_SUBNORMAL): Likewise.
23592         (FP_NORMAL): Likewise.
23593
23594 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
23595
23596         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
23597         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
23598         arguments.
23599
23600 2012-11-02  Roland McGrath  <roland@hack.frob.com>
23601
23602         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
23603         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
23604         autoconf-time if not.
23605         * configure.in: Remove AC_PREREQ.
23606
23607 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23608
23609         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
23610         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
23611         of the internal implementation.
23612
23613 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
23614
23615         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
23616         except include of <misc/sys/syslog.h>.
23617
23618 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
23619
23620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
23621         function returns with a NULL context exit with zero.
23622
23623 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23624
23625         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
23626
23627 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
23628
23629         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
23630         (run_program_cmd): This.
23631         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
23632         (tst_langinfo): New variable.  Use it.
23633
23634 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
23635
23636         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
23637         floating point opcodes.
23638
23639 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
23640
23641         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
23642         variable.
23643
23644         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
23645
23646         * sysdeps/mach/hurd/powerpc: Remove directory.
23647         * sysdeps/mach/powerpc: Likewise.
23648
23649 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
23650
23651         * scripts/check-local-headers.sh: Ignore c++ headers.
23652
23653 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
23654
23655         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
23656         __libc_cleanup_region_start argument.
23657
23658 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
23659
23660         [BZ #14784]
23661         [BZ #14785]
23662         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
23663         x * y using scaling, not as x * y + z.
23664         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
23665         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
23666         * math/libm-test.inc (fma_test): Add more tests.
23667         (fma_test_towardzero): Likewise.
23668         (fma_test_downward): Likewise.
23669         (fma_test_upward): Likewise.
23670
23671 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
23672
23673         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
23674
23675 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
23676
23677         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
23678         New variable.
23679
23680 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
23681
23682         * rt/tst-shm.c (worker): Correct checking for mmap failure.
23683
23684 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
23685
23686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23687         Fix sort order.
23688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
23689         Likewise.
23690
23691 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23692
23693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23694         Fix the order of the list for glibc 2.17.
23695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
23696         Likewise.
23697
23698 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
23699
23700         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23701
23702 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
23703
23704         [BZ #14610]
23705         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
23706         for low part of x being zero before using __atanl (y).
23707         * math/libm-test.inc (atan2_test): Add another test.
23708
23709         * manual/install.texi (Configuring and compiling): Document
23710         general use of test-wrapper and test-wrapper-env.
23711         * INSTALL: Regenerated.
23712
23713         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
23714         (__fma): Do not extract and scale down low bits on after-rounding
23715         systems when result rounded to normal precision would have normal
23716         exponent.
23717         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
23718         (__fmal): Do not extract and scale down low bits on after-rounding
23719         systems when result rounded to normal precision would have normal
23720         exponent.
23721         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
23722         (__fmal): Do not extract and scale down low bits on after-rounding
23723         systems when result rounded to normal precision would have normal
23724         exponent.
23725         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
23726         macro.
23727         (fma_test): Add more tests.
23728         (fma_test_towardzero): Likewise.
23729         (fma_test_downward): Likewise.
23730         (fma_test_upward): Likewise.
23731
23732 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
23733
23734         * sysdeps/i386/tininess.h: Renamed to ...
23735         * sysdeps/x86/tininess.h: This.
23736         * sysdeps/x86_64/tininess.h: Removed.
23737
23738 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
23739
23740         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
23741         input.  Use $(build-program-cmd).
23742         ($(objpfx)tst-array1-static.out): Likewise.
23743         ($(objpfx)tst-array2.out): Likewise.
23744         ($(objpfx)tst-array3.out): Likewise.
23745         ($(objpfx)tst-array4.out): Likewise.
23746         ($(objpfx)tst-array5.out): Likewise.
23747         ($(objpfx)tst-array5-static.out): Likewise.
23748
23749 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
23750
23751         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
23752         if defined.
23753
23754         * nss/nsswitch.h (nss_interface_function): Provide new
23755         macro for use with NSS functions.
23756         * grp/initgroups.c: Use new macro.
23757         * nss/getXXbyYY.c: Likewise.
23758         * nss/getXXbyYY_r.c: Likewise.
23759         * nss/getXXent.c: Likewise.
23760         * nss/getXXent_r.c: Likewise.
23761         * sysdeps/posix/getaddrinfo.c: Likewise.
23762
23763 2012-10-30  Andreas Jaeger  <aj@suse.de>
23764
23765         * po/ru.po: Update Russion translation from translation project.
23766
23767 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
23768
23769         [BZ #14152]
23770         [BZ #14783]
23771         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
23772         result and shift together with sticky bit instead of replicating
23773         round-to-nearest rounding.
23774         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
23775         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
23776         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
23777         missing underflow exceptions.
23778         (fma_test_towardzero): Add more tests.
23779         (fma_test_downward): Likewise.
23780         (fma_test_upward): Likewise.
23781
23782         [BZ #14047]
23783         * sysdeps/generic/tininess.h: New file.
23784         * sysdeps/i386/tininess.h: Likewise.
23785         * sysdeps/sh/tininess.h: Likewise.
23786         * sysdeps/x86_64/tininess.h: Likewise.
23787         * stdlib/tst-strtod-underflow.c: Likewise.
23788         * stdlib/tst-tininess.c: Likewise.
23789         * stdlib/strtod_l.c: Include <tininess.h>.
23790         (round_and_return): Do not set errno for exact underflow cases.
23791         Force an underflow exception when setting errno for underflow.
23792         Determine underflow based on rounding to normal precision if
23793         TININESS_AFTER_ROUNDING.
23794         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
23795         ERANGE for exact underflow cases.
23796         * stdlib/Makefile (tests): Add tst-tininess and
23797         tst-strtod-underflow.
23798         ($(objpfx)tst-tininess): Use $(link-libm).
23799         ($(objpfx)tst-strtod-underflow): Likewise.
23800
23801 2012-10-30  Andreas Jaeger  <aj@suse.de>
23802
23803         [BZ#14767]
23804         * elf/Makefile (tests): Remove conditional for have-initfini-array
23805         since this is now always required and the variable does not exist
23806         anymore.
23807         (tests-static): Likewise.
23808         (modules-names): Likewise.
23809
23810         * po/eo.po: Add Esperanto translation from translation project.
23811
23812         * elf/tst-array1.c (fini_array): Make writeable so that it can be
23813         merged with constructor/destructor.
23814         (init_array): Likewise.
23815         * elf/tst-array2dep.c (fini_array): Likewise.
23816         (init_array): Likewise.
23817
23818 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
23819
23820         * manual/message.texi: Delete @cartouche tags.
23821
23822 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
23823
23824         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
23825         EOPNOTSUPP.
23826         * sysdeps/mach/hurd/fsync.c: Likewise.
23827
23828         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
23829         [_POSIX_REALTIME_SIGNALS]: Change condition to
23830         [_POSIX_REALTIME_SIGNALS > 0].
23831
23832 2012-10-27  Andreas Jaeger  <aj@suse.de>
23833
23834         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
23835         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
23836         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
23837         [__WORDSIZE != 64]: Likewise.
23838
23839 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
23840
23841         *  iconvdata/tst-table.sh: Remove ${SHELL}.
23842         *  iconvdata/tst-tables.sh: Likewise.
23843
23844 2012-10-25  David S. Miller  <davem@davemloft.net>
23845
23846         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
23847         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
23848         of strtoull.
23849
23850         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
23851         ifunc-impl-list.c
23852         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23853         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
23854         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
23855         file.
23856
23857 2012-10-25  Roland McGrath  <roland@hack.frob.com>
23858
23859         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
23860         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
23861         __getdirentries.
23862
23863 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
23864             Jim Blandy  <jimb@codesourcery.com>
23865
23866         * scripts/cross-test-ssh.sh: New file.
23867         * manual/install.texi (Configuring and compiling): Document use of
23868         cross-test-ssh.sh.
23869         * INSTALL: Regenerated.
23870
23871 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
23872
23873         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
23874         EOPNOTSUPP.
23875
23876 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
23877
23878         * Makeconfig (run-program-prefix): Fix comment.
23879
23880 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
23881             Jim Blandy  <jimb@codesourcery.com>
23882
23883         * Makeconfig (test-wrapper): New variable,
23884         (test-wrapper-env): Likewise.
23885         [$(cross-compiling) = yes && $(test-wrapper) != ""]
23886         (run-built-tests): Define to yes.
23887         (run-program-prefix): Use $(test-wrapper).
23888         (built-program-cmd): Likewise.
23889         * Rules (make-test-out): Use $(test-wrapper-env) and
23890         $(host-built-program-cmd).
23891         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
23892         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
23893         tst-pathopt.sh.
23894         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
23895         $(test-wrapper-env) to tst-rtld-load-self.sh.
23896         ($(objpfx)order2.out): Use $(test-wrapper).
23897         ($(objpfx)tst-initorder.out): Likewise.
23898         ($(objpfx)tst-initorder2.out): Likewise.
23899         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
23900         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
23901         (test_wrapper_env): New variable.  Use it to run ld.so.
23902         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
23903         Use it to run ld.so.
23904         (test_wrapper_env): Likewise.
23905         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
23906         $(test-wrapper) to run-iconv-test.sh.
23907         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
23908         (ICONV): Use $test_wrapper.
23909         * posix/Makefile ($(objpfx)globtest.out): Pass
23910         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
23911         globtest.sh, not $(run-program-prefix).
23912         * posix/globtest.sh (run_via_rtld_prefix): New variable.
23913         (test_wrapper): Likewise.
23914         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
23915         set together with run_via_rtld_prefix.
23916         (run_program_prefix): Define in terms of test_wrapper and
23917         run_via_rtld_prefix.
23918
23919 2012-10-24  Roland McGrath  <roland@hack.frob.com>
23920
23921         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
23922         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
23923         Targets removed.
23924
23925         [BZ #14743]
23926         * include/time.h: Remove librt_hidden_proto (clock_gettime).
23927         Declare __clock_getres, __clock_gettime, __clock_settime,
23928         __clock_nanosleep, and __clock_getcpuclockid.
23929         * rt/clock_gettime.c: Define __clock_gettime as an alias.
23930         Remove librt_hidden_def (clock_gettime).
23931         * sysdeps/unix/clock_gettime.c: Likewise.
23932         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
23933         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
23934         * rt/clock_getres.c: Define __clock_getres as an alias.
23935         * sysdeps/posix/clock_getres.c: Likewise.
23936         * rt/clock_settime.c: Define __clock_settime as an alias.
23937         * sysdeps/unix/clock_settime.c: Likewise.
23938         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
23939         * sysdeps/unix/clock_nanosleep.c: Likewise.
23940         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
23941         * rt/clock-compat.c: New file.
23942         * rt/Makefile (librt-routines): Add clock-compat and move
23943         $(clock-routines) to ...
23944         (routines): ... here, new variable.
23945         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
23946         Don't add get_clockfreq here.
23947         * rt/Versions (libc: GLIBC_2.17): New version set.
23948         Add clock_* symbols here.
23949         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
23950         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
23951         (GLIBC_2.17): Add clock_* symbols.
23952         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
23953         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
23954         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
23955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
23956         Likewise.
23957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23958         Likewise.
23959         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
23960         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
23961         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
23962         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
23963         * NEWS: Mention the move.
23964
23965         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
23966         Use __open, __read, __close rather than their public counterparts.
23967         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
23968         (__get_clockfreq_via_cpuinfo): Likewise.
23969         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
23970         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
23971
23972         * config.h.in (HAVE_IFUNC): New #undef.
23973         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
23974         was successful.
23975         * configure: Regenerated.
23976
23977 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
23978
23979         * configure.in: Move READELF check to start of file.
23980         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
23981         libc_cv_asm_gnu_indirect_function in the process.
23982         * configure: Regenerated.
23983
23984 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
23985
23986         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
23987         send the output to /dev/null.
23988         (libc_cv_cc_with_libunwind): Likewise.
23989         (libc_cv_as_noexecstack): Likewise.
23990         * configure: Regenerate.
23991
23992 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
23993
23994         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
23995
23996         * posix/globtest.sh (TMPDIR): Do not set.
23997         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
23998         (testout): Likewise.
23999
24000 2012-10-24  Andreas Jaeger  <aj@suse.de>
24001
24002         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
24003         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
24004         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
24005         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
24006         posix_fadvise64, posix_fallocate64.
24007
24008         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
24009         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
24010         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
24011         Likewise.
24012         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
24013         Likewise.
24014         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
24015
24016         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
24017         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
24018         <bits/fcntl-linux.h>.
24019         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
24020
24021         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
24022         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
24023         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
24024         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
24025         [__WORDSIZE != 64]: Likewise.
24026
24027 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
24028
24029         * Makeconfig (run-built-tests): New variable.
24030         * Rules [$(cross-compiling) = yes]: Change condition to
24031         [$(run-built-tests) = no].
24032         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
24033         to [$(run-built-tests) = yes].
24034         * elf/Makefile [$(cross-compiling) = no]: Likewise
24035         * grp/Makefile [$(cross-compiling) = no]: Likewise.
24036         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
24037         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
24038         * intl/Makefile [$(cross-compiling) = no]: Likewise.
24039         * io/Makefile [$(cross-compiling) = no]: Likewise.
24040         * libio/Makefile [$(cross-compiling) = no]: Likewise.
24041         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
24042         * misc/Makefile [$(cross-compiling) = no]: Likewise.
24043         * posix/Makefile [$(cross-compiling) = no]: Likewise.
24044         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
24045         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
24046         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
24047         * string/Makefile [$(cross-compiling) = no]: Likewise.
24048
24049         * posix/Makefile ($(objpfx)globtest.out): Pass
24050         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
24051         $(rtld-installed-name).
24052         * posix/globtest.sh (elf_objpfx): Remove variable.
24053         (rtld_installed_name): Likewise.
24054         (library_path): Likewise.
24055         (run_program_prefix): New variable.  Use for running globtest
24056         binary.
24057
24058 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
24059             Joseph Myers  <joseph@codesourcery.com>
24060
24061         * Makeconfig (host-built-program-cmd): New variable.
24062         * elf/Makefile (tst-stackguard1-ARGS): Use
24063         $(host-built-program-cmd).
24064         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
24065         (tst-spawn-ARGS): Likewise.
24066         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
24067
24068 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
24069             Jim Blandy  <jimb@codesourcery.com>
24070
24071         * Makeconfig (run-via-rtld-prefix): New variable.
24072         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
24073         (built-program-cmd): Likewise.
24074
24075 2012-10-22  Andreas Jaeger  <aj@suse.de>
24076
24077         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
24078         __O_RSYNC if it exists, otherwise to O_SYNC.
24079
24080 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
24081             Joseph Myers  <joseph@codesourcery.com>
24082
24083         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
24084         /dev/null.
24085         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
24086         from /dev/null
24087         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
24088         /dev/null.
24089
24090 2012-10-22  Andreas Jaeger  <aj@suse.de>
24091
24092         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
24093         Define always.
24094         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
24095
24096         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24097         bits/fcntl-linux.h.
24098
24099         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
24100         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
24101
24102         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
24103         to __O_LARGEFILE.
24104         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
24105         to __O_LARGEFILE.
24106
24107 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
24108             Joseph Myers  <joseph@codesourcery.com>
24109
24110         * config.make.in (NM): New variable.
24111
24112 2012-10-21  Andreas Jaeger  <aj@suse.de>
24113
24114         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
24115         definitions and declarations that are provided by
24116         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
24117
24118 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
24119
24120         [BZ #14683]
24121         * elf/Makefile (tests-static): Add tst-leaks1-static.
24122         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
24123         ($(objpfx)tst-leaks1-static): New rule.
24124         ($(objpfx)tst-leaks1-static-mem): Likewise.
24125         (tst-leaks1-static-ENV): New macro.
24126         * elf/dl-open.c (dl_open_worker): Check the main application
24127         only if SHARED is defined.
24128         * elf/tst-leaks1-static.c: New file.
24129
24130 2012-10-20  Andreas Jaeger  <aj@suse.de>
24131
24132         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
24133         generic values for Linux.
24134         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
24135         and declarations that are provided by <bits/fcntl-linux.h> and
24136         include <bits/fcntl-linux.h>.
24137         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24138         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24139
24140 2012-10-20  Roland McGrath  <roland@hack.frob.com>
24141
24142         * io/fcntl.h: Move include of <bits/types.h> to the top and
24143         include it unconditionally.
24144
24145 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
24146
24147         * wcsmbs/Makefile (tests-ifunc): New variable.
24148         (tests): Add $(tests-ifunc).
24149         * wcsmbs/test-wcschr-ifunc.c: New file.
24150         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
24151         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
24152         * wcsmbs/test-wcslen-ifunc.c: Likewise.
24153         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
24154         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
24155
24156         * string/Makefile (tests-ifunc): New variable.
24157         (tests): Add $(tests-ifunc).
24158         * string/test-memccpy.c (TEST_NAME): New macro.
24159         * string/test-memchr.c (TEST_NAME): Likewise.
24160         * string/test-memcmp.c (TEST_NAME): Likewise.
24161         * string/test-memcpy.c (TEST_NAME): Likewise.
24162         * string/test-memmem.c (TEST_NAME): Likewise.
24163         * string/test-memmove.c (TEST_NAME): Likewise.
24164         * string/test-memset.c (TEST_NAME): Likewise.
24165         * string/test-rawmemchr.c (TEST_NAME): Likewise.
24166         * string/test-stpcpy.c (TEST_NAME): Likewise.
24167         * string/test-stpncpy.c (TEST_NAME): Likewise.
24168         * string/test-strcasecmp.c (TEST_NAME): Likewise.
24169         * string/test-strcasestr.c (TEST_NAME): Likewise.
24170         * string/test-strcat.c (TEST_NAME): Likewise.
24171         * string/test-strchr.c (TEST_NAME): Likewise.
24172         * string/test-strcmp.c(TEST_NAME): Likewise.
24173         * string/test-strcpy.c (TEST_NAME): Likewise.
24174         * string/test-strcspn.c (TEST_NAME): Likewise.
24175         * string/test-strlen.c (TEST_NAME): Likewise.
24176         * string/test-strncasecmp.c (TEST_NAME): Likewise.
24177         * string/test-strncmp.c (TEST_NAME): Likewise.
24178         * string/test-strncpy.c (TEST_NAME): Likewise.
24179         * string/test-strnlen.c (TEST_NAME): Likewise.
24180         * string/test-strpbrk.c (TEST_NAME): Likewise.
24181         * string/test-strrchr.c (TEST_NAME): Likewise.
24182         * string/test-strspn.c (TEST_NAME): Likewise.
24183         * string/test-strstr.c (TEST_NAME): Likewise.
24184         * string/test-bcopy-ifunc.c: New file.
24185         * string/test-bzero-ifunc.c: Likewise.
24186         * string/test-memccpy-ifunc.c: Likewise.
24187         * string/test-memchr-ifunc.c: Likewise.
24188         * string/test-memcmp-ifunc.c: Likewise.
24189         * string/test-memcpy-ifunc.c: Likewise.
24190         * string/test-memmem-ifunc.c: Likewise.
24191         * string/test-memmove-ifunc.c: Likewise.
24192         * string/test-mempcpy-ifunc.c: Likewise.
24193         * string/test-memset-ifunc.c: Likewise.
24194         * string/test-rawmemchr-ifunc.c: Likewise.
24195         * string/test-stpcpy-ifunc.c: Likewise.
24196         * string/test-stpncpy-ifunc.c: Likewise.
24197         * string/test-strcasecmp-ifunc.c: Likewise.
24198         * string/test-strcasestr-ifunc.c: Likewise.
24199         * string/test-strcat-ifunc.c: Likewise.
24200         * string/test-strchr-ifunc.c: Likewise.
24201         * string/test-strchrnul-ifunc.c: Likewise.
24202         * string/test-strcmp-ifunc.c: Likewise.
24203         * string/test-strcpy-ifunc.c: Likewise.
24204         * string/test-strcspn-ifunc.c: Likewise.
24205         * string/test-strlen-ifunc.c: Likewise.
24206         * string/test-strncasecmp-ifunc.c: Likewise.
24207         * string/test-strncat-ifunc.c: Likewise.
24208         * string/test-strncmp-ifunc.c: Likewise.
24209         * string/test-strncpy-ifunc.c: Likewise.
24210         * string/test-strnlen-ifunc.c: Likewise.
24211         * string/test-strpbrk-ifunc.c: Likewise.
24212         * string/test-strrchr-ifunc.c: Likewise.
24213         * string/test-strspn-ifunc.c: Likewise.
24214         * string/test-strstr-ifunc.c: Likewise.
24215
24216         * debug/Makefile (tests-ifunc): New variable.
24217         (tests): Add $(tests-ifunc).
24218         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
24219         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
24220         * debug/test-stpcpy_chk-ifunc.c: New file.
24221         * debug/test-strcpy_chk-ifunc.c: Likewise.
24222
24223 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
24224
24225         [BZ #13601]
24226         * elf/dl-load.c (open_verify): Retry read if the entire ELF
24227         header is not read in.
24228
24229 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
24230
24231         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
24232         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
24233         directly.  Pass built executable to script as
24234         $(built-program-cmd).
24235         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
24236         $testprogram without using LD_LIBRARY_PATH and $ldso.
24237
24238         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
24239         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
24240         $(rtld-installed-name).
24241         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
24242         (rtld_installed_name): Likewise.
24243         (library_path): Likewise.
24244         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
24245         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
24246         $(run-program-prefix) to tst-tables.sh.
24247         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
24248         it to run tst-table-from and tst-table-to.
24249         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
24250         Pass it to tst-table.sh.
24251         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
24252         $(run-program-prefix) to tst-gettext.sh.
24253         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
24254         tst-translit.sh.
24255         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
24256         tst-gettext2.sh.
24257         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
24258         to run tst-gettext.
24259         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
24260         to run tst-gettext2.
24261         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
24262         to run tst-translit.
24263         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
24264         $(run-program-prefix) to tst-mtrace.sh.
24265         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
24266         to run tst-mtrace.
24267         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
24268         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
24269         $(rtld-installed-name).
24270         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
24271         (rtld_installed_name): Likewise.
24272         (run_program_prefix): New variable.  Use it to run wordexp-test.
24273
24274         * Makeconfig (ARCH): Remove all definitions.
24275         (machine): Likewise.
24276         [ARCH]: Remove conditional code.
24277         [!objdir]: Give error.
24278         [!objdir] (objpfx): Remove.
24279         [!objdir] (common-objpfx): Likewise.
24280         [!objdir] (common-objdir): Likewise.
24281         * configure.in (config_makefile): Remove.  Hardcode Makefile in
24282         AC_CONFIG_FILES call.
24283         * configure: Regenerated.
24284
24285         [BZ #13888]
24286         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
24287         or TMPDIR.
24288         (testout): Likewise.
24289
24290         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
24291         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
24292         $(rtld-installed-name).
24293         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
24294         (rtld_installed_name): Likwise.
24295         (runit): Remove function.
24296         (run_getconf): New variable,  Use it for running getconf binary.
24297
24298 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
24299
24300         [BZ #14716]
24301         * string/test-memmem.c (check_result): New function.
24302         (do_one_test): Use it.
24303         (check1): New function.
24304         (test_main): Use it.
24305
24306 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
24307
24308         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
24309
24310 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
24311
24312         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
24313         (_G_LSEEK64): Likewise.
24314         (_G_MMAP64): Likewise.
24315         (_G_FSTAT64): Likewise.
24316         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
24317         (_G_LSEEK64): Likewise.
24318         (_G_MMAP64): Likewise.
24319         (_G_FSTAT64): Likewise.
24320         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
24321         unconditional.  Call __mmap64 directly.
24322         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
24323         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
24324         __lseek64 directly.
24325         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
24326         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
24327         __mmap64 directly.
24328         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
24329         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
24330         __lseek64 directly.
24331         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
24332         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
24333         __lseek64 directly.
24334         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
24335         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
24336         __lseek64 directly.
24337         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
24338         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
24339         __fxstat64 directly.
24340         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
24341         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
24342         unconditional.
24343         (freopen64) [!_G_OPEN64]: Remove conditional code.
24344         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
24345         unconditional.
24346         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
24347         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
24348         unconditional.
24349         (ftello64) [!_G_LSEEK64]: Remove conditional code.
24350         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
24351         unconditional.
24352         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
24353         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
24354         unconditional.
24355         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
24356         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
24357         unconditional.
24358         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
24359         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
24360         unconditional.
24361         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
24362         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
24363         unconditional.
24364         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
24365
24366 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
24367
24368         [BZ #12140]
24369         * manual/memory.texi (Malloc Tunable Parameters): Add note
24370         about free list pointers overwriting some perturb bytes.
24371         Wording suggested by Roland McGrath.
24372
24373 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
24374
24375         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
24376         (lgamma_test): Likewise.
24377         (tgamma_test): Likewise.
24378
24379 2012-10-16  Florian Weimer  <fweimer@redhat.com>
24380
24381         [BZ #14700]
24382         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
24383         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
24384
24385 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
24386
24387         * NEWS: Mention BZ #14716.
24388         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
24389         when removing AVAILABLE1_USES_J macro.
24390
24391 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
24392
24393         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
24394         (__bswap_64): __uint64_t for unsigned 64-bit int.
24395
24396 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
24397
24398         * include/string.h (memmem): Declare libc hidden alias.
24399         * string/memmem.c (memmem): Define libc hidden alias.
24400         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
24401         __read, __close instead of open, read, close.
24402
24403 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
24404
24405         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
24406         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
24407         global and hidden.
24408         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
24409         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
24410         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
24411         Likewise.
24412         (__rawmemchr_sse2): Likewise.
24413         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
24414         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
24415         (__strchr_sse2): Likewise.
24416         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
24417         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
24418         (__strcasecmp_sse2): Likewise.
24419         (__strncasecmp_sse2): Likewise.
24420         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
24421         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
24422         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
24423         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
24424         (__strrchr_sse2): Likewise.
24425         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
24426         ifunc-impl-list.c.
24427         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24428         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24429         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24430         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
24431         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24432         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24433         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24434         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24435         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
24436         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
24437         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
24438         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
24439         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
24440         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24441         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24442         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24443         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24444         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24445         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
24446         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
24447         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
24448         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
24449         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
24450         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
24451         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
24452         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
24453         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24454         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
24455         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24456         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24457
24458         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
24459         global and hidden.
24460         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
24461         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
24462         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
24463         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
24464         Likewise.
24465         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
24466         Likewise.
24467         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
24468         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
24469         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
24470         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
24471         ifunc-impl-list.c.
24472         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24473         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24474         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24475         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24476         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24477         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24478         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24479         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24480         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24481         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24482         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24483         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24484         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24485         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
24486         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
24487         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
24488         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
24489         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
24490         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24491         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24492         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24493         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24494         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24495         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24496         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
24497         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
24498         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
24499         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
24500         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
24501         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24502         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
24503         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24504         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24505         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
24506         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24507         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24508         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24509         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24510         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24511         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24512         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
24513
24514         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
24515         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
24516         * include/ifunc-impl-list.h: New file.
24517         * misc/ifunc-impl-list.c: Likewise.
24518         * misc/Makefile (routines): Add ifunc-impl-list.
24519         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
24520         * string/test-string.h: Include <ifunc-impl-list.h>.
24521         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
24522         TEST_NAME]: New variables.
24523         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
24524         are defined.
24525         (test_init): Call __libc_ifunc_impl_list to initialize
24526         func_list if TEST_IFUNC and TEST_NAME are defined.
24527
24528         * string/Makefile (strop-tests): Add bcopy and bzero.
24529         * string/test-bcopy.c: New file.
24530         * string/test-bzero.c: Likewise.
24531         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
24532         defined.
24533         * string/test-memset.c: Support bzero test if TEST_BZERO is
24534         defined.
24535         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
24536         __libc_memmove.
24537         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
24538         __libc_memset.
24539         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
24540         of memset.
24541
24542 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
24543
24544         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
24545         * configure: Regenerated.
24546
24547         * Makeconfig (+link-static-before-libc): Don't include
24548         $(link-static-libc).
24549
24550         * libio/libio.h (_IO_pos_t): Remove.
24551
24552 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
24553
24554         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
24555         McGrath.
24556
24557 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
24558
24559         * crypt/crypt-entry.c: Include fips-private.h.
24560         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
24561         * crypt/md5c-test.c (main): Tolerate disabled MD5.
24562         * sysdeps/unix/sysv/linux/fips-private.h: New file.
24563         * sysdeps/generic/fips-private.h: New file, dummy fallback.
24564
24565 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
24566
24567         * crypt/crypt-private.h: Include stdbool.h.
24568         (_ufc_setup_salt_r): Return bool.
24569         * crypt/crypt-entry.c: Include errno.h.
24570         (__crypt_r): Return NULL with EINVAL for bad salt.
24571         * crypt/crypt_util.c (bad_for_salt): New.
24572         (_ufc_setup_salt_r): Check that salt is long enough and within
24573         the specified alphabet.
24574         * crypt/badsalttest.c: New file.
24575         * crypt/Makefile (tests): Add it.
24576         ($(objpfx)badsalttest): New.
24577
24578 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
24579
24580         * NEWS: Add entry for BZ #14602.
24581
24582 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
24583
24584         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
24585         type-generic.
24586         * math/libm-test.inc: Update comment listing what functions and
24587         macros are tested.
24588         (isgreater_test): New function.
24589         (isgreaterequal_test): Likewise.
24590         (isless_test): Likewise.
24591         (islessequal_test): Likewise.
24592         (islessgreater_test): Likewise.
24593         (isunordered_test): Likewise.
24594         (main): Call the new functions.
24595
24596 2012-10-09  Roland McGrath  <roland@hack.frob.com>
24597
24598         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
24599         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
24600         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
24601         * sysdeps/i386/configure: Regenerated.
24602         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
24603         * sysdeps/mach/configure: Regenerated.
24604         * sysdeps/mach/hurd/configure: Regenerated.
24605         * sysdeps/powerpc/configure: Regenerated.
24606         * sysdeps/powerpc/powerpc32/configure: Regenerated.
24607         * sysdeps/powerpc/powerpc64/configure: Regenerated.
24608         * sysdeps/s390/s390-32/configure: Regenerated.
24609         * sysdeps/s390/s390-64/configure: Regenerated.
24610         * sysdeps/sh/configure: Regenerated.
24611         * sysdeps/sparc/configure: Regenerated.
24612         * sysdeps/unix/sysv/linux/configure: Regenerated.
24613         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
24614         * sysdeps/x86_64/configure: Regenerated.
24615
24616         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
24617         defined.  Don't check if MAP is NULL.
24618
24619 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
24620
24621         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
24622         (_G_stat64): Likewise.
24623         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
24624         (_G_stat64): Likewise.
24625         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
24626         instead of struct _G_stat64.
24627         * libio/fileops.c (mmap_remap_check): Likewise.
24628         (decide_maybe_mmap): Likewise.
24629         (_IO_new_file_seekoff): Likewise.
24630         (_IO_file_stat): Likewise.
24631         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
24632         _G_off64_t.
24633         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
24634         instead of struct _G_stat64.
24635         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24636
24637 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
24638
24639         [BZ #14602]
24640         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
24641         Replace with ...
24642         (CHECK_EOL): New macro.
24643         (two_way_short_needle): Check beginning of haystack for EOL.  Use
24644         CHECK_EOL.
24645         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
24646         Replace with CHECK_EOL.
24647         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
24648         Replace with CHECK_EOL.
24649
24650 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
24651
24652         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
24653         type-generic.
24654         * math/libm-test.inc: Update comment listing what functions and
24655         macros are tested.
24656         (finite_test): New function.
24657         (isinf_test): Likewise.
24658         (isnan_test): Likewise.
24659         (fpclassify_test): Test subnormal input.
24660         (isfinite_test): Likewise.
24661         (isnormal_test): Likewise.
24662         (main): Call the new functions.
24663
24664 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
24665
24666         [BZ #14660]
24667         * Makerules (%.dynsym): Force C locale when running
24668         $(OBJDUMP) --dynamic-syms.
24669
24670 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
24671
24672         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
24673         <stdint.h>.
24674
24675 2012-10-06  David S. Miller  <davem@davemloft.net>
24676
24677         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
24678         upper 32-bits of the length value in %o2 since we use branch-on-register
24679         tests which consider the entire 64-bit register.
24680
24681 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
24682
24683         * string/test-strstr.c (check2): Add a test for page boundary.
24684
24685 2012-10-05  David S. Miller  <davem@davemloft.net>
24686
24687         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
24688         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
24689         file.
24690         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
24691         sysdep_routines.
24692         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
24693         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
24694         and bzero when HWCAP_SPARC_CRYPTO is present.
24695
24696 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
24697
24698         [BZ #14602]
24699         * string/test-strstr.c (check2): New function.
24700         (test_main): Call check2.
24701
24702         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
24703         and bug-strchr1.
24704         * string/bug-strcasestr1.c (do_test): Moved to ...
24705         * string/test-strcasestr.c (check1): Here.  New function.
24706         (do_one_test): Break out result checking code into ...
24707         (check_result): This.  New function.
24708         (do_one_test): Call check_result.
24709         (test_main): Call check1.
24710         * string/bug-strchr1.c (do_test): Moved to ...
24711         * string/test-strchr.c (check1): Here.  New function.
24712         (do_one_test): Break out result checking code into ...
24713         (check_result): This.  New function.
24714         (do_one_test): Call check_result.
24715         (test_main): Call check1.
24716         * string/bug-strstr1.c (main): Moved to ...
24717         * string/test-strstr.c (check1): Here.  New function.
24718         (do_one_test): Break out result checking code into ...
24719         (check_result): This.  New function.
24720         (do_one_test): Call check_result.
24721         (test_main): Call check1.
24722         * string/bug-strcasestr1.c: Removed.
24723         * string/bug-strchr1.c: Likewise.
24724         * string/bug-strstr1.c: Likewise.
24725
24726         * elf/Makefile (dl-routines): Add hwcaps.
24727         * elf/dl-support.c (_dl_important_hwcaps): Removed.
24728         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
24729         (_dl_important_hwcaps): Moved to ...
24730         * elf/dl-hwcaps.c: Here.  New file.
24731         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
24732
24733         [BZ #14557]
24734         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
24735         if IS_IN_rtld isn't defined.
24736
24737         * elf/dl-support.c (_dl_sysinfo_map): New.
24738         Include "get-dynamic-info.h" and "setup-vdso.h".
24739         (_dl_non_dynamic_init): Call setup_vdso.
24740         * elf/dynamic-link.h: Don't include <assert.h>.
24741         (elf_get_dynamic_info): Moved to ...
24742         * elf/get-dynamic-info.h: Here.  New file.
24743         * elf/dynamic-link.h: Include "get-dynamic-info.h".
24744         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
24745         * elf/setup-vdso.h: Here.  New file.
24746         * elf/rtld.c: Include "setup-vdso.h".
24747         (dl_main): Call setup_vdso.
24748
24749 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
24750
24751         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
24752         creal in comment listing functions tested.  List finite, isinf,
24753         isnan, isless, islessequal, isgreater, isgreaterequal,
24754         islessgreater, isunordered, lgamma_r and pow10 as functions and
24755         macros not tested.  Mention which functions not tested are aliases
24756         for other functions.  Fix typo.  Note that signs of NaNs are not
24757         tested.
24758
24759         * scripts/config.guess: Update from config.git.
24760         * scripts/config.sub: Likewise.
24761
24762 2012-10-04  Roland McGrath  <roland@hack.frob.com>
24763
24764         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
24765         * misc/madvise.c (madvise): Renamed to __madvise.
24766         Make madvise a weak alias.
24767         * include/sys/mman.h: Declare __madvise.
24768         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
24769         * sysdeps/unix/syscalls.list
24770         (madvise): Make __madvise the strong name, and madvise a weak alias.
24771         * sysdeps/unix/sysv/linux/syscalls.list
24772         (madvise, mmap): Remove redundant entries.
24773         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
24774         * malloc/malloc.c (mtrim): Likewise.
24775         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
24776
24777 2012-10-03  Roland McGrath  <roland@hack.frob.com>
24778
24779         * sysdeps/mach/hurd/dl-cache.c: File removed.
24780         * config.h.in (USE_LDCONFIG): New #undef.
24781         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
24782         * configure: Regenerated.
24783         * elf/Makefile (dl-routines): Add dl-cache only under
24784         [$(use-ldconfig) = yes].
24785         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
24786         cache on [USE_LDCONFIG].
24787         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
24788         [USE_LDCONFIG].
24789         * elf/rtld.c (dl_main): Likewise.
24790
24791 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
24792
24793         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
24794         _SC_LEVEL4_CACHE_LINESIZE.
24795
24796 2012-10-03  Roland McGrath  <roland@hack.frob.com>
24797
24798         * sysdeps/unix/bsd/confstr.h: File removed.
24799
24800 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
24801
24802         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
24803         sys/sdt-config.h.
24804
24805 2012-10-02  Roland McGrath  <roland@hack.frob.com>
24806
24807         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
24808         Make 'mapoff' field ElfW(Off) rather than off_t.
24809
24810 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
24811
24812         * nscd/Makefile: Remove nscd-cflags and all its users.
24813         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
24814         (CFLAGS-nonlib): Add compiler flags for nscd modules.
24815
24816         [BZ #10631]
24817         * malloc.c (malloc_printerr): Clarify error message.
24818
24819 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
24820
24821         [BZ #14648]
24822         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24823         Set bit_FMA_Usable if FMA is supported.
24824         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
24825         macro.
24826         (bit_FMA4_Usable): Updated.
24827         (index_FMA_Usable): New macro.
24828         (CPUID_FMA): Likewise
24829         (HAS_FMA): Defined with bit_FMA_Usable.
24830
24831 2012-10-01  Roland McGrath  <roland@hack.frob.com>
24832
24833         * bits/types.h (__swblk_t): Type removed.
24834         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
24835         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
24836         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24837         (__SWBLK_T_TYPE): Likewise.
24838         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
24839         (__SWBLK_T_TYPE): Likewise.
24840         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24841         (__SWBLK_T_TYPE): Likewise.
24842         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24843         (__SWBLK_T_TYPE): Likewise.
24844
24845 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
24846             Honza Horak <hhorak@redhat.com>
24847
24848         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
24849         (xdr_mapname): Use YPMAXMAP as maxsize.
24850         (xdr_peername): Use YPMAXPEER as maxsize.
24851         (xdr_keydat): Use YPAXRECORD as maxsize.
24852         (xdr_valdat): Use YPMAXRECORD as maxsize.
24853
24854 2012-10-01  Roland McGrath  <roland@hack.frob.com>
24855
24856         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
24857
24858         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
24859         * csu/init-first.c: ... here.
24860         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
24861         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
24862         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
24863         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
24864         * sysdeps/i386/init-first.c: File removed.
24865         * sysdeps/sh/init-first.c: File removed.
24866
24867 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
24868
24869         [BZ #14645]
24870         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
24871         if x * y might underflow to zero and z is zero.
24872         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
24873         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24874         * math/libm-test.inc (min_subnorm_value): New variable.
24875         (fma_test): Add more tests.
24876         (fma_test_towardzero): Likewise.
24877         (fma_test_downward): Likewise
24878         (fma_test_upward): Likewise.
24879         (initialize): Set min_subnorm_value.
24880
24881 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
24882
24883         [BZ #14638]
24884         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
24885         0 + 0.
24886         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
24887         mode for addition resulting in exact zero.
24888         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
24889         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
24890         exact 0 + 0.
24891         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
24892         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24893         * math/libm-test.inc (fma_test): Add more tests.
24894         (fma_test_towardzero): New function.
24895         (fma_test_downward): Likewise.
24896         (fma_test_upward): Likewise.
24897         (main): Call the new functions.
24898
24899 2012-09-28  David S. Miller  <davem@davemloft.net>
24900
24901         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
24902
24903 2012-09-28  Roland McGrath  <roland@hack.frob.com>
24904
24905         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
24906         instead of SIGALRM.
24907
24908         * sysdeps/gnu/_G_config.h: Moved to ...
24909         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
24910         * sysdeps/mach/hurd/_G_config.h: Moved to ...
24911         * sysdeps/generic/_G_config.h: ... here.
24912
24913         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
24914
24915         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
24916
24917         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
24918         Conditionalize target on [libnss_test1.so-version].
24919
24920         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
24921
24922         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
24923         (elfobjdir): Move out of conditionals.
24924
24925         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
24926         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
24927         (__nss_lookup_function): Conditionalize label remove_from_tree on
24928         [!DO_STATIC_NSS || SHARED], matching its only use.
24929
24930 2012-09-28  David S. Miller  <davem@davemloft.net>
24931
24932         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
24933         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
24934         file.
24935         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
24936         sysdep_routines.
24937         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
24938         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
24939         when HWCAP_SPARC_CRYPTO is present.
24940
24941 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
24942
24943         * io/tst-mknodat.c: Create a FIFO instead of a socket.
24944
24945 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
24946
24947         [BZ #6530]
24948         * stdio-common/vfprintf.c (process_string_arg): Revert
24949         2000-07-22 change.
24950
24951 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
24952
24953         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
24954         for testcase.
24955         * stdio-common/tst-sprintf.c: Include <locale.h>
24956         (main): Test sprintf's handling of incomplete multibyte
24957         characters.
24958
24959 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
24960
24961         * elf/dl-runtime.c (VERSYMIDX): Removed.
24962         * elf/dl-version.c (VERSYMIDX): Likewise.
24963         * elf/do-rel.h (VERSYMIDX): Likewise.
24964         (VALIDX): Likewise.
24965         * elf/dynamic-link.h (VERSYMIDX): Likewise.
24966         * elf/rtld.c (VALIDX): Likewise.
24967         (ADDRIDX): Likewise.
24968         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
24969         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
24970         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
24971         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
24972         (VALIDX): Likewise.
24973         (ADDRIDX): Likewise.
24974
24975 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
24976
24977         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
24978
24979 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
24980
24981         [BZ #11438]
24982         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
24983         to global scope.
24984         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
24985         addresses are in the same scope as 192.0.2/24.
24986         * posix/gai.conf: Document new scope table defaults.
24987
24988 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24989
24990         [BZ #5298]
24991         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
24992         for ftell.  Compute offsets from write pointers instead.
24993         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24994
24995 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24996
24997         [BZ #14543]
24998         * libio/Makefile (tests): New test case tst-fseek.
24999         * libio/tst-fseek.c: New test case to verify that fseek/ftell
25000         combination works in wide mode.
25001         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
25002         state when the external buffer state changes.
25003
25004 2012-09-27  David S. Miller  <davem@davemloft.net>
25005
25006         [BZ #14376]
25007         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
25008         pass reloc->r_addend in as the 'high' argument to
25009         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
25010
25011         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25012
25013 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
25014
25015         * rt/tst-aio2.c: Include <pthread.h>.
25016         * rt/tst-aio3.c: Likewise.
25017
25018 2012-09-27  Steve Ellcey  <sellcey@mips.com>
25019
25020         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
25021
25022 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
25023
25024         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
25025         contents on [SHARED].
25026
25027 2012-09-26  Marek Polacek  <polacek@redhat.com>
25028
25029         [BZ #14530]
25030         [BZ #13741]
25031         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
25032         for C++ and GCC <4.3 as well as for non GCC compilers.
25033
25034 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
25035
25036         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25037
25038 2012-09-25  Roland McGrath  <roland@hack.frob.com>
25039
25040         * Makefile.in (all, install): Declare with .PHONY.
25041         Reported by Michael Hope <michael.hope@linaro.org>.
25042
25043 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25044
25045         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
25046         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
25047         system header.
25048         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
25049         Likewise.
25050         (sydep_routines): Add the new and the internal functions.
25051         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
25052         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
25053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
25054         (GLIBC_2.17): Add the new function.
25055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
25056         (GLIBC_2.17): Likewise.
25057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
25058         (GLIBC_2.17): Likewise.
25059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
25060         (GLIBC_2.17): Likewise.
25061         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
25062
25063 2012-09-25  Alan Modra  <amodra@gmail.com>
25064
25065         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
25066         Add release barrier before setting once_control to say
25067         initialisation is done.  Add hints on lwarx.  Use macro in
25068         place of isync.
25069         (clear_once_control): Add release barrier.
25070
25071 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
25072
25073         [BZ #13629]
25074         * math/s_clog.c (__clog): Handle more values close to |z| = 1
25075         specially.
25076         * math/s_clog10.c (__clog10): Likewise.
25077         * math/s_clog10f.c (__clog10f): Likewise.
25078         * math/s_clog10l.c (__clog10l): Likewise.
25079         * math/s_clogf.c (__clogf): Likewise.
25080         * math/s_clogl.c (__clogl): Likewise.
25081         * math/Makefile (libm-calls): Add x2y2m1.
25082         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
25083         (__x2y2m1): Likewise.
25084         (__x2y2m1l): Likewise.
25085         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
25086         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
25087         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
25088         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
25089         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
25090         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
25091         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
25092         * sysdeps/i386/fpu/libm-test-ulps: Update.
25093         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25094
25095         [BZ #14621]
25096         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
25097         int as type of variable DEPTH.
25098         (glob): Use size_t instead of int as type of variables NEWCOUNT
25099         and OLD_PATHC.
25100
25101 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25102
25103         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
25104         Add s_sincosf-sse2.
25105         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
25106         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
25107         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
25108         macros for using routine as __sincosf_ia32.
25109         Use macro for function declaration and weak_alias.
25110         * sysdeps/i386/fpu/libm-test-ulps: Update.
25111
25112         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
25113         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25114
25115         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
25116         subnormal argument.
25117         * math/s_cexpf.c (__cexpf): Likewise.
25118         * math/s_csinf.c (__csinf): Likewise.
25119         * math/s_csinhf.c (__csinhf): Likewise.
25120         * math/s_ctanf.c (__ctanf): Likewise.
25121         * math/s_ctanhf.c (__ctanhf): Likewise.
25122         * math/s_ccosh.c (__ccoshf): Likewise.
25123         * math/s_cexp.c (__cexpl): Likewise.
25124         * math/s_csin.c (__csin): Likewise.
25125         * math/s_csinh.c (__csinh): Likewise.
25126         * math/s_ctan.c (__ctan): Likewise.
25127         * math/s_ctanh.c (ctanh): Likewise.
25128         * math/s_ccoshl.c (__ccoshl): Likewise.
25129         * math/s_cexpl.c (__cexpl): Likewise.
25130         * math/s_csinl.c (__csinl): Likewise.
25131         * math/s_csinhl.c (__csinhl): Likewise.
25132         * math/s_ctanl.c (__ctanl): Likewise.
25133         * math/s_ctanhl.c (__ctanhl): Likewise.
25134
25135 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
25136
25137         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
25138         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
25139         (_IO_off_t): Define to __off_t, not _G_off_t.
25140         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
25141         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
25142         (_IO_wint_t): Define to wint_t, not _G_wint_t.
25143         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
25144         type of __dummy and __dummy2 fields.
25145         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
25146         (_G_ssize_t): Likewise.
25147         (_G_off_t): Likewise.
25148         (_G_pid_t): Likewise.
25149         (_G_uid_t): Likewise.
25150         (_G_wchar_t): Likewise.
25151         (_G_wint_t): Likewise.
25152         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
25153         (_G_ssize_t): Likewise.
25154         (_G_off_t): Likewise.
25155         (_G_pid_t): Likewise.
25156         (_G_uid_t): Likewise.
25157         (_G_wchar_t): Likewise.
25158         (_G_wint_t): Likewise.
25159         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
25160         (_G_ssize_t): Likewise.
25161         (_G_off_t): Likewise.
25162         (_G_pid_t): Likewise.
25163         (_G_uid_t): Likewise.
25164         (_G_wchar_t): Likewise.
25165         (_G_wint_t): Likewise.
25166
25167 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
25168
25169         * malloc/arena.c: Include malloc-sysdep.h.
25170         (shrink_heap): Use check_may_shrink_heap to decide if madvise
25171         is sufficient to shrink the heap or an unmap is needed.
25172         * sysdeps/generic/malloc-sysdep.h: New file.  Define
25173         new function check_may_shrink_heap.
25174         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
25175         new function check_may_shrink_heap.
25176
25177 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
25178
25179         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
25180         comments.
25181
25182 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
25183
25184         * catgets/test-gencat.sh: Add "set -e".
25185         * elf/tst-pathopt.sh: Likewise.
25186         * grp/tst_fgetgrent.sh: Likewise.
25187         * iconvdata/run-iconv-test.sh: Likewise.
25188         * intl/tst-gettext.sh: Likewise.
25189         * intl/tst-gettext2.sh: Likewise.
25190         * intl/tst-gettext4.sh: Likewise.
25191         * intl/tst-gettext6.sh: Likewise.
25192         * intl/tst-translit.sh: Likewise.
25193         * io/ftwtest-sh: Likewise.
25194         * libio/test-freopen.sh: Likewise.
25195         * malloc/tst-mtrace.sh: Likewise.
25196         * posix/globtest.sh: Likewise.
25197         * posix/tst-getconf.sh: Likewise.
25198         * posix/wordexp-tst.sh: Likewise.
25199         * stdio-common/tst-printf.sh: Likewise.
25200         * stdio-common/tst-unbputc.sh: Likewise.
25201         * stdlib/tst-fmtmsg.sh: Likewise.
25202         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
25203         * catgets/Makefile: Do not specify -e option when running
25204         testsuite shell scripts.
25205         * elf/Makefile: Likewise.
25206         * grp/Makefile: Likewise.
25207         * iconvdata/Makefile: Likewise.
25208         * intl/Makefile: Likewise.
25209         * io/Makefile: Likewise.
25210         * libio/Makefile: Likewise.
25211         * malloc/Makefile: Likewise.
25212         * posix/Makefile: Likewise.
25213         * stdio-common/Makefile: Likewise.
25214         * stdlib/Makefile: Likewise.
25215         * sysdeps/x86_64/Makefile: Likewise.
25216
25217         * io/ftwtest-sh: Add copyright header.
25218         * posix/globtest.sh: Likewise.
25219         * posix/tst-getconf.sh: Likewise.
25220         * posix/wordexp-tst.sh: Likewise.
25221         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
25222
25223 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
25224
25225         [BZ #13679]
25226         * Makeconfig (+link): Defined as $(+link-static) if
25227         $(build-shared) isn't yes.
25228         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
25229         isn't yes.
25230         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
25231
25232         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
25233
25234         [BZ #14562]
25235         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
25236         new chunk size with MALLOC_ALIGN_MASK.
25237
25238 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
25239
25240         [BZ #5044]
25241         * stdio-common/printf_fphex.c: Include <stdbool.h> and
25242         <rounding-mode.h>.
25243         (__printf_fphex): Determine rounding using get_rounding_mode and
25244         round_away.
25245         * stdio-common/tst-printf-round.c (struct hex_test): New
25246         structure.
25247         (hex_tests): New variable.
25248         (test_hex_in_one_mode): New function.
25249         (do_test): Also run tests for hex float output.
25250
25251 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
25252
25253         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
25254         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
25255         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
25256         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
25257         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
25258         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
25259         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
25260         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
25261
25262 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
25263
25264         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
25265         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
25266         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
25267         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
25268
25269 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
25270
25271         [BZ #14579]
25272         * elf/rtld.c (dl_main): Limit the check for self loading to normal
25273         mode only.
25274         * elf/tst-rtld-load-self.sh: New test.
25275         * elf/Makefile: Run it.
25276
25277 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
25278
25279         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
25280         (tst-writev-ENV): Remove.
25281         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
25282
25283 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
25284
25285         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
25286
25287 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
25288
25289         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
25290         unconditional.
25291         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
25292         Likewise.
25293         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
25294         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
25295         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
25296         Likewise.
25297
25298 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
25299
25300         [BZ #14587]
25301         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
25302         * config.make.in (have-cpp-asm-debuginfo): Removed.
25303         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
25304         * configure: Regenerated.
25305
25306 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
25307
25308         [BZ #5044]
25309         * stdio-common/printf_fp.c: Include <stdbool.h> and
25310         <rounding-mode.h>.
25311         (___printf_fp): Determine rounding using get_rounding_mode and
25312         round_away.
25313         * stdio-common/tst-printf-round.c: New file.
25314         * stdio-common/Makefile (tests): Add tst-printf-round.
25315         (link-libm): New variable.
25316         ($(objpfx)tst-printf-round): Depend in $(link-libm).
25317
25318 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
25319
25320         [BZ #14576]
25321         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
25322         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
25323         Likewise.
25324         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
25325         Likewise.
25326
25327 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
25328
25329         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
25330         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
25331         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
25332         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
25333
25334 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
25335
25336         [BZ #14518]
25337         * include/rounding-mode.h: New file.
25338         * sysdeps/generic/get-rounding-mode.h: Likewise.
25339         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
25340         * stdlib/strtod_l.c: Include <rounding-mode.h>.
25341         (MAX_VALUE): New macro.
25342         (MIN_VALUE): Likewise.
25343         (overflow_value): New function.
25344         (underflow_value): Likewise.
25345         (round_and_return): Use overflow_value and underflow_value to
25346         determine return values in overflow and underflow cases.  Use
25347         round_away to determine rounding depending on rounding mode.
25348         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
25349         determine return values in overflow and underflow cases.
25350         * stdlib/tst-strtod-round.c: Include <fenv.h>.
25351         (struct test_results): New structure.
25352         (struct test): Use struct test_results to store expected results
25353         for all rounding modes.
25354         (TEST): Include expected results for all rounding modes.
25355         (test_in_one_mode): New function.
25356         (do_test): Use test_in_one_mode to compute and check results.
25357         Check results for all rounding modes.
25358         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
25359         $(link-libm).
25360
25361 2012-12-09  Allan McRae  <allan@archlinux.org>
25362
25363         * sysdeps/i386/fpu/libm-test-ulps: Update
25364
25365 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
25366
25367         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
25368         (_G_int32_t): Likewise.
25369         (_G_uint16_t): Likewise.
25370         (_G_uint32_t): Likewise.
25371         (_G_HAVE_BOOL): Likewise.
25372         (_G_HAVE_ATEXIT): Likewise.
25373         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
25374         (_G_HAVE_IO_FILE_OPEN): Likewise.
25375         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
25376         (_G_int32_t): Likewise.
25377         (_G_uint16_t): Likewise.
25378         (_G_uint32_t): Likewise.
25379         (_G_HAVE_BOOL): Likewise.
25380         (_G_HAVE_ATEXIT): Likewise.
25381         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
25382         (_G_HAVE_IO_FILE_OPEN): Likewise.
25383         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
25384         (_G_int32_t): Likewise.
25385         (_G_uint16_t): Likewise.
25386         (_G_uint32_t): Likewise.
25387         (_G_HAVE_BOOL): Likewise.
25388         (_G_HAVE_ATEXIT): Likewise.
25389         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
25390         (_G_HAVE_IO_FILE_OPEN): Likewise.
25391
25392 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
25393
25394         * csu/libc-tls.c: Update copyright years.
25395
25396 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
25397
25398         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
25399         [!_G_USING_THUNKS]: Remove conditional code.
25400         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
25401         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
25402
25403         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
25404         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
25405         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
25406         (_G_VTABLE_LABEL_PREFIX): Likewise.
25407         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
25408         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
25409         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
25410         (_G_VTABLE_LABEL_PREFIX): Likewise.
25411         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
25412         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
25413         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
25414         (_G_VTABLE_LABEL_PREFIX): Likewise.
25415         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
25416
25417 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
25418
25419         * libio/Makefile: Include ../Makeconfig before tests.
25420         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
25421         only if $(build-shared) is yes.
25422
25423         * iconv/gconv_db.c: Update copyright years.
25424
25425 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25426
25427         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
25428         unwind info if defined PIC. Fix special cases description.
25429         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
25430
25431         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
25432         DP_HI_MASK entry.
25433         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
25434
25435 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
25436
25437         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
25438
25439         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
25440         is NULL.
25441
25442         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
25443         (LDLIBS-tst-chk4): This.
25444         (LDFLAGS-tst-chk5): Renamed to ...
25445         (LDLIBS-tst-chk5): This.
25446         (LDFLAGS-tst-chk6): Renamed to ...
25447         (LDLIBS-tst-chk6): This.
25448         (LDFLAGS-tst-lfschk4): Renamed to ...
25449         (LDLIBS-tst-lfschk4): This.
25450         (LDFLAGS-tst-lfschk5): Renamed to ...
25451         (LDLIBS-tst-lfschk5): This.
25452         (LDFLAGS-tst-lfschk6): Renamed to ...
25453         (LDLIBS-tst-lfschk6): This.
25454
25455         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
25456         on $(common-objpfx)soversions.mk.
25457
25458 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
25459
25460         [BZ #10014]
25461         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
25462         example host name.
25463
25464 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
25465
25466         * malloc/arena.c (arena_get_retry): New function that gets
25467         another arena for the caller to try its request on.
25468         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
25469         current arena cannot fulfill the request.
25470         (__libc_memalign): Likewise.
25471         (__libc_memalign): Likewise.
25472         (__libc_pvalloc): Likewise.
25473         (__libc_calloc): Likewise.
25474
25475 2012-09-05  John Tobey  <john.tobey@gmail.com>
25476
25477         [BZ #13542]
25478         * manual/arith.texi (Operations on Complex): Fix description
25479         of carg branch cut.
25480
25481 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
25482
25483         [BZ #10014]
25484         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
25485         host name.
25486
25487         [BZ #10038]
25488         * manual/memory.texi (Memory): Make order of menu items match
25489         order of sections.
25490
25491 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
25492
25493         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
25494         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
25495         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
25496
25497 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
25498
25499         * csu/libc-tls.c (static_dtv): Renamed to ...
25500         (_dl_static_dtv): This.  Make it global.
25501         (_dl_initial_dtv): Removed.
25502         (__libc_setup_tls): Updated.
25503         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
25504         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
25505         DL_INITIAL_DTV.
25506
25507 2012-09-06  Petr Machata  <pmachata@redhat.com>
25508
25509         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
25510         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
25511         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
25512         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
25513
25514 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
25515
25516         [BZ #14545]
25517         * csu/libc-tls.c (_dl_initial_dtv): New variable.
25518         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
25519         freeing dtv[-1].
25520
25521 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
25522
25523         [BZ #14544]
25524         * Makeconfig (link-static-before-libc): Replace $(+prector)
25525         with $(+prectorT).
25526         (link-static-after-libc): Replace $(+postctor) with
25527         $(+postctorT).
25528         (link-bounded): Replace $(+prector)/$(+postctor) with
25529         $(+prectorT)/$(+postctorT).
25530         (+prectorT): New macro.
25531         (+postctorT): Likewise.
25532
25533 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
25534
25535         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
25536         (round_str): Handle values above the maximum for IBM long double
25537         as inexact.
25538         * stdlib/tst-strtod-round.c (tests): Regenerated.
25539
25540 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25541
25542         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
25543         assembler flag.
25544         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
25545         zarch_nohighgprs around the zarch optimized routines.
25546         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
25547         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
25548         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
25549         for zarch.
25550
25551 2012-09-05  David S. Miller  <davem@davemloft.net>
25552
25553         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25554
25555         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
25556         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
25557         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
25558         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
25559         entries.
25560
25561 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
25562
25563         * malloc/arena.c: Fold copyright years.
25564         * malloc/mcheck.c, malloc/memusage.c: Likewise.
25565
25566 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
25567
25568         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
25569
25570 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
25571
25572         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
25573
25574 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
25575
25576         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
25577         change internal state upon failure.
25578
25579 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
25580
25581         * malloc/mcheck.c (mcheck_check_all): Fix typo.
25582         * malloc/memusage.c (mmap): Likewise.
25583         (mmap64, mremap): Likewise.  Adjust name in comment.
25584
25585 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
25586
25587         * libio/fileops.c: Fix typos in comments.
25588         * libio/oldfileops.c: Likewise.
25589         * libio/wfileops.c: Likewise.
25590
25591 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
25592
25593         [BZ #1349]
25594         * malloc/Makefile (tests): Add tst-malloc-usable test case.
25595         (tst-malloc-usable-ENV): Set environment for test case.
25596         * malloc/hooks.c (malloc_check_get_size): New function to get
25597         requested size.
25598         * malloc/malloc.c (musable): Use malloc_check_get_size.
25599         * malloc/tst-malloc-usable.c: New test case.
25600
25601 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
25602
25603         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
25604
25605 2012-09-05  Allan McRae  <allan@archlinux.org>
25606
25607         [BZ #13966]
25608         * configure.in (CXX_SYSINCLUDES): Use compiler output to
25609         determine header location.
25610         * configure: Regenerated.
25611
25612 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
25613
25614         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
25615         float format.
25616         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
25617         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
25618         format.
25619         (test): Regenerate.
25620
25621 2012-09-04  David S. Miller  <davem@davemloft.net>
25622
25623         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
25624         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
25625         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
25626
25627 2012-09-04  Florian Weimer  <fweimer@redhat.com>
25628
25629         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
25630         failures.
25631
25632         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
25633
25634 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
25635
25636         [BZ #9914]
25637         * libio/iogetdelim.c: Include <limits.h>.
25638         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
25639         + len + 1 would overflow.
25640
25641 2012-09-03  Andreas Jaeger  <aj@suse.de>
25642
25643         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25644         * sysdeps/i386/fpu/libm-test-ulps: Update.
25645
25646 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25647
25648         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
25649         Add s_sinf-sse2, s_conf-sse2.
25650
25651         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
25652         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
25653         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
25654         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
25655
25656         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
25657         for using routine as __sinf_ia32.
25658         Use macro for function declaration and weak_alias.
25659         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
25660         for using routine as __cosf_ia32.
25661         Use macro for function declaration and weak_alias.
25662
25663         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
25664         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
25665
25666         * sysdeps/x86_64/fpu/s_sinf.S: New file.
25667         * sysdeps/x86_64/fpu/s_cosf.S: New file.
25668         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25669
25670         * math/libm-test.inc (cos_test): Add more test cases.
25671         (sin_test): Likewise.
25672         (sincos_test): Likewise.
25673
25674 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25675
25676         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
25677         (IFUNC_RESOLVE): Make pointers to the specialized implementations
25678         hidden.
25679         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
25680
25681 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
25682
25683         [BZ #14538]
25684         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
25685         first element of the GOT.
25686         (elf_machine_load_address): Return the difference between
25687         the runtime address of _DYNAMIC and elf_machine_dynamic ().
25688
25689 2012-09-01  Allan McRae  <allan@archlinux.org>
25690
25691         [BZ #13412]
25692         * configure.in (AWK): Require gawk version 3.0 or later.
25693         * configure: Regenerated.
25694
25695 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
25696
25697         * sysdeps/unix/sysv/linux/kernel-features.h
25698         (__ASSUME_POSIX_CPU_TIMERS): Remove.
25699         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
25700         [__NR_clock_getres]: Make code unconditional.
25701         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
25702         (clock_getcpuclockid): Remove code left unreachable by removal of
25703         conditionals.
25704         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
25705         code unconditional.
25706         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
25707         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
25708         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
25709         Make code unconditional.
25710         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
25711         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
25712         * sysdeps/unix/sysv/linux/clock_settime.c
25713         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
25714         conditional code.
25715         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
25716         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
25717
25718 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
25719
25720         [BZ #14476]
25721         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
25722         scripts/test-installation.pl.
25723
25724         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
25725         and $ld_so_version if it is set.
25726
25727 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
25728
25729         [BZ #14516]
25730         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
25731         failure if reading from procfs failed.
25732         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
25733
25734 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
25735
25736         * sysdeps/unix/sysv/linux/kernel-features.h
25737         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
25738         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
25739         Remove conditional code.
25740         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
25741         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
25742         Remove conditional code.
25743         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
25744         * sysdeps/unix/sysv/linux/i386/fxstat.c
25745         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
25746         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
25747         * sysdeps/unix/sysv/linux/i386/fxstatat.c
25748         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
25749         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
25750         * sysdeps/unix/sysv/linux/i386/lxstat.c
25751         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
25752         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
25753         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
25754         Remove conditional code.
25755         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
25756         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
25757         Remove conditional code.
25758         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
25759         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
25760         <kernel-features.h>.
25761         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
25762         Remove.
25763         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
25764         Remove conditional code.
25765         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
25766         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
25767         Remove conditional.
25768
25769 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
25770
25771         [BZ #5400]
25772         * NEWS: Add fixed bug number.
25773
25774 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
25775
25776         [BZ #14519]
25777         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
25778         underflowing exponent in case of negative sign.
25779         * stdlib/tst-strtod-round-data: Add more tests.
25780         * stdlib/tst-strtod-round.c (tests): Regenerated.
25781
25782         [BZ #3479]
25783         * stdlib/strtod_l.c (NDIG): Remove.
25784         (HEXNDIG): Likewise.
25785         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
25786         smallest representable value.
25787         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
25788         lie within an exact representation of 1/2 ulp of the result.
25789         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
25790         unconditionally.
25791         (TENS_P9_IDX): Define unconditionally.
25792         (TENS_P9_SIZE): Likewise.
25793         (TENS_P10_IDX): Likewise.
25794         (TENS_P10_SIZE): Likewise.
25795         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
25796         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
25797         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
25798         entries for 10^2^13 and 10^2^14.
25799         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
25800         (TENS_P13_IDX): Define.
25801         (TENS_P13_SIZE): Likewise.
25802         (TENS_P14_IDX): Likewise.
25803         (TENS_P14_SIZE): Likewise.
25804         (_fpioconst_pow10): Change array size to
25805         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
25806         unconditional.
25807         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
25808         1024]: Add entries for 10^2^13 and 10^2^14.
25809         [LAST_POW10 > _LAST_POW10]: Remove #error.
25810         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
25811         (_fpioconst_pow10): Change array size to
25812         FPIOCONST_POW10_ARRAY_SIZE.
25813         * stdlib/gen-fpioconst.c: New file.
25814         * stdlib/gen-tst-strtod-round.c: Likewise.
25815         * stdlib/tst-strtod-round-data: Likewise.
25816         * stdlib/tst-strtod-round.c: Likewise.
25817         * stdlib/Makefile (tests): Add tst-strtod-round.
25818
25819         [BZ #14459]
25820         * stdlib/strtod_l.c: Include <stdint.h>.
25821         (NDEBUG): Do not define.
25822         (round_and_return): Change EXPONENT parameter to type intmax_t.
25823         Rearrange calculations to avoid internal overflow possibilities.
25824         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
25825         Rearrange calculations to avoid internal overflow possibilities.
25826         Assert that number fits inside MPNSIZE limbs.
25827         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
25828         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
25829         calculations and add assertions to avoid internal overflow
25830         possibilities.  Add casts to avoid signed/unsigned operations.
25831         * stdlib/tst-strtod-overflow.c: New file.
25832         * stdlib/Makefile (tests): Add tst-strtod-overflow.
25833
25834 2012-08-25  Marek Polacek  <polacek@redhat.com>
25835
25836         * time/time.h: Fix some typos in comments.
25837
25838 2012-08-23  Roland McGrath  <roland@hack.frob.com>
25839
25840         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
25841         * posix/tst-rfc3484-2.c: Likewise.
25842         * posix/tst-rfc3484-3.c: Likewise.
25843
25844 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
25845
25846         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
25847         (EF_ARM_ABI_FLOAT_HARD): Likewise.
25848
25849 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
25850
25851         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
25852         #include of fxstatat64.c.
25853
25854 2012-08-22  Roland McGrath  <roland@hack.frob.com>
25855
25856         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
25857         * shadow/getspent_r.c: Likewise.
25858         * shadow/getspnam.c: Likewise.
25859         * shadow/getspnam_r.c: Likewise.
25860         * gshadow/getsgent.c: Likewise.
25861         * gshadow/getsgent_r.c: Likewise.
25862         * gshadow/getsgnam.c: Likewise.
25863         * gshadow/getsgnam_r.c: Likewise.
25864         * inet/getnetbyad.c: Likewise.
25865         * inet/getnetbyad_r.c: Likewise.
25866         * inet/getnetbynm.c: Likewise.
25867         * inet/getnetbynm_r.c: Likewise.
25868         * inet/getnetent.c: Likewise.
25869         * inet/getnetent_r.c: Likewise.
25870         * inet/getproto.c: Likewise.
25871         * inet/getproto_r.c: Likewise.
25872         * inet/getprtent.c: Likewise.
25873         * inet/getprtent_r.c: Likewise.
25874         * inet/getprtname.c: Likewise.
25875         * inet/getprtname_r.c: Likewise.
25876         * inet/getrpcbyname.c: Likewise.
25877         * inet/getrpcbyname_r.c: Likewise.
25878         * inet/getrpcbynumber.c: Likewise.
25879         * inet/getrpcbynumber_r.c: Likewise.
25880         * inet/getrpcent.c: Likewise.
25881         * inet/getrpcent_r.c: Likewise.
25882         * inet/getaliasent.c: Likewise.
25883         * inet/getaliasent_r.c: Likewise.
25884         * inet/getaliasname.c: Likewise.
25885         * inet/getaliasname_r.c: Likewise.
25886         * nscd/getgrgid_r.c: Likewise.
25887         * nscd/getgrnam_r.c: Likewise.
25888         * nscd/gethstbyad_r.c: Likewise.
25889         * nscd/gethstbynm3_r.c: Likewise.
25890         * nscd/getpwnam_r.c: Likewise.
25891         * nscd/getpwuid_r.c: Likewise.
25892         * nscd/getsrvbynm_r.c: Likewise.
25893         * nscd/getsrvbypt_r.c: Likewise.
25894         * nscd/gai.c: Likewise.
25895
25896         * configure.in (build_nscd): New substituted variable, set
25897         by --disable-build-nscd and defaults to $use_nscd.
25898         * configure: Regenerated.
25899         * config.make.in (build-nscd): New substituted variable.
25900         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
25901         Change conditional to require [$(build-nscd) = yes] as well.
25902         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
25903
25904         [BZ# 13696]
25905         * configure.in (use_nscd): New substituted variable, set by
25906         --disable-nscd.  If enabled, define USE_NSCD.
25907         * configure: Regenerated.
25908         * config.h.in: Add USE_NSCD.
25909         * config.make.in (use-nscd): New substituted variable.
25910         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
25911         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
25912         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
25913         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
25914         (CFLAGS-getgrnam_r.c): Likewise.
25915         (CFLAGS-initgroups.c): Likewise.
25916         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
25917         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
25918         Variables removed.
25919         * inet/getnetgrent_r.c
25920         (nscd_setnetgrent): New function, broken out of ...
25921         (setnetgrent): ... here.  Call it.
25922         (innetgr): Conditionalize nscd bits on [USE_NSCD].
25923         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
25924         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
25925         * nscd/Makefile (routines, aux): Move definitions after include of
25926         Makeconfig.  Conditionalize on [$(use-nscd) != no].
25927         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
25928         Conditionalize on [USE_NSCD].
25929         (is_nscd, nscd_init_cb): Likewise.
25930         (nss_load_library): Conditionalize init callback on [USE_NSCD].
25931         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
25932         * nss/nss_db/db-init.c: Likewise.
25933         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
25934         [USE_NSCD].
25935         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
25936         (make_request): Use it.
25937         (cache_valid_p): New function.
25938         (__check_pf): Use it.
25939         * NEWS: Add item for --disable-nscd.
25940
25941 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
25942
25943         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
25944         to support sed >= 4.2.1-20-ga9bf076.
25945         * configure: Regenerated.
25946
25947 2012-08-22  Roland McGrath  <roland@hack.frob.com>
25948
25949         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
25950         Conditionalize whole body on [IREL].
25951
25952 2012-08-22  Jeff Law <law@redhat.com>
25953
25954         [BZ #14505]
25955         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
25956         if the family is PF_UNSPEC.
25957
25958 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
25959
25960         * Makerules (lib-version): Rename from V.
25961         (install-lib-nosubdir): Change V to lib-version.
25962
25963 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
25964
25965         [BZ #14252]
25966         * powerpc32/power6/wcschr.c: New file.
25967         * powerpc32/power6/wcscpy.c: New file.
25968         * powerpc32/power6/wcsrchr.c: New file.
25969         * powerpc64/power6/wcschr.c: New file.
25970         * powerpc64/power6/wcscpy.c: New file.
25971         * powerpc64/power6/wcsrchr.c: New file.
25972
25973 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
25974
25975         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
25976         (two_way_short_needle): Use it.
25977         * string/strstr.c (AVAILABLE1_USES_J): Define.
25978         * string/strcasestr.c: Likewise.
25979
25980         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
25981         array references.
25982         * string/strcasestr.c (TOLOWER): Make side-effect safe.
25983
25984         [BZ #11607]
25985         * NEWS: Add an entry.
25986         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
25987         define their defaults.
25988         (two_way_short_needle): Detect end-of-string on-the-fly.
25989         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
25990         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
25991         * string/bug-strcasestr1.c: New test.
25992         * string/Makefile: Run it.
25993
25994 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
25995
25996         [BZ #11607]
25997         * string/str-two-way.h (two_way_short_needle): Optimize matching of
25998         the first character.
25999
26000 2012-08-21  Roland McGrath  <roland@hack.frob.com>
26001
26002         * csu/elf-init.c (__libc_csu_irel): Function removed.
26003         * csu/libc-start.c (apply_irel): New function.
26004         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
26005
26006 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
26007
26008         * sysdeps/unix/sysv/linux/kernel-features.h
26009         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
26010         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
26011         <kernel-features.h>.
26012         [__NR_fadvise64_64]: Make code unconditional.
26013         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
26014         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
26015         !__NR_fadvise64_64)]: Likewise.
26016         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
26017         !__NR_fadvise64_64))]: Likewise.
26018         [__NR_fadvise64]: Make code unconditional.
26019         [!__NR_fadvise64]: Remove conditional code.
26020         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
26021         <kernel-features.h>.
26022         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
26023         unconditional.
26024         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
26025         conditional code.
26026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
26027         not include <kernel-features.h>.
26028         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
26029         unconditional.
26030         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
26031         conditional code.
26032         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
26033         include <kernel-features.h>.
26034         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
26035         unconditional.
26036         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
26037         conditional code.
26038
26039 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
26040
26041         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
26042         slight instruction rearrangements per scrollpipe analysis.
26043         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
26044
26045 2012-08-20  Roland McGrath  <roland@hack.frob.com>
26046
26047         * manual/syslog.texi (syslog; vsyslog, closelog):
26048         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
26049         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
26050
26051         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
26052         DSOCAPS to match condition on defining it.
26053
26054 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
26055
26056         * sysdeps/unix/sysv/linux/kernel-features.h
26057         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
26058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
26059         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
26060         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
26061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
26062         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
26063         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
26064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
26065         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
26066         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
26067
26068         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
26069         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
26070
26071         * sysdeps/unix/sysv/linux/kernel-features.h
26072         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
26073         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
26074         unconditional.
26075         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26076         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
26077         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
26078         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26079         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
26080         Make code unconditional.
26081         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26082         (__mmap64) [!__NR_mmap2]: Likewise.
26083         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
26084         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
26085         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26086         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
26087         [__NR_mmap2]: Make code unconditional.
26088         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26089         (__mmap64) [!__NR_mmap2]: Likewise.
26090
26091 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26092
26093         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
26094
26095 2012-08-18  Andreas Jaeger  <aj@suse.de>
26096
26097         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
26098
26099 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
26100
26101         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
26102         * include/unistd.h (__have_sock_cloexec): Likewise.
26103         (__have_pipe2): Likewise.
26104         (__have_dup3): Likewise.
26105
26106 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
26107
26108         [BZ #9685]
26109         * include/unistd.h (__have_pipe2): Change define into an extern int.
26110         (__have_dup3): Likewise.
26111         * socket/have_sock_cloexec.c: Include fcntl.h.
26112         (__have_pipe2): New variable.
26113         (__have_dup3): Likewise.
26114
26115 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
26116
26117         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
26118
26119 2012-08-17  Marek Polacek  <polacek@redhat.com>
26120
26121         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
26122         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
26123
26124 2012-08-17  Roland McGrath  <roland@hack.frob.com>
26125
26126         * configure.in: Add AC_SUBST for sysheaders.
26127         * configure: Regenerated.
26128         * config.make.in (sysheaders): New substituted variable.
26129
26130         * sysdeps/unix/mkfifo.c: Moved ...
26131         * sysdeps/posix/mkfifo.c: ... here.
26132         * sysdeps/unix/mkfifoat.c: Moved ...
26133         * sysdeps/posix/mkfifoat.c: ... here.
26134
26135         * sysdeps/unix/utime.c: Moved ...
26136         * sysdeps/posix/utime.c: ... here.
26137
26138         * sysdeps/unix/time.c: Moved ...
26139         * sysdeps/posix/time.c: ... here.
26140         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
26141         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
26142
26143         * sysdeps/unix/nice.c: Moved ...
26144         * sysdeps/posix/nice.c: ... here.
26145
26146         * sysdeps/unix/alarm.c: Moved ...
26147         * sysdeps/posix/alarm.c: ... here.
26148
26149         * intl/Makefile ($(codeset_mo)): Depend on the input file.
26150
26151 2012-08-17  Jeff Law <law@redhat.com>
26152
26153         * intl/Makefile (codeset_mo): New variable.
26154         ($(codeset_mo)): New target.
26155         (tst-codeset.out): Depend on that.  Remove explicit rule.
26156         (tst-gettext3.out, tst-gettext5.out): Likewise.
26157         (LOCPATH-ENV, tst-codeset-ENV): New variables.
26158         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
26159         * intl/tst-codeset.sh: Remove.
26160         * intl/tst-gettext3.sh: Likewise.
26161         * intl/tst-gettext5.sh: Likewise.
26162
26163 2012-08-17  Roland McGrath  <roland@hack.frob.com>
26164
26165         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
26166         * sysdeps/unix/syscalls.list: ... here.
26167
26168         * sysdeps/posix/getaddrinfo.c
26169         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
26170         (gaiconf_init, gaiconf_reload): Use them.
26171         [!_STATBUF_ST_NSEC]
26172         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
26173         Define using time_t rather than struct timespec.
26174
26175         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
26176         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
26177         Macros removed.
26178         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
26179         [!NO_THREADS].
26180         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
26181         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
26182         Likewise.
26183
26184         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
26185         __libc_cleanup_push argument.
26186
26187         * bits/param.h: New file.
26188         * misc/sys/param.h: New file.
26189         * include/sys/param.h: New file.
26190         * misc/Makefile (headers): Add bits/param.h.
26191         * sysdeps/generic/sys/param.h: File removed.
26192         * sysdeps/unix/sysv/linux/bits/param.h: New file.
26193         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
26194         * sysdeps/mach/hurd/bits/param.h: New file.
26195         * sysdeps/mach/hurd/sys/param.h: File removed.
26196
26197         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
26198         last change.
26199
26200         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
26201         [_IO_MTSAFE_IO].
26202         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
26203         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
26204         New macros.
26205
26206         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
26207         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
26208         rather than -D_IO_MTSAFE_IO conditionally.
26209         * stdio-common/Makefile (CPPFLAGS): Likewise.
26210         * wcsmbs/Makefile (CPPFLAGS): Likewise.
26211         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
26212         Use $(libio-mtsafe).
26213         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
26214         of -D_IO_MTSAFE_IO.
26215         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
26216         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
26217         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
26218         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
26219         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
26220         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
26221         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
26222         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
26223         (CFLAGS-fread_u_chk.c): Likewise.
26224         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
26225         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
26226         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
26227         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
26228         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
26229         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
26230         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
26231         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
26232         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
26233
26234         * libio/Makefile: Test [$(libc-reentrant) = yes]
26235         instead of [$(filter %REENTRANT, $(defines)) nonempty].
26236
26237         * Makeconfig
26238         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
26239         * sysdeps/pthread/configure: File removed.
26240         * sysdeps/pthread/Makeconfig: New file.
26241         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
26242         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
26243
26244 2012-08-16  Gary Benson  <gbenson@redhat.com>
26245
26246         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
26247         unmapping the first object in a namespace.
26248
26249 2012-08-16  Roland McGrath  <roland@hack.frob.com>
26250
26251         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
26252         (__internal_setnetgrent): ... this.  Add internal_function to
26253         definition.  Add libc_hidden_def.
26254         (setnetgrent): Update caller.
26255         (internal_endnetgrent): Renamed to ...
26256         (__internal_endnetgrent): ... this.  Add internal_function to
26257         definition.  Add libc_hidden_def.
26258         (endnetgrent): Update caller.
26259         (internal_getnetgrent_r): Renamed to ...
26260         (__internal_getnetgrent_r): ... this.  Add internal_function to
26261         definition.  Add libc_hidden_def.
26262         (__getnetgrent_r): Update caller.
26263         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
26264
26265 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
26266
26267         * stdlib/longlong.h: Update from GCC.
26268
26269 2012-08-16  Roland McGrath  <roland@hack.frob.com>
26270
26271         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
26272         on _QL, which is set by umul_ppmm but never used.
26273         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
26274         variables, which are set by GMP macros but never used.
26275         * stdio-common/_itowa.c (_itowa): Likewise.
26276         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
26277         * stdlib/mod_1.c (mpn_mod_1): Likewise.
26278
26279 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
26280
26281         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
26282         struct La_sh_regs is not constant.
26283         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
26284         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
26285         and struct La_sparc64_regs are not constant.
26286
26287 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
26288
26289         * sysdeps/unix/sysv/linux/kernel-features.h
26290         (__ASSUME_POSIX_TIMERS): Remove.
26291         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
26292         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
26293         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
26294         Make code unconditional.
26295         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
26296         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
26297         Make code unconditional.
26298         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
26299         * sysdeps/unix/sysv/linux/clock_nanosleep.c
26300         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
26301         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
26302         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
26303         Make code unconditional.
26304         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
26305         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
26306         (__libc_missing_posix_timers): Remove.
26307
26308 2012-08-15  Roland McGrath  <roland@hack.frob.com>
26309
26310         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
26311         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
26312
26313         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
26314
26315         * elf/dl-sym.c: Include <stdlib.h>.
26316
26317         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
26318         constants, which avoids warnings in 32-bit builds.
26319
26320         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
26321         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
26322
26323         * misc/lseek.c: File moved to ...
26324         * io/lseek.c: ... here.
26325
26326         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
26327
26328         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
26329         shifting LEN more than 31 bits at once.
26330
26331 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26332
26333         [BZ #14195]
26334         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
26335         segmentation fault for a case of two empty input strings.
26336         * string/test-strncasecmp.c (check1): Renamed to...
26337         (bz12205): ...this.
26338         (bz14195): Add new testcase for two empty input strings and N > 0.
26339         (test_main): Call new testcase, adapt for renamed function.
26340
26341 2012-08-15  Andreas Jaeger  <aj@suse.de>
26342
26343         [BZ #14090]
26344         * crypt/md5test2.c: New test, based on test supplied by Serge
26345         Belyshev <belyshev@depni.sinp.msu.ru>.
26346         * crypt/Makefile (xtests): Add md5test-giant..
26347         * crypt/Makefile ($(objpfx)md5test-giant): Add.
26348
26349 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
26350
26351         [BZ #14090]
26352         * crypt/md5.c (md5_process_block): Don't assume the buffer
26353         length is less than 2**32.
26354         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
26355         length is less than 2**64.
26356
26357 2012-08-15  Roland McGrath  <roland@hack.frob.com>
26358
26359         * string/str-two-way.h: Include <sys/param.h>.
26360         (MAX): Macro removed.
26361
26362         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
26363         Move #define and #undef of memmove to just before and after
26364         including <string.h>.
26365
26366         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
26367         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
26368         and after including <string.h>.  Move declarations of
26369         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
26370         to before #include "string/memmove.c".
26371
26372         * include/dirent.h: Declare __getdirentries.
26373
26374         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
26375         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
26376
26377 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
26378
26379         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
26380         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
26381         * sysdeps/i386/configure: Regenerated.
26382         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
26383         STABS_CURRENT_FILE, and STABS_FUN.
26384         (END): Remove call to STABS_FUN_END.
26385         (STABS_CURRENT_FILE1): Delete.
26386         (STABS_CURRENT_FILE): Likewise.
26387         (STABS_FUN): Likewise.
26388         (STABS_FUN_END): Likewise.
26389         (STABS_FUN2): Likewise.
26390         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
26391         * sysdeps/x86_64/configure: Regenerated.
26392
26393 2012-08-14  Roland McGrath  <roland@hack.frob.com>
26394
26395         * elf/dl-open.c: Include <atomic.h>.
26396         * elf/dl-lookup.c: Likewise.
26397
26398 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
26399
26400         * sysdeps/unix/sysv/linux/kernel-features.h
26401         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
26402         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
26403         unconditionally.
26404         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
26405         unconditionally.
26406         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
26407         condition on __ASSUME_CLONE_THREAD_FLAGS.
26408
26409 2012-08-14  Andreas Jaeger  <aj@suse.de>
26410
26411         * sysdeps/i386/fpu/libm-test-ulps: Update.
26412
26413 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
26414
26415         * include/atomic.h (atomic_exchange_and_add): Split into ...
26416         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
26417         New atomic macros.
26418
26419 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
26420
26421         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26422
26423 2012-08-13  Jeff Law <law@redhat.com>
26424
26425         * manual/stdio.texi (snprintf): Clarify handling of the trailing
26426         null byte in the output string.
26427
26428 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
26429
26430         * sysdeps/unix/sysv/linux/kernel-features.h
26431         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
26432         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
26433         (__ASSUME_ARG_MAX_STACK_BASED): Define.
26434         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
26435         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
26436         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
26437         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
26438
26439 2012-08-09  Jeff Law <law@redhat.com>
26440
26441         [BZ #13939]
26442         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
26443         When avoid_arena is set, don't retry in the that arena.  Pick the
26444         next one, whatever it might be.
26445         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
26446         (arena_lock): Pass in new parameter to arena_get2.
26447         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
26448         arena_get2.
26449         (__libc_malloc): Unify retrying after main arena failure with
26450         __libc_memalign version.
26451         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
26452
26453 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
26454
26455         [BZ #14166]
26456         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
26457         to __redirect_strstr.
26458         (__strstr_sse42): Use typeof __redirect_strstr.
26459         (__strstr_ia32): Likewise.
26460         (__libc_strstr): New prototype.
26461         (strstr): Renamed to ...
26462         (__libc_strstr): This.
26463         (strstr): New strong alias of __libc_strstr.
26464         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
26465         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
26466         __redirect_time.
26467         Include <time.h>.
26468         (__libc_time): New prototype.
26469         (time_ifunc): Replace time with __libc_time.
26470         (time): New strong alias and hidden definition of __libc_time.
26471         (__GI_time): Remove strong alias.
26472         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
26473         Include <stddef.h>.
26474         (memmove): Redefined to __redirect_memmove.
26475         (__memmove_sse2): Use typeof __redirect_memmove.
26476         (__memmove_ssse3): Likewise.
26477         (__memmove_ssse3_back): Likewise.
26478         (__libc_memmove): New prototype.
26479         (memmove): Renamed to ...
26480         (__libc_memmove): This.
26481         (memmove): New strong alias of __libc_memmove.
26482
26483 2012-08-08  Mark Salter  <msalter@redhat.com>
26484
26485         * elf/elf.h
26486         (R_MN10300_TLS_GD): Define.
26487         (R_MN10300_TLS_LD): Likewise.
26488         (R_MN10300_TLS_LDO): Likewise.
26489         (R_MN10300_TLS_GOTIE): Likewise.
26490         (R_MN10300_TLS_IE): Likewise.
26491         (R_MN10300_TLS_LE): Likewise.
26492         (R_MN10300_TLS_DTPMOD): Likewise.
26493         (R_MN10300_TLS_DTPOFF): Likewise.
26494         (R_MN10300_TLS_TPOFF): Likewise.
26495         (R_MN10300_SYM_DIFF): Likewise.
26496         (R_MN10300_ALIGN): Likewise.
26497         (R_MN10300_NUM): Update.
26498
26499 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
26500
26501         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
26502         Remove.
26503
26504 2012-08-08  Roland McGrath  <roland@hack.frob.com>
26505
26506         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
26507
26508         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
26509         sysdeps/unix -> sysdeps/posix move.
26510         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
26511
26512 2012-08-07      Allan McRae     <allan@archlinux.org>
26513
26514         [BZ #14303]
26515         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
26516         (SUNOS_CPP): Likewise.
26517         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
26518         not found.
26519         (open_input): Call CPP using execvp.
26520
26521 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
26522
26523         * sysdeps/unix/sysv/linux/kernel-features.h
26524         (__ASSUME_PROT_GROWSUPDOWN): Remove.
26525         (__ASSUME_NO_CLONE_DETACHED): Likewise.
26526         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
26527         (__ASSUME_WAITID_SYSCALL): Likewise.
26528         * sysdeps/unix/sysv/linux/dl-execstack.c
26529         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
26530         code unconditional.
26531         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
26532         conditional code.
26533         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
26534         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
26535         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
26536         code.
26537         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
26538         unconditional.
26539         [__ASSUME_WAITID_SYSCALL]: Likewise.
26540         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
26541
26542 2012-08-07  Roland McGrath  <roland@hack.frob.com>
26543
26544         * sysdeps/unix/closedir.c: Renamed to ...
26545         * sysdeps/posix/closedir.c: ... here.
26546         * sysdeps/unix/dirfd.c: Renamed to ...
26547         * sysdeps/posix/dirfd.c: ... here.
26548         * sysdeps/unix/dirstream.h: Renamed to ...
26549         * sysdeps/posix/dirstream.h: ... here.
26550         * sysdeps/unix/fdopendir.c: Renamed to ...
26551         * sysdeps/posix/fdopendir.c: ... here.
26552         * sysdeps/unix/opendir.c: Renamed to ...
26553         * sysdeps/posix/opendir.c: ... here.
26554         * sysdeps/unix/readdir.c: Renamed to ...
26555         * sysdeps/posix/readdir.c: ... here.
26556         * sysdeps/unix/readdir_r.c: Renamed to ...
26557         * sysdeps/posix/readdir_r.c: ... here.
26558         * sysdeps/unix/rewinddir.c: Renamed to ...
26559         * sysdeps/posix/rewinddir.c: ... here.
26560         * sysdeps/unix/seekdir.c: Renamed to ...
26561         * sysdeps/posix/seekdir.c: ... here.
26562         * sysdeps/unix/telldir.c: Renamed to ...
26563         * sysdeps/posix/telldir.c: ... here.
26564         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
26565         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
26566         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
26567         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
26568
26569         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
26570         * bits/fcntl.h: ... here.
26571
26572         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
26573         not 0.
26574         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
26575         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
26576         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
26577         (struct flock): Move l_start, l_len to the beginning.
26578         Use __pid_t for l_pid.
26579         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
26580         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
26581         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
26582         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
26583         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
26584         [__USE_LARGEFILE64] (struct flock64): New type.
26585         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
26586
26587         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
26588         * bits/dirent.h: ... here.
26589
26590         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
26591         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
26592
26593 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
26594
26595         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
26596         Change from 2.6.0 to 2.6.16.
26597         * sysdeps/unix/sysv/linux/configure: Regenerated.
26598         * sysdeps/unix/sysv/linux/kernel-features.h
26599         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
26600         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
26601         version.
26602         (__ASSUME_UTIMES): Likewise.
26603         (__ASSUME_CLONE_STOPPED): Remove.
26604         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
26605         architectures, not kernel version.
26606         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
26607         (__ASSUME_NO_CLONE_DETACHED): Likewise.
26608         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
26609         (__ASSUME_WAITID_SYSCALL): Likewise.
26610         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
26611         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
26612         * README: State 2.6.16 as minimum Linux kernel version.  Do not
26613         refer to older versions.
26614
26615 2012-08-06  Roland McGrath  <roland@hack.frob.com>
26616
26617         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
26618         Define alphasort64 as an alias.
26619         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
26620         Define versionsort64 as an alias.
26621         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
26622         Define scandir64 as an alias.
26623         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
26624         Define scandirat64 as an alias.
26625         * dirent/alphasort64.c (alphasort64):
26626         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
26627         * dirent/versionsort64.c: Likewise.
26628         * dirent/scandir64.c: Likewise.
26629         * dirent/scandirat64.c: Likewise.
26630         * sysdeps/wordsize-64/alphasort.c: File removed.
26631         * sysdeps/wordsize-64/alphasort64.c: File removed.
26632         * sysdeps/wordsize-64/scandir.c: File removed.
26633         * sysdeps/wordsize-64/scandir64.c: File removed.
26634         * sysdeps/wordsize-64/scandirat.c: File removed.
26635         * sysdeps/wordsize-64/scandirat64.c: File removed.
26636         * sysdeps/wordsize-64/versionsort.c: File removed.
26637         * sysdeps/wordsize-64/versionsort64.c: File removed.
26638         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
26639         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
26640         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
26641         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
26642         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
26643         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
26644         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
26645         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
26646
26647         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
26648         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
26649         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
26650         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
26651         [defined __arch64__ || defined __sparcv9]
26652         (__INO_T_MATCHES_INO64_T): New macro.
26653         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
26654         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
26655         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
26656         * sysdeps/unix/sysv/linux/bits/dirent.h
26657         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
26658         (_DIRENT_MATCHES_DIRENT64): New macro.
26659
26660         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
26661         Define lockf64 as an alias.
26662         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
26663         Define fseeko64 as an alias.
26664         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
26665         Define ftello64 as an alias.
26666         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
26667         Define _IO_fgetpos64 and fgetpos64 as aliases.
26668         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
26669         Define _IO_fsetpos64 and fsetpos64 as aliases.
26670         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
26671         Conditionalize body on this.
26672         * libio/fseeko64.c: Likewise.
26673         * libio/ftello64.c: Likewise.
26674         * libio/iofgetpos64.c: Likewise.
26675         * libio/iofsetpos64.c: Likewise.
26676         * sysdeps/wordsize-64/lockf.c: File removed.
26677         * sysdeps/wordsize-64/lockf64.c: File removed.
26678         * sysdeps/wordsize-64/fseeko.c: File removed.
26679         * sysdeps/wordsize-64/fseeko64.c: File removed.
26680         * sysdeps/wordsize-64/ftello.c: File removed.
26681         * sysdeps/wordsize-64/ftello64.c: File removed.
26682         * sysdeps/wordsize-64/iofgetpos.c: File removed.
26683         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
26684         * sysdeps/wordsize-64/iofsetpos.c: File removed.
26685         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
26686         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
26687         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
26688         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
26689         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
26690         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
26691         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
26692         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
26693         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
26694         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
26695         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
26696
26697         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
26698         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
26699         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
26700         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
26701         [defined __arch64__ || defined __sparcv9]
26702         (__OFF_T_MATCHES_OFF64_T): New macro.
26703         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
26704         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
26705         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
26706         (__OFF_T_MATCHES_OFF64_T): New macro.
26707
26708 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
26709
26710         * stdlib/secure-getenv.c (__secure_getenv): Replace
26711         GLIBC_2_16 with GLIBC_2_17.
26712
26713 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
26714
26715         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
26716         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
26717
26718 2012-08-03  David S. Miller  <davem@davemloft.net>
26719
26720         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26721
26722 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
26723
26724         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
26725         Remove.
26726         (__ASSUME_CORRECT_SI_PID): Likewise.
26727         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
26728         (__ASSUME_TMPFS_NAME): Likewise.
26729         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
26730         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
26731         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
26732         (HAVE_AUX_SECURE): Make definition unconditional.
26733         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
26734         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
26735
26736 2012-08-03  Roland McGrath  <roland@hack.frob.com>
26737
26738         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
26739         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
26740         * sysdeps/mach/hurd/eloop-threshold.h: New file.
26741         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
26742         __eloop_threshold instead of SYMLOOP_MAX.
26743
26744         * sysdeps/generic/eloop-threshold.h: New file.
26745         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
26746         of MAXSYMLINKS.
26747         * elf/chroot_canon.c (chroot_canon): Likewise.
26748
26749 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
26750
26751         [BZ #13717]
26752         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
26753         Change to 2.6.0 everywhere.
26754         * sysdeps/unix/sysv/linux/configure: Regenerated.
26755         * sysdeps/unix/sysv/linux/kernel-features.h
26756         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
26757         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
26758         kernel versions.
26759         (__ASSUME_POSIX_TIMERS): Define unconditionally.
26760         (__ASSUME_FUTEX_REQUEUE): Remove.
26761         (__ASSUME_STATFS64): Define unconditionally.
26762         (__ASSUME_AT_SECURE): Likewise.
26763         (__ASSUME_CORRECT_SI_PID): Likewise.
26764         (__ASSUME_TGKILL): Define without depending on kernel version for
26765         i386.
26766         (__ASSUME_UTIMES): Likewise.
26767         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
26768         kernel version.
26769         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
26770         (__ASSUME_TMPFS_NAME): Likewise.
26771         * README: Update reference to Linux kernel versions.
26772
26773 2012-08-02  Marek Polacek  <polacek@redhat.com>
26774
26775         [BZ# 14150]
26776         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
26777         libc_cv_asm_type_prefix with %.
26778         * configure: Regenerated.
26779         * include/libc-symbols.h: Remove comment about
26780         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
26781         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
26782         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
26783         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
26784         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
26785         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
26786         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
26787         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
26788         * elf/tst-unique2mod1.c: Likewise.
26789         * elf/tst-unique1mod2.c: Likewise.
26790         * elf/tst-unique1mod1.c: Likewise.
26791         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
26792         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
26793         Replace ASM_TYPE_DIRECTIVE with .type.
26794         * sysdeps/s390/s390-64/sysdep.h: Likewise.
26795         * sysdeps/i386/sysdep.h: Likewise.
26796         * sysdeps/x86_64/sysdep.h: Likewise.
26797         * sysdeps/sh/sysdep.h: Likewise.
26798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
26799         Do not define ASM_TYPE_DIRECTIVE.
26800         * sysdeps/powerpc/sysdep.h: Likewise.
26801         * sysdeps/powerpc/powerpc32/sysdep.h:
26802         Replace ASM_TYPE_DIRECTIVE with .type.
26803         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
26804         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
26805         * sysdeps/i386/fpu/e_powf.S: Likewise.
26806         * sysdeps/i386/fpu/e_expl.S: Likewise.
26807         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
26808         * sysdeps/i386/fpu/e_acosh.S: Likewise.
26809         * sysdeps/i386/fpu/e_pow.S: Likewise.
26810         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
26811         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
26812         * sysdeps/i386/fpu/s_expm1.S: Likewise.
26813         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
26814         * sysdeps/i386/fpu/e_log2.S: Likewise.
26815         * sysdeps/i386/fpu/e_log2l.S: Likewise.
26816         * sysdeps/i386/fpu/e_scalb.S: Likewise.
26817         * sysdeps/i386/fpu/e_powl.S: Likewise.
26818         * sysdeps/i386/fpu/e_log10f.S: Likewise.
26819         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
26820         * sysdeps/i386/fpu/e_logl.S: Likewise.
26821         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
26822         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
26823         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
26824         * sysdeps/i386/fpu/e_log2f.S: Likewise.
26825         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
26826         * sysdeps/i386/fpu/e_log.S: Likewise.
26827         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
26828         * sysdeps/i386/fpu/e_logf.S: Likewise.
26829         * sysdeps/i386/fpu/e_log10l.S: Likewise.
26830         * sysdeps/i386/fpu/e_atanh.S: Likewise.
26831         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
26832         * sysdeps/i386/fpu/e_log10.S: Likewise.
26833         * sysdeps/i386/fpu/s_frexp.S: Likewise.
26834         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
26835         * sysdeps/i386/fpu/s_asinh.S: Likewise.
26836         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
26837         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
26838         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26839         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
26840         * sysdeps/i386/i686/strtok.S: Likewise.
26841         * sysdeps/i386/i386-mcount.S: Likewise.
26842         * sysdeps/i386/strtok.S: Likewise.
26843         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
26844         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
26845         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
26846         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
26847         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
26848         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
26849         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
26850         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
26851         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
26852         * sysdeps/x86_64/_mcount.S: Likewise.
26853         * sysdeps/x86_64/strtok.S: Likewise.
26854         * sysdeps/sh/_mcount.S: Likewise.
26855
26856 2012-08-01  Roland McGrath  <roland@hack.frob.com>
26857
26858         * libio/iofopen.c: Include <fcntl.h>.
26859         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
26860         (_IO_fopen64, fopen64): Define as aliases.
26861         * libio/iofopen64.c: Include <fcntl.h>.
26862         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
26863         Conditionalize body on this.
26864         * sysdeps/wordsize-64/iofopen.c: File removed.
26865         * sysdeps/wordsize-64/iofopen64.c: File removed.
26866
26867 2012-08-01  Marek Polacek  <polacek@redhat.com>
26868
26869         * libc/Makeconfig: Use elf in place of binfmt-subdir.
26870         Use dlfcn directly instead of a variable.
26871         (binfmt-subdir): Do not define.
26872         (dlfcn): Likewise.
26873
26874 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
26875
26876         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
26877         Remove all definitions.
26878         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
26879         <kernel-features.h>.
26880         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
26881         (miss_F_GETOWN_EX): Remove all definitions.
26882         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
26883         macro definition.
26884         [!__ASSUME_FCNTL64]: Remove conditional code.
26885         [__ASSUME_FCNTL64]: Make code unconditional.
26886         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
26887         <kernel-features.h>.
26888         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
26889         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
26890         (lockf64) [__NR_fcntl64]: Make code unconditional.
26891         (lockf64) [__ASSUME_FCNTL64]: Likewise.
26892
26893         * sysdeps/unix/sysv/linux/kernel-features.h
26894         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
26895         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
26896         Make code unconditional.
26897         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
26898         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
26899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
26900         [__NR_vfork]: Make code unconditional.
26901         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
26902         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
26903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
26904         [__NR_vfork]: Make code unconditional.
26905         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
26906         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
26907
26908 2012-08-01  Roland McGrath  <roland@hack.frob.com>
26909
26910         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
26911         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
26912
26913         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
26914         Define mkstemp64 as an alias.
26915         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
26916         Define mkstemps64 as an alias.
26917         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
26918         Define mkostemp64 as an alias.
26919         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
26920         Define mkostemps64 as an alias.
26921         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
26922         Conditionalize body on this.
26923         * misc/mkostemp64.c: Likewise.
26924         * misc/mkostemps64.c: Likewise.
26925         * misc/mkstemps64.c: Likewise.
26926         * sysdeps/wordsize-64/mkstemp64.c: File removed.
26927         * sysdeps/wordsize-64/mkostemp64.c: File removed.
26928         * sysdeps/wordsize-64/mkostemp.c: File removed.
26929         * sysdeps/wordsize-64/mkstemp.c: File removed.
26930         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
26931         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
26932         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
26933         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
26934
26935         [BZ #14138]
26936         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
26937         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
26938         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
26939         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
26940
26941         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
26942         compat_symbol macros from <shlib-compat.h> rather than the underlying
26943         default_symbol_version and symbol_version macros, so that DEFAULT
26944         lines in shlib-versions are respected.
26945         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
26946
26947 2012-08-01  Florian Weimer  <fweimer@redhat.com>
26948
26949         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
26950         Declare with warn_unused_result.
26951         (setgid, setregid, setegid, setresgid): Likewise.
26952         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
26953         Likewise.
26954         * WUR-REPORT: Remove set*id functions.
26955
26956 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
26957
26958         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
26959
26960 2012-07-31  Roland McGrath  <roland@hack.frob.com>
26961
26962         [BZ #10191]
26963         * include/sys/socket.h (__libc_accept, __libc_accept4):
26964         Add attribute_hidden.
26965         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
26966
26967         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
26968         use of PTR_MANGLE.
26969         * inet/getnetgrent_r.c (setup): Likewise.
26970
26971         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
26972
26973 2012-07-31  David S. Miller  <davem@davemloft.net>
26974
26975         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26976
26977 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
26978
26979         [BZ #13629]
26980         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
26981         value between 1.0 and 2.0 and smaller part has absolute value less
26982         than 1.0.
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/libm-test.inc (clog_test): Add more tests.
26989         (clog10_test): Likewise.
26990         * sysdeps/i386/fpu/libm-test-ulps: Update.
26991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26992
26993 2012-07-31  Florian Weimer  <fweimer@redhat.com>
26994
26995         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
26996         Exit with zero in case no suitable GID is found, and write a
26997         message to standard error.
26998
26999 2012-07-30  Roland McGrath  <roland@hack.frob.com>
27000
27001         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
27002         rather than to 1.
27003         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
27004         (MAXPATHLEN): Removed.
27005         (NOGROUP, NODEV): New macros.
27006         (setbit, clrbit, isset, isclr): New macros.
27007         (howmany, roundup, powerof2): New macros.
27008         (DEV_BSIZE): New macro.
27009
27010         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
27011         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
27012
27013         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
27014         definition on [!__NO_LONG_DOUBLE_MATH].
27015
27016         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
27017         PTR_MANGLE and PTR_DEMANGLE.
27018
27019         * socket/accept4.c (accept4): Rename to __libc_accept4.
27020         Define accept4 as a weak alias.
27021
27022         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
27023         on [_DIRENT_HAVE_D_TYPE].
27024         * io/ftw.c (ftw_dir): Likewise.
27025
27026         * io/xmknod.c (__xmknod): Don't check PATH for being null.
27027
27028         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
27029
27030         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
27031         Use the BSD numbers rather than the arbitrary ones we had.
27032         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
27033         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
27034         (SIGXCPU, SIGXFSZ): New macros.
27035         (_NSIG): Now 32.
27036
27037         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
27038         initializer on [_LIBC_REENTRANT].
27039
27040         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
27041         definitions inside [_POSIX_MAPPED_FILES].
27042
27043         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
27044
27045         * dirent/opendir.c: Include <fcntl.h>.
27046
27047         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
27048         (__libc_getspecific): Likewise.
27049         (__libc_key_create): Likewise.
27050
27051         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
27052         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
27053         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
27054         (tmpfile64): Define as alias.
27055         * sysdeps/wordsize-64/tmpfile.c: File removed.
27056         * sysdeps/wordsize-64/tmpfile64.c: File removed.
27057         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
27058         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
27059
27060         * stdio-common/vfscanf.c: Include <stdbool.h>.
27061         * nss/makedb.c: Likewise.
27062         * stdio-common/_i18n_number.h: Likewise.
27063         * argp/argp-help.c: Likewise.
27064         * posix/wordexp.c: Likewise.
27065         * sysdeps/posix/spawni.c: Likewise.
27066         * nss/nss_files/files-initgroups.c: Likewise.
27067         * stdio-common/reg-modifier.c: Include <stdlib.h>.
27068         * nss/nss_files/files-initgroups.c: Likewise.
27069         * nss/nss_db/db-netgrp.c: Likewise.
27070         * nss/nss_db/db-initgroups.c: Likewise.
27071         * io/fchmodat.c: Include <sys/stat.h>.
27072
27073         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
27074         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
27075
27076         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
27077         [HAVE_MMAP].
27078
27079         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
27080         Add multiple inclusion protection.
27081
27082 2012-07-27  David S. Miller  <davem@davemloft.net>
27083
27084         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27085
27086 2012-07-27  Gary Benson  <gbenson@redhat.com>
27087
27088         [BZ #14298]
27089         * elf/rtld.c: Include <stap-probe.h>.
27090         (dl_main): Added static probes "init_start" and "init_complete".
27091         * elf/dl-load.c: Include <stap-probe.h>.
27092         (lose): Take new parameter "nsid".
27093         Added static probe "map_failed".
27094         (_dl_map_object_from_fd): Pass namespace id to lose.
27095         Added static probe "map_start".
27096         (open_verify): Pass namespace id to lose.
27097         * elf/dl-open.c: Include <stap-probe.h>.
27098         (dl_open_worker) Added static probes "map_complete", "reloc_start"
27099         and "reloc_complete".
27100         * elf/dl-close.c: Include <stap-probe.h>.
27101         (_dl_close_worker): Added static probes "unmap_start" and
27102         "unmap_complete".
27103         * elf/rtld-debugger-interface.txt: New file documenting the above.
27104
27105 2012-07-26  Roland McGrath  <roland@hack.frob.com>
27106
27107         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
27108         rather than a string variable.
27109         * sunrpc/rpc_main.c (h_output): Likewise.
27110         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
27111
27112 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
27113
27114         * inet/check_native.c: New file.
27115
27116 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
27117
27118         [BZ #13629]
27119         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
27120         if larger part has absolute value 1.0.
27121         * math/s_clog10.c (__clog10): Likewise.
27122         * math/s_clog10f.c (__clog10f): Likewise.
27123         * math/s_clog10l.c (__clog10l): Likewise.
27124         * math/s_clogf.c (__clogf): Likewise.
27125         * math/s_clogl.c (__clogl): Likewise.
27126         * math/libm-test.inc (clog_test): Add more tests.
27127         (clog10_test): Likewise.
27128         * sysdeps/i386/fpu/libm-test-ulps: Update.
27129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27130
27131         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
27132         (pltexit): Likewise.
27133         (La_regs): Likewise.
27134         (La_retval): Likewise.
27135         (int_retval): Likewise.
27136         Update #error for removed macros to refer only to definitions in
27137         tst-audit.h.
27138         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
27139         macro.
27140         (pltexit): Likewise.
27141         (La_regs): Likewise.
27142         (La_retval): Likewise.
27143         (int_retval): Likewise.
27144         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
27145         macro.
27146         (pltexit): Likewise.
27147         (La_regs): Likewise.
27148         (La_retval): Likewise.
27149         (int_retval): Likewise.
27150         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
27151         macro.
27152         (pltexit): Likewise.
27153         (La_regs): Likewise.
27154         (La_retval): Likewise.
27155         (int_retval): Likewise.
27156         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
27157         macro.
27158         (pltexit): Likewise.
27159         (La_regs): Likewise.
27160         (La_retval): Likewise.
27161         (int_retval): Likewise.
27162         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
27163         macro.
27164         (pltexit): Likewise.
27165         (La_regs): Likewise.
27166         (La_retval): Likewise.
27167         (int_retval): Likewise.
27168         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
27169         macro.
27170         (pltexit): Likewise.
27171         (La_regs): Likewise.
27172         (La_retval): Likewise.
27173         (int_retval): Likewise.
27174         * sysdeps/generic/tst-audit.h: Update comment to refer only to
27175         macro definitions in tst-audit.h.
27176         * sysdeps/i386/tst-audit.h: New file.
27177         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
27178         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
27179         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
27180         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
27181         * sysdeps/sh/tst-audit.h: Likewise.
27182         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
27183         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
27184         * sysdeps/x86_64/tst-audit.h: Likewise.
27185
27186 2012-07-26  Andreas Jaeger  <aj@suse.de>
27187
27188         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
27189         ptrace.
27190
27191         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
27192         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
27193         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
27194         PTRACE_O_MASK.
27195         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
27196         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
27197         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
27198
27199         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
27200         value.
27201
27202         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
27203         _sigsys.
27204         (si_call_addr, si_syscall, si_arch): Define new macro.
27205         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
27206         _sigsys.
27207         (si_call_addr, si_syscall, si_arch): Define new marcro.
27208         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
27209         _sigsys.
27210         (si_call_addr, si_syscall, si_arch): Define new macro.
27211         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
27212         _sigsys.
27213         (si_call_addr, si_syscall, si_arch): Define new macro.
27214
27215 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
27216
27217         [BZ #13717]
27218         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
27219         Change to 2.4.21 where previously 2.4.1.
27220         * sysdeps/unix/sysv/linux/configure: Regenerated.
27221         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
27222         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
27223         Linux kernel version.
27224         (__ASSUME_STD_AUXV): Remove.
27225         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
27226         kernel version.
27227         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
27228         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
27229         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
27230         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
27231         (__ASSUME_NETLINK_SUPPORT): Likewise.
27232         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
27233         (__no_netlink_support): Remove conditional definition.
27234         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
27235         Remove.
27236         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
27237         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
27238         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
27239         (if_nameindex_ioctl): Remove.
27240         (if_nameindex_netlink): Do not handle __no_netlink_support.
27241         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
27242         code.
27243         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
27244         Remove conditional code.
27245         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
27246         code.
27247         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
27248         unconditional.
27249         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
27250         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
27251         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
27252         Remove.
27253         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
27254         [!__ASSUME_STD_AUXV]: Remove conditional code.
27255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
27256         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
27257         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
27258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
27259         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
27260         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
27261         code.
27262         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
27263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
27264         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
27265         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
27266         conditional code.
27267         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
27268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
27269         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
27270         code.
27271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
27272         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
27273         conditional code.
27274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
27275         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
27276         code unconditional.
27277         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27278         conditional code.
27279         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
27280         unconditional.
27281         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27282         conditional code.
27283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
27284         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
27285         unconditional.
27286         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27287         conditional code.
27288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
27289         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
27290         code unconditional.
27291         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27292         conditional code.
27293         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
27294         unconditional.
27295         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27296         conditional code.
27297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
27298         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
27299         code unconditional.
27300         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27301         conditional code.
27302         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
27303         unconditional.
27304         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27305         conditional code.
27306
27307 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
27308
27309         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
27310         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
27311         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
27312         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
27313         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
27314         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
27315         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
27316         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
27317         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
27318         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
27319         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
27320         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
27321         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
27322         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
27323         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
27324         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
27325         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
27326         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
27327         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
27328         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
27329         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
27330         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
27331         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
27332
27333 2012-07-25  Florian Weimer  <fweimer@redhat.com>
27334
27335         * Versions.def: Add GLIBC_2.17.
27336         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
27337         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
27338         Introduce __libc_secure_getenv.
27339         * stdlib/Versions (2.17): Add secure_getenv
27340         (GLIBC_PRIVATE): Add __libc_secure_getenv.
27341         * stdlib/secure-getenv.c: Rename __secure_getenv to
27342         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
27343         symbol __secure_getenv for GLIBC_2.0.
27344         * stdlib/tst-secure-getenv.c: New.
27345         * stdlib/Makefile (tests): Add testcase.
27346         * manual/startup.texi (Environment Access): Document
27347         secure_getenv.
27348         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
27349         __libc_secure_getenv.
27350         * inet/ruserpass.c (ruserpass): Likewise.
27351         * malloc/mtrace.c (mtrace): Likewise.
27352         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
27353         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
27354         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
27355         * sysdeps/posix/tempname.c: Likewise.  Evaluate
27356         HAVE_SECURE_GETENV.
27357         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
27358         __secure_getenv to __libc_secure_getenv.
27359         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
27360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
27361         Likewise.
27362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
27363         Likewise.
27364         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
27365         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
27366         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
27367         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
27368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
27369         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
27370         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
27371
27372 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
27373
27374         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
27375         (struct La_i86_retval): Likewise.
27376         (struct La_x86_64_regs): Likewise.
27377         (struct La_x86_64_retval): Likewise.
27378         (struct La_x32_regs): Likewise.
27379         (struct La_x32_retval): Likewise.
27380         (struct La_ppc32_regs): Likewise.
27381         (struct La_ppc32_retval): Likewise.
27382         (struct La_ppc64_regs): Likewise.
27383         (struct La_ppc64_retval): Likewise.
27384         (struct La_sh_regs): Likewise.
27385         (struct La_sh_retval): Likewise.
27386         (struct La_s390_32_regs): Likewise.
27387         (struct La_s390_32_retval): Likewise.
27388         (struct La_s390_64_regs): Likewise.
27389         (struct La_s390_64_retval): Likewise.
27390         (struct La_sparc32_regs): Likewise.
27391         (struct La_sparc32_retval): Likewise.
27392         (struct La_sparc64_regs): Likewise.
27393         (struct La_sparc64_retval): Likewise.
27394         (struct audit_ifaces): Remove architecture-specific pltenter and
27395         pltexit members.
27396         * sysdeps/i386/ldsodefs.h: New file.
27397         * sysdeps/powerpc/ldsodefs.h: Likewise.
27398         * sysdeps/s390/ldsodefs.h: Likewise.
27399         * sysdeps/sh/ldsodefs.h: Likewise.
27400         * sysdeps/sparc/ldsodefs.h: Likewise.
27401         * sysdeps/x86_64/ldsodefs.h: Likewise.
27402
27403 2012-07-25  Marek Polacek  <polacek@redhat.com>
27404
27405         [BZ #6808]
27406         * math/libm-test.inc (yn_test): Add another test.
27407         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
27408         to ERANGE when the result is +-Inf.
27409         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
27410         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27411         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
27412         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
27413
27414 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
27415
27416         * conform/data/time.h-data (NULL): Use macro-constant.  Require
27417         equal to 0.
27418         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
27419         clock_t.
27420         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
27421
27422 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
27423
27424         * configure.in <sysdeps resolving>: Correct printing
27425         Implies_before.
27426         * configure: Regenerate.
27427
27428 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
27429
27430         * math/w_ilogb.c: Include <limits.h>.
27431         * math/w_ilogbl.c: Likewise.
27432
27433 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
27434
27435         * manual/lang.texi (__va_copy): Document primarily as ISO C99
27436         va_copy.  Document allowing for unavailable va_copy only as
27437         pre-C99 compatibility.
27438         * manual/string.texi (Copying and Concatenation): Use va_copy
27439         instead of __va_copy in concat example.
27440
27441 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
27442
27443         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
27444         (__sendto): Use create_address_port.  Initialize APORT and deallocate
27445         it if not null.
27446
27447         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
27448         with O_NOLINK passed to __file_name_lookup.
27449
27450         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
27451         with O_NOLINK passed to __file_name_lookup.
27452
27453         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
27454         negative N or less than NGIDS.
27455
27456         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
27457         type to string_t.  Set ERANGE as errno and return it if NAME is not big
27458         enough.  Use memcpy instead of strncpy.
27459
27460 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
27461
27462         * elf/Makefile (check-data): Remove.
27463         (localplt.data): New vpath directive.
27464         ($(objpfx)check-localplt.out): Use localplt.data from vpath
27465         instead of $(check-data).
27466         * scripts/data/localplt-generic.data: Move to ...
27467         * sysdeps/generic/localplt.data: ... here.
27468         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
27469         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
27470         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
27471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
27472         ... here.
27473         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
27474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
27475         ... here.
27476         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
27477         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
27478         ... here.
27479         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
27480         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
27481         ... here.
27482         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
27483         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
27484         ... here.
27485         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
27486         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
27487         ... here.
27488
27489 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27490
27491         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
27492         PPC32 and PPC64 files.
27493         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
27494         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
27495
27496 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27497
27498         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
27499         __makecontext_ret to ...
27500         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
27501         ... here and call exit if uc_link is NULL.  New file.
27502         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
27503         __makecontext_ret.S.
27504         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
27505         __makecontext_ret to ...
27506         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
27507         ... here and call exit if uc_link is NULL.  New file.
27508         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
27509         __makecontext_ret.S.
27510
27511 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27512
27513         * elf/elf.h (R_390_IRELATIVE): New definition.
27514         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
27515         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
27516         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
27517         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
27518         (elf_machine_lazy_rel): Likewise.
27519         * sysdeps/s390/dl-irel.h: New file.
27520         * sysdeps/s390/s390-64/memcpy.S: New asm code.
27521         * sysdeps/s390/s390-64/memset.S: New asm code.
27522         * sysdeps/s390/s390-64/memcmp.S: New asm code.
27523         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
27524         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
27525         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
27526         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
27527         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
27528         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
27529         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
27530         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
27531         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
27532         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
27533         * sysdeps/s390/s390-32/memcpy.S: New asm code.
27534         * sysdeps/s390/s390-32/memset.S: New asm code.
27535         * sysdeps/s390/s390-32/memcmp.S: New asm code.
27536
27537 2012-07-17  Marek Polacek  <polacek@redhat.com>
27538
27539         [BZ #14349]
27540         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
27541         * sysdeps/s390/s390-64/configure.in: Likewise.
27542         * sysdeps/sparc/configure.in: Likewise.
27543         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
27544         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
27545         * sysdeps/i386/configure.in: Likewise.
27546         * sysdeps/x86_64/configure.in: Likewise.
27547         * sysdeps/sh/configure.in: Likewise.
27548         * sysdeps/s390/s390-32/configure: Regenerated.
27549         * sysdeps/s390/s390-64/configure: Likewise.
27550         * sysdeps/x86_64/configure: Likewise.
27551         * sysdeps/sh/configure: Likewise.
27552         * sysdeps/powerpc/powerpc64/configure: Likewise.
27553         * sysdeps/powerpc/powerpc32/configure: Likewise.
27554         * sysdeps/sparc/configure: Likwise.
27555         * sysdeps/i386/configure: Likewise.
27556
27557         * elf/dl-open.c: Comment fixes.
27558
27559 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
27560
27561         * Makefile [CXX] (check-data): Remove.
27562         [CXX] (c++-types.data): New vpath directive.
27563         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
27564         vpath.  Do not allow for C++ type data being missing.
27565         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
27566         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
27567         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
27568         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
27569         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
27570         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
27571         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
27572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
27573         ... here.
27574         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
27575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
27576         ... here.
27577         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
27578         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
27579         ... here.
27580         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
27581         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
27582         ... here.
27583         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
27584         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
27585         ... here.
27586         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
27587         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
27588         ... here.
27589         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
27590         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
27591         ... here.
27592         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
27593         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
27594
27595         * elf/tls-macros.h (TLS_LE): Move architecture-specific
27596         definitions to architecture-specific files.
27597         (TLS_IE): Likewise.
27598         (TLS_LD): Likewise.
27599         (TLS_GD): Likewise.
27600         * sysdeps/i386/tls-macros.h: New file.
27601         * sysdeps/powerpc/tls-macros.h: Likewise.
27602         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
27603         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
27604         * sysdeps/sh/tls-macros.h: Likewise.
27605         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
27606         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
27607         * sysdeps/x86_64/tls-macros.h: Likewise.
27608
27609 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
27610
27611         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
27612         zero value for regular exit case.
27613
27614         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
27615         (__start_context): Preserve zero value for regular exit case.
27616
27617 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
27618             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27619
27620         * manual/setjmp.texi (setcontext): Clarify normal process
27621         termination when uc_link is the null pointer.
27622         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
27623         exit call.
27624
27625 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
27626
27627         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
27628         preprocessor.  Test for each exception mask separately.
27629
27630 2012-07-16  Andreas Jaeger  <aj@suse.de>
27631
27632         * po/ru.po: Update from translation team.
27633
27634 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
27635
27636         * conform/data/string.h-data (NULL): Use macro-constant.  Require
27637         equal to 0.
27638         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
27639         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
27640         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
27641         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
27642         [ISO || ISO99 || ISO11] (*_t): Do not allow.
27643
27644 2012-07-13  Andreas Jaeger  <aj@suse.de>
27645
27646         * po/fr.po: Update from translation team.
27647
27648 2012-07-12  Marek Polacek  <polacek@redhat.com>
27649
27650         [BZ #14173]
27651         * math/libm-test.inc (yn_test): Add test for BZ #14173.
27652         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
27653         loop condition.
27654
27655 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
27656
27657         [BZ #13717]
27658         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
27659         Change to 2.4.1 where previously 2.4.0.
27660         * sysdeps/unix/sysv/linux/configure: Regenerated.
27661         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
27662         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
27663         version.
27664         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
27665         (__ASSUME_AT_CLKTCK): Remove.
27666         (__ASSUME_AT_PAGESIZE): Likewise.
27667         (__ASSUME_AT_XID): Likewise.
27668         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
27669         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
27670         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
27671         unconditionally.
27672         (HAVE_AUX_PAGESIZE): Likewise.
27673         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
27674         [__ASSUME_AT_CLKTCK]: Make code unconditional.
27675         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
27676
27677 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
27678
27679         [BZ #14307]
27680         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
27681         the temporary buffer used to invoke __gethostbyname2_r,
27682         __gethostbyaddr_r and gethostbyname4_r to make room for struct
27683         host_data / struct gaih_addrtuple.
27684         * resolv/nss_dns/dns-host.c (global scope): Move definition of
27685         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
27686         header file nss/nsswitch.h.
27687         * nss/nsswitch.h (global scope): Add definition of implementation
27688         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
27689         resolv/nss_dns/dns-host.c).
27690
27691 2012-07-11  Andreas Jaeger  <aj@suse.de>
27692
27693         * po/fr.po: Update from translation team.
27694
27695         * po/sv.po: Update from translation team
27696         * po/fr.po: Another update from translation team.
27697
27698 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27699
27700         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
27701         for subnormals or multiply small sinh result by itself.
27702         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
27703         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27704
27705 2012-07-11  David S. Miller  <davem@davemloft.net>
27706
27707         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27708
27709 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
27710
27711         [BZ #14347]
27712         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
27713         (INTERNAL_MARK): Shift it here.
27714
27715 2012-07-10  Marek Polacek  <polacek@redhat.com>
27716
27717         [BZ #14151]
27718         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
27719         libc_cv_asm_global_directive with .globl.
27720         * configure: Regenerated.
27721         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
27722         with .globl.
27723         * sysdeps/i386/configure: Regenerated.
27724         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
27725         with .globl.
27726         * sysdeps/x86_64/configure: Regenerated.
27727         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
27728         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
27729         * elf/tst-unique2mod2.c: Likewise.
27730         * elf/tst-unique2mod1.c: Likewise.
27731         * elf/tst-unique1mod2.c: Likewise.
27732         * elf/tst-unique1mod1.c: Likewise.
27733         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27734         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
27735         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27736         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
27737         * sysdeps/mach/sysdep.h: Likewise.
27738         * sysdeps/i386/sysdep.h: Likewise.
27739         * sysdeps/i386/i386-mcount.S: Likewise.
27740         * sysdeps/x86_64/_mcount.S: Likewise.
27741         * sysdeps/x86_64/sysdep.h: Likewise.
27742         * sysdeps/sh/_mcount.S: Likewise.
27743         * sysdeps/sh/sysdep.h: Likewise.
27744         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
27745         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
27746         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
27747         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
27748         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
27749         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
27750         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
27751         * locale/localeinfo.h: Likewise.
27752         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
27753         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
27754
27755 2012-07-09  Roland McGrath  <roland@hack.frob.com>
27756
27757         [BZ #14336]
27758         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
27759         system".
27760         * manual/message.texi (The Uniforum approach): Likewise.
27761         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
27762         (glibc iconv Implementation): Likewise.
27763
27764 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
27765
27766         [BZ #14337]
27767         * math/s_clog.c (__clog): Avoid scaling a value down where that
27768         could result in underflow.
27769         * math/s_clog10.c (__clog10): Likewise.
27770         * math/s_clog10f.c (__clog10f): Likewise.
27771         * math/s_clog10l.c (__clog10l): Likewise.
27772         * math/s_clogf.c (__clogf): Likewise.
27773         * math/s_clogl.c (__clogl): Likewise.
27774         * math/libm-test.inc (clog_test): Add more tests.
27775         (clog10_test): Likewise.
27776         * sysdeps/i386/fpu/libm-test-ulps: Update.
27777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27778
27779 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
27780
27781         [BZ #14283]
27782         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
27783         by 7 not 8 to examine high bit of fractional part.
27784
27785         [BZ #14042]
27786         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
27787         for call to __mcount_internal.
27788         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
27789         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
27790         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
27791
27792 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
27793
27794         [BZ #14154]
27795         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
27796         approximation for values within 0x1p-13f of an odd multiple of
27797         pi/4.
27798         * math/libm-test.inc (tan_test): Do not allow spurious underflow
27799         exception.  Add more tests.
27800         * sysdeps/i386/fpu/libm-test-ulps: Update.
27801
27802         [BZ #6778]
27803         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
27804         inputs and return -1 for them.  Do not check for +Inf in case not
27805         reachable for +Inf.
27806         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
27807         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
27808         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
27809         and return -1 for them.  Do not check for +Inf in case not
27810         reachable for +Inf.
27811         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
27812         define.
27813         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
27814         and return -1 for them.  Do not check for +Inf in case not
27815         reachable for +Inf.
27816         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
27817         spurious underflow.
27818         * sysdeps/i386/fpu/libm-test-ulps: Update.
27819         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27820
27821 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
27822
27823         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
27824
27825 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
27826
27827         [BZ #14157]
27828         [BZ #14331]
27829         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
27830         could result in spurious underflow.  Scale down values above
27831         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
27832         * math/s_csqrtf.c (__csqrtf): Likewise.
27833         * math/s_csqrtl.c (__csqrtl): Likewise.
27834         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
27835         spurious underflow.
27836         * sysdeps/i386/fpu/libm-test-ulps: Update.
27837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27838
27839 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
27840
27841         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
27842         xopen-msg.sed.
27843         * catgets/xopen-msg.awk: New file.
27844         * catgets/xopen-msg.sed: Removed.
27845
27846         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
27847         po2text.sed.
27848         * intl/po2test.awk: New file.
27849         * intl/po2test.sed: Removed.
27850
27851 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
27852
27853         [BZ #14328]
27854         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
27855         or multiply small sinh result by itself.
27856         * math/s_ctanf.c (__ctanf): Likewise.
27857         * math/s_ctanh.c (__ctanh): Likewise.
27858         * math/s_ctanhf.c (__ctanhf): Likewise.
27859         * math/s_ctanhl.c (__ctanhl): Likewise.
27860         * math/s_ctanl.c (__ctanl): Likewise.
27861         * math/libm-test.inc (ctan_test_tonearest): New function.
27862         (ctan_test_towardzero): Likewise.
27863         (ctan_test_downward): Likewise.
27864         (ctan_test_upward): Likewise.
27865         (ctanh_test_tonearest): Likewise.
27866         (ctanh_test_towardzero): Likewise.
27867         (ctanh_test_downward): Likewise.
27868         (ctanh_test_upward): Likewise.
27869         (main): Call these new functions.
27870         * sysdeps/i386/fpu/libm-test-ulps: Update.
27871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27872
27873 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
27874
27875         * .gitignore: Delete /ports entry.
27876
27877 2012-07-03  Andreas Jaeger  <aj@suse.de>
27878
27879         * po/bg.po: Update from translation team.
27880         * po/cs.po: Likewise.
27881         * po/de.po: Likewise.
27882         * po/hr.po: Likewise.
27883         * po/nl.pl: Likewise.
27884         * po/pl.po: Likewise.
27885         * po/vi.po: Likewise.
27886
27887 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
27888
27889         * Makeconfig [!+link] (+link-before-libc): New variable.
27890         [!+link] (+link-after-libc): Likewise.
27891         [!+link] (+link-tests): Likewise.
27892         [!+link] (+link): Define in terms of $(+link-before-libc) and
27893         $(+link-after-libc).
27894         [!+link-static] (+link-static-before-libc): New variable.
27895         [!+link-static] (+link-static-after-libc): Likewise.
27896         [!+link-static] (+link-static-tests): Likewise.
27897         [!+link-static] (+link-static): Define in terms of
27898         $(+link-static-before-libc) and $(+link-static-after-libc).
27899         [build-shared] (link-libc-before-gnulib): New variable.
27900         [build-shared] (link-libc-tests): Likewise.
27901         [build-shared] (link-libc): Define in terms of
27902         $(link-libc-before-gnulib).
27903         [!build-shared] (link-libc-tests): New variable.
27904         (link-libc-static-tests): New variable.
27905         [!gnulib] (gnulib-arch): New variable.
27906         [!gnulib] (gnulib-tests): Likewise.
27907         [!gnulib] (static-gnulib-arch): Likewise.
27908         [!gnulib] (static-gnulib-tests): Likewise.
27909         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
27910         Define with "=" instead of ":=".
27911         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
27912         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
27913         * Rules (binaries-all-notests): New variable.
27914         (binaries-all-tests): Likewise.
27915         (binaries-static-notests): Likewise.
27916         (binaries-static-tests): Likewise.
27917         (binaries-all): Define using $(binaries-all-notests) and
27918         $(binaries-all-tests).
27919         (binaries-static): Define using $(binaries-static-notests) and
27920         $(binaries-static-tests).
27921         (binaries-shared-tests): New variable.
27922         (binaries-shared-notests): Likewise.
27923         (binaries-shared): Remove variable.
27924         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
27925         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
27926         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
27927         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
27928         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
27929         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
27930         * elf/Makefile (sln-modules): New variable.
27931         (extra-objs): Add $(sln-modules:=.o).
27932         (ldconfig-modules): Add static-stubs.
27933         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
27934         * elf/static-stubs.c: New file.
27935
27936         [BZ #14283]
27937         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
27938         by 7 not 8 to examine high bit of fractional part.  Use volatile
27939         variables when splitting into final array of floats if
27940         __FLT_EVAL_METHOD__ != 0.
27941         * math/libm-test.inc (cos_test): Add another test.
27942         (sin_test): Likewise.
27943         * sysdeps/i386/fpu/libm-test-ulps: Update.
27944
27945         [BZ #14273]
27946         * math/libm-test.inc (cosh_test): Add more tests.
27947
27948         * version.h (RELEASE): Set to "development".
27949         (VERSION): Set to "2.16.90".
27950
27951 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
27952
27953         * NEWS: Update copyright. Remove last-updated date.
27954         Mention math library bug fixes and timezone data changes.
27955         * README: Mention GNU/Hurd, x32, and HPPA support status.
27956
27957 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
27958
27959         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
27960
27961 2012-06-27  Andreas Jaeger  <aj@suse.de>
27962
27963         * manual/contrib.texi (Contributors): Add Samuel Thibault.
27964
27965 2012-06-25  Andreas Jaeger  <aj@suse.de>
27966
27967         * sysdeps/s390/fpu/libm-test-ulps: Update.
27968
27969 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
27970             Thomas Schwinge  <thomas@codesourcery.com>
27971
27972         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
27973         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
27974         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
27975         fanotify_mark.
27976
27977 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
27978
27979         * sysdeps/mach/start.c: Remove file.
27980         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
27981         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
27982         * sysdeps/sh/init-first.c: Likewise.
27983
27984         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
27985         registers for frame unwinding purposes, add CFI directives.
27986         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
27987         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
27988         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
27989         Likewise.
27990
27991         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
27992         __fortify_fail returning.
27993         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
27994
27995         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
27996         sysdeps/sh/____longjmp_chk.S.
27997         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
27998         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
27999         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
28000         (gen-as-const-headers): Append sigaltstack-offsets.sym.
28001
28002         * sysdeps/sh/abort-instr.h: New file.
28003         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
28004         process in case exit returns.
28005
28006         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
28007         initialize the GOT register before use.
28008
28009         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
28010         calculation of ARGC > 4.
28011
28012         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
28013         meaningful names to some local labels.
28014
28015 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28016             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
28017
28018         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
28019         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
28020         (__arch_compare_and_exchange_val_16_acq): Likewise.
28021         (__arch_compare_and_exchange_val_32_acq): Likewise.
28022         (atomic_exchange_and_add): Fix gUSA sequence.
28023         (atomic_add): Likewise.
28024         (atomic_add_negative): Likewise.
28025         (atomic_add_zero): Likewise.
28026         (atomic_bit_test_set): Likewise.
28027
28028 2012-06-22  Andreas Schwab  <schwab@redhat.com>
28029
28030         [BZ #13579]
28031         * include/link.h (struct link_map): Add l_free_initfini.
28032         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
28033         l_initfini.
28034         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
28035         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
28036         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
28037         set.
28038
28039 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
28040
28041         * configure.in: Use AC_LANG_SOURCE.
28042         * configure: Regenerate.
28043
28044 2012-06-22  Roland McGrath  <roland@hack.frob.com>
28045
28046         * configure.in (libc_cv_localstatedir): New substituted variable.
28047         * configure: Regenerated.
28048         * config.make.in (localstatedir): New variable, substituted from
28049         libc_cv_localstatedir.
28050         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
28051         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
28052         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
28053         * sysdeps/gnu/configure: Regenerated.
28054
28055 2012-06-21  Jeff Law  <law@redhat.com>
28056
28057         [BZ #14277]
28058         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
28059         free.  Simplify list management for _LIBC case.
28060
28061 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
28062
28063         [BZ #14273]
28064         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
28065         Clear sign bit of 64-bit integer value before comparing against
28066         overflow value.
28067
28068         * sysdeps/mach/configure: Regenerated.
28069
28070 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
28071
28072         [BZ #14278]
28073         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
28074
28075 2012-06-21  Jeff Law  <law@redhat.com>
28076
28077         [BZ #13882]
28078         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
28079         uint16_t for elements in the "seen" array to avoid char overflows.
28080         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28081         * elf/dl-open.c (dl_open_worker): Likewise.
28082
28083 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
28084
28085         * scripts/list-sources.sh: Scan PORTS for translations.
28086         * po/libc.pot: Regenerated.
28087
28088 2012-06-21  Andreas Jaeger  <aj@suse.de>
28089
28090         [BZ #12194]
28091         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
28092         warning.
28093         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
28094         * bits/byteswap-16.h (__bswap_16): Likewise.
28095         * bits/byteswap.h (__bswap_constant_16): Likewise.
28096
28097 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
28098
28099         [BZ #14117]
28100         * sysdeps/i386/fpu_control.h: Removed.
28101         * sysdeps/x86_64/fpu_control.h: Moved to ...
28102         * sysdeps/x86/fpu_control.h: Here.
28103
28104         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
28105         (_FPU_SETCW): Likewise.
28106
28107 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
28108
28109         [BZ #14117]
28110         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
28111         * sysdeps/x86/fpu/bits/mathinline.h: This.
28112         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
28113
28114         [BZ #14050]
28115         [BZ #14117]
28116         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
28117         functions if __x86_64__ is defined.
28118
28119 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
28120
28121         * string/endian.h: Add !__ASSEMBLER__ condition for including
28122         conversion interfaces.
28123
28124 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
28125
28126         [BZ #14241]
28127         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
28128         of ABS(x) in calculating zero to negative powers other than odd
28129         integers.
28130         * math/libm-test.inc (pow_test): Add more tests.
28131
28132 2012-06-15  Andreas Jaeger  <aj@suse.de>
28133
28134         * manual/contrib.texi (Contributors): Update entry of Liubov
28135         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
28136         Machado Filho.
28137
28138 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
28139
28140         * string/string.h: Add __wur to GNU version of strerror_r.
28141
28142 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
28143
28144         [BZ #14229]
28145         * string/Makefile (tests): Add tst-strtok_r.
28146         * string/tst-strtok_r.c: New file.
28147         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
28148         RAX_LP/RDX_LP on SAVE_PTR.
28149
28150 2012-06-14  Roland McGrath  <roland@hack.frob.com>
28151
28152         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
28153
28154 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
28155
28156         * libm_test.inc (csqrt_test): Allow more spurious underflow
28157         exceptions.
28158         (j0_test): Likewise.
28159         (j1_test): Likewise.
28160         (y0_test): Likewise.
28161         (y1_test): Likewise.
28162
28163 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
28164
28165         * po/Makefile (libc.pot): Use UTF-8 charset.
28166
28167 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
28168
28169         [BZ #14210]
28170         Suppress sign-conversion warning from FD_SET.
28171         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
28172         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
28173         not unsigned long int.
28174         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
28175
28176 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
28177
28178         [BZ #14050]
28179         [BZ #14117]
28180         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
28181         __extern_always_inline instead of __extern_inline.
28182         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
28183         (__signbit): Likewise.
28184         (__signbitl): Support C++ namespace.
28185         (lrintf): New inline function.
28186         (lrint): Likewise.
28187         (llrintf): Likewise.
28188         (llrint): Likewise.
28189         (fmaxf): Likewise.
28190         (fmax): Likewise.
28191         (fminf): Likewise.
28192         (fmin): Likewise.
28193         (rint): Likewise.
28194         (rintf): Likewise.
28195         (ceil): Likewise.
28196         (ceilf): Likewise.
28197         (floor): Likewise.
28198         (floorf): Likewise.
28199         (nearbyint): Likewise.
28200         (nearbyintf): Likewise.
28201
28202 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
28203
28204         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
28205         non-default versions.
28206
28207 2012-06-11  Roland McGrath  <roland@hack.frob.com>
28208
28209         [BZ #14218]
28210         * manual/argp.texi (Argp): Reword argp_parse description slightly.
28211
28212 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
28213
28214         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
28215         (FE_UPWARD, FE_DOWNWARD): Don't define.
28216         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
28217         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
28218
28219         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
28220         reading it.
28221         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
28222         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28223
28224 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
28225
28226         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
28227         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
28228         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
28229         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
28230
28231 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
28232
28233         [BZ #14117]
28234         * sysdeps/i386/fpu/bits/fenv.h: Removed.
28235         * sysdeps/i386/fpu/Implies: New file.
28236         * sysdeps/x86_64/fpu/Implies: Likewise.
28237         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
28238         * sysdeps/x86/fpu/bits/fenv.h: This.
28239
28240         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
28241         __SSE_MATH__.
28242
28243 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
28244
28245         [BZ #14134]
28246         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
28247         character 0xffff that matches the last element of the
28248         conversion table.
28249
28250 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28251
28252         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
28253         fmodl commit.
28254
28255 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28256
28257         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
28258         values higher than 25.6283.
28259
28260 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28261
28262         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
28263         subnormal exponent extraction and add some __builtin_expect.
28264         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
28265         Fix for subnormal mantissa calculation.
28266
28267 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
28268
28269         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
28270         cpu2 is -1 and errno is not ENOSYS.
28271
28272 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
28273
28274         [BZ #14117]
28275         * sysdeps/i386/i486/bits/string.h: Renamed to ...
28276         * sysdeps/x86/bits/string.h: This.
28277         * sysdeps/x86_64/bits/string.h: Removed.
28278
28279         * sysdeps/i386/i486/bits/string.h: Define inline functions only
28280         if not compiling for x86-64, but compiling for >= i486.
28281
28282         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
28283         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
28284
28285         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
28286         New macro from Linux kernel 3.4.0.
28287         (FP_XSTATE_MAGIC2): Likewise.
28288         (FP_XSTATE_MAGIC2_SIZE): Likewise.
28289         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
28290         (struct _fpx_sw_bytes): New struct.
28291         (struct _xsave_hdr): Likewise.
28292         (struct _ymmh_state): Likewise.
28293         (struct _xstate): Likewise.
28294
28295         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
28296         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
28297         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
28298         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
28299         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
28300         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
28301
28302         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
28303         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
28304         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
28305         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
28306         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
28307         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
28308
28309 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
28310
28311         [BZ #13743]
28312         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
28313         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
28314         (sysdep_headers): Include sys/platform/ppc.h.
28315         * sysdeps/powerpc/test-gettimebase.c: Test for
28316         __ppc_get_timebase() to catch future ISA opcode/insn changes.
28317         * manual/Makefile (appendices): Include platform.texi.
28318         * manual/contrib.texi (Contributors): Update @node pointers.
28319         * manual/maint.texi (Maintenance): Likewise.
28320         (Platform): New node.
28321         * manual/platform.texi: New file.  Document the new features.
28322
28323 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28324             Jakub Jelinek  <jakub@redhat.com>
28325
28326         [BZ #14188]
28327         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
28328         where __builtin_expect is unavailable.
28329
28330 2012-06-03  David S. Miller  <davem@davemloft.net>
28331
28332         * stdlib/longlong.h: Updated from GCC.
28333
28334 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
28335
28336         [BZ #14042]
28337         * sysdeps/powerpc/powerpc32/mcount.c: New file.
28338         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
28339         __mcount_internal.
28340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
28341         (GLIBC_2.16): Likewise.
28342
28343 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
28344
28345         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
28346
28347 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
28348
28349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
28350         (default-abi): New variable.
28351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
28352         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
28353         variable.
28354         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
28355         Likewise.
28356         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
28357         Likewise.
28358         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
28359         Likewise.
28360
28361         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
28362         definition.  Document in comment.
28363
28364 2012-06-01  David S. Miller  <davem@davemloft.net>
28365
28366         * stdlib/longlong.h: Updated from GCC.
28367
28368 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
28369
28370         [BZ #14117]
28371         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
28372         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
28373         sys/debugreg.h sys/io.h here.
28374         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
28375         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
28376         sys/io.h.
28377         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
28378         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
28379         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
28380         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
28381         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
28382         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
28383
28384         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
28385         Define only if __x86_64__ is defined.
28386
28387 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
28388
28389         [BZ #14048]
28390         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
28391         Use int64_t for variable i.
28392         * math/libm-test.inc (fmod_test): Add more tests.
28393
28394         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
28395         z computation is not scheduled after fetestexcept.
28396         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
28397         Use math_force_eval instead of asm to ensure calculation scheduled
28398         before exception test.
28399         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
28400         Ensure a1 + u.d computation is not scheduled after fetestexcept.
28401
28402 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
28403
28404         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
28405         computation is not scheduled after fetestexcept.
28406
28407 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
28408
28409         [BZ #14117]
28410         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
28411         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
28412
28413 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28414
28415         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
28416         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
28417
28418 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
28419
28420         [BZ #14117]
28421         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
28422         <bits/wordsize.h>.
28423         (__WCHAR_MIN): Support __WORDSIZE == 64.
28424         (__WCHAR_MAX): Likewise.
28425
28426         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
28427         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
28428
28429         [BZ #14183]
28430         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
28431         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
28432
28433         [BZ #14117]
28434         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
28435         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
28436
28437         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
28438         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
28439
28440         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
28441         Defined to 1 if __x86_64__ isn't defined.
28442         (_STAT_VER_LINUX_OLD): New.
28443         (st_atime): Remove duplicate.
28444         (st_mtime): Likewise.
28445         (st_ctime): Likewise.
28446
28447 2012-05-31  David S. Miller  <davem@davemloft.net>
28448
28449         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
28450         entries.
28451
28452 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
28453
28454         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
28455         gen-libm-test.pl.
28456
28457         [BZ #14132]
28458         * elf/dl-reloc.c: Include <_itoa.h>.
28459         (_dl_reloc_bad_type): Remove use of INTUSE.
28460         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
28461         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
28462         * stdio-common/psiginfo.c (psiginfo): Likewise.
28463         * stdio-common/psignal.c (psignal): Likewise.
28464         * string/strsignal.c (strsignal): Likewise.
28465         * include/signal.h (_sys_siglist): Declare hidden proto.
28466         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
28467         INTVARDEF with libc_hidden_data_def.
28468         * stdio-common/itoa-udigits.c: Likewise.
28469         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
28470         (_itoa_lower_digits_internal): Remove declaration.
28471         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
28472         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
28473         (_sys_sigabbrev_internal): Remove aliases.
28474         (_sys_siglist): Define hidden alias.
28475
28476 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
28477
28478         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28479         bits/sysctl.h.
28480
28481 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
28482
28483         [BZ #14117]
28484         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
28485         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
28486
28487         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
28488         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
28489         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
28490         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
28491         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
28492         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
28493
28494         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
28495         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
28496         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
28497
28498         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
28499         with __addr.
28500         (insw): Likewise.
28501         (insl): Likewise.
28502         (outsb): Likewise.
28503         (outsw): Likewise.
28504         (outsl): Likewise.
28505
28506         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
28507         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
28508         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
28509
28510         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
28511         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
28512         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
28513         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
28514         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
28515         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
28516
28517         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
28518         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
28519
28520         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
28521         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
28522
28523         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
28524         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
28525         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
28526
28527         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
28528         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
28529         to ...
28530         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
28531
28532         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
28533         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
28534         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
28535
28536         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
28537         for x86-64.
28538         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
28539
28540 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
28541
28542         * math/math.h (M_El): Use two more decimal places.
28543         (M_LOG2El): Likewise.
28544         (M_LOG10El): Likewise.
28545         (M_LN2l): Likewise.
28546         (M_LN10l): Likewise.
28547         (M_PIl): Likewise.
28548         (M_PI_2l): Likewise.
28549         (M_PI_4l): Likewise.
28550         (M_1_PIl): Likewise.
28551         (M_2_PIl): Likewise.
28552         (M_2_SQRTPIl): Likewise.
28553         (M_SQRT2l): Likewise.
28554         (M_SQRT1_2l): Likewise.
28555
28556 2012-05-31  David S. Miller  <davem@davemloft.net>
28557
28558         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
28559         values between float registers.
28560         * sysdeps/sparc/sparc64/memset.S: Likewise.
28561         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
28562
28563 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
28564
28565         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
28566         -D_FORTIFY_SOURCE=1.
28567         (CPPFLAGS-tst-longjmp_chk.c): Define.
28568         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
28569         (CPPFLAGS-tst-longjmp_chk2.c): Define.
28570         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
28571         CFLAGS-tst-wchar-h.c.
28572
28573 2012-05-31  Marek Polacek  <polacek@redhat.com>
28574
28575         [BZ #14132]
28576         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
28577         __endmntent_internal): Remove declaration.
28578         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
28579         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
28580         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
28581
28582 2012-05-30  David S. Miller  <davem@davemloft.net>
28583
28584         * sysdeps/sparc/sparc32/soft-fp/q_util.c
28585         (___Q_simulate_exceptions): Use real FP ops rather than writing
28586         into the %fsr.
28587         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
28588         Likewise.
28589
28590 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
28591
28592         [BZ #14117]
28593         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
28594         * sysdeps/x86/bits/xtitypes.h: This.
28595
28596         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
28597         * sysdeps/x86/bits/wordsize.h: This.
28598
28599         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
28600         * sysdeps/x86/bits/huge_vall.h: This.
28601
28602         * sysdeps/i386/bits/select.h: Removed.
28603         * sysdeps/x86_64/bits/select.h: Renamed to ...
28604         * sysdeps/x86/bits/select.h: This.
28605
28606         * sysdeps/i386/bits/setjmp.h: Removed.
28607         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
28608         * sysdeps/x86/bits/setjmp.h: This.
28609
28610         * sysdeps/i386/bits/mathdef.h: Removed.
28611         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
28612         * sysdeps/x86/bits/mathdef.h: This.
28613
28614 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
28615
28616         [BZ #14132]
28617         * include/sys/socket.h (__connect_internal)
28618         (__libc_sa_len_internal): Remove declaration.
28619         (__connect, __libc_sa_len): Declare hidden_proto.
28620         (SA_LEN): Remove use of INTUSE.
28621         * socket/connect.c: Add libc_hidden_def.
28622         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
28623         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
28624         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
28625         alias.
28626         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
28627         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
28628         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
28629         of adding _internal alias.
28630
28631 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
28632
28633         [BZ #14117]
28634         * sysdeps/i386/bits/link.h: Removed.
28635         * sysdeps/i386/bits/linkmap.h: Likewise.
28636         * sysdeps/x86_64/bits/link.h: Renamed to ...
28637         * sysdeps/x86/bits/link.h: This.
28638         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
28639         * sysdeps/x86/bits/linkmap.h: This.
28640
28641         * sysdeps/i386/bits/endian.h: Removed.
28642         * sysdeps/x86_64/bits/endian.h: Renamed to ...
28643         * sysdeps/x86/bits/endian.h: This.
28644
28645         * sysdeps/i386/bits/byteswap.h: Removed.
28646         * sysdeps/i386/bits/byteswap-16.h: Likewise.
28647         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
28648         * sysdeps/x86/bits/byteswap.h: This.
28649         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
28650         * sysdeps/x86/bits/byteswap-16.h: This.
28651         * sysdeps/i386/Implies: Add x86.
28652         * sysdeps/x86_64/Implies: Likewise.
28653
28654 2012-05-30  David S. Miller  <davem@davemloft.net>
28655
28656         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
28657         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
28658         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
28659         (FP_TRAPPING_EXCEPTIONS): Define.
28660         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
28661         (FP_TRAPPING_EXCEPTIONS): Define.
28662         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
28663         subnormals only when inexact has been signalled or underflow
28664         exceptions are enabled.
28665         (_FP_PACK_CANONICAL): Likewise.
28666
28667 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
28668
28669         [BZ #14183]
28670         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
28671         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
28672
28673 2012-05-30  Richard Henderson  <rth@twiddle.net>
28674
28675         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
28676         with #ifndef NOT_IN_libc.
28677
28678         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
28679         marked to avoid plt entry.
28680
28681 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
28682
28683         [BZ #14112]
28684         * Makeconfig (default-abi): New macro.
28685         (abi-includes): Likewise.
28686         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
28687         $(abi-$(default-abi)-lib-soname) for soname if defined.
28688         ($(common-objpfx)gnu/lib-names.stmp): Generate from
28689         abi-variants.
28690         * Makefile (installed-stubs): Likewise.
28691         * include/stubs-biarch.h: Removed.
28692         * scripts/lib-names.awk: Only handle one library at a time.
28693         * scripts/soversions.awk: Remove WORDSIZE support.
28694         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
28695         entries.
28696         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
28697         Removed.
28698         (syscall-list-default-condition): Likewise.
28699         (syscall-list-default-condition): Likewise.
28700         (syscall-list-includes): Likewise.
28701         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
28702         syscall-list-* with abi-*.  Handle undefined abi-variants.
28703         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
28704         * sysdeps/unix/sysv/linux/i386/Implies: New file.
28705         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
28706         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
28707         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
28708         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
28709         Removed.
28710         (syscall-list-32-options): Likewise.
28711         (syscall-list-32-condition): Likewise.
28712         (syscall-list-64-options): Likewise.
28713         (syscall-list-64-condition): Likewise.
28714         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
28715         macro.
28716         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
28717         Renamed to ...
28718         (abi-*): This.
28719         (abi-64-ld-soname): New macro.
28720         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
28721         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
28722         Renamed to ...
28723         (abi-*): This.
28724         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
28725         * sysdeps/x86_64/x32/shlib-versions: Likewise.
28726
28727 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
28728
28729         * sysdeps/unix/sysv/linux/kernel-features.h
28730         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
28731         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
28732         include <kernel-features.h>.
28733         [!__NR_ftruncate64]: Remove conditional code.
28734         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
28735         [__NR_ftruncate64]: Make code unconditional.
28736         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
28737         * sysdeps/unix/sysv/linux/truncate64.c: Do not
28738         include <kernel-features.h>.
28739         [!__NR_ftruncate64]: Remove conditional code.
28740         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
28741         [__NR_ftruncate64]: Make code unconditional.
28742         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
28743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
28744         include <kernel-features.h>.
28745         [!__NR_ftruncate64]: Remove conditional code.
28746         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
28747         [__NR_ftruncate64]: Make code unconditional.
28748         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
28749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
28750         include <kernel-features.h>.
28751         [!__NR_ftruncate64]: Remove conditional code.
28752         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
28753         [__NR_ftruncate64]: Make code unconditional.
28754         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
28755
28756         * configure.in (libc_cv_fpie): Weaken to a compile test using
28757         LIBC_TRY_CC_OPTION.
28758         * configure: Regenerated.
28759
28760 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28761
28762         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
28763         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
28764         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
28765         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
28766         Refreshed.
28767         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
28768         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
28769         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
28770         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
28771         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
28772         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
28773         Refreshed.
28774
28775 2012-05-27  David S. Miller  <davem@davemloft.net>
28776
28777         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
28778         (___Q_zero): New.
28779         (__Q_simulate_exceptions): Return void.  Change to simulate
28780         exceptions by writing into the %fsr.
28781         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
28782         (__Qp_handle_exceptions): Likewise.
28783         (numbers): Delete.
28784         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
28785         __Qp_handle_exceptions.
28786         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
28787         __Qp_handle_exceptions.
28788         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
28789         as unused and give dummy FP_RND_NEAREST initializer.
28790         (FP_INHIBIT_RESULTS): Define.
28791         (___Q_simulate_exceptions): Update declaration.
28792         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
28793         formatting.
28794         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
28795         as unused and give dummy FP_RND_NEAREST initializer.
28796         (__Qp_handle_exceptions): Update declaration.
28797         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
28798         formatting.
28799
28800 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
28801
28802         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
28803         the temporary FPU control word.
28804         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
28805         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
28806         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
28807         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
28808         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
28809         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
28810         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
28811         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
28812         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28813         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
28814         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28815
28816 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
28817
28818         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
28819         fields.
28820
28821 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
28822
28823         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
28824         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
28825         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
28826         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
28827         Likewise.
28828         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
28829         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
28830         Likewise.
28831
28832 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
28833
28834         * po/h.po: Update from translation team.
28835
28836 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
28837
28838         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
28839
28840         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
28841         handling of denormals.
28842         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
28843         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
28844         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
28845         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
28846         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
28847         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
28848         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
28849         Likewise.
28850
28851 2012-05-26  Marek Polacek  <polacek@redhat.com>
28852
28853         [BZ #14152]
28854         * math/libm-test.inc (fma_test): Don't always expect underflow
28855         exception.
28856
28857 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28858
28859         [BZ #12416]
28860         * elf/tst-execstack.c: Include stackinfo.h.
28861         (do_test): Adjust test case to ensure that pthread_getattr_np
28862         behaviour remains the same after marking stack executable.
28863
28864 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
28865
28866         * sysdeps/unix/sysv/linux/kernel-features.h
28867         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
28868         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
28869         kernel-features.h.
28870         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
28871         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
28872         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
28873         kernel-features.h.
28874         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
28875         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
28876
28877 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
28878
28879         * configure.in: Define the default includes to being none.
28880         * configure: Regenerated.
28881
28882 2012-05-25  Roland McGrath  <roland@hack.frob.com>
28883
28884         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
28885         * sysdeps/x86_64/setjmp.S: Likewise.
28886         * sysdeps/i386/bsd-setjmp.S: Likewise.
28887         * sysdeps/i386/bsd-_setjmp.S: Likewise.
28888         * sysdeps/i386/setjmp.S: Likewise.
28889         * sysdeps/i386/__longjmp.S: Likewise.
28890         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
28891         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
28892
28893         * include/stap-probe.h: New file.
28894         * configure.in: Handle --enable-systemtap.
28895         * configure: Regenerated.
28896         * config.h.in (USE_STAP_PROBE): New #undef.
28897         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
28898         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
28899         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
28900
28901 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
28902
28903         [BZ #13717]
28904         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
28905         to 2.4.0 where earlier.
28906         * sysdeps/unix/sysv/linux/configure: Regenerated.
28907         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
28908         <kernel-features.h>.
28909         [__ASSUME_32BITUIDS]: Make code unconditional.
28910         [!__ASSUME_32BITUIDS]: Remove conditional code.
28911         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
28912         <kernel-features.h>.
28913         [__ASSUME_32BITUIDS]: Make code unconditional.
28914         [!__ASSUME_32BITUIDS]: Remove conditional code.
28915         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
28916         [__ASSUME_32BITUIDS]: Make code unconditional.
28917         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
28918         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
28919         <kernel-features.h>.
28920         [__ASSUME_32BITUIDS]: Make code unconditional.
28921         [!__ASSUME_32BITUIDS]: Remove conditional code.
28922         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
28923         <kernel-features.h>.
28924         [__ASSUME_32BITUIDS]: Make code unconditional.
28925         [!__ASSUME_32BITUIDS]: Remove conditional code.
28926         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
28927         <kernel-features.h>.
28928         [__ASSUME_32BITUIDS]: Make code unconditional.
28929         [!__ASSUME_32BITUIDS]: Remove conditional code.
28930         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
28931         <kernel-features.h>.
28932         [__ASSUME_32BITUIDS]: Make code unconditional.
28933         [!__ASSUME_32BITUIDS]: Remove conditional code.
28934         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
28935         <kernel-features.h>.
28936         [__ASSUME_32BITUIDS]: Make code unconditional.
28937         [!__ASSUME_32BITUIDS]: Remove conditional code.
28938         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
28939         <kernel-features.h>.
28940         [__ASSUME_32BITUIDS]: Make code unconditional.
28941         [!__ASSUME_32BITUIDS]: Remove conditional code.
28942         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
28943         <kernel-features.h>.
28944         [__ASSUME_32BITUIDS]: Make code unconditional.
28945         [!__ASSUME_32BITUIDS]: Remove conditional code.
28946         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
28947         <kernel-features.h>.
28948         [__ASSUME_32BITUIDS]: Make code unconditional.
28949         [!__ASSUME_32BITUIDS]: Remove conditional code.
28950         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
28951         <kernel-features.h>.
28952         [__ASSUME_32BITUIDS]: Make code unconditional.
28953         [!__ASSUME_32BITUIDS]: Remove conditional code.
28954         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
28955         <kernel-features.h>.
28956         [__ASSUME_32BITUIDS]: Make code unconditional.
28957         [!__ASSUME_32BITUIDS]: Remove conditional code.
28958         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
28959         <kernel-features.h>.
28960         [__NR_setresgid] (__setresgid): Do not declare.
28961         [__ASSUME_32BITUIDS]: Make code unconditional.
28962         [!__ASSUME_32BITUIDS]: Remove conditional code.
28963         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
28964         <kernel-features.h>.
28965         [__NR_setresuid] (__setresuid): Do not declare.
28966         [__ASSUME_32BITUIDS]: Make code unconditional.
28967         [!__ASSUME_32BITUIDS]: Remove conditional code.
28968         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
28969         <kernel-features.h>.
28970         [__ASSUME_32BITUIDS]: Make code unconditional.
28971         [!__ASSUME_32BITUIDS]: Remove conditional code.
28972         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
28973         <kernel-features.h>.
28974         [__ASSUME_32BITUIDS]: Make code unconditional.
28975         [!__ASSUME_32BITUIDS]: Remove conditional code.
28976         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
28977         <kernel-features.h>.
28978         [__ASSUME_32BITUIDS]: Make code unconditional.
28979         [!__ASSUME_32BITUIDS]: Remove conditional code.
28980         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
28981         <kernel-features.h>.
28982         [__ASSUME_32BITUIDS]: Make code unconditional.
28983         [!__ASSUME_32BITUIDS]: Remove conditional code.
28984         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
28985         <kernel-features.h>.
28986         [__ASSUME_32BITUIDS]: Make code unconditional.
28987         [!__ASSUME_32BITUIDS]: Remove conditional code.
28988         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
28989         <kernel-features.h>.
28990         [__ASSUME_32BITUIDS]: Make code unconditional.
28991         [!__ASSUME_32BITUIDS]: Remove conditional code.
28992         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
28993         <kernel-features.h>.
28994         [__ASSUME_32BITUIDS]: Make code unconditional.
28995         [!__ASSUME_32BITUIDS]: Remove conditional code.
28996         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
28997         <kernel-features.h>.
28998         [__ASSUME_32BITUIDS]: Make code unconditional.
28999         [!__ASSUME_32BITUIDS]: Remove conditional code.
29000         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
29001         <kernel-features.h>.
29002         [__ASSUME_32BITUIDS]: Make code unconditional.
29003         [!__ASSUME_32BITUIDS]: Remove conditional code.
29004         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
29005         <kernel-features.h>.
29006         [__ASSUME_32BITUIDS]: Make code unconditional.
29007         [!__ASSUME_32BITUIDS]: Remove conditional code.
29008         * sysdeps/unix/sysv/linux/kernel-features.h
29009         (__ASSUME_SETRESUID_SYSCALL): Remove.
29010         (__ASSUME_SETRESGID_SYSCALL): Likewise.
29011         (__ASSUME_32BITUIDS): Likewise.
29012         (__ASSUME_LDT_WORKS): Likewise.
29013         (__ASSUME_O_DIRECTORY): Likewise.
29014         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
29015         architecture but not kernel version.
29016         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
29017         (__ASSUME_MMAP2_SYSCALL): Likewise.
29018         (__ASSUME_STAT64_SYSCALL): Likewise.
29019         (__ASSUME_IPC64): Likewise.
29020         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
29021         <kernel-features.h>.
29022         [__ASSUME_32BITUIDS]: Make code unconditional.
29023         [!__ASSUME_32BITUIDS]: Remove conditional code.
29024         * sysdeps/unix/sysv/linux/opendir.c: Do not include
29025         <kernel-features.h>.
29026         [__ASSUME_O_DIRECTORY]: Make code unconditional.
29027         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
29028         132096]: Remove conditional code.
29029         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
29030         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
29031         <kernel-features.h>.
29032         [__ASSUME_32BITUIDS]: Make code unconditional.
29033         [!__ASSUME_32BITUIDS]: Remove conditional code.
29034         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
29035         <kernel-features.h>.
29036         [__ASSUME_32BITUIDS]: Make code unconditional.
29037         [!__ASSUME_32BITUIDS]: Remove conditional code.
29038         * sysdeps/unix/sysv/linux/setegid.c: Do not include
29039         <kernel-features.h>.
29040         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
29041         unconditional.
29042         (__setresgid): Do not declare.
29043         [__ASSUME_32BITUIDS]: Make code unconditional.
29044         [!__ASSUME_32BITUIDS]: Remove conditional code.
29045         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
29046         <kernel-features.h>.
29047         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
29048         unconditional.
29049         (__setresuid): Do not declare.
29050         [__ASSUME_32BITUIDS]: Make code unconditional.
29051         [!__ASSUME_32BITUIDS]: Remove conditional code.
29052         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
29053         <kernel-features.h>.
29054         [__ASSUME_32BITUIDS]: Make code unconditional.
29055         [!__ASSUME_32BITUIDS]: Remove conditional code.
29056         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
29057         <kernel-features.h>.
29058         [__ASSUME_32BITUIDS]: Make code unconditional.
29059         [!__ASSUME_32BITUIDS]: Remove conditional code.
29060
29061 2012-05-25  Richard Henderson  <rth@twiddle.net>
29062
29063         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
29064         dl_hwcap to ifunc resolver.
29065         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
29066         elf_ifunc_invoke.
29067         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
29068         dl_hwcap to ifunc resolver.
29069         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
29070
29071 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
29072
29073         [BZ #14153]
29074         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
29075         for |x| <= 2**-26, not 2**-57.
29076         * math/libm-test.inc (acos_test): Do not allow spurious underflow
29077         exception.
29078
29079 2012-05-24  Jeff Law  <law@redhat.com>
29080
29081         * stdio-common/Makefile (tests): Add bug25.
29082         * stdio-common/bug25.c: New test.
29083
29084 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
29085
29086         [BZ #13576]
29087         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
29088         multiple of MALLOC_ALIGNMENT in size.
29089         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
29090
29091 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
29092
29093         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
29094         Require >= 256.
29095         (FILENAME_MAX): Use macro-int-constant.
29096         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
29097         (_IOFBF): Use macro-int-constant.
29098         (_IOLBF): Likewise.
29099         (_IONBF): Likewise.
29100         (SEEK_CUR): Likewise.
29101         (SEEK_END): Likewise.
29102         (SEEK_SET): Likewise.
29103         (TMP_MAX): Likewise.
29104         (EOF): Use macro-int-constant.  Require < 0.
29105         (NULL): Use macro-constant.  Require == 0.
29106         (stdin): Require type to be FILE *.
29107         (stdout): Likewise.
29108         (stderr): Likewise.
29109         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
29110         macro-int-constant.
29111         (EXIT_SUCCESS): Likewise.
29112         (NULL): Use macro-constant.  Require == 0.
29113         (RAND_MAX): Use macro-int-constant.
29114         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
29115         [C99-based standards] (strtof): Require function.
29116         [C99-based standards] (strtold): Likewise.
29117         [C99-based standards] (strtoll): Likewise.
29118         [C99-based standards] (strtoull): Likewise.
29119         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
29120         [ISO || ISO99 || ISO11] (limits.h): Likewise.
29121         [ISO || ISO99 || ISO11] (math.h): Likewise.
29122         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
29123         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
29124         [ISO || ISO99 || ISO11] (*_t): Do not allow.
29125
29126 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
29127
29128         [BZ #14132]
29129         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
29130         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
29131         * intl/dgettext.c (DCGETTEXT): Likewise.
29132         * intl/gettext.c (DCGETTEXT): Likewise.
29133         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
29134         * posix/regex_internal.h (gettext): Likewise.
29135         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
29136         Remove declaration.
29137         * include/argz.h (__argz_count_internal)
29138         (__argz_stringify_internal): Remove declaration.
29139         (__argz_count, __argz_stringify): Declare hidden proto.
29140         * intl/dcgettext.c: Remove use of INTDEF.
29141         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
29142         * string/argz-stringify.c: Likewise.
29143         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
29144         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
29145         Declare hidden proto.
29146         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
29147         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
29148         Declare hidden proto.
29149         * include/stdio.h (__asprintf_internal): Don't declare.
29150         (__asprintf): Don't define as macro.  Declare hidden proto.
29151         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
29152         (__fsetlocking): Declare hidden proto.
29153         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
29154         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
29155         hidden proto.
29156         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
29157         (_IO_setlinebuf): Remove use of INTUSE.
29158         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
29159         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
29160         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
29161         Remove declaration.
29162         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
29163         (_IO_do_flush): Remove use of INTUSE.
29164         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
29165         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
29166         (_IO_adjust_column, _IO_least_wmarker)
29167         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
29168         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
29169         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
29170         (_IO_default_doallocate, _IO_wdefault_doallocate)
29171         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
29172         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
29173         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
29174         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
29175         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
29176         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
29177         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
29178         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
29179         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
29180         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
29181         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
29182         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
29183         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
29184         proto.
29185         (_IO_flush_all_internal, _IO_adjust_column_internal)
29186         (_IO_default_uflow_internal, _IO_default_finish_internal)
29187         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
29188         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
29189         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
29190         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
29191         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
29192         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
29193         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
29194         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
29195         (_IO_file_close_internal, _IO_file_close_it_internal)
29196         (_IO_file_underflow_internal, _IO_file_overflow_internal)
29197         (_IO_file_init_internal, _IO_file_attach_internal)
29198         (_IO_file_fopen_internal, _IO_file_read_internal)
29199         (_IO_file_sync_internal, _IO_file_seek_internal)
29200         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
29201         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
29202         (_IO_str_underflow_internal, _IO_str_overflow_internal)
29203         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
29204         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
29205         (_IO_list_all_internal, _IO_link_in_internal)
29206         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
29207         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
29208         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
29209         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
29210         (_IO_do_write_internal, _IO_padn_internal)
29211         (_IO_getline_info_internal, _IO_getline_internal)
29212         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
29213         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
29214         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
29215         (_IO_vfscanf_internal, _IO_vfprintf_internal)
29216         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
29217         (_IO_init_internal, _IO_un_link_internal): Don't declare.
29218         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
29219         with libc_hidden_ver, remove use of INTUSE.
29220         * libio/genops.c: Likewise.
29221         * libio/freopen.c: Likewise.
29222         * libio/freopen64.c: Likewise.
29223         * libio/iofclose.c: Likewise.
29224         * libio/iofdopen.c: Likewise.
29225         * libio/iofflush.c: Likewise.
29226         * libio/iofflush_u.c: Likewise.
29227         * libio/iofgets.c: Likewise.
29228         * libio/iofgets_u.c: Likewise.
29229         * libio/iofopen.c: Likewise.
29230         * libio/iofopncook.c: Likewise.
29231         * libio/iofread.c: Likewise.
29232         * libio/iofread_u.c: Likewise.
29233         * libio/ioftell.c: Likewise.
29234         * libio/iofwrite.c: Likewise.
29235         * libio/iogetline.c: Likewise.
29236         * libio/iogets.c: Likewise.
29237         * libio/iogetwline.c: Likewise.
29238         * libio/iopadn.c: Likewise.
29239         * libio/iopopen.c: Likewise.
29240         * libio/ioseekoff.c: Likewise.
29241         * libio/ioseekpos.c: Likewise.
29242         * libio/iosetbuffer.c: Likewise.
29243         * libio/iosetvbuf.c: Likewise.
29244         * libio/ioungetc.c: Likewise.
29245         * libio/ioungetwc.c: Likewise.
29246         * libio/iovdprintf.c: Likewise.
29247         * libio/iovsprintf.c: Likewise.
29248         * libio/iovsscanf.c: Likewise.
29249         * libio/memstream.c: Likewise.
29250         * libio/obprintf.c: Likewise.
29251         * libio/oldfileops.c: Likewise.
29252         * libio/oldiofclose.c: Likewise.
29253         * libio/oldiofdopen.c: Likewise.
29254         * libio/oldiofopen.c: Likewise.
29255         * libio/oldiopopen.c: Likewise.
29256         * libio/oldstdfiles.c: Likewise.
29257         * libio/putc.c: Likewise.
29258         * libio/setbuf.c: Likewise.
29259         * libio/setlinebuf.c: Likewise.
29260         * libio/stdfiles.c: Likewise.
29261         * libio/strops.c: Likewise.
29262         * libio/vasprintf.c: Likewise.
29263         * libio/vscanf.c: Likewise.
29264         * libio/vsnprintf.c: Likewise.
29265         * libio/vswprintf.c: Likewise.
29266         * libio/wfiledoalloc.c: Likewise.
29267         * libio/wfileops.c: Likewise.
29268         * libio/wgenops.c: Likewise.
29269         * libio/wmemstream.c: Likewise.
29270         * libio/wstrops.c: Likewise.
29271         * libio/__fpurge.c: Likewise.
29272         * libio/__fsetlocking.c: Likewise.
29273         * assert/assert.c: Likewise.
29274         * debug/fgets_chk.c: Likewise.
29275         * debug/fgets_u_chk.c: Likewise.
29276         * debug/fread_chk.c: Likewise.
29277         * debug/fread_u_chk.c: Likewise.
29278         * debug/gets_chk.c: Likewise.
29279         * debug/obprintf_chk.c: Likewise.
29280         * debug/vasprintf_chk.c: Likewise.
29281         * debug/vdprintf_chk.c: Likewise.
29282         * debug/vsnprintf_chk.c: Likewise.
29283         * debug/vsprintf_chk.c: Likewise.
29284         * malloc/mtrace.c: Likewise.
29285         * misc/error.c: Likewise.
29286         * misc/syslog.c: Likewise.
29287         * stdio-common/asprintf.c: Likewise.
29288         * stdio-common/fxprintf.c: Likewise.
29289         * stdio-common/getw.c: Likewise.
29290         * stdio-common/isoc99_fscanf.c: Likewise.
29291         * stdio-common/isoc99_scanf.c: Likewise.
29292         * stdio-common/isoc99_vfscanf.c: Likewise.
29293         * stdio-common/isoc99_vscanf.c: Likewise.
29294         * stdio-common/isoc99_vsscanf.c: Likewise.
29295         * stdio-common/printf-prs.c: Likewise.
29296         * stdio-common/printf_fp.c: Likewise.
29297         * stdio-common/printf_fphex.c: Likewise.
29298         * stdio-common/printf_size.c: Likewise.
29299         * stdio-common/putw.c: Likewise.
29300         * stdio-common/scanf.c: Likewise.
29301         * stdio-common/sprintf.c: Likewise.
29302         * stdio-common/tmpfile.c: Likewise.
29303         * stdio-common/vfprintf.c: Likewise.
29304         * stdio-common/vfscanf.c: Likewise.
29305         * stdlib/strfmon_l.c: Likewise.
29306         * sunrpc/openchild.c: Likewise.
29307         * sunrpc/xdr_stdio.c: Likewise.
29308         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
29309         * sysdeps/mach/hurd/tmpfile.c: Likewise.
29310
29311 2012-05-24  Roland McGrath  <roland@hack.frob.com>
29312
29313         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
29314
29315         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
29316         in the third column, to generate for the shared library an IFUNC
29317         that uses _dl_vdso_vsym.
29318         * Makerules (COMPILE.c, compile-stdin.c): New variables.
29319         * Makeconfig (object-suffixes-noshared): New variable.
29320
29321         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
29322         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
29323         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
29324         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
29325
29326         [BZ #14132]
29327         * include/sys/time.h (__gettimeofday): Remove macro.
29328         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
29329         * time/gettimeofday.c (__gettimeofday): Remove #undef.
29330         Remove INTDEF.
29331         (__gettimeofday): Add libc_hidden_def.
29332         (gettimeofday): Add libc_hidden_weak.
29333         * sysdeps/mach/gettimeofday.c: Likewise.
29334         * sysdeps/posix/gettimeofday.c: Likewise.
29335         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
29336         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
29337         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
29338         (__gettimeofday_internal): Remove strong_alias.
29339         (__gettimeofday): Add libc_hidden_def.
29340         (gettimeofday): Add libc_hidden_weak.
29341         * sysdeps/unix/syscalls.list (gettimeofday):
29342         Remove __gettimeofday_internal alias.
29343
29344 2012-05-24  Daniel Jacobowitz  <drow@false.org>
29345             H.J. Lu  <hongjiu.lu@intel.com>
29346
29347         [BZ #12495]
29348         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
29349         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
29350         (largebin_index_32_big): New.
29351         (largebin_index): Use it for 16-byte alignment.
29352         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
29353         correction with front_misalign.
29354
29355 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
29356
29357         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
29358         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
29359         Likewise.
29360         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
29361         Likewise.
29362         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
29363         Likewise.
29364         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
29365         Likewise.
29366         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
29367         Likewise.
29368         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
29369         Likewise.
29370         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
29371         Likewise.
29372         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
29373         Likewise.
29374         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
29375         Likewise.
29376         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
29377         Likewise.
29378         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
29379         Likewise.
29380         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
29381         Likewise.
29382
29383         * scripts/data/c++-types-x32-linux-gnu.data: New file.
29384         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
29385
29386 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
29387
29388         [BZ #10846]
29389         [BZ #14036]
29390         * math/libm-test.inc (exp_test): Add test from bug 14036.
29391         (pow_test): Add test from bug 10846.
29392
29393         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
29394         and other flags.
29395         (special_function): Do not include flags in test name.
29396         (parse_args): Likewise.
29397         * sysdeps/i386/fpu/libm-test-ulps: Update.
29398         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29399         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29400         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29402
29403         * math/gen-libm-test.pl (%beautify): Add entries for underflow
29404         exceptions.
29405         * math/libm-test.inc ("Philosophy"): Update comment about
29406         exception testing.
29407         (UNDERFLOW_EXCEPTION): New macro.
29408         (UNDERFLOW_EXCEPTION_OK): Likewise.
29409         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
29410         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
29411         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
29412         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
29413         (INVALID_EXCEPTION_OK): Update value.
29414         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
29415         (OVERFLOW_EXCEPTION_OK): Likewise.
29416         (IGNORE_ZERO_INF_SIGN): Likewise.
29417         (test_exceptions): Handle underflow exceptions.
29418         (acos_test): Update for underflow exception expectations.
29419         (cexp_test): Likewise.
29420         (clog_test): Likewise.
29421         (clog10_test): Likewise.
29422         (csqrt_test): Likewise.
29423         (ctan_test): Likewise.
29424         (ctanh_test): Likewise.
29425         (exp_test): Likewise.
29426         (exp10_test): Likewise.
29427         (exp2_test): Likewise.
29428         (expm1_test): Likewise.
29429         (fma_test): Likewise.
29430         (j0_test): Likewise.
29431         (jn_test): Likewise.
29432         (nexttoward_test): Likewise.
29433         (pow_test): Likewise.
29434         (scalbn_test): Likewise.
29435         (scalbln_test): Likewise.
29436         (tan_test): Likewise.
29437         (y1_test): Likewise.
29438         * sysdeps/i386/fpu/libm-test-ulps: Update.
29439         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29440
29441 2012-05-23  David S. Miller  <davem@davemloft.net>
29442
29443         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
29444         (__libc_sigaction): Remove unused local variables.
29445
29446 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
29447
29448         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
29449
29450 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
29451
29452         mktime: avoid signed integer overflow
29453         * time/mktime.c (__mktime_internal): Do not mishandle the case
29454         where diff == INT_MIN.
29455
29456         mktime: simplify computation of average
29457         * time/mktime.c (ranged_convert): Use new time_t_avg function
29458         instead of rolling our own (probably-slower) code.
29459
29460         mktime: do not assume signed right shift propagates sign bit
29461         * time/mktime.c (isdst_differ): New static function.
29462         (__mktime_internal): No need to normalize tm_isdst now.
29463         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
29464         tm_isdst values.
29465
29466         mktime: merge another wrapv change from gnulib
29467         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
29468         from some compilers.
29469
29470         mktime: remove incorrect attempt at unusual arithmetics
29471         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
29472         The code didn't really work on such machines anyway.
29473         (TYPE_MINIMUM): Assume two's complement.
29474         (twos_complement_arithmetic): Verify that long_int and time_t
29475         are two's complement (or unsigned, in the latter case).
29476
29477         mktime: check signed shifts on long_int and time_t, too
29478         * time/mktime.c (SHR): Check that shifts work as desired
29479         on the types long_int and time_t too, as SHR is used on
29480         such types.
29481
29482         mktime: do not assume 'long' is wide enough
29483         * time/mktime.c (verify): Move decl up.
29484         (long_int): New type.
29485         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
29486         to remove assumption in the code that 'long' is wide enough to
29487         store year values.  This assumption is not true on x32 and on
29488         some non-glibc platforms.
29489
29490         mktime: merge wrapv change from gnulib
29491         * time/mktime.c (WRAPV): New macro.
29492         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
29493         (guess_time_tm, __mktime_internal): Do not assume that signed
29494         integer overflow wraps around; modern compilers generate code
29495         where this assumption is no longer valid.
29496
29497 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
29498
29499         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
29500         Replace "jmp L(pseudo_end)" with "ret".
29501         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
29502         Likewise.
29503
29504 2012-05-23  Andreas Jaeger  <aj@suse.de>
29505
29506         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
29507         * sysdeps/unix/sysv/linux/poll.c: Remove file.
29508
29509 2012-05-23  Andreas Jaeger  <aj@suse.de>
29510             Maximilian Attems  <max@stro.at>
29511
29512         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
29513         New macros.
29514
29515 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
29516
29517         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
29518         code so that pseudo_end is just ret and the stack pointer is
29519         correct also for static library in error case.
29520
29521 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
29522
29523         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
29524         move to syscalls.list.
29525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29529
29530         * manual/install.texi (Running make install): Do not mention Linux
29531         kernel version for which pt_chown is not needed.
29532         (Linux): Do not mention problems with nscd with 2.0 kernels.
29533         * INSTALL: Regenerated.
29534
29535 2012-05-23  Andreas Jaeger  <aj@suse.de>
29536
29537         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
29538         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
29539         macro.
29540         * sysdeps/unix/sysv/linux/s390/bits/mman.h
29541         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
29542         * sysdeps/unix/sysv/linux/sh/bits/mman.h
29543         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
29544         * sysdeps/unix/sysv/linux/i386/bits/mman.h
29545         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
29546         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
29547         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
29548         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
29549         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
29550         * sysdeps/unix/sysv/linux/bits/in.h
29551         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
29552
29553 2012-05-22  Roland McGrath  <roland@hack.frob.com>
29554
29555         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
29556         (PREPARE_VERSION): Just use assert instead, it will be elided
29557         under [NDEBUG] anyway.
29558
29559 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
29560
29561         * sysdeps/unix/sysv/linux/Makefile: Include
29562         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
29563         (sysdep_routines): Remove sysctl.
29564         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
29565         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
29566         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
29567         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
29568         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
29569
29570 2012-05-22  Andreas Jaeger  <aj@suse.de>
29571
29572         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
29573         that pseudo_end is just ret and the stack pointer is correct also
29574         for static library in error case.
29575
29576 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
29577
29578         [BZ #14122]
29579         * nss/nsswitch.c (defconfig_entries): New variable.
29580         (__nss_database_lookup): Don't leak defconfig entries.
29581         (nss_parse_service_list): Don't leak on error paths.
29582         (free_database_entries): New function.
29583         (free_defconfig): New function.
29584         (free_mem): Move common code to free_database_entries.
29585
29586 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
29587
29588         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
29589         Add arch_prctl.
29590         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
29591
29592         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
29593         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
29594         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
29595         New macro.
29596         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
29597         (INTERNAL_SYSCALL_TYPES): Likewise.
29598         (LOAD_ARGS_TYPES_[1-6]): Likewise.
29599         (LOAD_REGS_TYPES_[1-6]): Likewise.
29600         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
29601         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
29602
29603 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29604
29605         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
29606         copysignl for GLIBC_2_0.
29607         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
29608         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
29609         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
29610         logbl for GLIBC_2_0.
29611         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
29612         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
29613
29614 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
29615
29616         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
29617         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
29618
29619         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
29620         Use "neg %eax".
29621
29622         * time/mktime.c: Update copyright years.
29623
29624 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
29625
29626         mktime: merge comment-quoting-style change from gnulib
29627         * time/mktime.c: Quote 'like this' in comments.
29628         The GNU coding standards suggest that we no longer quote `like this',
29629         as "`" and "'" are typically rendered asymmetrically nowadays.
29630         The typical gnulib style is to quote 'like this' when quoting
29631         code, and "like this" when quoting English.
29632
29633         * time/mktime.c (compile-command): Add "-I.".
29634
29635         mktime: merge mktime-internal.h change from gnulib
29636         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
29637
29638         mktime: merge time_r change from gnulib
29639         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
29640
29641         mktime: merge DEBUG change from gnulib
29642         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
29643         case system <time.h> has a #define.
29644
29645         mktime: merge <sys/types.h> change from gnulib
29646         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
29647         since <time.t> is now guaranteed to define time_t.
29648
29649         mktime: merge HAVE_CONFIG_H change from gnulib
29650         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
29651
29652 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
29653
29654         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
29655         Use "neg %eax".
29656
29657         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
29658         __rlim_t cast.
29659         (struct rusage): Use anonymous union to pad each field to
29660         __syscall_slong_t.
29661
29662 2012-05-21  David S. Miller  <davem@davemloft.net>
29663
29664         * Makefules (o-iterator): Remove .s cases.
29665         (compile-command.s): Delete.
29666         (COMPILE.s): Delete.
29667         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
29668
29669 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
29670
29671         * configure.in (libc_cv_predef_stack_protector): Only consider
29672         "foobar" and "__stack_chk_fail" lines in libc_undefs.
29673         * configure: Regenerated.
29674
29675 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
29676
29677         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
29678         New macro.  Use R*LP on int and pointer.
29679         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
29680         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
29681         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
29682         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
29683
29684         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
29685         [__WORDSIZE_TIME64_COMPAT32] instead of
29686         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
29687         (struct utmp): Likewise.
29688         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
29689         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
29690         Renamed to ...
29691         (__WORDSIZE_TIME64_COMPAT32): This.
29692         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
29693         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
29694         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
29695         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
29696         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
29697         (__WORDSIZE_TIME64_COMPAT32): New macro.
29698
29699 2012-05-21  Andreas Jaeger  <aj@suse.de>
29700
29701         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
29702         only if [SHARED]. Add prototype for __wcschr_ia32.
29703
29704 2012-05-21  Roland McGrath  <roland@hack.frob.com>
29705
29706         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
29707         of %rbp unmolested in the jmp_buf while mangling the low bits.
29708         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
29709         unmolested high bits of %rbp while demangling the low bits.
29710         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
29711
29712 2012-05-21  Andreas Jaeger  <aj@suse.de>
29713
29714         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
29715         * sunrpc/svc_simple.c: Use it for registerrpc.
29716         * sunrpc/xcrypt.c: Use it for passwd2des.
29717
29718         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
29719
29720 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
29721
29722         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
29723         Don't define if [__SYSCALL_WORDSIZE != 32].
29724         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
29725         New macro.
29726
29727 2012-05-21  Bruno Haible  <bruno@clisp.org>
29728             Andreas Jaeger  <aj@suse.de>
29729
29730         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
29731         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
29732         inptr and inend for must_buffer_ch.
29733         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
29734         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
29735         * stdio-common/Makefile (tests): Remove bug15.
29736         (bug15-ENV): Remove macro.
29737         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
29738         anymore.
29739
29740 2012-05-19  Andreas Jaeger  <aj@suse.de>
29741             Roland McGrath  <roland@hack.frob.com>
29742
29743         * manual/contrib.texi: Completely rewritten. It contains now an
29744         alphabetical list of contributors and their contributions.
29745
29746 2012-05-21  Richard Henderson  <rth@twiddle.net>
29747
29748         * misc/getauxval.c (__getauxval): Use unsigned long int.
29749         * misc/sys/auxv.h: Include <sys/cdefs.h>.
29750         (getauxval): Use unsigned long int.
29751
29752 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
29753
29754         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
29755
29756 2012-05-21  Roland McGrath  <roland@hack.frob.com>
29757
29758         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
29759         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
29760         __alignof__ (long double).
29761
29762 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29763
29764         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29765
29766 2012-05-20  Richard Henderson  <rth@twiddle.net>
29767
29768         * misc/getauxval.c: New file.
29769         * misc/sys/auxv.h: New file.
29770         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
29771         (routines): Add getauxval.
29772         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
29773         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
29774         * elf/dl-sysdep.c (_dl_auxv): Remove.
29775         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
29776         * elf/dl-support.c (_dl_auxv): New variable.
29777         (_dl_aux_init): Initialize it.
29778         * manual/startup.texi (Auxiliary Vector): New node.
29779         * sysdeps/generic/bits/hwcap.h: New file.
29780         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
29781         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
29782         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
29783         * sysdeps/sparc/sysdep.h: ... here.  Include it.
29784         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
29785         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
29786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29787         Update.
29788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
29789         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
29790         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
29791         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
29792         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
29793         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
29794         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
29795         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
29796
29797 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29798
29799         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29800
29801 2012-05-19  David S. Miller  <davem@davemloft.net>
29802
29803         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29804
29805 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
29806
29807         [BZ #14123]
29808         * math/s_ccosh.c: Include <float.h>
29809         (__ccosh): Avoid internal overflow calculating sinh and cosh
29810         values before multiplying by sin and cos values.
29811         * math/s_ccoshf.c: Likewise.
29812         * math/s_ccoshl.c: Likewise.
29813         * math/s_csin.c: Likewise.
29814         * math/s_csinf.c: Likewise.
29815         * math/s_csinl.c: Likewise.
29816         * math/s_csinh.c: Likewise.
29817         * math/s_csinhf.c: Likewise.
29818         * math/s_csinhl.c: Likewise.
29819         * math/libm-test.inc (ccos_test): Add more tests.
29820         (ccosh_test): Likewise.
29821         (csin_test): Likewise.
29822         (csinh_test): Likewise.
29823         * sysdeps/i386/fpu/libm-test-ulps: Update.
29824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29825
29826 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
29827
29828         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
29829         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
29830
29831         * sysdeps/x86_64/x32/_itoa.h: Add comment.
29832
29833 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
29834
29835         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
29836         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
29837         * sysdeps/powerpc/soft-fp/Versions: Likewise.
29838         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
29839         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
29840         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
29841         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
29842         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
29843         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
29844         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
29845         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
29846         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
29847         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
29848         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
29849         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
29850         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
29851         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
29852         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
29853         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
29854         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
29855         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
29856         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
29857         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
29858         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
29859         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
29860         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
29861         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
29862         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
29863         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
29864         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
29865         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
29866
29867 2012-05-18  Andreas Jaeger  <aj@suse.de>
29868
29869         * csu/.gitignore: Delete.
29870
29871 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
29872
29873         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
29874         (timex): Use __syscall_slong_t.
29875
29876 2012-05-18  Andreas Jaeger  <aj@suse.de>
29877             Carlos O'Donell  <carlos_odonell@mentor.com>
29878
29879         * manual/install.texi (Configuring and compiling): Update
29880         description about files modified in the source directory.
29881         * INSTALL: Regenerated.
29882
29883 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
29884
29885         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
29886         value.  Use "or" to set return value to -1.
29887         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
29888         negate return value.
29889
29890 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
29891
29892         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
29893         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
29894         failure if the compiler has Graphite support disabled.
29895         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
29896         Likewise.
29897         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
29898         (CFLAGS-memmove.c): Likewise.
29899         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
29900         Likewise.
29901
29902 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
29903
29904         * sysdeps/x86_64/x32/_itoa.h: New file.
29905
29906         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
29907         getdents system call only if kernel and user dirents have the
29908         same d_ino and d_off.
29909
29910         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
29911         LLONG_MAX != LONG_MAX.
29912         (_itoa_word): Use _ITOA_WORD_TYPE on value.
29913         (_fitoa_word): Likewise.
29914
29915         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
29916         years.
29917         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
29918         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
29919         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
29920
29921         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
29922         include <bits/wordsize.h>.  Check __x86_64__ instead of
29923         __WORDSIZE.
29924         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
29925         if __x86_64__ is defined.  Use anonymous union on fpstate.
29926
29927         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
29928         anonymous union.
29929
29930 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
29931
29932         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
29933         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
29934         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
29935         Refer to _rtld_local_ro instead of _rtld_global_ro.
29936         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
29937         Likewise.
29938         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
29939         Likewise.
29940         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
29941         Likewise.
29942         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
29943         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
29944         of _rtld_global, and rtld_progname instead of _dl_argv[0].
29945
29946         * sysdeps/powerpc/powerpc32/dl-machine.c
29947         (__elf_machine_runtime_setup) [PROF]: Don't reference
29948         _dl_prof_resolve.
29949
29950 2012-05-18  Andreas Jaeger  <aj@suse.de>
29951
29952         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
29953         function only available for GCCs before 3.4 since GCC 3.4
29954         introduced a builtin.
29955         (lrint): Likewise.
29956         (llrintf): Likewise.
29957         (llrint): Likewise.
29958         (fmaxf): Likewise.
29959         (fmax): Likewise.
29960         (fminf): Likewise.
29961         (fmin): Likewise.
29962         (rint): Likewise.
29963         (rintf): Likewise.
29964         (nearbyint): Likewise.
29965         (nearbyintf): Likewise.
29966         (ceil): Likewise.
29967         (ceilf): Likewise.
29968         (floor): Likewise.
29969         (floorf): Likewise.
29970
29971 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
29972
29973         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
29974         on both fields and cast pointer to __syscall_ulong_t.
29975
29976         * bits/types.h (__fsword_t): New type.
29977         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
29978         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
29979         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
29980         (__FSWORD_T_TYPE): Likewise.
29981         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
29982         (__FSWORD_T_TYPE): Likewise.
29983         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29984         (__FSWORD_T_TYPE): Likewise.
29985         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
29986         (__FSWORD_T_TYPE): Likewise.
29987         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
29988         __SWORD_TYPE with __fsword_t.
29989         (statfs64): Likewise.
29990
29991 2012-05-17  David S. Miller  <davem@davemloft.net>
29992
29993         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
29994
29995 2012-05-17  Andreas Jaeger  <aj@suse.de>
29996
29997         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
29998         warning.
29999
30000 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
30001
30002         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
30003
30004 2012-05-17  Andreas Jaeger  <aj@suse.de>
30005
30006         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
30007         when it is used.
30008
30009 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
30010
30011         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
30012
30013 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
30014
30015         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
30016         * sysdeps/x86_64/tst-mallocalign1.c: New file.
30017
30018 2012-05-17  Andreas Jaeger  <aj@suse.de>
30019             Carlos O'Donell  <carlos_odonell@mentor.com>
30020
30021         [BZ #14059]
30022         * sysdeps/x86_64/multiarch/init-arch.h
30023         (bit_YMM_Usable): Rename to...
30024         (bit_AVX_Usable): ... this.
30025         (bit_FMA4_Usable): New macro.
30026         (bit_XMM_state): New macro.
30027         (bit_YMM_state): New macro.
30028         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
30029         [__ASSEMBLER__] (index_AVX_Usable): ... this.
30030         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
30031         (CPUID_OSXSAVE): New macro.
30032         (CPUID_AVX): New macro.
30033         (CPUID_FMA4): New macro.
30034         (index_YMM_Usable): Rename to...
30035         (index_AVX_Usable): ... this.
30036         (HAS_AVX): Use HAS_ARCH_FEATURE.
30037         (HAS_FMA4): Likewise.
30038         (HAS_YMM_USABLE): Remove.
30039         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30040         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
30041         are present.
30042         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
30043         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
30044         * sysdeps/x86_64/multiarch/Makefile: Likewise.
30045         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
30046         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
30047
30048 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
30049
30050         * math/libm-test.c: Support platforms without multiple rounding modes.
30051         * math/bug-nextafter.c: Support platforms without FP exceptions.
30052         * math/bug-nexttoward.c: Likewise.
30053         * math/test-fenv.c: Likewise.
30054         * math/test-misc.c: Likewise.
30055         * stdlib/bug-getcontext.c: Likewise.
30056
30057 2012-05-17  Andreas Jaeger  <aj@suse.de>
30058
30059         * manual/examples/search.c (critter_cmp): Change signature to
30060         avoid warnings.
30061         * manual/string.texi (Collation Functions): Likewise.
30062
30063 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30064
30065         * bits/types.h: Fold copyright years.
30066         * bits/typesizes.h: Likewise.
30067         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
30068         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
30069         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
30070         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
30071         * time/time.h: Likewise.
30072
30073 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
30074
30075         [BZ #208]
30076         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
30077         in instead of returning them.  Return void.
30078         (__libc_mallinfo): Accumulate over all arenas.
30079         (__malloc_stats): Adjust for change in int_mallinfo interface.
30080
30081 2012-05-16  Roland McGrath  <roland@hack.frob.com>
30082
30083         [BZ #10375]
30084         * configure.in (NM): Add AC_CHECK_TOOL for it.
30085         (libc_extra_cflags): New substituted variable.
30086         Check for -fstack-protector being used implicitly.
30087         * configure: Regenerated.
30088         * config.make.in (config-extra-cflags): New variable,
30089         gets @libc_extra_cflags@.
30090         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
30091
30092         [BZ #10375]
30093         * configure.in: Check for _FORTIFY_SOURCE being predefined.
30094         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
30095         * configure: Regenerated.
30096         * config.make.in (CPPUNDEFS): New substituted variable.
30097         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
30098         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
30099         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
30100
30101 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30102
30103         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
30104         (mq_attr): Use __syscall_slong_t.
30105
30106 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30107
30108         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
30109         Check __x86_64__ instead of __WORDSIZE.
30110         (_STAT_VER_LINUX): Likewise.
30111         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
30112         __syscall_ulong_t and __syscall_slong_t.
30113         (stat64): Likewise.
30114
30115 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30116
30117         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
30118
30119 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30120
30121         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
30122
30123 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30124
30125         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
30126         __syscall_ulong_t.
30127
30128         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
30129         include <bits/wordsize.h>.  Check __x86_64__ instead of
30130         __WORDSIZE.
30131         (greg_t): Use "__extension__ long long int" if __x86_64__ is
30132         defined.
30133         (mcontext_t): Replace "unsigned long" with "unsigned long long".
30134
30135         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
30136         include <bits/wordsize.h>.  Check __x86_64__ instead of
30137         __WORDSIZE.
30138         (user_regs_struct): Use "__extension__ unsigned long long"
30139         instead of "unsigned long" if __x86_64__ is defined.
30140         (user): Likewise.  Pad after pointer field if __ILP32__ is
30141         defined.
30142
30143 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
30144
30145         * configure.in (makeinfo): Require version 4.5 or later.  Allow
30146         versions 5 to 9.
30147         * configure: Regenerated.
30148         * manual/install.texi (texinfo): Increase version requirement to
30149         4.5 or later.
30150         * INSTALL: Regenerated.
30151
30152         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
30153
30154 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30155
30156         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
30157
30158         * sysdeps/x86_64/x32/ffs.c: New file.
30159
30160         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
30161         __syscall_ulong_t.
30162         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
30163         defined.  Use __syscall_ulong_t.
30164         (shminfo): Use __syscall_ulong_t.
30165         (shm_info): Likewise.
30166
30167         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
30168         __syscall_ulong_t.
30169
30170         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
30171         <bits/wordsize.h>.
30172         (msgqnum_t): Use __syscall_ulong_t.
30173         (msglen_t): Likewise.
30174         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
30175         __syscall_ulong_t.
30176
30177         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
30178         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
30179
30180         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
30181
30182         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
30183         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
30184
30185         * sysvipc/sys/msg.h (msgbuf): Replace long int with
30186         __syscall_slong_t.
30187
30188         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
30189         include <bits/wordsize.h>.  Check __x86_64__ instead of
30190         __WORDSIZE.
30191
30192         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
30193         "unsigned long long int" if __x86_64__ is defined.
30194         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
30195
30196         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
30197         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
30198         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
30199
30200         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
30201         <stdint.h>.
30202         (GET_PC): Cast to uintptr_t first.
30203         (GET_FRAME): Likewise.
30204         (GET_STACK): Likewise.
30205
30206         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
30207         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
30208         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
30209         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
30210         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
30211         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
30212         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
30213         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
30214         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30215         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
30216         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
30217         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
30218         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
30219         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
30220         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
30221         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
30222         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
30223         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
30224         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
30225         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
30226         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
30227         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
30228         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
30229         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
30230         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
30231         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
30232         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
30233         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
30234         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
30235
30236 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
30237
30238         * Makerules (+depfiles): Also collect depfiles from .oS in
30239         $(extra-objs).
30240         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
30241         .oS, $(libnldbl-routines)).
30242
30243         * Makerules (native-compile-mkdep-flags): Define.
30244         * sunrpc/Makefile (extra-objs): Add $(addprefix
30245         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
30246         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
30247         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
30248         calling $(make-target-directory).
30249
30250 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30251
30252         * bits/types.h (__snseconds_t): Removed.
30253         * time/time.h (struct timespec): Replace __snseconds_t with
30254         __syscall_slong_t.
30255         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
30256         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
30257         Likewise.
30258         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
30259         (__SNSECONDS_T_TYPE): Likewise.
30260         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
30261         (__SNSECONDS_T_TYPE): Likewise.
30262         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
30263         (__SNSECONDS_T_TYPE): Likewise.
30264
30265 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30266
30267         * sysdeps/mach/hurd/bits/typesizes.h
30268         (__SYSCALL_SLONG_TYPE): New macro.
30269         (__SYSCALL_ULONG_TYPE): Likewise.
30270
30271 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30272
30273         * bits/types.h (__syscall_slong_t): New type.
30274         (__syscall_ulong_t): Likewise.
30275
30276         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
30277         (__SYSCALL_ULONG_TYPE): Likewise.
30278         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
30279         (__SYSCALL_SLONG_TYPE): Likewise.
30280         (__SYSCALL_ULONG_TYPE): Likewise.
30281         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
30282         (__SYSCALL_SLONG_TYPE): Likewise.
30283         (__SYSCALL_ULONG_TYPE): Likewise.
30284         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
30285         (__SYSCALL_SLONG_TYPE): Likewise.
30286         (__SYSCALL_ULONG_TYPE): Likewise.
30287
30288 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30289
30290         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
30291         Add sigaltstack-offsets.sym.
30292         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
30293         <sigaltstack-offsets.h>.
30294         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
30295         longjmp_msg pointer.
30296         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
30297         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
30298         signal stack.
30299         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
30300
30301 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
30302
30303         * elf/stackguard-macros.h: Remove file.
30304         * sysdeps/generic/stackguard-macros.h: New file.
30305         * sysdeps/i386/stackguard-macros.h: Likewise.
30306         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
30307         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
30308         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
30309         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
30310         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
30311         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
30312         * sysdeps/x86_64/stackguard-macros.h: Likewise.
30313         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
30314         <elf/stackguard-macros.h>.
30315
30316         [BZ #14109]
30317         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
30318         __aligned__ in attribute.
30319         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
30320         (gregset_t): Likewise.
30321
30322 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30323
30324         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
30325         * sysdeps/x86_64/64/Implies-after: Here.  New file.
30326         * sysdeps/x86_64/x32/Implies-after: New file.
30327
30328 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30329
30330         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
30331         and access return value for _dl_profile_fixup.  Use R10_LP to
30332         load frame size.
30333
30334 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30335
30336         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
30337
30338 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30339
30340         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
30341         * sysdeps/x86_64/x32/sysdep.h: New file.
30342
30343 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30344
30345         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
30346         * sysdeps/x86_64/setjmp.S: Likewise.
30347
30348 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30349
30350         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
30351         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
30352         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
30353         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
30354         remove unused global constant.
30355
30356 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
30357
30358         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
30359         include of <not-cancel.h>.
30360
30361 2012-05-15  Roland McGrath  <roland@hack.frob.com>
30362
30363         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
30364
30365 2012-05-15  Jeff Law  <law@redhat.com>
30366             Andreas Jaeger  <aj@suse.de>
30367
30368         [BZ #13594]
30369         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
30370         out from...
30371         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
30372         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
30373         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
30374         code changing __hst_map_handle.map.
30375
30376 2012-05-15  Roland McGrath  <roland@hack.frob.com>
30377
30378         * configure.in (sysnames): Look for Implies-before and Implies-after
30379         files.
30380         * configure: Regenerated.
30381
30382 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30383
30384         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
30385         8-byte data alignment with LP_SIZE alignment.
30386
30387 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30388
30389         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
30390         into R10_LP.
30391
30392 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30393
30394         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
30395
30396 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30397
30398         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
30399         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
30400         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
30401         Likewise.
30402         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
30403
30404 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30405
30406         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
30407         (stackinfo_sub_sp): Likewise.
30408
30409 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30410
30411         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
30412         RAX_LP.
30413
30414 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30415
30416         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
30417         into R*_LP.
30418
30419 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30420
30421         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
30422         sizes into R*_LP.
30423
30424 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30425
30426         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
30427
30428 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30429
30430         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
30431         into R11_LP and load __x86_64_shared_cache_size_half into
30432         R8_LP.
30433
30434 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30435
30436         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
30437         R8_LP.
30438
30439 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30440
30441         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
30442         logb for POWER7.
30443         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
30444         logbf for POWER7.
30445         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
30446         logbl for POWER7.
30447         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
30448         powerpc32/power7/fpu/s_logb.c via #include.
30449         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
30450         powerpc32/power7/fpu/s_logbf.c via #include.
30451         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
30452         powerpc32/power7/fpu/s_logbl.c via #include.
30453
30454 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
30455
30456         * README.libm: Remove file.
30457
30458 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30459
30460         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
30461         count for x32.  Use R*_LP and omit operand-size suffix.
30462
30463 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30464
30465         * shlib-versions: Move x86_64-.*-linux.* entries to ...
30466         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
30467         * sysdeps/x86_64/x32/shlib-versions: New file.
30468
30469 2012-05-14  Roland McGrath  <roland@hack.frob.com>
30470
30471         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
30472         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
30473         Use _dl_fatal_printf instead.
30474
30475 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
30476
30477         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
30478         set if not set by the user.  Do not allow for being unset.
30479         * sysdeps/unix/sysv/linux/configure: Regenerated.
30480
30481 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30482
30483         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
30484         the `q' suffix from lea and replace .quad with ASM_ADDR.
30485
30486 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30487
30488         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
30489         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
30490         instead of $17.
30491         (PTR_DEMANGLE): Likewise.
30492
30493 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30494
30495         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
30496         (LP_OP): Likewise.
30497         (ASM_ADDR): Likewise.
30498         (RAX_LP): Likewise.
30499         (RBP_LP): Likewise.
30500         (RBX_LP): Likewise.
30501         (RCX_LP): Likewise.
30502         (RDI_LP): Likewise.
30503         (RSI_LP): Likewise.
30504         (RSP_LP): Likewise.
30505         (R8_LP): Likewise.
30506         (R9_LP): Likewise.
30507         (R10_LP): Likewise.
30508         (R10_LP): Likewise.
30509         (R11_LP): Likewise.
30510         (R12_LP): Likewise.
30511         (R13_LP): Likewise.
30512         (R14_LP): Likewise.
30513         (R15_LP): Likewise.
30514
30515 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30516
30517         * sysdeps/x86_64/x32/dl-machine.h: New file.
30518
30519 2012-05-14  Andreas Jaeger  <aj@suse.de>
30520
30521         * manual/Makefile (subdir): Remove export of subdir.
30522         (all): Remove target.
30523         (.PHONY): Remove all from list.
30524         (mkinstalldirs): Remove.
30525         (.PHONY): Remove installdirs from list.
30526         ($(inst_infodir)/libc.info): Use make-target-directory.
30527         (installdirs): Remove.
30528         (subdir_%): Remove.
30529         (glibc-targets): Remove.
30530         (lib): Remove.
30531         (stubs): Remove.
30532         ($(objpfx)stubs ../po/manual.pot): Remove.
30533         ($(objpfx)stamp%): Remove.
30534         (make-target-directory): Remove.
30535         (subdir_install): Remove.
30536         (routines): Remove.
30537         (aux): Remove.
30538         (sources): Remove.
30539         (objects): Remove.
30540         (headers): Remove.
30541
30542         [BZ #13750]
30543         * manual/.gitignore: Remove, it's not needed anymore.
30544         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
30545         all files in it.
30546         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
30547         directory.
30548         (texis): Renamed to $(objpfx)texis.
30549         (texis-path): New, contains path to generated files.
30550         (chapters.%): Use texis-path for complete path, add extra argument
30551         libc-texinfo.sh.
30552         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
30553         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
30554         (summary,texi, stamp-summary): Use complete path of
30555         files. Generate files in build dir.
30556         (dir-add.texi): Build in build dir.
30557         (libm-err.texi,stamp-libm-err): Likewise.
30558         (version.texi, stamp-version): Likewise.
30559         (.%c.texi): Likewise.
30560         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
30561         (mostlyclean): Remove target.
30562         (realclean): Remove target.
30563         (generated): Add new variable with contents from mostlyclean and
30564         realclean, remove entries duplicated in common-mostlyclean, add
30565         stamp-libm-err and stamp-version.
30566         (generated-dirs): Add libc directory.
30567         ($(inst_infodir)/libc.info): Install files from build dir.
30568
30569         * manual/install.texi (Configuring and compiling): Adjust since
30570         the info files are not part of the tar ball anymore.
30571
30572 2012-05-14  Andreas Jaeger  <aj@suse.de>
30573
30574         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
30575         variable.
30576
30577 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
30578
30579         [BZ #13717]
30580         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
30581         to 2.2.0 where earlier.
30582         * sysdeps/unix/sysv/linux/configure: Regenerated.
30583         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
30584         Remove conditional code.
30585         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
30586         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
30587         Remove conditional code.
30588         [!__NR_lchown]: Likewise.
30589         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
30590         [__NR_lchown]: Likewise.
30591         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
30592         comment referencing __ASSUME_LCHOWN_SYSCALL.
30593         * sysdeps/unix/sysv/linux/i386/sigaction.c
30594         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
30595         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
30596         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
30597         Remove conditional code.
30598         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
30599         (__protocol_available): Remove #if 0 code.
30600         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
30601         conditional code.
30602         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
30603         * sysdeps/unix/sysv/linux/kernel-features.h
30604         (__ASSUME_GETCWD_SYSCALL): Don't define.
30605         (__ASSUME_REALTIME_SIGNALS): Likewise.
30606         (__ASSUME_PREAD_SYSCALL): Likewise.
30607         (__ASSUME_PWRITE_SYSCALL): Likewise.
30608         (__ASSUME_POLL_SYSCALL): Likewise.
30609         (__ASSUME_LCHOWN_SYSCALL): Likewise.
30610         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
30611         non-SPARC.
30612         (__ASSUME_SIOCGIFNAME): Don't define.
30613         (__ASSUME_MSG_NOSIGNAL): Likewise.
30614         (__ASSUME_SENDFILE): Define unconditionally.
30615         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
30616         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
30617         conditional code.
30618         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
30619         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
30620         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
30621         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
30622         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
30623         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
30624         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
30625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
30626         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
30627         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
30629         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
30630         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
30632         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
30633         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
30635         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
30636         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
30638         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
30639         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
30641         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
30642         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
30644         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
30645         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
30647         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
30648         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30649         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
30650         Remove conditional code.
30651         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30652         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
30653         Remove conditional code.
30654         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30655         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
30656         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
30657         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
30658         Remove conditional code.
30659         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30660         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
30661         Remove conditional code.
30662         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30663         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
30664         Remove conditional code.
30665         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30666         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
30667         Remove conditional code.
30668         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30669         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
30670         Remove conditional code.
30671         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30672         * sysdeps/unix/sysv/linux/sh/pwrite64.c
30673         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
30674         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30675         * sysdeps/unix/sysv/linux/sigaction.c
30676         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
30677         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
30678         * sysdeps/unix/sysv/linux/sigpending.c
30679         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
30680         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
30681         * sysdeps/unix/sysv/linux/sigprocmask.c
30682         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
30683         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
30684         * sysdeps/unix/sysv/linux/sigsuspend.c
30685         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
30686         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
30687         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
30688         (__libc_missing_rt_sigs): Remove.
30689         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
30690         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
30691         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
30692         Remove conditional code.
30693         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
30694         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
30695         return 1.
30696         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
30697         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
30698         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
30699         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
30700
30701 2012-05-14  Andreas Jaeger  <aj@suse.de>
30702
30703         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
30704         it's not used in glibc.
30705         (__coshm1): Likewise.
30706         (__acosh1p): Likewise.
30707         (__sgn): Likewise.
30708
30709         * manual/string.texi (Copying and Concatenation): Add missing
30710         variable in concat example.
30711         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
30712
30713 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30714
30715         [BZ #14103]
30716         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
30717         __builtin_clzl with __builtin_clzll.
30718
30719 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30720
30721         [BZ #14104]
30722         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
30723         libc_freeres_ptr.
30724
30725 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30726
30727         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
30728         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
30729         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
30730         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
30731
30732 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
30733
30734         * NEWS: Update ia64 info.
30735
30736 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
30737
30738         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
30739         used as bcopy.
30740
30741 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
30742
30743         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
30744         * sysdeps/unix/syscalls.list (dup3): Likewise.
30745         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
30746         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
30747
30748 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
30749
30750         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
30751         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
30752
30753 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
30754
30755         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
30756         thread pointer.
30757         (TLS_IE): Use mov/add instead of movq/addq to load thread
30758         pointer.
30759         (TLS_GD_PREFIX): New.
30760         (TLS_GD): Use it.
30761
30762 2012-05-11  David S. Miller  <davem@davemloft.net>
30763
30764         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
30765         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
30766         (_FPU_SETCW): Likewise.
30767
30768 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
30769
30770         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
30771         is 32-byte aligned.
30772
30773 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
30774
30775         [BZ #11837]
30776         * iconvdata/gb18030.c: Update tables.
30777         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
30778         characters specially.
30779         (BODY for TO_LOOP): Add encoding of missing ranges.
30780
30781 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
30782
30783         [BZ #13673]
30784         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
30785         * sysdeps/mach/hurd/dup3.c: Likewise.
30786         * sysdeps/mach/hurd/readlinkat.c: Likewise.
30787         * sysdeps/powerpc/memmove.c:: Likewise.
30788
30789 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
30790
30791         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
30792         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
30793
30794 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
30795
30796         * elf/elf.h (R_X86_64_RELATIVE64): New.
30797         (R_X86_64_NUM): Updated.
30798         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
30799         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
30800         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
30801         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
30802         tst-quad1pie tst-quad2pie
30803         (modules-names): Add tst-quadmod1 tst-quadmod2.
30804         ($(objpfx)tst-quad1): New dependency.
30805         ($(objpfx)tst-quad2): Likewise.
30806         ($(objpfx)tst-quad1pie): Likewise.
30807         ($(objpfx)tst-quad2pie): Likewise.
30808         * sysdeps/x86_64/tst-quad1.c: New file.
30809         * sysdeps/x86_64/tst-quad1pie.c: New file.
30810         * sysdeps/x86_64/tst-quad2.c: Likewise.
30811         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
30812         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
30813         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
30814         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
30815         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
30816
30817 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30818
30819         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
30820         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
30821         * streams/stropts.h (t_scalar_t): Define type.
30822
30823         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
30824         (_PATH_PRESERVE): Set to "/var/lib".
30825         (_PATH_RWHODIR): Set to "/var/spool/rwho".
30826
30827         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
30828         instead of int.
30829
30830         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
30831         if __dir_mkfile succeeded.
30832
30833         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
30834         checking for _hurd_dtablesize.  Unlock it right after having
30835         finished _hurd_dtable allocation.
30836
30837 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
30838
30839         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
30840         * sysdeps/mach/hurd/configure: Regenerated.
30841         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
30842         special-casing to...
30843         * sysdeps/gnu/configure.in: ... this new file.
30844         * sysdeps/unix/sysv/linux/configure: Regenerated.
30845         * sysdeps/gnu/configure: New generated file.
30846
30847         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
30848         for Linux: use nsec instead of usec, as well as:
30849         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
30850         members of type struct timespec.
30851         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
30852         New macros.
30853         (struct stat64): Likewise.
30854         (_STATBUF_ST_NSEC): New macro.
30855         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
30856
30857         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
30858         __strtoul_internal rather than strtoul.
30859
30860 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
30861
30862         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
30863         and reject them.
30864
30865 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30866
30867         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
30868         which preserves existing values.
30869         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
30870
30871 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
30872
30873         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
30874         TIMEOUT values.  Return EINVAL for NFDS values either negative or
30875         greater than FD_SETSIZE.
30876
30877 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30878
30879         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
30880         allocated, call __vm_protect to finish enabling the existing space, and
30881         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
30882         allocate the remainder.
30883
30884 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
30885
30886         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
30887         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
30888
30889 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30890
30891         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
30892         sysdeps/mach/hurd/readlink.c.
30893
30894         * posix/tst-sysconf.c (posix_options): Only use
30895         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
30896         _POSIX_SYNCHRONIZED_IO when they are defined
30897         * sysdeps/mach/hurd/bits/posix_opt.h:
30898         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
30899         (_XOPEN_REALTIME): Undefine macro.
30900         (_XOPEN_REALTIME_THREADS): Undefine macro.
30901         (_XOPEN_SHM): Undefine macro.
30902         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
30903         macro to -1.
30904         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
30905         macro to -1.
30906         (_POSIX_ASYNC_IO): Undefine macro.
30907         (_POSIX_PRIORITIZED_IO): Undefine macro.
30908         (_POSIX_SPIN_LOCKS): Define macro to -1.
30909
30910         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
30911         SA_NODEFER, SA_RESETHAND.
30912         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
30913         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
30914         F_DUPFD_CLOEXEC.
30915
30916 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
30917
30918         * elf/Makefile (pldd-modules): Define unconditionally.
30919
30920 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
30921
30922         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
30923
30924 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30925
30926         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
30927         Return ENOENT when name is empty.
30928         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
30929
30930 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
30931
30932         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
30933
30934         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
30935
30936 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30937
30938         Fix mlock in all cases except non-readable pages.
30939         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
30940         instead of VM_PROT_ALL as parameter to __vm_wire function.
30941
30942         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
30943         (__mkdir): When path is `/', just fail with EEXIST.
30944         * sysdeps/mach/hurd/mkdirat.c: Likewise.
30945
30946 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
30947
30948         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
30949         <sys/uio.h> (for writev).
30950         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
30951         and <sys/param.h> (for MIN).
30952
30953 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
30954
30955         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
30956         REQUESTED_TIME.  Properly set the remaining time and return EINTR
30957         if interrupted.
30958
30959 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
30960
30961         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
30962         Depend on against $(link-rpcuserlibs).
30963
30964 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30965
30966         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
30967         (__libc_stack_end): Do not use attribute_relro.
30968         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
30969         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
30970         to libthread-provided value.
30971         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
30972         attribute_relro.
30973
30974 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
30975
30976         [BZ #3748]
30977         * bits/libc-lock.h (__libc_once_get): New macro.
30978         * sysdeps/mach/bits/libc-lock.h: Likewise.
30979         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
30980         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
30981         instead of using implementation details.
30982
30983         * libio/fileops.c: Unconditionally include <kernel-features.h>.
30984         * libio/freopen.c: Likewise.
30985         * libio/freopen64.c: Likewise.
30986         * misc/syslog.c: Likewise.
30987         * nscd/connections.c: Likewise.
30988         * nscd/netgroupcache.c: Likewise.
30989         * sysdeps/posix/getcwd.c: Likewise.
30990
30991 2012-05-10  Roland McGrath  <roland@hack.frob.com>
30992
30993         * math/w_ilogbf.c: Add #include <limits.h>.
30994
30995 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30996
30997         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
30998         path instead of returning without unlocking.
30999
31000         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
31001         immediate-write ioctls.
31002         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
31003
31004 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31005
31006         * sysdeps/mach/hurd/i386/init-first.c (init): Use
31007         __builtin_frame_address instead of making assumptions about the
31008         location of the return address relative to DATA.  Force early load of
31009         the return address.
31010         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
31011         __builtin_frame_address.
31012
31013         dup3 for GNU Hurd.
31014         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
31015         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
31016         implement dup3 and do some further code clean-ups.
31017         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
31018         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
31019
31020 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31021
31022         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
31023
31024         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
31025         HURD_CRITICAL_END around holding _hurd_dtable_lock.
31026         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
31027         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
31028         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
31029         d->port.lock.
31030
31031         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
31032         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
31033         when handler == SIG_ERR, not when handler != SIG_ERR.
31034
31035 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31036
31037         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
31038         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
31039         definitions.
31040
31041         accept4 for GNU Hurd.
31042         * include/sys/socket.h (__libc_accept4): New prototype.
31043         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
31044         to implement __libc_accept4.
31045         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
31046         __libc_accept4.
31047         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
31048
31049         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
31050         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
31051         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
31052         signal-defines.sym.
31053
31054 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31055
31056         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
31057
31058 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31059
31060         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
31061         assertion on O_CLOEXEC flag.
31062         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
31063         * hurd/intern-fd.c: Likewise.
31064         * hurd/port2fd.c: Likewise.
31065
31066 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31067
31068         [BZ #3906]
31069         * bits/in.h (IPV6_PKTINFO): Define new macro.
31070         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
31071
31072 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31073
31074         [BZ #13954]
31075         [BZ #13955]
31076         [BZ #13956]
31077         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
31078         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
31079         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
31080         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
31081         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
31082         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
31083         * math/libm-test.inc (logb_test) : Additional logb tests.
31084
31085 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
31086             Andreas Jaeger  <aj@suse.de>
31087
31088         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
31089         * configure: Regenerated.
31090         * config.h.in (LINK_OBSOLETE_RPC): New macro.
31091         * config.make.in (link-obsolete-rpc): New substituted variable.
31092         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
31093         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
31094         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
31095         (shared-only-routines): Don't set it under [link-obsolete-rpc],
31096         so that libc.a contains the symbols.
31097         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
31098         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
31099         * sunrpc/auth_none.c: Likewise.
31100         * sunrpc/auth_unix.c: Likewise.
31101         * sunrpc/authdes_prot.c: Likewise.
31102         * sunrpc/authuxprot.c: Likewise.
31103         * sunrpc/clnt_gen.c: Likewise.
31104         * sunrpc/clnt_perr.c: Likewise.
31105         * sunrpc/clnt_raw.c: Likewise.
31106         * sunrpc/clnt_simp.c: Likewise.
31107         * sunrpc/clnt_tcp.c: Likewise.
31108         * sunrpc/clnt_udp.c: Likewise.
31109         * sunrpc/clnt_unix.c: Likewise.
31110         * sunrpc/des_crypt.c: Likewise.
31111         * sunrpc/des_soft.c: Likewise.
31112         * sunrpc/get_myaddr.c: Likewise.
31113         * sunrpc/key_call.c: Likewise.
31114         * sunrpc/key_prot.c: Likewise.
31115         * sunrpc/netname.c: Likewise.
31116         * sunrpc/pm_getmaps.c: Likewise.
31117         * sunrpc/pm_getport.c: Likewise.
31118         * sunrpc/pmap_clnt.c: Likewise.
31119         * sunrpc/pmap_prot.c: Likewise.
31120         * sunrpc/pmap_prot2.c: Likewise.
31121         * sunrpc/pmap_rmt.c: Likewise.
31122         * sunrpc/publickey.c: Likewise.
31123         * sunrpc/rpc_cmsg.c: Likewise.
31124         * sunrpc/rpc_common.c: Likewise.
31125         * sunrpc/rpc_dtable.c: Likewise.
31126         * sunrpc/rpc_prot.c: Likewise.
31127         * sunrpc/rpc_thread.c: Likewise.
31128         * sunrpc/rtime.c: Likewise.
31129         * sunrpc/svc.c: Likewise.
31130         * sunrpc/svc_auth.c: Likewise.
31131         * sunrpc/svc_raw.c: Likewise.
31132         * sunrpc/svc_run.c: Likewise.
31133         * sunrpc/svc_tcp.c: Likewise.
31134         * sunrpc/svc_udp.c: Likewise.
31135         * sunrpc/svc_unix.c: Likewise.
31136         * sunrpc/svcauth_des.c: Likewise.
31137         * sunrpc/xcrypt.c: Likewise.
31138         * sunrpc/xdr.c: Likewise.
31139         * sunrpc/xdr_array.c: Likewise.
31140         * sunrpc/xdr_float.c: Likewise.
31141         * sunrpc/xdr_intXX_t.c: Likewise.
31142         * sunrpc/xdr_mem.c: Likewise.
31143         * sunrpc/xdr_rec.c: Likewise.
31144         * sunrpc/xdr_ref.c: Likewise.
31145         * sunrpc/xdr_sizeof.c: Likewise.
31146         * sunrpc/xdr_stdio.c: Likewise.
31147
31148 2012-05-10  Roland McGrath  <roland@hack.frob.com>
31149
31150         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
31151         change.  Update copyright years.
31152
31153 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
31154
31155         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
31156
31157 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
31158             Joseph Myers  <joseph@codesourcery.com>
31159             Paul Pluzhnikov  <ppluzhnikov@google.com>
31160
31161         [BZ #14012]
31162         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
31163         requiring rpcgen.
31164         [cross-compiling] (extra-libs): Likewise.
31165         [cross-compiling] (extra-libs-others): Likewise.
31166         [cross-compiling] (librpcsvc-routines): Likewise.
31167         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
31168         [cross-compiling] (omit-deps): Likewise.
31169         (sunrpc-CPPFLAGS): New variable.
31170         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
31171         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
31172         (cross-rpcgen-objs): New variable.
31173         (extra-objs): Append $(cross-rpcgen-objs).
31174         ($(cross-rpcgen-objs)): New rule.
31175         ($(objpfx)cross-rpcgen): Likewise.
31176         (rpcgen-cmd): Define to use $(built-program-file).  Expand
31177         comment.
31178         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
31179         ($(objpfx)x%.stmp): Likewise.
31180         * sunrpc/proto.h [IS_IN_build] (_): Define.
31181         [IS_IN_build] (_libc_intl_domainname): Likewise.
31182
31183 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
31184
31185         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
31186         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
31187         and R_X86_64_TPOFF64.
31188
31189 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
31190
31191         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
31192         sysdeps/unix/sysv/syscalls.list.
31193         (stime): Likewise.
31194         (utime): Likewise.
31195         * sysdeps/unix/sysv/syscalls.list: Remove file.
31196
31197 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
31198
31199         [BZ #3440]
31200         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
31201         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
31202         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
31203         (__LC_IDENTIFICATION): Make these macros useful in #if
31204         expressions, as required by C99.
31205
31206 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
31207
31208         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
31209         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
31210         after this.
31211
31212 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
31213
31214         * stdlib/longlong.h: Updated from GCC.
31215
31216 2012-05-09  Andreas Jaeger  <aj@suse.de>
31217
31218         * nscd/nscd.c (run_modes): Make named enum, reorder so that
31219         default is first entry.
31220         (run_mode): Set type.
31221         (main): Remove informal message about syslog.
31222         (options): Fix typo.
31223
31224         [BZ #14053]
31225         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
31226         to asm.
31227         (lrint): Likewise.
31228         (llrintf): Likewise.
31229         (llrint): Likewise.
31230         (rint): Likewise.
31231         (rintf): Likewise.
31232         (nearbyint): Likewise.
31233         (nearbyintf): Likewise.
31234
31235 2012-05-09  Andreas Jaeger  <aj@suse.de>
31236             Pedro Alves  <palves@redhat.com>
31237
31238         * nscd/nscd.c (run_mode): Use enum.
31239         (main): Cleanup coding style issue.
31240
31241 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
31242             Andreas Jaeger  <aj@suse.de>
31243
31244         * nscd/nscd.c (go_background): Replaced with...
31245         (run_mode): ... this.
31246         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
31247         (options): Add -F --foreground.
31248         (main): Implement it.
31249         (parse_opt): Parse it.
31250
31251 2012-05-09  Andreas Jaeger  <aj@suse.de>
31252
31253         [BZ #14083]
31254         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
31255         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
31256         -Wconversion warning.
31257         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
31258         Likewise.
31259
31260 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
31261
31262         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
31263         == 0.
31264         (LC_ALL): Use macro-int-constant.
31265         (LC_COLLATE): Likewise.
31266         (LC_CTYPE): Likewise.
31267         (LC_MESSAGES): Likewise.
31268         (LC_MONETARY): Likewise.
31269         (LC_NUMERIC): Likewise.
31270         (LC_TIME): Likewise.
31271         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
31272         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
31273         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31274         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
31275         Specify type.
31276         [C99-based standards] (float_t): Expect type.
31277         [C99-based standards] (double_t): Expect type.
31278         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
31279         type.
31280         [C99-based standards] (HUGE_VALL): Likewise.
31281         [C99-based standards] (INFINITY): Likewise.
31282         [C99-based standards] (NAN): Likewise.
31283         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
31284         [C99-based standards] (FP_NAN): Likewise.
31285         [C99-based standards] (FP_NORMAL): Likewise.
31286         [C99-based standards] (FP_SUBNORMAL): Likewise.
31287         [C99-based standards] (FP_ZERO): Likewise.
31288         [C99-based standards] (FP_FAST_FMA): Use
31289         optional-macro-int-constant.  Specify type.  Require == 1.
31290         [C99-based standards] (FP_FAST_FMAF): Likewise.
31291         [C99-based standards] (FP_FAST_FMAL): Likewise.
31292         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
31293         [C99-based standards] (FP_ILOGBNAN): Likewise.
31294         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
31295         Specify type.
31296         [C99-based standards] (MATH_ERREXCEPT): Likewise.
31297         [C99-based standards] (math_errhandling): Specify type.
31298         [ISO99 || ISO11] (signgam): Do not allow.
31299         [non-C99-based standards] (copysignf): Do not allow.
31300         [non-C99-based standards] (exp2f): Likewise.
31301         [non-C99-based standards] (log2f): Likewise.
31302         [non-C99-based standards] (modff): Allow.
31303         [non-C99-based standards] (erff): Do not allow.
31304         [non-C99-based standards] (erfcf): Likewise.
31305         [non-C99-based standards] (gammaf): Likewise.
31306         [non-C99-based standards] (hypotf): Likewise.
31307         [non-C99-based standards] (j0f): Likewise.
31308         [non-C99-based standards] (j1f): Likewise.
31309         [non-C99-based standards] (jnf): Likewise.
31310         [non-C99-based standards] (lgammaf): Likewise.
31311         [non-C99-based standards] (tgammaf): Likewise.
31312         [non-C99-based standards] (y0f): Likewise.
31313         [non-C99-based standards] (y1f): Likewise.
31314         [non-C99-based standards] (ynf): Likewise.
31315         [non-C99-based standards] (isnanf): Likewise.
31316         [non-C99-based standards] (acoshf): Likewise.
31317         [non-C99-based standards] (asinhf): Likewise.
31318         [non-C99-based standards] (atanhf): Likewise.
31319         [non-C99-based standards] (cbrtf): Likewise.
31320         [non-C99-based standards] (expm1f): Likewise.
31321         [non-C99-based standards] (ilogbf): Likewise.
31322         [non-C99-based standards] (log1pf): Likewise.
31323         [non-C99-based standards] (logbf): Likewise.
31324         [non-C99-based standards] (nextafterf): Likewise.
31325         [non-C99-based standards] (remainderf): Likewise.
31326         [non-C99-based standards] (rintf): Likewise.
31327         [non-C99-based standards] (scalbf): Likewise.
31328         [non-C99-based standards] (copysignl): Likewise.
31329         [non-C99-based standards] (exp2l): Likewise.
31330         [non-C99-based standards] (log2l): Likewise.
31331         [non-C99-based standards] (modfl): Allow.
31332         [non-C99-based standards] (erfl): Do not allow.
31333         [non-C99-based standards] (erfcl): Likewise.
31334         [non-C99-based standards] (gammal): Likewise.
31335         [non-C99-based standards] (hypotl): Likewise.
31336         [non-C99-based standards] (j0l): Likewise.
31337         [non-C99-based standards] (j1l): Likewise.
31338         [non-C99-based standards] (jnl): Likewise.
31339         [non-C99-based standards] (lgammal): Likewise.
31340         [non-C99-based standards] (tgammal): Likewise.
31341         [non-C99-based standards] (y0l): Likewise.
31342         [non-C99-based standards] (y1l): Likewise.
31343         [non-C99-based standards] (ynl): Likewise.
31344         [non-C99-based standards] (isnanl): Likewise.
31345         [non-C99-based standards] (acoshl): Likewise.
31346         [non-C99-based standards] (asinhl): Likewise.
31347         [non-C99-based standards] (atanhl): Likewise.
31348         [non-C99-based standards] (cbrtl): Likewise.
31349         [non-C99-based standards] (expm1l): Likewise.
31350         [non-C99-based standards] (ilogbl): Likewise.
31351         [non-C99-based standards] (log1pl): Likewise.
31352         [non-C99-based standards] (logbl): Likewise.
31353         [non-C99-based standards] (nextafterl): Likewise.
31354         [non-C99-based standards] (remainderl): Likewise.
31355         [non-C99-based standards] (rintl): Likewise.
31356         [non-C99-based standards] (scalbl): Likewise.
31357         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31358         [non-C99-based standards] (FP_*): Do not allow.
31359         [C99-based standards] (FP_*): Change to
31360         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
31361         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
31362         allow.
31363         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
31364         (SIG_ERR): Likewise.
31365         [X/Open-based standards] (SIG_HOLD): Likewise.
31366         (SIG_IGN): Likewise.
31367         (SIGABRT): Use macro-int-constant.  Specify type.  Require
31368         positive value.
31369         (SIGFPE): Likewise.
31370         (SIGILL): Likewise.
31371         (SIGINT): Likewise.
31372         (SIGSEGV): Likewise.
31373         (SIGTER): Likewise.
31374         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
31375         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
31376         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
31377         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
31378         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
31379         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
31380         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
31381         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
31382         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
31383         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
31384         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
31385         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
31386         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
31387         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
31388         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
31389         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
31390         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
31391         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
31392         [X/Open-based standards] (SIGTRAP): Likewise.
31393         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
31394         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
31395         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
31396         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
31397         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
31398         allow.
31399
31400 2012-05-08  Ian Wienand  <ianw@vmware.com>
31401
31402         [BZ #14080]
31403         * time/tzset.c (__tzset_parse_tz): Update default rules for
31404         daylight time changes in the Energy Policy Act of 2005.
31405
31406 2012-05-09  Andreas Jaeger  <aj@suse.de>
31407
31408         [BZ #13983]
31409         * elf/ldconfig.c (parse_conf): Change string to make clear that
31410         ldconfig only issued a warning if ld.so.conf does not exist.
31411
31412 2012-05-08  David S. Miller  <davem@davemloft.net>
31413
31414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
31415         movxtod instead of popping the value on the stack.
31416
31417         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31418
31419 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
31420
31421         * config.h.in: Add HAVE_ARM_PCS_VFP.
31422
31423 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
31424
31425         [BZ #13979]
31426         * include/features.h: Warn if user requests __FORTIFY_SOURCE
31427         checking but the checks are disabled for any reason.
31428
31429 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
31430
31431         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
31432         and ELF64_R_TYPE with ELFW(R_TYPE).
31433
31434 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
31435
31436         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
31437         (ulimit): Likewise.
31438
31439         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
31440         (settimeofday): Likewise.
31441
31442 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
31443
31444         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
31445         a struct th_u2 inside the union, and move tu_block/tu_code into
31446         a new th_u3 union of tu_block/tu_code inside of that.  Move
31447         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
31448         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
31449         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
31450         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
31451         (th_stuff): Change to th_u1.tu_stuff.
31452         (th_data): Define.
31453         (th_msg): Change to th_u1.th_u2.tu_data.
31454
31455 2012-05-07  David S. Miller  <davem@davemloft.net>
31456
31457         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31458
31459         [BZ #14074]
31460         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
31461         (SETUP_PIC_REG): Use it.
31462         (SETUP_PIC_REG_LEAF): Use it.
31463
31464 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
31465
31466         [BZ #13885]
31467         [BZ #13923]
31468         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
31469         USE_AS_EXPM1L.
31470         (EXPL_FINITE): Likewise.
31471         (FLDLOG): Likewise.
31472         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
31473         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
31474         e_expl.S.
31475         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
31476         USE_AS_EXPM1L.
31477         (EXPL_FINITE): Likewise.
31478         (FLDLOG): Likewise.
31479         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
31480         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
31481         e_expl.S.
31482         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
31483         test of -max_value argument for long double.
31484         * sysdeps/i386/fpu/libm-test-ulps: Update.
31485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31486
31487 2012-05-06  David S. Miller  <davem@davemloft.net>
31488
31489         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
31490         quad soft-float symbols whose references which are compiler
31491         generated.
31492         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
31493
31494 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
31495
31496         [BZ #13884]
31497         [BZ #13914]
31498         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
31499         USE_AS_EXP10L.
31500         (EXPL_FINITE): Likewise.
31501         (FLDLOG): Likewise.
31502         (c0): Likewise.
31503         (c1): Likewise.
31504         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
31505         Adjust comments for base varying.
31506         (__expl_finite): Change alias to EXPL_FINITE.
31507         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
31508         e_expl.S.
31509         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
31510         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
31511         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
31512         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
31513         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
31514         USE_AS_EXP10L.
31515         (EXPL_FINITE): Likewise.
31516         (FLDLOG): Likewise.
31517         (c0): Likewise.
31518         (c1): Likewise.
31519         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
31520         Adjust comments for base varying.
31521         (__expl_finite): Change alias to EXPL_FINITE.
31522         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
31523         tests for bugs.
31524         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
31525
31526         [BZ #14064]
31527         * math/libm-test.inc (check_float_internal): Correct ulp
31528         calculation for subnormal expected results.
31529
31530 2012-05-06  Andreas Jaeger  <aj@suse.de>
31531
31532         * Makeconfig (+math-flags): New, set to -frounding-math.
31533         (+cflags): Add +math-flags so that all of glibc gets compiled with
31534         it.
31535
31536         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
31537
31538 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
31539
31540         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
31541         Disable one test.
31542
31543         [BZ #13787]
31544         [BZ #13922]
31545         [BZ #14036]
31546         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
31547         (__ieee754_expl): Allow for and saturate large arguments.
31548         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
31549         (u_threshold): Likewise.
31550         (__exp): Call __ieee754_exp before checking for overflow and
31551         underflow.
31552         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
31553         (u_threshold): Likewise.
31554         (__expf): Call __ieee754_expf before checking for overflow and
31555         underflow.
31556         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
31557         (u_threshold): Likewise.
31558         (__expl): Call __ieee754_expl before checking for overflow and
31559         underflow.
31560         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
31561         (__ieee754_expl): Allow for and saturate large arguments.
31562         * math/libm-test.inc (exp_test): Add another test.  Do not allow
31563         missing overflow exception on overflow.
31564         (expm1_test): Do not allow missing overflow exception on overflow.
31565
31566         * sysdeps/i386/fpu/e_expl.c: Move to ...
31567         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
31568         rather than using inline asm.
31569         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
31570         * sysdeps/x86_64/fpu/e_expl.S: Copy from
31571         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
31572
31573         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
31574         (nice): Likewise.
31575         (poll): Likewise.
31576         (signal): Likewise.
31577         (time): Likewise.
31578         (times): Likewise.
31579
31580 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
31581
31582         * sysdeps/unix/syscalls.list (adjtime): Add entry from
31583         sysdeps/unix/common/syscalls.list.
31584         (fchmod): Likewise.
31585         (fchown): Likewise.
31586         (ftruncate): Likewise.
31587         (getrusage): Likewise.
31588         (gettimeofday): Likewise.
31589         (setpgid): Likewise.
31590         (setregid): Likewise.
31591         (setreuid): Likewise.
31592         (sigaction): Likewise.
31593         (truncate): Likewise.
31594         (vhangup): Likewise.
31595         * sysdeps/unix/common/syscalls.list: Remove file.
31596         * sysdeps/unix/bsd/Implies: Don't include unix/common.
31597         * sysdeps/unix/sysv/linux/Implies: Likewise.
31598
31599 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
31600
31601         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
31602         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
31603         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
31604         Moved to ...
31605         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
31606         Here.
31607         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
31608         to ...
31609         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
31610         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
31611         to ...
31612         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
31613         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
31614         to ...
31615         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
31616         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
31617         to ...
31618         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
31619         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
31620         to ...
31621         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
31622         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
31623         to ...
31624         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
31625         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
31626         to ...
31627         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
31628         Here.
31629         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
31630         to ...
31631         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
31632         Here.
31633         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
31634         to ...
31635         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
31636         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
31637         Moved to ...
31638         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
31639         Here.
31640         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
31641         to ...
31642         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
31643
31644 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
31645
31646         * sysdeps/unix/common/bits/dirent.h: Remove file.
31647         * sysdeps/unix/common/bits/fcntl.h: Likewise.
31648
31649         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
31650         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
31651         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
31652         * sysdeps/unix/bsd/isatty.c: Likewise.
31653         * sysdeps/unix/bsd/tcdrain.c: Likewise.
31654         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
31655         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
31656
31657 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31658
31659         [BZ #13563]
31660         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
31661         long double comparison inaccuracies.
31662         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
31663         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31664
31665 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
31666
31667         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
31668         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
31669
31670 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
31671
31672         [BZ #14049]
31673         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
31674         nonzero digits before rounding a hex value.
31675         * stdlib/tst-strtod.c (tests): Add another test.
31676
31677 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31678
31679         * sysdeps/s390/fpu/libm-test-ulps: Update.
31680
31681 2012-05-03  Andreas Jaeger  <aj@suse.de>
31682
31683         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
31684         does not get optimized out.
31685         (malloc_opt_barrier): New.
31686
31687 2012-05-03  Andreas Jaeger  <aj@suse.de>
31688             Roland McGrath  <roland@hack.frob.com>
31689
31690         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
31691         intermediate file deletion.
31692         (generated): Add .symlist files.
31693
31694 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
31695
31696         [BZ #13775]
31697         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
31698         Redirect under this condition.
31699         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
31700         [__USE_GNU] (__dprintf_chk): Not under this condition.
31701         [__USE_GNU] (__vdprintf_chk): Likewise.
31702         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
31703         under this condition.
31704         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
31705         [__USE_XOPEN2K8] (dprintf): Define under this condition.
31706         [__USE_XOPEN2K8] (vdprintf): Likewise.
31707         [__USE_GNU] (__dprintf_chk): Not under this condition.
31708         [__USE_GNU] (__vdprintf_chk): Likewise.
31709         [__USE_GNU] (dprintf): Likewise.
31710         [__USE_GNU] (vdprintf): Likewise.
31711
31712 2012-05-03  Roland McGrath  <roland@hack.frob.com>
31713
31714         * elf/Makefile (common-generated): Set this instead of generated for
31715         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
31716         $(all-built-dso)-derived lists.
31717
31718 2012-05-03  Andreas Jaeger  <aj@suse.de>
31719
31720         * sysdeps/i386/fpu/libm-test-ulps: Update.
31721
31722         * FAQ: Removed.
31723         * FAQ.in: Likewise.
31724         * scripts/gen-FAQ.pl: Likewise.
31725         * manual/install.texi (Installation): Point to online location of
31726         FAQ.
31727         * Makefile (files-for-dist): Remove FAQ.
31728         (FAQ): Remove.
31729
31730 2012-05-02  Allan McRae  <allan@archlinux.org>
31731
31732         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
31733         (LDFLAGS-reldepmod5.so): Likewise.
31734         (LDFLAGS-reldep6mod1.so): Likewise.
31735         (LDFLAGS-reldep6mod4.so): Likewise.
31736         (LDFLAGS-reldep8mod3.so): Likewise.
31737         (LDFLAGS-unload4mod1.so): Likewise.
31738         (LDFLAGS-unload4mod2.so): Likewise.
31739         (LDFLAGS-tst-initorder): Likewise.
31740         (LDFLAGS-tst-initordera2.so): Likewise.
31741         (LDFLAGS-tst-initordera3.so): Likewise.
31742         (LDFLAGS-tst-initordera4.so): Likewise.
31743         (LDFLAGS-tst-initorderb2.so): Likewise.
31744         (LDFLAGS-noload): Likewise.
31745         (LDFLAGS-next): Likewise.
31746         (LDFLAGS-order2mod1.so): Likewise.
31747         (LDFLAGS-order2mod2.so): Likewise.
31748         (LDFLAGS-tst-initorder2): Likewise.
31749         (LDFLAGS-tst-initorder2a.so): Likewise.
31750         (LDFLAGS-tst-initorder2b.so): Likewise.
31751         (LDFLAGS-tst-initorder2c.so): Likewise.
31752         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
31753
31754 2012-05-02  David S. Miller  <davem@davemloft.net>
31755
31756         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31757
31758 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
31759
31760         [BZ #14055]
31761         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
31762
31763 2012-05-02  Andreas Jaeger  <aj@suse.de>
31764
31765         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
31766         since we manipulate rounding mode.
31767         (CPPFLAGS-test-idouble.c): Likewise.
31768         (CPPFLAGS-test-ifloat.c): Likewise.
31769         (CFLAGS-test-ldouble.c): Likewise.
31770         (CFLAGS-test-double.c): Likewise.
31771         (CFLAGS-test-float.c): Likewise.
31772         (CFLAGS-test-misc.c): Likewise.
31773         (CFLAGS-test-test-fenv.c): Likewise.
31774
31775 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31776
31777         [BZ #2550]
31778         [BZ #2570]
31779         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
31780         comparisons to determine direction to adjust input.
31781
31782 2012-05-01  Roland McGrath  <roland@hack.frob.com>
31783
31784         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
31785         output to the target.
31786
31787         * scripts/localplt.awk: New file.
31788         * elf/Makefile ($(objpfx)check-localplt): Target removed.
31789         (check-localplt-CFLAGS): Variable removed.
31790         ($(all-built-dso:=.jmprel)): New static pattern rule.
31791         (generated): Add those targets.
31792         (localplt-built-dso): New variable.
31793         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
31794
31795         * elf/check-localplt.c: File removed.
31796
31797         * scripts/check-execstack.awk: New file.
31798         * elf/Makefile ($(objpfx)check-execstack): Target removed.
31799         (check-execstack-CFLAGS): Variable removed.
31800         ($(objpfx)check-execstack.h): Target removed.
31801         ($(objpfx)execstack-default): New target.
31802         (generated): Add that instead of check-execstack.h.
31803         ($(all-built-dso:=.phdr)): New static pattern rule.
31804         (generated): Add those targets.
31805         * elf/check-execstack.c: File removed.
31806
31807         * scripts/check-textrel.awk: New file.
31808         * elf/Makefile ($(objpfx)check-textrel): Target removed.
31809         (check-textrel-CFLAGS): Variable removed.
31810         (all-built-dso): Use := to define.o
31811         ($(all-built-dso:=.dyn)): New static pattern rule.
31812         (generated): Add those targets.
31813         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
31814         * config.make.in (READELF): New substituted variable.
31815         * elf/check-textrel.c: File removed.
31816
31817 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
31818
31819         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
31820         allow.
31821         * conform/data/ctype.h-data [C99-based standards] (isblank):
31822         Expect function.
31823         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
31824         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
31825         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31826         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
31827         Specify type.  Require positive value.
31828         (EILSEQ): Likewise.
31829         (ERANGE): Likewise.
31830         [ISO || POSIX] (EILSEQ): Do not expect.
31831         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
31832         Specify type.  Require positive value.
31833         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
31834         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
31835         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
31836         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
31837         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
31838         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
31839         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
31840         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
31841         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
31842         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
31843         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
31844         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
31845         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
31846         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
31847         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
31848         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
31849         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
31850         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
31851         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
31852         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
31853         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
31854         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
31855         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
31856         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
31857         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
31858         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
31859         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
31860         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
31861         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
31862         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
31863         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
31864         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
31865         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
31866         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
31867         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
31868         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
31869         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
31870         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
31871         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
31872         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
31873         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
31874         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
31875         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
31876         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
31877         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
31878         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
31879         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
31880         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
31881         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
31882         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
31883         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
31884         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
31885         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
31886         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
31887         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
31888         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
31889         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
31890         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
31891         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
31892         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
31893         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
31894         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
31895         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
31896         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
31897         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
31898         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
31899         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
31900         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
31901         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
31902         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
31903         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
31904         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
31905         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
31906         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
31907         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
31908         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
31909         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
31910         Require >= 2.
31911         (FLT_ROUNDS): Expect as macro, not constant.
31912         (FLT_MANT_DIG): Use macro-int-constant.
31913         (DBL_MANT_DIG): Likewise.
31914         (LDBL_MANT_DIG): Likewise.
31915         (FLT_DIG): Likewise.
31916         (DBL_DIG): Likewise.
31917         (LDBL_DIG): Likewise.
31918         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
31919         (DBL_MIN_EXP): Likewise.
31920         (LDBL_MIN_EXP): Likewise.
31921         (FLT_MAX_EXP): Use macro-int-constant.
31922         (DBL_MAX_EXP): Likewise.
31923         (LDBL_MAX_EXP): Likewise.
31924         (FLT_MAX_10_EXP): Likewise.
31925         (DBL_MAX_10_EXP): Likewise.
31926         (LDBL_MAX_10_EXP): Likewise.
31927         (FLT_MAX): Use macro-constant.
31928         (DBL_MAX): Likewise.
31929         (LDBL_MAX): Likewise.
31930         (FLT_EPSILON): Use macro-constant.  Give upper bound.
31931         (DBL_EPSILON): Likewise.
31932         (LDBL_EPSILON): Likewise.
31933         (FLT_MIN): Likewise.
31934         (DBL_MIN): Likewise.
31935         (LDBL_MIN): Likewise.
31936         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
31937         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
31938         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
31939         [ISO11] (FLT_HAS_SUBNORM): Likewise.
31940         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
31941         [ISO11] (DBL_DECIMAL_DIG): Likewise.
31942         [ISO11] (FLT_DECIMAL_DIG): Likewise.
31943         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
31944         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
31945         [ISO11] (FLT_TRUE_MIN): Likewise.
31946         [ISO11] (LDBL_TRUE_MIN): Likewise.
31947         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31948         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
31949         (SCHAR_MIN): Use macro-int-constant.  Specify type.
31950         (SCHAR_MAX): Likewise.
31951         (UCHAR_MAX): Likewise.
31952         (CHAR_MIN): Likewise.
31953         (CHAR_MAX): Likewise.
31954         (MB_LEN_MAX): Use macro-int-constant.
31955         (SHRT_MIN): Use macro-int-constant.  Specify type.
31956         (SHRT_MAX): Likewise.
31957         (USHRT_MAX): Likewise.
31958         (INT_MAX): Likewise.
31959         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
31960         bound negative.
31961         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
31962         bound with "U".
31963         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
31964         bound with "L".
31965         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
31966         bound negative.  Suffix upper bound with "L".
31967         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
31968         bound with "UL".
31969         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
31970         Specify type.
31971         [C99-based standards] (LLONG_MAX): Likewise.
31972         [C99-based standards] (ULLONG_MAX): Likewise.
31973         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
31974         == 0.
31975         [ISO11] (max_align_t): Require type.
31976         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31977
31978         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
31979         from $CFLAGS, without defining away __attribute__ calls.
31980         (checknamespace): Use $CFLAGS_namespace.
31981
31982         * conform/conformtest.pl (@keywords): Only include C99 keywords
31983         for standards based on C99 or C11.
31984
31985         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
31986         Disable tests.
31987         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
31988         UNIX98]: Likewise.
31989
31990         * conform/conformtest.pl: Handle "macro-int-constant" and test for
31991         usability of symbols in #if.
31992
31993         * conform/conformtest.pl: If macro or constant types start
31994         "promoted:", expect the symbol to be of the following type
31995         promoted by the integer promotions.
31996
31997         * conform/conformtest.pl: Parse all "constant" and "macro" lines
31998         in one place.  Also handle "macro-constant".
31999
32000         * conform/conformtest.pl: Only accept expected macro values with
32001         "==".  Parse all "macro" lines in one place.
32002         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
32003
32004         * conform/conformtest.pl: Handle braced types on "constant" lines
32005         instead of handling "typed-constant".
32006         * conform/data/signal.h-data: Use "constant" instead of
32007         "typed-constant".
32008
32009         * conform/conformtest.pl: Handle "optional-" at start of lines in
32010         one place rather than duplicating several cases.  Handle each
32011         format of "macro" line with initial "optional-".
32012
32013         * conform/conformtest.pl: Only accept expected constant or
32014         optional-constant values with "==".  Parse all "constant" lines in
32015         one place.  Parse all "optional-constant" lines in one place.
32016         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
32017         * conform/data/fmtmsg.h-data: Likewise.
32018         * conform/data/netinet/in.h-data: Likewise.
32019         * conform/data/tar.h-data: Likewise.
32020         * conform/data/limits.h-data: Use "==" form on "constant" and
32021         "optional-constant" lines.
32022
32023         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
32024         Use -std=c99 for XOPEN2K.
32025         (@knownproblems): Remove.
32026         (newtoken): Don't check %isknown.
32027
32028         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
32029         Do not expect macro.
32030         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
32031         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
32032         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
32033         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
32034         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
32035         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
32036         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
32037         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
32038         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
32039         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
32040         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
32041         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
32042         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
32043         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
32044         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
32045         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
32046         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
32047         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
32048         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
32049         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
32050         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
32051         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
32052         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
32053         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
32054         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
32055         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
32056         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
32057         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
32058         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
32059         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
32060         [XPG3] (acosh): Likewise.
32061         [XPG3] (asinh): Likewise.
32062         [XPG3] (atanh): Likewise.
32063         [XPG3] (cbrt): Likewise.
32064         [XPG3] (expm1): Likewise.
32065         [XPG3] (ilogb): Likewise.
32066         [XPG3] (log1p): Likewise.
32067         [XPG3] (logb): Likewise.
32068         [XPG3] (nextafter): Likewise.
32069         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
32070         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
32071         [XPG3] (remainder): Likewise.
32072         [XPG3] (rint): Likewise.
32073         [XPG3 || XPG4 || UNIX98] (round): Likewise.
32074         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
32075         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
32076         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
32077         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
32078         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
32079         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
32080         [UNIX98 || XOPEN2K] (scalb): Expect.
32081         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
32082         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
32083         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
32084         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
32085         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
32086         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
32087         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
32088         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
32089         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
32090         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
32091         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
32092         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
32093         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
32094         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
32095         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
32096         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
32097         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
32098         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
32099         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
32100         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
32101         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
32102         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
32103         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
32104         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
32105         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
32106         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
32107         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
32108         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
32109         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
32110         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
32111         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
32112         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
32113         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
32114         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
32115         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
32116         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
32117         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
32118         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
32119         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
32120         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
32121         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
32122         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
32123         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
32124         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
32125         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
32126         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
32127         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
32128         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
32129         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
32130         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
32131         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
32132         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
32133         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
32134         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
32135         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
32136         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
32137         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
32138         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
32139         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
32140         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
32141         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
32142         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
32143         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
32144         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
32145         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
32146         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
32147         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
32148         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
32149         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
32150         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
32151         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
32152         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
32153         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
32154         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
32155         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
32156         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
32157         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
32158         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
32159         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
32160         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
32161         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
32162         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
32163         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
32164         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
32165         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
32166         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
32167         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
32168         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
32169         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
32170         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
32171         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
32172         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
32173         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
32174         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
32175         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
32176         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
32177         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
32178         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
32179         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
32180         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
32181         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
32182         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
32183         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
32184         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
32185         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
32186         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
32187         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
32188         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
32189         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
32190         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
32191         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
32192         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
32193         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
32194         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
32195         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
32196         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
32197         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
32198         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
32199         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
32200         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
32201         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
32202         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
32203         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
32204         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
32205         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
32206         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
32207         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
32208         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
32209         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
32210         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
32211         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
32212         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
32213         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
32214         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
32215         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
32216         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
32217         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
32218
32219         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
32220         _XOPEN_SOURCE_EXTENDED for XPG4.
32221
32222         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
32223
32224         * Makeconfig (localtime): Remove variable.
32225         (inst_localtime-file): Likewise.
32226
32227 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
32228
32229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
32230         Update.
32231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
32232         Update.
32233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
32234         Update.
32235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
32236         Update.
32237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
32238         Update.
32239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
32240         Update.
32241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
32242         Update.
32243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
32244         Update.
32245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
32246         Update.
32247
32248 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
32249
32250         [BZ #2550]
32251         [BZ #2570]
32252         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
32253         comparisons to determine direction to adjust input.
32254         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32255         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
32256         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32257         Likewise.
32258         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32259         Likewise.
32260         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32261         Likewise.
32262         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32263         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32264         Likewise.
32265         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32266         Likewise.
32267         * math/libm-test.inc (nexttoward_test): Add more tests.
32268
32269 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
32270
32271         [BZ #14040]
32272         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
32273         in version GLIBC_2.1, not GLIBC_2.0.
32274         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
32275         Likewise.
32276
32277 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
32278
32279         [BZ #13942]
32280         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
32281         (1 - x) * (1 + x).
32282         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
32283         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
32284         * math/libm-test.inc (acos_test): Add more tests.
32285         (asin_test): Likewise.
32286         * sysdeps/i386/fpu/libm-test-ulps: Update.
32287         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32288
32289         [BZ #14034]
32290         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
32291         of square root.
32292         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
32293         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
32294         * math/libm-test.inc (acos_test_tonearest): New function.
32295         (acos_test_towardzero): Likewise.
32296         (acos_test_downward): Likewise.
32297         (acos_test_upward): Likewise.
32298         (asin_test_tonearest): Likewise.
32299         (asin_test_towardzero): Likewise.
32300         (asin_test_downward): Likewise.
32301         (asin_test_upward): Likewise.
32302         (main): Call the new functions.
32303         * sysdeps/i386/fpu/libm-test-ulps: Update.
32304         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32305
32306         [BZ #13884]
32307         [BZ #13924]
32308         * math/e_exp10.c: Include <float.h>.
32309         (__ieee754_exp10): Handle underflow here rather than multiplying
32310         large negative argument by M_LN10.
32311         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
32312         of __ieee754_expf.
32313         * math/e_exp10l.c: Include <float.h>.
32314         (__ieee754_exp10l): Handle underflow here rather than multiplying
32315         large negative argument by M_LN10l.
32316         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
32317         spurious overflow exception on underflow.
32318
32319 2012-04-29  Marek Polacek  <polacek@redhat.com>
32320
32321         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
32322         (__fortify_function): New macro.
32323         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
32324         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
32325         __extern_always_inline.
32326         * libio/bits/stdio2.h: Likewise.
32327         * libio/bits/stdio.h: Likewise.
32328         * string/string.h: Likewise.
32329         * string/bits/string3.h: Likewise.
32330         * include/stdio.h: Likewise.
32331         * stdlib/bits/stdlib.h: Likewise.
32332         * stdlib/stdlib.h: Likewise.
32333         * rt/bits/mqueue2.h: Likewise.
32334         * rt/mqueue.h: Likewise.
32335         * posix/bits/unistd.h: Likewise.
32336         * posix/unistd.h: Likewise.
32337         * io/bits/poll2.h: Likewise.
32338         * io/bits/fcntl2.h: Likewise.
32339         * io/fcntl.h: Likewise.
32340         * io/sys/poll.h: Likewise.
32341         * misc/bits/syslog.h: Likewise.
32342         * misc/bits/syslog-ldbl.h: Likewise.
32343         * misc/sys/syslog.h: Likewise.
32344         * socket/bits/socket2.h: Likewise.
32345         * socket/sys/socket.h: Likewise.
32346         * debug/tst-chk1.c: Likewise.
32347         * wcsmbs/bits/wchar2.h: Likewise.
32348         * wcsmbs/bits/wchar-ldbl.h: Likewise.
32349         * wcsmbs/wchar.h: Likewise.
32350
32351 2012-04-29  Andreas Jaeger  <aj@suse.de>
32352
32353         * Makerules (tests): Remove enable-check-abi protection.
32354         (check-abi-warn): Remove.
32355         (check-abi-%): Remove check-abi-warn usage.
32356
32357         * configure.in: Remove check-abi configure option.
32358         * configure: Regenerated.
32359         * config.make.in (enable-check-abi): Remove.
32360
32361 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
32362
32363         [BZ #14033]
32364         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
32365         double functions to double *_finite functions.
32366
32367         [BZ #13941]
32368         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
32369         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
32370         LDBL_MIN_EXP.
32371         * stdio-common/Makefile (tests): Add tst-sprintf3.
32372         * stdio-common/tst-sprintf3.c: New file.
32373
32374         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
32375         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
32376
32377 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
32378
32379         * conform/conformtest.pl: Remove duplicate typed-constant
32380         handling.
32381
32382 2012-04-28  David S. Miller  <davem@davemloft.net>
32383
32384         * Makerules (%.abilist): Add vpath on sysdep_dirs.
32385         (check-abi-%): Remove AWK script prerequisite and explicit
32386         abilist directory.
32387         (check-abi): Rewrite to just diff the symlist with the abilist.
32388         (config-tls, config-abi-config): Delete, no longer used.
32389         (update-abi-%): Remove AWK script and explicit abilist directory.
32390         (update-abi): Rewrite to simply compare and conditionally copy the
32391         symlist and the sysdep abilist file.  Remove update-abi-config
32392         checks.
32393         * abilist/ld.abilist: Remove.
32394         * abilist/libBrokenLocale.abilist: Remove.
32395         * abilist/libanl.abilist: Remove.
32396         * abilist/libcrypt.abilist: Remove.
32397         * abilist/libdl.abilist: Remove.
32398         * abilist/librt.abilist: Remove.
32399         * abilist/libthread_db.abilist: Remove.
32400         * abilist/libutil.abilist: Remove.
32401         * scripts/extract-abilist.awk: Remove.
32402         * scripts/merge-abilist.awk: Remove.
32403         * sysdeps/generic/libcidn.abilist: New file.
32404         * sysdeps/generic/libnss_compat.abilist: New file.
32405         * sysdeps/generic/libnss_db.abilist: New file.
32406         * sysdeps/generic/libnss_dns.abilist: New file.
32407         * sysdeps/generic/libnss_files.abilist: New file.
32408         * sysdeps/generic/libnss_hesiod.abilist: New file.
32409         * sysdeps/generic/libnss_nis.abilist: New file.
32410         * sysdeps/generic/libnss_nisplus.abilist: New file.
32411         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
32412         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
32413         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
32414         file.
32415         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
32416         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
32417         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
32418         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
32419         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
32420         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
32421         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
32422         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
32423         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
32424         file.
32425         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
32426         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
32427         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
32428         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
32429         file.
32430         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
32431         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
32432         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
32433         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
32434         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
32435         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
32436         file.
32437         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
32438         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
32439         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
32440         file.
32441         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
32442         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
32443         New file.
32444         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
32445         New file.
32446         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
32447         New file.
32448         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
32449         New file.
32450         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
32451         New file.
32452         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
32453         New file.
32454         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
32455         New file.
32456         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
32457         New file.
32458         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
32459         New file.
32460         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
32461         New file.
32462         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
32463         New file.
32464         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
32465         New file.
32466         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
32467         New file.
32468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
32469         file.
32470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
32471         New file.
32472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
32473         New file.
32474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
32475         file.
32476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
32477         New file.
32478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
32479         New file.
32480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
32481         file.
32482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
32483         New file.
32484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
32485         New file.
32486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
32487         New file.
32488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
32489         New file.
32490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
32491         New file.
32492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
32493         New file.
32494         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
32495         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
32496         file.
32497         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
32498         New file.
32499         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
32500         file.
32501         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
32502         file.
32503         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
32504         file.
32505         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
32506         file.
32507         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
32508         file.
32509         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
32510         New file.
32511         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
32512         file.
32513         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
32514         file.
32515         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
32516         New file.
32517         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
32518         file.
32519         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
32520         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
32521         file.
32522         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
32523         New file.
32524         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
32525         file.
32526         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
32527         file.
32528         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
32529         file.
32530         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
32531         file.
32532         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
32533         file.
32534         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
32535         New file.
32536         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
32537         file.
32538         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
32539         file.
32540         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
32541         New file.
32542         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
32543         file.
32544         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
32545         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
32546         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
32547         file.
32548         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
32549         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
32550         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
32551         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
32552         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
32553         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
32554         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
32555         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
32556         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
32557         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
32558         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
32559         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
32560         file.
32561         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
32562         New file.
32563         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
32564         file.
32565         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
32566         file.
32567         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
32568         file.
32569         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
32570         file.
32571         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
32572         file.
32573         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
32574         New file.
32575         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
32576         New file.
32577         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
32578         file.
32579         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
32580         New file.
32581         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
32582         file.
32583         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
32584         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
32585         file.
32586         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
32587         New file.
32588         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
32589         file.
32590         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
32591         file.
32592         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
32593         file.
32594         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
32595         file.
32596         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
32597         file.
32598         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
32599         New file.
32600         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
32601         New file.
32602         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
32603         file.
32604         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
32605         New file.
32606         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
32607         file.
32608
32609 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
32610
32611         * conform/conformtest.pl: Fix typo in handling typed-constant from
32612         allow-header.
32613
32614 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
32615
32616         * README: Cut down references to pre-2.6 Linux kernels and
32617         Linuxthreads.  Update lists of configurations in libc and ports
32618         and sort alphabetically.  Say "or newer" with Linux kernel version
32619         requirements.
32620
32621         * config.h.in [IS_IN_build]: Allow compiling without optimization.
32622
32623 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
32624
32625         [BZ #887]
32626         * math/libm-test.inc (logb_test_downward): New test to expose
32627         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
32628         rounding mode.
32629
32630 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
32631
32632         [BZ #14027]
32633         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
32634         to be done.
32635         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
32636         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
32637
32638 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
32639
32640         * sysdeps/unix/i386/brk.S: Remove file.
32641         * sysdeps/unix/i386/dl-brk.S: Likewise.
32642         * sysdeps/unix/i386/pipe.S: Likewise.
32643         * sysdeps/unix/i386/sigreturn.S: Likewise.
32644         * sysdeps/unix/i386/syscall.S: Likewise.
32645         * sysdeps/unix/i386/vfork.S: Likewise.
32646         * sysdeps/unix/i386/wait.S: Likewise.
32647
32648         * sysdeps/unix/common/tcsendbrk.c: Move to ...
32649         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
32650
32651         * configure.in (arm*-none*): Do not allow without
32652         --enable-hacker-mode.
32653         (netbsd*): Remove case setting base_os.
32654         (386bsd*): Likewise.
32655         (freebsd*): Likewise.
32656         (bsdi*): Likewise.
32657         (osf*): Likewise.
32658         (sunos*): Likewise.
32659         (ultrix*): Likewise.
32660         (newsos*): Likewise.
32661         (dynix*): Likewise.
32662         (*bsd*): Likewise.
32663         (sysv*): Likewise.
32664         (isc*): Likewise.
32665         (esix*): Likewise.
32666         (sco*): Likewise.
32667         (minix*): Likewise.
32668         (irix4*): Likewise.
32669         (irix6*): Likewise.
32670         (solaris[2-9]*): Likewise.
32671         (none): Likewise.
32672         * configure: Regenerated.
32673
32674 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32675
32676         [BZ #11521]
32677         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
32678         overflow or cancellation in calculating denominator.
32679         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
32680         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
32681         down expression to avoid unexpected rounding in newer GCCs.
32682         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
32683
32684 2012-04-26  David S. Miller  <davem@davemloft.net>
32685
32686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
32687         long-double compat symbols.
32688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
32689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
32690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
32691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
32692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
32693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
32694         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
32695         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
32696         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
32697         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
32698         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
32699         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
32700         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
32701
32702 2012-04-25  David S. Miller  <davem@davemloft.net>
32703
32704         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
32705         HWCAP_* values only after the memory barriers have been defined.
32706         (atomic_full_barrier): Define.
32707         (atomic_read_barrier): Define.
32708         (atomic_write_barrier): Define.
32709
32710 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32711
32712         * shlib-versions: Add libgcc_s version information.
32713         * sysdeps/generic/libgcc_s.h: Remove.
32714         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
32715         libgcc_s.h.
32716         * sysdeps/gnu/unwind-resume.c: Likewise.
32717         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
32718
32719 2012-04-25  David S. Miller  <davem@davemloft.net>
32720
32721         * sysdeps/unix/sparc/brk.S: Delete.
32722         * sysdeps/unix/sparc/dl-brk.S: Delete.
32723         * sysdeps/unix/sparc/pipe.S: Delete.
32724         * sysdeps/unix/sparc/sysdep.S: Delete.
32725         * sysdeps/unix/sparc/sysdep.h: Delete.
32726         * sysdeps/unix/sparc/vfork.S: Delete.
32727         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
32728         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
32729         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
32730         (ret_ERRVAL, r0, r1, MOVE): Define.
32731         (JUMPTARGET): Remove.
32732         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
32733         sysdeps/unix/sparc/sysdep.h
32734         (ENTRY, END): Remove.
32735         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
32736
32737 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
32738
32739         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
32740         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
32741         -DIS_IN_build.
32742
32743         * timezone/README: Update upstream location and email address for
32744         tzcode and tzdata.
32745         * timezone/zdump.c: Update from tzcode 2012b.
32746         * timezone/zic.c: Likewise.
32747
32748         * configure.in (libc_cv_as_needed): Remove test.
32749         * configure: Regenerated.
32750         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
32751         conditional definition.
32752         [$(have-as-needed) != yes] (no-as-needed): Likewise.
32753         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
32754         * config.make.in (have-as-needed): Remove variable.
32755
32756 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
32757             Paul Pluzhnikov  <ppluzhnikov@google.com>
32758
32759         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
32760         strings correctly.
32761
32762 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
32763
32764         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
32765         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
32766         * sysdeps/sh/strlen.S: Likewise.
32767
32768 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
32769
32770         * sysdeps/unix/fork.S: Remove file.
32771         * sysdeps/unix/i386/fork.S: Likewise.
32772         * sysdeps/unix/sparc/fork.S: Likewise.
32773
32774         * sysdeps/unix/system.c: Remove file.
32775         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
32776
32777         * sysdeps/unix/getegid.S: Remove file.
32778         * sysdeps/unix/geteuid.S: Likewise.
32779
32780 2012-04-24  Roland McGrath  <roland@hack.frob.com>
32781
32782         * scripts/check-localplt.awk: New file.
32783         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
32784         of diff.
32785         * scripts/data/localplt-generic.data: Add a comment.
32786
32787         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
32788         NODE when __dir_mkfile failed.
32789         * sysdeps/mach/hurd/symlinkat.c: Likewise.
32790         Reported by Ludovic Courtès <ludo@gnu.org>.
32791
32792 2012-04-24  Andreas Jaeger  <aj@suse.de>
32793
32794         * Makerules (common-clean): Also remove gen-as-const-headers
32795         files.
32796
32797 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
32798
32799         * Makerules (native-compile): Do not change working directory for
32800         build.  Use $(OUTPUT_OPTION) in command.
32801         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
32802
32803 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32804
32805         [BZ #13886]
32806         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
32807         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
32808         * math/libm-test.inc (floor_test): Add more tests.
32809         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
32810
32811 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
32812
32813         * sysdeps/unix/getdents.c: Remove file.
32814         * sysdeps/unix/sysv/getdents.c: Likewise.
32815         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
32816
32817         * sysdeps/unix/syscalls.list (madvise): Add syscall from
32818         sysdeps/unix/mman/syscalls.list.
32819         (mmap): Likewise.
32820         (mprotect): Likewise.
32821         (msync): Likewise.
32822         (munmap): Likewise.
32823         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
32824         * sysdeps/unix/mman/syscalls.list: Remove.
32825         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
32826
32827         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
32828         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
32829         * configure: Regenerated.
32830         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
32831         $(libgcc_s_suffix).
32832         * config.make.in (libgcc_s_suffix): Remove variable.
32833
32834 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
32835
32836         * sysdeps/unix/sysv/gethostname.c: Move to ...
32837         * sysdeps/posix/gethostname.c: ... here.
32838
32839         * sysdeps/unix/execve.S: Remove file.
32840
32841         * sysdeps/unix/_exit.S: Remove file.
32842
32843 2012-04-23  Andreas Jaeger  <aj@suse.de>
32844
32845         [BZ #13739]
32846         * manual/Makefile: Remove make dist support, there's no
32847         need for a stand-alone documentation tar ball.
32848         (TEXI2DVI): Define always, it's not in Makeconfig.
32849         (dist): Removed.
32850         (tar-it): Removed.
32851         (edition): Removed.
32852         (glibc-doc-$(edition).tar): Removed
32853         (%.Z): Removed.
32854         (%.gz): Removed.
32855         (%.uu): Removed.
32856         (ETAGS): Remove, it's in Makeconfig.
32857         (move-if-change): Remove, it's in Makeconfig.
32858
32859 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
32860
32861         [BZ #13970]
32862         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
32863         (strtod, strtof, strtold, strtol, strtoul, strtoq)
32864         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
32865         (strtod_l, strtof_l, strtold_l): Remove __wur.
32866         It is not necessarily an error to ignore strtol's return value.
32867         One can reliably look at the stored endptr to decide whether
32868         the number had valid syntax.
32869
32870 2012-04-21  Andreas Jaeger  <aj@suse.de>
32871
32872         [BZ #13739]
32873         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
32874
32875 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
32876
32877         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
32878         * sysdeps/unix/sysv/Versions: Remove file.
32879
32880 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
32881
32882         [BZ #13927]
32883         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32884
32885 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
32886
32887         [BZ #7064]
32888         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
32889         version from __vm86.
32890
32891 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
32892
32893         * sysdeps/unix/common/lxstat.c: Remove file.
32894         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
32895
32896         * sysdeps/unix/sysv/Makefile: Remove file.
32897
32898         * sysdeps/unix/sysv/direct.h: Remove file.
32899
32900         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
32901         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
32902         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
32903         * sysdeps/unix/sysv/bits/signum.h: Likewise.
32904         * sysdeps/unix/sysv/bits/stat.h: Likewise.
32905         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
32906         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
32907
32908         * sysdeps/unix/sysv/setrlimit.c: Remove file.
32909
32910         * sysdeps/unix/xmknod.c: Remove file.
32911         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
32912
32913         * sysdeps/unix/sysv/settimeofday.c: Remove file.
32914
32915         * sysdeps/unix/sysv/i386/time.S: Remove file.
32916
32917         * sysdeps/unix/fxstat.c: Remove file.
32918         * sysdeps/unix/xstat.c: Likewise.
32919         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
32920
32921         * sysdeps/unix/sysv/sigaction.c: Remove file.
32922
32923         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
32924         (sysdep_headers): Remove variable.
32925         [termio.h not in sysdep_headers] (generated): Likewise.
32926         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
32927         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
32928         * sysdeps/unix/sysv/tcdrain.c: Likewise.
32929         * sysdeps/unix/sysv/tcflow.c: Likewise.
32930         * sysdeps/unix/sysv/tcflush.c: Likewise.
32931         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
32932         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
32933         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
32934         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
32935         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
32936
32937         * sysdeps/unix/siglist.c: Remove file.
32938
32939         * sysdeps/unix/getppid.S: Remove file.
32940
32941         * sysdeps/unix/mkdir.c: Remove file.
32942         * sysdeps/unix/rmdir.c: Likewise.
32943
32944 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
32945
32946         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
32947         ERR_MAX value.
32948         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
32949         errlist-compat value.
32950
32951 2012-04-18  David S. Miller  <davem@davemloft.net>
32952
32953         * sysdeps/generic/memcopy.h (reg_char): Delete.
32954         * debug/strcat_chk.c: Use char, not reg_char.
32955         * debug/strcpy_chk.c: Likewise.
32956         * debug/strncat_chk.c: Likewise.
32957         * debug/strncpy_chk.c: Likewise.
32958         * string/memchr.c: Likewise.
32959         * string/memrchr.c: Likewise.
32960         * string/rawmemchr.c: Likewise.
32961         * string/strcat.c: Likewise.
32962         * string/strchr.c: Likewise.
32963         * string/strchrnul.c: Likewise.
32964         * string/strcmp.c: Likewise.
32965         * string/strcpy.c: Likewise.
32966         * string/strncat.c: Likewise.
32967         * string/strncmp.c: Likewise.
32968         * string/strncpy.c: Likewise.
32969
32970 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
32971
32972         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
32973         __builtin_memcopy is called when src and dest ranges are known to not
32974         overlap.
32975
32976 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
32977
32978         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
32979         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
32980         fwd_align_merge macro call.
32981         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
32982         bwd_align_merge macro call.
32983         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
32984
32985 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
32986
32987         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
32988         bwd_align_merge macros.
32989         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
32990         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
32991         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
32992
32993 2012-04-18  David S. Miller  <davem@davemloft.net>
32994
32995         * sysdeps/sparc/sparc64/memcopy.h: Delete.
32996
32997 2012-04-18  Andreas Jaeger  <aj@suse.de>
32998
32999         [BZ# 6794]
33000         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
33001         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
33002         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
33003
33004         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
33005         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
33006         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
33007
33008         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
33009         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
33010         Adjust for changed ldbl-128 files.
33011
33012         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
33013         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
33014         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
33015
33016 2012-04-17  David S. Miller  <davem@davemloft.net>
33017
33018         * sysdeps/sparc/sparc32/memcopy.h: Delete.
33019
33020 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
33021
33022         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
33023         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
33024         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
33025         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
33026         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
33027         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
33028
33029 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33030
33031         [BZ #6794]
33032         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
33033         * math/libm-test.inc: Add ilogb errno and exception tests.
33034         * math/w_ilogb.c: New file: ilogb wrapper.
33035         * math/w_ilogbf.c: New file: ilogbf wrapper.
33036         * math/w_ilogbl.c: New file: ilogbl wrapper.
33037         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
33038         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
33039         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
33040         exception being thrown with 0.0 as argument.
33041         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
33042         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
33043         exception being thrown with 0.0 as argument.
33044         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
33045         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
33046         exception being thrown with 0.0 as argument.
33047         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
33048         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
33049         exception being thrown with 0.0 as argument.
33050         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
33051         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
33052         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
33053         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
33054         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
33055         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
33056         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
33057         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
33058         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
33059
33060 2012-04-17  Petr Baudis  <pasky@ucw.cz>
33061
33062         * include/sys/uio.h: Change __vector to __iovec to avoid clash
33063         with altivec.
33064
33065 2012-04-16  Marek Polacek  <polacek@redhat.com>
33066
33067         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
33068
33069 2012-04-16  Marek Polacek  <polacek@redhat.com>
33070
33071         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
33072         operands of fdivp instruction.
33073
33074 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
33075
33076         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
33077         * elf/tst-auditmod3b.c: Likewise.
33078         * elf/tst-auditmod4b.c: Likewise.
33079         * elf/tst-auditmod5b.c: Likewise.
33080         * elf/tst-auditmod6b.c: Likewise.
33081         * elf/tst-auditmod6c.c: Likewise.
33082         * elf/tst-auditmod7b.c: Likewise.
33083         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
33084         * sysdeps/x86_64/preconfigure.in: Likewise.
33085         * sysdeps/x86_64/preconfigure: Regenerated.
33086
33087 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
33088
33089         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
33090         __ILP32__.
33091
33092 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
33093
33094         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
33095         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
33096
33097 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
33098
33099         [BZ #13973]
33100         * locale/iso-639.def: Fix gl language name. Spotted by
33101         Yaron Shahrabani.
33102
33103 2012-04-12  Roland McGrath  <roland@hack.frob.com>
33104
33105         [BZ #2074]
33106         * libio/libio.h (__io_write_fn): Update comment.
33107
33108 2012-04-12  Petr Baudis  <pasky@ucw.cz>
33109
33110         [BZ #2074]
33111         * stdio.texi (Hook Functions): The user provided writer function
33112         is not allowed to return -1.
33113
33114 2012-04-11  David S. Miller  <davem@davemloft.net>
33115
33116         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33117
33118 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
33119
33120         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
33121         Add a leading slash to rtkaio.
33122
33123 2012-04-11  Jim Meyering  <meyering@redhat.com>
33124
33125         [BZ #11959]
33126         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
33127         It is not necessarily an error to ignore fwrite's return
33128         value.  One can reliably use ferror to test for errors after
33129         the fact.
33130
33131 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
33132
33133         * bits/types.h (__snseconds_t): New type.
33134         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
33135
33136         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
33137         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33138         (__SNSECONDS_T_TYPE): Likewise.
33139         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
33140         (__SNSECONDS_T_TYPE): Likewise.
33141         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
33142         (__SNSECONDS_T_TYPE): Likewise.
33143
33144 2012-04-10  Andreas Jaeger  <aj@suse.de>
33145
33146         [BZ #2636]
33147         * manual/time.texi (Processor Time): Return type of times is
33148         elapsed real time since an arbitrary point in the past.
33149         (CPU Time): Move CLK_TCK from here...
33150         (Processor Time): ...to here.  Correct description.
33151         * manual/conf.texi (Constants for Sysconf): Correct description of
33152         _SC_CLK_TCK.
33153
33154 2012-04-10  David S. Miller  <davem@davemloft.net>
33155
33156         [BZ #13967]
33157         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
33158         where the is a gap between DT_REL(A) and DT_JMPREL.
33159
33160 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
33161
33162         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
33163         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
33164         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
33165
33166 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33167
33168         * elf/dl-support.c (_dl_inhibit_cache): New variable.
33169         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
33170         (dl_main): Handle --inhibit-cache.
33171         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
33172         _dl_inhibit_cache.
33173         * elf/dl-load.c (_dl_map_object): Use it.
33174         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
33175
33176 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
33177
33178         [BZ #13872]
33179         * sysdeps/i386/fpu/e_powl.S (p78): New object.
33180         (__ieee754_powl): Saturate large exponents rather than testing for
33181         overflow of y*log2(x).
33182         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33183         * math/libm-test.inc (pow_test): Do not permit spurious overflow
33184         exceptions.
33185
33186         [BZ #11521]
33187         * math/s_ctan.c: Include <float.h>.
33188         (__ctan): Avoid internal overflow or cancellation in calculating
33189         denominator.
33190         * math/s_ctanf.c: Likewise.
33191         * math/s_ctanl.c: Likewise.
33192         * math/s_ctanh.c: Likewise.
33193         * math/s_ctanhf.c: Likewise.
33194         * math/s_ctanhl.c: Likewise.
33195         * math/libm-test.inc (ctan_test): Add more tests.
33196         (ctanh_test): Likewise.
33197         * sysdeps/i386/fpu/libm-test-ulps: Update.
33198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33199
33200 2012-04-09  Andreas Jaeger  <aj@suse.de>
33201
33202         [BZ #6894]
33203         * manual/filesys.texi (Directory Entries): Mention that d_namlen
33204         is an optional BSD extension.
33205
33206         [BZ #10254]
33207         * manual/stdio.texi (Opening Streams): Document additional fopen
33208         parameters.
33209
33210 2012-04-09  Roland McGrath  <roland@hack.frob.com>
33211
33212         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
33213         %eax without telling the compiler.
33214
33215 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
33216
33217         [BZ # 13963]
33218         * manual/install.texi: Use sourceware.org.
33219
33220 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
33221
33222         [BZ #13873]
33223         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
33224         (__ieee754_pow): Generate overflow and underflow using huge*huge
33225         and tiny*tiny rather than just returning constant infinity or zero
33226         for large exponents.
33227         * math/libm-test.inc (pow_test): Require overflow exceptions for
33228         applicable cases of large exponents.
33229
33230         [BZ #706]
33231         * sysdeps/i386/fpu/e_pow.S (p10): New object.
33232         (__ieee754_pow): Use iterative multiplication algorithm only for
33233         integer exponents with absolute value below 1024.  Check for odd
33234         integer exponents when using algorithm for real exponents.
33235         * math/libm-test.inc (pow_test): Add more tests.
33236         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33237
33238 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
33239
33240         [BZ #13705]
33241         * math/libm-test.inc (exp_test): Do not allow overflow exception
33242         on underflow test.
33243
33244 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
33245
33246         [BZ #13705]
33247         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
33248         instead of __kernel_standard_f.
33249
33250 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
33251
33252         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
33253         * sysdeps/x86_64/memset_chk.S: Likewise.
33254
33255 2012-04-08  Andreas Jaeger  <aj@suse.de>
33256
33257         [BZ #10153]
33258         * manual/startup.texi (Environment Access): Describe return value
33259         for putenv and setenv.
33260
33261         [BZ #6895]
33262         * manual/filesys.texi (Directory Entries): Add description for
33263         DT_LNK.
33264
33265         [BZ #6890]
33266         * manual/filesys.texi (Directory Entries): Clarify that it's file
33267         system not operating system in the description of DT_UNKNOWN.
33268
33269         [BZ #6578]
33270         * manual/syslog.texi (closelog): Fix reference, it's openlog.
33271
33272 2012-04-08  Stephen Compall  <s11@member.fsf.org>
33273
33274         [BZ #6649]
33275         * manual/llio.texi (Opening and Closing Files): Add cross
33276         reference to explain mode argument.
33277
33278 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
33279
33280         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
33281         * sysdeps/x86_64/memset_chk.S: Likewise.
33282
33283 2012-04-07  David S. Miller  <davem@davemloft.net>
33284
33285         * elf/elf.h (R_SPARC_WDISP10): Define.
33286         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
33287         R_SPARC_SIZE32.
33288         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
33289         R_SPARC_SIZE64 and R_SPARC_H34.
33290
33291 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
33292
33293         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
33294         conditions and remove no longer applicable assertion.
33295
33296 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
33297
33298         * bits/byteswap.h: Include <features.h>.
33299         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
33300         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
33301
33302 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
33303
33304         * bits/byteswap.h (__bswap_16): Removed.
33305         Include <bits/byteswap-16.h> to get __bswap_16.
33306         * sysdeps/i386/bits/byteswap.h: Likewise.
33307         * sysdeps/s390/bits/byteswap.h: Likewise.
33308         * sysdeps/x86_64/bits/byteswap.h: Likewise.
33309         * bits/byteswap-16.h: New file.
33310         * sysdeps/i386/bits/byteswap-16.h: Likewise.
33311         * sysdeps/s390/bits/byteswap-16.h: Likewise.
33312         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
33313         * string/Makefile (headers): Add bits/byteswap-16.h.
33314
33315 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
33316
33317         [BZ #13895]
33318         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
33319         extra indirection.
33320         * nss/Makefile (tests-static, tests): Add tst-nss-static.
33321         * nss/tst-nss-static.c: New.
33322
33323 2012-04-06  Robert Millan  <rmh@gnu.org>
33324
33325         [BZ #6486]
33326         * manual/llio.texi (File Position Primitive): lseek
33327         refers to WHENCE when it really means OFFSET.
33328
33329 2012-04-06  Andreas Jaeger  <aj@suse.de>
33330
33331         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
33332         strncmp declarations.
33333
33334         * abilist/libc.abilist: Add __poll and __ppoll.
33335
33336 2012-04-05  David S. Miller  <davem@davemloft.net>
33337
33338         * scripts/check-local-headers.sh: Accept a host triplet in the
33339         path matched by the exclude regexp.
33340
33341         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
33342         definition.
33343         * sysdeps/powerpc/powerpc32/dl-machine.h
33344         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
33345         * sysdeps/s390/s390-32/dl-machine.h
33346         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
33347         * sysdeps/sparc/sparc32/dl-machine.h
33348         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
33349         * sysdeps/sparc/sparc64/dl-machine.h
33350         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
33351
33352         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
33353         lazy binding.
33354         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
33355         undefined symbol errors.
33356
33357         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
33358         DT_NEEDED entries.
33359
33360 2012-04-05  Michael Matz  <matz@suse.de>
33361
33362         [BZ #13592]
33363         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
33364
33365 2012-04-05  Andreas Jaeger  <aj@suse.de>
33366
33367         [BZ #13908]
33368         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
33369         comment.
33370
33371 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33372
33373         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
33374         which ROUND is no valid rounding mode.
33375
33376 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33377
33378         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
33379         read again.
33380         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
33381
33382 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33383
33384         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
33385         an exception using FPU order intentionally.
33386
33387 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33388
33389         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
33390         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
33391         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
33392         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
33393
33394 2012-04-05  Simon Josefsson  <simon@josefsson.org>
33395
33396         [BZ #12340]
33397         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
33398         EINVAL when BUFLEN is too smal.
33399
33400 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
33401
33402         [BZ #13553]
33403         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
33404         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
33405
33406 2012-04-03  Andreas Jaeger  <aj@suse.de>
33407
33408         [BZ #13938]
33409         * manual/setjmp.texi (System V contexts): Fix sentence.
33410
33411         [BZ #13926]
33412         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
33413         New macro for this case.
33414         [!__GNUC__] (__bswap_64): New inline function for this case.
33415         * sysdeps/x86_64/bits/byteswap.h: Likewise.
33416         * bits/byteswap.h: Likewise.
33417         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
33418         ull, guard with __GLIBC_HAVE_LONG_LONG.
33419
33420         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
33421         __GLIBC_HAVE_LONG_LONG.
33422
33423         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
33424         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
33425
33426 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33427
33428         [BZ #13691]
33429         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
33430         inptr and inend, rather than using last_ch.
33431
33432 2012-04-02  David S. Miller  <davem@davemloft.net>
33433
33434         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
33435         * stdio-common/printf-parse.h (read_int): Change return type to
33436         'int', return -1 on INT_MAX overflow.
33437         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
33438         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
33439         overflows INT_MAX.  Check for overflow of in-format-string precision
33440         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
33441         SIZE_MAX not INT_MAX for integer overflow test.
33442         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
33443         skip the construct in the format string but do not record anything.
33444         * stdio-common/bug22.c: Adjust to test both width/prevision
33445         INT_MAX overflow as well as total length INT_MAX overflow.  Check
33446         explicitly for proper errno values.
33447
33448 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
33449
33450         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
33451         CHAR_MAX.
33452         * string/test-strcmp.c [! WIDE]: Likewise.
33453         * time/tst-mktime2.c: Likewise for INT_MAX.
33454         * string/test-string.h: #include <sys/param.h> for MIN.
33455
33456         * csu/init-first.c (__libc_init_first): Call __ctype_init.
33457         * sysdeps/i386/init-first.c (init): Likewise.
33458         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
33459         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
33460         * sysdeps/sh/init-first.c (init): Likewise.
33461
33462 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
33463
33464         * po/ru.po: Update from translation team.
33465         * po/vi.po: Likewise.
33466
33467 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
33468
33469         * resolv/nss_dns/dns-host.c: Merge copyright years.
33470
33471 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33472
33473         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
33474         Optimize memcpy with prefetch if
33475         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
33476         src, dst pointers have unequal 16 byte alignments.
33477
33478 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33479
33480         [BZ #13928]
33481         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
33482         from a CNAME entry and return the minimum ttl for the query.
33483         (gaih_getanswer_slice): Likewise.
33484
33485 2012-03-30  Jeff Law  <law@redhat.com>
33486
33487         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
33488         due to long keys.
33489         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
33490         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
33491
33492         * resolv/nss_dns/dns-host.c: Update copyright year.
33493
33494 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
33495
33496         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
33497         requests to save a system call.  Fix check that all bytes are sent.
33498
33499         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
33500         comments for sendmmsg.
33501
33502 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
33503
33504         [BZ #13691]
33505         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
33506         with only 1 character between 0x0041 and 0x01b0.
33507         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
33508         * wcsmbs/tst-mbsnrtowcs.c: New file.
33509
33510 2012-03-29  David S. Miller  <davem@davemloft.net>
33511
33512         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
33513         small copies by hand.
33514
33515 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
33516
33517         [BZ #13761]
33518         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
33519         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
33520         group memberships.
33521
33522 2012-03-28  David S. Miller  <davem@davemloft.net>
33523
33524         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
33525         that branches into memcpy.
33526         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
33527         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
33528         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
33529         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
33530         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
33531         bits.
33532         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
33533         implementation too.
33534         * sysdeps/sparc/mempcpy.S: New file.
33535
33536         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
33537         the IFUNC routine in the libc case.
33538         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
33539
33540         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
33541         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
33542         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
33543         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
33544         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
33545         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
33546         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
33547         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
33548
33549         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
33550         loop to 256 bytes instead of 64 bytes and fix test signedness.
33551
33552         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
33553         * sysdeps/sparc/sparc32/Makefile: rather than here...
33554         * sysdeps/sparc/sparc64/Makefile: and here.
33555
33556 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
33557
33558         * malloc/mallocbug.c: Avoid warnings about unused variables.
33559
33560 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33561
33562         [BZ #13760]
33563         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
33564         in the right place. Discard and retry query if response is
33565         larger than input buffer size.
33566
33567 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
33568
33569         [BZ #369]
33570         [BZ #2678]
33571         [BZ #3866]
33572         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
33573         x for large integer exponent.
33574         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
33575         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
33576         sign of result as needed afterwards.
33577         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
33578         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
33579         result for underflowing pow the same as for overflow.
33580         (__kernel_standard_l): Handle powl overflow and underflow here
33581         rather than calling __kernel_standard.
33582         * math/libm-test.inc (pow_test): Add more tests.
33583
33584         [BZ #3868]
33585         [BZ #13879]
33586         [BZ #13910]
33587         [BZ #13911]
33588         [BZ #13912]
33589         [BZ #13913]
33590         [BZ #13915]
33591         [BZ #13916]
33592         [BZ #13917]
33593         [BZ #13918]
33594         [BZ #13919]
33595         [BZ #13920]
33596         [BZ #13921]
33597         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
33598         * sysdeps/ieee754/k_standard.c: Include <float.h>.
33599         (__kernel_standard_l): New function.
33600         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
33601         __kernel_standard.
33602         * math/w_acosl.c (__acosl): Likewise.
33603         * math/w_asinl.c (__asinl): Likewise.
33604         * math/w_atan2l.c (__atan2l): Likewise.
33605         * math/w_atanhl.c (__atanhl): Likewise.
33606         * math/w_coshl.c (__coshl): Likewise.
33607         * math/w_exp10l.c (__exp10l): Likewise.
33608         * math/w_exp2l.c (__exp2l): Likewise.
33609         * math/w_fmodl.c (__fmodl): Likewise.
33610         * math/w_hypotl.c (__hypotl): Likewise.
33611         * math/w_j0l.c (__j0l, __y0l): Likewise.
33612         * math/w_j1l.c (__j1l, __y1l): Likewise.
33613         * math/w_jnl.c (__jnl, __ynl): Likewise.
33614         * math/w_lgammal.c (__lgammal): Likewise.
33615         * math/w_log10l.c (__log10l): Likewise.
33616         * math/w_log2l.c (__log2l): Likewise.
33617         * math/w_logl.c (__logl): Likewise.
33618         * math/w_powl.c (__powl): Likewise.
33619         * math/w_remainderl.c (__remainderl): Likewise.
33620         * math/w_scalbl.c (sysv_scalbl): Likewise.
33621         * math/w_sinhl.c (__sinhl): Likewise.
33622         * math/w_sqrtl.c (__sqrtl): Likewise.
33623         * math/w_tgammal.c (__tgammal): Likewise.
33624         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
33625         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
33626         * math/libm-test.inc (acos_test): Add more tests.
33627         (acosh_test): Likewise.
33628         (asin_test): Likewise.
33629         (atanh_test): Likewise.
33630         (exp_test): Likewise.
33631         (exp10_test): Likewise.
33632         (exp2_test): Likewise.
33633         (expm1_test): Likewise.
33634         (lgamma_test): Likewise.
33635         (log_test): Likewise.
33636         (log10_test): Likewise.
33637         (log1p_test): Likewise.
33638         (log2_test): Likewise.
33639         (pow_test): Do not allow some spurious overflow exceptions.
33640         (sqrt_test): Add more tests.
33641         (tgamma_test): Likewise.
33642         (y0_test): Likewise.
33643         (y1_test): Likewise.
33644         (yn_test): Likewise.
33645
33646 2012-03-27  Anton Blanchard  <anton@samba.org>
33647
33648         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
33649         MAP_HUGETLB.
33650         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
33651         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
33652         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
33653
33654 2012-03-27  David S. Miller  <davem@davemloft.net>
33655
33656         * conform/Makefile: Run run-conformtest.sh using $(BASH).
33657
33658         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
33659         have-as-vis3 check.
33660
33661 2012-03-27  Andreas Jaeger  <aj@suse.de>
33662
33663         * sysdeps/x86_64/elf/configure.in: Moved to ...
33664         * sysdeps/x86_64/configure.in: ... here.
33665         * sysdeps/x86_64/elf/start.S: Moved to ...
33666         * sysdeps/x86_64/start.S: ... here.
33667         * sysdeps/x86_64/elf/configure: Delete.
33668
33669         * sysdeps/x86_64/configure.in: Merge contents from
33670         sysdeps/i386/configure.in (without i686 check).
33671
33672         * sysdeps/i386/elf/Versions: Merge into ...
33673         * sysdeps/i386/Versions: ... this.
33674         * sysdeps/i386/elf/Versions: Delete file.
33675         * sysdeps/i386/elf/start.S: Moved to ...
33676         * sysdeps/i386/start.S: ...here.
33677         * sysdeps/i386/elf/configure.in: Merge into...
33678         * sysdeps/i386/configure.in: ...here.
33679         * sysdeps/i386/elf/configure.in: Delete file.
33680         * sysdeps/i386/elf/configure: Delete file.
33681
33682         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
33683         * debug/backtracesyms.c: ... here.
33684         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
33685         * debug/backtracesymsfd.c: ... here.
33686         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
33687         * sysdeps/generic/ifunc-sel.h: ... here.
33688
33689         * sysdeps/unix/i386/start.c: Delete file.
33690         * sysdeps/unix/sparc/start.c: Delete file.
33691         * sysdeps/unix/start.c: Delete file.
33692
33693         * sysdeps/sh/elf/configure.in: Moved to ...
33694         * sysdeps/sh/configure.in: ... here.
33695         * sysdeps/sh/elf/start.S: Moved to ...
33696         * sysdeps/sh/start.S: ... here.
33697         * sysdeps/sh/elf/configure: Delete file.
33698
33699         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
33700         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
33701         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
33702         * sysdeps/powerpc/powerpc64/entry.h: ... here.
33703         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
33704         * sysdeps/powerpc/powerpc64/start.S: here.
33705         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
33706         * sysdeps/powerpc/powerpc64/Makefile: ... this.
33707         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
33708         * sysdeps/powerpc/powerpc64/configure.in: ... this.
33709         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
33710
33711         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
33712         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
33713         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
33714         * sysdeps/powerpc/powerpc32/start.S: ... here.
33715         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
33716         * sysdeps/powerpc/powerpc32/configure.in: ... this.
33717         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
33718
33719         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
33720         * sysdeps/powerpc/ifunc-sel.h: ... here.
33721         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
33722         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
33723
33724         * sysdeps/sparc/elf/configure.in: Moved to ...
33725         * sysdeps/sparc/configure.in: ... here.
33726         * sysdeps/sparc/elf/configure: Delete file.
33727         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
33728         * sysdeps/sparc/sparc32/start.S: ... here.
33729         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
33730         * sysdeps/sparc/sparc64/start.S: ... here.
33731         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
33732         * sysdeps/sparc/sparc32/Makefile: ... this.
33733         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
33734         * sysdeps/sparc/sparc64/Makefile: ... this.
33735
33736         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
33737         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
33738         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
33739         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
33740         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
33741         * sysdeps/s390/s390-32/setjmp.S: ... here.
33742         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
33743         * sysdeps/s390/s390-32/configure.in: ... here.
33744         * sysdeps/s390/s390-32/elf/configure: Delete file.
33745         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
33746         * sysdeps/s390/s390-32/start.S: ... here.
33747
33748         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
33749         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
33750         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
33751         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
33752         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
33753         * sysdeps/s390/s390-64/setjmp.S: ... here.
33754         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
33755         * sysdeps/s390/s390-64/configure.in: ... here
33756         * sysdeps/s390/s390-64/elf/configure: Delete file.
33757         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
33758         * sysdeps/s390/s390-64/start.S: ... here.
33759         * sysdeps/s390/s390-64/elf/configure: Delete.
33760
33761         * configure.in: Remove support for elf directories in sysdeps.
33762
33763         * configure: Regenerated.
33764         * sysdeps/i386/configure: Regenerated.
33765         * sysdeps/powerpc/powerpc32/configure: Regenerated.
33766         * sysdeps/powerpc/powerpc64/configure: Regenerated.
33767         * sysdeps/s390/s390-32/configure: Regenerated.
33768         * sysdeps/s390/s390-64/configure: Regenerated.
33769         * sysdeps/sh/configure: Regenerated.
33770         * sysdeps/sparc/configure: Regenerated.
33771         * sysdeps/x86_64/configure: Regenerated.
33772
33773 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
33774
33775         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33776
33777         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
33778         denormal result into account.
33779
33780 2012-03-25  Roland McGrath  <roland@hack.frob.com>
33781
33782         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
33783         Reported by Allan McRae <allan@archlinux.org>.
33784
33785 2012-03-23  Jeff Law  <law@redhat.com>
33786
33787         * nss/getnssent.c (__nss_getent): Fix typo.
33788
33789 2012-03-23  David S. Miller  <davem@davemloft.net>
33790
33791         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33792
33793 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
33794
33795         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
33796         to pad to uint64_t for each field.
33797         (dl_tls_index): Replace unsigned long with uint64_t.
33798
33799 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
33800         Paul Pluzhnikov  <ppluzhnikov@google.com>
33801
33802         [BZ #6528]
33803         * grp/Makefile (otherlibs): Don't set it.
33804         * inet/Makefile (otherlibs): Likewise.
33805         * login/Makefile (otherlibs): Likewise.
33806         * nscd/Makefile (otherlibs): Likewise.
33807         * posix/Makefile (otherlibs): Likewise.
33808         * pwd/Makefile (otherlibs): Likewise.
33809         * rt/Makefile (otherlibs): Likewise.
33810         * sunrpc/Makefile (otherlibs): Likewise.
33811         * nss/Makefile (otherlibs): Likewise.
33812         Add libnss_files to routines and static-only-routines.
33813         ($(objpfx)getent): Remove rule.
33814         * resolv/Makefile: Add libnss_dns and libresolv to routines and
33815         static-only-routines.
33816
33817 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
33818
33819         [BZ #13892]
33820         * math/s_cexp.c: Include <float.h>.
33821         (__cexp): Handle exp result overflowing not necessarily
33822         overflowing both real and imaginary parts of result.
33823         * math/s_cexpf.c: Likewise.
33824         * math/s_cexpl.c: Likewise.
33825         * math/libm-test.inc (cexp_test): Add more tests.
33826         * sysdeps/i386/fpu/libm-test-ulps: Update.
33827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33828
33829 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
33830
33831         * include/link.h (ELFW): New macro.
33832         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
33833         Replace ELF64_R_TYPE with ELFW(R_TYPE).
33834
33835 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
33836
33837         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
33838         with uint64_t.
33839
33840 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
33841
33842         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
33843         declaration.
33844         (struct La_x32_retval): Likewise.
33845
33846 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
33847
33848         * sysdeps/x86_64/preconfigure.in: New file.
33849         * sysdeps/x86_64/preconfigure: New generated file.
33850
33851 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
33852
33853         [BZ #13824]
33854         * math/e_exp2l.c: Include <float.h>.
33855         (__ieee754_exp2l): Handle overflow and underflow cases
33856         separately.  Only pass fractional part of argument to
33857         __ieee754_expl.
33858         * math/libm-test.inc (exp2_test): Add more tests.
33859
33860         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
33861         negating x to take absolute value.
33862         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33863         Likewise.
33864         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33865         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
33866         Likewise.
33867         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
33868         computing low part if x was negated.
33869         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33870
33871 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
33872
33873         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
33874         la_x32_gnu_pltexit.
33875         (pltexit): Cast int_retval to ptrdiff_t.
33876         * elf/tst-auditmod3b.c: Likewise.
33877         * elf/tst-auditmod4b.c: Likewise.
33878         * elf/tst-auditmod5b.c: Likewise.
33879         * elf/tst-auditmod6b.c: Likewise.
33880         * elf/tst-auditmod6c.c: Likewise.
33881         * elf/tst-auditmod7b.c: Likewise.
33882
33883         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
33884         and x32_gnu_pltexit.
33885
33886         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
33887         __ELF_NATIVE_CLASS.
33888         (La_x32_regs): New macro.
33889         (La_x32_retval): Likewise.
33890         (la_x32_gnu_pltenter): New function prototype.
33891         (la_x32_gnu_pltexit): Likewise.
33892
33893 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
33894
33895         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
33896         exponent.
33897
33898         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33899
33900         * configure.in (libc_cv_cc_nofma): Check for option to disable
33901         generation of FMA instructions.
33902         * configure: Regenerate.
33903         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
33904         * sysdeps/ieee754/dbl-64/Makefile: New file.
33905         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33906         Remove brandred-fma4.
33907         (CFLAGS-brandred-fma4.c): Remove.
33908         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
33909         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
33910         define.
33911         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
33912         define.
33913
33914 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
33915
33916         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
33917         LLONG_MAX != LONG_MAX.
33918         (_itoa_word): Use _ITOA_WORD_TYPE on value.
33919         (_fitoa_word): Likewise.
33920         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
33921         LLONG_MAX != LONG_MAX.
33922         * stdio-common/_itowa.h: Include <_itoa.h>.
33923         (_itowa_word): Use _ITOA_WORD_TYPE on value.
33924         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
33925         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
33926         only if not defined.
33927         (_ITOA_WORD_TYPE): Likewise.
33928         (_itoa_word): Use _ITOA_WORD_TYPE on value.
33929         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
33930
33931 2012-03-21  David S. Miller  <davem@davemloft.net>
33932
33933         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33934
33935 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
33936
33937         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
33938         of x86_64 when setting libc_cv_slibdir, libdir and
33939         libc_cv_localedir.
33940         * sysdeps/unix/sysv/linux/configure: Regenerated.
33941
33942 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
33943
33944         * manual/lang.texi (Old Varargs): Remove section.
33945         (How Variadic): Update menu.
33946         (va_start): Do not mention varargs.h.
33947
33948 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
33949             Joseph Myers  <joseph@codesourcery.com>
33950
33951         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
33952         link test.
33953         * configure: Regenerated.
33954
33955 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
33956
33957         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
33958         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
33959         conformtest.pl
33960
33961 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
33962
33963         * NOTES: Remove.
33964         * Makefile (files-for-dist): Remove NOTES.
33965         (NOTES): Remove rule.
33966         * README: Don't refer to NOTES.
33967         * manual/creature.texi: Don't include macros.texi.
33968         * manual/intro.texi (creature.texi): Remove comment referring to
33969         NOTES.
33970
33971         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
33972         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
33973         * configure: Regenerated.
33974         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
33975         LIBC_TRY_CC_OPTION.
33976         (libc_cv_as_i686): Likewise.
33977         (libc_cv_cc_avx): Likewise.
33978         (libc_cv_cc_sse2avx): Likewise.
33979         (libc_cv_cc_fma4): Likewise.
33980         (libc_cv_cc_novzeroupper): Likewise.
33981         * sysdeps/i386/configure: Regenerated.
33982
33983         [BZ #13883]
33984         * sysdeps/i386/fpu/s_cexp.S: Remove.
33985         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
33986         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
33987         * math/libm-test.inc (cexp_test): Add more tests.
33988         * sysdeps/i386/fpu/libm-test-ulps: Update.
33989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33990
33991 2012-03-21  Allan McRae  <allan@archlinux.org>
33992
33993         * timezone/Makefile: Do not install iso3166.tab and zone.tab
33994
33995 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
33996
33997         [BZ #13871]
33998         * math/w_exp2.c: Do not include <float.h>.
33999         (o_threshold, u_threshold): Remove.
34000         (__exp2): Calculate result before checking finiteness and calling
34001         __kernel_standard.
34002         * math/w_exp2f.c: Likewise.
34003         * math/w_exp2l.c: Likewise.
34004         * math/libm-test.inc (exp2_test): Require overflow exception for
34005         1e6 input.
34006
34007         [BZ #3866]
34008         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
34009         range of signed 64-bit integers before using fistpll.  Remove
34010         checks for whether integers fit in mantissa bits.
34011         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
34012         the range of signed 32-bit integers before using fistpl.  Remove
34013         checks for whether integers fit in mantissa bits.
34014         * sysdeps/i386/fpu/e_powl.S (p64): New object.
34015         (__ieee754_powl): Test for y outside the range of signed 64-bit
34016         integers before using fistpll.  Reduce 64-bit values to 63-bit
34017         ones as needed.
34018         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
34019         divide-by-zero is raised for zero to large negative powers.
34020         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
34021         (__ieee754_powl): Test for y outside the range of signed 64-bit
34022         integers before using fistpll.  Reduce 64-bit values to 63-bit
34023         ones as needed.
34024         * math/libm-test.inc (pow_test): Add more tests.
34025
34026 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
34027
34028         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
34029         <stdio-common/_itoa.h>.
34030         * debug/segfault.c: Likewise.
34031         * elf/dl-cache.c: Likewise.
34032         * elf/dl-minimal.c: Likewise.
34033         * elf/dl-misc.c: Likewise.
34034         * elf/dl-sysdep.c: Likewise.
34035         * elf/dl-version.c: Likewise.
34036         * elf/rtld.c: Likewise.
34037         * hurd/hurdsock.c: Likewise.
34038         * hurd/lookup-retry.c: Likewise.
34039         * malloc/malloc.c: Likewise.
34040         * malloc/mtrace.c: Likewise.
34041         * nscd/nscd_getgr_r.c: Likewise.
34042         * nscd/nscd_getpw_r.c: Likewise.
34043         * nscd/nscd_getserv_r.c: Likewise.
34044         * posix/getopt_init.c: Likewise.
34045         * posix/wordexp.c: Likewise.
34046         * stdio-common/_itoa.c: Likewise.
34047         * stdio-common/printf_fphex.c: Likewise.
34048         * stdio-common/vfprintf.c: Likewise.
34049         * string/_strerror.c: Likewise.
34050         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
34051         * sysdeps/i386/i686/hp-timing.h: Likewise.
34052         * sysdeps/mach/_strerror.c: Likewise.
34053         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
34054         * sysdeps/mach/hurd/sethostid.c: Likewise.
34055         * sysdeps/mach/hurd/xmknodat.c: Likewise.
34056         * sysdeps/mach/xpg-strerror.c: Likewise.
34057         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
34058         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
34059         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
34060         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
34061         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
34062         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
34063         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
34064         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
34065         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
34066         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
34067         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
34068         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
34069         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
34070         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
34071         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
34072         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
34073         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
34074         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
34075         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
34076         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
34077         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
34078
34079         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
34080
34081         * stdio-common/_itoa.h: Moved to ...
34082         * sysdeps/generic/_itoa.h: Here.
34083
34084         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
34085
34086         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
34087         instead of "_itoa.h" and "_itowa.h".
34088         * stdio-common/vfprintf.: Likewise.
34089
34090 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
34091
34092         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
34093         <bits/wordsize.h>.
34094         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
34095         (__signbit): Likwise.
34096         (llrintf): Likwise.
34097         (llrint): Likwise.
34098
34099 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
34100
34101         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
34102         __WORDSIZE != 64.
34103
34104 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
34105
34106         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
34107         OVERFLOW_EXCEPTION_OK.
34108         * math/libm-test.inc ("Philosophy"): Update comment about
34109         exception testing.
34110         (OVERFLOW_EXCEPTION): Define.
34111         (OVERFLOW_EXCEPTION_OK): Likewise.
34112         (INVALID_EXCEPTION_OK): Renumber.
34113         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
34114         (IGNORE_ZERO_INF_SIGN): Likewise.
34115         (test_exceptions): Handle FE_OVERFLOW.
34116         (exp10_test): Expect overflow exceptions.
34117         (exp2_test): Likewise.
34118         (expm1_test): Likewise.
34119         (nextafter_test): Likewise.
34120         (pow_test): Likewise.
34121         (scalbn_test): Likewise.
34122         (scalbln_test): Likewise.
34123
34124 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34125
34126         * sysdeps/x86_64/bits/atomic.h
34127         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
34128         64bit integer.
34129         (atomic_exchange_acq): Likewise.
34130         (__arch_exchange_and_add_body): Likewise.
34131         (__arch_add_body): Likewise.
34132         (atomic_add_negative): Likewise.
34133         (atomic_add_zero): Likewise.
34134
34135 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34136
34137         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
34138         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
34139
34140 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34141
34142         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
34143         Check __x86_64__ instead of __WORDSIZE.
34144
34145 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34146
34147         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
34148
34149 2012-03-19  David S. Miller  <davem@davemloft.net>
34150
34151         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34152
34153         * sysdeps/sparc/fpu/fenv_private.h: New file.
34154         * sysdeps/sparc/fpu/math_private.h: Use it.
34155         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
34156         Remove.
34157         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
34158         (libc_feholdexcept_setroundl): Remove.
34159         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
34160         Remove.
34161         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
34162         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
34163
34164 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34165
34166         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
34167         int64_t instead of long int.
34168         (INSERT_WORDS64): Likwise.
34169
34170 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34171
34172         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
34173         _Unwind_GetCFA return to _Unwind_Ptr first.
34174
34175 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
34176
34177         [BZ #13629]
34178         * math/s_clog.c: Include <float.h>.
34179         (__clog): Scale large or subnormal inputs.
34180         * math/s_clogf.c: Likewise.
34181         * math/s_clogl.c: Likewise.
34182         * math/s_clog10.c: Include <float.h>.
34183         (M_LOG10_2): Define.
34184         (__clog10): Scale large or subnormal inputs.
34185         * math/s_clog10f.c: Likewise.
34186         * math/s_clog10l.c: Likewise.
34187         * math/libm-test.inc (clog_test): Add more tests.
34188         (clog10_test): Likewise.
34189         * sysdeps/i386/fpu/libm-test-ulps: Update.
34190         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34191
34192         [BZ #11451]
34193         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
34194         x and y.
34195         * math/libm-test.inc (atan2_test): Add another test.
34196
34197         * Makerules (common-objdir-compile): Remove.
34198         * sysdeps/unix/Makefile (config-generated): Do not add
34199         $(unix-generated) to variable.
34200         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
34201         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
34202         Remove rule.
34203         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
34204         Likewise.
34205         [generic bits/local_lim.h] (before-compile): Do not append to
34206         variable.
34207         [generic bits/local_lim.h] (common-generated): Likewise.
34208         [generic sys/param.h] (before-compile): Do not append to variable.
34209         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
34210         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
34211         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
34212         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
34213         include.
34214         [generic sys/param.h] (sys/param.h-includes): Remove variable.
34215         [generic sys/param.h] (sys/param.h-includes): Remove rule.
34216         [generic sys/param.h] ($(addprefix
34217         $(common-objpfx),$(sys/param.h-includes))): Likewise.
34218         [generic sys/param.h] (common-generated): Do not append to
34219         variable.
34220         [generic sys/param.h] (sysdep_headers): Likewise.
34221         [generic bits/errno.h] (before-compile): Do not append to
34222         variable.
34223         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
34224         rule.
34225         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
34226         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
34227         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
34228         [generic bits/errno.h] (common-generated): Do not append to
34229         variable.
34230         [generic bits/ioctls.h] (before-compile): Do not append to
34231         variable.
34232         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
34233         rule.
34234         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
34235         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
34236         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
34237         rule.
34238         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
34239         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
34240         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
34241         [generic bits/ioctls.h] (common-generated): Do not append to
34242         variable.
34243         [generic sys/syscall.h] (syscall.h): Remove variable.
34244         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
34245         rule.
34246         [generic sys/syscall.h] (before-compile): Do not append to
34247         variable.
34248         [generic sys/syscall.h] (common-generated): Likewise.
34249         * sysdeps/unix/errnos-tmpl.c: Remove file.
34250         * sysdeps/unix/errnos.awk: Likewise.
34251         * sysdeps/unix/ioctls-tmpl.c: Likewise.
34252         * sysdeps/unix/ioctls.awk: Likewise.
34253         * sysdeps/unix/mk-local_lim.c: Likewise.
34254         * sysdeps/unix/snarf-ioctls: Likewise.
34255
34256 2012-03-19  Richard Henderson  <rth@twiddle.net>
34257
34258         * sysdeps/i386/fpu/fenv_private.h: New file.
34259         * sysdeps/i386/fpu/math_private.h: Use it.
34260         (math_opt_barrier, math_force_eval): Remove.
34261         (libc_feholdexcept_setround_53bit): Remove.
34262         (libc_feupdateenv_53bit): Remove.
34263         * sysdeps/x86_64/fpu/math_private.h: Likewise.
34264         (math_opt_barrier, math_force_eval): Remove.
34265         (libc_feholdexcept): Remove.
34266         (libc_feholdexcept_setround): Remove.
34267         (libc_fetestexcept, libc_fesetenv): Remove.
34268         (libc_feupdateenv_test): Remove.
34269         (libc_feupdateenv, libc_feholdsetround): Remove.
34270         (libc_feresetround): Remove.
34271
34272         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
34273         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
34274
34275         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
34276         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
34277         (libc_feupdateenv_testl): New.
34278         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
34279         (libc_feupdateenv_testf): New.
34280         (libc_feupdateenv): Use libc_feupdateenv_test.
34281         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
34282         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
34283
34284         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
34285         (libc_feholdsetroundf, libc_feholdsetroundl): New.
34286         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
34287         (libc_feresetround_noex): New.
34288         (libc_feresetround_noexf): New.
34289         (libc_feresetround_noexl): New.
34290         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
34291         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
34292         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
34293         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
34294         SET_RESTORE_ROUND.
34295         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
34296         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
34297         (__cos): Likewise.
34298         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
34299         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
34300         SET_RESTORE_ROUND_NOEX.
34301         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
34302         SET_RESTORE_ROUND_NOEXF.
34303         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
34304         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
34305         (libc_feholdsetroundf): New.
34306         (libc_feresetround, libc_feresetroundf): New.
34307
34308         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
34309         (libc_feholdexcept_setround_53bit): Convert from macro to function.
34310         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
34311
34312         * sysdeps/generic/math_private.h: Include <fenv.h>.
34313         (default_libc_feholdexcept): New.
34314         (default_libc_feholdexcept_setround): New.
34315         (default_libc_fesetenv, default_libc_feupdateenv): New.
34316         (libc_feholdexcept): Only define if undefined.
34317         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
34318         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
34319         (libc_feholdexcept_setroundl): Likewise.
34320         (libc_feholdexcept_setround_53bit): Likewise.
34321         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
34322         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
34323         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
34324         (libc_feupdateenv_53bit): Likewise.
34325         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
34326         (libc_feholdexcept): Convert from macro to inline function.
34327         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
34328         (libc_fesetenv, libc_feupdateenv): Likewise.
34329
34330         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
34331         not previously defined.
34332         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
34333         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
34334         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
34335         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
34336         * sysdeps/ieee754/flt-32/math_private.h: New file.
34337         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
34338         math_private.h below SET_FLOAT_WORD.
34339         (__isnan, __isinf_ns, __finite): Remove.
34340         (__isnanf, __isinf_nsf, __finitef): Remove.
34341
34342 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
34343
34344         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34345
34346 2012-03-17  David S. Miller  <davem@davemloft.net>
34347
34348         [BZ #6471]
34349         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
34350         for 2.16.
34351
34352 2012-03-16  David S. Miller  <davem@davemloft.net>
34353
34354         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
34355         warnings.
34356
34357         [BZ #6471]
34358         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
34359         properly.
34360         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
34361         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
34362         sysdep_routines when subdir is sysvipc.
34363         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
34364         __getshmlba helper.
34365
34366         * sysdeps/sparc/fpu/libm-test/ulps: Update.
34367
34368 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
34369
34370         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
34371         [__LP64__].
34372
34373 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
34374
34375         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
34376         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
34377         (__lround): Renamed to ...
34378         (__llround): This.  Replace long int with long long int.
34379         Define lround functions as aliases of llround functions.
34380         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
34381
34382 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
34383
34384         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
34385         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
34386         adresses to uintptr_t.  Replace "long int" and "unsigned long
34387         int" with "greg_t" on va_arg.
34388
34389 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
34390
34391         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
34392         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
34393
34394         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
34395         Move e_machine check before EI_CLASS check.  Handle x32
34396         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
34397         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
34398         SKIP_EM_IA_64 and include
34399         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
34400
34401         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
34402         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
34403         (add_system_dir): New macro.
34404
34405         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
34406         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
34407
34408 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
34409
34410         [BZ #2551]
34411         [BZ #2552]
34412         [BZ #2553]
34413         [BZ #2554]
34414         [BZ #2562]
34415         [BZ #2563]
34416         [BZ #2565]
34417         [BZ #2566]
34418         [BZ #2576]
34419         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
34420         (y0): Likewise.
34421         * math/w_j0f.c (j0f): Likewise.
34422         (y0f): Likewise.
34423         * math/w_j0l.c (__j0l): Likewise.
34424         (__y0l): Likewise.
34425         * math/w_j1.c (j1): Likewise.
34426         (y1): Likewise.
34427         * math/w_j1f.c (j1f): Likewise.
34428         (y1f): Likewise.
34429         * math/w_j1l.c (__j1l): Likewise.
34430         (__y1l): Likewise.
34431         * math/w_jn.c (jn): Likewise.
34432         (yn): Likewise.
34433         * math/w_jnf.c (jnf): Likewise.
34434         (ynf): Likewise.
34435         * math/w_jnl.c (__jnl): Likewise.
34436         (__ynl): Likewise.
34437         * math/libm-test.inc (j0_test): Add more tests.
34438         (j1_test): Likewise.
34439         (jn_test): Likewise.  Add trailing semicolon to existing test.
34440         (y0_test): Likewise.
34441         (y1_test): Likewise.
34442         * sysdeps/i386/fpu/libm-test-ulps: Update.
34443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34444
34445         [BZ #13851]
34446         [BZ #13854]
34447         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
34448         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
34449         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
34450         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
34451         (__tanl): Set errno for infinite argument.
34452         * sysdeps/i386/fpu/mptan.c: Remove.
34453         * sysdeps/i386/fpu/s_tan.S: Likewise.
34454         * sysdeps/i386/fpu/s_tanl.S: Likewise.
34455         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
34456         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
34457         * math/libm-test.inc (tan_test): Add more tests and enable more
34458         tests for double and long double.
34459         * sysdeps/i386/fpu/libm-test-ulps: Update.
34460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34461
34462 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
34463
34464         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
34465         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
34466
34467 2012-03-16  Roland McGrath  <roland@hack.frob.com>
34468
34469         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
34470         * configure.in: Use it for both main tree and add-ons.
34471         * configure: Regenerated.
34472
34473 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
34474
34475         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
34476
34477 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
34478
34479         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
34480         in comment.
34481
34482         [BZ #13851]
34483         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
34484         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
34485         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
34486         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
34487         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
34488         infinite argument.
34489         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
34490         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
34491         != 0 for prec == 2.
34492         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
34493         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
34494         * sysdeps/i386/fpu/s_cosl.S: Likewise.
34495         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
34496         * sysdeps/i386/fpu/s_sinl.S: Likewise.
34497         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
34498         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
34499         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
34500         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
34501         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
34502         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
34503         * math/libm-test.inc (cos_test): Add more tests and enable more
34504         tests for long double.
34505         (sin_test): Likewise.
34506         (sincos_test): Likewise.
34507         * sysdeps/i386/fpu/libm-test-ulps: Update.
34508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34509
34510 2012-03-16  David S. Miller  <davem@davemloft.net>
34511
34512         * sysdeps/sparc/fpu/math_private.h: New file.
34513
34514 2012-03-15  David S. Miller  <davem@davemloft.net>
34515
34516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
34517         file.
34518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
34519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
34520         file.
34521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
34522         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
34523         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
34524         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
34525         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
34526         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
34527         sysdep routines.
34528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
34529
34530         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
34531         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
34532
34533         * sysdeps/sparc/sparc-ifunc.h: New file.
34534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
34535         sparc-ifunc.h
34536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
34537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
34538         Likewise.
34539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
34540         Likewise.
34541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
34542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
34543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
34544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
34545         Likewise.
34546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
34547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
34548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
34549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
34550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
34551         Likewise.
34552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
34553         Likewise.
34554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
34555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
34556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
34557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
34558         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
34559         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
34560         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
34561         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
34562         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
34563         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
34564         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
34565         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
34566         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
34567         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
34568         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
34569         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
34570         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
34571         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
34572         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
34573         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
34574         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
34575         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
34576         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
34577         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
34578
34579 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
34580
34581         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
34582         scaling.
34583         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34584
34585 2012-03-15  Andreas Jaeger  <aj@suse.de>
34586
34587         [BZ #13852]
34588         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
34589         ieee754/flt-32 implementation for sin, cos and sincos.
34590         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
34591         * sysdeps/i386/fpu/s_cosf.S: Likewise.
34592         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
34593         * sysdeps/i386/fpu/s_sinf.S: Likewise.
34594         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
34595         ieee754/flt-32 implementation for tan.
34596
34597         * math/libm-test.inc (cos_test): Enable some large input tests for
34598         float as well
34599         (sin_test): Likewise.
34600         (sincos_test): Likewise.
34601         (tan_test): Add tests for large input.
34602
34603         * sysdeps/i386/fpu/libm-test-ulps: Update.
34604
34605 2012-03-15  Andreas Jaeger  <aj@suse.de>
34606
34607         [BZ #13658]
34608         * math/libm-test.inc (cos_test): Add more test cases.
34609         (sin_test): Likewise.
34610         (sincos_test): Likewise.
34611
34612 2012-03-15  Andreas Jaeger  <aj@suse.de>
34613
34614         [BZ #13837]
34615         * math/libm-test.inc (cos_test): Add a test case for large input
34616         value.
34617         (sin_test): Likewise.
34618         (sincos_test): Likewise.
34619
34620 2012-03-15  Andreas Jaeger  <aj@suse.de>
34621             Joseph Myers  <joseph@codesourcery.com>
34622
34623         [BZ #13658]
34624         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
34625         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
34626         * sysdeps/i386/fpu/branred.c: Likewise.
34627         * sysdeps/i386/fpu/dosincos.c: Likewise.
34628         * sysdeps/i386/fpu/mpa.c: Likewise.
34629         * sysdeps/i386/fpu/s_cos.S: Likewise.
34630         * sysdeps/i386/fpu/s_sin.S: Likewise.
34631         * sysdeps/i386/fpu/s_sincos.S: Likewise.
34632         * sysdeps/i386/fpu/sincos32.c: Likewise.
34633
34634         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
34635         Define.
34636         (libc_feupdateenv_53bit): Define.
34637         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
34638         Define.
34639         (libc_feupdateenv_53bit): Define.
34640
34641         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
34642         53 bit (without extend i386 double precision).
34643
34644         * math/libm-test.inc (sincos_test): Add tests for large input.
34645         (sin): Likewise.
34646         (cos): Likewise.
34647
34648         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
34649
34650 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
34651
34652         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34653
34654 2012-03-15  David S. Miller  <davem@davemloft.net>
34655
34656         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
34657         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
34658         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
34659         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
34660         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
34661         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
34662         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
34663         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
34664         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
34665         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
34666         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
34667         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
34668         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
34669         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
34670         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
34671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
34672         file.
34673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
34674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
34675         file.
34676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
34677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
34678         file.
34679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
34680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
34681         file.
34682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
34683         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
34684         fmin/fmax sysdep routines.
34685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
34686
34687 2012-03-14  David S. Miller  <davem@davemloft.net>
34688
34689         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
34690         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
34691         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
34692         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
34693         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
34694         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
34695         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
34696         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
34697         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
34698         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
34699         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
34700         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
34701         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
34702         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
34703         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
34704         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
34705         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
34706         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
34707         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
34708         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
34709         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
34710         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
34711         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
34712         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
34713         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
34714         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
34715         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
34716         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
34717         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
34718         routines.
34719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
34720         file.
34721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
34722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
34723         file.
34724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
34725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
34726         file.
34727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
34728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
34729         file.
34730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
34731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
34732         file.
34733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
34734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
34735         file.
34736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
34737         file.
34738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
34739         file.
34740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
34741         file.
34742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
34743         New file.
34744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
34745         file.
34746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
34747         file.
34748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
34749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
34750         file.
34751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
34752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
34753         file.
34754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
34755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
34756         file.
34757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
34758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
34759         VIS3 routines.
34760
34761         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
34762         New file.
34763
34764         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34765
34766         * sysdeps/sparc/configure.in: New file.
34767         * sysdeps/sparc/configure: Generate.
34768         * configure.in (libc_cv_sparc_as_vis3): Substitute.
34769         * configure: Regenerate.
34770         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
34771         * config.make.in (have-as-vis3): New.
34772         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
34773         available use -Av9d instead of -Av9a.
34774         * sysdeps/sparc/sparc64/Makefile: Likewise.
34775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
34776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
34777         New file.
34778         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
34779         file.
34780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
34781         New file.
34782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
34783         file.
34784         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
34785         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
34786         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
34787         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
34788         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
34789
34790         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
34791         fzeros/fnegs to load 0x80000000 into a float register instead of
34792         using the stack.
34793         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
34794
34795 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
34796
34797         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
34798         bits/syscall.h.
34799         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
34800         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
34801         ($(inst_includedir)/bits/syscall.h): Remove rule.
34802         ($(objpfx)bits/syscall.d): Include instead of
34803         $(objpfx)syscall-list.d.
34804         (generated): Change syscall-list.h and syscall-list.d to
34805         bits/syscall.h and bits/syscall.d.
34806
34807 2012-03-14  Roland McGrath  <roland@hack.frob.com>
34808
34809         [BZ #13846]
34810         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
34811
34812 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
34813
34814         [BZ #13841]
34815         * math/s_csqrt.c: Include <float.h>.
34816         (__csqrt): Scale large or subnormal inputs.
34817         * math/s_csqrtf.c: Likewise.
34818         * math/s_csqrtl.c: Likewise.
34819         * math/libm-test.inc (csqrt_test): Add more tests.
34820         * sysdeps/i386/fpu/libm-test-ulps: Update.
34821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34822
34823         [BZ #13840]
34824         * math/libm-test.inc (hypot_test): Add more tests.
34825
34826 2012-03-13  David S. Miller  <davem@davemloft.net>
34827
34828         [BZ #13840]
34829         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
34830         double-precision for the calculation instead of scaling.
34831
34832 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
34833
34834         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
34835         manipulate bits before adding and subtracting TWO52[sx].
34836         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
34837         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
34838         Likewise.
34839         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
34840
34841 2012-03-13  David S. Miller  <davem@davemloft.net>
34842
34843         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
34844         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
34845         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
34846         rtld-global-offsets.h
34847         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
34848
34849         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
34850         large parameters.
34851
34852         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
34853
34854         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
34855         'err' in the ifdef scope in which it is actually used.
34856
34857         * nss/nss_db/db-init.c: Include string.h
34858
34859 2012-03-12  David S. Miller  <davem@davemloft.net>
34860
34861         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
34862         masking out of the most significant byte of random value used.
34863         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
34864         Fix coding style in previous change.
34865
34866         * sysdeps/unix/sysv/linux/kernel-features.h
34867         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
34868         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
34869         expression.
34870         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
34871         later.
34872
34873 2012-03-11  David S. Miller  <davem@davemloft.net>
34874
34875         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
34876         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
34877         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
34878         for 'resultvar' otherwise things get truncated on 64-bit.
34879
34880         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
34881         Fix masking out of the most significant byte of random value used.
34882
34883         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34884
34885 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
34886
34887         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34888
34889 2012-03-09  David S. Miller  <davem@davemloft.net>
34890
34891         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
34892         variables with appropriate CPP guards.
34893         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
34894         from the frame pointer, not the stack pointer.  Correct layout
34895         comments.  Fix test on resulting framesize and the management of
34896         the outregs buffer for pltexit.  Preserve floating point return
34897         values across _dl_call_pltexit call.
34898         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
34899         framesize and the management of the outregs buffer for pltexit.
34900         Preserve floating point return values across _dl_call_pltexit
34901         call.
34902         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
34903         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
34904         (la_sparc64_gnu_pltexit): New functions.
34905         (print_exit): Fix format string for return register value.
34906
34907 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
34908
34909         * sunrpc/Makefile (others): Add rpcgen.
34910         ($(objpfx)rpcgen): Remove special build rule and dependency on
34911         libc.
34912         * sunrpc/rpcgen.c: New file.
34913
34914 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
34915
34916         [BZ #13673]
34917         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
34918         * stdio-common/bug-vfprintf-nargs.c: Likewise.
34919         * sysdeps/i386/crti.S: Likewise.
34920         * sysdeps/i386/crtn.S: Likewise.
34921         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
34922         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
34923         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
34924         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
34925         * sysdeps/sh/crti.S: Likewise.
34926         * sysdeps/sh/crtn.S: Likewise.
34927         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
34928
34929         [BZ #13673]
34930         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
34931         with URL.
34932         * locale/programs/locfile-kw.gperf: Likewise.
34933         * locale/programs/charmap-kw.h: Regenerated.
34934         * locale/programs/locfile-kw.h: Likewise.
34935
34936         [BZ #13673]
34937         * intl/plural.y: Replace FSF snail mail address with URL.
34938         * intl/plural.c: Regenerated.
34939
34940 2012-03-09  Richard Henderson  <rth@twiddle.net>
34941
34942         * include/math_private.h: Remove file.
34943         * math/math_private.h: Move file ...
34944         * sysdeps/generic/math_private.h: ... here.
34945
34946         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
34947         * sysdeps/powerpc/fpu/math_private.h: Likewise.
34948         * sysdeps/x86_64/fpu/math_private.h: Likewise.
34949
34950         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
34951         and <math_private.h>.
34952         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
34953         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
34954         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
34955         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
34956         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
34957         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
34958         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
34959         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
34960         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
34961         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
34962         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
34963         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
34964         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
34965         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
34966         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
34967         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
34968         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
34969         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
34970         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
34971         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
34972         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
34973         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
34974         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
34975         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
34976         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
34977         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
34978         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
34979         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
34980         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
34981         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
34982         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
34983         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
34984         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
34985         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
34986         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
34987         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
34988         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
34989         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
34990         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
34991         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
34992         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
34993         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
34994         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
34995         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
34996         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
34997         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
34998         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
34999         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
35000         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
35001         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
35002         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
35003         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
35004         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
35005         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
35006         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
35007         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
35008         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
35009         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
35010         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
35011         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
35012         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
35013         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
35014         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
35015         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
35016         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
35017         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
35018         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
35019         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
35020         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
35021         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
35022         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
35023         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
35024         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
35025         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
35026         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
35027         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
35028         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
35029         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
35030         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
35031         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
35032         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
35033         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
35034         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
35035         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
35036         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
35037         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
35038         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
35039         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
35040         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
35041         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
35042         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
35043         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
35044         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
35045         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
35046         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
35047         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
35048         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
35049         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
35050         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
35051         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
35052         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
35053         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
35054         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
35055         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
35056         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
35057         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
35058         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
35059         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
35060         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
35061         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
35062         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
35063         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
35064         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
35065         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
35066         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
35067         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
35068         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
35069         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
35070         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
35071         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
35072         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
35073         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
35074         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
35075         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
35076         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
35077         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
35078         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
35079         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
35080         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
35081         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
35082         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
35083         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
35084         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
35085         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
35086         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
35087         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
35088         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
35089         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
35090         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
35091         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
35092         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
35093         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
35094         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
35095         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
35096         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
35097         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
35098         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
35099         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
35100         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
35101         * sysdeps/ieee754/k_standard.c: Likewise.
35102         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
35103         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
35104         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
35105         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
35106         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
35107         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
35108         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
35109         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
35110         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
35111         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
35112         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
35113         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
35114         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
35115         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
35116         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
35117         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
35118         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
35119         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
35120         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
35121         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
35122         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
35123         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
35124         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
35125         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
35126         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
35127         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
35128         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
35129         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
35130         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
35131         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
35132         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
35133         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
35134         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
35135         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
35136         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
35137         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
35138         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
35139         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
35140         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
35141         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
35142         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
35143         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
35144         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
35145         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
35146         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
35147         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
35148         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
35149         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
35150         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
35151         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
35152         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
35153         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
35154         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
35155         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
35156         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
35157         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
35158         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
35159         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
35160         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
35161         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
35162         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
35163         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
35164         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
35165         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
35166         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
35167         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
35168         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
35169         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
35170         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
35171         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
35172         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
35173         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
35174         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
35175         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
35176         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
35177         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
35178         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
35179         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
35180         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
35181         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
35182         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
35183         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
35184         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
35185         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
35186         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
35187         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
35188         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
35189         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
35190         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
35191         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
35192         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
35193         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
35194         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
35195         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
35196         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
35197         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
35198         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
35199         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
35200         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
35201         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
35202         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
35203         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
35204         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
35205         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
35206         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
35207         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
35208         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
35209         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
35210         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
35211         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
35212         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
35213         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
35214         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
35215         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
35216         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
35217         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
35218         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
35219         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
35220         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
35221         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
35222         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
35223         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
35224         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
35225         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
35226         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
35227         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
35228         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
35229         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
35230         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
35231         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
35232         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
35233         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
35234         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
35235         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
35236         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
35237         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
35238         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
35239         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
35240         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
35241         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
35242         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
35243         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
35244         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
35245         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
35246         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
35247         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
35248         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
35249         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
35250         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
35251         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
35252         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
35253         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
35254         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
35255         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
35256         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
35257         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
35258         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
35259         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
35260         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
35261         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
35262         * sysdeps/ieee754/s_lib_version.c: Likewise.
35263         * sysdeps/ieee754/s_matherr.c: Likewise.
35264         * sysdeps/ieee754/s_signgam.c: Likewise.
35265         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
35266         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
35267         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
35268         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
35269         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
35270         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
35271         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
35272         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
35273         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
35274         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
35275         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
35276         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
35277         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
35278         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
35279         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
35280         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
35281         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
35282         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
35283         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
35284         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
35285         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
35286
35287 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
35288
35289         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
35290         * sunrpc/rpc_main.c: Likewise.
35291         * sunrpc/rpc_svcout.c: Likewise.
35292
35293 2012-03-09  David S. Miller  <davem@davemloft.net>
35294
35295         * include/math_private.h: New file.
35296
35297 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
35298
35299         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
35300         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
35301         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
35302         from <bits/socket_type.h>.
35303         (enum __socket_type): Don't define here.
35304         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
35305         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
35306         bits/socket_type.h.
35307
35308         [BZ #13566]
35309         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
35310         checking __USE_GNU.
35311
35312         * Makerules ($(inst_includedir)/%.h): New rule.
35313         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
35314         (install-others): Remove variable setting.
35315         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
35316
35317 2012-03-08  Richard Henderson  <rth@twiddle.net>
35318
35319         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
35320         from macro to inline function; merge with the
35321         !__LIBC_INTERNAL_MATH_INLINES version.
35322         (__ieee754_sqrtf): Likewise.
35323
35324         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
35325         to inline function.
35326         (__rintf, __floor, __floorf): Likewise.
35327
35328         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
35329         macro to inline function.
35330         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
35331
35332         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
35333         not <math/math_private.h>.
35334
35335 2012-03-08  David S. Miller  <davem@davemloft.net>
35336
35337         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
35338         copyright year.
35339         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
35340
35341 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
35342
35343         * resolv/gai_misc.c (handle_requests): Fix struct timespec
35344         normalization.
35345         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
35346         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
35347
35348 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
35349
35350         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
35351         be defined individually, they must be defined as a block.  Define
35352         S for printing a string instead of hidint the different by using a
35353         macro for adding the 'l'.
35354         * stdio-common/tst-fphex-wide.c: Adjust.
35355
35356 2012-03-07  Marek Polacek  <polacek@redhat.com>
35357
35358         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
35359
35360 2012-03-08  Marek Polacek  <polacek@redhat.com>
35361
35362         [BZ #13806]
35363         * stdio-common/Makefile (tests): Add tst-fphex-wide.
35364         * stdio-common/tst-fphex.c: Define a few macros to make the
35365         test reusable.  Use them.
35366         * stdio-common/tst-fphex-wide.c: New file.
35367
35368 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
35369
35370         [BZ #6911]
35371         * manual/macros.texi (gnusystems): New macro.
35372         (nongnusystems): Likewise.
35373         (gnulinuxhurdsystems): Likewise.
35374         (gnuhurdsystems): Likewise..
35375         (gnulinuxsystems): Likewise.
35376         * manual/charset.texi: Use new macros or @theglibc{} to refer to
35377         variants of the GNU system, not "GNU system".
35378         * manual/conf.texi: Likewise.
35379         * manual/errno.texi: Likewise.  Update example of errno macro
35380         expansion.
35381         * manual/filesys.texi: Likewise.
35382         (getumask): Document as specific to GNU/Hurd.
35383         * manual/install.texi: Likewise.  Reword some references to
35384         GNU/Linux.
35385         * manual/intro.texi: Likewise.
35386         * manual/io.texi: Likewise.
35387         (File Name Portability): Detail which constraints are inapplicable
35388         to all GNU systems and which are only inapplicable to GNU/Hurd.
35389         * manual/job.texi: Likewise.
35390         * manual/llio.texi: Likewise.
35391         (O_NOCTTY): Document as present on GNU/Linux.
35392         * manual/maint.texi: Likewise.
35393         * manual/memory.texi: Likewise.
35394         * manual/pattern.texi: Likewise.
35395         * manual/pipe.texi: Likewise.
35396         * manual/process.texi: Likewise.
35397         * manual/resource.texi: Likewise.
35398         (RUSAGE_CHILDREN): Remove statement about specifying a particular
35399         child on GNU/Hurd.
35400         * manual/setjmp.texi: Likewise.
35401         * manual/signal.texi: Likewise.
35402         * manual/startup.texi: Likewise.
35403         * manual/stdio.texi: Likewise.
35404         * manual/terminal.texi: Likewise.
35405         (ONLCR): Document as POSIX.
35406         (OXTABS): Document availability on GNU/Linux as XTABS.
35407         (ONOEOT): Document availability separately from other bits.
35408         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
35409         * manual/time.texi: Likewise.
35410         * manual/users.texi: Likewise.
35411         * INSTALL: Regenerated.
35412         * sysdeps/gnu/errlist.c: Regenerated.
35413
35414         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
35415         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
35416         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
35417         puts.
35418         * configure: Regenerated.
35419
35420 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
35421
35422         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
35423         default includes instead of AC_HEADER_CHECK.
35424         * sysdeps/i386/configure: Regenerated.
35425
35426         [BZ #10716]
35427         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
35428         * math/s_cacoshf.c (__cacoshf): Likewise.
35429         * math/s_cacoshl.c (__cacoshl): Likewise.
35430         * math/s_casinh.c (__casinh): Set signs of result from argument.
35431         * math/s_casinhf.c (__casinhf): Likewise.
35432         * math/s_casinhl.c (__casinhl): Likewise.
35433         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
35434         (casinh_test): Add more tests.
35435         * sysdeps/i386/fpu/libm-test-ulps: Update.
35436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35437
35438 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
35439
35440         * po/zh_TW.po: Update from translation team.
35441
35442         * login/Makefile (distribute): Remove variable.
35443         * catgets/Makefile: Likewise.
35444         * mach/Makefile: Likewise.
35445         * malloc/Makefile: Likewise.
35446         * misc/Makefile: Likewise.
35447         * iconv/Makefile: Likewise.
35448         * nscd/Makefile: Likewise.
35449         * hurd/Makefile: Likewise.
35450         * manual/Makefile: Likewise.
35451         * locale/Makefile: Likewise.
35452         * intl/Makefile: Likewise.
35453         * conform/Makefile: Likewise.
35454         * nss/Makefile: Likewise.
35455         * time/Makefile: Likewise.
35456         * soft-fp/Makefile: Likewise.
35457         * dirent/Makefile: Likewise.
35458         * gmon/Makefile: Likewise.
35459         * po/Makefile: Likewise.
35460         * rt/Makefile: Likewise.
35461         * socket/Makefile: Likewise.
35462         * math/Makefile: Likewise.
35463         * signal/Makefile: Likewise.
35464         * debug/Makefile: Likewise.
35465         * elf/Makefile: Likewise.
35466         * timezone/Makefile: Likewise.
35467         * stdlib/Makefile: Likewise.
35468         * iconvdata/Makefile: Likewise.
35469         * sunrpc/Makefile: Likewise.
35470         * io/Makefile: Likewise.
35471         * argp/Makefile: Likewise.
35472         * inet/Makefile: Likewise.
35473         * hesiod/Makefile: Likewise.
35474         * grp/Makefile: Likewise.
35475         * csu/Makefile: Likewise.
35476         * wctype/Makefile: Likewise.
35477         * crypt/Makefile: Likewise.
35478         * libio/Makefile: Likewise.
35479         * string/Makefile: Likewise.
35480         * nis/Makefile: Likewise.
35481         * resolv/Makefile: Likewise.
35482         * stdio-common/Makefile: Likewise.
35483         * wcsmbs/Makefile: Likewise.
35484         * dlfcn/Makefile: Likewise.
35485         * posix/Makefile: Likewise.
35486
35487         [BZ #6959]
35488         * timezone/Makefile: Don't install timezone files, just the programs
35489         and scripts.
35490
35491 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
35492
35493         * nss/databases.def: Add missing gshadow entry.
35494
35495         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
35496
35497 2012-03-06  Marek Polacek  <polacek@redhat.com>
35498
35499         [BZ #13726]
35500         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
35501         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
35502         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
35503         * stdio-common/tst-long-dbl-fphex.c: New file.
35504
35505 2012-03-06  David S. Miller  <davem@davemloft.net>
35506
35507         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
35508         (set_obp_int): New function.
35509         (get_obp_int): New function.
35510         (__get_clockfreq_via_dev_openprom): Likewise.
35511         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
35512         Avoid unused variable warnings on 'val' and use builtin_expect.
35513         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
35514         __builtin_expect.
35515         (INLINE_CLONE_SYSCALL): Likewise.
35516
35517 2012-03-05  David S. Miller  <davem@davemloft.net>
35518
35519         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35520
35521 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
35522
35523         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35524
35525         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
35526         only for |x| >= 40.
35527         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
35528
35529 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
35530
35531         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
35532         Replace gettimeofday with __vdso_gettimeofday.
35533
35534         * sysdeps/unix/sysv/linux/x86_64/init-first.c
35535         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
35536         __vdso_clock_gettime and __vdso_getcpu.
35537
35538         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
35539         time with __vdso_time.
35540
35541 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
35542
35543         * manual/lang.texi (size_t): Note types to which size_t may be
35544         equivalent with the GNU C Library, but do not describe when
35545         differences between them are significant.
35546
35547 2012-03-05  Andreas Jaeger  <aj@suse.de>
35548
35549         * sysdeps/i386/fpu/libm-test-ulps: Update.
35550
35551 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
35552
35553         [BZ #3976]
35554         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
35555         (__ieee754_pow): Save and restore rounding mode and use
35556         round-to-nearest for main computations.
35557         * math/libm-test.inc (pow_test_tonearest): New function.
35558         (pow_test_towardzero): Likewise.
35559         (pow_test_downward): Likewise.
35560         (pow_test_upward): Likewise.
35561         (main): Call the new functions.
35562         * sysdeps/i386/fpu/libm-test-ulps: Update.
35563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35564
35565         [BZ #3976]
35566         * math/libm-test.inc (cosh_test_tonearest): New function.
35567         (cosh_test_towardzero): Likewise.
35568         (cosh_test_downward): Likewise.
35569         (cosh_test_upward): Likewise.
35570         (sinh_test_tonearest): Likewise.
35571         (sinh_test_towardzero): Likewise.
35572         (sinh_test_downward): Likewise.
35573         (sinh_test_upward): Likewise.
35574         (main): Call the new functions.
35575         * sysdeps/i386/fpu/libm-test-ulps: Update.
35576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35577
35578 2012-03-05  Tom de Vries  <tom@codesourcery.com>
35579
35580         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
35581         default stack guard is set in last bytes.
35582         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
35583
35584 2012-03-05  Kees Cook  <keescook@chromium.org>
35585
35586         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
35587
35588         [BZ #13656]
35589         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
35590         possibly allocate from heap instead of stack.
35591         * stdio-common/bug-vfprintf-nargs.c: New file.
35592         * stdio-common/Makefile (tests): Add nargs overflow test.
35593
35594 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
35595
35596         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35597
35598 2012-03-03  Marek Polacek  <polacek@redhat.com>
35599
35600         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
35601         * math/math_private.h: Likewise.
35602         * stdlib/tst-strtod.c: Likewise.
35603         * sysdeps/i386/i486/bits/atomic.h: Likewise.
35604         * sysdeps/x86_64/bits/atomic.h: Likewise.
35605
35606 2012-03-02  David S. Miller  <davem@davemloft.net>
35607
35608         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
35609         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
35610         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
35611         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
35612         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
35613         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
35614         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
35615         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
35616
35617 2012-03-02  Roland McGrath  <roland@hack.frob.com>
35618
35619         [BZ #13792]
35620         * manual/examples/README: New file, says the example source files
35621         can be used under GPL>=2.
35622         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
35623         line containing just "*/".
35624         * manual/examples/add.c: Add copyright header (GPL>=2).
35625         * manual/examples/argp-ex1.c: Likewise.
35626         * manual/examples/argp-ex2.c: Likewise.
35627         * manual/examples/argp-ex3.c: Likewise.
35628         * manual/examples/argp-ex4.c: Likewise.
35629         * manual/examples/atexit.c: Likewise.
35630         * manual/examples/db.c: Likewise.
35631         * manual/examples/dir.c: Likewise.
35632         * manual/examples/dir2.c: Likewise.
35633         * manual/examples/execinfo.c: Likewise.
35634         * manual/examples/filecli.c: Likewise.
35635         * manual/examples/filesrv.c: Likewise.
35636         * manual/examples/fmtmsgexpl.c: Likewise.
35637         * manual/examples/genpass.c: Likewise.
35638         * manual/examples/inetcli.c: Likewise.
35639         * manual/examples/inetsrv.c: Likewise.
35640         * manual/examples/isockad.c: Likewise.
35641         * manual/examples/longopt.c: Likewise.
35642         * manual/examples/memopen.c: Likewise.
35643         * manual/examples/memstrm.c: Likewise.
35644         * manual/examples/mkfsock.c: Likewise.
35645         * manual/examples/mkisock.c: Likewise.
35646         * manual/examples/mygetpass.c: Likewise.
35647         * manual/examples/pipe.c: Likewise.
35648         * manual/examples/popen.c: Likewise.
35649         * manual/examples/rprintf.c: Likewise.
35650         * manual/examples/search.c: Likewise.
35651         * manual/examples/select.c: Likewise.
35652         * manual/examples/setjmp.c: Likewise.
35653         * manual/examples/sigh1.c: Likewise.
35654         * manual/examples/sigusr.c: Likewise.
35655         * manual/examples/stpcpy.c: Likewise.
35656         * manual/examples/strdupa.c: Likewise.
35657         * manual/examples/strftim.c: Likewise.
35658         * manual/examples/strncat.c: Likewise.
35659         * manual/examples/subopt.c: Likewise.
35660         * manual/examples/swapcontext.c: Likewise.
35661         * manual/examples/termios.c: Likewise.
35662         * manual/examples/testopt.c: Likewise.
35663         * manual/examples/testpass.c: Likewise.
35664         * manual/examples/timeval_subtract.c: Likewise.
35665
35666         [BZ #13792]
35667         * manual/time.texi (Elapsed Time): Move timeval_subtract example
35668         function to ...
35669         * manual/timeval_subtract.c.texi: ... here, new file.
35670
35671 2012-03-02  David S. Miller  <davem@davemloft.net>
35672
35673         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
35674
35675 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
35676
35677         [BZ #3976]
35678         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
35679         (__sin): Save and restore rounding mode and use round-to-nearest
35680         for all computations.
35681         (__cos): Save and restore rounding mode and use round-to-nearest
35682         for all computations.
35683         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
35684         <fenv.h>.
35685         (tan): Save and restore rounding mode and use round-to-nearest for
35686         all computations.
35687         * math/libm-test.inc (cos_test_tonearest): New function.
35688         (cos_test_towardzero): Likewise.
35689         (cos_test_downward): Likewise.
35690         (cos_test_upward): Likewise.
35691         (sin_test_tonearest): Likewise.
35692         (sin_test_towardzero): Likewise.
35693         (sin_test_downward): Likewise.
35694         (sin_test_upward): Likewise.
35695         (tan_test_tonearest): Likewise.
35696         (tan_test_towardzero): Likewise.
35697         (tan_test_downward): Likewise.
35698         (tan_test_upward): Likewise.
35699         (main): Call the new functions.
35700         * sysdeps/i386/fpu/libm-test-ulps: Update.
35701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35702
35703         [BZ #10135]
35704         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
35705         small n, then large n, before computing and testing k+n.
35706         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
35707         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
35708         Likewise.
35709         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
35710         Likewise.
35711         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
35712         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
35713         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
35714         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
35715         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
35716         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
35717         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
35718         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
35719         * math/libm-test.inc (scalbn_test): Add more tests.
35720         (scalbln_test): Likewise.
35721
35722         * manual/filesys.texi (mode_t): Describe constraints on size and
35723         signedness, not exact equivalence to a particular type.
35724         (ino_t): Likewise.
35725         (ino64_t): Likewise.
35726         (dev_t): Likewise.
35727         (nlink_t): Likewise.
35728         (blkcnt_t): Likewise.
35729         (blkcnt64_t): Likewise.
35730         * manual/llio.texi (off_t): Likewise.
35731
35732         [BZ #3976]
35733         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
35734         (__ieee754_exp): Save and restore rounding mode and use
35735         round-to-nearest for all computations.
35736         * math/libm-test.inc (exp_test_tonearest): New function.
35737         (exp_test_towardzero): Likewise.
35738         (exp_test_downward): Likewise.
35739         (exp_test_upward): Likewise.
35740         (main): Call the new functions.
35741         * sysdeps/i386/fpu/libm-test-ulps: Update.
35742         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35743
35744 2012-03-01  Chris Demetriou  <cgd@google.com>
35745
35746         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
35747         have predictable order.
35748
35749 2012-03-01  David S. Miller  <davem@davemloft.net>
35750
35751         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
35752
35753         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
35754         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
35755         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
35756         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
35757
35758         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
35759         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
35760         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
35761         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
35762         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
35763         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
35764         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
35765         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
35766         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
35767
35768         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35769
35770         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
35771         * sysdeps/sparc/fpu/libm-test-ulps: to here.
35772         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
35773
35774         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
35775         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
35776         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
35777         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
35778         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
35779         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
35780         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
35781         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
35782         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
35783         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
35784         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
35785         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
35786         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
35787         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
35788         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
35789         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
35790         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
35791         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
35792         * sysdeps/sparc/elf/configure: Regenerated.
35793
35794 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
35795
35796         * configure.in (AS, LD): Require binutils 2.20 or later.
35797         * configure: Regenerated.
35798         * manual/install.texi (Tools for Compilation): Give binutils 2.20
35799         as required minimum version.
35800         * INSTALL: Regenerated.
35801
35802         [BZ #2541]
35803         [BZ #4108]
35804         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
35805         before squaring exponent.
35806         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
35807         bottom long double and 27 bits of top long double before squaring
35808         exponent.
35809         * math/libm-test.inc (erfc_test): Add more tests.
35810         * sysdeps/i386/fpu/libm-test-ulps: Update.
35811         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
35812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35813
35814 2012-03-01  Kai Tietz  <ktietz@redhat.com>
35815
35816         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
35817         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
35818         containing bit-fields.
35819         * soft-fp/extended.h (_FP_UNION_E): Likewise.
35820         * soft-fp/single.h (_FP_UNION_S): Likewise.
35821         * soft-fp/double.h (_FP_UNION_D): Likewise.
35822
35823 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
35824
35825         [BZ #13786]
35826         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
35827         not include ../strcmp.S.
35828         [USE_AS_STRNCASECMP_L]: Likewise.
35829         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
35830         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
35831         * sysdeps/i386/i686/multiarch/strncase_l-c.c
35832         (__strncasecmp_l_ia32): Define as alias to
35833         __strncasecmp_l_nonascii.
35834
35835         [BZ #5794]
35836         * math/libm-test.inc (expm1_test): Add test for bug 5794.
35837         * sysdeps/i386/fpu/libm-test-ulps: Update.
35838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35839
35840         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
35841         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35842
35843 2012-02-29  Jeff Law  <law@redhat.com>
35844
35845         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
35846         out of bounds read.
35847
35848 2012-02-29  Marek Polacek  <polacek@redhat.com>
35849
35850         [BZ #13706]
35851         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
35852         * elf/Makefile: Add rules to run tst-unused-dep.out.
35853
35854 2012-02-28  David S. Miller  <davem@davemloft.net>
35855
35856         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
35857         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
35858         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
35859         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
35860         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
35861         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
35862
35863 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
35864
35865         * math/libm-test.inc (llround_test): Move one test from
35866         lround_test.  Use TEST_f_L in moved test.
35867         (lround_test): Move misplaced test to llround_test.  Add testcase
35868         from bug 2561.
35869
35870 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
35871
35872         * sysdeps/x86_64/fpu/e_expf.S: New file.
35873         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
35874
35875 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
35876
35877         [BZ #13637]
35878         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
35879         of remain_len that may cause incomplete multi-byte character and
35880         false match.
35881         * posix/bug-regex33.c: New file.
35882         * posix/Makefile (tests): Add bug-regex33.
35883
35884 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
35885
35886         * manual/macros.texi: New file.
35887         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
35888         * manual/libc.texinfo: Include macros.texi.
35889         * manual/creatute.texi: Likewise.
35890         * manual/install.texi: Likewise.
35891         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
35892         @glibcadj{} in references to the GNU C Library.
35893         * manual/charset.texi: Likewise.
35894         * manual/conf.texi: Likewise.
35895         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
35896         when not using those macros.
35897         * manual/creature.texi: Likewise.
35898         * manual/crypt.texi: Likewise.
35899         * manual/errno.texi: Likewise.
35900         * manual/filesys.texi: Likewise.
35901         * manual/header.texi: Likewise.
35902         * manual/install.texi: Likewise.
35903         * manual/intro.texi: Likewise.
35904         * manual/io.texi: Likewise.
35905         * manual/job.texi: Likewise.
35906         * manual/lang.texi: Likewise.
35907         * manual/libc.texiinfo: Likewise.
35908         * manual/llio.texi: Likewise.
35909         * manual/locale.texi: Likewise.
35910         * manual/maint.texi: Likewise.
35911         * manual/math.texi: Likewise.
35912         * manual/memory.texi: Likewise.
35913         * manual/message.texi: Likewise.
35914         * manual/nss.texi: Likewise.
35915         * manual/pattern.texi: Likewise.
35916         * manual/process.texi: Likewise.
35917         * manual/resource.texi: Likewise.
35918         * manual/search.texi: Likewise.
35919         * manual/setjmp.texi: Likewise.
35920         * manual/signal.texi: Likewise.
35921         * manual/socket.texi: Likewise.
35922         * manual/startup.texi: Likewise.
35923         * manual/stdio.texi: Likewise.
35924         * manual/string.texi: Likewise.
35925         * manual/sysinfo.texi: Likewise.
35926         * manual/syslog.texi: Likewise.
35927         * manual/terminal.texi: Likewise.
35928         * manual/time.texi: Likewise.
35929         * manual/users.texi: Likewise.
35930         * INSTALL: Regenerated.
35931         * NOTES: Regenerated.
35932         * sysdeps/gnu/errlist.c: Regenerated.
35933
35934 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
35935
35936         * include/dirent.h: Include <dirstream.h> before
35937         <dirent/dirent.h>.
35938
35939 2012-02-28  David S. Miller  <davem@davemloft.net>
35940
35941         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
35942         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
35943         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
35944         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
35945
35946 2012-02-27  David S. Miller  <davem@davemloft.net>
35947
35948         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
35949         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
35950         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
35951         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
35952
35953         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
35954         frame pointer instead of stack pointer relative arg slot.
35955         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
35956         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
35957         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
35958
35959 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
35960
35961         [BZ #3992]
35962         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
35963
35964 2012-02-27  David S. Miller  <davem@davemloft.net>
35965
35966         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
35967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
35968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
35969         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
35970         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
35971         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
35972         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
35973         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
35974
35975 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
35976
35977         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
35978         later.  Allow versions 5-9.
35979         * configure: Regenerated.
35980         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
35981         required minimum version and 4.6 as recommended version.  Do not
35982         mention bugs in GCC 2.7 and 2.8.
35983         * INSTALL: Regenerated.
35984
35985 2012-02-27  David S. Miller  <davem@davemloft.net>
35986
35987         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
35988         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
35989         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
35990         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
35991         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
35992         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
35993         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
35994         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
35995
35996         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
35997         manipulate bits before adding and subtracting TWO112[sx].
35998         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
35999
36000 2012-02-27  Roland McGrath  <roland@hack.frob.com>
36001
36002         [BZ #13775]
36003         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
36004         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
36005         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
36006         being in POSIX, because they are in 1003.1-2008.
36007
36008         * rt/tst-aio.c: Include <fcntl.h>.
36009         * rt/tst-aio7.c: Likewise.
36010         * rt/tst-aio64.c: Likewise.
36011
36012         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
36013
36014 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
36015
36016         * manual/install.texi (--with-headers): Describe headers as
36017         interface headers, not private headers.
36018         (Specific advice for GNU/Linux systems): Describe use of headers
36019         from "make headers_install", not private headers from older
36020         kernels.
36021         * INSTALL: Regenerated.
36022         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
36023         Change to 2.6.19.
36024         * sysdeps/unix/sysv/linux/configure: Regenerated.
36025
36026         * manual/llio.texi (fclean): Remove documentation.
36027
36028         * manual/Makefile (libc-texi-generated): New variable.  Include
36029         version.texi.
36030         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
36031         $(libc-texi-generated), not duplicated list of files.
36032         (version.texi, stamp-version): New rules.
36033         (realclean): Remove $(libc-texi-generated), not individual files
36034         from that list.  Do not remove dir-add.texinfo.
36035         * manual/libc.texinfo: Comment out uses of edition numbers and
36036         references to printed manual.  Remove last-updated dates.
36037         (EDITION): Comment out.
36038         (ISBN): Likewise.
36039         (VERSION, UPDATED): Remove.
36040         (version.texi): Include.
36041
36042 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
36043
36044         * sysdeps/posix/spawni.c: Include <signal.h>.
36045         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
36046         * sysdeps/pthread/aio_fsync.c: Likewise.
36047
36048 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
36049
36050         * conform/Makefile (tests): Run only when not cross-compiling and
36051         when fast-check is not defined.
36052
36053         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
36054         * conform/data/limits.h-data: Fixes for POSIX2008.
36055         * conform/run-conformtest.sh: Run all tests.
36056         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
36057         headers.
36058         * include/bits/dlfcn.h: Likewise.
36059         * include/langinfo.h: Likewise.
36060         * include/monetary.h: Likewise.
36061         * include/sys/poll.h: Likewise.
36062
36063         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
36064         for __USE_GNU.
36065         * posix/spawn.h: Define __need_sigset_t.
36066         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
36067         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
36068         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
36069         to get sigevent_t only.
36070         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
36071         only for __USE_GNU.
36072         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
36073         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
36074         process_vm_writev only for __USE_GNU.
36075         * termios/termios.h: Declare tcgetsid also for POSIX2008.
36076
36077         * conform/Makefile: For now ignore errors from run-conformtest.
36078         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
36079         POSIX to avoid namespace pollution.  Don't prepend headers.
36080         * conform/data/aio.h-data: Fixes for POSIX testing.
36081         * conform/data/fcntl.h-data: Likewise.
36082         * conform/data/glob.h-data: Likewise.
36083         * conform/data/grp.h-data: Likewise.
36084         * conform/data/pthread.h-data: Likewise.
36085         * conform/data/pwd.h-data: Likewise.
36086         * conform/data/signal.h-data: Likewise.
36087         * conform/data/spawn.h-data: Likewise.
36088         * conform/data/stdio.h-data: Likewise.
36089         * conform/data/stdlib.h-data: Likewise.
36090         * conform/data/stropts.h-data: Likewise.
36091         * conform/data/sys/mman.h-data: Likewise.
36092         * conform/data/sys/stat.h-data: Likewise.
36093         * conform/data/sys/types.h-data: Likewise.
36094         * conform/data/sys/wait.h-data: Likewise.
36095         * conform/data/time.h-data: Likewise.
36096         * conform/data/unistd.h-data: Likewise.
36097         * conform/data/utime.h-data: Likewise.
36098
36099         * io/sys/stat.h: fchmod was always in POSIX.
36100         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
36101         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
36102         * rt/aio.h: Define __need_timespec before including <time.h>.
36103         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
36104         struct.  Add forward declaration of pthread_attr_t and use it in
36105         sigevent.
36106         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
36107         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
36108         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
36109         always remove CLK_TCK definition.
36110
36111 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
36112
36113         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
36114
36115 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
36116
36117         * conform/run-conformtest.sh: New file.
36118         * conform/Makefile: Run run-conformtest for tests.
36119         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
36120         support.
36121
36122         * conform/data/uchar.h-data: New file.
36123         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
36124         * conform/data/arpa/inet.h-data: Likewise.
36125         * conform/data/assert.h-data: Likewise.
36126         * conform/data/complex.h-data: Likewise.
36127         * conform/data/cpio.h-data: Likewise.
36128         * conform/data/ctype.h-data: Likewise.
36129         * conform/data/dirent.h-data: Likewise.
36130         * conform/data/dlfcn.h-data: Likewise.
36131         * conform/data/errno.h-data: Likewise.
36132         * conform/data/fcntl.h-data: Likewise.
36133         * conform/data/float.h-data: Likewise.
36134         * conform/data/fmtmsg.h-data: Likewise.
36135         * conform/data/fnmatch.h-data: Likewise.
36136         * conform/data/ftw.h-data: Likewise.
36137         * conform/data/glob.h-data: Likewise.
36138         * conform/data/grp.h-data: Likewise.
36139         * conform/data/iconv.h-data: Likewise.
36140         * conform/data/inttypes.h-data: Likewise.
36141         * conform/data/langinfo.h-data: Likewise.
36142         * conform/data/libgen.h-data: Likewise.
36143         * conform/data/limits.h-data: Likewise.
36144         * conform/data/locale.h-data: Likewise.
36145         * conform/data/math.h-data: Likewise.
36146         * conform/data/monetary.h-data: Likewise.
36147         * conform/data/mqueue.h-data: Likewise.
36148         * conform/data/ndbm.h-data: Likewise.
36149         * conform/data/net/if.h-data: Likewise.
36150         * conform/data/netdb.h-data: Likewise.
36151         * conform/data/netinet/in.h-data: Likewise.
36152         * conform/data/nl_types.h-data: Likewise.
36153         * conform/data/poll.h-data: Likewise.
36154         * conform/data/pthread.h-data: Likewise.
36155         * conform/data/pwd.h-data: Likewise.
36156         * conform/data/regex.h-data: Likewise.
36157         * conform/data/sched.h-data: Likewise.
36158         * conform/data/search.h-data: Likewise.
36159         * conform/data/semaphore.h-data: Likewise.
36160         * conform/data/setjmp.h-data: Likewise.
36161         * conform/data/signal.h-data: Likewise.
36162         * conform/data/spawn.h-data: Likewise.
36163         * conform/data/stdarg.h-data: Likewise.
36164         * conform/data/stdio.h-data: Likewise.
36165         * conform/data/stdlib.h-data: Likewise.
36166         * conform/data/string.h-data: Likewise.
36167         * conform/data/strings.h-data: Likewise.
36168         * conform/data/stropts.h-data: Likewise.
36169         * conform/data/sys/ipc.h-data: Likewise.
36170         * conform/data/sys/mman.h-data: Likewise.
36171         * conform/data/sys/msg.h-data: Likewise.
36172         * conform/data/sys/resource.h-data: Likewise.
36173         * conform/data/sys/select.h-data: Likewise.
36174         * conform/data/sys/sem.h-data: Likewise.
36175         * conform/data/sys/shm.h-data: Likewise.
36176         * conform/data/sys/socket.h-data: Likewise.
36177         * conform/data/sys/stat.h-data: Likewise.
36178         * conform/data/sys/statvfs.h-data: Likewise.
36179         * conform/data/sys/time.h-data: Likewise.
36180         * conform/data/sys/timeb.h-data: Likewise.
36181         * conform/data/sys/times.h-data: Likewise.
36182         * conform/data/sys/types.h-data: Likewise.
36183         * conform/data/sys/uio.h-data: Likewise.
36184         * conform/data/sys/un.h-data: Likewise.
36185         * conform/data/sys/utsname.h-data: Likewise.
36186         * conform/data/sys/wait.h-data: Likewise.
36187         * conform/data/syslog.h-data: Likewise.
36188         * conform/data/tar.h-data: Likewise.
36189         * conform/data/termios.h-data: Likewise.
36190         * conform/data/utime.h-data: Likewise.
36191         * conform/data/utmpx.h-data: Likewise.
36192         * conform/data/varargs.h-data: Likewise.
36193         * conform/data/wchar.h-data: Likewise.
36194         * conform/data/wctype.h-data: Likewise.
36195         * conform/data/wordexp.h-data: Likewise.
36196
36197         * include/stropts.h: New file.
36198         * include/uchar.h: New file.
36199         * include/aio.h: Changes to allow conformtest.pl to use the headers.
36200         * include/assert.h: Likewise.
36201         * include/ctype.h: Likewise.
36202         * include/dirent.h: Likewise.
36203         * include/dlfcn.h: Likewise.
36204         * include/fcntl.h: Likewise.
36205         * include/fnmatch.h: Likewise.
36206         * include/glob.h: Likewise.
36207         * include/grp.h: Likewise.
36208         * include/libio.h: Likewise.
36209         * include/locale.h: Likewise.
36210         * include/math.h: Likewise.
36211         * include/net/if.h: Likewise.
36212         * include/netdb.h: Likewise.
36213         * include/netinet/in.h: Likewise.
36214         * include/pthread.h: Likewise.
36215         * include/pwd.h: Likewise.
36216         * include/regex.h: Likewise.
36217         * include/sched.h: Likewise.
36218         * include/search.h: Likewise.
36219         * include/setjmp.h: Likewise.
36220         * include/signal.h: Likewise.
36221         * include/stdio.h: Likewise.
36222         * include/stdlib.h: Likewise.
36223         * include/string.h: Likewise.
36224         * include/sys/cdefs.h: Likewise.
36225         * include/sys/mman.h: Likewise.
36226         * include/sys/msg.h: Likewise.
36227         * include/sys/resource.h: Likewise.
36228         * include/sys/select.h: Likewise.
36229         * include/sys/socket.h: Likewise.
36230         * include/sys/stat.h: Likewise.
36231         * include/sys/statvfs.h: Likewise.
36232         * include/sys/time.h: Likewise.
36233         * include/sys/times.h: Likewise.
36234         * include/sys/uio.h: Likewise.
36235         * include/sys/utsname.h: Likewise.
36236         * include/sys/wait.h: Likewise.
36237         * include/termios.h: Likewise.
36238         * include/time.h: Likewise.
36239         * include/ulimit.h: Likewise.
36240         * include/unistd.h: Likewise.
36241         * include/utime.h: Likewise.
36242         * include/wchar.h: Likewise.
36243         * include/wctype.h: Likewise.
36244         * include/wordexp.h: Likewise.
36245
36246         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
36247
36248         * time/time.h: TIME_UTC must be a macro.
36249         Make timespec_get available for ISO C11 only as well.
36250
36251 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
36252
36253         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
36254         Reported by Peng Haitao <penght@cn.fujitsu.com>.
36255
36256 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
36257
36258         * configure.in: Use -o not -a in test for unsupported multi-arch.
36259
36260 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
36261
36262         * manual/texinfo.tex: Update to version 2012-01-19.16.
36263
36264 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
36265
36266         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
36267
36268 2012-02-24  Roland McGrath  <roland@hack.frob.com>
36269
36270         [BZ #13738]
36271         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
36272         * manual/fdl-1.3.texi: New file.
36273         * manual/fdl-1.1.texi: File removed.
36274
36275         [BZ #13738]
36276         * manual/libc.texinfo (FDL_VERSION): New @set.
36277         Use it for mention of FDL in cover text.
36278         (Documentation License): Use it in @include file name.
36279
36280 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
36281             Roland McGrath  <roland@hack.frob.com>
36282
36283         [BZ #5461]
36284         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
36285         (not LONG_LONG_MAX and LONG_LONG_MIN.
36286         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
36287         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
36288         name.
36289         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
36290
36291 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
36292
36293         [BZ #2547]
36294         [BZ #11365]
36295         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
36296         manipulate bits before adding and subtracting TWO23[sx].
36297         * math/libm-test.inc (nearbyint_test): Add more tests.
36298
36299 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
36300
36301         [BZ #2548]
36302         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
36303         bits before adding and subtracting TWO23[sx].
36304         * math/libm-test.inc (rint_test): Add more tests.
36305         (rint_test_tonearest): Likewise.
36306         (rint_test_towardzero): Likewise.
36307         (rint_test_downward): Likewise.
36308         (rint_test_upward: Likewise.
36309
36310 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
36311
36312         [BZ #10110]
36313         * include/stdc-predef.h: New file.  Extracted from features.h.
36314         * include/features.h: Include stdc-predef.h.
36315         * Makefile (headers): Add stdc-predef.h.
36316         * CONFORMANCE (Compiler limitations): Update.
36317
36318 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
36319
36320         * manual/libc.texinfo (VERSION, UPDATED): Revert.
36321
36322 2012-02-21  David S. Miller  <davem@davemloft.net>
36323
36324         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
36325         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
36326
36327 2012-02-20  David S. Miller  <davem@davemloft.net>
36328
36329         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
36330         using a normal save/restore sequence, rather than allocating a
36331         dummy stack frame just to store a frame pointer and restore.
36332         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
36333
36334 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
36335
36336         * manual/install.texi: Fix stray word in line-wrapped comment.
36337
36338 2012-02-20  David S. Miller  <davem@davemloft.net>
36339
36340         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
36341         both binutils and gcc support GOTDATA.
36342
36343         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
36344         "rd %pc" in the PIC register setup sequences.
36345
36346         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
36347         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
36348         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
36349         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
36350         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
36351         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
36352         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
36353         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
36354         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
36355         (SYSCALL_ERROR_HANDLER): Likewise.
36356         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
36357         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
36358         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
36359         (SYSCALL_ERROR_HANDLER): Likewise.
36360
36361         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
36362         (HAVE_GCC_GOTDATA): New.
36363         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
36364         relocation support in both binutils and gcc.
36365         * sysdeps/sparc/elf/configure: Regenerate.
36366
36367         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
36368         * sysdeps/sparc/sparc32/elf/configure: Delete.
36369         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
36370         * sysdeps/sparc/sparc64/elf/configure: Delete.
36371         * sysdeps/sparc/elf/configure.in: New file.
36372         * sysdeps/sparc/elf/configure: Generate.
36373
36374         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
36375         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
36376         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
36377         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
36378         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
36379
36380 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
36381
36382         * manual/install.texi: Do not mention specific glibc version
36383         numbers.
36384         * manual/libc.texinfo (VERSION, UPDATED): Update.
36385         (@copying): Use @copyright{} and range of years.
36386
36387 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
36388
36389         [BZ #13695]
36390         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
36391         [crti.S not in sysdirs] (generated): Do not append.
36392         [crti.S not in sysdirs] (omit-deps): Likewise.
36393         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
36394         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
36395         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
36396         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
36397         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
36398         Likewise.
36399         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
36400         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
36401         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
36402         * csu/defs.awk: Remove file.
36403         * sysdeps/generic/initfini.c: Likewise.
36404         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
36405         variable.
36406         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
36407         Likewise.
36408
36409 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
36410
36411         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
36412         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
36413         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
36414         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
36415         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
36416         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
36417         <bits/epoll.h>.
36418         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
36419         (__EPOLL_PACKED): Define to empty if not defined by
36420         <bits/epoll.h>.
36421         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
36422         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36423         bits/epoll.h.
36424
36425 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
36426
36427         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
36428         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
36429         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
36430         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
36431         <bits/timerfd.h>.
36432         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
36433         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36434         bits/timerfd.h.
36435
36436 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
36437
36438         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
36439         in C locale.
36440         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36441         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
36442         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
36443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36444
36445 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
36446
36447         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
36448         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
36449
36450 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
36451
36452         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
36453         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
36454         defined.
36455         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
36456         Likewise.
36457         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
36458         entry for 2.16.
36459
36460 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
36461
36462         * math/w_acos.c: Use non-signaling floating-point comparisons.
36463         * math/w_acosf.c: Likewise.
36464         * math/w_acosh.c: Likewise.
36465         * math/w_acoshf.c: Likewise.
36466         * math/w_acoshl.c: Likewise.
36467         * math/w_acosl.c: Likewise.
36468         * math/w_asin.c: Likewise.
36469         * math/w_asinf.c: Likewise.
36470         * math/w_asinl.c: Likewise.
36471         * math/w_atanh.c: Likewise.
36472         * math/w_atanhf.c: Likewise.
36473         * math/w_atanhl.c: Likewise.
36474         * math/w_exp2.c: Likewise.
36475         * math/w_exp2f.c: Likewise.
36476         * math/w_exp2l.c: Likewise.
36477         * math/w_j0.c: Likewise.
36478         * math/w_j0f.c: Likewise.
36479         * math/w_j0l.c: Likewise.
36480         * math/w_j1.c: Likewise.
36481         * math/w_j1f.c: Likewise.
36482         * math/w_j1l.c: Likewise.
36483         * math/w_jn.c: Likewise.
36484         * math/w_jnf.c: Likewise.
36485         * math/w_log.c: Likewise.
36486         * math/w_log10.c: Likewise.
36487         * math/w_log10f.c: Likewise.
36488         * math/w_log10l.c: Likewise.
36489         * math/w_log2.c: Likewise.
36490         * math/w_log2f.c: Likewise.
36491         * math/w_log2l.c: Likewise.
36492         * math/w_logf.c: Likewise.
36493         * math/w_logl.c: Likewise.
36494         * math/w_sqrt.c: Likewise.
36495         * math/w_sqrtf.c: Likewise.
36496         * math/w_sqrtl.c: Likewise.
36497         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
36498         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
36499         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
36500         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
36501         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
36502
36503 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
36504
36505         [BZ #9739]
36506         * manual/string.texi (strnlen): Use correct parameter name in
36507         equivalent expression.
36508
36509 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
36510
36511         [BZ #11174]
36512         * manual/users.texi (seteuid): Consistently use neweuid for
36513         argument name.
36514
36515 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
36516
36517         [BZ #13704]
36518         * manual/nss.texi (Services in the NSS configuration): Correct
36519         list of services in example configuration file.
36520
36521 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
36522
36523         [BZ #11322]
36524         * manual/arith.texi: Remove statements about negative zero
36525         behaving identically to zero.
36526
36527 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
36528
36529         [BZ #5993]
36530         * manual/install.texi: Do not document upgrading from libc5.
36531
36532 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
36533
36534         [BZ #4596]
36535         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
36536
36537 2012-02-18  David S. Miller  <davem@davemloft.net>
36538
36539         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
36540         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
36541         %o7 across the call.
36542         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
36543         instead.
36544         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
36545         SETUP_PIC_REG_LEAF.
36546         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
36547         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
36548         * sysdeps/sparc/crtn.S: Likewise.
36549
36550 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
36551
36552         * aout/Makefile: Remove.
36553
36554 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
36555
36556         [BZ #13058]
36557         * manual/examples/argp-ex1.c (main): Format definition in GNU
36558         style.
36559         * manual/examples/argp-ex2.c (main): Likewise.
36560         * manual/examples/argp-ex3.c (main): Likewise.
36561         * manual/examples/argp-ex4.c (main): Likewise.
36562         * manual/examples/longopt.c (main): Use new-style prototype
36563         definition.
36564         * manual/examples/strncat.c (main): Specify return type and use
36565         (void) for arguments.
36566         * manual/examples/subopt.c (main): Use char **argv argument.
36567
36568 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
36569
36570         [BZ #5077]
36571         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
36572         rounding modes.
36573
36574 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
36575
36576         [BZ #6907]
36577         * manual/string.texi (strchr): Change when strchrnul is
36578         recommended.
36579
36580 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
36581
36582         [BZ #174]
36583         * manual/locale.texi (setlocale): Document LOCPATH.
36584
36585 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
36586
36587         [BZ #10210]
36588         * manual/process.texi (execle): Move @dots{} before last argument.
36589
36590 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
36591
36592         [BZ #12047]
36593         * manual/charset.texi (Generic Charset Conversion): Fix typo
36594         (LC_TYPE -> LC_CTYPE).
36595
36596 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
36597
36598         [BZ #5805]
36599         * manual/arith.texi (scalbn): Use @var{} on parameter names.
36600         (scalbnf): Likewise.
36601         (scalbnl): Likewise.
36602         (scalbln): Likewise.
36603         (scalblnf): Likewise.
36604         (scalblnl): Likewise.
36605         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
36606         (vwarnx): Likewise.
36607         (verr): Likewise.
36608         (verrx): Likewise.
36609         * manual/filesys.texi (telldir): Use braces around return type.
36610         * manual/llio.texi (mmap): Add space after comma.
36611         (mmap64): Likewise.
36612         * manual/math.texi (jn): Use @var{} on parameter names.
36613         (jnf): Likewise.
36614         (jnl): Likewise.
36615         (yn): Likewise.
36616         (ynf): Likewise.
36617         (ynl): Likewise.
36618         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
36619         line.
36620         * manual/resource.texi (ulimit): Use @dots{} instead of literal
36621         "...".
36622         (sched_get_priority_min): Remove semicolon on @deftypefun line.
36623         (sched_get_priority_max): Likewise.
36624         * manual/signal.texi (sigvec): Add space after comma.
36625         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
36626         names.
36627         (if_indextoname): Likewise.
36628         (if_freenameindex): Likewise.
36629         (sendto): Use ',' instead of '.' in prototype.
36630         * manual/startup.texi (syscall): Use @dots{} instead of literal
36631         "...".
36632         * manual/stdio.texi (__fpending): Separate initial words of
36633         paragraph from @deftypefun line.
36634         * manual/syslog.texi (syslog): Use @dots{} instead of literal
36635         "...".
36636         (vsyslog): Use @var{} on parameter names.
36637         * manual/terminal.texi (stty): Use @var{} on parameter names.
36638         * manual/users.texi (getutmp): Use @var{} on parameter names.
36639         (getutmpx): Likewise.
36640
36641 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
36642
36643         [BZ #6884]
36644         * manual/stdio.texi (fopen): Fix typos in description of
36645         ",ccs=STRING".
36646
36647 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
36648
36649         [BZ #4026]
36650         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
36651         get clock_id definition.
36652
36653 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
36654
36655         [BZ #4822]
36656         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
36657         (madvise): Cast every argument to void on its own.
36658
36659 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
36660
36661         [BZ #9902]
36662         * manual/startup.texi (Exit Status): Fix typo.
36663
36664 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
36665
36666         [BZ #10140]
36667         * manual/examples/argp-ex1.c: Include <stdlib.h>.
36668         * manual/examples/argp-ex2.c: Likewise.
36669         * manual/examples/argp-ex3.c: Likewise.
36670
36671 2012-02-16  Richard Henderson  <rth@redhat.com>
36672
36673         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
36674         * sysdeps/s390/s390-32/initfini.c: Remove.
36675         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
36676         * sysdeps/s390/s390-64/initfini.c: Remove.
36677
36678 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
36679
36680         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
36681         compiler output for sysdeps/generic/initfini.c.
36682         * sysdeps/sh/elf/initfini.c: Remove file.
36683
36684 2012-02-16  David S. Miller  <davem@davemloft.net>
36685
36686         [BZ #11494]
36687         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
36688
36689         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
36690         * sysdeps/sparc/crti.S: New file.
36691         * sysdeps/sparc/crtn.S: New file.
36692         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
36693         * sysdeps/sparc/sparc64/Makefile: Likewise.
36694
36695 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
36696
36697         [BZ #3335]
36698         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
36699
36700 2012-02-15  Roland McGrath  <roland@hack.frob.com>
36701
36702         [BZ #4822]
36703         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
36704
36705         * mach/devstream.c (cookie_io_functions_t): Macro removed.
36706         (write, read, close): Likewise.
36707         Patch by Aurelien Jarno <aurelien@aurel32.net>.
36708
36709 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
36710
36711         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
36712         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
36713         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
36714         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
36715         <bits/signalfd.h>.
36716         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
36717         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36718         bits/signalfd.h.
36719
36720 2012-02-14  Marek Polacek  <polacek@redhat.com>
36721
36722         * sysdeps/x86_64/crti.S: New file.
36723         * sysdeps/x86_64/crtn.S: New file.
36724         * sysdeps/x86_64/elf/initfini.c: Remove file.
36725
36726 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
36727
36728         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
36729         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
36730         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
36731         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
36732         <bits/inotify.h>.
36733         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
36734         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36735         bits/inotify.h.
36736
36737 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
36738
36739         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
36740         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
36741         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
36742         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
36743         <bits/eventfd.h>.
36744         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
36745         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36746         bits/eventfd.h.
36747
36748 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
36749
36750         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
36751         __feraiseexcept instead of feraiseexcept.
36752
36753         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
36754         nanosleep invocations.
36755         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
36756         strings, and add error checking for a nanosleep invocations.
36757
36758 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
36759
36760         Replace FSF snail mail address with URLs, as per GNU coding standards.
36761         Most of the snail mail addresses were wrong anyway, and omitting
36762         them makes the source code easier to maintain.  Almost all of the
36763         changes are to license notices and to locale LC_IDENTIFICATION
36764         addresses, except for this one:
36765         * manual/libc.texinfo: In "Published by", give the FSF's URL,
36766         not its snail mail address.
36767
36768 2012-02-09  Richard Henderson  <rth@twiddle.net>
36769
36770         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
36771         of kernel-features.h.
36772
36773         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
36774
36775 2012-02-08  Marek Polacek  <polacek@redhat.com>
36776
36777         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
36778         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
36779         * sysdeps/gnu/_G_config.h: Likewise.
36780         * sysdeps/generic/_G_config.h: Likewise.
36781
36782 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
36783
36784         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
36785         tests.
36786         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36787
36788         * sysdeps/powerpc/powerpc32/crti.S: New file.
36789         * sysdeps/powerpc/powerpc32/crtn.S: New file.
36790         * sysdeps/powerpc/powerpc64/crti.S: New file.
36791         * sysdeps/powerpc/powerpc64/crtn.S: New file.
36792
36793         * Makeconfig (have-initfini): Don't set.
36794         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
36795         * configure.in (nopic_initfini): Don't substitute.
36796         * config.h.in (HAVE_INITFINI): Don't #undef.
36797         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
36798         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
36799
36800 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
36801
36802         Support crti.S and crtn.S provided directly by architectures.
36803         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
36804         [crti.S in sysdirs] (omit-deps): Likewise.
36805         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
36806         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
36807         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
36808         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
36809         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
36810         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
36811         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
36812         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
36813         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
36814         compiler output for sysdeps/generic/initfini.c.
36815         * sysdeps/i386/elf/Makefile: Remove file.
36816         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
36817
36818 2012-02-07  Marek Polacek  <polacek@redhat.com>
36819
36820         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
36821         * sysdeps/gnu/_G_config.h: Likewise.
36822         * sysdeps/mach/hurd/_G_config.h: Likewise.
36823
36824 2012-02-07  Marek Polacek  <polacek@redhat.com>
36825
36826         * math/Makefile (tests): Add tst-CMPLX2.
36827         * math/tst-CMPLX2.c: New file.
36828
36829 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
36830
36831         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
36832
36833         * math/libm-test.inc (jn_test): Add missing L suffix.
36834
36835 2012-02-06  Marek Polacek  <polacek@redhat.com>
36836
36837         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
36838         * sysdeps/i386/fpu/e_powf.S: Likewise.
36839         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
36840         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
36841         * sysdeps/i386/fpu/e_acosh.S: Likewise.
36842         * sysdeps/i386/fpu/e_pow.S: Likewise.
36843         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
36844         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
36845         * sysdeps/i386/fpu/s_expm1.S: Likewise.
36846         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
36847         * sysdeps/i386/fpu/e_log2.S: Likewise.
36848         * sysdeps/i386/fpu/e_log2l.S: Likewise.
36849         * sysdeps/i386/fpu/e_scalb.S: Likewise.
36850         * sysdeps/i386/fpu/e_powl.S: Likewise.
36851         * sysdeps/i386/fpu/s_log1p.S: Likewise.
36852         * sysdeps/i386/fpu/e_log10f.S: Likewise.
36853         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
36854         * sysdeps/i386/fpu/e_logl.S: Likewise.
36855         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
36856         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
36857         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
36858         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
36859         * sysdeps/i386/fpu/e_log2f.S: Likewise.
36860         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
36861         * sysdeps/i386/fpu/e_log.S: Likewise.
36862         * sysdeps/i386/fpu/s_cexp.S: Likewise.
36863         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
36864         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
36865         * sysdeps/i386/fpu/e_logf.S: Likewise.
36866         * sysdeps/i386/fpu/e_log10l.S: Likewise.
36867         * sysdeps/i386/fpu/e_atanh.S: Likewise.
36868         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
36869         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
36870         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
36871         * sysdeps/i386/fpu/e_log10.S: Likewise.
36872         * sysdeps/i386/fpu/s_frexp.S: Likewise.
36873         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
36874         * sysdeps/i386/fpu/s_asinh.S: Likewise.
36875         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
36876         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
36877         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
36878         * sysdeps/i386/asm-syntax.h: Likewise.
36879         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
36880         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
36881         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
36882         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
36883         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
36884         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
36885         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
36886         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
36887         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
36888         * sysdeps/powerpc/sysdep.h: Likewise.
36889         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
36890         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
36891
36892 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
36893
36894         [BZ #411]
36895         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
36896
36897 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
36898
36899         * sysdeps/i386/sysdep.h: Include <features.h>.
36900         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
36901         version.
36902
36903 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
36904
36905         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
36906         Define.
36907         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
36908         LOAD_PIC_REG_STR.
36909
36910 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
36911
36912         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
36913         (SETUP_PIC_REG): Use GET_PC_THUNK.
36914         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
36915         macro.
36916
36917 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
36918
36919         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
36920         for non-PIC compilation.
36921         (SETUP_PIC_REG): Add .p2align directive.
36922         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
36923         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
36924         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
36925         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
36926         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
36927         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
36928         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
36929         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36930         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
36931         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
36932         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
36933         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
36934         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
36935         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
36936         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
36937         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
36938         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
36939         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
36940         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
36941         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
36942         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
36943         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
36944         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
36945         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
36946         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
36947         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
36948         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
36949         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
36950         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
36951         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
36952         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
36953         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
36954         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
36955         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
36956         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
36957         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
36958         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
36959         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
36960         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
36961         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
36962         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
36963
36964 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
36965
36966         * math/tst-CMPLX.c: Include <stdio.h>.
36967
36968 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
36969
36970         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
36971         float.
36972         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
36973         * sysdeps/sparc/bits/mathdef.h: Likewise.
36974
36975 2012-01-31  Marek Polacek  <polacek@redhat.com>
36976
36977         * libio/libio.h: Don't define _PARAMS.
36978         * locale/programs/config.h: Don't define PARAMS.
36979         * stdlib/strtol_l.c: Likewise.
36980         (__strtol_l): Remove PARAMS from the prototype.
36981
36982 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
36983
36984         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
36985         names.  Just use the correct names.  Remove unnecessary wrapper
36986         functions.
36987         * malloc/arena.c: Likewise.
36988         * malloc/hooks.c: Likewise.
36989
36990         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
36991         ARENA_TEST says not to.  Simplify test for creation of a new arena.
36992         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
36993
36994 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
36995
36996         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
36997         into tail calls.
36998         (update_get_addr): New function.
36999         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
37000         GET_ADDR_MODULE parameter.
37001
37002 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
37003
37004         * crypt/cert.c: Remove __STDC__ conditionals.
37005         * crypt/crypt-entry.c: Likewise.
37006         * crypt/crypt_util.c: Likewise.
37007         * libio/filedoalloc.c: Likewise.
37008         * libio/fileops.c: Likewise.
37009         * libio/genops.c: Likewise.
37010         * libio/iofclose.c: Likewise.
37011         * libio/iofdopen.c: Likewise.
37012         * libio/iofopen.c: Likewise.
37013         * libio/iofopen64.c: Likewise.
37014         * libio/iogetdelim.c: Likewise.
37015         * libio/iopopen.c: Likewise.
37016         * libio/obprintf.c: Likewise.
37017         * libio/oldfileops.c: Likewise.
37018         * libio/oldiofclose.c: Likewise.
37019         * libio/oldiofdopen.c: Likewise.
37020         * libio/oldiofopen.c: Likewise.
37021         * libio/oldiopopen.c: Likewise.
37022         * libio/wfiledoalloc.c: Likewise.
37023         * libio/wgenops.c: Likewise.
37024         * locale/programs/xmalloc.c: Likewise.
37025         * misc/syslog.c: Likewise.
37026         * stdio-common/xbug.c: Likewise.
37027         * string/memchr.c: Likewise.
37028         * string/memcmp.c: Likewise.
37029         * string/memrchr.c: Likewise.
37030         * string/rawmemchr.c: Likewise.
37031         * sysdeps/posix/getcwd.c: Likewise.
37032         * time/strftime_l.c: Likewise.
37033
37034 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
37035
37036         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
37037         * config.make.in (config-cflags-sse2avx): Define.
37038         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
37039         Fix typo.
37040
37041 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
37042
37043         * scripts/config.guess: Update from upstream config git repository.
37044         * scripts/config.sub: Likewise.
37045
37046 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
37047
37048         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
37049         (EM_NUM): Update.
37050         (R_TILEPRO_*, R_TILEGX_*): New macros.
37051
37052         * scripts/firstversions.awk: Fix bug in version range handling.
37053
37054         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
37055
37056         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
37057
37058         * include/sys/epoll.h: New file.
37059         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
37060         libc_hidden_def.
37061
37062 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
37063
37064         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
37065         Avoid unnecessary __WORDSIZE == 64 test.
37066         (fmaxf): Use VEX format if possible.
37067         (fmax): Likewise.
37068         (fminf): Likewise.
37069         (fmin): Likewise.
37070
37071         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
37072         * math/math_private.h: Remove libc_fegetround* and
37073         libc_fesetround*.
37074         * sysdeps/i386/configure.in: Check for -msse2avx.
37075         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
37076         also if SSE2AVX is defined.
37077         Remove libc_fegetround* and libc_fesetround*.
37078         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
37079         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
37080         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
37081         of HAS_YMM_USABLE.
37082         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37083         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37084         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37085         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37086         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37087
37088         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
37089
37090 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37091
37092         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
37093         size is not set.
37094         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37095
37096 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
37097
37098         [BZ #13618]
37099         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
37100         relocation.
37101         * Makeconfig (libm): Define.
37102         * elf/Makefile: Add rules to build and run tst-relsort1.
37103         * elf/tst-relsort1.c: New file.
37104         * elf/tst-relsort1mod1.c: New file.
37105         * elf/tst-relsort1mod2.c: New file.
37106
37107 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
37108
37109         * math/s_ldexp.c: Remove __STDC__ conditionals.
37110         * math/s_ldexpf.c: Likewise.
37111         * math/s_ldexpl.c: Likewise.
37112         * math/s_nextafter.c: Likewise.
37113         * math/s_nexttowardf.c: Likewise.
37114         * math/s_significand.c: Likewise.
37115         * math/s_significandf.c: Likewise.
37116         * math/s_significandl.c: Likewise.
37117         * math/w_jnl.c: Likewise.
37118         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
37119         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
37120         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
37121         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
37122         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
37123         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
37124         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
37125         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
37126         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
37127         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
37128         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
37129         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
37130         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
37131         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
37132         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
37133         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
37134         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
37135         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
37136         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
37137         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
37138         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
37139         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
37140         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
37141         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
37142         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
37143         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
37144         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
37145         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
37146         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
37147         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
37148         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
37149         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
37150         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
37151         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
37152         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
37153         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
37154         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
37155         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37156         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37157         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37158         * sysdeps/ieee754/k_standard.c: Likewise.
37159         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37160         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37161         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37162         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37163         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37164         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37165         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37166         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37167         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37168         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37169         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37170         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37171         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37172         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37173         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37174         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37175         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37176         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37177         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37178         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37179         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37180         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37181         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37182         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37183         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37184         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37185         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37186         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37187         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37188         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37189         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37190         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
37191         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37192         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37193         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37194         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37195         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
37196         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37197         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37198         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
37199         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
37200         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37201         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
37202         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
37203         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37204         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
37205         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
37206         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37207         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37208         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
37209         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
37210         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37211         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37212         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37213         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37214         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37215         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
37216         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37217         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37218         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37219         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37220         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37221         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37222         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37223         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37224         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37225         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37226         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37227         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37228         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37229         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37230         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37231         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37232         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37233         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37234         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37235         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37236         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37237         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37238         * sysdeps/ieee754/s_matherr.c: Likewise.
37239         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37240         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37241         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37242         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37243
37244 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
37245
37246         * crypt/md5.h: Remove __STDC__ conditionals.
37247         * libio/libioP.h: Likewise.
37248         * locale/programs/config.h: Likewise.
37249         * sysdeps/generic/sysdep.h: Likewise.
37250         * sysdeps/i386/asm-syntax.h: Likewise.
37251         * sysdeps/s390/asm-syntax.h: Likewise.
37252         * sysdeps/unix/sysdep.h: Likewise.
37253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
37254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
37255
37256 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
37257
37258         * libio/libio.h: Remove __STDC__ conditionals.
37259         * malloc/obstack.h: Likewise.
37260         * math/complex.h: Likewise.
37261         * math/math.h: Likewise.
37262         * sysdeps/generic/_G_config.h: Likewise.
37263         * sysdeps/gnu/_G_config.h: Likewise.
37264         * sysdeps/mach/hurd/_G_config.h: Likewise.
37265         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37266         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
37267         * sysdeps/sparc/bits/mathdef.h: Likewise.
37268
37269 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
37270
37271         [BZ #13583]
37272         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
37273         Clean up HAS_* macros.
37274         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
37275         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
37276         possible.
37277         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
37278         HAS_AVX.
37279         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37280         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37281         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37282         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37283         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37284
37285 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
37286
37287         * elf/tst-unique3.cc (gets): Remove declaration.
37288         * elf/tst-unique3lib.cc (gets): Likewise.
37289         * elf/tst-unique3lib2.cc (gets): Likewise.
37290         * elf/tst-unique4.cc (gets): Likewise.
37291
37292 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
37293
37294         * include/stdio.h: Add C++ protection.  Add gets declarations and
37295         definitions.
37296         * debug/tst-chk1.c: Don't declare gets here.
37297         * stdio-common/tst-gets.c: Likewise.
37298
37299 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
37300
37301         * posix/glob: Remove directory.
37302
37303 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
37304
37305         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
37306
37307 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
37308
37309         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
37310         of the non-standard EPFNOSUPPORT.
37311
37312 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37313
37314         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
37315         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
37316         ANYWHERE set to 1 only on KERN_NO_SPACE error.
37317
37318 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
37319
37320         * wcsmbs/uchar.h: Test __STDC_VERSION__.
37321
37322 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
37323
37324         * nscd/aicache.c (addhstaiX): Do not cache negative results of
37325         transient errors.
37326         * nscd/grpcache.c (cache_addgr): Likewise.
37327         * nscd/hstcache.c (cache_addhst): Likewise.
37328         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37329         * nscd/pwdcache.c (cache_addpw): Likewise.
37330         * nscd/servicescache.c (cache_addserv): Likewise.
37331
37332 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
37333
37334         * malloc/malloc.c: Various cleanups.
37335         * malloc/hooks.c: Likewise.
37336
37337         * stdlib/Makefile (tests): Add bug-fmtmsg1.
37338         * stdlib/bug-fmtmsg1.c: New file.
37339
37340         * stdlib/fmtmsg.c (init): Add missing unlock.
37341         Patch by Peng Haitao <penght@cn.fujitsu.com>.
37342
37343 2012-01-12  Marek Polacek  <polacek@redhat.com>
37344
37345         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
37346         and _GNU_SOURCE.
37347
37348 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
37349
37350         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
37351         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
37352         macro to ensure uniqueness of label name.
37353         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
37354         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
37355
37356 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
37357
37358         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
37359
37360         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
37361         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
37362         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37363         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
37364
37365 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
37366
37367         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
37368
37369         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
37370         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
37371         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37372
37373         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
37374
37375         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
37376         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
37377         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37378         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
37379
37380         * math/bits/math-finite.h: Add ldexp support.
37381
37382 2012-01-10  Marek Polacek  <polacek@redhat.com>
37383
37384         * locale/programs/localedef.h (show_archive_content): Add noreturn
37385         attribute.
37386
37387 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
37388
37389         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
37390
37391 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
37392
37393         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
37394
37395         * io/Makefile (headers): Add bits/poll2.h.
37396
37397 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
37398
37399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
37400         typo #include statement.
37401
37402 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
37403
37404         * include/sys/cdefs.h: Define __attribute_alloc_size.
37405         * catgets/gencat.c: Add alloc_size attribute and apply consistently
37406         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
37407         * elf/pldd.c: Likewise.
37408         * iconv/iconv_charmap.c: Likewise.
37409         * iconv/iconvconfig.c: Likewise.
37410         * iconv/strtab.c: Likewise.
37411         * locale/programs/locale.c: Likewise.
37412         * locale/programs/localedef.h: Likewise.
37413         * locale/programs/simple-hash.c: Likewise.
37414         * nscd/nscd.h: Likewise.
37415         * nss/makedb.c: Likewise.
37416         * sysdeps/generic/ldconfig.h: Likewise.
37417         * locale/programs/localedef.c: Remove xmalloc prototype.
37418         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
37419
37420 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
37421
37422         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
37423         appropriate.
37424
37425 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
37426
37427         * math/Makefile (tests): Add tst-CMPLX.
37428         * math/tst-CMPLX.c: New file.
37429
37430         * math/complex.h (CMPLXL): Fix typo.
37431
37432         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
37433         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
37434         GLIBC_2.16.
37435         * debug/tst-chk1.c: Add poll and ppoll tests.
37436         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
37437         * include/sys/poll.h: Add hidden proto for ppoll.
37438         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
37439         * sysdeps/mach/hurd/ppoll.c: Likewise.
37440         * io/ppoll.c: Likewise.
37441         * debug/poll_chk.c: New file.
37442         * debug/ppoll_chk.c: New file.
37443         * include/bits/poll2.h: New file.
37444         * io/bits/poll2.h: New file.
37445
37446         [BZ #1350]
37447         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
37448
37449         * configure.in: static is always set to yes.  Remove.
37450         * config.make.in: Don't set build-static.
37451         * Makeconfig: Remove use of build-static.
37452         * dlfcn/Makefile: Likewise.
37453         * elf/Makefile: Likewise.
37454         * math/Makefile: Likewise.
37455         * misc/Makefile: Likewise.
37456         * nptl/Makefile: Likewise.
37457         * sysdeps/mach/hurd/Makefile: Likewise.
37458
37459         * configure.in: PWD_P is not used anymore.
37460         * config.make.in: Remove PWD_P entry.
37461
37462         * configure.in: Remove last remnants of RANLIB.
37463         No need to check for signed size_t anymore.
37464         Don't set libc_commonpagesize and libc_relro_required here for Alpha
37465         and IA-64.
37466         Remove __builtin_expect test because we require at least gcc 3.4.
37467         * aclocal.m4: Likewise.
37468
37469         * wcsmbs/mbrtoc16.c: Implement using towc function.
37470         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
37471         * wcsmbs/wcsmbsload.c: Likewise.
37472         * iconv/gconv_simple.c: Likewise.
37473         * iconv/gconv_int.h: Likewise.
37474         * iconv/gconv_builtin.h: Likewise.
37475         * iconv/iconv_prog.c: Remove CHAR16 handling.
37476
37477         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
37478
37479         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
37480
37481         * configure.in: Remove --with-elf and --enable-bounded options.
37482         Dont set base_machine for ia64.  More non-ELF conditions removed.
37483         Remove testing and setting of leading underscore information.
37484         * config.make.in (build-bounded): Set to no.
37485         * config.h.in: Remove NO_UNDERSCORES entry.
37486         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
37487         them.
37488         * csu/start.c: Remove !NO_UNDERSCORE code.
37489         * locale/localeinfo.h: Likewise.
37490         * sysdeps/generic/machine-gmon.h: Likewise.
37491         * sysdeps/generic/sysdep.h: Likewise.
37492         * sysdeps/i386/sysdep.h: Likewise.
37493         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
37494         * sysdeps/mach/sysdep.h: Likewise.
37495         * sysdeps/s390/s390-32/sysdep.h: Likewise.
37496         * sysdeps/s390/s390-64/sysdep.h: Likewise.
37497         * sysdeps/sh/sysdep.h: Likewise.
37498         * sysdeps/sparc/sparc32/alloca.S: Likewise.
37499         * sysdeps/unix/i386/sysdep.S: Likewise.
37500         * sysdeps/unix/sparc/start.c: Likewise.
37501         * sysdeps/unix/sparc/sysdep.S: Likewise.
37502         * sysdeps/unix/sparc/sysdep.h: Likewise.
37503         * sysdeps/unix/start.c: Likewise.
37504         * sysdeps/unix/x86_64/sysdep.S: Likewise.
37505         * sysdeps/x86_64/sysdep.h: Likewise.
37506
37507 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
37508
37509         [BZ #13553]
37510         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
37511         for non-gcc.
37512         * argp/argp-fmtstream.h: Use const instead __const.
37513         * argp/argp.h: Likewise.
37514         * assert/assert.h: Likewise.
37515         * bits/fenv.h: Likewise.
37516         * bits/sched.h: Likewise.
37517         * bits/sigset.h: Likewise.
37518         * bits/sigthread.h: Likewise.
37519         * catgets/nl_types.h: Likewise.
37520         * conform/data/pthread.h-data: Likewise.
37521         * crypt/crypt-private.h: Likewise.
37522         * crypt/crypt.h: Likewise.
37523         * crypt/crypt_util.c: Likewise.
37524         * ctype/ctype.h: Likewise.
37525         * debug/execinfo.h: Likewise.
37526         * debug/mbsnrtowcs_chk.c: Likewise.
37527         * debug/mbsrtowcs_chk.c: Likewise.
37528         * debug/wcsnrtombs_chk.c: Likewise.
37529         * debug/wcsrtombs_chk.c: Likewise.
37530         * debug/wcstombs_chk.c: Likewise.
37531         * dirent/dirent.h: Likewise.
37532         * dlfcn/dlfcn.h: Likewise.
37533         * elf/neededtest4.c: Likewise.
37534         * grp/grp.h: Likewise.
37535         * gshadow/gshadow.h: Likewise.
37536         * iconv/gconv.h: Likewise.
37537         * iconv/gconv_int.h: Likewise.
37538         * iconv/gconv_simple.c: Likewise.
37539         * iconv/iconv.h: Likewise.
37540         * iconv/loop.c: Likewise.
37541         * iconv/skeleton.c: Likewise.
37542         * include/aio.h: Likewise.
37543         * include/aliases.h: Likewise.
37544         * include/argz.h: Likewise.
37545         * include/arpa/inet.h: Likewise.
37546         * include/assert.h: Likewise.
37547         * include/dirent.h: Likewise.
37548         * include/dlfcn.h: Likewise.
37549         * include/execinfo.h: Likewise.
37550         * include/fcntl.h: Likewise.
37551         * include/fenv.h: Likewise.
37552         * include/glob.h: Likewise.
37553         * include/grp.h: Likewise.
37554         * include/libintl.h: Likewise.
37555         * include/mntent.h: Likewise.
37556         * include/netdb.h: Likewise.
37557         * include/pwd.h: Likewise.
37558         * include/rpc/netdb.h: Likewise.
37559         * include/sched.h: Likewise.
37560         * include/search.h: Likewise.
37561         * include/shadow.h: Likewise.
37562         * include/signal.h: Likewise.
37563         * include/stdio.h: Likewise.
37564         * include/stdlib.h: Likewise.
37565         * include/string.h: Likewise.
37566         * include/sys/socket.h: Likewise.
37567         * include/sys/stat.h: Likewise.
37568         * include/sys/statfs.h: Likewise.
37569         * include/sys/statvfs.h: Likewise.
37570         * include/sys/syslog.h: Likewise.
37571         * include/sys/time.h: Likewise.
37572         * include/sys/uio.h: Likewise.
37573         * include/time.h: Likewise.
37574         * include/unistd.h: Likewise.
37575         * include/utmp.h: Likewise.
37576         * include/wchar.h: Likewise.
37577         * include/wctype.h: Likewise.
37578         * inet/aliases.h: Likewise.
37579         * inet/arpa/inet.h: Likewise.
37580         * inet/netinet/ether.h: Likewise.
37581         * inet/netinet/in.h: Likewise.
37582         * intl/libintl.h: Likewise.
37583         * io/bits/fcntl2.h: Likewise.
37584         * io/fcntl.h: Likewise.
37585         * io/ftw.h: Likewise.
37586         * io/sys/poll.h: Likewise.
37587         * io/sys/stat.h: Likewise.
37588         * io/sys/statfs.h: Likewise.
37589         * io/sys/statvfs.h: Likewise.
37590         * io/utime.h: Likewise.
37591         * libio/bits/stdio.h: Likewise.
37592         * libio/bits/stdio2.h: Likewise.
37593         * libio/libio.h: Likewise.
37594         * libio/libioP.h: Likewise.
37595         * libio/stdio.h: Likewise.
37596         * locale/lc-ctype.c: Likewise.
37597         * locale/locale.h: Likewise.
37598         * login/utmp.h: Likewise.
37599         * malloc/arena.c: Likewise.
37600         * malloc/malloc.c: Likewise.
37601         * malloc/malloc.h: Likewise.
37602         * malloc/mcheck.c: Likewise.
37603         * malloc/mtrace.c: Likewise.
37604         * math/bits/mathcalls.h: Likewise.
37605         * math/fenv.h: Likewise.
37606         * math/math_private.h: Likewise.
37607         * misc/bits/error.h: Likewise.
37608         * misc/bits/syslog.h: Likewise.
37609         * misc/err.h: Likewise.
37610         * misc/error.h: Likewise.
37611         * misc/fstab.h: Likewise.
37612         * misc/mntent.h: Likewise.
37613         * misc/regexp.h: Likewise.
37614         * misc/search.h: Likewise.
37615         * misc/sgtty.h: Likewise.
37616         * misc/sys/mman.h: Likewise.
37617         * misc/sys/syslog.h: Likewise.
37618         * misc/sys/uio.h: Likewise.
37619         * misc/sys/xattr.h: Likewise.
37620         * misc/ttyent.h: Likewise.
37621         * nis/rpcsvc/ypclnt.h: Likewise.
37622         * nss/nss.h: Likewise.
37623         * posix/bits/unistd.h: Likewise.
37624         * posix/fnmatch.h: Likewise.
37625         * posix/glob.h: Likewise.
37626         * posix/sched.h: Likewise.
37627         * posix/spawn.h: Likewise.
37628         * posix/sys/wait.h: Likewise.
37629         * posix/unistd.h: Likewise.
37630         * posix/wordexp.h: Likewise.
37631         * pwd/pwd.h: Likewise.
37632         * resolv/netdb.h: Likewise.
37633         * resource/sys/resource.h: Likewise.
37634         * rt/aio.h: Likewise.
37635         * rt/bits/mqueue2.h: Likewise.
37636         * rt/mqueue.h: Likewise.
37637         * shadow/shadow.h: Likewise.
37638         * signal/signal.h: Likewise.
37639         * socket/send.c: Likewise.
37640         * socket/sendto.c: Likewise.
37641         * socket/sys/socket.h: Likewise.
37642         * stdio-common/printf.h: Likewise.
37643         * stdlib/bits/stdlib.h: Likewise.
37644         * stdlib/fmtmsg.h: Likewise.
37645         * stdlib/monetary.h: Likewise.
37646         * stdlib/stdlib.h: Likewise.
37647         * stdlib/ucontext.h: Likewise.
37648         * streams/stropts.h: Likewise.
37649         * string/argz.h: Likewise.
37650         * string/bits/string2.h: Likewise.
37651         * string/string.h: Likewise.
37652         * string/strings.h: Likewise.
37653         * sunrpc/rpc/auth.h: Likewise.
37654         * sunrpc/rpc/auth_des.h: Likewise.
37655         * sunrpc/rpc/clnt.h: Likewise.
37656         * sunrpc/rpc/netdb.h: Likewise.
37657         * sunrpc/rpc/pmap_clnt.h: Likewise.
37658         * sunrpc/rpc/xdr.h: Likewise.
37659         * sysdeps/generic/inttypes.h: Likewise.
37660         * sysdeps/generic/net/if.h: Likewise.
37661         * sysdeps/generic/sys/swap.h: Likewise.
37662         * sysdeps/gnu/net/if.h: Likewise.
37663         * sysdeps/gnu/utmpx.h: Likewise.
37664         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
37665         * sysdeps/i386/i486/bits/string.h: Likewise.
37666         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
37667         * sysdeps/s390/bits/string.h: Likewise.
37668         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
37669         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
37670         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
37671         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
37672         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
37673         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
37674         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
37675         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
37676         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
37677         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
37678         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
37679         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
37680         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
37681         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
37682         * sysdeps/unix/sysv/linux/readv.c: Likewise.
37683         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
37684         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
37685         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37686         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
37687         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
37688         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
37689         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
37690         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
37691         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
37692         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
37693         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
37694         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
37695         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
37696         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
37697         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
37698         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
37699         * sysvipc/sys/ipc.h: Likewise.
37700         * sysvipc/sys/msg.h: Likewise.
37701         * sysvipc/sys/sem.h: Likewise.
37702         * sysvipc/sys/shm.h: Likewise.
37703         * termios/termios.h: Likewise.
37704         * time/sys/time.h: Likewise.
37705         * time/time.h: Likewise.
37706         * wcsmbs/bits/wchar2.h: Likewise.
37707         * wcsmbs/uchar.h: Likewise.
37708         * wcsmbs/wchar.h: Likewise.
37709         * wctype/wctype.h: Likewise.
37710
37711         [BZ #13551]
37712         * Makeconfig: Remove all but ELF support including AIX support.
37713         * Makerules: Likewise.
37714         * config.h.in: Likewise.
37715         * config.make.in: Likewise.
37716         * configure: Likewise.
37717         * configure.in: Likewise.
37718         * csu/Makefile: Likewise.
37719         * csu/version.c: Likewise.
37720         * debug/Makefile: Likewise.
37721         * dlfcn/Makefile: Likewise.
37722         * elf/Makefile: Likewise.
37723         * extra-lib.mk: Likewise.
37724         * iconv/Makefile: Likewise.
37725         * include/libc-symbols.h: Likewise.
37726         * include/shlib-compat.h: Likewise.
37727         * resolv/Makefile: Likewise.
37728         * resolv/res_libc.c: Likewise.
37729         * rt/Makefile: Likewise.
37730         * sysdeps/i386/asm-syntax.h: Likewise.
37731         * sysdeps/i386/sysdep.h: Likewise.
37732         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
37733         * sysdeps/mach/sysdep.h: Likewise.
37734         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
37735         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
37736         * sysdeps/s390/asm-syntax.h: Likewise.
37737         * sysdeps/s390/s390-32/sysdep.h: Likewise.
37738         * sysdeps/s390/s390-64/sysdep.h: Likewise.
37739         * sysdeps/sh/sysdep.h: Likewise.
37740         * sysdeps/unix/sparc/sysdep.h: Likewise.
37741         * sysdeps/wordsize-32/divdi3.c: Likewise.
37742         * sysdeps/x86_64/sysdep.h: Likewise.
37743
37744         * argp/Versions: Remove _argp_unlock_xxx.
37745
37746         [BZ #13559]
37747         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
37748         * abilist/libBrokenLocale.abilist: Likewise.
37749         * abilist/libanl.abilist: Likewise.
37750         * abilist/libc.abilist: Likewise.
37751         * abilist/libcrypt.abilist: Likewise.
37752         * abilist/libdl.abilist: Likewise.
37753         * abilist/libm.abilist: Likewise.
37754         * abilist/libnsl.abilist: Likewise.
37755         * abilist/libpthread.abilist: Likewise.
37756         * abilist/libresolv.abilist: Likewise.
37757         * abilist/librt.abilist: Likewise.
37758         * abilist/libthread_db.abilist: Likewise.
37759         * abilist/libutil.abilist: Likewise.
37760         * abilist/libnss_db.abilist: New file.
37761
37762         * scripts/abilist.awk: Add support for indirect functions.
37763
37764         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
37765
37766         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
37767
37768         * shlib-versions: Remove entries for ports architectures.
37769
37770         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
37771         files in ports.
37772         * elf/stackguard-macros.h: Remove support for IA-64.
37773         * elf/tst-auditmod1.c: Likewise.
37774         * sysdeps/generic/ldsodefs.h: Likewise.
37775
37776         * sysdeps/unix/sysv/linux/configure.in: Ports should define
37777         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
37778         configure files.
37779
37780         [BZ #13552]
37781         * configure.in: Remove --enable-omitfp support.
37782         * FAQ.in: Adjust.
37783         * config.make.in: Likewise.
37784         * Makeconfig: Likewise.
37785         * manual/install.texi: Likewise.
37786
37787         In case anyone cares, the IA-64 architecture could move to ports.
37788         * sysdeps/ia64/*: Removed.
37789         * sysdeps/unix/sysv/linux/ia64/*: Removed.
37790         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
37791
37792         [BZ #13555]
37793         * configure.in: Remove entries for unsupported architectures.
37794
37795         [BZ #13533]
37796         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
37797         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
37798         routines.
37799         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
37800         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
37801         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
37802         fall back to using wcrtomb.
37803         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
37804         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
37805         renaming.
37806         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
37807         * wcsmbs/tst-c16c32-1.c: New file.
37808
37809         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
37810         local variable.
37811
37812         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
37813
37814         * elf/tst-unique3.cc: Add explicit declaration of gets.
37815         * elf/tst-unique3lib.cc: Likewise.
37816         * elf/tst-unique3lib2.cc: Likewise.
37817         * elf/tst-unique4.cc: Likewise.
37818
37819         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
37820
37821 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
37822
37823         [BZ #13566]
37824         * assert/assert.h (static_assert): Don't define for C++.
37825         * libio/stdio.h (gets): Do declare for C++ <= C++11.
37826         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
37827
37828 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
37829
37830         * iconv/loop.c (single loop): Fix assertion in storing of
37831         remaining bytes.
37832
37833         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
37834
37835 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
37836
37837         * posix/getconf.c: Update copyright year.
37838         * nss/getent.c: Likewise.
37839         * nss/makedb.c: Likewise.
37840         * iconv/iconvconfig.c: Likewise.
37841         * iconv/iconv_prog.c: Likewise.
37842         * elf/ldconfig.c: Likewise.
37843         * elf/pldd.c: Likewise.
37844         * elf/sotruss.ksh: Likewise.
37845         * catgets/gencat.c: Likewise.
37846         * csu/version.c: Likewise.
37847         * elf/ldd.bash.in: Likewise.
37848         * elf/sprof.c (print_version): Likewise.
37849         * locale/programs/locale.c: Likewise.
37850         * locale/programs/localedef.c: Likewise.
37851         * login/programs/pt_chown.c: Likewise.
37852         * nscd/nscd.c (print_version): Likewise.
37853         * debug/xtrace.sh: Likewise.
37854         * malloc/memusage.sh: Likewise.
37855         * malloc/mtrace.pl: Likewise.
37856         * debug/catchsegv.sh: Likewise.
37857
37858 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
37859
37860         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
37861         pure attribute.
37862
37863 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
37864
37865         [BZ #13533]
37866         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
37867         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
37868         transformations.
37869         * iconv/gconv_int.h: Likewise.
37870         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
37871         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
37872         from libc for GLIBC_2.16.
37873         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
37874         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
37875         * wcsmbs/uchar.h: Really define mbstate_t.
37876         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
37877         * wcsmbs/c16rtomb.c: New file.
37878         * wcsmbs/mbrtoc16.c: New file.
37879         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
37880         for C/POSIX locale.
37881         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
37882         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
37883
37884         * wcsmbs/wchar.h: Add missing __restrict.
37885
37886 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
37887
37888         [BZ #13532]
37889         * time/Makefile (routines): Add timespec_get.
37890         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
37891         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
37892         timespec for ISO C11.
37893         * time/timespec_get.c: New file.
37894         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
37895         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
37896
37897         [BZ #13531]
37898         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
37899         * stdlib/stdlib.h: Declare aligned_alloc.
37900         * Versions.def: Add GLIBC_2.16 for libc.
37901         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
37902
37903         [BZ 13527]
37904         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
37905         ISO C11.
37906
37907         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
37908         code.
37909
37910         [BZ #13528]
37911         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
37912
37913         [BZ #13529]
37914         * assert/assert.h (static_assert): Define.
37915
37916         * version.h: Update for 2.16 development version.
37917
37918         [BZ #13526]
37919         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
37920         _ISOC11_SOURCE.
37921
37922         * version.h (RELEASE): Bump for 2.15 release.
37923         * include/features.h (__GLIBC_MINOR__): Bump to 15.
37924
37925         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
37926         Patch by Marek Polacek <mpolacek@redhat.com>.
37927
37928         * bits/byteswap.h: Protect long long constants with __extension__.
37929         * sysdeps/i386/bits/byteswap.h: Likewise.
37930         * sysdeps/ia64/bits/byteswap.h: Likewise.
37931         * sysdeps/s390/bits/byteswap.h: Likewise.
37932         * sysdeps/x86_64/bits/byteswap.h: Likewise.
37933
37934 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
37935
37936         [BZ #13540]
37937         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
37938         destination buffer.
37939         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
37940
37941 2011-12-23  Marek Polacek  <polacek@redhat.com>
37942
37943         * elf/dl-addr.c (determine_info): Add inline keyword.
37944         * elf/tst-auditmod4b.c (check_avx): Likewise.
37945         * elf/tst-auditmod6b.c (check_avx): Likewise.
37946         * elf/tst-auditmod6c.c (check_avx): Likewise.
37947         * elf/tst-auditmod7b.c (check_avx): Likewise.
37948
37949 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
37950
37951         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
37952         !__SSE_MATH__.
37953
37954 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
37955
37956         [BZ #13540]
37957         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
37958         processing for last bytes.
37959
37960 2011-08-06  Bruno Haible  <bruno@clisp.org>
37961
37962         [BZ #13061]
37963         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
37964         U+0385, not to U+1FEE.
37965
37966         [BZ #13062]
37967         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
37968         entry for U+00A5 U+0301.
37969
37970 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
37971
37972         [BZ #13166]
37973         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
37974         buffer for the output is too small.
37975
37976         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
37977         optimization.
37978
37979         [BZ #13185]
37980         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
37981         SSE flags if possible.
37982
37983 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
37984
37985         [BZ #13540]
37986         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
37987         processing for last bytes.
37988
37989 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
37990
37991         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
37992         (syscall-list-default-options, syscall-list-default-condition)
37993         (syscall-list-includes): Define.
37994         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
37995         list of ABIs and options and #if conditions for each ABI.  Do not
37996         handle common syscalls between ABIs specially.
37997         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
37998         Remove.
37999         (syscall-list-variants, syscall-list-32bit-options)
38000         (syscall-list-32bit-condition, syscall-list-64bit-options)
38001         (syscall-list-64bit-condition): Define.
38002         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
38003         (syscall-list-variants, syscall-list-32bit-options)
38004         (syscall-list-32bit-condition, syscall-list-64bit-options)
38005         (syscall-list-64bit-condition): Define.
38006         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
38007         Remove.
38008         (syscall-list-variants, syscall-list-32bit-options)
38009         (syscall-list-32bit-condition, syscall-list-64bit-options)
38010         (syscall-list-64bit-condition): Define.
38011         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
38012         Remove.
38013         (syscall-list-variants, syscall-list-32bit-options)
38014         (syscall-list-32bit-condition, syscall-list-64bit-options)
38015         (syscall-list-64bit-condition): Define.
38016
38017 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
38018
38019         * locale/iso-639.def: Add brx entry.
38020
38021         [BZ #13328]
38022         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
38023         Proposed by Mariusz_Cukr <marcukr@op.pl>.
38024
38025         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
38026         __feraiseexcept_renamed.
38027
38028 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
38029
38030         [BZ #13538]
38031         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
38032         EPOLLET with unsigned values.
38033         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38034         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
38035
38036         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
38037         to large cancellation.
38038         * math/s_cacoshf.c: Likewise.
38039         * math/s_cacoshl.c: Likewise.
38040
38041 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
38042
38043         [BZ #13305]
38044         [BZ #12786]
38045         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
38046         * math/s_cacoshf.c: Likewise.
38047         * math/s_cacoshl.c: Likewise.
38048
38049 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
38050
38051         [BZ #13439]
38052         * iconv/gconv.h: Define __GCONV_SWAP.
38053         * iconvdata/unicode.c: The swap bit must be stored in __flags.
38054         * iconvdata/utf-16.c: Likewise.
38055         * iconvdata/utf-32.c: Likewise.
38056
38057 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
38058
38059         [BZ #13524]
38060         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
38061         numerator after shifting it by one limb.
38062
38063 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
38064
38065         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
38066         under [__USE_EXTERN_INLINES].
38067
38068 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
38069
38070         [BZ #13446]
38071         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
38072
38073 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38074
38075         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
38076         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
38077         optimized code.
38078         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
38079         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
38080         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
38081         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
38082         for strncasecmp/strncasecmp_l compilation.
38083         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
38084         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
38085
38086 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
38087
38088         [BZ #13484]
38089         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
38090         of __asm__.
38091
38092 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
38093
38094         [BZ #13506]
38095         * time/tzfile.c (__tzfile_read): Check values from file header.
38096
38097 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
38098
38099         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
38100         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
38101         * powerpc/powerpc32/dl-start.S: Likewise.
38102         * powerpc/powerpc32/elf/start.S: Likewise.
38103         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
38104         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
38105         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
38106         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
38107         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
38108         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
38109         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
38110         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
38111         * powerpc/powerpc32/fpu/s_round.S: Likewise.
38112         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
38113         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
38114         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
38115         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
38116         * powerpc/powerpc32/memset.S: Likewise.
38117         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
38118         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
38119         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
38120         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
38121         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
38122         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
38123         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
38124         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
38125         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
38126         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
38127         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
38128         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
38129         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
38130
38131 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38132
38133         * math/libm-test.inc: Added more nearbyint tests.
38134         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
38135         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
38136         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
38137         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
38138
38139 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
38140
38141         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
38142         FD_CLOEXEC.
38143
38144 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38145
38146         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
38147         Add wcscpy-ssse3 wcscpy-c.
38148         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
38149         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
38150         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
38151         * sysdeps/x86_64/wcschr.S: New file.
38152         * sysdeps/x86_64/wcsrchr.S: New file.
38153         * string/test-strcmp.c: Remove checking of wcscmp function for
38154         wrong alignments.
38155         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
38156         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
38157         wcsrchr-sse2 wcsrchr-c.
38158         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
38159         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
38160         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
38161         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
38162         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
38163         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
38164         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
38165         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
38166         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
38167         * wcsmbc/wcschr.c (WCSCHR): New macro.
38168
38169 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38170
38171         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
38172         * wcsmbs/test-wcsrchr.c: New file.
38173         * string/test-strrchr.c: Add wcsrchr support.
38174         (WIDE): New macro.
38175         * wcsmbs/test-wcscpy.c: New file.
38176         * string/test-strcpy.c: Add wcscpy support.
38177         (WIDE): New macro.
38178
38179 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
38180
38181         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
38182         the inner loop.
38183
38184 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
38185
38186         [BZ #13472]
38187         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
38188
38189 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
38190
38191         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
38192         Minor optimizations.
38193
38194         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
38195         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
38196         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
38197
38198 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
38199
38200         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
38201         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
38202         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
38203         for gcc to avoid warnings.
38204         * inet/Makefile (tests): Add tst-checks.
38205         * inet/tst-checks.c: New file.
38206
38207         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
38208         warning.
38209
38210         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
38211         __wmemcmp_sse2.
38212
38213         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
38214         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
38215
38216         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
38217
38218 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
38219
38220         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
38221         problem.
38222
38223         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
38224
38225 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
38226
38227         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
38228         conditional on GCC version.
38229         (__arch_compare_and_exchange_val_8_acq)
38230         (__arch_compare_and_exchange_val_16_acq)
38231         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
38232         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
38233         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
38234
38235 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
38236
38237         * sysdeps/sh/backtrace.c: New file.
38238
38239 2011-12-02  Andreas Schwab  <schwab@redhat.com>
38240
38241         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
38242         parenthesis.
38243
38244 2011-12-01  Andreas Schwab  <schwab@redhat.com>
38245
38246         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
38247         falling back to utime.
38248
38249 2011-11-30  Andreas Schwab  <schwab@redhat.com>
38250
38251         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
38252         expectations for float.
38253
38254 2011-11-29  Andreas Schwab  <schwab@redhat.com>
38255
38256         * locale/weight.h (findidx): Add parameter len.
38257         * locale/weightwc.h (findidx): Likewise.
38258         * posix/fnmatch_loop.c (FCT): Adjust caller.
38259         * posix/regcomp.c (build_equiv_class): Likewise.
38260         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
38261         * posix/regexec.c (check_node_accept_bytes): Likewise.
38262         * string/strcoll_l.c (STRCOLL): Likewise.
38263         * string/strxfrm_l.c (STRXFRM): Likewise.
38264
38265 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
38266
38267         * Makefile.in: Remove CVSOPT handling.
38268         * configure.in: Remove use of AC_REVISION.
38269         * iconvdata/Makefile (distribute): No need to filter out CVS.
38270         * scripts/list-sources.sh: Remove CVS, subversion and monotone
38271         handling.
38272
38273 2011-11-16  Andreas Schwab  <schwab@redhat.com>
38274
38275         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
38276         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
38277         [USE_AS_STRNCASECMP_L]: Likewise.
38278         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
38279         NO_TLS_DIRECT_SEG_REFS.
38280         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
38281         Fix argument offsets for non-PIC.
38282         [USE_AS_STRNCASECMP_L]: Likewise.
38283         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
38284         NO_TLS_DIRECT_SEG_REFS.
38285
38286 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
38287
38288         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
38289         O_CLOEXEC.
38290         * locale/loadlocale.c (_nl_load_locale): Likewise.
38291
38292 2011-11-15  Andreas Schwab  <schwab@redhat.com>
38293
38294         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
38295         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
38296         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
38297         (SYSCALL_GETTIME): Set errno on error.
38298
38299         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
38300         count references to noai6ai_cached.
38301
38302 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
38303
38304         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
38305
38306         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
38307         FD_CLOEXEC for /proc/self/maps.
38308
38309         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
38310         FD_CLOEXEC for /proc/meminfo.
38311
38312         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
38313         gai.conf.
38314
38315         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
38316         FD_CLOEXEC for given file.
38317
38318         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
38319
38320         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
38321         FD_CLOEXEC for /etc/hosts.
38322         (_gethtent): Likewise.
38323
38324         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
38325
38326         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
38327         cancellation and set FD_CLOEXEC for /etc/netgroup.
38328
38329         * nss/nss_files/files-key.c (search): Don't allow cancellation when
38330         reading /etc/publickey.
38331
38332         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
38333         allow cancellation when reading /etc/group.
38334
38335         * nss/nss_files/files-alias.c (internal_setent): Don't allow
38336         cancellation.
38337         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
38338
38339         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
38340         when using data file.
38341
38342         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
38343
38344         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
38345         (write_nis_obj): Use "c" and "e" in fopen.
38346
38347         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
38348
38349         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
38350
38351         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
38352
38353         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
38354
38355         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
38356         locale.alias.
38357
38358         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
38359
38360         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
38361
38362         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
38363
38364         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
38365         file parsing and set FD_CLOEXEC.
38366
38367 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
38368
38369         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
38370
38371 2011-11-14  Andreas Schwab  <schwab@redhat.com>
38372
38373         * malloc/arena.c (arena_get2): Don't call reused_arena when
38374         _int_new_arena failed.
38375
38376 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
38377
38378         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
38379         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
38380         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
38381         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
38382         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
38383         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
38384         to compile strcasecmp and strncasecmp.
38385         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
38386         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
38387
38388         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
38389
38390 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
38391
38392         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
38393         locale-defines.sym to gen-as-const-headers.
38394         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
38395         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
38396         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
38397         to compile strcasecmp and strncasecmp.
38398         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
38399         strcasecmp_l and strncasecmp_l.
38400         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
38401         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
38402         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
38403         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
38404         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
38405         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
38406         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
38407         * sysdeps/i386/i686/multiarch/strncase.S: New file.
38408         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
38409         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
38410         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
38411
38412 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
38413
38414         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
38415         result of SYSDEP_GETTIME_CPU to retval.
38416         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
38417         parameter list to macro.  Remove trailing semicolon.  Adjust users.
38418
38419         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
38420         variable.
38421
38422         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
38423         mantissa words.
38424         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38425
38426         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
38427         from unused variable.
38428
38429         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
38430         DWARF definitions.
38431         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
38432         for assembling.
38433
38434         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
38435         over namespaces.
38436
38437         * sunrpc/rpc_prot.c (rejected): Fix case value.
38438
38439         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
38440         unsigned long long int to avoid warnings in shift.
38441
38442         * posix/regex_internal.c (re_string_reconstruct): Actually use result
38443         of use of trans.
38444         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
38445         variable tmp.
38446
38447         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
38448         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
38449         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
38450
38451         * nis/nis_table.c (nis_list): Use variable of correct type for
38452         result of __follow_path call.
38453
38454 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38455
38456         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
38457         of math functions ceil, trunc, floor, round, and sqrt, when
38458         avaliable on the platform.
38459         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
38460         name clash.
38461         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
38462         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
38463         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
38464
38465 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
38466
38467         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
38468         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
38469
38470 2011-11-11  Roland McGrath  <roland@hack.frob.com>
38471
38472         * include/unistd.h: Fix __readlink return type.
38473         Reported by Chris Metcalf <cmetcalf@tilera.com>.
38474
38475 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
38476
38477         * stdlib/ucontext.h: Undo last change for makecontext.
38478
38479 2011-11-11  Andreas Schwab  <schwab@redhat.com>
38480
38481         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
38482
38483         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
38484         * setjmp/setjmp.h: Mark functions as non-leaf.
38485         * setjmp/bits/setjmp2.h: Likewise.
38486         * stdlib/ucontext.h: Likewise.
38487
38488 2011-11-10  Andreas Schwab  <schwab@redhat.com>
38489
38490         * malloc/arena.c (_int_new_arena): Don't increment narenas.
38491         (reused_arena): Don't check arena limit.
38492         (arena_get2): Atomically check arena limit.
38493
38494 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
38495
38496         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
38497         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
38498
38499         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
38500         instructions.
38501
38502 2011-11-07  Andreas Schwab  <schwab@redhat.com>
38503
38504         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
38505         handler when locking.
38506
38507         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
38508         Fix size of allocated buffer.
38509
38510 2011-11-04  Andreas Schwab  <schwab@redhat.com>
38511
38512         [BZ #10103]
38513         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
38514         declarations for long double functions.
38515         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
38516
38517         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
38518
38519 2011-11-03  Andreas Schwab  <schwab@redhat.com>
38520
38521         * nscd/nscd.c (main): Don't start AVC thread until credentials are
38522         installed.
38523
38524         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
38525         is disabled.
38526
38527 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38528
38529         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
38530
38531 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
38532
38533         * include/alloca.h (stackinfo_alloca_round): Define.
38534         (extend_alloca): Use it.
38535         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
38536         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
38537         here.
38538
38539         * scripts/check-local-headers.sh: Ignore libaudit.h.
38540
38541         * nscd/Makefile (extra-objs): Make recursively expanded.
38542
38543 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
38544
38545         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
38546         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
38547
38548         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
38549         * posix/tst-rfc3484-2.c: Likewise.
38550         * posix/tst-rfc3484-3.c: Likewise.
38551
38552         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
38553         process_vm_writev.
38554         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
38555         process_vm_writev.
38556         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
38557         process_vm_writev from libc using GLIBC_2.15 version.
38558
38559         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
38560
38561 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
38562
38563         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
38564         stack usage.
38565
38566 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
38567
38568         [BZ #13367]
38569         * nss/getent.c (initgroups_keys): Show error message in case no group
38570         names are given.
38571
38572         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
38573         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
38574         __bump_nl_timestamp.
38575         * nscd/connections (nscd_init): When host database is served open
38576         netlink socket and request notification about configuration changes.
38577         (main_loop_poll): Track netlink file descriptor and bump timestamp
38578         in case data becomes available.
38579         (main_loop_epoll): Likewise.
38580         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
38581         (database_pers_head): Add extra_data fileds.
38582         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
38583         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
38584         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
38585         Adjust caller.
38586         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
38587         in6ai data, call __free_in6ai.
38588         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
38589         Add -DHAVE_NETLINK.
38590         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
38591         interface information.  Reuse previous data if netlink timestamp
38592         is not changed.
38593         (__bump_nl_timestamp): New function.
38594         (__free_in6ai): New function.
38595
38596 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
38597
38598         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
38599         close_not_cancel_no_status here.
38600         (__check_pf): Reorganize code a bit to not call close twice if OOM.
38601
38602 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
38603
38604         [BZ #13276]
38605         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
38606         return value.
38607
38608         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
38609         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
38610         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
38611
38612 2011-07-03  Andreas Jaeger  <aj@suse.de>
38613
38614         [BZ #10709]
38615         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
38616         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
38617         * math/libm-test.inc (sin_test): Add test case.
38618
38619 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
38620
38621         [BZ #13337]
38622         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
38623         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
38624
38625         * elf/chroot_canon.c (chroot_canon): Cleanups.
38626
38627         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
38628
38629         [BZ #13335]
38630         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
38631         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
38632
38633         * string/test-strchr.c: Make usable for strchrnul testing.
38634         * string/test-strchrnul.c: New file.
38635         * string/Makefile (strop-tests): Add strchrnul.
38636
38637         * po/it.po: Update from translation team.
38638         * po/es.po: Likewise.
38639
38640 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
38641
38642         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
38643         the three constants needed as parameters.  Drop the others.
38644         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
38645         __m128i_strloadu_tolower.
38646         Create and initialize variable zero and use it in all the places
38647         where _mm_setzero_si128 was used.
38648
38649         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
38650         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
38651         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
38652         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
38653         anymore.
38654         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
38655         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
38656         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
38657         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
38658         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
38659         __mpranred, __mptan.
38660         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
38661         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
38662         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
38663         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
38664         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
38665         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
38666         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
38667         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
38668         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
38669
38670 2011-10-28  Andreas Schwab  <schwab@redhat.com>
38671
38672         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
38673         redefine if SHARED.
38674         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
38675
38676         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
38677         wide char related routines to wcsmbs subdir.
38678
38679 2011-10-27  Andreas Schwab  <schwab@redhat.com>
38680
38681         [BZ #13344]
38682         * misc/sys/cdefs.h (__THROWNL): Define.
38683         * posix/unistd.h: Use __THREADNL instead of __THREAD
38684         for memory synchronization functions.
38685
38686 2011-10-26  Roland McGrath  <roland@hack.frob.com>
38687
38688         [BZ #13349]
38689         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
38690         doesn't exist.
38691         * manual/stdio.texi (Obstack Streams): Node removed.
38692
38693 2011-10-26  Andreas Schwab  <schwab@redhat.com>
38694
38695         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
38696         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
38697         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
38698
38699         * math/math_private.h (math_force_eval): Allow non-addressable
38700         arguments.
38701         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
38702
38703 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
38704
38705         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
38706         file is not needed.
38707
38708         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
38709         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
38710         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
38711         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
38712         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
38713         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
38714         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
38715         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
38716         Add AVX variants.
38717         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
38718         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
38719         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
38720         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
38721         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
38722         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
38723         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
38724         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
38725         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
38726         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
38727         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
38728         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
38729         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
38730         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
38731         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
38732         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
38733         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
38734         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
38735         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
38736
38737         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
38738         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
38739
38740         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
38741         place.  Use VEX encoding when compiling for AVX.
38742
38743 2011-10-25  Andreas Schwab  <schwab@redhat.com>
38744
38745         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
38746         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
38747
38748         * string/test-strchr.c (do_test): Don't generate NUL bytes.
38749
38750 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
38751
38752         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
38753         useless if() expression.
38754         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
38755         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
38756         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
38757         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
38758         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
38759         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
38760         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
38761         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
38762         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
38763         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
38764         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
38765         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
38766         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
38767         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
38768         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
38769         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
38770         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
38771         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
38772         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
38773
38774         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
38775
38776 2011-10-25  Andreas Schwab  <schwab@redhat.com>
38777
38778         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
38779         condition.
38780         * elf/dl-fini.c (_dl_sort_fini): Likewise.
38781
38782 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
38783
38784         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
38785         .text section.  Avoid duplicate constants.
38786         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
38787         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
38788         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
38789         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
38790         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
38791         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
38792         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
38793         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
38794         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
38795         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
38796         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
38797         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
38798         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
38799         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
38800         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
38801         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
38802         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
38803         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
38804         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
38805         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
38806         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
38807         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
38808         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
38809         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
38810         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
38811         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
38812         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
38813         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
38814         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
38815         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
38816         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
38817         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
38818         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
38819         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
38820         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
38821         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
38822         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
38823         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
38824         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
38825         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
38826         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
38827         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
38828         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
38829         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
38830         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
38831
38832 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
38833
38834         * sysdeps/x86_64/dla.h: Move to ...
38835         * sysdeps/x86_64/fpu/dla.h: ...here.
38836         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
38837         situations.  Use __builtin_fma only for gcc 4.6 and up.
38838
38839         * config.make.in: Add have-mfma4 entry.
38840         * configure.in: Substitute libc_cv_cc_fma4.
38841         * math/Makefile (dbl-only-routines): Add sincostab.
38842         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
38843         Use __sincostab not sincos.
38844         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
38845         name is a macro.
38846         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
38847         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
38848         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
38849         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
38850         using __copysign.
38851         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
38852         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
38853         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
38854         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
38855         and __inv.
38856         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
38857         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
38858         __copysign.
38859         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
38860         define aliases when function name is a macro.
38861         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
38862         sysdeps/ieee754/dbl-64/sincos.tbl.
38863         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
38864         fma4-enabled routines.
38865         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
38866         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
38867         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
38868         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
38869         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
38870         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
38871         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
38872         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
38873         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
38874         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
38875         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
38876         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
38877         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
38878         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
38879         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
38880         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
38881         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
38882         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
38883         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
38884         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
38885         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
38886         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
38887         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
38888         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
38889         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
38890         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
38891         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
38892         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
38893         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
38894         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
38895
38896         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
38897         rename.
38898         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
38899         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
38900         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
38901         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
38902         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
38903         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
38904         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
38905         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
38906
38907 2011-10-24  Andreas Schwab  <schwab@redhat.com>
38908
38909         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
38910
38911 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
38912
38913         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
38914
38915         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
38916         prediction.
38917         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
38918
38919         * string/strnlen.c: Don't define STRNLEN, reverse logic.
38920         Remove unused variable magic_bits.
38921         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
38922
38923         * string/strnlen.c: Define and use STRNLEN macro.
38924         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
38925         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
38926         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
38927         * wcsmbs/wcslen.c: Define and use WCSLEN.
38928         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
38929         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
38930         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
38931         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
38932         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
38933         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
38934         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
38935
38936 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38937
38938         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38939         strnlen-sse2-no-bsf.
38940         Rename strlen-no-bsf to strlen-sse2-no-bsf.
38941         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
38942         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
38943         Add strnlen support.
38944         (USE_AS_STRNLEN): New macro.
38945         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
38946         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
38947         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
38948         * sysdeps/x86_64/wcslen.S: New file.
38949
38950 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
38951
38952         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
38953         XMM-moves are used for copying on small sizes.
38954
38955 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38956
38957         * wcsmbs/Makefile (strop-tests): Add wcschr.
38958         * wcsmbs/test-wcschr.c: New file.
38959         * string/test-strchr.c: Update.
38960         Add wcschr support.
38961         (WIDE): New macro.
38962
38963 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38964
38965         * wcsmbs/Makefile (strop-tests): Add wcslen.
38966         * wcsmbs/test-wcslen.c: New file.
38967         * string/test-strlen.c: Update.
38968         Add wcslen support.
38969         (WIDE): New macro.
38970
38971 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
38972
38973         * po/it.po: Update from translation team.
38974
38975 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38976
38977         * sysdeps/x86_64/wcscmp.S: Update.
38978         Fix wrong comparison semantics.
38979         wcscmp shall use signed comparison not unsigned.
38980         Don't use substraction to avoid overflow bug.
38981         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
38982         * wcsmbc/wcscmp.c: Likewise.
38983         * string/test-strcmp.c: Likewise.
38984         Add new tests to check cases with negative values.
38985
38986 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
38987
38988         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
38989         * sysdeps/x86_64/dla.h: ...here.  New file.
38990         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
38991         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
38992         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
38993         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
38994         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
38995         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
38996         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
38997         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
38998         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
38999
39000 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
39001
39002         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
39003         __ynl_finite aliases.
39004
39005 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
39006
39007         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
39008
39009         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
39010         define DLA_FMA.
39011         [DLA_FMA] (EMULV): Use DLA_FMA.
39012         [DLA_FMA] (MUL12): Use EMULV.
39013         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
39014         that are not needed.
39015         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
39016         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
39017         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39018         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39019         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
39020         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
39021         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
39022
39023 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
39024
39025         * math/s_nan.c: Undef __nan.
39026         * math/s_nanf.c: Undef __nanf.
39027         * math/s_nanl.c: Undef __nanl.
39028         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
39029         "math_private.h".
39030
39031 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
39032
39033         * math/s_catan.c: Add branch predictions.
39034         * math/s_catanf.c: Likewise.
39035         * math/s_catanh.c: Likewise.
39036         * math/s_catanhf.c: Likewise.
39037         * math/s_catanhl.c: Likewise.
39038         * math/s_catanl.c: Likewise.
39039         * math/s_cexp.c: Likewise.
39040         * math/s_cexpf.c: Likewise.
39041         * math/s_cexpl.c: Likewise.
39042         * math/s_clog.c: Likewise.
39043         * math/s_clog10.c: Likewise.
39044         * math/s_clog10f.c: Likewise.
39045         * math/s_clog10l.c: Likewise.
39046         * math/s_clogf.c: Likewise.
39047         * math/s_clogl.c: Likewise.
39048         * math/s_csqrt.c: Likewise.
39049         * math/s_csqrtf.c: Likewise.
39050         * math/s_csqrtl.c: Likewise.
39051         * math/s_ctanf.c: Likewise.
39052         * math/s_ctanh.c: Likewise.
39053         * math/s_ctanhf.c: Likewise.
39054         * math/s_ctanhl.c: Likewise.
39055         * math/s_ctanl.c: Likewise.
39056
39057         * math/math_private.h: Define __nan, __nanf, __nanl.
39058         * math/s_cacosh.c: Include <math_private.h>.
39059         * math/s_cacoshl.c: Likewise.
39060         * math/s_casinh.c: Likewise.
39061         * math/s_casinhf.c: Likewise.
39062         * math/s_casinhl.c: Likewise.
39063         * math/s_ccos.c: Rely entire on ccosh.
39064         * math/s_ccosf.c: Rely entire on ccoshf.
39065         * math/s_ccosl.c: Rely entirely on ccoshl.
39066         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
39067         Remove tests for FE_INVALID.
39068         * math/s_ccoshf.c: Likewise.
39069         * math/s_ccoshl.c: Likewise.
39070         * math/s_csin.c: Likewise.
39071         * math/s_csinf.c: Likewise.
39072         * math/s_csinh.c Likewise.
39073         * math/s_csinhf.c: Likewise.
39074         * math/s_csinhl.c: Likewise.
39075         * math/s_csinl.c: Likewise.
39076         * math/s_ctan.c: Likewise.
39077         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
39078         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
39079         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
39080
39081 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
39082
39083         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
39084         compilation problems.
39085
39086         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
39087         __builtin_expect.
39088
39089 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
39090
39091         * sysdeps/i386/configure.in: Test for -mfma4 option.
39092         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
39093         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
39094         COMMON_CPUID_INDEX_80000001.
39095         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
39096         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
39097         use it if FMA3 is not supported.
39098         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
39099
39100         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
39101         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
39102
39103 2011-10-20  Andreas Schwab  <schwab@redhat.com>
39104
39105         [BZ #12892]
39106         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
39107         it would create a cycle with a link time dependency.
39108
39109 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
39110
39111         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
39112         instruction.
39113         * string/Makefile (strop-tests): Add rawmemchr.
39114         * string/test-rawmemchr.c: New file.
39115
39116         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
39117         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
39118         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
39119         when compiling str{,n}casecmp and when AVX is available.  Hook up
39120         new optimized code in initializers.
39121
39122 2011-10-19  Andreas Schwab  <schwab@redhat.com>
39123
39124         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
39125         __feraiseexcept instead of feraiseexcept.
39126
39127 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
39128
39129         * math/math_private.h: Define defaults for libc_fetestexcept and
39130         libc_feupdateenv.
39131         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
39132         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
39133         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
39134         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
39135         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
39136         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
39137         libc_fetestexcept and libc_feupdateenv.
39138
39139         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
39140         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
39141         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
39142         * sysdeps/x86_64/fpu/math_private.h: Define special version of
39143         libc_feholdexcept_setround.
39144
39145         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
39146         Add s_nearbyint-c and s_nearbyintf-c.
39147         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
39148         nearbyintf inlines.
39149         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
39150         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
39151         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
39152         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
39153
39154         * math/math_private.h: Define defaults for libc_fegetround,
39155         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
39156         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
39157         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
39158         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
39159         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
39160         standard functions.
39161         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
39162         Remove comments and hacks for old compiler versions.
39163         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
39164         libc_fegetround, libc_fesetround, libc_feholdexcept, and
39165         libc_feholdexceptl.
39166
39167 2011-10-18  Andreas Schwab  <schwab@redhat.com>
39168
39169         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
39170         (__feraiseexcept_renamed): Add __NTH.
39171         (feraiseexcept): Add __NTH.  Rename local variables to fix
39172         namespace violations.
39173
39174 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
39175
39176         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
39177
39178         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
39179
39180         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
39181         recently added interfaces.
39182         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
39183
39184         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
39185         about macro parameter expansion.
39186
39187         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
39188         __NO_MATH_INLINES is defined.  Cleanups.
39189
39190         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
39191         and __floorf is target has SSE4.1.
39192         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
39193         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
39194         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
39195         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
39196
39197         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
39198         name.
39199         (floorf): Likewise.
39200
39201         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
39202
39203 2011-10-17  Andreas Schwab  <schwab@redhat.com>
39204
39205         * misc/sys/cdefs.h: Fix last change.
39206
39207         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
39208         database lookup.
39209
39210 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
39211
39212         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
39213
39214         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
39215         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39216         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
39217         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
39218         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
39219         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
39220         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
39221         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
39222         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
39223         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
39224         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
39225         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
39226         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
39227         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
39228         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
39229         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
39230         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
39231         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
39232         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
39233         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
39234         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
39235         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
39236
39237         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
39238         ceil, ceilf, floor, floorf.
39239
39240         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
39241         Perform IRELATIVE relocations last.
39242
39243         * elf/do-rel.h: Add another parameter nrelative, replacing the
39244         local variable with the same name.  Change name of the function
39245         to end in Rel or Rela (uppercase).
39246         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
39247         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
39248         elf_dynamic_do_##reloc function.
39249
39250 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
39251
39252         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
39253         is sufficient, at least on modern CPUs.
39254
39255         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
39256
39257         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
39258         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
39259
39260         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
39261         __expl_finite.
39262         * math/bits/math-finite.h: Add entries for exp.
39263         * math/e_expl.c: Add __*_finite alias.
39264         * sysdeps/i386/fpu/e_exp.S: Likewise.
39265         * sysdeps/i386/fpu/e_expf.S: Likewise.
39266         * sysdeps/i386/fpu/e_expl.c: Likewise.
39267         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
39268         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
39269         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
39270         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
39271         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
39272         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
39273         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
39274
39275         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
39276         is sufficient, at least on modern CPUs.
39277
39278         * ctype/ctype-info.c (__ctype_init): Define.
39279         * include/ctype.h (__ctype_init): Declare.
39280         (__ctype_b_loc): The variable is always initialized.
39281         (__ctype_toupper_loc): Likewise.
39282         (__ctype_tolower_loc): Likewise.
39283         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
39284         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
39285
39286 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
39287
39288         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
39289
39290         * configure.in: Also look in $cxxmachine/include for C++ system
39291         headers.
39292
39293 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39294
39295         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
39296         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
39297         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
39298         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
39299         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
39300         (USE_AS_WMEMCMP): New macro.
39301         Fixing indents.
39302         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
39303         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
39304         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
39305         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
39306         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
39307         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
39308         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
39309         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
39310         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
39311         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
39312         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
39313         (USE_AS_WMEMCMP): New macro.
39314         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
39315         * sysdeps/string/test-memcmp.c: Update.
39316         Fix simple_wmemcmp.
39317         Add new tests.
39318         * wcsmbs/wmemcmp.c: Update.
39319         (WMEMCMP): New macro.
39320         Fix overflow bug.
39321
39322 2011-10-12  Andreas Jaeger  <aj@suse.de>
39323
39324         [BZ #13268]
39325         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
39326
39327 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
39328
39329         * libio/iofwide.c (do_length): Avoid warning.
39330
39331         * ctype/ctype.h (__isctype_f): Add missing __THROW.
39332
39333 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
39334
39335         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
39336
39337         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
39338         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
39339         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
39340         * sysdeps/i386/i686/fpu/e_log.S: New file.
39341         * sysdeps/i386/i686/fpu/e_logf.S: New file.
39342         * sysdeps/i386/i686/fpu/e_logl.S: New file.
39343
39344         * ctype/ctype.h: Add support for inlined isXXX functions when
39345         compiling C++ code.
39346
39347 2011-10-14  Andreas Schwab  <schwab@redhat.com>
39348
39349         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39350
39351         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
39352
39353 2011-10-13  Roland McGrath  <roland@hack.frob.com>
39354
39355         [BZ #13291]
39356         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
39357
39358 2011-10-13  Andreas Schwab  <schwab@redhat.com>
39359
39360         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
39361         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
39362         feraiseexcept.
39363
39364         * sysdeps/x86_64/memrchr.S: Check for zero size.
39365
39366         * string/stratcliff.c: Add memrchr tests.
39367
39368 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39369
39370         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
39371         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
39372         rawmemchr-sse2 rawmemchr-sse2-bsf.
39373         * sysdeps/i386/i686/multiarch/memchr.S: New file.
39374         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
39375         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
39376         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
39377         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
39378         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
39379         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
39380         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
39381         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
39382         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
39383         * string/memrchr.c (MEMRCHR): New macro.
39384
39385 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
39386
39387         Add integration with gcc's -ffinite-math-only and optimize wrapper
39388         functions in libm.
39389         * Versions.def: Define GLIBC_2.15 version for libm.
39390         * math/Makefile (headers): Add bits/math-finite.h.
39391         * math/bits/math-finite.h: New file.
39392         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
39393         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
39394         * math/e_acoshl.c: Add __*_finite alias.
39395         * math/e_acosl.c: Likewise.
39396         * math/e_asinl.c: Likewise.
39397         * math/e_atan2l.c: Likewise.
39398         * math/e_atanhl.c: Likewise.
39399         * math/e_coshl.c: Likewise.
39400         * math/e_exp10.c: Likewise.
39401         * math/e_exp10f.c: Likewise.
39402         * math/e_exp10l.c: Likewise.
39403         * math/e_exp2l.c: Likewise.
39404         * math/e_fmodl.c: Likewise.
39405         * math/e_gammal_r.c: Likewise.
39406         * math/e_hypotl.c: Likewise.
39407         * math/e_j0l.c: Likewise.
39408         * math/e_j1l.c: Likewise.
39409         * math/e_jnl.c: Likewise.
39410         * math/e_lgammal_r.c: Likewise.
39411         * math/e_log10l.c: Likewise.
39412         * math/e_log2l.c: Likewise.
39413         * math/e_logl.c: Likewise.
39414         * math/e_powl.c: Likewise.
39415         * math/e_sinhl.c: Likewise.
39416         * math/e_sqrtl.c: Likewise.
39417         * math/e_scalb.c: Completely rewritten and optimized.
39418         * math/e_scalbf.c: Likewise.
39419         * math/e_scalbl.c: Likewise.
39420         * math/w_acos.c: Likewise.
39421         * math/w_acosf.c: Likewise.
39422         * math/w_acosl.c: Likewise.
39423         * math/w_acosh.c: Likewise.
39424         * math/w_acoshf.c: Likewise.
39425         * math/w_acoshl.c: Likewise.
39426         * math/w_asin.c: Likewise.
39427         * math/w_asinf.c: Likewise.
39428         * math/w_asinl.c: Likewise.
39429         * math/w_atan2.c: Likewise.
39430         * math/w_atan2f.c: Likewise.
39431         * math/w_atan2l.c: Likewise.
39432         * math/w_atanh.c: Likewise.
39433         * math/w_atanhf.c: Likewise.
39434         * math/w_atanhl.c: Likewise.
39435         * math/w_exp10.c: Likewise.
39436         * math/w_exp10f.c: Likewise.
39437         * math/w_exp10l.c: Likewise.
39438         * math/w_fmod.c: Likewise.
39439         * math/w_fmodf.c: Likewise.
39440         * math/w_fmodl.c: Likewise.
39441         * math/w_j0.c: Likewise.
39442         * math/w_j0f.c: Likewise.
39443         * math/w_j0l.c: Likewise.
39444         * math/w_j1.c: Likewise.
39445         * math/w_j1f.c: Likewise.
39446         * math/w_j1l.c: Likewise.
39447         * math/w_jn.c: Likewise.
39448         * math/w_jnf.c: Likewise.
39449         * math/w_log.c: Likewise.
39450         * math/w_logf.c: Likewise.
39451         * math/w_logl.c: Likewise.
39452         * math/w_log10.c: Likewise.
39453         * math/w_log10f.c: Likewise.
39454         * math/w_log10l.c: Likewise.
39455         * math/w_log2.c: Likewise.
39456         * math/w_log2f.c: Likewise.
39457         * math/w_log2l.c: Likewise.
39458         * math/w_pow.c: Likewise.
39459         * math/w_powf.c: Likewise.
39460         * math/w_powl.c: Likewise.
39461         * math/w_remainder.c: Likewise.
39462         * math/w_remainderf.c: Likewise.
39463         * math/w_remainderl.c: Likewise.
39464         * math/w_scalb.c: Likewise.
39465         * math/w_scalbf.c: Likewise.
39466         * math/w_scalbl.c: Likewise.
39467         * math/w_sqrt.c: Likewise.
39468         * math/w_sqrtf.c: Likewise.
39469         * math/w_sqrtl.c: Likewise.
39470         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
39471         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
39472         used.
39473         * math/math_private.h: Declare __kernel_standard_f.
39474         * math/w_cosh.c: Remove cruft and optimize a bit.
39475         * math/w_coshf.c: Likewise.
39476         * math/w_coshl.c: Likewise.
39477         * math/w_exp2.c: Likewise.
39478         * math/w_exp2f.c: Likewise.
39479         * math/w_exp2l.c: Likewise.
39480         * math/w_hypot.c: Likewise.
39481         * math/w_hypotf.c: Likewise.
39482         * math/w_hypotl.c: Likewise.
39483         * math/w_lgamma.c: Likewise.
39484         * math/w_lgamma_r.c: Likewise.
39485         * math/w_lgammaf.c: Likewise.
39486         * math/w_lgammaf_r.c: Likewise.
39487         * math/w_lgammal.c: Likewise.
39488         * math/w_lgammal_r.c: Likewise.
39489         * math/w_sinh.c: Likewise.
39490         * math/w_sinhf.c: Likewise.
39491         * math/w_sinhl.c: Likewise.
39492         * math/w_tgamma.c: Likewise.
39493         * math/w_tgammaf.c: Likewise.
39494         * math/w_tgammal.c: Likewise.
39495         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
39496         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39497         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
39498         Minor optimizations.  Pretty printing.  Remove cruft.
39499         * sysdeps/i386/fpu/e_acosf.S: Likewise.
39500         * sysdeps/i386/fpu/e_acosh.S: Likewise.
39501         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
39502         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
39503         * sysdeps/i386/fpu/e_acosl.c: Likewise.
39504         * sysdeps/i386/fpu/e_asin.S: Likewise.
39505         * sysdeps/i386/fpu/e_asinf.S: Likewise.
39506         * sysdeps/i386/fpu/e_atan2.S: Likewise.
39507         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
39508         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
39509         * sysdeps/i386/fpu/e_atanh.S: Likewise.
39510         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
39511         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
39512         * sysdeps/i386/fpu/e_exp10.S: Likewise.
39513         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
39514         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
39515         * sysdeps/i386/fpu/e_exp2.S: Likewise.
39516         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
39517         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
39518         * sysdeps/i386/fpu/e_fmod.S: Likewise.
39519         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
39520         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
39521         * sysdeps/i386/fpu/e_hypot.S: Likewise.
39522         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
39523         * sysdeps/i386/fpu/e_log.S: Likewise.
39524         * sysdeps/i386/fpu/e_log10.S: Likewise.
39525         * sysdeps/i386/fpu/e_log10f.S: Likewise.
39526         * sysdeps/i386/fpu/e_log10l.S: Likewise.
39527         * sysdeps/i386/fpu/e_log2.S: Likewise.
39528         * sysdeps/i386/fpu/e_log2f.S: Likewise.
39529         * sysdeps/i386/fpu/e_log2l.S: Likewise.
39530         * sysdeps/i386/fpu/e_logf.S: Likewise.
39531         * sysdeps/i386/fpu/e_logl.S: Likewise.
39532         * sysdeps/i386/fpu/e_pow.S: Likewise.
39533         * sysdeps/i386/fpu/e_powf.S: Likewise.
39534         * sysdeps/i386/fpu/e_powl.S: Likewise.
39535         * sysdeps/i386/fpu/e_remainder.S: Likewise.
39536         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
39537         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
39538         * sysdeps/i386/fpu/e_scalb.S: Likewise.
39539         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
39540         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
39541         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
39542         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
39543         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
39544         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
39545         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
39546         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
39547         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
39548         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
39549         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
39550         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
39551         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
39552         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
39553         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
39554         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
39555         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
39556         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39557         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
39558         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
39559         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39560         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
39561         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
39562         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
39563         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
39564         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
39565         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
39566         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39567         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39568         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
39569         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
39570         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
39571         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
39572         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
39573         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
39574         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
39575         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
39576         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
39577         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
39578         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
39579         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
39580         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
39581         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
39582         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
39583         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
39584         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
39585         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
39586         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
39587         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
39588         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39589         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
39590         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
39591         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
39592         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
39593         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
39594         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
39595         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
39596         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
39597         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
39598         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
39599         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
39600         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
39601         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
39602         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
39603         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
39604         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
39605         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
39606         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39607         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39608         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
39609         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
39610         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
39611         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
39612         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
39613         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
39614         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
39615         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
39616         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
39617         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
39618         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
39619         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
39620         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
39621         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
39622         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39623         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
39624         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
39625         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
39626         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
39627         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39628         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
39629         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
39630         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
39631         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
39632         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
39633         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
39634         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39635         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
39636         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
39637         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
39638         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
39639         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
39640         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
39641         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
39642         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
39643         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
39644         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
39645         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
39646         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
39647         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
39648         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
39649         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
39650         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
39651         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
39652         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
39653         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
39654         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
39655         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
39656         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
39657         (__isnanf): Likewise.
39658         (__isinf_ns): Likewise.
39659         (__isinf_nsf): Likewise.
39660         (__finite): Likewise.
39661         (__finitef): Likewise.
39662         (__ieee754_sqrt): Define as macro.
39663         (__ieee754_sqrtf): Define as macro.
39664         (__ieee754_sqrtl): Define as macro.
39665         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
39666         inlined copy.
39667         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
39668         __FINITE_MATH_ONLY__ consistent.
39669         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
39670
39671 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
39672
39673         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
39674         of rawmemchr.
39675
39676         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
39677
39678 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
39679
39680         * po/ja.po: Update from translation team.
39681
39682 2011-10-08  Roland McGrath  <roland@hack.frob.com>
39683
39684         * locale/programs/locarchive.c (prepare_address_space): New function.
39685         (create_archive, enlarge_archive, open_archive): Use it.
39686
39687         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
39688         inside [SHARED], where it is used.
39689
39690         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
39691
39692         * nss/getent.c (netgroup_keys): Remove unused variable.
39693         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
39694
39695 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
39696
39697         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
39698         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
39699         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
39700         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
39701         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
39702         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
39703         * math/Makefile (libm-calls): Add s_isinf_ns.
39704         * math/divtc3.c: Use __isinf_nsl instead of isinf.
39705         * math/multc3.c: Likewise.
39706         * math/s_casin.c: Likewise.
39707         * math/s_casinf.c: Likewise.
39708         * math/s_casinl.c: Likewise.
39709         * math/s_ccos.c: Likewise.
39710         * math/s_ccosf.c: Likewise.
39711         * math/s_ccosl.c: Likewise.
39712         * math/s_ctan.c: Likewise.
39713         * math/s_ctanf.c: Likewise.
39714         * math/s_ctanh.c: Likewise.
39715         * math/s_ctanhf.c: Likewise.
39716         * math/s_ctanhl.c: Likewise.
39717         * math/s_ctanl.c: Likewise.
39718         * math/w_fmod.c: Likewise.
39719         * math/w_fmodf.c: Likewise.
39720         * math/w_fmodl.c: Likewise.
39721         * math/w_remainder.c: Likewise.
39722         * math/w_remainderf.c: Likewise.
39723         * math/w_remainderl.c: Likewise.
39724         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
39725         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
39726         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
39727         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
39728         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
39729         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
39730         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
39731         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
39732
39733         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
39734         of the number.
39735         * stdio-common/printf_fphex.c: Likewise.
39736         * stdio-common/printf_size.c: Likewise.
39737
39738         * math/e_exp10.c: Include math_private.h using <...> not "...".
39739         * math/e_exp10f.c: Likewise.
39740         * math/e_exp10l.c: Likewise.
39741         * math/e_exp2l.c: Likewise.
39742         * math/e_j0l.c: Likewise.
39743         * math/e_j1l.c: Likewise.
39744         * math/e_jnl.c: Likewise.
39745         * math/e_lgammal_r.c: Likewise.
39746         * math/e_rem_pio2l.c: Likewise.
39747         * math/e_scalb.c: Likewise.
39748         * math/e_scalbf.c: Likewise.
39749         * math/e_scalbl.c: Likewise.
39750         * math/k_cosl.c: Likewise.
39751         * math/k_sinl.c: Likewise.
39752         * math/k_tanl.c: Likewise.
39753         * math/s_cacoshf.c: Likewise.
39754         * math/s_catan.c: Likewise.
39755         * math/s_catanf.c: Likewise.
39756         * math/s_catanh.c: Likewise.
39757         * math/s_catanhf.c: Likewise.
39758         * math/s_catanhl.c: Likewise.
39759         * math/s_catanl.c: Likewise.
39760         * math/s_ccosh.c: Likewise.
39761         * math/s_ccoshf.c: Likewise.
39762         * math/s_ccoshl.c: Likewise.
39763         * math/s_cexp.c: Likewise.
39764         * math/s_cexpf.c: Likewise.
39765         * math/s_cexpl.c: Likewise.
39766         * math/s_clog.c: Likewise.
39767         * math/s_clog10.c: Likewise.
39768         * math/s_clog10f.c: Likewise.
39769         * math/s_clog10l.c: Likewise.
39770         * math/s_clogf.c: Likewise.
39771         * math/s_clogl.c: Likewise.
39772         * math/s_csin.c: Likewise.
39773         * math/s_csinf.c: Likewise.
39774         * math/s_csinh.c: Likewise.
39775         * math/s_csinhf.c: Likewise.
39776         * math/s_csinhl.c: Likewise.
39777         * math/s_csinl.c: Likewise.
39778         * math/s_csqrt.c: Likewise.
39779         * math/s_csqrtf.c: Likewise.
39780         * math/s_csqrtl.c: Likewise.
39781         * math/s_ctan.c: Likewise.
39782         * math/s_ctanf.c: Likewise.
39783         * math/s_ctanh.c: Likewise.
39784         * math/s_ctanhf.c: Likewise.
39785         * math/s_ctanhl.c: Likewise.
39786         * math/s_ctanl.c: Likewise.
39787         * math/s_ldexp.c: Likewise.
39788         * math/s_ldexpf.c: Likewise.
39789         * math/s_ldexpl.c: Likewise.
39790         * math/s_significand.c: Likewise.
39791         * math/s_significandf.c: Likewise.
39792         * math/s_significandl.c: Likewise.
39793         * math/w_acos.c: Likewise.
39794         * math/w_acosf.c: Likewise.
39795         * math/w_acosh.c: Likewise.
39796         * math/w_acoshf.c: Likewise.
39797         * math/w_acoshl.c: Likewise.
39798         * math/w_acosl.c: Likewise.
39799         * math/w_asin.c: Likewise.
39800         * math/w_asinf.c: Likewise.
39801         * math/w_asinl.c: Likewise.
39802         * math/w_atan2.c: Likewise.
39803         * math/w_atan2f.c: Likewise.
39804         * math/w_atan2l.c: Likewise.
39805         * math/w_atanh.c: Likewise.
39806         * math/w_atanhf.c: Likewise.
39807         * math/w_atanhl.c: Likewise.
39808         * math/w_cosh.c: Likewise.
39809         * math/w_coshf.c: Likewise.
39810         * math/w_coshl.c: Likewise.
39811         * math/w_dremf.c: Likewise.
39812         * math/w_exp10.c: Likewise.
39813         * math/w_exp10f.c: Likewise.
39814         * math/w_exp10l.c: Likewise.
39815         * math/w_exp2.c: Likewise.
39816         * math/w_exp2f.c: Likewise.
39817         * math/w_fmod.c: Likewise.
39818         * math/w_fmodf.c: Likewise.
39819         * math/w_fmodl.c: Likewise.
39820         * math/w_hypot.c: Likewise.
39821         * math/w_hypotf.c: Likewise.
39822         * math/w_hypotl.c: Likewise.
39823         * math/w_j0.c: Likewise.
39824         * math/w_j0f.c: Likewise.
39825         * math/w_j0l.c: Likewise.
39826         * math/w_j1.c: Likewise.
39827         * math/w_j1f.c: Likewise.
39828         * math/w_j1l.c: Likewise.
39829         * math/w_jn.c: Likewise.
39830         * math/w_jnf.c: Likewise.
39831         * math/w_jnl.c: Likewise.
39832         * math/w_lgamma.c: Likewise.
39833         * math/w_lgamma_r.c: Likewise.
39834         * math/w_lgammaf.c: Likewise.
39835         * math/w_lgammaf_r.c: Likewise.
39836         * math/w_lgammal.c: Likewise.
39837         * math/w_lgammal_r.c: Likewise.
39838         * math/w_log.c: Likewise.
39839         * math/w_log10.c: Likewise.
39840         * math/w_log10f.c: Likewise.
39841         * math/w_log10l.c: Likewise.
39842         * math/w_log2.c: Likewise.
39843         * math/w_log2f.c: Likewise.
39844         * math/w_log2l.c: Likewise.
39845         * math/w_logf.c: Likewise.
39846         * math/w_logl.c: Likewise.
39847         * math/w_pow.c: Likewise.
39848         * math/w_powf.c: Likewise.
39849         * math/w_powl.c: Likewise.
39850         * math/w_remainder.c: Likewise.
39851         * math/w_remainderf.c: Likewise.
39852         * math/w_remainderl.c: Likewise.
39853         * math/w_scalb.c: Likewise.
39854         * math/w_scalbf.c: Likewise.
39855         * math/w_scalbl.c: Likewise.
39856         * math/w_sinh.c: Likewise.
39857         * math/w_sinhf.c: Likewise.
39858         * math/w_sinhl.c: Likewise.
39859         * math/w_sqrt.c: Likewise.
39860         * math/w_sqrtf.c: Likewise.
39861         * math/w_sqrtl.c: Likewise.
39862         * math/w_tgamma.c: Likewise.
39863         * math/w_tgammaf.c: Likewise.
39864         * math/w_tgammal.c: Likewise.
39865
39866         * po/ja.po: Update from translation team.
39867
39868 2011-09-29  Andreas Jaeger  <aj@suse.de>
39869
39870         [BZ #13179]
39871         * sunrpc/netname.c (netname2host): Fix logic.
39872
39873         [BZ #6779]
39874         [BZ #6783]
39875         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
39876         correctly.
39877         * math/w_remainder.c (__remainder): Likewise.
39878         * math/w_remainderf.c (__remainderf): Likewise.
39879         * math/libm-test.inc (remainder_test): Add test cases.
39880
39881 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39882
39883         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
39884         sdiv_qrnnd.
39885
39886 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
39887
39888         * string/test-memcmp.c: Avoid unncessary #defines.
39889         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
39890
39891 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39892
39893         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
39894         Use new sse2 version for core i3 - i7 as it's faster
39895         than sse42 version.
39896         (bit_Prefer_PMINUB_for_stringop): New.
39897         * sysdeps/x86_64/rawmemchr.S: Update.
39898         Replace with faster SSE2 version.
39899         * sysdeps/x86_64/memrchr.S: New file.
39900         * sysdeps/x86_64/memchr.S: Update.
39901         Replace with faster SSE2 version.
39902
39903 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
39904
39905         * elf/dl-load.c (lose): Add cast to avoid warning.
39906
39907 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
39908
39909         * po/ca.po: Update from translation team.
39910
39911         * inet/getnetgrent_r.c: Hook up nscd.
39912         * nscd/Makefile (routines): Add nscd_netgroup.
39913         (nscd-modules): Add netgroupcache.
39914         (CFLAGS-netgroupcache.c): Define.
39915         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
39916         (cache_search): Add const to second parameter.
39917         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
39918         INNETGR.
39919         (dbs): Add netgrdb entry.
39920         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
39921         (verify_persistent_db): Handle netgrdb.
39922         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
39923         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
39924         GETFDNETGR.
39925         (netgroup_response_header): Define.
39926         (innetgroup_response_header): Define.
39927         (datahead): Add netgroup_response_header and innetgroup_response_header
39928         elements.
39929         * nscd/nscd.conf: Add entries for netgroup cache.
39930         * nscd/nscd.h (dbtype): Add netgrdb.
39931         (_PATH_NSCD_NETGROUP_DB): Define.
39932         (netgroup_iov_disabled): Declare.
39933         (xmalloc, xcalloc, xrealloc): Move declarations here.
39934         (cache_search): Adjust prototype.
39935         Add netgroup-related prototypes.
39936         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
39937         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
39938         (__nscd_innetgr): Declare.
39939         * nscd/selinux.c (perms): Use access_vector_t as element type and
39940         add netgroup-related initializers.
39941         * nscd/netgroupcache.c: New file.
39942         * nscd/nscd_netgroup.c: New file.
39943         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
39944         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
39945         For four parameters use innetgr.
39946         * nss/nss_files/files-init.c: Add definition and callback for netgr.
39947         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
39948         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
39949         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
39950
39951         * nscd/connections.c (register_traced_file): Don't register file
39952         for disabled databases.
39953
39954 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
39955
39956         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
39957
39958         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
39959         from tree and freeing node.
39960
39961 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
39962
39963         * nss/nsswitch.c (__nss_database_lookup): Handle
39964         nss_parse_service_list out of memory case.
39965
39966 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
39967
39968         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
39969         out of memory case.
39970
39971 2011-10-04  Andreas Schwab  <schwab@redhat.com>
39972
39973         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
39974         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
39975         pass it down.
39976         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
39977         elf_machine_rela, elf_machine_lazy_rel.
39978         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
39979         (ELF_DYNAMIC_DO_REL): Likewise.
39980         (ELF_DYNAMIC_DO_RELA): Likewise.
39981         (ELF_DYNAMIC_RELOCATE): Likewise.
39982         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
39983         to ELF_DYNAMIC_DO_REL.
39984         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
39985         (dl_main): In trace mode always set __RTLD_NOIFUNC.
39986         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
39987         elf_machine_rela.
39988         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
39989         skip_ifunc, don't call ifunc function if non-zero.
39990         (elf_machine_rela): Likewise.
39991         (elf_machine_lazy_rel): Likewise.
39992         (elf_machine_lazy_rela): Likewise.
39993         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
39994         (elf_machine_lazy_rel): Likewise.
39995         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
39996         Likewise.
39997         (elf_machine_lazy_rel): Likewise.
39998         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
39999         Likewise.
40000         (elf_machine_lazy_rel): Likewise.
40001         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
40002         (elf_machine_lazy_rel): Likewise.
40003         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
40004         (elf_machine_lazy_rel): Likewise.
40005         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
40006         (elf_machine_lazy_rel): Likewise.
40007         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
40008         (elf_machine_lazy_rel): Likewise.
40009         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
40010         (elf_machine_lazy_rel): Likewise.
40011         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
40012         (elf_machine_lazy_rel): Likewise.
40013
40014 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
40015
40016         * nss/nss_files/files-init.c (_nss_files_init): Use static
40017         initialization for all the *_traced_file variables.
40018
40019 2011-09-28  Andreas Schwab  <schwab@redhat.com>
40020
40021         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
40022
40023 2011-09-27  Roland McGrath  <roland@hack.frob.com>
40024
40025         [BZ #13226]
40026         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
40027
40028 2011-09-27  Andreas Schwab  <schwab@redhat.com>
40029
40030         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
40031         Reread the line before reparsing it.
40032
40033 2011-09-26  Andreas Schwab  <schwab@redhat.com>
40034
40035         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
40036
40037 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
40038             Maxim Kuvyrkov  <maxim@codesourcery.com>
40039             Joseph Myers  <joseph@codesourcery.com>
40040
40041         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
40042         if needed for __stack_chk_guard.
40043
40044 2011-09-19  Roland McGrath  <roland@hack.frob.com>
40045
40046         * sysdeps/posix/spawni.c (script_execute): Always define it.
40047         It will be optimized away if unused.
40048         (maybe_script_execute): New function.
40049         (__spawni): Call it.
40050
40051         * Makerules: Don't include tls.make.
40052         (config-tls): Always set to thread.
40053         * tls.make.c: File removed.
40054
40055 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
40056
40057         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
40058         * config.make.in (CPPFLAGS-config): New substituted variable.
40059
40060 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
40061
40062         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
40063
40064         [BZ #13192]
40065         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
40066         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
40067
40068 2011-09-15  Roland McGrath  <roland@hack.frob.com>
40069
40070         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
40071         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
40072         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
40073         (CALL_FAIL): Likewise.
40074         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
40075         (CALL_FAIL): Macro removed.
40076         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
40077
40078 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
40079
40080         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
40081         for __FINITE_MATH_ONLY__ == 1.
40082
40083 2011-09-15  Andreas Schwab  <schwab@redhat.com>
40084
40085         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
40086         __ieee754_sqrt instead of sqrt.
40087         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
40088         __ieee754_sqrtf instead of sqrtf.
40089         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
40090         __floorf instead of floorf.
40091         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
40092         __floorf, __truncf instead of floorf, truncf.
40093
40094 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
40095
40096         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
40097
40098         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
40099         __extern_always_inline.
40100         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
40101         32-bit.
40102
40103 2011-09-14  Andreas Schwab  <schwab@redhat.com>
40104
40105         * elf/rtld.c (dl_main): Also relocate in dependency order when
40106         doing symbol dependency testing.
40107
40108 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
40109
40110         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
40111         Always define `refsym'.
40112
40113 2011-09-13  Andreas Schwab  <schwab@redhat.com>
40114
40115         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
40116         (__FD_ELT): Renamed from __FDELT.
40117         * misc/bits/select2.h (__FD_ELT): Likewise.
40118         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
40119         __FD_MASK instead of __FDELT, __FDMASK.
40120         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
40121         Likewise.
40122         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
40123         Likewise.
40124
40125         * elf/Makefile (gen-ldd): Fix pattern.
40126
40127         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
40128         (init_tls): Likewise.
40129
40130 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
40131
40132         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
40133
40134 2011-09-12  Andreas Schwab  <schwab@redhat.com>
40135
40136         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
40137         `struct cmsghdr *' instead of `void *'.
40138         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
40139         Likewise.
40140
40141 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
40142
40143         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
40144         if non-absolute.
40145         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
40146         ldd_rewrite_script.
40147
40148 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
40149
40150         * configure.in: Remove --with-tls option.
40151         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
40152         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
40153         out in case it is missing.
40154         * sysdeps/ia64/elf/configure.in: Likewise.
40155         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
40156         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
40157         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
40158         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
40159         * sysdeps/sh/elf/configure.in: Likewise.
40160         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
40161         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
40162         * sysdeps/x86_64/elf/configure.in: Likewise.
40163         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
40164         * sysdeps/mach/hurd/tls.h: Likewise.
40165
40166         [BZ #13067]
40167         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
40168
40169         [BZ #13090]
40170         * configure.in: Fix use of AC_INIT.
40171
40172         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
40173
40174 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
40175
40176         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
40177         __set_errno.
40178         * malloc/hooks.c: Likewise.
40179
40180         [BZ #11929]
40181         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
40182         variables statically.
40183         (narenas): Initialize.
40184         (list_lock): Initialize.
40185         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
40186         initializtion of main_arena and list_lock.  Small cleanups.
40187         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
40188         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
40189         Add initializers to main_arena and mp_.
40190         (malloc_state): Remove pagesize member.  Change all users to use
40191         GLRO(dl_pagesize).
40192
40193         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
40194         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
40195         is always initialized.
40196
40197         * malloc/malloc.c: Removed unused configurations and dead code.
40198         * malloc/arena.c: Likewise.
40199         * malloc/hooks.c: Likewise.
40200         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
40201
40202         * include/tls.h: Removed.  USE___THREAD must always be defined.
40203         * bits/libc-tsd.h: Don't handle !USE___THREAD.
40204         * elf/dl-libc.c: Likewise.
40205         * elf/dl-tsd.c: Likewise.
40206         * include/errno.h: Likewise.
40207         * include/netdb.h: Likewise.
40208         * include/resolv.h: Likewise.
40209         * inet/herrno-loc.c: Likewise.
40210         * inet/herrno.c: Likewise.
40211         * malloc/arena.c: Likewise.
40212         * malloc/hooks.c: Likewise.
40213         * malloc/malloc.c: Likewise.
40214         * resolv/res-state.c: Likewise.
40215         * resolv/res_libc.c: Likewise.
40216         * sysdeps/i386/dl-machine.h: Likewise.
40217         * sysdeps/ia64/dl-machine.h: Likewise.
40218         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
40219         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
40220         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
40221         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
40222         * sysdeps/sh/dl-machine.h: Likewise.
40223         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
40224         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
40225         * sysdeps/unix/i386/sysdep.S: Likewise.
40226         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
40227         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
40228         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
40229         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
40230         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
40231         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
40232         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
40233         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
40234         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
40235         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
40236         * sysdeps/unix/x86_64/sysdep.S: Likewise.
40237         * sysdeps/x86_64/dl-machine.h: Likewise.
40238         * tls.make.c: Likewise.
40239
40240         * configure.in: Remove --with-__thread option.  Make tests for
40241         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
40242         tls_model attribute fail if no support is available.  Remove
40243         USE_IN_LIBIO.
40244         * Makeconfig: Adjust for dropped configure option.  All features are
40245         now mandatory.
40246         * Makerules: Likewise.
40247         * Versions.def: Likewise.
40248         * argp/argp-fmtstream.c: Likewise.
40249         * argp/argp-fmtstream.h: Likewise.
40250         * argp/argp-help.c: Likewise.
40251         * assert/assert.c: Likewise.
40252         * config.h.in: Likewise.
40253         * config.make.in: Likewise.
40254         * configure: Likewise.
40255         * configure.in: Likewise.
40256         * csu/Versions: Likewise.
40257         * csu/init.c: Likewise.
40258         * elf/tst-audit2.c: Likewise.
40259         * elf/tst-tls10.c: Likewise.
40260         * elf/tst-tls10.h: Likewise.
40261         * elf/tst-tls11.c: Likewise.
40262         * elf/tst-tls12.c: Likewise.
40263         * elf/tst-tls14.c: Likewise.
40264         * elf/tst-tlsmod11.c: Likewise.
40265         * elf/tst-tlsmod12.c: Likewise.
40266         * elf/tst-tlsmod13.c: Likewise.
40267         * elf/tst-tlsmod13a.c: Likewise.
40268         * elf/tst-tlsmod14a.c: Likewise.
40269         * elf/tst-tlsmod15b.c: Likewise.
40270         * elf/tst-tlsmod16a.c: Likewise.
40271         * elf/tst-tlsmod16b.c: Likewise.
40272         * elf/tst-tlsmod7.c: Likewise.
40273         * elf/tst-tlsmod8.c: Likewise.
40274         * elf/tst-tlsmod9.c: Likewise.
40275         * gmon/gmon.c: Likewise.
40276         * grp/fgetgrent_r.c: Likewise.
40277         * grp/putgrent.c: Likewise.
40278         * hurd/fopenport.c: Likewise.
40279         * include/libc-symbols.h: Likewise.
40280         * include/tls.h: Likewise.
40281         * intl/gettextP.h: Likewise.
40282         * intl/loadinfo.h: Likewise.
40283         * locale/global-locale.c: Likewise.
40284         * locale/localeinfo.h: Likewise.
40285         * mach/devstream.c: Likewise.
40286         * malloc/arena.c: Likewise.
40287         * malloc/set-freeres.c: Likewise.
40288         * misc/err.c: Likewise.
40289         * misc/getttyent.c: Likewise.
40290         * misc/mntent_r.c: Likewise.
40291         * posix/getopt.c: Likewise.
40292         * posix/wordexp.c: Likewise.
40293         * pwd/fgetpwent_r.c: Likewise.
40294         * resolv/Versions: Likewise.
40295         * resolv/res_hconf.c: Likewise.
40296         * shadow/fgetspent_r.c: Likewise.
40297         * shadow/putspent.c: Likewise.
40298         * stdio-common/printf_fphex.c: Likewise.
40299         * stdio-common/tmpfile.c: Likewise.
40300         * stdlib/abort.c: Likewise.
40301         * stdlib/fmtmsg.c: Likewise.
40302         * sunrpc/auth_unix.c: Likewise.
40303         * sunrpc/clnt_perr.c: Likewise.
40304         * sunrpc/clnt_tcp.c: Likewise.
40305         * sunrpc/clnt_udp.c: Likewise.
40306         * sunrpc/clnt_unix.c: Likewise.
40307         * sunrpc/openchild.c: Likewise.
40308         * sunrpc/svc_simple.c: Likewise.
40309         * sunrpc/svc_tcp.c: Likewise.
40310         * sunrpc/svc_udp.c: Likewise.
40311         * sunrpc/svc_unix.c: Likewise.
40312         * sunrpc/xdr.c: Likewise.
40313         * sunrpc/xdr_array.c: Likewise.
40314         * sunrpc/xdr_rec.c: Likewise.
40315         * sunrpc/xdr_ref.c: Likewise.
40316         * sunrpc/xdr_stdio.c: Likewise.
40317
40318 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
40319
40320         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
40321
40322 2011-07-03  Andreas Jaeger  <aj@suse.de>
40323
40324         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
40325         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
40326         regenerate with gen-libm-tests.pl.
40327
40328 2010-05-12  Petr Baudis  <pasky@suse.cz>
40329
40330         [BZ #11589]
40331         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
40332         around j0() zero points by switching to j1().
40333         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
40334         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
40335         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
40336         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
40337
40338 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
40339
40340         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
40341         instead of 0.
40342         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
40343         instead of 0.
40344         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
40345         Patch in part by Pavel Roskin <proski@gnu.org>.
40346
40347         [BZ #13138]
40348         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
40349         realloc.
40350         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
40351         Free memory block if necessary.
40352
40353         [BZ #12847]
40354         * libio/genops.c (INTDEF): For string streams the _lock pointer can
40355         be NULL.  Don't lock in this case.
40356
40357 2011-09-09  Roland McGrath  <roland@hack.frob.com>
40358
40359         * elf/elf.h (ELFOSABI_GNU): New macro.
40360         (ELFOSABI_LINUX): Define to that.
40361
40362 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
40363
40364         * string/strncat.c (strncat): Undef the symbol in case it has been
40365         defined in bits/string.h.
40366
40367 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
40368
40369         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
40370
40371         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
40372         link map.
40373
40374 2011-08-17  Andreas Jaeger  <aj@suse.de>
40375
40376         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
40377
40378 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
40379             Ian Lance Taylor  <iant@google.com>
40380
40381         * math/libm-test.inc (lround_test): New testcase.
40382         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
40383
40384 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
40385
40386         * Makefile: Remove support for automatic cvs check-ins.
40387         * Makerules: Likewise.
40388         * config.make.in: Likewise.
40389         * configure.in: Likewise.
40390         * intl/Makefile: Likewise.
40391         * locale/Makefile: Likewise.
40392         * po/Makefile: Likewise.
40393         * posix/Makefile: Likewise.
40394         * sysdeps/gnu/Makefile: Likewise.
40395         * sysdeps/mach/hurd/Makefile: Likewise.
40396         * sysdeps/sparc/sparc32/Makefile: Likewise.
40397
40398         [BZ #13118]
40399         * posix/Makefile (bug-regex32-ENV): Define.
40400         Patch by John Stanley <jpsinthemix@verizon.net>.
40401
40402         * misc/Makefile (headers): Add bits/select2.h.
40403         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
40404         * misc/bits/select2.h: New file.
40405         * include/bits/select2.h: New file.
40406         * debug/Makefile (routines): Add fdelt_chk.
40407         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
40408         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
40409         FD_ISSET.
40410         * debug/fdelt_chk.c: New file.
40411
40412         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
40413         * wcsmbs/test-wmemcmp.c: Likewise.
40414         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
40415         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
40416
40417 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40418
40419         * string/Makefile (strop-tests): Add memcmp.
40420         * string/test-wmemcmp.c: New file.
40421         * string/test-memcmp.c: Add wmemcmp support.
40422
40423 2011-09-08  Roland McGrath  <roland@hack.frob.com>
40424
40425         [BZ #13153]
40426         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
40427         2011-07-19 change.
40428
40429         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
40430         garbage value in a __mach_port_mod_refs call in the cases of the
40431         task-self and thread-self ports.
40432
40433 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40434
40435         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
40436
40437 2011-09-08  Andreas Schwab  <schwab@redhat.com>
40438
40439         * elf/dl-load.c (lose): Check for non-null L.
40440
40441 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
40442
40443         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
40444
40445         * elf/dl-libc.c (dlerror_run): Pass back error code from
40446         dl_catch_error.
40447
40448         [BZ #13123]
40449         * elf/dl-load.c (lose): Free l_origin if it is valid.
40450
40451         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
40452         names.
40453         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
40454         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
40455         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
40456         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
40457         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
40458         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
40459
40460 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40461
40462         * sysdeps/powerpc/fpu/e_hypot.c: New file.
40463         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
40464         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
40465         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
40466         * sysdeps/powerpc/fpu/k_cosf.c: New file.
40467         * sysdeps/powerpc/fpu/k_sinf.c: New file.
40468         * sysdeps/powerpc/fpu/s_cosf.c: New file.
40469         * sysdeps/powerpc/fpu/s_sinf.c: New file.
40470         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
40471         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
40472
40473 2011-08-15  Alan Modra  <amodra@gmail.com>
40474
40475         [BZ #13092]
40476         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
40477         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
40478         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
40479         ppc_mcount to static-only-routines.
40480         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
40481         __mcount_internal.
40482         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
40483         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
40484
40485 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
40486
40487         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
40488         for finite and infinity parameters.
40489
40490 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
40491
40492         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
40493         and add nop instructions for throughput optimization.
40494         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
40495
40496 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
40497
40498         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
40499         aligned copy for power7 with vector-scalar instructions.
40500         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
40501
40502 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
40503
40504         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
40505         AVX check.
40506
40507 2011-09-07  Andreas Schwab  <schwab@redhat.com>
40508
40509         [BZ #13144]
40510         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
40511         last change.
40512
40513 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
40514
40515         * sysdeps/unix/sysv/linux/x86_64/init-first.c
40516         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
40517         syscall wrapper around clock_gettime in __vdso_clock_gettime.
40518         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
40519         clock_gettime.
40520
40521 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
40522
40523         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
40524         Forgot to demangle the pointer.
40525
40526         * sysdeps/i386/sysdep.h: Define atom_text_section.
40527         * sysdeps/x86_64/sysdep.h: Likewise.
40528         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
40529         section with atom_text_section.
40530         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
40531         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
40532         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
40533         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
40534         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
40535
40536         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
40537         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
40538         already be defined.  Change to take two parameters and don't assign
40539         result to variable.  Adjust all users.
40540         Define INTERNAL_GETTIME if not already defined.
40541         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
40542         call.
40543         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
40544         HAVE_CLOCK_GETTIME_VSYSCALL.
40545         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
40546
40547         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
40548         gettimeofday vsyscall, just use time.
40549
40550 2011-09-06  Andreas Schwab  <schwab@redhat.com>
40551
40552         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
40553         <errno.h>.
40554
40555 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
40556
40557         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
40558         syscall on x86-64.
40559         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
40560         syscall.
40561         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
40562         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
40563         syscall if possible.
40564
40565 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
40566
40567         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
40568         e_ident.  Don't pass to find_mapsXX.
40569         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
40570
40571 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
40572
40573         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
40574         strchr-sse2-no-bsf strrchr-sse2-no-bsf
40575         * sysdeps/x86_64/multiarch/strchr.S: Update.
40576         Check bit_slow_BSF bit.
40577         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
40578         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
40579         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
40580
40581 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
40582
40583         [BZ #13134]
40584         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
40585         before glibc 2.15.
40586         (tryshell): Define.
40587         (__spawni): Change last parameter to be flag.  Test
40588         SPAWN_XFLAGS_USE_PATH flag to use path or not.
40589         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
40590         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
40591         * posix/spawni.c: Likewise.
40592         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
40593         * posix/spawnp.c: Likewise.  Change normal version to use
40594         SPAWN_XFLAGS_USE_PATH.
40595         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
40596         SPAWN_XFLAGS_TRY_SHELL.
40597
40598         [BZ #13150]
40599         * posix/glob.h: Remove gcc 1.x support.
40600
40601         [BZ #13068]
40602         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
40603
40604 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
40605
40606         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
40607         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
40608         strrchr-sse2-bsf
40609         * sysdeps/i386/i686/multiarch/strchr.S: New file.
40610         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
40611         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
40612         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
40613         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
40614         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
40615
40616 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40617
40618         * sysdeps/x86_64/wcscmp.S: New file.
40619
40620         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
40621         wcscmp-c wcscmp-sse2
40622         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
40623         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
40624         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
40625         * wcsmbs/wcscmp.c: Allow renaming.
40626
40627 2011-09-05  David S. Miller  <davem@davemloft.net>
40628
40629         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
40630         stack slot, rather than the struct return pointer slot.
40631         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
40632         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
40633         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
40634         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
40635
40636 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
40637
40638         * po/ja.po: Update from translation team.
40639
40640         [BZ #13144]
40641         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
40642         kernel in 64-bit binaries.
40643
40644 2011-09-01  David S. Miller  <davem@davemloft.net>
40645
40646         * elf/elf.h (HWCAP_SPARC_*): Move to..
40647         * sysdeps/sparc/sysdep.h: this new file and add new values.
40648         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
40649         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
40650         _DL_HWCAP_COUNT to 24.
40651         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
40652         entries.
40653         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
40654         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
40655         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
40656         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
40657         instead of magic constants.
40658         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
40659
40660 2011-08-31  David S. Miller  <davem@davemloft.net>
40661
40662         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
40663         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
40664         Reimplement to do errno handling inline.
40665         (SYSCALL_ERROR_HANDLER): New macro.
40666         (__SYSCALL_STRING): Do not do errno handling in asm.
40667         (__CLONE_SYSCALL_STRING): Delete.
40668         (__INTERNAL_SYSCALL_STRING): Delete.
40669         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
40670         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
40671         (PSEUDO): Reimplement to do errno handling inline.
40672         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
40673         (SYSCALL_ERROR_HANDLER): New macro.
40674         (__SYSCALL_STRING): Do not do errno handling in asm.
40675         (__CLONE_SYSCALL_STRING): Delete.
40676         (__INTERNAL_SYSCALL_STRING): Delete.
40677         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
40678         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
40679         i386.
40680         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
40681         (inline_syscall*): Add 'err' argument.
40682         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
40683         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
40684         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
40685         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
40686
40687         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
40688         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
40689
40690 2011-08-30  Andreas Schwab  <schwab@redhat.com>
40691
40692         * elf/rtld.c (dl_main): Relocate objects in dependency order.
40693
40694 2011-08-29  Jiri Olsa <jolsa@redhat.com>
40695
40696         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
40697         directive.
40698
40699 2011-08-24  David S. Miller  <davem@davemloft.net>
40700
40701         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
40702
40703 2011-08-24  Andreas Schwab  <schwab@redhat.com>
40704
40705         * elf/Makefile: Add rules to build and run unload8 test.
40706         * elf/unload8.c: New file.
40707         * elf/unload8mod1.c: New file.
40708         * elf/unload8mod1x.c: New file.
40709         * elf/unload8mod2.c: New file.
40710         * elf/unload8mod3.c: New file.
40711
40712         * elf/dl-close.c (_dl_close_worker): Reset private search list if
40713         it wasn't used.
40714
40715 2011-08-23  David S. Miller  <davem@davemloft.net>
40716
40717         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
40718         subtract stack bias.
40719         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
40720         %sp not %fp in calculations.
40721         (_JMPBUF_UNWINDS_ADJ): Likewise.
40722
40723         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
40724         (aio_suspend): Call it to force an exception region around the
40725         AIO_MISC_WAIT() invocation.
40726
40727 2011-08-23  Andreas Schwab  <schwab@redhat.com>
40728
40729         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
40730         backslash.
40731
40732 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
40733
40734         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
40735         protection macro.
40736         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
40737         and <dl-machine.h>.
40738         (Elf64_FuncDesc): Remove.
40739
40740 2011-08-22  David S. Miller  <davem@davemloft.net>
40741
40742         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
40743         sigaltstack check, add missing cfi directives.
40744         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
40745         missing cfi directives, and sigaltstack handling.
40746
40747 2011-08-16  Andreas Schwab  <schwab@redhat.com>
40748
40749         [BZ #11724]
40750         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
40751         object is seen twice.
40752         * elf/dl-fini.c (_dl_sort_fini): Likewise.
40753
40754         * elf/Makefile (distribute): Add tst-initorder2.c.
40755         (tests): Add tst-initorder2.
40756         (modules-names): Add tst-initorder2a tst-initorder2b
40757         tst-initorder2c tst-initorder2d.  Add rules to build them.
40758         ($(objpfx)tst-initorder2.out): New rule.
40759         * elf/tst-initorder2.c: New file.
40760         * elf/tst-initorder2.exp: New file.
40761
40762 2011-08-22  Andreas Schwab  <schwab@redhat.com>
40763
40764         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
40765
40766         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
40767         dependencies back to end of function.
40768
40769         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
40770         $(elfobjdir)/ld.so.
40771
40772 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
40773
40774         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
40775         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
40776         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
40777         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
40778         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
40779         of __vdso_gettimeofday.
40780         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
40781         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
40782         attribute_hidden.
40783         (_libc_vdso_platform_setup): Remove initialization of
40784         __vdso_gettimeofday and __vdso_time.
40785
40786 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
40787
40788         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
40789         and fgetc_unlocked.
40790         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
40791         getc_unlocked.
40792
40793         * elf/dl-open.c (add_to_global): Report additions to the global scope
40794         for LD_DEBUG=scopes.
40795         (dl_open_worker): Also print scope of newly loaded dependencies.
40796         (_dl_show_scope): Indicate if there is no scope.
40797
40798         [BZ #13114]
40799         * stdio-common/Makefile (tests): Add bug24.
40800         * stdio-common/bug24.c: New file.
40801
40802 2011-08-19  Andreas Jaeger  <aj@suse.de>
40803
40804         [BZ #13114]
40805         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
40806         non-existant file when using close-on-exec mode.
40807
40808 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
40809
40810         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
40811         the very first instruction.
40812
40813         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
40814         the CFI state in the end.
40815         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
40816         inclusion of dl-trampoline.h.
40817         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
40818
40819 2011-08-19  Andreas Schwab  <schwab@redhat.com>
40820
40821         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
40822         expectations for long double.
40823
40824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
40825         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
40826
40827 2011-08-14  David S. Miller  <davem@davemloft.net>
40828
40829         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
40830         artificual limit depends upon the system page size.
40831
40832 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
40833
40834         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
40835         * resolv/Makefile: Define CFLAGS-libresolv.
40836
40837 2011-08-17  Andreas Schwab  <schwab@redhat.com>
40838
40839         * nss/makedb.c (compute_tables): Make variables used in nested
40840         function static.
40841
40842 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
40843
40844         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
40845         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
40846         if buffer was too small.
40847
40848         * elf/pldd.c (main): Attach to all threads in the process.
40849         Rewrite /proc handling to use *at functions.
40850
40851 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
40852
40853         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
40854         specifies first scope to show.
40855         (dl_open_worker): Update callers.  Move printing scope of new
40856         object to before the relocation.
40857         * elf/rtld.c (dl_main): Update _dl_show_scope call.
40858         * sysdeps/generic/ldsodefs.h: Update declaration.
40859
40860         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
40861         string for the scope number.
40862
40863 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
40864
40865         * nscd/servicescache.c (cache_addserv): Make sure written is always
40866         initialized.
40867
40868 2011-08-14  Roland McGrath  <roland@hack.frob.com>
40869
40870         * sysdeps/i386/i486/bits/atomic.h
40871         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
40872         statement expression, so as to suppress "set but not used" warning.
40873         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
40874
40875         * string/strncat.c (STRNCAT): Use prototype definition.
40876
40877         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
40878         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
40879         -Iprograms here.
40880         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
40881         (localedef-modules): Add localedef.
40882         (locale-modules): Add locale.
40883
40884         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
40885         * elf/rtld.c (dl_main): Invert order of assignment in last change,
40886         to avoid a warning.
40887
40888 2011-08-14  David S. Miller  <davem@davemloft.net>
40889
40890         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
40891         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
40892
40893 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
40894
40895         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
40896         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
40897         * elf/rtld.c (dl_main): Set l_name of vDSO.
40898         Call _dl_show_scope when DL_DEBUG_SCOPES.
40899         (process_dl_debug): Recognize scopes flag and also set it for all.
40900         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
40901         Declare _dl_show_scope.
40902
40903         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
40904         (do_dlopen): Pass caller_dlopen to dl_open.
40905         (__libc_dlopen_mode): Initialize caller_dlopen.
40906
40907         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
40908         of libc.  Make tolower call locale-independent.  Optimize a bit by
40909         using isdigit instead of isalnum.
40910         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
40911
40912 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
40913
40914         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
40915         was a dependency or dynamically loaded.
40916
40917 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
40918
40919         * intl/l10nflist.c: Allow architecture-specific pop function.
40920         * sysdeps/x86_64/l10nflist.c: New file.
40921
40922         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
40923         classification.
40924
40925 2011-08-10  Andreas Schwab  <schwab@redhat.com>
40926
40927         * include/dirent.h: Add libc_hidden_proto for scandirat and
40928         scandirat64.  Don't declare __scandirat64.
40929         * dirent/scandirat.c: Add libc_hidden_def.
40930         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
40931         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
40932
40933 2011-08-10  David S. Miller  <davem@davemloft.net>
40934
40935         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
40936         enum.
40937         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
40938         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
40939         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
40940
40941 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
40942
40943         * Versions.def [libc]: Add GLIBC_2.15.
40944         * dirent/Makefile (routines): Add scandirat and scandirat64.
40945         * dirent/Versions [libc]: Export scandirat and scandirat64 for
40946         GLIBC_2.15.
40947         * dirent/dirent.h: Declare scandirat and scandirat64.
40948         * dirent/scandirat.c: New file.
40949         * dirent/scandirat64.c: New file.
40950         * sysdeps/wordsize-64/scandirat.c: New file.
40951         * sysdeps/wordsize-64/scandirat64.c: New file.
40952         * dirent/opendir.c: Define opendirat.
40953         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
40954         using scandirat.
40955         * dirent/scandir64.c: Adjust for scandir.c change.
40956         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
40957         __scandirat64, and __scandir_cancel_handler.
40958         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
40959         additional parameter and use openat instead of open (outside of ld.so).
40960         Add new __opendir as wrapper around __opendirat.
40961         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
40962         here without requiring old scandirat implementation.
40963
40964 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
40965
40966         * dirent/scandir.c (cancel_handler): Renamed to
40967         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
40968         defined.  Adjust users.
40969         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
40970         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
40971
40972 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
40973
40974         * string/test-string.h (IMPL): Use __STRING to expand name and then
40975         stringify it.
40976
40977         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
40978         of cleanups.
40979
40980 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40981
40982         * string/Makefile: Update.
40983         (strop-tests): Append strncat.
40984         * string/test-wcscmp.c: New file.
40985         New comprehensive test for wcscmp.
40986         * string/test-strcmp.c: Update.
40987         (WIDE): New define.
40988
40989 2011-07-22  Andreas Schwab  <schwab@redhat.com>
40990
40991         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
40992         line.
40993
40994 2011-07-26  Andreas Schwab  <schwab@redhat.com>
40995
40996         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
40997         encoding to ACE if AI_IDN.
40998
40999 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
41000
41001         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
41002         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
41003
41004 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
41005
41006         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
41007         Fix overflow bug in strncat.
41008         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
41009
41010         * string/test-strncat.c: Update.
41011         Add new tests for checking overflow bugs.
41012
41013 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
41014
41015         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41016         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
41017         * sysdeps/i386/i686/multiarch/strcat.S: New file.
41018         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
41019         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
41020         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
41021         * sysdeps/i386/i686/multiarch/strncat.S: New file.
41022         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
41023         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
41024
41025         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
41026         (USE_AS_STRCAT): Define.
41027         Add strcat and strncat support.
41028         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
41029
41030 2011-07-25  Andreas Schwab  <schwab@redhat.com>
41031
41032         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
41033         __n bigger than INT_MAX+1.
41034         (__strncmp_g): Likewise.
41035
41036 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
41037
41038         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
41039         * libio/stido.h: Likewise.
41040
41041         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
41042         (AF_NFC): Define.
41043         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
41044         (AF_NFC): Define.
41045
41046         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
41047         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
41048         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
41049         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
41050         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
41051
41052         [BZ #13021]
41053         * scripts/test-installation.pl: Don't expect libnss_test1 to be
41054         installed.
41055
41056         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
41057         typo.
41058         (_dl_x86_64_save_sse): Likewise.
41059
41060 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
41061
41062         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
41063         OSXSAVE.
41064         (_dl_x86_64_save_sse): Likewise.
41065
41066         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
41067
41068         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
41069
41070 2011-07-21  Andreas Schwab  <schwab@redhat.com>
41071
41072         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
41073         change.
41074         (_dl_x86_64_save_sse): Use correct AVX check.
41075
41076 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41077
41078         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
41079         bug in strncpy/strncat.
41080         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
41081
41082 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
41083
41084         * string/tester.c (test_strcat): Add tests for different alignments
41085         of source and destination.
41086         (test_strncat): Likewise.
41087
41088 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
41089
41090         [BZ #12852]
41091         * posix/glob.c (glob): Check passed in values before using them in
41092         expressions to avoid some overflows.
41093         (glob_in_dir): Likewise.
41094
41095         [BZ #13007]
41096         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
41097         check for AVX enablement so that we don't crash with old kernels and
41098         new hardware.
41099         * elf/tst-audit4.c: Add same checks here.
41100         * elf/tst-audit6.c: Likewise.
41101
41102         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
41103
41104 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
41105
41106         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
41107
41108 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
41109
41110         * po/cs.po: Update from translation team.
41111         * po/bg.po: Likewise.
41112
41113 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
41114
41115         * misc/sys/cdefs.h: Add support for const attribute.
41116         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
41117         to gnu_dev_{major,minor,makedev} functions.
41118
41119 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
41120
41121         * intl/dcigettext.c (get_output_charset): Add missing bracket.
41122
41123 2011-07-20  Andreas Schwab  <schwab@redhat.com>
41124
41125         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
41126         strlen results.
41127
41128 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41129
41130         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
41131         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
41132         register in order to avoid conflicts with the soft frame pointer
41133         being held in r11 when necessary.
41134         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
41135         (INTERNAL_VSYSCALL_NCS): Likewise.
41136
41137 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
41138
41139         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
41140         * elf/dl-fini.c (_dl_fini): Adjust caller.
41141         * elf/dl-close.c (_dl_close_worker): Likewise.
41142         * sysdeps/generic/ldsodefs.h: Adjust declaration.
41143
41144 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
41145
41146         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
41147         "aux_cache->nlibs < 0".
41148
41149         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
41150         in the reload-count case.
41151
41152 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
41153
41154         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41155         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
41156         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
41157         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
41158         * sysdeps/x86_64/multiarch/strcat.S: New file.
41159         * sysdeps/x86_64/multiarch/strncat.S: New file.
41160         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
41161         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
41162         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
41163         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
41164         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
41165         (USE_AS_STRCAT): Define.
41166         Add strcat and strncat support.
41167         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
41168         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
41169         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
41170         * string/strncat.c: Update.
41171         (USE_AS_STRNCAT): Define.
41172         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
41173         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
41174         and i7.
41175         * sysdeps/x86_64/multiarch/init-arch.h
41176         (bit_Prefer_PMINUB_for_stringop): New.
41177         (index_Prefer_PMINUB_for_stringop): Likewise.
41178         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
41179         bit_Prefer_PMINUB_for_stringop.
41180
41181 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
41182
41183         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
41184         buffer64.
41185         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
41186         of casting of buffer.
41187         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
41188         buffer32 and buffer64.
41189         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
41190         writes instead of casting of buffer.
41191         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
41192         buffer32.
41193         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
41194         casting of buffer.
41195
41196 2011-07-19  Andreas Schwab  <schwab@redhat.com>
41197
41198         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
41199
41200 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
41201
41202         * nscd/nscd.c (termination_handler): Don't do anything for a database
41203         if it has not yet been initialized.
41204
41205 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
41206
41207         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
41208
41209 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
41210
41211         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
41212
41213 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
41214
41215         * po/nl.po: Update from translation team.
41216         * po/sv.po: Likewise.
41217
41218 2011-07-16  Roland McGrath  <roland@hack.frob.com>
41219
41220         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
41221         now disallowed by GCC.
41222
41223         * configure.in (use-default-link): Default to yes if a test -shared
41224         link meets our qualifications.
41225         * configure: Regenerated.
41226
41227         * config.make.in (output-format): New variable.
41228         * configure.in: Check for ld --print-output-format support.
41229         * configure: Regenerated.
41230         * Makerules ($(common-objpfx)format.lds)
41231         [$(output-format) != unknown]: Just use $(output-format),
41232         instead of the linker-script munging.
41233
41234 2011-07-14  Roland McGrath  <roland@hack.frob.com>
41235
41236         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
41237         of $(common-objpfx)shlib.lds.
41238         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
41239
41240         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
41241         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
41242
41243         * configure.in (-z relro check): Adjust test code to add a large
41244         writable data section after it.
41245         * configure: Regenerated.
41246
41247 2011-07-11  Roland McGrath  <roland@hack.frob.com>
41248
41249         * configure.in (-z relro check): Fix test code to make the variable
41250         truly const.
41251         * configure: Regenerated.
41252
41253 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
41254
41255         * nscd/nscd.h (struct traced_file): Define.
41256         (struct database_dyn): Remove inotify_descr, reset_res, and filename
41257         elements.  Add traced_files.
41258         (inotify_fd): Declare.
41259         (register_traced_file): Declare.
41260         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
41261         (inotify_fd): Export.
41262         (resolv_conf_descr): Remove.
41263         (nscd_init): Move inotify descriptor creation to main.
41264         Don't register files for notification here.
41265         (register_traced_file): New function.
41266         (invalidate_cache): Don't use reset_res to determine whether to call
41267         res_init, go through the list of registered files.
41268         (main_loop_poll): The inotify descriptors are now stored in the
41269         structures for the traced files.
41270         (main_loop_epoll): Likewise
41271         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
41272         to __nss_disable_nscd.
41273         * nscd/cache.c (prune_cache): There is no single inotify descriptor
41274         for a database anymore.  Check the records for all the registered
41275         files instead.
41276         * nss/Makefile (libnss_files-routines): Add files-init.
41277         (libnss_db-routines): Add db-init.
41278         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
41279         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
41280         * nss/nss_db/db-init.c: New file.
41281         * nss/nss_files/files-init.c: New file.
41282         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
41283         __nss_lookup_function.
41284         (__nss_lookup_function): Call nss_load_library.
41285         (nss_load_all_libraries): New function.
41286         (__nss_disable_nscd): Take parameter with callback function for files
41287         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
41288         used for the cached services.
41289         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
41290         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
41291         options for features to all the files in nscd.
41292
41293         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
41294
41295 2011-07-10  Roland McGrath  <roland@hack.frob.com>
41296
41297         * csu/elf-init.c (__libc_csu_init): Comment typo.
41298
41299 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
41300
41301         * po/pl.po: Update from translation team.
41302         * po/ja.po: Likewise.
41303         * po/ru.po: Likewise.
41304         * po/ko.po: Likewise.
41305         * po/fr.po: Likewise.
41306
41307 2011-07-09  Roland McGrath  <roland@hack.frob.com>
41308
41309         * configure.in (.ctors/.dtors header and trailer check):
41310         Use an empirical test on a built program.
41311         * configure: Regenerated.
41312
41313         * configure.in (-z relro check): Use an empirical test on a built DSO.
41314         Detect, but do not require, on ia64.
41315         * configure: Regenerated.
41316
41317         * configure.in (READELF): Find it with AC_CHECK_TOOL.
41318         Update tests that use readelf to use $READELF instead.
41319         * configure: Regenerated.
41320
41321 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
41322
41323         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
41324         if the result is not used.
41325
41326 2011-07-05  Andreas Jaeger  <aj@suse.de>
41327
41328         [BZ#9696]
41329         * stdlib/tst-strtod.c: Add testcase.
41330
41331 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
41332
41333         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
41334         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
41335         The latter has a higher limit.  Take additional parameter to pass to
41336         the new function.
41337         (__pathconf): Pass file to __statfs_link_max.
41338         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
41339         __statfs_link_max.
41340         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
41341         __statfs_link_max.
41342
41343         [BZ #12868]
41344         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
41345         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
41346         Handle Lustre.
41347         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
41348         (__statfs_filesize_max): Likewise.
41349         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
41350
41351 2011-07-05  Andreas Jaeger  <aj@suse.de>
41352
41353         * resolv/res_comp.c (dn_skipname): Remove unused variable.
41354
41355 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
41356
41357         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
41358         `status' variable.
41359         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
41360         Likewise.
41361
41362 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
41363
41364         * Makefile (strop-tests): Add strncat.
41365         * string/test-strncat.c: New file.
41366
41367 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
41368
41369         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
41370
41371 2011-06-21  Andreas Jaeger  <aj@suse.de>
41372
41373         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
41374         Copy rule from iconvdata/Makefile.
41375
41376 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
41377
41378         [BZ #12922]
41379         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
41380         but no long options are defined, just return 'W'.
41381
41382 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
41383
41384         [BZ #9696]
41385         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
41386
41387 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
41388
41389         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
41390         netgroups to read.
41391         (innetgr): Likewise.
41392
41393 2011-07-05  Roland McGrath  <roland@hack.frob.com>
41394
41395         * config.make.in (install_root): Default to $(DESTDIR).
41396
41397 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
41398
41399         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
41400
41401 2011-07-02  Roland McGrath  <roland@hack.frob.com>
41402
41403         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
41404
41405         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
41406         containing directory rather than embedding absolute directory names.
41407
41408         * scripts/check-local-headers.sh: Rewritten using awk.
41409         Match by word, not by line.  Print error messages for matches.
41410         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
41411
41412         * Makerules [shlib-lds-flags empty]:
41413         ($(common-objpfx)libc_pic.opts): New target.
41414         ($(common-objpfx)libc_pic.os.clean): New target.
41415         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
41416
41417         * config.make.in (OBJCOPY): New variable.
41418         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
41419         * configure: Regenerated.
41420
41421         * config.make.in (use-default-link): New variable.
41422         * configure.in (use_default_link): Grok --with-default-link to set it.
41423         * configure: Regenerated.
41424         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
41425         (shlib-lds, shlib-lds-flags): Define to empty.
41426
41427         * Makerules (shlib-lds): New variable.
41428         (shlib-lds-flags): New variable.
41429         (build-shlib, build-moduile, build-module-asneeded): Use it.
41430         ($(common-objpfx)libc.so): Use $(shlib-lds).
41431         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
41432         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
41433
41434         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
41435         DT_FLAGS/DT_FLAGS_1 with zero flags.
41436
41437         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
41438         linker script munging.
41439
41440 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
41441
41442         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
41443         as 128-bit value.
41444         * crypt/sha512.c (sha512_process_block): Perform total addition using
41445         128-bit if possible.
41446         (__sha512_finish_ctx): Likewise.
41447         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
41448         as 64-bit value.
41449         * crypt/sha256.c (SWAP64): Define.
41450         (sha256_process_block): Perform total addition using 64-bit if
41451         possible.
41452         (__sha256_finish_ctx): Likewise.
41453
41454 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
41455
41456         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
41457         * nscd/initgrcache.c (addinitgroupsX): Likewise.
41458         * nscd/hstcache.c (cache_addhst): Likewise.
41459         * nscd/grpcache.c (cache_addgr): Likewise.
41460         * nscd/aicache.c (addhstaiX): Likewise
41461         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
41462
41463 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
41464
41465         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
41466         * nscd/initgrcache.c (addinitgroupsX): Likewise.
41467         * nscd/hstcache.c (cache_addhst): Likewise.
41468         * nscd/grpcache.c (cache_addgr): Likewise.
41469         * nscd/aicache.c (addhstaiX): Likewise
41470
41471 2011-07-01  Andreas Schwab  <schwab@redhat.com>
41472
41473         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
41474         domain only when needed.
41475
41476 2011-06-30  Andreas Schwab  <schwab@redhat.com>
41477
41478         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
41479         is always restored.
41480
41481 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
41482
41483         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
41484         are re-adding the entry.
41485         * nscd/servicescache.c (cache_addserv): Likewise.
41486
41487 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
41488
41489         * sysdeps/generic/dl-irel.h: fix protection against multiple
41490         inclusions.
41491         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
41492
41493 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
41494
41495         [BZ #12935]
41496         * malloc/memusage.sh: Fix quoting in message.
41497         * debug/xtrace.sh: Likewise.
41498
41499         * configure.in: Remove support for --experimental-malloc option, make
41500         it the default.
41501         * config.make.in: Likewise.
41502         * malloc/Makefile: Likewise.
41503
41504 2011-06-27  Andreas Schwab  <schwab@redhat.com>
41505
41506         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
41507         two-byte characters.
41508
41509 2011-06-27  Roland McGrath  <roland@hack.frob.com>
41510
41511         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
41512         AC_CACHE_CHECK invocation.
41513         * configure: Regenerated.
41514
41515         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
41516
41517 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
41518
41519         [BZ #12350]
41520         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
41521         bit from old_res_options.
41522
41523         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
41524
41525         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
41526         value type for setfct.
41527
41528 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
41529
41530         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
41531         __gettimeofday instead of gettimeofday.
41532
41533 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
41534
41535         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
41536
41537 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
41538
41539         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
41540
41541         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
41542         info.
41543
41544 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
41545
41546         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41547         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
41548         strcpy-sse2-unaligned strncpy-sse2-unaligned
41549         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
41550         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
41551         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
41552         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
41553         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
41554         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
41555         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
41556         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
41557         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
41558         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
41559         (STRCPY): Support SSE2 and SSSE3 versions.
41560
41561 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
41562
41563         [BZ #12874]
41564         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
41565         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
41566         kernels which artificially limit size of requests.
41567
41568 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
41569
41570         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41571         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
41572         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
41573         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
41574         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
41575         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
41576         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
41577         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
41578         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
41579         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
41580         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
41581         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
41582         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
41583         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
41584         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
41585         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
41586         Enable unaligned load optimization for Intel Core i3, i5 and i7
41587         processors.
41588         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
41589         Define.
41590         (index_Fast_Unaligned_Load): Define.
41591         (HAS_FAST_UNALIGNED_LOAD): Define.
41592
41593 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
41594
41595         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
41596
41597 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
41598
41599         [BZ #12907]
41600         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
41601         until it is clear that the information is realy needed.
41602         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
41603
41604 2011-06-22  Andreas Schwab  <schwab@redhat.com>
41605
41606         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
41607
41608 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
41609
41610         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
41611         /sys/devices/system/cpu/online if it is usable.
41612
41613         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
41614         reading the information from the /proc filesystem to once a second.
41615
41616 2011-06-21  Andreas Jaeger  <aj@suse.de>
41617
41618         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
41619         NULL after inclusion of kernel headers.
41620
41621 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
41622
41623         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
41624         calls to internal_setent.
41625
41626         [BZ #12885]
41627         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
41628         addresses using gethostbyname4_r ignore IPv4 addresses.
41629
41630         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
41631         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
41632
41633         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
41634
41635 2011-06-20  David S. Miller  <davem@davemloft.net>
41636
41637         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
41638         inclusions.
41639         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
41640
41641         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
41642         (elf_irel): Use it.
41643         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
41644         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
41645         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
41646         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
41647         * sysdeps/x86_64/dl-irel.h: Likewise.
41648
41649         * elf/dl-runtime.c: Use elf_ifunc_invoke.
41650         * elf/dl-sym.c: Likewise.
41651
41652 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
41653
41654         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
41655         need to dereference resplen2.
41656
41657 2011-06-14  Andreas Schwab  <schwab@redhat.com>
41658
41659         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
41660
41661 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
41662
41663         * Makeconfig: Define vardbdir and inst_vardbdir.
41664         * nss/Makefile: Add rules to install db-Makefile.
41665
41666         * nss/nss_db/db-XXX.c: Cleanup.
41667
41668         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
41669         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
41670         GLIBC_PRIVATE.
41671         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
41672         * nss/makedb.c: Implement -g option to specify that value strings
41673         are generated and should not be added to table iterated over for
41674         get*ent calls.
41675         * nss/nss_db/db-initgroups.c: New file.
41676
41677         * nss/getent.c: Add support for initgroups lookups through getgrouplist
41678         interface.
41679
41680         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
41681         (internal_getgrouplist): Adjust to name change.
41682         Update use_initgroups_entry if this is not the first call.
41683         * nss/databases.def: Add initgroups entry.
41684
41685         * nss/makedb.c (compute_tables): Check result of multiple hash table
41686         sizes to minimize maximum chain length.
41687
41688 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
41689
41690         * Versions.def: Add entry for libnss_db.
41691         * shlib-versions: Likewise.
41692         * nss/Makefile: Add rules to build libnss_db.
41693         * nss/Versions: Add libnss_db information.  Organize libnss_files
41694         entries better.
41695         * nss/db-Makefile: Add gshadow support.  Change rules for the new
41696         makedb progra.  Some minor improvements to generate smaller files.
41697         * nss/nss_db/nss_db.h: Move NSS database header data structures to
41698         here from...
41699         * nss/makedb.c: ...here.
41700         Improve database format to be smaller and require less memory at
41701         runtime.
41702         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
41703         db anymore.
41704         * nss/nss_db/db-netgrp.c: Likewise.
41705         * nss/nss_db/db-open.c: Likewise.
41706         * nss/nss_files/flies-XXX.x: Adjust comments.
41707         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
41708         * nss/nss_files/files-grp.c: Likewise.
41709         * nss/nss_files/files-hosts.c: Likewise.
41710         * nss/nss_files/files-network.c: Likewise.
41711         * nss/nss_files/files-proto.c: Likewise.
41712         * nss/nss_files/files-pwd.c: Likewise.
41713         * nss/nss_files/files-rpc.c: Likewise.
41714         * nss/nss_files/files-service.c: Likewise.
41715         * nss/nss_files/files-sgrp.c: Likewise.
41716         * nss/nss_files/files-spwd.c: Likewise.
41717         * nss/nss_db/db-alias.c: Removed.
41718         * nss/nss_db/dummy-db.h: Removed.
41719
41720 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
41721
41722         * nss/makedb.c: Rewritten to not use database library.
41723         * nss/Makefile: Update to build new makedb program.
41724
41725 2011-06-14  Andreas Jaeger  <aj@suse.de>
41726
41727         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
41728         memset declaration.
41729
41730 2011-06-10  Andreas Schwab  <schwab@redhat.com>
41731
41732         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
41733         tmpbuf.
41734
41735 2011-06-10  Roland McGrath  <roland@hack.frob.com>
41736
41737         * Makerules (shlib.lds): Fail if the linker script comes out empty.
41738         * elf/Makefile ($(objpfx)ld.so): Likewise.
41739
41740         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
41741         Don't list ld.so twice in dependencies.
41742
41743         * posix/bug-regex31.c: Include <stdlib.h>.
41744
41745         * nscd/hstcache.c (cache_addhst): Remove unused variable.
41746
41747         * nis/nss_compat/compat-spwd.c
41748         (getspent_next_nss_netgr): Remove unused variable.
41749         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
41750
41751         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
41752         nonmembers" output to use the right array.
41753
41754         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
41755
41756         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
41757
41758         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
41759         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
41760         * catgets/gencat.c (read_input_file): Likewise.
41761         * locale/programs/locarchive.c (enlarge_archive): Likewise.
41762
41763         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
41764         variable definition inside #if's controlling its use.
41765
41766         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
41767
41768         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
41769
41770         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
41771
41772         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
41773         unreachable code.
41774
41775         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
41776
41777         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
41778         * configure: Regenerated.
41779
41780         * Makerules: Revert last change.
41781         * elf/Makefile: Likewise.
41782
41783 2011-06-09  Roland McGrath  <roland@hack.frob.com>
41784
41785         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
41786         * elf/Makefile ($(objpfx)librtld.os): Likewise.
41787         (reloc-link): Likewise.
41788
41789 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
41790
41791         * elf/Makefile: Add rules to build pldd.
41792         * elf/pldd.c: New file.
41793         * elf/pldd-xx.c: New file.
41794
41795 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
41796
41797         * version.h: Update for 2.15 development version.
41798
41799 2011-06-07  David S. Miller  <davem@davemloft.net>
41800
41801         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
41802         ifuncs.
41803         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
41804         elf_machine_lazy_rel): Likewise.
41805         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
41806         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
41807         elf_machine_lazy_rel): Likewise.
41808         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
41809         dl_hwcap via passed in argument.
41810         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
41811         Likewise.
41812
41813 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41814
41815         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
41816
41817 2011-06-06  Roland McGrath  <roland@hack.frob.com>
41818
41819         [BZ #12849]
41820         * manual/fdl-1.1.texi: New file, verbatim from:
41821         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
41822         * manual/lgpl-2.1.texi: New file, verbatim from:
41823         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
41824         * manual/Makefile (licenses): New variable, list those new file names.
41825         (texis): Use it.
41826         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
41827
41828         * manual/fdl.texi: File removed.
41829         * manual/lesser.texi: File removed.
41830         * manual/libc.texinfo (Copying, Documentation License):
41831         Use new @include file names, put @appendix directive before @include.
41832
41833 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
41834
41835         [BZ #12841]
41836         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
41837         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
41838         (mq_open): Add __NTH.
41839
41840 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
41841
41842         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
41843         Assume Intel Core i3/i5/i7 processor if AVX is available.
41844
41845 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
41846
41847         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
41848         typo.
41849
41850 2011-05-31  Andreas Schwab  <schwab@redhat.com>
41851
41852         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
41853         memory.  Use alloca_account.  Fix memory leak when retrying.
41854
41855 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
41856
41857         * version.h (RELEASE): Bump for 2.14 release.
41858         * include/features.h (__GLIBC_MINOR__): Bump to 14.
41859
41860         * config.make.in (RANLIB): Remove entry.
41861
41862 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
41863
41864         * po/Makefile (po-sed-cmd): Add ksh to extensions.
41865         (libc.pot): Work around missing support for .ksh extension in xgettext.
41866
41867         [BZ #12684]
41868         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
41869         if both request failed.
41870         (send_dg): In case of server errors clear resplen or *resplen2.
41871
41872         [BZ #12454]
41873         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
41874         when there are multiple maps.
41875         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
41876         (_dl_fini): Remove test here.
41877
41878         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
41879
41880 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
41881
41882         [BZ #12350]
41883         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
41884         bit from old_res_options.
41885         (gaih_inet): Likewise.
41886
41887         [BZ #11099]
41888         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
41889         as signed.
41890
41891         * resolv/res_init.c (res_setoptions): Make the code more compact.
41892
41893         [BZ #11558]
41894         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
41895         set RES_USEVC.
41896
41897         [BZ #11634]
41898         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
41899
41900         * malloc/malloc.h: Mark malloc hook variables as deprecated.
41901
41902         [BZ #11781]
41903         * malloc/malloc.h: Declare malloc hook variables as volatile.
41904
41905         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
41906         in last patch.
41907
41908         [BZ #11799]
41909         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
41910         raise in the comment.
41911         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
41912         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
41913         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
41914
41915 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
41916
41917         [BZ #12811]
41918         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
41919         grow the buffers more if it already has to be sufficient.
41920         (build_wcs_upper_buffer): Likewise.
41921         * posix/regexec.c (check_matching): Likewise.
41922         (clean_state_log_if_needed): Likewise.
41923         (extend_buffers): Don't enlarge buffers beyond size of the input
41924         buffer.
41925         Patches mostly by Emil Wojak <emil@wojak.eu>.
41926         * posix/bug-regex32.c: New file.
41927         * posix/Makefile (tests): Add bug-regex32.
41928
41929         * locale/findlocale.c (_nl_find_locale): Return right away if
41930         _nl_explode_name failed.
41931         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
41932
41933         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
41934
41935         * debug/xtrace.sh: Unify messages.
41936         * malloc/memusage.sh: Likewise.
41937
41938         [BZ #12813]
41939         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
41940         time symbol from vDSO.  Substitute with vsyscall if not available.
41941         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
41942         __vdso_time.
41943
41944         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
41945         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
41946         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
41947         Add sendmmsg and internal_sendmmsg.
41948         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
41949         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
41950         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
41951
41952         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
41953         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
41954         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
41955
41956 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
41957
41958         [BZ #12813]
41959         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
41960         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
41961         available.
41962         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
41963         __vdso_getcpu.
41964
41965         [BZ #12814]
41966         * iconvdata/Makefile (tests): Add bug-iconv9.
41967         * iconvdata/bug-iconv9.c: New file.
41968
41969 2011-05-27  Andreas Schwab  <schwab@redhat.com>
41970
41971         [BZ #12814]
41972         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
41973
41974 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
41975
41976         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
41977         (struct user_regs_struct): Change intcs field back to cs.
41978
41979 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
41980
41981         * po/ja.po: Update from translation team.
41982
41983 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
41984
41985         [BZ #12795]
41986         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
41987         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
41988
41989 2011-05-20  Andreas Schwab  <schwab@redhat.com>
41990
41991         * stdlib/longlong.h: Update from GCC.
41992
41993 2011-05-23  Andreas Schwab  <schwab@redhat.com>
41994
41995         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
41996         parameter name.
41997         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
41998         Add parameter name.
41999         (__sysconf): Pass it down.
42000
42001 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
42002
42003         [BZ #12671]
42004         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
42005         some situations.
42006         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
42007         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
42008         add in in __libc_use_alloca calls.  Adjust callers.
42009         (glob): Use malloc in some situations.
42010
42011         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
42012         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
42013         pltexit.
42014
42015 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
42016
42017         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
42018         and CLOCK_BOOTTIME_ALARM.
42019
42020         [BZ #12782]
42021         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
42022         is returned.
42023
42024         * string/_strerror.c (__strerror_r): Print negative errors as signed
42025         numbers.
42026
42027         [BZ #12777]
42028         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
42029         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
42030         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
42031
42032         * configure.in: Fix typo in redirection and correct removal of test
42033         files in two cases.
42034
42035         [BZ #12788]
42036         * locale/setlocale.c (new_composite_name): Fix test to check for
42037         identical name of all categories.
42038
42039         [BZ #12792]
42040         * libio/filedoalloc.c (local_isatty): New function.
42041         (_IO_file_doallocate): Use local_isatty.
42042         * stdio-common/perror.c (perror): In case a new stream is used
42043         forward the stream error.
42044         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
42045         error flag.
42046
42047 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
42048
42049         [BZ #11869]
42050         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
42051         alloca.
42052         * include/alloca.h (extend_alloca_account): Define.
42053
42054         [BZ #11857]
42055         * posix/regex.h: Fix comments with documentation of user-accessible
42056         fields after compilation and describe correct free'ing of pattern
42057         after re_compile_pattern.
42058         Patch by Reuben Thomas <rrt@sc3d.org>.
42059
42060 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
42061
42062         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
42063         and -mno-altivec to prevent the compiler from using Altivec and/or
42064         VSX instructions when the corresponding registers are not available.
42065
42066 2011-05-19  Andreas Schwab  <schwab@redhat.com>
42067
42068         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
42069
42070 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
42071
42072         * libio/freopen.c (freopen): Use __dup2, not dup2.
42073         * libio/freopen64.c (freopen64): Likewise.
42074
42075 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
42076
42077         [BZ #12775]
42078         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
42079         * math/Makefile (tests): Add test-powl.
42080         (CFLAGS-test-powl.c): Define.
42081         * math/test-powl.c: New file.
42082
42083 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
42084
42085         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
42086
42087 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
42088
42089         [BZ #11837]
42090         * iconvdata/gb18030.c: Update to GB18020-2005.
42091
42092 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
42093
42094         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
42095         RE_SYNTAX_POSIX_AWK): Update to match recent development.
42096         Patch by Aharon Robbins <arnold@skeeve.com>.
42097
42098         [BZ #11892]
42099         * stdlib/putenv.c (putenv): Don't always create copy of the variable
42100         on the stack.
42101
42102         [BZ #11895]
42103         * misc/pselect.c (__pselect): Handle timeout value errors hidden
42104         through underflows.
42105
42106         [BZ #12766]
42107         * misc/error.c (error_at_line): Ensure file_name and old_file_name
42108         point to strings before performing equality test for error_one_per_line
42109         mode.
42110
42111         [BZ #11697]
42112         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
42113
42114         [BZ #11820]
42115         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
42116         (struct user_fpregs_struct): Avoid __uint*_t types.
42117
42118         [BZ #6420]
42119         * malloc/mtrace.c (tr_where): Add additional parameter to point to
42120         symbol info.  Use it instead of calling _dl_addr locally.
42121         (lock_and_info): New function.
42122         (tr_freehook): Call lock_and_info and pass symbol info as additional
42123         parameter to tr_where.
42124         (tr_mallochook): Likewise.
42125         (tr_reallochook): Likewise.
42126         (tr_memalignhook): Likewise.
42127
42128         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
42129         used and couldn't be at all thread-safe.
42130
42131 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
42132
42133         * libio/freopen.c (freopen): Don't close old file descriptor
42134         before the new one is opened.  Instead dup the new file descriptor
42135         to the old one after the new stream is created.
42136         * libio/freopen64.c (freopen64): Likewise.
42137         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
42138         * libio/fileops.c (_IO_new_file_close_it): Handle new
42139         _IO_FLAGS2_NOCLOSE flag.
42140         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
42141         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
42142         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
42143         _IO_FLAGS2_NOCLOSE flag.
42144         * include/unistd.h: Add hidden_proto for dup3.
42145         Define __have_dup3.
42146         * io/dup3.c: Define hidden symbol.
42147         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
42148
42149         [BZ #7101]
42150         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
42151         when an incomplete long option is used.
42152         * posix/tst-getopt_long1.c: New file.
42153         * posix/Makefile (tests): Add tst-getopt_long1.
42154
42155         [BZ #10138]
42156         * scripts/config.guess: Update from autoconf-2.68.
42157         * scripts/config.sub: Likewise.
42158
42159         [BZ #10157]
42160         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
42161         tests into ...
42162         (has_cpuclock): ...this.  New function.
42163         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
42164         macro here based on has_cpuclock code.
42165
42166         [BZ #10149]
42167         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
42168         First byte (not low byte) is now always NUL.
42169         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
42170
42171         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
42172         Use non-cancelable interfaces.
42173
42174         [BZ #9809]
42175         * locale/iso-639.def: Add entry for Sorani.
42176
42177         [BZ #11901]
42178         * include/stdlib.h: Move include protection to the right place.
42179         Define abort_msg_s.  Declare __abort_msg with it.
42180         * stdlib/abort.c (__abort_msg): Adjust type.
42181         * assert/assert.c (__assert_fail_base): New function.  Majority
42182         of code from __assert_fail.  Allocate memory for __abort_msg with
42183         mmap.
42184         (__assert_fail): Now call __assert_fail_base.
42185         * assert/assert-perr.c: Remove bulk of implementation.  Use
42186         __assert_fail_base.
42187         * include/assert.hL Declare __assert_fail_base.
42188         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
42189         mmap.
42190         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
42191
42192 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
42193
42194         [BZ #11952]
42195         [BZ #12453]
42196         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
42197         until all modules are registered in the DTV.
42198         * elf/Makefile: Add rules to build and run tst-tls19.
42199         * elf/tst-tls19.c: New file.
42200         * elf/tst-tls19mod1.c: New file.
42201         * elf/tst-tls19mod2.c: New file.
42202         * elf/tst-tls19mod3.c: New file.
42203         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
42204
42205         [BZ #12083]
42206         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
42207         correctly.
42208
42209         [BZ #12601]
42210         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
42211         two-byte sequence errors.
42212         * iconvdata/Makefile (tests): Add bug-iconv8.
42213         * iconvdata/bug-iconv8.c: New file.
42214
42215         [BZ #12626]
42216         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
42217         buf2 definition.
42218
42219         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
42220
42221         [BZ #12432]
42222         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
42223         (dummy_getcfa): New function.
42224         (init): Get _Unwind_GetCFA address, use dummy if not found.
42225         (backtrace_helper): In recursion check, also check whether CFA changes.
42226         (__backtrace): Completely initialize arg.
42227
42228         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
42229         storing incomplete byte sequence in state object.  Avoid testing for
42230         guaranteed too small input if we know there is enough data available.
42231
42232 2011-05-11  Andreas Schwab  <schwab@redhat.com>
42233
42234         * Makeconfig (+link-pie): Indent.
42235         * Rules (binaries-pie): Define if $(have-fpie) and
42236         $(build-shared).
42237         (binaries-shared): Also filter out $(binaries-pie).
42238         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
42239         * nscd/Makefile (others-pie): Add nscd.
42240         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
42241         ($(objpfx)nscd): Remove command override.
42242         * login/Makefile (others-pie): Add pt_chown.
42243         ($(objpfx)pt_chown): Remove command override.
42244         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
42245         remove command overrides.
42246
42247 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
42248
42249         * libio/tst_putwc.c: Fix error messages.
42250
42251         [BZ #12724]
42252         * libio/fileops.c (_IO_new_file_close_it): Always flush when
42253         currently writing and seek to current position when not.
42254         * libio/Makefile (tests): Add bug-fclose1.
42255         * libio/bug-fclose1.c: New file.
42256
42257 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
42258
42259         [BZ #12511]
42260         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
42261         don't set DF_1_NODELETE here.
42262         (do_lookup_x): When entering new entry test for copy relocation
42263         and if necessary set DF_1_NODELETE flag.
42264         * elf/tst-unique4.cc: New file.
42265         * elf/tst-unique4.h: New file.
42266         * elf/tst-unique4lib.cc: New file.
42267         * elf/Makefile: Add rules to build and run tst-unique4.
42268         Patch by Piotr Bury <pbury@goahead.com>.
42269
42270 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
42271
42272         [BZ #12052]
42273         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
42274
42275         [BZ #12625]
42276         * misc/mntent_r.c (addmntent): Flush the stream after the output
42277
42278         [BZ #12393]
42279         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
42280         (is_trusted_path_normalize): Skip initial colon.  Append slash
42281         to empty buffer.  Duplicate is_trusted_path code but allow
42282         constructed patch to be prefix.
42283         (is_dst): Allow $ORIGIN followed by /.
42284         (_dl_dst_substitute): Correct clearing of check_for_trusted.
42285         Correct testing of result of is_trusted_path_normalize
42286         (decompose_rpath): Fix warning.
42287
42288 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
42289
42290         [BZ #11257]
42291         * grp/initgroups.c (internal_getgrouplist): When we found the service
42292         list through the initgroups entry in nsswitch.conf do not always
42293         continue on a successful lookup.  Don't always use the
42294         __nss_group_database value if it is set.
42295         * nss/nsswitch.conf (initgroups): Change action for successful db
42296         lookup to continue for compatibility.
42297
42298 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
42299
42300         [BZ #11532]
42301         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
42302         and CP774 modules.
42303         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
42304         and CP774 modules.
42305         * iconvdata/tst-tables.sh: Likewise.
42306         * iconvdata/cp770.c: New file.
42307         * iconvdata/cp771.c: New file.
42308         * iconvdata/cp772.c: New file.
42309         * iconvdata/cp773.c: New file.
42310         * iconvdata/cp774.c: New file.
42311         * iconvdata/testdata/CP770: New file.
42312         * iconvdata/testdata/CP770..UTF8: New file.
42313         * iconvdata/testdata/CP771: New file.
42314         * iconvdata/testdata/CP771..UTF8: New file.
42315         * iconvdata/testdata/CP772: New file.
42316         * iconvdata/testdata/CP772..UTF8: New file.
42317         * iconvdata/testdata/CP773: New file.
42318         * iconvdata/testdata/CP773..UTF8: New file.
42319         * iconvdata/testdata/CP774: New file.
42320         * iconvdata/testdata/CP774..UTF8: New file.
42321
42322         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
42323         END CHARMAP line.
42324         * iconvdata/gen-8bit-gap.sh: Likewise.
42325         * iconvdata/gen-8bit.sh: Likewise.
42326
42327         * locale/iso-639.def: Add ary entry.
42328
42329         [BZ #11258]
42330         * locale/C-translit.h.in: Add U20A1 transliteration.
42331
42332         [BZ #12178]
42333         * locale/iso-639.def: Add wae entry.
42334         Patch by Kevin Bortis <bortis@translate-wae.ch>.
42335
42336         [BZ #12545]
42337         * locale/programs/localedef.c (construct_output_path): Use ssize_t
42338         for n.
42339
42340         [BZ #12711]
42341         * locale/C-translit.h.in: Add entry for U20B9.
42342         Patch by pravin.d.s@gmail.com.
42343
42344 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
42345
42346         [BZ #12713]
42347         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
42348         ENAMETOOLONG use generic getcwd.
42349         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
42350         in rtld.  Use *stat64.
42351         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
42352         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
42353         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
42354         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
42355         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
42356         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
42357         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
42358         __fstatat64 macros.
42359         * include/dirent.h: Add libc_hidden_proto for rewinddir.
42360         * dirent/rewinddir.c: Add libc_hidden_def.
42361         * sysdeps/mach/hurd/rewinddir.c: Likewise.
42362         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
42363
42364         * include/dirent.h (__alloc_dir): Add flags parameter.
42365         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
42366         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
42367         __alloc_dir.
42368         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
42369         from fdopendir if O_CLOEXEC is already set.
42370
42371 2011-03-15  Alan Modra  <amodra@gmail.com>
42372
42373         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
42374         l_tls_firstbyte_offset non-zero.  Save padding offset in
42375         l_tls_firstbyte_offset for later use.
42376         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
42377         freeing static tls block.
42378
42379 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
42380
42381         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
42382         where #ifdef was intended.  The intent is to prevent ARG_MAX from
42383         being defined by the kernel headers.
42384
42385 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
42386
42387         [BZ #12734]
42388         * resolv/resolv.h: Define RES_NOTLDQUERY.
42389         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
42390         no-tld-query and set RES_NOTLDQUERY.
42391         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
42392         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
42393         modern BIND to search name as TLD unless forbidden.
42394
42395 2011-05-07  Petr Baudis  <pasky@suse.cz>
42396             Ulrich Drepper  <drepper@gmail.com>
42397
42398         [BZ #12393]
42399         * elf/dl-load.c (fillin_rpath): Move trusted path check...
42400         (is_trusted_path): ...to here.
42401         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
42402         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
42403         using is_trusted_path_normalize() in setuid scripts.
42404
42405 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
42406
42407         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
42408         __BEGIN/__END_DECLS.
42409
42410 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
42411
42412         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
42413         NSS_STATUS_NOTFOUND if no record was found.
42414
42415 2011-05-05  Andreas Schwab  <schwab@redhat.com>
42416
42417         * sunrpc/Makefile (headers): Add rpc/netdb.h.
42418         (headers-not-in-tirpc): Remove rpc/netdb.h
42419         * resolv/netdb.h: Revert last change.
42420
42421 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
42422
42423         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
42424         circular dependency between libgcc.a and libc.a.
42425
42426 2011-05-05  Andreas Schwab  <schwab@redhat.com>
42427
42428         * resolv/netdb.h: Don't include <rpc/netdb.h>.
42429         * nis/Makefile: Don't install rpcsvc/*.
42430         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
42431         instead of <rpc/types.h>.
42432         (MAXHOSTNAMELEN): Define.
42433
42434 2011-05-03  Andreas Schwab  <schwab@redhat.com>
42435
42436         * elf/ldconfig.c (add_dir): Don't crash on empty path.
42437
42438 2011-04-28  Maciej Babinski  <mbabinski@google.com>
42439
42440         [BZ #12714]
42441         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
42442         gethostbyname4_r when IPv6 results are possible.
42443
42444 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
42445
42446         [BZ #12723]
42447         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
42448         _PC_PIPE_BUF handling.
42449
42450 2011-04-30  Bruno Haible  <bruno@clisp.org>
42451
42452         [BZ #12717]
42453         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
42454         * resolv/netdb.h (getnameinfo): Change type of flags parameter
42455         to 'int'.
42456         * inet/getnameinfo.c (getnameinfo): Likewise.
42457
42458 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
42459
42460         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
42461         to groups setting in database lookup.
42462         * nss/nsswitch.conf: Add initgroups entry.
42463
42464 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
42465
42466         [BZ #12685]
42467         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
42468         mode string.
42469         Patch by Eric Blake <eblake@redhat.com>.
42470
42471 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
42472
42473         * sunrpc/Makefile (need-export-routines): Add svc_run.
42474         (routines): Remove svc_run.
42475         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
42476         * sunrpc/clnt_perr.c (clnt_perrno): Export.
42477         * sunrpc/svc_run.c (svc_run): Likewise.
42478         * sunrpc/svc_udp.c (svcudp_create): Likewise.
42479
42480 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
42481
42482         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
42483         problem in reallocation in last patch.
42484
42485 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
42486
42487         * sunrpc/Makefile: Move inclusion of Rules.
42488
42489 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
42490
42491         * nss/nss_files/files-initgroups.c: New file.
42492         * nss/Makefile (libnss_files-routines): Add files-initgroups.
42493         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
42494         _nss_files_initgroups_dyn.
42495
42496 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
42497
42498         * elf/elf.h (R_ARM_IRELATIVE): Define.
42499
42500 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
42501
42502         * po/ru.po: Update from translation team.
42503
42504 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
42505
42506         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
42507         dependencies.
42508
42509 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
42510
42511         [BZ #12653]
42512         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
42513         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
42514         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
42515         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42516         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42517
42518 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
42519
42520         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
42521         differing bytes.
42522         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
42523         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
42524         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
42525
42526 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
42527
42528         [BZ #12420]
42529         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
42530         storing it.
42531         * stdlib/bug-getcontext.c: New file.
42532         * stdlib/Makefile: Add rules to build and run bug-getcontext.
42533
42534 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42535
42536         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
42537         instructions into .machine "z9-109".
42538         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
42539         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
42540
42541 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42542
42543         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
42544         between environment variables and auxiliary vector.
42545
42546 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
42547
42548         * Makefile: Add rules to build linkobj/libc.so.
42549         * include/libc-symbols.h: Define libc_hidden_nolink.
42550         * include/rpc/auth.h: Mark functions which are to be hidden.
42551         * include/rpc/auth_des.h: Likewise.
42552         * include/rpc/auth_unix.h: Likewise.
42553         * include/rpc/clnt.h: Likewise.
42554         * include/rpc/des_crypt.h: Likewise.
42555         * include/rpc/key_prot.h: Likewise.
42556         * include/rpc/pmap_clnt.h: Likewise.
42557         * include/rpc/pmap_prot.h: Likewise.
42558         * include/rpc/pmap_rmt.h: Likewise.
42559         * include/rpc/rpc_msg.h: Likewise.
42560         * include/rpc/svc.h: Likewise.
42561         * include/rpc/svc_auth.h: Likewise.
42562         * include/rpc/xdr.h: Likewise.
42563         * nis/Makefile: Link all DSOs against linkobj/libc.so.
42564         * nss/Makefile: Likewise.
42565         * sunrpc/Makefile: Don't install headers.  Build library with normal
42566         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
42567         * sunrpc/auth_des.c: Hide exported symbols by default, export some
42568         for the compat linking library.  Remove use of INTDEF/INTUSE.
42569         * sunrpc/auth_none.c: Likewise.
42570         * sunrpc/auth_unix.c: Likewise.
42571         * sunrpc/authdes_prot.c: Likewise.
42572         * sunrpc/authuxprot.c: Likewise.
42573         * sunrpc/clnt_gen.c: Likewise.
42574         * sunrpc/clnt_perr.c: Likewise.
42575         * sunrpc/clnt_raw.c: Likewise.
42576         * sunrpc/clnt_simp.c: Likewise.
42577         * sunrpc/clnt_tcp.c: Likewise.
42578         * sunrpc/clnt_udp.c: Likewise.
42579         * sunrpc/clnt_unix.c: Likewise.
42580         * sunrpc/des_crypt.c: Likewise.
42581         * sunrpc/des_soft.c: Likewise.
42582         * sunrpc/get_myaddr.c: Likewise.
42583         * sunrpc/key_call.c: Likewise.
42584         * sunrpc/key_prot.c: Likewise.
42585         * sunrpc/netname.c: Likewise.
42586         * sunrpc/pm_getmaps.c: Likewise.
42587         * sunrpc/pm_getport.c: Likewise.
42588         * sunrpc/pmap_clnt.c: Likewise.
42589         * sunrpc/pmap_prot.c: Likewise.
42590         * sunrpc/pmap_prot2.c: Likewise.
42591         * sunrpc/pmap_rmt.c: Likewise.
42592         * sunrpc/publickey.c: Likewise.
42593         * sunrpc/rpc_cmsg.c: Likewise.
42594         * sunrpc/rpc_common.c: Likewise.
42595         * sunrpc/rpc_dtable.c: Likewise.
42596         * sunrpc/rpc_prot.c: Likewise.
42597         * sunrpc/rpc_thread.c: Likewise.
42598         * sunrpc/rtime.c: Likewise.
42599         * sunrpc/svc.c: Likewise.
42600         * sunrpc/svc_auth.c: Likewise.
42601         * sunrpc/svc_authux.c: Likewise.
42602         * sunrpc/svc_raw.c: Likewise.
42603         * sunrpc/svc_run.c: Likewise.
42604         * sunrpc/svc_simple.c: Likewise.
42605         * sunrpc/svc_tcp.c: Likewise.
42606         * sunrpc/svc_udp.c: Likewise.
42607         * sunrpc/svc_unix.c: Likewise.
42608         * sunrpc/svcauth_des.c: Likewise.
42609         * sunrpc/xcrypt.c: Likewise.
42610         * sunrpc/xdr.c: Likewise.
42611         * sunrpc/xdr_array.c: Likewise.
42612         * sunrpc/xdr_float.c: Likewise.
42613         * sunrpc/xdr_intXX_t.c: Likewise.
42614         * sunrpc/xdr_mem.c: Likewise.
42615         * sunrpc/xdr_rec.c: Likewise.
42616         * sunrpc/xdr_ref.c: Likewise.
42617         * sunrpc/xdr_sizeof.c: Likewise.
42618         * sunrpc/xdr_stdio.c: Likewise.
42619
42620 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
42621
42622         [BZ #12650]
42623         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
42624         * sysdeps/ia64/dl-tls.h: Likewise.
42625         * sysdeps/powerpc/dl-tls.h: Likewise.
42626         * sysdeps/s390/dl-tls.h: Likewise.
42627         * sysdeps/sh/dl-tls.h: Likewise.
42628         * sysdeps/sparc/dl-tls.h: Likewise.
42629         * sysdeps/x86_64/dl-tls.h: Likewise.
42630         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
42631
42632 2011-03-14  Andreas Schwab  <schwab@redhat.com>
42633
42634         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
42635         rpath element also skip the following colon.
42636         (expand_dynamic_string_token): Add is_path parameter and pass
42637         down to DL_DST_REQUIRED and _dl_dst_substitute.
42638         (decompose_rpath): Call expand_dynamic_string_token with
42639         non-zero is_path.  Ignore empty rpaths.
42640         (_dl_map_object_from_fd): Call expand_dynamic_string_token
42641         with zero is_path.
42642
42643 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
42644
42645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
42646         Make cancelable.
42647
42648 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
42649
42650         [BZ #12655]
42651         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
42652         Patch by Filipe David Manana <fdmanana@apache.org>.
42653
42654 2011-04-07  Andreas Schwab  <schwab@redhat.com>
42655
42656         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
42657         Maintain aligned stack.
42658         (CHECK_RSP): Remove unused macro.
42659
42660 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
42661
42662         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
42663         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
42664
42665 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
42666
42667         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
42668
42669         * include/features.h: Mention __USE_XOPEN2K8 in comment.
42670
42671 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
42672
42673         [BZ #12518]
42674         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
42675         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
42676         * sysdeps/x86_64/memmove.c: New file.
42677         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
42678         (memcpy): Renamed to ...
42679         (__new_memcpy): This.
42680         (memcpy): Provide GLIBC_2_14 memcpy.
42681         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
42682         (memcpy): Provide GLIBC_2_2_5 memcpy.
42683
42684 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
42685
42686         [BZ #12631]
42687         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
42688
42689 2011-03-30  Andreas Schwab  <schwab@redhat.com>
42690
42691         * misc/syncfs.c: New file.
42692         * misc/Makefile (routines): Add syncfs.
42693         * posix/unistd.h: Declare syncfs.
42694         * sysdeps/unix/syscalls.list: Add syncfs.
42695
42696 2011-04-01  Andreas Schwab  <schwab@redhat.com>
42697
42698         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
42699         open_by_handle_at.
42700         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
42701         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
42702         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
42703         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
42704         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
42705         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
42706         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
42707
42708 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
42709
42710         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
42711         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
42712         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
42713         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
42714         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
42715         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
42716         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
42717
42718         * io/Makefile: Compile fallocate.c, fallocate64.c, and
42719         sync_file_range.c with -fexceptions.
42720         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
42721         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
42722         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
42723         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
42724         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
42725         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
42726         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
42727         sync_file_range as cancellation point
42728         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
42729         now a wrapper around __call_sync_file_range with cancellation handling.
42730         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
42731         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
42732         function name to __call_sync_file_range.
42733         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
42734         Add call_sync_file_range.
42735
42736 2011-04-01  Andreas Schwab  <schwab@redhat.com>
42737
42738         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
42739         bits/timex.h.
42740
42741 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
42742
42743         * iconv/iconv.h: Fix typo in comment.
42744         * io/fcntl.h: Likewise.
42745         * libio/stdio.h: Likewise.
42746         * posix/spawn.h: Likewise.
42747         * posix/unistd.h: Likewise.
42748         * stdlib/stdlib.h: Likewise.
42749         * time/time.h: Likewise.
42750         * wcsmbs/wchar.h: Likewise.
42751
42752         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
42753         open_by_handle): Add.
42754         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
42755         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
42756         Augment a few comments.
42757         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
42758         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
42759         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
42760         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
42761         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
42762         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
42763         open_by_handle.
42764
42765         * io/fcntl.h (AT_EMPTY_PATH): Define.
42766
42767 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
42768
42769         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
42770         * sysdeps/unix/sysv/linux/bits/time.h: New file.
42771         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
42772         to...
42773         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
42774         * Versions.def: Add GLIBC_2.14.
42775         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
42776         Export.
42777
42778 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
42779
42780         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
42781         round counter.
42782         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
42783
42784 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
42785
42786         [BZ #12597]
42787         * string/test-strncmp.c (do_page_test): New function.
42788         (check2): Likewise.
42789         (test_main): Call check2.
42790         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
42791
42792 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
42793
42794         [BZ #12587]
42795         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
42796         Handle cache information in CPU leaf 4.
42797         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
42798
42799 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
42800
42801         [BZ #12583]
42802         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
42803         character representation.
42804         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
42805
42806 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
42807
42808         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
42809         END(__isnan) to END(__isnanf) to match function entry point/label
42810         EALIGN(__isnanf,...).
42811
42812 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
42813
42814         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
42815
42816 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
42817
42818         [BZ #12510]
42819         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
42820         copy from the symbol referenced in the relocation to initialize the
42821         used variable.
42822         Patch by Piotr Bury <pbury@goahead.com>.
42823         * elf/Makefile: Add rules to build and tst-unique3.
42824         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
42825         * elf/tst-unique3.cc: New file.
42826         * elf/tst-unique3.h: New file.
42827         * elf/tst-unique3lib.cc: New file.
42828         * elf/tst-unique3lib2.cc: New file.
42829
42830         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
42831
42832 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
42833
42834         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
42835         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
42836         to _start.
42837
42838 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
42839
42840         * elf/dl-load.c (_dl_map_object): If we are looking for the first
42841         to-be-loaded object along a path to loader is ld.so.
42842
42843 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
42844             Ulrich Drepper  <drepper@gmail.com>
42845
42846         * sysdeps/x86_64/memset.S: After aligning destination, code
42847         branches to different locations depending on the value of
42848         misalignment, when multiarch is enabled. Fix this.
42849
42850 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
42851
42852         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
42853         Set _x86_64_preferred_memory_instruction for AMD processsors.
42854         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
42855         Set bit_Prefer_SSE_for_memop for AMD processors.
42856
42857 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
42858
42859         * libio/fmemopen.c (fmemopen): Optimize a bit.
42860
42861 2011-03-03  Andreas Schwab  <schwab@redhat.com>
42862
42863         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
42864
42865 2011-03-03  Roland McGrath  <roland@redhat.com>
42866
42867         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
42868
42869 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
42870
42871         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
42872         __bzero_ultra1 instead of __memset_ultra1.
42873
42874 2011-02-23  Andreas Schwab  <schwab@redhat.com>
42875             Ulrich Drepper  <drepper@gmail.com>
42876
42877         [BZ #12509]
42878         * include/link.h (struct link_map): Add l_orig_initfini.
42879         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
42880         returning unsuccessfully.
42881         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
42882         close of a file loaded at startup, restore the original l_initfini
42883         list.
42884         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
42885         list, store the pointer.
42886         * elf/Makefile ($(objpfx)noload-mem): New rule.
42887         (noload-ENV): Define.
42888         (tests): Add $(objpfx)noload-mem.
42889         * elf/noload.c: Include <memcheck.h>.
42890         (main): Call mtrace.  Close all opened handles.
42891
42892 2011-02-17  Andreas Schwab  <schwab@redhat.com>
42893
42894         [BZ #12454]
42895         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
42896         dependencies are missing.
42897
42898 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42899
42900         Fix __if_freereq crash: Unlike the generic version which uses free,
42901         Hurd needs munmap.
42902         * sysdeps/mach/hurd/ifreq.h: New file.
42903
42904 2011-01-27  Petr Baudis  <pasky@suse.cz>
42905             Ulrich Drepper  <drepper@gmail.com>
42906
42907         [BZ 12445]#
42908         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
42909         to extend_alloca().
42910         * stdio-common/bug23.c: New file.
42911         * stdio-common/Makefile (tests): Add bug23.
42912
42913 2010-09-28  Andreas Schwab  <schwab@redhat.com>
42914             Ulrich Drepper  <drepper@gmail.com>
42915
42916         [BZ #12489]
42917         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
42918         before performing relro protection.  At old place add assertion
42919         to make sure nothing changed.
42920
42921 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
42922             Glauber de Oliveira Costa  <glommer@gmail.com>
42923
42924         * elf/elf.h: Add new ARM TLS relocs.
42925
42926 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
42927
42928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
42929         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
42930         cast from r3.
42931         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
42932         'tests' variable.
42933         * sysdeps/wordsize-64/tst-writev.c: New file.
42934
42935 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
42936
42937         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
42938         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
42939         insns in _dl_start to prevent a TOC reference before relocs are
42940         resolved.
42941
42942 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
42943
42944         [BZ #12469]
42945         * Makeconfig: Remove RANLIB definition.
42946         * Makerules: Don't use RANLIB.
42947         * aclocal.m4: Remove ranlib test.
42948         * configure.in: No need to check for ranlib.
42949         * elf/rtld-Rules: Don't use RANLIB.
42950
42951 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42952
42953         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
42954         protection macro.
42955         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
42956         inclusion protection macro.
42957
42958         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
42959         SIGRTMIN and SIGRTMAX and print information in that case only when
42960         SIGRTMIN is defined.
42961
42962 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
42963
42964         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
42965         arginfo fn returning -1.
42966
42967         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
42968         and thousands string is zero terminated.
42969
42970 2011-02-03  Andreas Schwab  <schwab@redhat.com>
42971
42972         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
42973         sysdeps/unix/sysv/linux/bits/socket.h.
42974
42975 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42976
42977         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
42978         (__CPU_COUNT): Remove old macros.
42979         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
42980         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
42981         (__CPU_ALLOC, __CPU_FREE): Add macros.
42982         (__sched_cpualloc, __sched_cpufree): Add declarations.
42983
42984 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
42985
42986         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
42987         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
42988         * nscd/aicache.c (addhstaiX): Return timeout of added value.
42989         (readdhstai): Return value of addhstaiX call.
42990         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
42991         (addgrbyX): Return value returned by cache_addgr.
42992         (readdgrbyname): Return value returned by addgrbyX.
42993         (readdgrbygid): Likewise.
42994         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
42995         (addpwbyX): Return value returned by cache_addpw.
42996         (readdpwbyname): Return value returned by addhstbyX.
42997         (readdpwbyuid): Likewise.
42998         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
42999         (addservbyX): Return value returned by cache_addserv.
43000         (readdservbyname): Return value returned by addservbyX:
43001         (readdservbyport): Likewise.
43002         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
43003         (addhstbyX): Return value returned by cache_addhst.
43004         (readdhstbyname): Return value returned by addhstbyX.
43005         (readdhstbyaddr): Likewise.
43006         (readdhstbynamev6): Likewise.
43007         (readdhstbyaddrv6): Likewise.
43008         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
43009         (readdinitgroups): Return value returned by addinitgroupsX.
43010         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
43011         (prune_cache): Keep track of timeout value of re-added entries.
43012         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
43013         * nscd/nscd.h: Adjust prototypes of readd* functions.
43014
43015 2011-02-04  Roland McGrath  <roland@redhat.com>
43016
43017         * nis/nis_server.c (nis_servstate): Use the right name for 0.
43018         (nis_stats): Likewise.
43019         * nis/nis_modify.c (nis_modify): Likewise.
43020         * nis/nis_remove.c (nis_remove): Likewise.
43021         * nis/nis_add.c (nis_add): Likewise.
43022
43023         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
43024
43025         * posix/fnmatch_loop.c: Add some consts.
43026
43027         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
43028
43029 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
43030
43031         [BZ #12460]
43032         * config.make.in (config-cflags-novzeroupper): Define.
43033         * configure.in: Substitute libc_cv_cc_novzeroupper.
43034         * elf/Makefile (AVX-CFLAGS): Define.
43035         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
43036         (CFLAGS-tst-auditmod4a.c): Likewise.
43037         (CFLAGS-tst-auditmod4b.c): Likewise.
43038         (CFLAGS-tst-auditmod6b.c): Likewise.
43039         (CFLAGS-tst-auditmod6c.c): Likewise.
43040         (CFLAGS-tst-auditmod7b.c): Likewise.
43041         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
43042
43043 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
43044
43045         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
43046         function to the callback.
43047         Patch partly by Jiri Olsa <jolsa@redhat.com>.
43048
43049 2011-02-02  Andreas Schwab  <schwab@redhat.com>
43050
43051         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
43052         of errno.
43053
43054 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
43055
43056         [BZ #11724]
43057         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
43058         of constructors.
43059         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
43060         of destructors.
43061         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
43062
43063         [BZ #11724]
43064         * elf/Makefile: Add rules to build and run new test.
43065         * elf/tst-initorder.c: New file.
43066         * elf/tst-initorder.exp: New file.
43067         * elf/tst-initordera1.c: New file.
43068         * elf/tst-initordera2.c: New file.
43069         * elf/tst-initordera3.c: New file.
43070         * elf/tst-initordera4.c: New file.
43071         * elf/tst-initorderb1.c: New file.
43072         * elf/tst-initorderb2.c: New file.
43073         * elf/tst-order-a1.c: New file.
43074         * elf/tst-order-a2.c: New file.
43075         * elf/tst-order-a3.c: New file.
43076         * elf/tst-order-a4.c: New file.
43077         * elf/tst-order-b1.c: New file.
43078         * elf/tst-order-b2.c: New file.
43079         * elf/tst-order-main.c: New file.
43080         New test case by George Gensure <werkt0@gmail.com>.
43081
43082 2010-10-01  Andreas Schwab  <schwab@redhat.com>
43083
43084         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
43085         decoding ACE if AI_CANONIDN.
43086
43087 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
43088
43089         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
43090
43091 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
43092
43093         * version.h (RELEASE): Bump for 2.13 release.
43094         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
43095
43096         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
43097
43098         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
43099         MADV_NOHUGEPAGE.
43100         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
43101         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
43102         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
43103         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
43104         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
43105         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
43106
43107         * posix/getconf.c: Update copyright year.
43108         * catgets/gencat.c: Likewise.
43109         * csu/version.c: Likewise.
43110         * debug/catchsegv.sh: Likewise.
43111         * debug/xtrace.sh: Likewise.
43112         * elf/ldconfig.c: Likewise.
43113         * elf/ldd.bash.in: Likewise.
43114         * elf/sprof.c (print_version): Likewise.
43115         * iconv/iconv_prog.c: Likewise.
43116         * iconv/iconvconfig.c: Likewise.
43117         * locale/programs/locale.c: Likewise.
43118         * locale/programs/localedef.c: Likewise.
43119         * malloc/memusage.sh: Likewise.
43120         * malloc/mtrace.pl: Likewise.
43121         * nscd/nscd.c (print_version): Likewise.
43122         * nss/getent.c: Likewise.
43123
43124         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
43125         PF_CAIF, and PF_ALG.
43126         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
43127
43128 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
43129
43130         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
43131         (modules-names): Use them.
43132         (ifunc-test-modules, ifunc-pie-tests): Define.
43133         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
43134         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
43135         (test-extras): Likewise.
43136         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
43137         $(compile-command.c).
43138         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
43139         (all-built-dso): Define.
43140         (check-textrel.out, check-execstack.out): Depend on it.
43141
43142         * configure.in: Don't override --enable-multi-arch.
43143
43144 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
43145
43146         [BZ #6812]
43147         * nscd/hstcache.c (tryagain): Define.
43148         (cache_addhst): Return tryagain not notfound for temporary errors.
43149         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
43150         failed.
43151
43152 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
43153
43154         [BZ #10563]
43155         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
43156         to make the syscall.
43157         * sysdeps/unix/sysv/linux/setgroups.c: New file.
43158
43159         [BZ #12378]
43160         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
43161         and fall back to matching as normal character if the string ends before
43162         the matching ']' is found.  This is what POSIX requires.
43163         * posix/testfnm.c: Adjust test result.
43164         * posix/globtest.sh: Adjust test result.  Add new test.
43165         * posix/tst-fnmatch.input: Likewise.
43166         * posix/tst-fnmatch2.c: Add new test.
43167
43168 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
43169
43170         * elf/Makefile (check-execstack): Revert last change.  Depend on
43171         check-execstack.h.
43172         (check-execstack.h): New target.
43173         (generated): Add check-execstack.h.
43174         * elf/check-execstack.c: Include "check-execstack.h".
43175         (main): Revert last change.
43176         (handle_file): Return zero if GNU_STACK is absent and
43177         DEFAULT_STACK_PERMS doesn't include PF_X.
43178
43179 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
43180
43181         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
43182         in child fails because the descriptor is already closed.
43183         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
43184         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
43185         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
43186
43187         [BZ #12397]
43188         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
43189         syscall.
43190
43191         [BZ #10484]
43192         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
43193         temporary buffer used to handle multi lookups locally.
43194         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
43195
43196 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
43197
43198         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
43199         loader is ld.so.
43200
43201 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
43202
43203         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
43204         alignment for SSE2.
43205
43206 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
43207
43208         [BZ #12394]
43209         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
43210         characters.  When rounding increased number of integer digits recompute
43211         number of groups.
43212         * stdio-common/tst-grouping.c: New file.
43213         * stdio-common/Makefile: Add rules to build and run tst-grouping.
43214
43215 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
43216
43217         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
43218         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
43219
43220         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
43221         void.
43222         * bits/select.h: Likewise.
43223
43224 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
43225
43226         * po/ja.po: Update from translation team.
43227
43228 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
43229
43230         [BZ #11155]
43231         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
43232         implementation just like for lxstat, fxstatat, et al.
43233
43234 2010-12-27  Jim Meyering  <meyering@redhat.com>
43235
43236         [BZ #12348]
43237         * posix/regexec.c (build_trtable): Return failure indication upon
43238         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
43239
43240 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
43241
43242         [BZ #12201]
43243         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
43244         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
43245         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
43246         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
43247
43248         [BZ #12207]
43249         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
43250
43251         [BZ #12204]
43252         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
43253         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
43254
43255 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
43256
43257         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
43258         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
43259         script has SORT_BY_INIT_PRIORITY.
43260         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
43261         NO_CTORS_DTORS_SECTIONS is defined.
43262         * elf/soinit.c: Likewise.
43263         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
43264         NO_CTORS_DTORS_SECTIONS is defined.
43265         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
43266         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
43267         * sysdeps/sh/init-first.c: Likewise.
43268         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
43269
43270 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
43271
43272         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
43273         always use the slow path.
43274
43275 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
43276
43277         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
43278         similar rule which adds the sysdep directories to the header search in
43279         order to pick up the correct platform stackinfo.h.
43280         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
43281         perform test if it is, otherwise return successfully without testing.
43282         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
43283         DEFAULT_STACK_PERMS define in stackinfo.h.
43284         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
43285         defined in stackinfo.h.
43286         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
43287         DEFAULT_STACK_PERMS defined in stackinfo.h.
43288         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
43289         * sysdeps/ia64/stackinfo.h: Likewise.
43290         * sysdeps/s390/stackinfo.h: Likewise.
43291         * sysdeps/sh/stackinfo.h: Likewise.
43292         * sysdeps/sparc/stackinfo.h: Likewise.
43293         * sysdeps/x86_64/stackinfo.h: Likewise.
43294         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
43295         PF_X for powerpc64.  Retain PF_X for powerpc32.
43296
43297 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
43298
43299         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
43300         accurately.
43301         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
43302         GETDENTS_64BIT_ALIGNED.
43303
43304 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
43305
43306         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
43307
43308 2010-12-10  Andreas Schwab  <schwab@redhat.com>
43309
43310         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
43311         _GNU_SOURCE.
43312
43313         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
43314         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
43315         Remove __restrict.
43316         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
43317         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
43318
43319 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
43320
43321         [BZ #11655]
43322         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
43323         are initialized.
43324
43325 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
43326
43327         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
43328
43329 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
43330
43331         * po/it.po: Update from translation team.
43332
43333 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
43334
43335         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
43336         unused codes.
43337
43338 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
43339
43340         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
43341
43342 2010-11-24  Andreas Schwab  <schwab@redhat.com>
43343
43344         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
43345         specially.
43346         (gaih_getanswer_slice): Likewise.
43347
43348 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
43349
43350         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
43351
43352 2010-05-31  Petr Baudis  <pasky@suse.cz>
43353
43354         [BZ #11149]
43355         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
43356         silently even in the chroot mode.
43357
43358 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
43359
43360         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
43361         last patch a bit.  Pretty printing
43362
43363 2010-05-31  Petr Baudis <pasky@suse.cz>
43364
43365         [BZ #10085]
43366         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
43367         initialization of skip_initgroups_dyn.
43368
43369 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
43370
43371         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
43372         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
43373
43374 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
43375
43376         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
43377
43378 2010-11-11  Andreas Schwab  <schwab@redhat.com>
43379
43380         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
43381         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
43382         (tst-fnmatch-ENV): Set MALLOC_TRACE.
43383         ($(objpfx)tst-fnmatch-mem): New rule.
43384         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
43385         * posix/tst-fnmatch.c (main): Call mtrace.
43386
43387 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
43388
43389         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43390         Support Intel processor model 6 and model 0x2c.
43391
43392 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
43393
43394         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
43395           signed comparison.
43396
43397 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
43398
43399         [BZ #12205]
43400         * string/test-strncasecmp.c (check_result): New function.
43401         (do_one_test): Use it.
43402         (check1): New function.
43403         (test_main): Use it.
43404         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
43405         Support strcasecmp and strncasecmp.
43406
43407 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
43408
43409         [BZ #12194]
43410         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
43411         * sysdeps/x86_64/bits/byteswap.h: Likewise.
43412
43413 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
43414
43415         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
43416         IFUNC support.
43417         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43418         memset-x86-64.
43419         * sysdeps/x86_64/multiarch/bzero.S: New file.
43420         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
43421         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
43422         * sysdeps/x86_64/multiarch/memset.S: New file.
43423         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
43424         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43425         Set bit_Prefer_SSE_for_memop for Intel processors.
43426         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
43427         Define.
43428         (index_Prefer_SSE_for_memop): Define.
43429         (HAS_PREFER_SSE_FOR_MEMOP): Define.
43430
43431 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
43432
43433         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
43434         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
43435
43436 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
43437
43438         [BZ #12191]
43439         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
43440         (__x86_64_raw_data_cache_size_half): Likewise.
43441         (__x86_64_raw_shared_cache_size): Likewise.
43442         (__x86_64_raw_shared_cache_size_half): Likewise.
43443
43444         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
43445         (__x86_64_raw_data_cache_size_half): Likewise.
43446         (__x86_64_raw_shared_cache_size): Likewise.
43447         (__x86_64_raw_shared_cache_size_half): Likewise.
43448         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
43449         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
43450         and __x86_64_raw_shared_cache_size_half.  Round
43451         __x86_64_data_cache_size_half, __x86_64_data_cache_size
43452         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
43453         to multiple of 256 bytes.
43454
43455 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
43456
43457         [BZ #12167]
43458         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
43459         of inacessible symlinks.  Verify result of symlink before returning it.
43460         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
43461         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
43462
43463 2010-10-28  Erich Ritz  <erichritz@gmail.com>
43464
43465         * math/math.h (isinf): Fix typo in comment.
43466
43467 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
43468
43469         * po/da.po: Update from translation team.
43470
43471 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
43472
43473         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
43474         is added to the list.
43475
43476 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43477             Ulrich Drepper  <drepper@gmail.com>
43478
43479         * elf/dl-object.c (_dl_new_object): Don't append the new object to
43480         the global list here.  Move code to...
43481         (_dl_add_to_namespace_list): ...here.  New function.
43482         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
43483         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
43484         * elf/dl-load.c (lose): Don't remove the element from the list.
43485         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
43486         (_dl_map_object): Likewise.
43487
43488 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
43489
43490         [BZ #12159]
43491         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
43492         into all bytes of SSE register.
43493         Patch by Richard Li <richardpku@gmail.com>.
43494
43495 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
43496
43497         [BZ #12140]
43498         * malloc/malloc.c (_int_free): Fill correct number of bytes when
43499         perturbing.
43500
43501 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
43502
43503         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
43504         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
43505         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
43506         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
43507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
43508         submachine.
43509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
43510
43511 2010-10-22  Andreas Schwab  <schwab@redhat.com>
43512
43513         * include/dlfcn.h (__RTLD_SECURE): Define.
43514         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
43515         mode & __RTLD_SECURE instead.
43516         (open_path): Rename preloaded parameter to secure.
43517         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
43518         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
43519         * elf/dl-deps.c (openaux): Likewise.
43520         * elf/rtld.c (struct map_args): Remove is_preloaded.
43521         (map_doit): Don't use it.
43522         (dl_main): Likewise.
43523         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
43524         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
43525
43526 2010-09-09  Andreas Schwab  <schwab@redhat.com>
43527
43528         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
43529         (sysd-rules-targets): Remove duplicates.
43530         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
43531         rtld-%.$o dependency.
43532
43533 2010-10-18  Andreas Schwab  <schwab@redhat.com>
43534
43535         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
43536         _dl_map_object do it.
43537
43538 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
43539
43540         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
43541         fast fma builtins, define the macros in the C99 standard.
43542         (FP_FAST_FMAF): Likewise.
43543         (FP_FAST_FMAL): Likewise.
43544         * sysdeps/x86_64/bits/mathdef.h: Likewise.
43545
43546         * bits/mathdef.h: Update copyright year.
43547         * sysdeps/powerpc/bits/mathdef.h: Likewise.
43548
43549 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
43550
43551         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
43552         builtins, define the macros in the C99 standard.
43553         (FP_FAST_FMAF): Likewise.
43554         (FP_FAST_FMAL): Likewise.
43555         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
43556         multiply/add.
43557         (FP_FAST_FMAF): Likewise.
43558
43559 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
43560
43561         [BZ #3268]
43562         * math/libm-test.inc (fma_test): Some new testcases.
43563         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
43564         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
43565         y and infinite z.  Do multiplication by C already in long double.
43566         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
43567         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
43568         y and infinite z.  Do bitwise or of inexact bit into u.d.
43569         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
43570         * sysdeps/i386/fpu/s_fmaf.S: Removed.
43571         * sysdeps/i386/fpu/s_fma.S: Removed.
43572         * sysdeps/i386/fpu/s_fmal.S: Removed.
43573
43574 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
43575
43576         [BZ #3268]
43577         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
43578         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
43579         computation is not scheduled after fetestexcept.  Fix value
43580         of minimum denormal long double.
43581
43582 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
43583
43584         [BZ #3268]
43585         * math/libm-test.inc (fma_test): Add some more tests.
43586         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
43587         correctly.
43588
43589 2010-10-15  Andreas Schwab  <schwab@redhat.com>
43590
43591         * scripts/data/localplt-s390-linux-gnu.data: New file.
43592         * scripts/data/localplt-s390x-linux-gnu.data: New file.
43593
43594 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
43595
43596         [BZ #3268]
43597         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
43598         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
43599         instead of dbl-64.
43600         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
43601         inlines.
43602         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
43603         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
43604         if one of x and y is very large and the other is subnormal.
43605         * sysdeps/s390/fpu/s_fmaf.c: New file.
43606         * sysdeps/s390/fpu/s_fma.c: New file.
43607         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
43608         * sysdeps/powerpc/fpu/s_fma.S: New file.
43609         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
43610         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
43611         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
43612
43613 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
43614
43615         [BZ #3268]
43616         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
43617         fma tests.
43618         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
43619         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
43620         * sysdeps/i386/i686/multiarch/s_fma.c: Include
43621         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
43622         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
43623         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
43624         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
43625
43626 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
43627
43628         [BZ #12078]
43629         * posix/regcomp.c (parse_branch): One more memory leak plugged.
43630         * posix/bug-regex31.input: Add test case.
43631
43632 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
43633
43634         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
43635         * posix/bug-regex31.input: New file.
43636
43637         [BZ #12078]
43638         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
43639         (parse_sub_exp): Fix last change, use postorder.
43640
43641         * posix/bug-regex31.c: New file.
43642         * posix/Makefile: Add rules to build and run bug-regex31.
43643
43644         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
43645
43646         [BZ #12078]
43647         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
43648
43649         [BZ #12108]
43650         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
43651         to have entries in sys_siglist.
43652
43653         [BZ #12093]
43654         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
43655         be NULL.
43656
43657 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
43658
43659         [BZ #3268]
43660         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
43661         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
43662         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
43663         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
43664         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
43665         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
43666         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
43667         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
43668         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
43669         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
43670         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
43671         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
43672         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
43673         * math/ftestexcept.c (fetestexcept): Likewise.
43674         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
43675         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
43676         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
43677         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
43678         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
43679         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
43680         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
43681
43682 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
43683
43684         [BZ #12107]
43685         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
43686         newline.
43687
43688 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
43689
43690         * string/bug-strstr1.c: New file.
43691         * string/Makefile: Add rules to build and run bug-strstr1.
43692
43693 2010-10-05  Eric Blake  <eblake@redhat.com>
43694
43695         [BZ #12092]
43696         * string/str-two-way.h (two_way_long_needle): Always clear memory
43697         when skipping input due to the shift table.
43698
43699 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
43700
43701         [BZ #12005]
43702         * malloc/mcheck.c: Handle large requests.
43703
43704         [BZ #12077]
43705         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
43706         for strncmp and strncasecmp.
43707         * string/stratcliff.c: Add tests for strcmp and strncmp.
43708         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
43709
43710 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
43711
43712         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
43713         __set_fpscr.
43714
43715 2010-09-30  Andreas Jaeger  <aj@suse.de>
43716
43717         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
43718         (CGROUP_SUPER_MAGIC): Define.
43719         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
43720         Handle btrfs and cgroup file systems.
43721         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
43722         Likewise.
43723
43724 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
43725
43726         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
43727         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
43728
43729 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43730
43731         [BZ #12067]
43732         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
43733         trying to locate the ELF header.
43734
43735 2010-09-27  Andreas Schwab  <schwab@redhat.com>
43736
43737         [BZ #11611]
43738         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
43739         Mask out sign-bit copies when constructing f_fsid.
43740
43741 2010-09-24  Petr Baudis <pasky@suse.cz>
43742
43743         * debug/stack_chk_fail_local.c: Add missing licence exception.
43744         * debug/warning-nop.c: Likewise.
43745
43746 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
43747
43748         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
43749         implementing getdents64 using getdents syscall, set d_type if
43750         __ASSUME_GETDENTS32_D_TYPE.
43751
43752 2010-09-16  Andreas Schwab  <schwab@redhat.com>
43753
43754         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
43755         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
43756
43757 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
43758
43759         [BZ #12037]
43760         * posix/unistd.h: Undo change of feature selection for ftruncate from
43761         2010-01-11.
43762
43763 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
43764
43765         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
43766         detection.
43767
43768 2010-09-20  Andreas Schwab  <schwab@redhat.com>
43769
43770         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
43771         fanotify_mark.
43772         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
43773
43774 2010-09-14  Andreas Schwab  <schwab@redhat.com>
43775
43776         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
43777         variables after CHECK_SP call.
43778         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
43779
43780 2010-09-13  Andreas Schwab  <schwab@redhat.com>
43781             Ulrich Drepper  <drepper@redhat.com>
43782
43783         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
43784         re-relocationg ld.so.
43785         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
43786         _dl_init_paths call.
43787         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
43788         here anymore.
43789
43790 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
43791
43792         * resolv/res_init.c (__res_vinit): Count the default server we added.
43793
43794 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
43795             Ulrich Drepper  <drepper@redhat.com>
43796
43797         [BZ #11968]
43798         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
43799         (____longjmp_chk): Use %ebx for saving value across system call.
43800         Add unwind info.
43801
43802 2010-09-06  Andreas Schwab  <schwab@redhat.com>
43803
43804         * manual/Makefile: Don't mix pattern rules with normal rules.
43805
43806 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
43807
43808         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
43809         operation.
43810         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
43811         * libio/iofopncook.c (_IO_cookie_init): Likewise.
43812         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
43813         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
43814         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
43815         Likewise.
43816
43817 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
43818
43819         [BZ #11979]
43820         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
43821         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
43822
43823 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
43824
43825         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
43826         * sysdeps/x86_64/addmul_1.S: Likewise.
43827         * sysdeps/x86_64/lshift.S: Likewise.
43828         * sysdeps/x86_64/mul_1.S: Likewise.
43829         * sysdeps/x86_64/rshift.S: Likewise.
43830         * sysdeps/x86_64/sub_n.S: Likewise.
43831         * sysdeps/x86_64/submul_1.S: Likewise.
43832
43833 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43834
43835         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
43836         Define __sched_param instead of SCHED_* and sched_param when
43837         <bits/sched.h> is included with __need_schedparam defined.
43838         * bits/sched.h [__need_schedparam]
43839         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
43840         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
43841         (__defined_schedparam): Define to 1.
43842         (__sched_param): New structure, identical to sched_param.
43843         (__need_schedparam): Undefine.
43844
43845 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
43846
43847         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
43848         (epoll_create1): Declare.
43849
43850         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
43851
43852 2010-08-31  Andreas Schwab  <schwab@redhat.com>
43853
43854         [BZ #7066]
43855         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
43856         shifting retval into place.
43857
43858 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
43859
43860         * nis/rpcsvc/nis.h: Update copyright notice.
43861         * nis/rpcsvc/nis.x: Likewise.
43862         * nis/rpcsvc/nis_callback.h: Likewise.
43863         * nis/rpcsvc/nis_callback.x: Likewise.
43864         * nis/rpcsvc/nis_object.x: Likewise.
43865         * nis/rpcsvc/nis_tags.h: Likewise.
43866         * nis/rpcsvc/yp.h: Likewise.
43867         * nis/rpcsvc/yp.x: Likewise.
43868         * nis/rpcsvc/ypupd.h: Likewise.
43869         * nis/yp_xdr.c: Likewise.
43870         * nis/ypupdate_xdr.c: Likewise.
43871
43872         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
43873         mainly the body of pmap_getport.  Add parameters to specify timeouts.
43874         (pmap_getport): Use __libc_rpc_getport.
43875         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
43876         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
43877         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
43878
43879 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
43880
43881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
43882         fanotify_mark.
43883
43884 2010-08-27  Roland McGrath  <roland@redhat.com>
43885
43886         * sysdeps/i386/i686/multiarch/Makefile
43887         (CFLAGS-varshift.c): New variable.
43888
43889 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
43890
43891         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
43892         * sysdeps/i386/i686/multiarch/varshift.c: New file.
43893
43894         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
43895
43896         * sysdeps/x86_64/strlen.S: Minimal code improvement.
43897
43898 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
43899
43900         * sysdeps/x86_64/strlen.S: Unroll the loop.
43901         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43902         strlen-sse2 strlen-sse2-bsf.
43903         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
43904         __strlen_no_bsf if bit_Slow_BSF is set.
43905         (__strlen_sse42): Removed.
43906         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
43907         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
43908
43909 2010-08-25  Roland McGrath  <roland@redhat.com>
43910
43911         * sysdeps/x86_64/multiarch/varshift.S: File removed.
43912         * sysdeps/x86_64/multiarch/varshift.c: New file.
43913         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
43914         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
43915         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
43916         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
43917
43918 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
43919
43920         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43921         strlen-sse2 strlen-sse2-bsf.
43922         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
43923         __strlen_sse2_bsf if bit_Slow_BSF is unset.
43924         (__strlen_sse2): Removed.
43925         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
43926         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
43927         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
43928         bit_Slow_BSF for Atom.
43929         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
43930         (index_Slow_BSF): Define.
43931         (HAS_SLOW_BSF): Define.
43932
43933 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
43934
43935         [BZ #10851]
43936         * resolv/res_init.c (__res_vinit): When no server address at all
43937         is given default to loopback.
43938
43939 2010-08-24  Roland McGrath  <roland@redhat.com>
43940
43941         * configure.in: Remove config-name.h generation.
43942         * configure: Regenerated.
43943         * config-name.in: File removed.
43944         * scripts/config-uname.sh: New file.
43945         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
43946         ($(objdir)config-name.h): New target.
43947
43948         * sunrpc/rpc_parse.h: Avoid nested comment.
43949
43950 2010-08-24  Richard Henderson  <rth@redhat.com>
43951             Ulrich Drepper  <drepper@redhat.com>
43952             H.J. Lu  <hongjiu.lu@intel.com>
43953
43954         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
43955         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
43956         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
43957         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
43958         _mm_alignr_epi8 with _mm_loadu_si128.
43959         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
43960         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
43961         (__m128i_shift_right): Removed.
43962         * sysdeps/i386/i686/multiarch/varshift.h: New file.
43963         * sysdeps/i386/i686/multiarch/varshift.S: New file.
43964         * sysdeps/x86_64/multiarch/varshift.h: New file.
43965         * sysdeps/x86_64/multiarch/varshift.S: New file.
43966
43967 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
43968
43969         * configure.in: Move assembler checks to before sysdep dir checking.
43970
43971 2010-08-20  Petr Baudis  <pasky@suse.cz>
43972
43973         * LICENSES: Sync the sunrpc license.
43974
43975 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
43976
43977         * sunrpc/auth_des.c: Update copyright notice once again.
43978         * sunrpc/auth_none.c: Likewise.
43979         * sunrpc/auth_unix.c: Likewise.
43980         * sunrpc/authdes_prot.c: Likewise.
43981         * sunrpc/authuxprot.c: Likewise.
43982         * sunrpc/bindrsvprt.c: Likewise.
43983         * sunrpc/clnt_gen.c: Likewise.
43984         * sunrpc/clnt_perr.c: Likewise.
43985         * sunrpc/clnt_raw.c: Likewise.
43986         * sunrpc/clnt_simp.c: Likewise.
43987         * sunrpc/clnt_tcp.c: Likewise.
43988         * sunrpc/clnt_udp.c: Likewise.
43989         * sunrpc/clnt_unix.c: Likewise.
43990         * sunrpc/des_crypt.c: Likewise.
43991         * sunrpc/des_soft.c: Likewise.
43992         * sunrpc/get_myaddr.c: Likewise.
43993         * sunrpc/getrpcport.c: Likewise.
43994         * sunrpc/key_call.c: Likewise.
43995         * sunrpc/key_prot.c: Likewise.
43996         * sunrpc/openchild.c: Likewise.
43997         * sunrpc/pm_getmaps.c: Likewise.
43998         * sunrpc/pm_getport.c: Likewise.
43999         * sunrpc/pmap_clnt.c: Likewise.
44000         * sunrpc/pmap_prot.c: Likewise.
44001         * sunrpc/pmap_prot2.c: Likewise.
44002         * sunrpc/pmap_rmt.c: Likewise.
44003         * sunrpc/rpc/auth.h: Likewise.
44004         * sunrpc/rpc/auth_unix.h: Likewise.
44005         * sunrpc/rpc/clnt.h: Likewise.
44006         * sunrpc/rpc/des_crypt.h: Likewise.
44007         * sunrpc/rpc/key_prot.h: Likewise.
44008         * sunrpc/rpc/netdb.h: Likewise.
44009         * sunrpc/rpc/pmap_clnt.h: Likewise.
44010         * sunrpc/rpc/pmap_prot.h: Likewise.
44011         * sunrpc/rpc/pmap_rmt.h: Likewise.
44012         * sunrpc/rpc/rpc.h: Likewise.
44013         * sunrpc/rpc/rpc_des.h: Likewise.
44014         * sunrpc/rpc/rpc_msg.h: Likewise.
44015         * sunrpc/rpc/svc.h: Likewise.
44016         * sunrpc/rpc/svc_auth.h: Likewise.
44017         * sunrpc/rpc/types.h: Likewise.
44018         * sunrpc/rpc/xdr.h: Likewise.
44019         * sunrpc/rpc_clntout.c: Likewise.
44020         * sunrpc/rpc_cmsg.c: Likewise.
44021         * sunrpc/rpc_common.c: Likewise.
44022         * sunrpc/rpc_cout.c: Likewise.
44023         * sunrpc/rpc_dtable.c: Likewise.
44024         * sunrpc/rpc_hout.c: Likewise.
44025         * sunrpc/rpc_main.c: Likewise.
44026         * sunrpc/rpc_parse.c: Likewise.
44027         * sunrpc/rpc_parse.h: Likewise.
44028         * sunrpc/rpc_prot.c: Likewise.
44029         * sunrpc/rpc_sample.c: Likewise.
44030         * sunrpc/rpc_scan.c: Likewise.
44031         * sunrpc/rpc_scan.h: Likewise.
44032         * sunrpc/rpc_svcout.c: Likewise.
44033         * sunrpc/rpc_tblout.c: Likewise.
44034         * sunrpc/rpc_util.c: Likewise.
44035         * sunrpc/rpc_util.h: Likewise.
44036         * sunrpc/rpcinfo.c: Likewise.
44037         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
44038         * sunrpc/rpcsvc/key_prot.x: Likewise.
44039         * sunrpc/rpcsvc/klm_prot.x: Likewise.
44040         * sunrpc/rpcsvc/mount.x: Likewise.
44041         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
44042         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
44043         * sunrpc/rpcsvc/rex.x: Likewise.
44044         * sunrpc/rpcsvc/rstat.x: Likewise.
44045         * sunrpc/rpcsvc/rusers.x: Likewise.
44046         * sunrpc/rpcsvc/sm_inter.x: Likewise.
44047         * sunrpc/rpcsvc/spray.x: Likewise.
44048         * sunrpc/rpcsvc/yppasswd.x: Likewise.
44049         * sunrpc/rtime.c: Likewise.
44050         * sunrpc/svc.c: Likewise.
44051         * sunrpc/svc_auth.c: Likewise.
44052         * sunrpc/svc_authux.c: Likewise.
44053         * sunrpc/svc_raw.c: Likewise.
44054         * sunrpc/svc_run.c: Likewise.
44055         * sunrpc/svc_simple.c: Likewise.
44056         * sunrpc/svc_tcp.c: Likewise.
44057         * sunrpc/svc_udp.c: Likewise.
44058         * sunrpc/svc_unix.c: Likewise.
44059         * sunrpc/svcauth_des.c: Likewise.
44060         * sunrpc/xcrypt.c: Likewise.
44061         * sunrpc/xdr.c: Likewise.
44062         * sunrpc/xdr_array.c: Likewise.
44063         * sunrpc/xdr_float.c: Likewise.
44064         * sunrpc/xdr_mem.c: Likewise.
44065         * sunrpc/xdr_rec.c: Likewise.
44066         * sunrpc/xdr_ref.c: Likewise.
44067         * sunrpc/xdr_sizeof.c: Likewise.
44068         * sunrpc/xdr_stdio.c: Likewise.
44069
44070         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
44071         handling.
44072
44073 2010-08-19  Andreas Schwab  <schwab@redhat.com>
44074
44075         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
44076
44077 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
44078
44079         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
44080         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
44081         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
44082         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
44083         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
44084         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
44085         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
44086         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
44087         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
44088         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
44089         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
44090         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
44091         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
44092         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
44093
44094 2010-07-26  Anton Blanchard  <anton@samba.org>
44095
44096         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
44097         * malloc/arena.c (heap_trim): Likewise.
44098
44099 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
44100
44101         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
44102         here.  Not...
44103         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
44104         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
44105
44106 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
44107
44108         * sysdeps/i386/elf/Makefile: New file.
44109
44110 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
44111
44112         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
44113         from fanotify_init.
44114         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
44115         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
44116
44117 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
44118
44119         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
44120         of strncasecmp_l.
44121         * sysdeps/multiarch/strcmp.S: Likewise.
44122
44123 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
44124
44125         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
44126         strncase_l-nonascii.
44127         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
44128         Add strncase_l-ssse3.
44129         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
44130         * sysdeps/x86_64/strcmp.S: Likewise.
44131         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
44132         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
44133         * sysdeps/x86_64/strncase.S: New file.
44134         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
44135         * sysdeps/x86_64/strncase_l.S: New file.
44136         * string/Makefile (strop-tests): Add strncasecmp.
44137         * string/test-strncasecmp.c: New file.
44138
44139         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
44140         warning.
44141
44142         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
44143         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
44144
44145 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
44146
44147         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
44148
44149 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
44150
44151         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
44152         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
44153         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
44154
44155 2010-05-01  Alan Modra  <amodra@gmail.com>
44156
44157         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
44158         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
44159         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
44160         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
44161         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
44162         tidying.  Don't tail-call __sigjmp_save for static lib.
44163         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
44164         save location.
44165         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
44166         (CALL_MCOUNT): Add eh info, and nop after bl.
44167         (TAIL_CALL_SYSCALL_ERROR): New macro.
44168         (PSEUDO_RET): Use it.
44169         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
44170         Correct save location of integer regs and cr.
44171         (_dl_profile_resolve): Correct cr save location.  Delete nops
44172         after bl when SHARED.  Reduce cfi size a little by better
44173         placement of cfi directives.
44174         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
44175         make a stack frame.  Instead use parm save area as a temp.
44176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
44177         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
44178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
44179         Don't make a stack frame for parent, use parm save area.
44180         Increase child stack frame to 112 bytes.  Don't save unused reg,
44181         and adjust reg usage.  Set up cfi on error recovery and
44182         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
44183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
44184         (__makecontext): Add dummy nop after jump to exit.
44185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
44186         Use correct parm save area and cr save, reduce stack frame.
44187         Correct cfi for possible PSEUDO_RET frame setup.
44188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
44189         Branch to local label emitted by PSEUDO_RET rather than
44190         __syscall_error.
44191
44192 2010-08-12  Andreas Schwab  <schwab@redhat.com>
44193
44194         [BZ #11904]
44195         * locale/programs/locale.c (print_assignment): New function.
44196         (show_locale_vars): Use it.
44197
44198 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
44199
44200         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
44201         field.
44202         (struct statfs64): Likewise.
44203         (_STATFS_F_FLAGS): Define.
44204         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
44205         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
44206         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
44207         (ST_VALID): Define locally.
44208         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
44209         __statvfs_getflags, use the provided value.
44210         * sysdeps/unix/sysv/linux/kernel-features.h: Define
44211         __ASSUME_STATFS_F_FLAGS.
44212
44213         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
44214
44215         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
44216         Add sys/fanotify.h.
44217         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
44218         fanotify_mask for GLIBC_2.13.
44219         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
44220         fanotify_init and fanotify_mark.
44221         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
44222         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
44223
44224         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
44225         Add prlimit.
44226         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
44227         prlimit64 for GLIBC_2.13.
44228         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
44229         prlimit64.
44230         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
44231         syscall.
44232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
44233         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
44234         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
44235         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
44236         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
44237         add prlimit alias.
44238         * sysdeps/unix/sysv/linux/prlimit.c: New file.
44239
44240         [BZ #11903]
44241         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
44242         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
44243
44244         * nss/Makefile: Add rules to build and run tst-nss-test1.
44245         * shlib-versions: Add entry for libnss_test1.
44246         * nss/nss_test1.c: New file.
44247         * nss/tst-nss-test1.c: New file.
44248
44249         * nss/nsswitch.c (__nss_database_custom): Define new variable.
44250         (__nss_configure_lookup): Set appropriate entry in
44251         __nss_configure_lookup to true.
44252         * nss/nsswitch.h: Define enum with indeces of databases in
44253         databases and __nss_database_custom arrays.  Declare
44254         __nss_database_custom.
44255         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
44256         to avoid using nscd when custom rules are installed.
44257         * nss/getXXbyYY_r.c: Likewise.
44258         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44259
44260         * nss/nss_files/files-parse.c: Whitespace fixes.
44261
44262 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
44263
44264         [BZ #11883]
44265         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
44266         * posix/fnmatch_loop.c: Likewise.
44267
44268 2010-07-17  Andi Kleen  <ak@linux.intel.com>
44269
44270         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
44271         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
44272         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
44273         * Versions.def [GLIBC_2.13]: Add.
44274
44275 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
44276
44277         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
44278         Also fail if tpwd after pwuid call is NULL.
44279
44280 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44281
44282         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
44283         when converting to ms.
44284
44285 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44286
44287         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
44288         EOPNOTSUPP errors with ENOTTY.
44289         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
44290         EOPNOTSUPP errors with ENOTTY.
44291
44292 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
44293
44294         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
44295         Add strcasecmp_l-ssse3.
44296         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
44297         strcasecmp.
44298         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
44299         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
44300         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
44301
44302 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
44303
44304         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
44305
44306         * string/Makefile (strop-tests): Add strcasecmp.
44307         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
44308         strcasecmp_l-nonascii.
44309         (gen-as-const-headers): Add locale-defines.sym.
44310         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
44311         * sysdeps/x86_64/strcasecmp.S: New file.
44312         * sysdeps/x86_64/strcasecmp_l.S: New file.
44313         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
44314         * sysdeps/x86_64/locale-defines.sym: New file.
44315         * string/test-strcasecmp.c: New file.
44316
44317         * string/test-strcasestr.c: Test both ends of the range of characters.
44318         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
44319
44320 2010-07-29  Roland McGrath  <roland@redhat.com>
44321
44322         [BZ #11856]
44323         * manual/locale.texi (Yes-or-No Questions): Fix example code.
44324
44325 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
44326
44327         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
44328         for ld.so.
44329
44330 2010-07-27  Andreas Schwab  <schwab@redhat.com>
44331
44332         * manual/memory.texi (Malloc Tunable Parameters): Document
44333         M_PERTURB.
44334
44335 2010-07-26  Roland McGrath  <roland@redhat.com>
44336
44337         [BZ #11840]
44338         * configure.in (-fgnu89-inline check): Set and substitute
44339         gnu89_inline, not libc_cv_gnu89_inline.
44340         * configure: Regenerated.
44341         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
44342
44343 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
44344
44345         * string/test-strnlen.c: New file.
44346         * string/Makefile (strop-tests): Add strnlen.
44347         * string/tester.c (test_strnlen): Add a few more test cases.
44348         * string/tst-strlen.c: Better error reporting.
44349
44350         * sysdeps/x86_64/strnlen.S: New file.
44351
44352 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
44353
44354         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
44355         lower-latency instructions.
44356
44357 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
44358
44359         * string/test-strcasestr.c: New file.
44360         * string/test-strstr.c: New file.
44361         * string/Makefile (strop-tests): Add strstr and strcasestr.
44362         * string/str-two-way.h: Don't undefine MAX.
44363         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
44364
44365 2010-07-21  Andreas Schwab  <schwab@redhat.com>
44366
44367         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44368         strcasestr-nonascii.
44369         (CFLAGS-strcasestr-nonascii.c): Define.
44370         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
44371         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
44372         Remove unused attribute.
44373
44374 2010-07-20  Roland McGrath  <roland@redhat.com>
44375
44376         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
44377         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
44378         ld.so.cache was broken.  With it, there is no way to disable dsocaps
44379         like LD_HWCAP_MASK can disable hwcaps.
44380
44381 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
44382
44383         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
44384
44385 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
44386
44387         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
44388         call in strcasestr.
44389         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
44390         __strcasestr_sse42_nonascii.
44391         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
44392         strcasestr-nonascii.c.
44393         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
44394
44395 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
44396
44397         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
44398         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
44399         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
44400         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
44401
44402 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
44403
44404         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
44405         fcntl.
44406
44407 2010-07-06  Andreas Schwab  <schwab@redhat.com>
44408
44409         [BZ #11577]
44410         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
44411         dl_signal_cerror.
44412
44413 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
44414
44415         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
44416         _PC_PIPE_BUF using F_GETPIPE_SZ.
44417
44418 2010-07-05  Roland McGrath  <roland@redhat.com>
44419
44420         * manual/arith.texi (Rounding Functions): Fix rint description
44421         implicit in round description.
44422
44423 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
44424
44425         * elf/Makefile: Fix linking for a few tests to make recent linker
44426         happy.
44427
44428 2010-06-30  Andreas Schwab  <schwab@redhat.com>
44429
44430         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
44431         $(common-objpfx)libc_nonshared.a.
44432
44433 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
44434
44435         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
44436         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
44437         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
44438         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
44439         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
44440         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
44441         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
44442         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
44443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
44444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
44445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
44446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
44447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
44448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
44449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
44450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
44451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
44452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
44453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
44454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
44455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
44456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
44457         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
44458         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
44459         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
44460         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
44461         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
44462         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
44463         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
44464         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
44465         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
44466         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
44467         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
44468         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
44469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
44470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
44471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
44472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
44473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
44474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
44475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
44476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
44477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
44478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
44479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
44480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
44481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
44482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
44483
44484 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
44485
44486         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
44487         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
44488         * string/memmove.c (memmove): Renamed to ...
44489         (MEMMOVE): ...this.  Default to memmove.
44490         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
44491         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
44492         (END_CHK): Define.
44493         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44494         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
44495         mempcpy-ssse3-back memmove-ssse3-back.
44496         * sysdeps/x86_64/multiarch/bcopy.S: New file .
44497         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
44498         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
44499         * sysdeps/x86_64/multiarch/memcpy.S: New file.
44500         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
44501         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
44502         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
44503         * sysdeps/x86_64/multiarch/memmove.c: New file.
44504         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
44505         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
44506         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
44507         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
44508         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
44509         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
44510         Define.
44511         (index_Fast_Copy_Backward): Define.
44512         (HAS_ARCH_FEATURE): Define.
44513         (HAS_FAST_REP_STRING): Define.
44514         (HAS_FAST_COPY_BACKWARD): Define.
44515
44516 2010-06-21  Andreas Schwab  <schwab@redhat.com>
44517
44518         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
44519         Restore proper fallback handling.
44520
44521 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
44522
44523         [BZ #11701]
44524         * posix/group_member.c (__group_member): Correct checking loop.
44525
44526         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
44527         OOM in getpwuid_r correctly.  Return error number when the caller
44528         should return, otherwise -1.
44529         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
44530         call returning > 0 value.
44531         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
44532
44533 2010-06-07  Andreas Schwab  <schwab@redhat.com>
44534
44535         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
44536         libc_nonshared.a from targets in modules-names.
44537
44538 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
44539
44540         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
44541         requires it.
44542
44543 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
44544
44545         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
44546         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
44547         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
44548         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
44549
44550 2010-06-02  Andreas Schwab  <schwab@redhat.com>
44551
44552         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
44553
44554 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
44555
44556         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
44557         and F_GETPIPE_SZ.
44558         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
44559         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44560         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44561         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44562         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44563         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
44564
44565 2010-06-14  Roland McGrath  <roland@redhat.com>
44566
44567         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
44568
44569 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
44570
44571         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
44572         __REDIRECT followed by __THROW.
44573         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
44574         * posix/getopt.h (getopt): Likewise.
44575
44576 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
44577
44578         * hurd/lookup-at.c (__file_name_lookup_at): Accept
44579         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
44580         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
44581         in AT_FLAGS.
44582         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
44583         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
44584
44585 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
44586
44587         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
44588
44589 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
44590
44591         [BZ #11640]
44592         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44593         Properly check family and model.
44594
44595 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
44596
44597         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
44598
44599 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
44600
44601         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
44602
44603 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
44604
44605         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
44606         symbol reference.
44607
44608 2010-05-19  Andreas Schwab  <schwab@redhat.com>
44609
44610         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
44611         symbol reference.
44612
44613 2010-05-21  Andreas Schwab  <schwab@redhat.com>
44614
44615         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
44616         and internal_recvmmsg.
44617         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
44618         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
44619         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
44620         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
44621
44622         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
44623         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
44624         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
44625
44626 2010-05-20  Andreas Schwab  <schwab@redhat.com>
44627
44628         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
44629
44630 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
44631
44632         POWER7 optimizations.
44633         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
44634         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
44635
44636 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
44637
44638         * version.h: Update for 2.13 development version.
44639
44640 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
44641
44642         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
44643         exceptions.  Return 0.
44644
44645 2010-05-07  Roland McGrath  <roland@redhat.com>
44646
44647         * elf/ldconfig.c (main): Add a const.
44648
44649 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
44650
44651         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
44652         (args_options): Add no-idn option.
44653         (ahosts_keys_int): Add idn_flags to ai_flags.
44654         (parse_option): Handle 'i' option to clear idn_flags.
44655
44656         * malloc/malloc.c (_int_free): Possible race in the most recently
44657         added check.  Only act on the data if no current modification
44658         happened.
44659
44660 See ChangeLog.17 for earlier changes.