PowerPC: Consolidate NPTL/non versions of vfork
[platform/upstream/glibc.git] / ChangeLog
1 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2
3         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
4         <tcb-offsets.h>.
5         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
6         (__libc_vfork): New strong alias.
7         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
8         removed.
9         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
10         Removed.
11
12         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
13         <tcb-offsets.h>.
14         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
15         (__libc_vfork): New strong alias.
16         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
17         removed.
18         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
19         removed.
20
21 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
22
23         * malloc/malloc.c (mi_arena): New function.
24         (malloc_info): Remove nested function mi_arena. Call non-nosted
25         function mi_arena.
26
27 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28
29         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
30         by insrwi.
31         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
34         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
35         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
36         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
37         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
38
39 2014-05-26  Andreas Schwab  <schwab@suse.de>
40
41         [BZ #16984]
42         * locale/programs/repertoire.c (repertoire_read): Add slash
43         between I18NPATH element and file name.
44         * locale/programs/locfile.c (locfile_read): Likewise.
45
46 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
47
48         * nptl/pthread_mutexattr_settype.c
49         (__pthread_mutexattr_settype):
50         Disable lock elision for PTHREAD_MUTEX_NORMAL.
51
52 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
53
54         * nptl/tst-mutex5 (do_test):
55         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
56
57 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58
59         * benchtests/README: Document 'init' directive.
60         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
61         BENCH_INIT.
62         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
63         (parse_file): Recognize 'init' directive.
64
65 2014-05-26  Kyle McMartin  <kyle@redhat.com>
66
67         [BZ #16796]
68         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
69         alignment of struct pthread.
70
71 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
72
73         [BZ #16878]
74         * nscd/netgroupcache.c (addgetnetgrentX): Look for
75         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
76         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
77         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
78
79 2014-05-25  Richard Henderson  <rth@twiddle.net>
80
81         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
82         (SINGLE_THREAD_P_PIC): Remove.
83         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
84         (SINGLE_THREAD_P_PIC): Remove.
85
86         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
87         branch to syscall error ...
88         (PSEUDO): ... here.
89         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
90         from __local_syscall_error to .Lsyscall_error.
91         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
92         (SYSCALL_ERROR): Update label name.
93
94         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
95         Do not use DOARGS/UNDOARGS.
96         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
97         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
98         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
99         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
100         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
101
102         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
103         block comment.
104
105         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
106         define if !NOT_IN_libc.
107         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
108         define with non-default symbol versions.
109
110 2014-05-23  Richard Henderson  <rth@twiddle.net>
111
112         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
113         (vfork, __vfork): Define via compat_symbol.
114
115         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
116         [!HAVE_IFUNC] (vfork_compat): Remove.
117         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
118
119 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
120
121         [BZ #16978]
122         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
123         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
124         variable.
125
126 2014-05-23  Richard Henderson  <rth@twiddle.net>
127
128         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
129         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
130         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
131         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
132
133         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
134         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
135         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
136         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
137         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
138         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
139         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
140         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
141         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
142         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
143         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
144         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
145         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
146         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
147         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
148         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
149         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
150         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
151         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
152         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
153         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
154         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
155         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
156         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
157         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
158         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
159         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
160         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
161         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
162         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
163         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
164         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
165         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
166         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
167         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
168         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
169         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
170         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
171         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
172         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
173         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
174         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
175         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
176         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
177         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
178         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
179         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
180         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
181         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
182         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
183         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
184         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
185         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
186         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
187         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
188         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
189
190         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
191         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
192         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
193         before exiting on error.
194         (__libc_vfork): New strong alias.
195         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
196         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
197
198         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
199         that was previously under [RESET_PID].
200         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
201
202         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
203
204 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
205
206         [BZ #16977]
207         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
208         value when x - 1 is zero.
209         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
210         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
211         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
212         0.0L for an argument of 1.0L.
213         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
214         Likewise.
215         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
216         value when x - 1 is zero.
217         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
218         * sysdeps/i386/fpu/libm-test-ulps: Update.
219         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
220
221 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
222
223         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
224         alphasort and versionsort.
225
226 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
227
228         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
229         macro.
230         [copysignf]: Likewise.
231
232 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
233
234         * crypt/md5-crypt.c: Fix formatting.
235
236 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
237
238         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
239         (b64_from_24bit): New function.
240
241 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
242
243         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
244         libc_hidden_builtin_def to ifunc.
245         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
246         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
247
248 2014-05-21  Roland McGrath  <roland@hack.frob.com>
249
250         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
251         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
252
253 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
254
255         * nscd/Depend (linuxthreads): Remove.
256         (nptl): Add.
257         * resolv/Depend (linuxthreads): Remove.
258         * rt/Depend (linuxthreads): Remove.
259
260         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
261         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
262         $(common-objpfx)elf/.
263         (link-libc-before-gnulib): Likewise.
264         (elfobjdir): Remove variable.
265         * Makefile (install): Use $(elf-objpfx) instead of
266         $(common-objpfx)elf/.
267         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
268         $(elfobjdir)/.
269         (link-libc-deps): Likewise.
270         ($(common-objpfx)libc.so): Likewise.
271         ($(common-objpfx)linkobj/libc.so): Likewise.
272         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
273         instead of $(common-objpfx)elf/.
274         (symbolic-link-list): Likewise.
275         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
276         [$(cross-compiling) = no]: Likewise.
277         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
278         $(elfobjdir)/.
279         (static-gnulib-arch): Likewise.
280         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
281         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
282         $(common-objpfx)elf/.
283
284 2014-05-21  Richard Henderson  <rth@redhat.com>
285
286         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
287         (SINGLE_THREAD_P): Use the correct width load.  Fold
288         into the ldr offset.
289
290         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
291         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
292
293 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
294
295         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
296         (libgcc_s_resume): Use __attribute_used__.
297         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
298         Likewise.
299
300 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
301
302         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
303         optimization when used with float constants.
304
305         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
306
307 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
308
309         [BZ #16915]
310         * locale/nl_langinfo_l.c: Make direct reference to every
311         _nl_current_CATEGORY symbol.
312         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
313         (tests-static): Add tst-langinfo-static.
314         (tests-special): Add tst-langinfo-static.out.
315         ($(objpfx)tst-langinfo.out): Redirect output.
316         ($(objpfx)tst-langinfo-static.out): New.
317         * localedata/tst-langinfo.sh: Send output to stdout.
318         * localedata/tst-langinfo-static.c: New file.
319
320         [BZ #16965]
321         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
322         when the shift amount is modulo the limb size.
323
324 2014-05-20  Richard Henderson  <rth@redhat.com>
325
326         [BZ #16967]
327         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
328         Change type of sa_flags from unsigned int to int.
329
330         [BZ #16966]
331         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
332
333         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
334
335 2014-05-20  Will Newton  <will.newton@linaro.org>
336
337         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
338         Test the return value of the system call in the nocancel case.
339
340 2014-05-20  Will Newton  <will.newton@linaro.org>
341             Yvan Roux  <yvan.roux@linaro.org>
342
343         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
344         #include of asm/ptrace.h.
345         (PTRACE_GET_THREAD_AREA): Remove #undef.
346         (PTRACE_GETHBPREGS): Likewise.
347         (PTRACE_SETHBPREGS): Likewise.
348         (struct user_regs_struct): New structure.
349         (struct user_fpsimd_struct): New structure.
350         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
351         #include of asm/ptrace.h and second #include of sys/user.h.
352         (PTRACE_GET_THREAD_AREA): Remove #undef.
353         (PTRACE_GETHBPREGS): Likewise.
354         (PTRACE_SETHBPREGS): Likewise.
355         (ELF_NGREG): Use new struct user_regs_struct.
356         (elf_fpregset_t): Use new struct user_fpsimd_struct.
357
358 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
359
360         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
361         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
362
363 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
364
365         [BZ #16958]
366         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
367         membar to avoid block loads/stores to overlap previous stores.
368
369 2014-05-17  Richard Henderson  <rth@redhat.com>
370
371         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
372         Create the __##syscall_name##_nocancel entry point.
373         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
374         Remove; let the sysdep-cancel.h code create it.
375
376 2014-05-17  David S. Miller  <davem@davemloft.net>
377
378         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
379         Protect with __USE_GNU.
380         (TIOCSET_TEMPT): Likewise.
381         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
382         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
383         these are already provided in bits/ioctl-types.h
384
385 2014-05-16  Roland McGrath  <roland@hack.frob.com>
386
387         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
388         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
389
390         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
391         Use wait4 regardless of [__NR_waitpid].
392
393 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
394
395         PR libgcc/60166
396         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
397         (_FP_NANSIGN_Q): Set the quiet bit.
398
399 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
400
401         * benchtests/Makefile
402         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
403         not $(common-objpfx)math/libm.so.
404         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
405         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
406         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
407         $(common-objpfx)dlfcn/libdl.so.
408         ($(objpfx)tst-audit8): Depend on $(libm), not
409         $(common-objpfx)math/libm.so.
410         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
411         not $(common-objpfx)dlfcn/libdl.so.
412         * math/Makefile
413         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
414         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
415         [$(build-shared) = yes].
416         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
417         $(common-objpfx)nptl/libpthread.so.
418         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
419         $(common-objpfx)math/libm.so$(libm.so-version) or
420         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
421         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
422         $(common-objpfx)dlfcn/libdl.so.
423         * setjmp/Makefile (link-libm): Remove variable.
424         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
425         * stdio-common/Makefile (link-libm): Remove variable.
426         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
427         * stdlib/Makefile (link-libm): Remove variable.
428         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
429         ($(objpfx)tst-strtod-round): Likewise.
430         ($(objpfx)tst-tininess): Likewise.
431         ($(objpfx)tst-strtod-underflow): Likewise.
432         ($(objpfx)tst-strtod6): Likewise.
433         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
434         $(libdl), not $(common-objpfx)nptl/libpthread.so and
435         $(common-objpfx)dlfcn/libdl.so.
436
437 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
438
439         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
440         BSD terminal modes definitions.
441
442 2014-05-16  Roland McGrath  <roland@hack.frob.com>
443
444         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
445         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
446
447         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
448         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
449         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
450         Don't do #include_next.
451         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
452         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
453         Don't do #include_next.
454         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
455         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
456         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
457         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
458
459 2014-05-16  Allan McRae  <allan@archlinux.org>
460
461         * po/sv.po: Update Swedish translation from translation project.
462
463         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
464         in sed expression.
465
466 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
467
468         [BZ #16917]
469         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
470         errno if the TIOCGPTN ioctl fails with an error different than
471         EINVAL.
472         * login/tst-ptsname.c: New file.
473         * login/Makefile (tests): Add tst-ptsname.
474
475         [BZ #16943]
476         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
477         and prlimit64.
478
479 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
480
481         [BZ #16849]
482         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
483         herrno to return EAI_AGAIN.
484
485 2014-05-14  Roland McGrath  <roland@hack.frob.com>
486
487         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
488         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
489         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
490         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
491         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
492         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
493         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
494         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
495         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
496         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
497         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
498         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
499         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
500         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
501         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
502         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
503         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
504         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
505         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
506         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
507         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
508         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
509         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
510         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
511         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
512         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
513         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
514         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
515         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
516         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
517         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
518         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
519         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
520         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
521         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
522         Moved ...
523         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
524         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
525         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
526         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
527         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
528         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
529         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
530         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
531         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
532         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
533         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
534         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
535         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
536         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
537         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
538         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
539         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
540         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
541         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
542         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
543         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
544         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
545         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
546         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
547         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
548         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
549         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
550         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
551         Moved ...
552         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
553         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
554         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
555         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
556         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
557         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
558         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
559         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
560         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
561         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
562         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
563         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
564         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
565         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
566         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
567         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
568         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
569         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
570         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
571         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
572         Moved ...
573         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
574         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
575         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
576
577         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
578         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
579         (libpthread-sysdep_routines): Add elision-related stuff here instead.
580         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
581         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
582         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
583         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
584         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
585         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
586         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
587         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
588         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
589         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
590         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
591         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
592         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
593         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
594         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
595         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
596         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
597         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
598         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
599         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
600         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
601         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
602         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
603         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
604         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
605         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
606         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
607         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
608
609         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
610         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
611
612         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
613         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
614         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
615         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
616         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
617         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
618         Moved ...
619         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
620         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
621         Moved ...
622         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
623         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
624         Moved ...
625         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
626         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
627         Moved ...
628         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
629         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
630         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
631         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
632         Moved ...
633         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
634         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
635         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
636         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
637         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
638         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
639         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
640         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
641         Moved ...
642         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
643         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
644         Moved ...
645         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
646         ... here.
647         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
648         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
649         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
650         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
651         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
652         Moved ...
653         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
654         ... here.
655         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
656         Moved ...
657         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
658         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
659         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
660         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
661         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
662         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
663         Moved ...
664         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
665         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
666         Moved ...
667         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
668         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
669         Moved ...
670         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
671         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
672         Moved ...
673         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
674         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
675         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
676         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
677         Moved ...
678         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
679         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
680         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
681         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
682         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
683         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
684         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
685         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
686         Moved ...
687         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
688         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
689         Moved ...
690         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
691         ... here.
692         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
693         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
694         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
695         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
696         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
697         Moved ...
698         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
699         ... here.
700         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
701         Moved ...
702         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
703         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
704         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
705         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
706         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
707         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
708         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
709         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
710         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
711         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
712         Moved ...
713         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
714         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
715         Moved ...
716         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
717         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
718         Moved ...
719         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
720         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
721         Moved ...
722         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
723         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
724         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
725         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
726         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
727         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
728         Moved ...
729         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
730         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
731         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
732         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
733         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
734         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
735         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
736         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
737         Moved ...
738         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
739         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
740         Moved ...
741         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
742         ... here.
743         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
744         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
745         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
746         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
747         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
748         Moved ...
749         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
750         ... here.
751         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
752         Moved ...
753         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
754         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
755         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
756         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
757         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
758         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
759         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
760         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
761         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
762         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
763         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
764
765         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
766         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
767
768         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
769         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
770
771         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
772         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
773         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
774         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
775         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
776         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
777         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
778         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
779         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
780         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
781         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
782         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
783         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
784         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
785         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
786         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
787         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
788         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
789         Moved ...
790         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
791         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
792         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
793         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
794         Moved ...
795         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
796         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
797         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
798         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
799         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
800         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
801         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
802         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
803         Moved ...
804         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
805         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
806         Moved ...
807         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
808         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
809         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
810         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
811         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
812         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
813         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
814         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
815         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
816         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
817         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
818         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
819         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
820         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
821         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
822         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
823         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
824
825         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
826         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
827         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
828         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
829         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
830
831         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
832         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
833         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
834         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
835         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
836         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
837         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
838         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
839         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
840         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
841
842         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
843         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
844
845         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
846         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
847         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
848         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
849         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
850         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
851         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
852         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
853         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
854         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
855         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
856         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
857         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
858         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
859         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
860         Update #include.
861         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
862         Likewise.
863         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
864         Likewise.
865         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
866         Likewise.
867         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
868         Likewise.
869         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
870         Likewise.
871         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
872         Likewise.
873         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
874         Likewise.
875         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
876         Likewise.
877         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
878         Likewise.
879         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
880         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
881         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
882         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
883         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
884         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
885         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
886         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
887         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
888         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
889         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
890         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
891         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
892         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
893         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
894
895         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
896         that was previously under [RESET_PID].
897         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
898         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
899         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
900
901         * sysdeps/i386/nptl/Implies: New file.
902         * sysdeps/x86_64/nptl/Implies: New file.
903         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
904         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
905         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
906         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
907
908         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
909         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
910         (__libc_vfork): New strong alias.
911         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
912         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
913
914         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
915         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
916         (__libc_vfork): New strong alias.
917         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
918         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
919
920         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
921         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
922         (__libc_vfork): New strong alias.
923         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
924         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
925         * nptl/pt-vfork.c: New file.
926         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
927         (libpthread: GLIBC_2.20): New version set (empty).
928
929 2014-05-14  Will Newton  <will.newton@linaro.org>
930
931         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
932         rather than #if.
933
934 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
935
936         [BZ #16564]
937         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
938         arguments with exponent 65 or above.
939         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
940         arguments 0x1p113L or above.
941         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
942         to arguments 0x1p107L or above.
943         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
944         positive arguments with exponent 65 or above.
945         * math/auto-libm-test-in: Add more tests of log1p.
946         * math/auto-libm-test-out: Regenerated.
947
948         [BZ #16928]
949         * math/s_cacos.c (__cacos): Ensure zero real part of result from
950         non-finite arguments is +0.
951         * math/s_cacosf.c (__cacosf): Likewise.
952         * math/s_cacosl.c (__cacosl): Likewise.
953         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
954         * sysdeps/i386/fpu/libm-test-ulps: Update.
955         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
956
957         [BZ #16927]
958         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
959         value.
960         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
961         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
962         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
963         for explicit high bit of mantissa when testing for argument equal
964         to 1.
965         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
966         * sysdeps/i386/fpu/libm-test-ulps: Update.
967         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
968
969         [BZ #16516]
970         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
971         (__erf): Scale by 16 instead of 8 in potentially underflowing
972         case.  Ensure exception if result actually underflows.
973         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
974         (__erff): Scale by 16 instead of 8 in potentially underflowing
975         case.  Ensure exception if result actually underflows.
976         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
977         (efx8): Remove variable.
978         (__erfl): Scale by 16 instead of 8 in potentially underflowing
979         case.  Ensure exception if result actually underflows.
980         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
981         (efx8): Remove variable.
982         (__erfl): Scale by 16 instead of 8 in potentially underflowing
983         case.  Ensure exception if result actually underflows.
984         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
985         (efx8): Remove variable.
986         (__erfl): Scale by 16 instead of 8 in potentially underflowing
987         case.  Ensure exception if result actually underflows.
988         * math/auto-libm-test-in: Add more tests of erf.
989         * math/auto-libm-test-out: Regenerated.
990
991 2014-05-14  Andreas Schwab  <schwab@suse.de>
992
993         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
994         Remove code conditionalized on USE___THREAD.
995
996         * config.h.in (HAVE_PT_CHOWN): Define as 0.
997         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
998         not definedness.
999
1000 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
1001
1002         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
1003         Define unconditionally.
1004         (__ASSUME_O_CLOEXEC): Likewise.
1005         (__ASSUME_SOCK_CLOEXEC): Likewise.
1006         (__ASSUME_IN_NONBLOCK): Likewise.
1007         (__ASSUME_PIPE2): Likewise.
1008         (__ASSUME_EVENTFD2): Likewise.
1009         (__ASSUME_SIGNALFD4): Likewise.
1010         (__ASSUME_DUP3): Likewise.
1011         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
1012         (__ASSUME_DUP3): Do not define.
1013         (__ASSUME_EVENTFD2): Likewise.
1014         (__ASSUME_IN_NONBLOCK): Likewise.
1015         (__ASSUME_O_CLOEXEC): Likewise.
1016         (__ASSUME_PIPE2): Likewise.
1017         (__ASSUME_SIGNALFD4): Likewise.
1018         (__ASSUME_SOCK_CLOEXEC): Likewise.
1019         (__ASSUME_UTIMES): Undefine.
1020         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1021         (__ASSUME_UTIMES): Do not define.
1022         (__ASSUME_O_CLOEXEC): Likewise.
1023         (__ASSUME_SOCK_CLOEXEC): Likewise.
1024         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
1025         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
1026         0x020621].
1027         (__ASSUME_PIPE2): Likewise.
1028         (__ASSUME_EVENTFD2): Likewise.
1029         (__ASSUME_SIGNALFD4): Likewise.
1030         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
1031         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
1032         Do not define.
1033         (__ASSUME_EVENTFD2): Likewise.
1034         (__ASSUME_SIGNALFD4): Likewise.
1035         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
1036         (__ASSUME_32BITUIDS): Likewise.
1037         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
1038         (__ASSUME_IPC64): Likewise.
1039         (__ASSUME_ST_INO_64_BIT): Likewise.
1040         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
1041         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
1042         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
1043         (__ASSUME_UTIMES): Do not define.
1044         (__ASSUME_PSELECT): Likewise.
1045         (__ASSUME_PPOLL): Likewise.
1046         (__ASSUME_O_CLOEXEC): Likewise.
1047         (__ASSUME_SOCK_CLOEXEC): Likewise.
1048         (__ASSUME_IN_NONBLOCK): Likewise.
1049         (__ASSUME_PIPE2): Likewise.
1050         (__ASSUME_EVENTFD2): Likewise.
1051         (__ASSUME_SIGNALFD4): Likewise.
1052         (__ASSUME_DUP3): Likewise.
1053         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1054         (__ASSUME_UTIMES): Likewise.
1055         (__ASSUME_O_CLOEXEC): Likewise.
1056         (__ASSUME_SOCK_CLOEXEC): Likewise.
1057         (__ASSUME_IN_NONBLOCK): Likewise.
1058         (__ASSUME_PIPE2): Likewise.
1059         (__ASSUME_EVENTFD2): Likewise.
1060         (__ASSUME_SIGNALFD4): Likewise.
1061         (__ASSUME_DUP3): Likewise.
1062         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1063         (__ASSUME_UTIMES): Likewise.
1064         (__ASSUME_O_CLOEXEC): Likewise.
1065         (__ASSUME_SOCK_CLOEXEC): Likewise.
1066         (__ASSUME_IN_NONBLOCK): Likewise.
1067         (__ASSUME_PIPE2): Likewise.
1068         (__ASSUME_EVENTFD2): Likewise.
1069         (__ASSUME_SIGNALFD4): Likewise.
1070         (__ASSUME_DUP3): Likewise.
1071         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
1072         Likewise.
1073         (__ASSUME_UTIMES): Likewise.
1074         (__ASSUME_EVENTFD2): Likewise.
1075         (__ASSUME_SIGNALFD4): Likewise.
1076         * sysdeps/unix/sysv/linux/tile/kernel-features.h
1077         (__ASSUME_O_CLOEXEC): Likewise.
1078         (__ASSUME_SOCK_CLOEXEC): Likewise.
1079         (__ASSUME_IN_NONBLOCK): Likewise.
1080         (__ASSUME_PIPE2): Likewise.
1081         (__ASSUME_EVENTFD2): Likewise.
1082         (__ASSUME_SIGNALFD4): Likewise.
1083         (__ASSUME_DUP3): Likewise.
1084         (__ASSUME_UTIMES): Undefine.
1085
1086         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
1087         feclearexcept.  Remove symbol versioning code.
1088         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
1089         symbol versioning code.
1090         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
1091         symbol versioning code.
1092         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
1093         feupdateenv.  Remove symbol versioning code.
1094         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
1095         fegetexceptflag.  Remove symbol versioning code.
1096         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
1097         fesetexceptflag.  Remove symbol versioning code.
1098         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
1099         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
1100         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
1101         (__posix_fadvise64_l32): Remove prototype.
1102         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
1103         code.
1104
1105 2014-05-13  Roland McGrath  <roland@hack.frob.com>
1106
1107         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
1108         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
1109         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
1110         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
1111
1112 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
1113
1114         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
1115         current working directory
1116
1117 2014-05-13  Roland McGrath  <roland@hack.frob.com>
1118
1119         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
1120         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
1121         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
1122         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
1123         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
1124         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
1125         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
1126         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
1127         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
1128         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
1129         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
1130         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
1131         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
1132         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
1133         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
1134         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
1135         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
1136         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
1137         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
1138         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
1139         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
1140         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
1141         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
1142         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
1143         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
1144         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
1145         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
1146         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
1147         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
1148         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
1149         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
1150         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
1151         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
1152         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
1153         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
1154         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
1155         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
1156         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
1157         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
1158         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
1159         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
1160         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
1161
1162         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
1163         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
1164
1165         * sysdeps/unix/sysv/linux/arm/Makefile
1166         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
1167         Add rt-aeabi_unwind_cpp_pr1.
1168         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
1169         Add nptl-aeabi_unwind_cpp_pr1.
1170         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
1171         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
1172         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
1173         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
1174         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
1175         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
1176
1177         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
1178         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
1179         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
1180         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
1181
1182         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
1183         Deconditionalize the code that was previously under [RESET_PID].
1184         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
1185
1186         * sysdeps/generic/exit-thread.h: New file.
1187         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
1188         * include/unistd.h (__exit_thread): Remove declaration.
1189         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
1190         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
1191         * csu/libc-start.c: Include <exit-thread.h>.
1192         (LIBC_START_MAIN): Pass no argument to __exit_thread.
1193         * nptl/pthread_create.c: Include <exit-thread.h>.
1194         (start_thread): Call __exit_thread in place of __exit_thread_inline.
1195         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
1196         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
1197         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
1198         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
1199         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
1200         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
1201         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
1202         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
1203         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
1204         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
1205         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
1206         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
1207         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
1208         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
1209         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
1210         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
1211
1212 2014-05-13  Andreas Schwab  <schwab@suse.de>
1213
1214         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
1215
1216 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
1217
1218         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
1219         (__ASSUME_UTIMES): Do not condition on kernel version.
1220         (__ASSUME_PSELECT): Define unconditionally.
1221         (__ASSUME_PPOLL): Likewise.
1222         (__ASSUME_ATFCTS): Likewise.
1223         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
1224         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
1225         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
1226         (__ASSUME_UTIMENSAT): Define unconditionally.
1227         (__ASSUME_PRIVATE_FUTEX): Likewise.
1228         (__ASSUME_FALLOCATE): Likewise.
1229         (__ASSUME_O_CLOEXEC): Likewise.
1230         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
1231         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
1232         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
1233         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
1234         (__ASSUME_IN_NONBLOCK): Likewise.
1235         (__ASSUME_PIPE2): Likewise.
1236         (__ASSUME_EVENTFD2): Likewise.
1237         (__ASSUME_SIGNALFD4): Likewise.
1238         (__ASSUME_DUP3): Likewise.
1239         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
1240         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
1241         (__ASSUME_AT_RANDOM): Likewise.
1242         (__ASSUME_PREADV): Likewise.
1243         (__ASSUME_PWRITEV): Likewise.
1244         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
1245         (__ASSUME_F_GETOWN_EX): Define unconditionally.
1246         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
1247         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1248         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
1249         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1250         (__ASSUME_O_CLOEXEC): Define unconditionally.
1251         (__ASSUME_PSELECT): Do not undefine conditionally.
1252         (__ASSUME_PPOLL): Likewise.
1253         (__ASSUME_ATFCTS): Likewise.
1254         (__ASSUME_SET_ROBUST_LIST): Likewise.
1255         (__ASSUME_UTIMENSAT): Likewise.
1256         (__ASSUME_FDATASYNC): Define unconditionally.
1257         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1258         (__ASSUME_SIGFRAME_V2): Likewise.
1259         )__ASSUME_EVENTFD2): Likewise.
1260         (__ASSUME_SIGNALFD4): Likewise.
1261         (__ASSUME_PSELECT): Do not undefine conditionally.
1262         (__ASSUME_PPOLL): Likewise.
1263         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
1264         (__ASSUME_PSELECT): Define unconditionally.
1265         (__ASSUME_PPOLL): Likewise.
1266         (__ASSUME_O_CLOEXEC): Likewise.
1267         (__ASSUME_SOCK_CLOEXEC): Likewise.
1268         (__ASSUME_IN_NONBLOCK): Likewise.
1269         (__ASSUME_PIPE2): Likewise.
1270         (__ASSUME_EVENTFD2): Likewise.
1271         (__ASSUME_SIGNALFD4): Likewise.
1272         (__ASSUME_DUP3): Likewise.
1273         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1274         (__ASSUME_O_CLOEXEC): Likewise.
1275         (__ASSUME_SOCK_CLOEXEC): Likewise.
1276         (__ASSUME_IN_NONBLOCK): Likewise.
1277         (__ASSUME_PIPE2): Likewise.
1278         (__ASSUME_EVENTFD2): Likewise.
1279         (__ASSUME_SIGNALFD4): Likewise.
1280         (__ASSUME_DUP3): Likewise.
1281         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1282         (__ASSUME_EVENTFD2): Likewise.
1283         (__ASSUME_SIGNALFD4): Likewise.
1284         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
1285
1286 2014-05-12  Andreas Schwab  <schwab@suse.de>
1287
1288         [BZ #16932]
1289         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
1290         (_nss_nis_gethostbyname4_r): Return error if item length is larger
1291         than maximum RPC packet size.
1292         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
1293         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
1294         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
1295         (_nss_nis_getservbyport_r): Likewise.
1296
1297 2014-05-12  Will Newton  <will.newton@linaro.org>
1298
1299         * malloc/Makefile (tests): Add tst-mallopt.
1300         * malloc/tst-mallopt.c: New file.
1301
1302 2014-05-09  Roland McGrath  <roland@hack.frob.com>
1303
1304         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
1305         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
1306
1307 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1308
1309         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
1310         (tst-tlsmod6.so): Likewise.
1311
1312 2014-05-09  Roland McGrath  <roland@hack.frob.com>
1313
1314         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
1315
1316 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
1317
1318         [BZ #16064]
1319         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
1320         and <dl-procinfo.h>.
1321         (__fegetenv): Save SSE state in envp->__eip if supported.
1322         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
1323         envp->__eip if supported.
1324         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
1325         and <dl-procinfo.h>.
1326         (__fesetenv): Always set __eip, __cs_selector, __opcode,
1327         __data_offset and __data_selector in environment to 0.  Set SSE
1328         state if supported.
1329         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
1330         test-fenv-sse.
1331         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
1332         -mfpmath=sse.
1333         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
1334
1335 2014-05-09  Will Newton  <will.newton@linaro.org>
1336
1337         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
1338         and libc_relro_required for ARM.
1339         * sysdeps/arm/preconfigure: Regenerate.
1340
1341 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1342             Stefan Liebler  <stli@linux.vnet.ibm.com>
1343
1344         * config.make.in (enable-lock-elision): New Makefile variable.
1345         * configure.ac: Likewise.
1346         * configure: Regenerate.
1347         * sysdeps/s390/configure.ac:
1348         Add check for gcc transactions support.
1349         * sysdeps/s390/configure: Regenerate.
1350         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
1351         Build elision files if enabled.
1352         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
1353         Add lock elision support for s390.
1354         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
1355         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
1356         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
1357         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
1358         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
1359         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
1360         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
1361         Likewise.
1362         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
1363         Likewise.
1364         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
1365         Likewise.
1366         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
1367         Likewise.
1368         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
1369         (__lll_timedlock_elision, __lll_lock_elision)
1370         (__lll_unlock_elision, __lll_trylock_elision)
1371         (lll_timedlock_elision, lll_lock_elision)
1372         (lll_unlock_elision, lll_trylock_elision): Add.
1373         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
1374         (pthread_mutex_t): Add lock elision support for s390.
1375
1376 2014-05-14  Wilco  <wdijkstr@arm.com>
1377
1378         * sysdeps/arm/fclrexcpt.c: Cleanup.
1379         * sysdeps/arm/fedisblxcpt.c: Cleanup.
1380         * sysdeps/arm/feenablxcpt.c: Cleanup.
1381         * sysdeps/arm/fegetenv.c: Cleanup.
1382         * sysdeps/arm/fegetexcept.c: Cleanup.
1383         * sysdeps/arm/fegetround.c: Cleanup.
1384         * sysdeps/arm/feholdexcpt.c: Cleanup.
1385         * sysdeps/arm/fesetenv.c: Cleanup.
1386         * sysdeps/arm/fesetround.c: Cleanup.
1387         * sysdeps/arm/feupdateenv.c: Cleanup.
1388         * sysdeps/arm/fgetexcptflg.c: Cleanup.
1389         * sysdeps/arm/fraiseexcpt.c: Cleanup.
1390         * sysdeps/arm/fsetexcptflg.c: Cleanup.
1391         * sysdeps/arm/ftestexcept.c: Cleanup.
1392         * sysdeps/arm/get-rounding-mode.h: Cleanup.
1393         * sysdeps/arm/setfpucw.c: Cleanup.
1394
1395 2014-05-09  Will Newton  <will.newton@linaro.org>
1396
1397         * sysdeps/arm/armv7/strcmp.S: New file.
1398         * NEWS: Mention addition of ARMv7 optimized strcmp.
1399
1400 2014-05-08  Roland McGrath  <roland@hack.frob.com>
1401
1402         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
1403         look for %.ac rather than %.in.
1404
1405         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
1406         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
1407         * sysdeps/mach/hurd/configure: Regenerated.
1408         * sysdeps/unix/sysv/linux/configure: Regenerated.
1409
1410         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
1411
1412 2014-05-07  Steve Ellcey  <sellcey@mips.com>
1413
1414         [BZ# 16922]
1415         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
1416         (LONG_SUB): Ditto.
1417         (PTR_SUB): Ditto.
1418
1419 2014-05-07  Andreas Schwab  <schwab@suse.de>
1420
1421         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
1422         when skipping over non-matching result from nscd.
1423
1424 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
1425
1426         [BZ #16876]
1427         * nptl/sockperf.c (client): Check socket return value.
1428
1429         [BZ #16877]
1430         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
1431         nscd security class.
1432
1433 2014-05-06  Roland McGrath  <roland@hack.frob.com>
1434
1435         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
1436         * sysdeps/arm/unwind.h: ... here.
1437
1438 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
1439
1440         [BZ# 16916]
1441         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
1442         Define.
1443
1444 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
1445
1446         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
1447         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
1448         multiarch strncpy for PPC64.
1449         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
1450         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
1451         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
1452         multiarch optimizations.
1453         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1454         (__libc_ifunc_impl_list): Likewise.
1455         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
1456         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
1457         multiarch stpncpy for PPC64.
1458         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
1459         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
1460
1461 2014-05-06  Andreas Schwab  <schwab@suse.de>
1462
1463         [BZ #16912]
1464         * gmon/mcount.c (_MCOUNT_DECL): Use
1465         atomic_compare_and_exchange_bool_acq instead of
1466         catomic_compare_and_exchange_bool_acq.
1467
1468 2014-05-05  Roland McGrath  <roland@hack.frob.com>
1469
1470         * elf/Makefile (others, install-bin): Remove pldd.
1471         (pldd-modules): Variable removed.
1472         ($(objpfx)pldd): Target removed.
1473         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
1474         (others, install-bin): Append pldd here.
1475         ($(objpfx)pldd): New target.
1476
1477         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
1478         to 0, so the first #if test emitted later doesn't see it undefined.
1479         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
1480         * sysdeps/gnu/errlist.c: Regenerated.
1481
1482 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1483
1484         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
1485         [libc_hidden_builtin_def]: Define to empty value.
1486         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
1487         [libc_hidden_builtin_def]: Likewise.
1488         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
1489         [libc_hidden_builtin_def]: Likewise.
1490         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
1491         [libc_hidden_builtin_def]: Likewise.
1492         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
1493         __redirect_memcpy and define ifunc as default hidden symbol.
1494         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
1495         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
1496
1497 2014-05-04  Adam Conrad  <adconrad@0c3.net>
1498
1499         * locale/iso-4217.def: Reintroduce XDR currency.
1500
1501 2014-05-04  Allan McRae  <allan@archlinux.org>
1502
1503         * po/eo.po: Update Esperanto translation from translation project.
1504
1505 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
1506
1507         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
1508         and FEATURE_INDEX_MAX to 1.
1509         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
1510
1511 2014-05-01  Steve Ellcey  <sellcey@mips.com>
1512
1513         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
1514         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
1515         * iconvdata/big5.c (ONE_DIRECTION): Define.
1516         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
1517         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
1518         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
1519         * iconvdata/cp932.c (ONE_DIRECTION): Define.
1520         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
1521         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
1522         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
1523         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
1524         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
1525         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
1526         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
1527         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
1528         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
1529         * iconvdata/gbk.c (ONE_DIRECTION): Define.
1530         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
1531         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
1532         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
1533         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
1534         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
1535         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
1536         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
1537         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
1538         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
1539         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
1540         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
1541         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
1542         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
1543         * iconvdata/iso646.c (ONE_DIRECTION): Define.
1544         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
1545         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
1546         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
1547         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
1548         * iconvdata/johab.c (ONE_DIRECTION): Define.
1549         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
1550         * iconvdata/sjis.c (ONE_DIRECTION): Define.
1551         * iconvdata/t.61.c (ONE_DIRECTION): Define.
1552         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
1553         * iconvdata/tscii.c (ONE_DIRECTION): Define.
1554         * iconvdata/uhc.c (ONE_DIRECTION): Define.
1555         * iconvdata/unicode.c (ONE_DIRECTION): Define.
1556         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
1557         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
1558         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
1559
1560 2014-05-01  Roland McGrath  <roland@hack.frob.com>
1561
1562         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
1563         (_IO_JUMPS_OFFSET): Define to 0.
1564
1565         * nptl/sysdeps/pthread/bits/libc-lock.h
1566         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
1567         (__libc_lock_define_initialized_recursive): Always define using
1568         initializer.  Modern compilers treat uninitialized (implicit zero) and
1569         explicit zero initializers the same (i.e. put the datum in bss).
1570
1571 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
1572
1573         * nscd/nscd-client.h: Include <string.h>.
1574
1575 2014-05-01  David S. Miller  <davem@davemloft.net>
1576
1577         [BZ #16885]
1578         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
1579         multiple zero bytes exist at the end of a string.
1580         Reported by Aurelien Jarno <aurelien@aurel32.net>
1581
1582         * string/test-strcmp.c (check): Add explicit test for situations where
1583         there are multiple zero bytes after the first.
1584
1585 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
1586
1587         [BZ #16890]
1588         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
1589         when compiling wprintf.
1590         * stdio-common/tstdiomisc.c (t3): New function.
1591         (main): Call it.
1592
1593 2014-05-01  Steve Ellcey  <sellcey@mips.com>
1594
1595         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
1596         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
1597         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
1598         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
1599
1600 2014-05-01  Steve Ellcey  <sellcey@mips.com>
1601
1602         * stdlib/longlong.h: Updated from GCC.
1603
1604 2014-05-01  Will Newton  <will.newton@linaro.org>
1605             Bernard Ogden  <bernie.ogden@linaro.org>
1606
1607         * NEWS: Update fixed bug list.
1608
1609         [BZ #15119]
1610         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
1611
1612 2014-04-30  David S. Miller  <davem@davemloft.net>
1613
1614         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
1615         (libc_feholdexcept_setround_sparc_ctx): New function.
1616         (libc_fesetenv_sparc_ctx): Likewise.
1617         (libc_feupdateenv_sparc_ctx): Likewise.
1618         (libc_feholdsetround_sparc_ctx): Likewise.
1619         (libc_feholdexcept_setround_ctx): Define.
1620         (libc_feholdexcept_setroundf_ctx): Likewise.
1621         (libc_feholdexcept_setroundl_ctx): Likewise.
1622         (libc_fesetenv_ctx): Likewise.
1623         (libc_fesetenvf_ctx): Likewise.
1624         (libc_fesetenvl_ctx): Likewise.
1625         (libc_feupdateenv_ctx): Likewise.
1626         (libc_feupdateenvf_ctx): Likewise.
1627         (libc_feupdateenvl_ctx): Likewise.
1628         (libc_feresetround_ctx): Likewise.
1629         (libc_feresetroundf_ctx): Likewise.
1630         (libc_feresetroundl_ctx): Likewise.
1631         (libc_feholdsetround_ctx): Likewise.
1632         (libc_feholdsetroundf_ctx): Likewise.
1633         (libc_feholdsetroundl_ctx): Likewise.
1634
1635         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
1636         with __USE_GNU instead of XOPEN cpp guards.
1637
1638         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
1639         0.
1640
1641         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
1642         with XOPEN cpp guards.
1643
1644 2014-04-30  Julian Brown  <julian@codesourcery.com>
1645
1646         [BZ #16888]
1647         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
1648         handling.
1649
1650 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
1651
1652         [BZ #9894]
1653         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
1654         Change to 2.6.32.
1655         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
1656         * sysdeps/unix/sysv/linux/configure: Regenerated.
1657         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
1658         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
1659         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
1660         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
1661         * README: Update reference to required Linux kernel version.
1662         * manual/install.texi (Linux): Update reference to required Linux
1663         kernel headers version.
1664         * INSTALL: Regenerated.
1665
1666         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
1667         header inclusion.
1668         [POSIX] (limits.h): Likewise.
1669         [POSIX] (math.h): Likewise.
1670         [POSIX] (sys/wait.h): Likewise.
1671         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
1672         function.
1673         [POSIX] (stddef.h): Do not allow header inclusion.
1674
1675 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1676
1677         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
1678
1679 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
1680
1681         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
1682         Return immediately after lll_futex_wake.
1683
1684 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1685
1686         [BZ #16791]
1687         * nscd/nscd-client.h (datahead_init_common): Initialize entire
1688         structure.
1689         (datahead_init_pos): Call datahead_init_common early.
1690         (datahead_init_neg): Likewise.
1691
1692         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
1693         datahead_init_neg): New functions.
1694         * nscd/aicache.c (addhstaiX): Use them.
1695         * nscd/grpcache.c (cache_addgr): Likewise.
1696         * nscd/hstcache.c (cache_addhst): Likewise.
1697         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1698         * nscd/netgroupcache.c (do_notfound): Likewise.
1699         (addgetnetgrentX): Likewise.
1700         (addinnetgrX): Likewise.
1701         * nscd/pwdcache.c (cache_addpw): Likewise.
1702         * nscd/servicescache.c (cache_addserv): Likewise.
1703
1704 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1705             Atsushi Onoe  <atsushi@onoe.org>
1706
1707         [BZ #14308]
1708         [BZ #12994]
1709         [BZ #13651]
1710         * resolv/res_query.c (__libc_res_nsearch): Return if at least
1711         one response is valid.
1712         * resolv/res_send.c (send_dg): Check for validity of other
1713         response if the current response is a referral.
1714
1715 2014-04-29  Steve Ellcey  <sellcey@mips.com>
1716
1717         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
1718
1719 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
1720
1721         [BZ #16823]
1722         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
1723         Always divide by positive zero when computing -Inf result.
1724         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
1725         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
1726
1727 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1728
1729         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
1730         FPSCR if value do not change.
1731         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1732         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
1733         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
1734         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
1735         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
1736         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
1737         function.
1738
1739 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
1740
1741         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
1742         * sysdeps/unix/sysv/linux/hppa: Move directory from
1743         ports/systeps/unix/sysv/linux/hppa.
1744         * README: Update listing for hppa-*-linux-gnu.
1745
1746 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
1747
1748         [BZ #16754]
1749         * manual/stdio.texi (Hook functions): Fix types of stream hook
1750         functions.
1751         [BZ #16854]
1752         * socket/sys/socket.h: Fix typo in comment.
1753
1754 2014-04-28  Wilco  <wdijkstr@arm.com>
1755
1756         * sysdeps/arm/fenv_private.h: New file.
1757         * sysdeps/arm/math_private.h: New file.
1758         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
1759
1760 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
1761
1762         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
1763         with __int128_t.
1764         (La_x86_64_retval): Likewise.
1765
1766 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
1767
1768         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
1769         fpsr if value didn't change.
1770         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
1771         to fpcr if value didn't change.
1772         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
1773         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
1774         fpsr or fpcr if value didn't change.
1775         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
1776         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
1777         fpcr if value didn't change.
1778         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
1779         to fpsr if value didn't change.
1780
1781 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1782
1783         * nptl/tst-sem3.c: Use test-skeleton.c
1784         (main): Rename to do_test.  Use return instead of
1785         exit.
1786         * nptl/tst-sem4.c: Use test-skeleton.c
1787         (main): Rename to do_test.
1788
1789 2014-04-22  David S. Miller  <davem@davemloft.net>
1790
1791         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
1792         (struct sigaction): New struct member __glibc_reserved0, change
1793         type of sa_flags to int.
1794
1795 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
1796
1797         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
1798         (COUNT_LEADING_ZEROS_0): Define for AArch64.
1799
1800 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1801
1802         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
1803         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
1804
1805 2014-04-22  Will Newton  <will.newton@linaro.org>
1806             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
1807
1808         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
1809         (__longjmp): Add longjmp and longjmp_target SystemTap
1810         probes.
1811         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
1812         (__sigsetjmp): Add setjmp SystemTap probe.
1813
1814 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
1815
1816         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
1817         match manual order.
1818
1819 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1820
1821         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
1822
1823         * sysdeps/powerpc/fpu/fenv_private.h
1824         (libc_feholdexcept_setroundl_ctx): Define to
1825         libc_feholdexcept_setround_ppc_ctx.
1826         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
1827         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
1828         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
1829         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
1830
1831 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
1832
1833         * sysdeps/aarch64/math-tests.h: New file.
1834
1835 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
1836
1837         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
1838         New.
1839         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1840         Check and set bit_AVX2_Usable.
1841         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
1842         macro.
1843         (bit_AVX2): Likewise.
1844         (index_AVX2_Usable): Likewise.
1845         (CPUID_AVX2): Likewise.
1846         (HAS_AVX2): Likewise.
1847
1848 2014-04-17  Will Newton  <will.newton@linaro.org>
1849
1850         * manual/setjmp.texi (System V contexts): Add note that
1851         calling setcontext on a context created by a call to a
1852         signal handler is undefined.  Update text to note that
1853         setcontext from a signal handler is possible but not
1854         recommended.
1855
1856         [BZ #16629]
1857         * stdlib/tst-setcontext.c: Include signal.h.
1858         (main): Check that the signal stack before and
1859         after swapcontext is the same.
1860
1861         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
1862         Re-implement to restore registers in user code and avoid
1863         rt_sigreturn system call.
1864
1865 2014-04-17  Wilco  <wdijkstr@arm.com>
1866
1867         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
1868         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
1869         * math/test-fenv.c: Skip exception trap tests on targets which only
1870         support non-stop mode.
1871
1872 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
1873             Wilco Dijkstra  <wilco.dijkstra@arm.com>
1874
1875         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
1876         (libc_feholdsetround_aarch64_ctx)
1877         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
1878         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
1879         (libc_feresetround_ctx, libc_feresetroundf_ctx)
1880         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
1881         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
1882         (libc_feresetround_noexl_ctx): Define.
1883
1884 2014-04-16  Richard Henderson  <rth@redhat.com>
1885
1886         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
1887
1888         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
1889         unwind tables.
1890
1891         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
1892         const from the non-libc, non-ldso copy.
1893
1894         * sysdeps/alpha/libm-test-ulps: Regenerate.
1895
1896 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
1897             Wilco Dijkstra  <wilco.dijkstra@arm.com>
1898
1899         * sysdeps/aarch64/fpu/math_private.h: New file.
1900
1901 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1902
1903         * sysdeps/aarch64/libm-test-ulps: Regenerate.
1904
1905 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
1906
1907         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
1908         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
1909         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1910         Intel MPX bound registers before _dl_profile_fixup.
1911         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
1912         registers after _dl_profile_fixup.  Save and restore bound
1913         registers bnd0/bnd1 when calling _dl_call_pltexit.
1914         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
1915         (LR_BND_OFFSET): Likewise.
1916         (LRV_BND0_OFFSET): Likewise.
1917         (LRV_BND1_OFFSET): Likewise.
1918
1919 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1920
1921         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
1922         to...
1923         * sysdeps/mach/hurd/i386/tls.h: ... here.
1924         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
1925         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
1926         fields.
1927
1928 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1929
1930         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
1931
1932 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
1933
1934         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
1935
1936 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
1937
1938         [BZ #14770]
1939         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
1940         * sysdeps/s390/configure: Regenerate.
1941
1942         [BZ #16824]
1943         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
1944         Set round-to-nearest internally to reduce error accumulation.
1945
1946 2014-04-16  Alan Modra  <amodra@gmail.com>
1947
1948         [BZ #16740]
1949         [BZ #16619]
1950         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
1951         * math/libm-test.inc (frexp_test_data): Add tests.
1952         * NEWS: Update fixed bug list.
1953
1954 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1955
1956         * benchtests/Makefile: Depend on libraries in build directory.
1957         (bench-math): Separate out math tests.
1958         (bench-pthread): Separate out pthread tests.
1959         (bench): Include math and pthread tests.
1960
1961 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
1962
1963         [BZ #16831]
1964         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
1965         _dl_debug_initialize.
1966
1967         * configure.ac: Remove SELinux header check.
1968         * configure: Regenerate.
1969         * nscd/selinux.c (perms): Array of const char* to permission names.
1970         (nscd_request_avc_has_perm): Call security_deny_unknown to find
1971         default policy. Call string_to_security_class and string_to_av_perm to
1972         translate strings. Enforce default policy and call avs_has_perm with
1973         results of translated strings.
1974
1975 2014-04-13  David S. Miller  <davem@davemloft.net>
1976
1977         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1978
1979 2014-04-12  Allan McRae  <allan@archlinux.org>
1980
1981         [BZ #16838]
1982         * manual/string.texi (Collation Functions): Fix qsort argument
1983         order in example.
1984         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
1985
1986 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
1987
1988         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
1989         Make the test a no-op if there are no exceptions defined.
1990
1991 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
1992
1993         * elf/Makefile (tests): make tst-dlopen-aout conditional on
1994         enable-hardcoded-path-in-tests
1995
1996 2014-04-11  Will Newton  <will.newton@linaro.org>
1997
1998         * benchtests/Makefile (extra-objs): Add json-lib.o.
1999         (bench-func): Tidy up JSON output.
2000         * benchtests/bench-skeleton.c: Include json-lib.h.
2001         (main): Use JSON library functions to do output of
2002         benchmark results.
2003         * benchtests/bench-timing-type.c (main): Output the
2004         timing type simply, leaving formatting to the user.
2005         * benchtests/json-lib.c: New file.
2006         * benchtests/json-lib.h: Likewise.
2007
2008 2014-04-11  Torvald Riegel  <triegel@redhat.com>
2009
2010         [BZ #15215]
2011         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
2012         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
2013         memory barriers.  Add comments.
2014         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
2015         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
2016         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
2017         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
2018         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
2019         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
2020
2021 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2022
2023         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
2024         * sysdeps/s390/s390-64/configure.ac: ... this ...
2025         * sysdeps/s390/configure.ac: ... to here.
2026         * sysdeps/s390/s390-32/configure: Delete file.
2027         * sysdeps/s390/s390-64/configure: Delete file.
2028         * sysdeps/s390/configure: Regenerate.
2029
2030 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
2031
2032         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
2033
2034 2014-04-11  Will Newton  <will.newton@linaro.org>
2035
2036         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
2037         to zero if it is not defined elsewhere.  (mtrim): Test
2038         the value of MALLOC_DEBUG with #if rather than #ifdef.
2039
2040 2014-04-10 Torvald Riegel  <triegel@redhat.com>
2041
2042         * benchtests/pthread_once-inputs: New file.
2043         * benchtests/pthread_once-source.c: New file.
2044         * benchtests/README: Update documentation.
2045
2046 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
2047             H.J. Lu  <hongjiu.lu@intel.com>
2048
2049         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
2050         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
2051         * sysdeps/x86_64/configure: Regenerated.
2052         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
2053         macro.
2054         (REGISTER_SAVE_RAX): Likewise.
2055         (REGISTER_SAVE_RCX): Likewise.
2056         (REGISTER_SAVE_RDX): Likewise.
2057         (REGISTER_SAVE_RSI): Likewise.
2058         (REGISTER_SAVE_RDI): Likewise.
2059         (REGISTER_SAVE_R8): Likewise.
2060         (REGISTER_SAVE_R9): Likewise.
2061         (REGISTER_SAVE_BND0): Likewise.
2062         (REGISTER_SAVE_BND1): Likewise.
2063         (REGISTER_SAVE_BND2): Likewise.
2064         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
2065         bound registers when calling _dl_fixup.
2066
2067 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2068
2069         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
2070         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
2071         of its definition.
2072         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
2073         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
2074         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
2075         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
2076         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
2077         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
2078         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
2079
2080 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
2081
2082         [BZ #15514]
2083         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
2084         pathconf(_PC_NAME_MAX).
2085
2086 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2087
2088         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
2089         Remove macro usage.
2090         (__PTHREAD_SPINS): Move definition to ...
2091         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
2092         (__PTHREAD_SPINS): ... here.
2093         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
2094         (__PTHREAD_SPIN): Likewise.
2095         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
2096         (__PTHREAD_SPIN): Likewise.
2097         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
2098         (__PTHREAD_SPIN): Likewise.
2099         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
2100         (__PTHREAD_SPIN): Likewise.
2101         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
2102         (__PTHREAD_SPIN): Likewise.
2103         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
2104         (__PTHREAD_SPIN): Likewise.
2105         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
2106         (__PTHREAD_SPIN): Likewise.
2107         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
2108         (__PTHREAD_SPIN): Likewise.
2109         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
2110         (__PTHREAD_SPIN): Likewise.
2111         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
2112         (__PTHREAD_SPIN): Likewise.
2113         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
2114         (__PTHREAD_SPIN): Likewise.
2115         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
2116         (__PTHREAD_SPIN): Likewise.
2117
2118         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2119         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
2120         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
2121         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
2122         imply folder.
2123         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
2124         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2125         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
2126         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
2127         correct imply path.
2128         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
2129         strlen symbol for non multi-arch builds.
2130         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
2131         missing hidden_def and weak_alias.
2132
2133 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
2134
2135         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
2136
2137 2014-04-07  Will Newton  <will.newton@linaro.org>
2138
2139         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
2140         and contents.  [!_LIBC] Remove #ifndef and contents.
2141         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
2142         * string/memccpy.c (__memccpy): Use ANSI prototype.
2143         * string/memfrob.c (memfrob): Likewise.
2144         * string/strcoll.c (STRCOLL): Likewise.
2145         * string/strlen.c (strlen): Likewise.
2146         * string/strtok.c (STRTOK): Likewise.
2147         * string/strcat.c: Remove unused #include of memcopy.h.
2148         (strcat): Use ANSI prototype.
2149         * string/strchr.c: Remove unused #include of memcopy.h.
2150         (strchr): Use ANSI prototype.
2151         * string/strcmp.c: Remove unused #include of memcopy.h.
2152         (strcmp): Use ANSI prototype.
2153         * string/strcpy.c: Remove unused #include of memcopy.h.
2154         (strcpy): Use ANSI prototype.
2155
2156 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2157
2158         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
2159         * config.make.in (config-extra-cppflags): Set it from
2160         libc_extra_cppflags.
2161         * configure.ac (libc_extra_cflags): Make it accumulate over
2162         configure fragments.
2163         (libc_extra_cppflags): New flag.
2164         * configure. Regenerate.
2165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
2166         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
2167         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
2168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
2169
2170         [BZ #16815]
2171         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
2172         result for FE_DOWNWARD rounding mode.
2173         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
2174         Likewise.
2175         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2176
2177 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
2178
2179         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
2180         in function argument name.
2181
2182 2014-04-03  David Svoboda  <svoboda@cert.org>
2183
2184         [BZ #5666]
2185         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
2186         explicitly.
2187
2188 2014-04-03  Roland McGrath  <roland@hack.frob.com>
2189
2190         * elf/dl-unmap-segments.h: New file.
2191         * sysdeps/generic/ldsodefs.h
2192         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
2193         * elf/dl-close.c: Include <dl-unmap-segments.h>.
2194         * elf/dl-fptr.c: Likewise.
2195         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
2196         * sysdeps/aarch64/tlsdesc.c: Likewise.
2197         * sysdeps/arm/tlsdesc.c: Likewise.
2198         * sysdeps/i386/tlsdesc.c: Likewise.
2199         * sysdeps/tile/dl-runtime.c: Likewise.
2200         * sysdeps/x86_64/tlsdesc.c: Likewise.
2201         * elf/dl-load.h: New file.
2202         * elf/dl-load.c: Include it.
2203         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
2204         Macros moved to dl-load.h.
2205         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
2206         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
2207         Use _dl_unmap_segments in place of __munmap.
2208         Break out segment-mapping loop into ...
2209         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
2210
2211 2014-04-03  Will Newton  <will.newton@linaro.org>
2212
2213         * elf/dl-lookup.c (do_lookup_x): Remove comment
2214         referring to nested function and move variable
2215         declarations down to before first use.
2216
2217 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
2218
2219         [BZ #16799]
2220         [BZ #16800]
2221         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
2222         with 0 numerator.
2223         * math/s_catanf.c (__catanf): Likewise.
2224         * math/s_catanh.c (__catanh): Likewise.
2225         * math/s_catanhf.c (__catanhf): Likewise.
2226         * math/s_catanhl.c (__catanhl): Likewise.
2227         * math/s_catanl.c (__catanl): Likewise.
2228         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
2229         by positive zero when computing -Inf result.
2230         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
2231         (catanh_test): Likewise.
2232         * sysdeps/i386/fpu/libm-test-ulps: Update.
2233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2234
2235         [BZ #16789]
2236         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
2237         instead of using underflowing value in computing result.
2238         * math/s_clog10.c (__clog10): Likewise.
2239         * math/s_clog10f.c (__clog10f): Likewise.
2240         * math/s_clog10l.c (__clog10l): Likewise.
2241         * math/s_clogf.c (__clogf): Likewise.
2242         * math/s_clogl.c (__clogl): Likewise.
2243         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
2244         (clog10_test): Likewise.
2245         * sysdeps/i386/fpu/libm-test-ulps: Update.
2246         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2247
2248 2014-04-02  Alan Modra  <amodra@gmail.com>
2249
2250         [BZ #16739]
2251         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
2252         output when value is near a power of two.  Use int64_t for lx and
2253         remove casts.  Use decimal rather than hex exponent constants.
2254         Don't use long double multiplication when double will suffice.
2255         * math/libm-test.inc (nextafter_test_data): Add tests.
2256         * NEWS: Add 16739 and 16786 to bug list.
2257
2258         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
2259
2260         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
2261
2262 2014-04-01  Will Newton  <will.newton@linaro.org>
2263
2264         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
2265         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
2266
2267 2014-04-01  Florian Weimer  <fweimer@redhat.com>
2268
2269         [BZ #13347]
2270         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
2271         * nptl/tst-setuid2.c: New file.
2272         * nptl/Makefile (xtests): Add tst-setuid2.
2273
2274 2014-04-01  Alan Modra  <amodra@gmail.com>
2275
2276         [BZ #16786]
2277         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
2278
2279 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
2280
2281         [BZ #6803]
2282         [BZ #6804]
2283         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
2284         set errno as appropriate.
2285         * math/w_scalbf.c (__scalbf): Likewise.
2286         * math/w_scalbl.c (__scalbl): Likewise.
2287         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
2288         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
2289         * math/libm-test.inc (scalb_test_data): Add errno expectations.
2290         Add more NaN tests.
2291
2292         [BZ #16349]
2293         * math/w_atan2.c: Include <errno.h>.
2294         (__atan2): Set errno for result underflowing to zero.
2295         * math/w_atan2f.c: Include <errno.h>.
2296         (__atan2f): Set errno for result underflowing to zero.
2297         * math/w_atan2l.c: Include <errno.h>.
2298         (__atan2l): Set errno for result underflowing to zero.
2299         * math/auto-libm-test-in: Don't allow missing errno for some atan2
2300         tests.
2301         * math/auto-libm-test-out: Regenerated.
2302
2303 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2304
2305         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
2306         Encode instruction correctly in little endian.
2307         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
2308         Likewise.
2309         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
2310         Likewise.
2311         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
2312         Likewise.
2313         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
2314         Likewise.
2315
2316 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
2317
2318         [BZ #9894]
2319         * sysdeps/unix/sysv/linux/kernel-features.h
2320         [__sparc__ && !__arch64__ && !__sparc_v9__]
2321         (__ASSUME_SET_ROBUST_LIST): Do not define.
2322         [__sparc__ && !__arch64__ && !__sparc_v9__]
2323         (__ASSUME_FUTEX_LOCK_PI): Likewise.
2324         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
2325         Likewise.
2326         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2327         (__ASSUME_FUTEX_LOCK_PI): Undefine.
2328         (__ASSUME_REQUEUE_PI): Likewise.
2329         (__ASSUME_SET_ROBUST_LIST): Likewise.
2330         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2331         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
2332         Undefine.
2333         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2334         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
2335         Likewise.
2336         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
2337         Likewise.
2338         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
2339         Likewise.
2340         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2341         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
2342         Undefine.
2343         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
2344         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
2345         Likewise.
2346
2347         [BZ #16648]
2348         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2349         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
2350         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
2351
2352 2014-03-31  Will Newton  <will.newton@linaro.org>
2353
2354         * benchtests/Makefile (bench): Add ffs and ffsll to list
2355         of tests.
2356         * benchtests/ffs-inputs: New file.
2357         * benchtests/ffsll-inputs: Likewise.
2358
2359 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
2360
2361         [BZ #16770]
2362         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
2363         too large before casting to int.
2364         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
2365         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
2366         * math/libm-test.inc (scalb_test_data): Add more tests.
2367
2368 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2369
2370         * benchtests/Makefile (DETAILED_OPT): New make option.
2371         (bench-func): Run benchmark program with -d if DETAILED_OPT is
2372         set.
2373         * benchtests/bench-skeleton.c: Include stdbool.h.
2374         (main): Store and print timings per input.
2375         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
2376         member to each argument value.
2377         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
2378         (_print_arg_data): Initialize per-input timing to 0.
2379
2380         * benchtests/Makefile (timing-type): New binary.
2381         (bench-clean): Also remove bench-timing-type.
2382         (bench): New target for timing-type.
2383         (bench-func): Print output in JSON format.
2384         * benchtests/bench-skeleton.c (main): Print output in JSON
2385         format.
2386         * benchtests/bench-timing-type.c: New file.
2387         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
2388         (TIMING_PRINT_STATS): Remove.
2389         * benchtests/scripts/bench.py (_print_arg_data): Store variant
2390         name separately.
2391
2392         * benchtests/bench-modf.c: Remove.
2393         * benchtests/modf-inputs: New inputs file.
2394
2395 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
2396
2397         [BZ #16362]
2398         * math/s_clog10.c (M_PI_LOG10E): New macro.
2399         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
2400         imaginary parts are 0.
2401         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
2402         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
2403         imaginary parts are 0.
2404         * math/s_clog10l.c (M_PI_LOG10El): New macro.
2405         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
2406         imaginary parts are 0.
2407         * math/libm-test.inc (clog10_test_data): Update expected results
2408         for when real and imaginary parts are 0.
2409
2410 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
2411
2412         * elf/dl-load.c: Finish conversion of __builtin_expect into
2413         __glibc_{un}likely.
2414
2415 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
2416
2417         [BZ #16348]
2418         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
2419         1+x for argument with exponent below -67.
2420         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
2421         Likewise.
2422         * math/auto-libm-test-in: Add more tests of exp.
2423         * math/auto-libm-test-out: Regenerated.
2424
2425 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2426
2427         [BZ #16759]
2428         * inet/getnetgrent_r.c (get_nonempty_val): New function.
2429         (nscd_getnetgrent): Use it.
2430
2431         [BZ #16760]
2432         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
2433         of stpcpy.
2434
2435 2014-03-27  Andi Kleen  <ak@linux.intel.com>
2436
2437         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
2438         (lll_robust_lock, lll_cond_lock, lll_timedlock)
2439         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
2440         (lll_robust_unlock): Remove out of line section. Use cfi
2441         intrinsics.
2442         (LLL_STUB_UNWIND_INFO*): Remove.
2443         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
2444         (lll_robust_lock, lll_cond_lock, lll_timedlock)
2445         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
2446         (lll_robust_unlock): Remove out of line section. Use cfi
2447         intrinsics.
2448         (LLL_STUB_UNWIND_INFO*): Remove.
2449
2450 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2451
2452         [BZ #16758]
2453         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
2454         blank values.
2455
2456 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
2457
2458         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
2459
2460 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
2461
2462         [BZ #16198]
2463         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
2464         fnstenv.
2465         * math/test-fenv-preserve.c: New file.
2466         * math/Makefile (tests): Add test-fenv-preserve.
2467
2468 2014-03-26  Will Newton <will.newton@linaro.org>
2469
2470         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
2471
2472 2014-03-25  Roland McGrath  <roland@hack.frob.com>
2473
2474         * scripts/versionlist.awk: Partition the version sets and emit all
2475         GLIBC_* (sorted) before all others (sorted).
2476
2477 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
2478
2479         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
2480         GLIBC_2.2.5 version.
2481
2482 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2483
2484         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
2485         calls.
2486
2487         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
2488         previous change.
2489
2490         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2491
2492 2014-03-25  Andreas Schwab  <schwab@suse.de>
2493
2494         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
2495         label to be used after in6ailist is initialized.
2496
2497 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2498
2499         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
2500         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
2501
2502 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
2503
2504         [BZ #16357]
2505         [BZ #16599]
2506         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
2507         min_plus_half.
2508         (fp_formats): Update initializers.
2509         (init_fp_formats): Initialize new field.
2510         (output_for_one_input_case): Allow underflow for results up to
2511         min_plus_half.
2512         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
2513         * math/auto-libm-test-in: Don't mark some underflows from asin and
2514         atanh as spurious.
2515         * math/auto-libm-test-out: Regenerated.
2516         * sysdeps/i386/fpu/libm-test-ulps: Update.
2517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2518
2519 2014-03-25  Andreas Schwab  <schwab@suse.de>
2520
2521         * libio/Makefile (tst-ftell-partial-wide-ENV)
2522         (tst-ftell-active-handler-ENV): Define.
2523
2524 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
2525
2526         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
2527
2528 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
2529
2530         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
2531
2532 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
2533
2534         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
2535         * sysdeps/x86_64/fpu/multiarch/e_exp.c
2536         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
2537
2538 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
2539
2540         [BZ #16634]
2541         * elf/dl-load.c (open_verify): Add mode parameter.
2542         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
2543         (open_path): Change from boolean 'secure' to complete flag 'mode'
2544         (_dl_map_object): Adjust.
2545         * elf/Makefile (tests): Add tst-dlopen-aout.
2546         * elf/tst-dlopen-aout.c: New test.
2547
2548 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
2549
2550         [BZ #16714]
2551         * sysdeps/unix/sysv/linux/s390/bits/stat.h
2552         (struct stat): Rename member pad0 to __glibc_reserved0.
2553
2554         [BZ #16712]
2555         * sysdeps/s390/s390-32/bits/wordsize.h
2556         (__WORDSIZE32_SIZE_ULONG): New define.
2557         * sysdeps/s390/s390-64/bits/wordsize.h
2558         (__WORDSIZE32_SIZE_ULONG): Likewise.
2559         * sysdeps/generic/stdint.h (SIZE_MAX):
2560         Define as UL if __WORDSIZE32_SIZE_ULONG.
2561
2562         [BZ #16713]
2563         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
2564         (__glibc_reserved0): New variable.
2565         (sa_flags): Change type to int.
2566
2567         * posix/Makefile (before-compile): Use += before-compile instead
2568         of a :=.
2569
2570         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
2571         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
2572
2573 2014-03-20  Andreas Schwab  <schwab@suse.de>
2574
2575         [BZ #16743]
2576         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
2577         non-matching result from nscd.
2578
2579 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2580
2581         * scripts/bench.py: Moved to ...
2582         * benchtests/scripts/bench.py: ... here.
2583         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
2584
2585 2014-03-24  Andreas Schwab  <schwab@suse.de>
2586
2587         [BZ #16002]
2588         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
2589         alloca_account and account alloca use for struct in6ailist.
2590
2591 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
2592
2593         [BZ #16284]
2594         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
2595         rounding mode to recompute results that overflow to infinity or
2596         underflow to zero.
2597         * math/auto-libm-test-in: Don't mark tests as expected to fail for
2598         bug 16284.
2599         * math/auto-libm-test-out: Regenerated.
2600         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
2601         (ccosh_test): Likewise.
2602         (csin_test_data): Use plus_oflow.
2603         (csin_test): Use ALL_RM_TEST.
2604         (csinh_test_data): Use plus_oflow.
2605         (csinh_test): Use ALL_RM_TEST.
2606         * sysdeps/i386/fpu/libm-test-ulps: Update.
2607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2608
2609 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
2610
2611         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
2612         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
2613         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
2614
2615         [BZ #16731]
2616         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
2617         when x - 1 is zero.
2618         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
2619         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
2620         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
2621         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
2622         argument is 1.
2623         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
2624         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
2625         zero.
2626         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
2627         * sysdeps/i386/fpu/libm-test-ulps: Update.
2628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2629
2630 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2631
2632         * scripts/bench.pl: Remove file.
2633         * scripts/bench.py: New benchmark script.
2634         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
2635         * benchtests/README: Mention python dependency.
2636         * scripts/pylintrc: New file.
2637         * scripts/pylint: New file.
2638
2639         * bits/mathdef.h: Use #ifdef instead of #if.
2640         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
2641         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
2642         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
2643         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
2644         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
2645         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
2646
2647 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2648             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
2649
2650         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
2651         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
2652         and strpbrk-ppc64 objects.
2653         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
2654         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
2655         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
2656         multiarch strpbrk for POWER7.
2657         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
2658         multiarch strpbrk for PPC64.
2659         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
2660         ifunc selector.
2661         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
2662         strpbrk for POWER7.
2663
2664 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
2665
2666         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
2667         (atan_test): Likewise.
2668         (atanh_test_data): Use NO_TEST_INLINE for two tests.
2669         (atanh_test): Use ALL_RM_TEST.
2670         (atan2_test_data): Likewise.
2671         (cabs_test): Likewise.
2672         (cacosh_test): Likewise.
2673         (carg_test): Likewise.
2674         (casin_test): Likewise.
2675         (casinh_test): Likewise.
2676         (cbrt_test): Likewise.
2677         (csqrt_test): Likewise.
2678         (erf_test): Likewise.
2679         (erfc_test): Likewise.
2680         (pow10_test): Likewise.
2681         (exp2_test): Likewise.
2682         (hypot_test): Likewise.
2683         (j0_test): Likewise.
2684         (j1_test): Likewise.
2685         (lgamma_test): Likewise.
2686         (gamma_test): Likewise.
2687         (sincos_test): Likewise.
2688         (tanh_test): Likewise.
2689         (y0_test): Likewise.
2690         (y1_test): Likewise.
2691         * sysdeps/i386/fpu/libm-test-ulps: Update.
2692         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2693
2694 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2695
2696         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
2697         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
2698         and strcspn-ppc64 objects.
2699         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
2700         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
2701         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
2702         multiarch strcspn for POWER7.
2703         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
2704         multiarch strcspn for PPC64.
2705         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
2706         ifunc selector.
2707         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
2708         strcspn for POWER7.
2709
2710 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
2711
2712         * math/gen-libm-test.pl (generate_testfile): Expect only function
2713         name as argument to AUTO_TESTS_* and pass results for all rounding
2714         modes to parse_args.
2715         (parse_auto_input): Separate inputs of automatic tests from
2716         outputs before storing in %auto_tests.
2717         * math/libm-test.inc (acos_test_data): Update call to
2718         AUTO_TESTS_f_f.
2719         (acos_test): Use ALL_RM_TEST.
2720         (acos_tonearest_test_data): Remove.
2721         (acos_test_tonearest): Likewise.
2722         (acos_towardzero_test_data): Likewise.
2723         (acos_test_towardzero): Likewise.
2724         (acos_downward_test_data): Likewise.
2725         (acos_test_downward): Likewise.
2726         (acos_upward_test_data): Likewise.
2727         (acos_test_upward): Likewise.
2728         (acosh_test_data): Update call to AUTO_TESTS_f_f.
2729         (asin_test_data): Likewise.
2730         (asin_test): Use ALL_RM_TEST.
2731         (asin_tonearest_test_data): Remove.
2732         (asin_test_tonearest): Likewise.
2733         (asin_towardzero_test_data): Likewise.
2734         (asin_test_towardzero): Likewise.
2735         (asin_downward_test_data): Likewise.
2736         (asin_test_downward): Likewise.
2737         (asin_upward_test_data): Likewise.
2738         (asin_test_upward): Likewise.
2739         (asinh_test_data): Update call to AUTO_TESTS_f_f.
2740         (atan_test_data): Likewise.
2741         (atanh_test_data): Likewise.
2742         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
2743         (cabs_test_data): Update call to AUTO_TESTS_c_f.
2744         (carg_test_data): Likewise.
2745         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
2746         (ccos_test_data): Update call to AUTO_TESTS_c_c.
2747         (ccosh_test_data): Likewise.
2748         (cexp_test_data): Likewise.
2749         (clog_test_data): Likewise.
2750         (clog10_test_data): Likewise.
2751         (cos_test_data): Update call to AUTO_TESTS_f_f.
2752         (cos_test): Use ALL_RM_TEST.
2753         (cos_tonearest_test_data): Remove.
2754         (cos_test_tonearest): Likewise.
2755         (cos_towardzero_test_data): Likewise.
2756         (cos_test_towardzero): Likewise.
2757         (cos_downward_test_data): Likewise.
2758         (cos_test_downward): Likewise.
2759         (cos_upward_test_data): Likewise.
2760         (cos_test_upward): Likewise.
2761         (cosh_test_data): Update call to AUTO_TESTS_f_f.
2762         (cosh_test): Use ALL_RM_TEST.
2763         (cosh_tonearest_test_data): Remove.
2764         (cosh_test_tonearest): Likewise.
2765         (cosh_towardzero_test_data): Likewise.
2766         (cosh_test_towardzero): Likewise.
2767         (cosh_downward_test_data): Likewise.
2768         (cosh_test_downward): Likewise.
2769         (cosh_upward_test_data): Likewise.
2770         (cosh_test_upward): Likewise.
2771         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
2772         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
2773         (ctan_test_data): Likewise.
2774         (ctan_test): Use ALL_RM_TEST.
2775         (ctan_tonearest_test_data): Remove.
2776         (ctan_test_tonearest): Likewise.
2777         (ctan_towardzero_test_data): Likewise.
2778         (ctan_test_towardzero): Likewise.
2779         (ctan_downward_test_data): Likewise.
2780         (ctan_test_downward): Likewise.
2781         (ctan_upward_test_data): Likewise.
2782         (ctan_test_upward): Likewise.
2783         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
2784         (ctanh_test): Use ALL_RM_TEST.
2785         (ctanh_tonearest_test_data): Remove.
2786         (ctanh_test_tonearest): Likewise.
2787         (ctanh_towardzero_test_data): Likewise.
2788         (ctanh_test_towardzero): Likewise.
2789         (ctanh_downward_test_data): Likewise.
2790         (ctanh_test_downward): Likewise.
2791         (ctanh_upward_test_data): Likewise.
2792         (ctanh_test_upward): Likewise.
2793         (erf_test_data): Update call to AUTO_TESTS_f_f.
2794         (erfc_test_data): Likewise.
2795         (exp_test_data): Likewise.
2796         (exp_test): Use ALL_RM_TEST.
2797         (exp_tonearest_test_data): Remove.
2798         (exp_test_tonearest): Likewise.
2799         (exp_towardzero_test_data): Likewise.
2800         (exp_test_towardzero): Likewise.
2801         (exp_downward_test_data): Likewise.
2802         (exp_test_downward): Likewise.
2803         (exp_upward_test_data): Likewise.
2804         (exp_test_upward): Likewise.
2805         (exp10_test_data): Update call to AUTO_TESTS_f_f.
2806         (exp10_test): Use ALL_RM_TEST.
2807         (exp10_tonearest_test_data): Remove.
2808         (exp10_test_tonearest): Likewise.
2809         (exp10_towardzero_test_data): Likewise.
2810         (exp10_test_towardzero): Likewise.
2811         (exp10_downward_test_data): Likewise.
2812         (exp10_test_downward): Likewise.
2813         (exp10_upward_test_data): Likewise.
2814         (exp10_test_upward): Likewise.
2815         (exp2_test_data): Update call to AUTO_TESTS_f_f.
2816         (expm1_test_data): Likewise.
2817         (expm1_test): Use ALL_RM_TEST.
2818         (expm1_tonearest_test_data): Remove.
2819         (expm1_test_tonearest): Likewise.
2820         (expm1_towardzero_test_data): Likewise.
2821         (expm1_test_towardzero): Likewise.
2822         (expm1_downward_test_data): Likewise.
2823         (expm1_test_downward): Likewise.
2824         (expm1_upward_test_data): Likewise.
2825         (expm1_test_upward): Likewise.
2826         (fma_test_data): Update call to AUTO_TESTS_fff_f.
2827         (fma_test): Use ALL_RM_TEST.
2828         (fma_towardzero_test_data): Remove.
2829         (fma_test_towardzero): Likewise.
2830         (fma_downward_test_data): Likewise.
2831         (fma_test_downward): Likewise.
2832         (fma_upward_test_data): Likewise.
2833         (fma_test_upward): Likewise.
2834         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
2835         (j0_test_data): Update call to AUTO_TESTS_f_f.
2836         (j1_test_data): Likewise.
2837         (jn_test_data): Update call to AUTO_TESTS_if_f.
2838         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
2839         (log_test_data): Update call to AUTO_TESTS_f_f.
2840         (log10_test_data): Likewise.
2841         (log1p_test_data): Likewise.
2842         (log2_test_data): Likewise.
2843         (pow_test_data): Update call to AUTO_TESTS_ff_f.
2844         (pow_tonearest_test_data): Likewise.
2845         (sin_test_data): Update call to AUTO_TESTS_f_f.
2846         (sin_test): Use ALL_RM_TEST.
2847         (sin_tonearest_test_data): Remove.
2848         (sin_test_tonearest): Likewise.
2849         (sin_towardzero_test_data): Likewise.
2850         (sin_test_towardzero): Likewise.
2851         (sin_downward_test_data): Likewise.
2852         (sin_test_downward): Likewise.
2853         (sin_upward_test_data): Likewise.
2854         (sin_test_upward): Likewise.
2855         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
2856         (sinh_test_data): Update call to AUTO_TESTS_f_f.
2857         (sinh_test): Use ALL_RM_TEST.
2858         (sinh_tonearest_test_data): Remove.
2859         (sinh_test_tonearest): Likewise.
2860         (sinh_towardzero_test_data): Likewise.
2861         (sinh_test_towardzero): Likewise.
2862         (sinh_downward_test_data): Likewise.
2863         (sinh_test_downward): Likewise.
2864         (sinh_upward_test_data): Likewise.
2865         (sinh_test_upward): Likewise.
2866         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
2867         (sqrt_test): Use ALL_RM_TEST.
2868         (sqrt_tonearest_test_data): Remove.
2869         (sqrt_test_tonearest): Likewise.
2870         (sqrt_towardzero_test_data): Likewise.
2871         (sqrt_test_towardzero): Likewise.
2872         (sqrt_downward_test_data): Likewise.
2873         (sqrt_test_downward): Likewise.
2874         (sqrt_upward_test_data): Likewise.
2875         (sqrt_test_upward): Likewise.
2876         (tan_test_data): Update call to AUTO_TESTS_f_f.
2877         (tan_test): Use ALL_RM_TEST.
2878         (tan_tonearest_test_data): Remove.
2879         (tan_test_tonearest): Likewise.
2880         (tan_towardzero_test_data): Likewise.
2881         (tan_test_towardzero): Likewise.
2882         (tan_downward_test_data): Likewise.
2883         (tan_test_downward): Likewise.
2884         (tan_upward_test_data): Likewise.
2885         (tan_test_upward): Likewise.
2886         (tanh_test_data): Update call to AUTO_TESTS_f_f.
2887         (tgamma_test_data): Likewise.
2888         (y0_test_data): Likewise.
2889         (y1_test_data): Likewise.
2890         (yn_test_data): Update call to AUTO_TESTS_if_f.
2891         (main): Do not call removed functions.
2892
2893 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
2894
2895         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
2896         (ldexp_test_data): Remove.
2897         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
2898         scalbn_test_data.
2899         (scalb_test): Use ALL_RM_TEST.
2900
2901 2014-03-19  Andreas Schwab  <schwab@suse.de>
2902
2903         * nscd/nscd.service: Also invalidate netgroup cache on reload.
2904
2905 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
2906
2907         [BZ #16649]
2908         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2909         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
2910         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
2911         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2912         (__ASSUME_PREADV): Undefine.
2913         (__ASSUME_PWRITEV): Likewise.
2914
2915 2014-03-18  Roland McGrath  <roland@hack.frob.com>
2916
2917         * bits/mman-linux.h: Add comment about non-Linux use.
2918         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
2919         bits/mman-linux.h resting place.
2920
2921         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
2922         * bits/mman-linux.h: ... here.
2923
2924 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2925
2926         * conform/conformtest.pl: Add standard definition when calling C
2927         preprocessor on data files.
2928         (checknamespace): Remove unused variable.
2929
2930 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
2931
2932         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
2933         minus_oflow, plus_uflow and minus_uflow in expected results.
2934         * math/libm-test.inc (scalbn_test_data): Add more tests of
2935         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
2936         minus_uflow.
2937         (scalbn_test): Use ALL_RM_TEST.
2938         (scalbln_test_data): Add more tests of negative arguments.  Use
2939         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
2940         (scalbln_test): Use ALL_RM_TEST.
2941
2942 2014-03-18  Roland McGrath  <roland@hack.frob.com>
2943
2944         * scripts/abilist.awk: Ignore symbols marked with .hidden.
2945
2946 2014-03-18  Will Newton  <will.newton@linaro.org>
2947
2948         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
2949         inaccurate comment.
2950
2951 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
2952
2953         * Makerules [!subdir] (check-abi): Exit with error status if a
2954         test failed.
2955
2956 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
2957
2958         * math/libm-test.inc (nearbyint_test_data): Include all tests used
2959         for rint.  Include results for all rounding modes.
2960         (nearbyint_test): Use ALL_RM_TEST.
2961         (rint_test_data): Include all tests used for nearbyint.
2962
2963 2014-03-17  Will Newton  <will.newton@linaro.org>
2964
2965         * nptl/sysdeps/pthread/pthread.h: Revert previous
2966         change.
2967
2968         * sysdeps/generic/ldsodefs.h: Revert previous
2969         change.
2970
2971         * libio/genops.c: Revert previous change.
2972         * libio/libioP.h: Likewise.
2973         * stdio-common/vfprintf.c: Likewise.
2974
2975         * sysdeps/generic/math_private.h: Revert previous
2976         change.
2977
2978         * sysdeps/generic/math_private.h: Check whether
2979         HAVE_RM_CTX is defined with #ifdef rather
2980         than #if.
2981
2982         * argp/argp-fmtstream.h: Check whether
2983         __STRICT_ANSI__ is defined with #ifdef rather
2984         than #if.
2985         * argp/argp.h: Likewise.
2986
2987         * libio/genops.c: Check whether
2988         _IO_JUMPS_OFFSET is defined with #ifdef rather
2989         than #if.
2990         * libio/libioP.h: Likewise.
2991         * stdio-common/vfprintf.c: Likewise.
2992
2993         * sysdeps/generic/ldsodefs.h: Check whether
2994         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
2995         than #if.
2996
2997         * nptl/sysdeps/pthread/pthread.h: Check
2998         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
2999         its value.
3000
3001 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
3002
3003         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
3004         setting O_APPEND.
3005         * libio/tst-ftell-active-handler.c (do_append_test): Add a
3006         test case.
3007
3008         [BZ #16680]
3009         * libio/fileops.c (_IO_file_open): Seek to end of file but
3010         don't cache the offset.
3011         (get_file_offset): Remove function.
3012         (do_ftell): Use cached offset when available.
3013         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
3014         don't cache the offset.
3015         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
3016         case.
3017         (do_one_test): Call it.
3018         (do_ftell_test): Fix up expected old offset for a+ mode.
3019         * libio/wfileops.c (do_ftell_wide): Used cached offset when
3020         available.
3021
3022         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
3023         up test status with function return status.
3024         (do_write_test): Likewise.
3025         (do_append_test): Likewise.
3026
3027         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
3028         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
3029         Remove.
3030
3031 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
3032
3033         * math/gen-libm-test.pl (parse_args): Handle results specified for
3034         each rounding mode separately.
3035         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
3036         tests and results from lrint_tonearest_test_data,
3037         lrint_towardzero_test_data, lrint_downward_test_data and
3038         lrint_upward_test_data.
3039         (lrint_test): Use ALL_RM_TEST.
3040         (lrint_tonearest_test_data): Remove.
3041         (lrint_test_tonearest): Likewise.
3042         (lrint_towardzero_test_data): Likewise.
3043         (lrint_test_towardzero): Likewise.
3044         (lrint_downward_test_data): Likewise.
3045         (lrint_test_downward): Likewise.
3046         (lrint_upward_test_data): Likewise.
3047         (lrint_test_upward): Likewise.
3048         (llrint_test_data): Merge in per-rounding-mode tests and results
3049         from llrint_tonearest_test_data, llrint_towardzero_test_data,
3050         llrint_downward_test_data and llrint_upward_test_data.
3051         (llrint_test): Use ALL_RM_TEST.
3052         (llrint_tonearest_test_data): Remove.
3053         (llrint_test_tonearest): Likewise.
3054         (llrint_towardzero_test_data): Likewise.
3055         (llrint_test_towardzero): Likewise.
3056         (llrint_downward_test_data): Likewise.
3057         (llrint_test_downward): Likewise.
3058         (llrint_upward_test_data): Likewise.
3059         (llrint_test_upward): Likewise.
3060         (rint_test_data): Merge in per-rounding-mode tests and results
3061         from rint_tonearest_test_data, rint_towardzero_test_data,
3062         rint_downward_test_data and rint_upward_test_data.  Add
3063         per-rounding-mode results for tests not in those arrays.
3064         (rint_test): Use ALL_RM_TEST.
3065         (rint_tonearest_test_data): Remove.
3066         (rint_test_tonearest): Likewise.
3067         (rint_towardzero_test_data): Likewise.
3068         (rint_test_towardzero): Likewise.
3069         (rint_downward_test_data): Likewise.
3070         (rint_test_downward): Likewise.
3071         (rint_upward_test_data): Likewise.
3072         (rint_test_upward): Likewise.
3073         (main): Don't call removed functions.
3074
3075 2014-03-14  Roland McGrath  <roland@hack.frob.com>
3076
3077         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
3078         "Compiled on ..." crapola.  It is anti-useful.
3079
3080 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
3081
3082         * scripts/evaluate-test.sh: Handle fourth argument to determine
3083         whether test run should stop on failure.
3084         * Makeconfig (stop-on-test-failure): New variable.
3085         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
3086         $(stop-on-test-failure).
3087         * Makefile (tests): Give a summary of results from testing and
3088         exit with failure status if they include an ERROR or FAIL.
3089         (xtests): Likewise.
3090         * manual/install.texi (Configuring and compiling): Mention
3091         stop-on-test-failure=y.
3092         * INSTALL: Regenerated.
3093
3094 2014-03-14  Roland McGrath  <roland@hack.frob.com>
3095
3096         * scripts/versionlist.awk: New file.
3097         * Makerules [$(build-shared) = yes]
3098         (postclean-generated): Add Versions.def, not Versions.def.v and
3099         Versions.def.v.i.
3100         ($(common-objpfx)Versions.def.v.i): Target removed.
3101         ($(common-objpfx)Versions.def): New target.
3102         ($(common-objpfx)Versions.all): Depend on that rather that
3103         $(common-objpfx)Versions.def.v.
3104         * Versions.def: File removed.
3105
3106         * Makeconfig (+gccwarn): Add -Wundef.
3107         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
3108         a dl-sysdep.h breaking its contract.
3109         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
3110         * include/stackinfo.h: New file.
3111         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
3112         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
3113         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
3114         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
3115         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
3116         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
3117         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3118         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3119         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3120         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3121         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3122         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
3123         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3124         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3125         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3126
3127 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3128
3129         [BZ #16707]
3130         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
3131         implementation.
3132         * math/libm-test.inc (round_test_data): Add more tests.
3133
3134         [BZ #16706]
3135         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
3136         implementation.
3137         * math/libm-test.inc (nearbyint_test_data): Add more tests.
3138
3139         [BZ #16701]
3140         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
3141         implementation.
3142         * math/libm-test.inc (ceil_test_data): Add more tests.
3143
3144         * math/libm-test.inc (trunc_test_data): Add more tests related to
3145         BZ#16414.
3146
3147 2014-03-14  Roland McGrath  <roland@hack.frob.com>
3148
3149         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
3150         with #if rather than #ifdef.
3151         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
3152
3153 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
3154
3155         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
3156         first.  Disable AVX-512 GCC support if assembler doesn't support
3157         it.
3158         * sysdeps/x86_64/configure: Regenerated.
3159
3160 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
3161
3162         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
3163         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
3164         (__old_pthread_attr_setstack): Likewise.
3165         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
3166         [!_STACK_GROWS_DOWN]: Likewise.
3167
3168 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
3169
3170         * config.make.in (have-bash2): Delete.
3171         * configure.ac (libc_cv_have_bash2): Delete.
3172         * configure: Regenerate.
3173         * elf/Makefile (common-ldd-rewrite): Rename to ...
3174         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
3175         (sh-ldd-rewrite): Delete.
3176         (bash-ldd-rewrite): Delete.
3177         (have-bash2): Delete checks.
3178         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
3179         ldd-rewrite.
3180
3181         * config.make.in (have-ksh): Delete.
3182         (KSH): Delete.
3183         * configure.ac (libc_cv_have_ksh): Delete.
3184         * configure: Regenerate.
3185
3186         * elf/Makefile: Delete $(have-ksh) check.
3187         ($(objpfx)sotruss): Change KSH to BASH.
3188         * elf/sotruss.ksh: Rename to ...
3189         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
3190         function style to match POSIX.  Drop ksh vim mode setting.
3191
3192         * manual/time.texi (Specifying the Time Zone with TZ): Change
3193         Tuesday to Thursday.
3194
3195         * debug/tst-longjmp_chk2.c: Update header comment.
3196         (stackoverflow_handler): Add comment.  Call assert on pass value.
3197
3198 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
3199
3200         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
3201         (HAVE_AVX512_ASM_SUPPORT): Likewise.
3202         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
3203         (La_x86_64_vector): Add zmm.
3204         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
3205         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
3206         ($(objpfx)tst-audit10): New target.
3207         ($(objpfx)tst-audit10.out): Likewise.
3208         (tst-audit10-ENV): New.
3209         (AVX512-CFLAGS): Likewise.
3210         (CFLAGS-tst-audit10.c): Likewise.
3211         (CFLAGS-tst-auditmod10a.c): Likewise.
3212         (CFLAGS-tst-auditmod10b.c): Likewise.
3213         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
3214         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
3215         * sysdeps/x86_64/configure: Regenerated.
3216         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
3217         AVX-512 zmm register support.
3218         (_dl_x86_64_save_sse): Likewise.
3219         (_dl_x86_64_restore_sse): Likewise.
3220         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
3221         size vector registers.
3222         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
3223         (ZMM_SIZE): Likewise.
3224         * sysdeps/x86_64/tst-audit10.c: New file.
3225         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
3226         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
3227
3228 2014-03-13  Roland McGrath  <roland@hack.frob.com>
3229
3230         * configure.ac (HAVE_EHDR_START): New check.
3231         * configure: Regenerated.
3232         * config.h.in (HAVE_EHDR_START): New #undef.
3233         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
3234         assuming the lowest-addressed segment maps the start of the file.
3235
3236 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
3237
3238         * INSTALL: Regenerated.
3239
3240 2014-03-13  Will Newton  <will.newton@linaro.org>
3241
3242         * manual/setjmp.texi (System V contexts): Improve
3243         clarity and grammar of documentation.
3244
3245 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
3246
3247         [BZ #16381]
3248         * elf/Makefile (tests): Add tst-pie2.
3249         (tests-pie): Add tst-pie2.
3250         * elf/tst-pie2.c: New file.
3251         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
3252         for ET_EXEC.
3253         * elf/rtld.c (map_doit): Load executable as lt_executable.
3254         (dl_main): Likewise.
3255
3256 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
3257
3258         [BZ #16642]
3259         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3260         (__ASSUME_PSELECT): Undefine.
3261
3262 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3263
3264         [BZ #16689]
3265         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
3266         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
3267         static build.
3268         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
3269         selector for static builds.
3270
3271 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
3272
3273         [BZ #16695]
3274         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
3275         key in the buffer.
3276
3277 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3278
3279         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
3280         IFUNC selector for static builds.
3281
3282 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
3283
3284         * sysdeps/mips/math_private.h [__mips_hard_float]
3285         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
3286         libc_feresetround_mips_ctx.
3287         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
3288         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
3289         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
3290
3291         [BZ #16677]
3292         * math/s_nextafter.c (__nextafter): Do not return value from
3293         overflowing computation.
3294         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
3295         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
3296         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
3297         Likewise.
3298         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
3299         Likewise.
3300         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
3301         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
3302
3303 2014-03-11  Roland McGrath  <roland@hack.frob.com>
3304
3305         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
3306         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
3307         Move sfi_sp use from the load-multiple (that no longer sets sp) to
3308         the new mov targetting sp.
3309
3310 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3311
3312         [BZ #16683]
3313         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
3314         Define it for static builds as well.
3315         (NO_BZERO_IMPL): Likewise.
3316
3317 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3318
3319         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
3320         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
3321         multiarch strspn for PPC64.
3322         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
3323         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
3324         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3325         (__libc_ifunc_impl_list): Likewise.
3326         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
3327         multiarch optimizations
3328         * string/strspn.c (strspn): Using macro to redefine symbol name.
3329
3330 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3331             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3332
3333         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
3334         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
3335         multiarch strncat for PPC64.
3336         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
3337         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
3338         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3339         (__libc_ifunc_impl_list): Likewise.
3340         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
3341         multiarch optimizations
3342
3343 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3344
3345         [BZ #16639]
3346         * nscd/nscd.service: Make service type forking.
3347
3348 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3349
3350         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
3351         sign in non default rounding modes.
3352         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
3353
3354 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
3355
3356         * math/libm-test.inc (ALL_RM_TEST): New macro.
3357         (ceil_test): Use ALL_RM_TEST.
3358         (cimag_test): Likewise.
3359         (conj_test): Likewise.
3360         (copysign_test): Likewise.
3361         (cproj_test): Likewise.
3362         (creal_test): Likewise.
3363         (fabs_test): Likewise.
3364         (floor_test): Likewise.
3365         (fmax_test): Likewise.
3366         (fmin_test): Likewise.
3367         (fmod_test): Likewise.
3368         (fpclassify_test): Likewise.
3369         (frexp_test): Likewise.
3370         (ilogb_test): Likewise.
3371         (isfinite_test): Likewise.
3372         (finite_test): Likewise.
3373         (isgreater_test): Likewise.
3374         (isgreaterequal_test): Likewise.
3375         (isinf_test): Likewise.
3376         (isless_test): Likewise.
3377         (islessequal_test): Likewise.
3378         (islessgreater_test): Likewise.
3379         (isnan_test): Likewise.
3380         (isnormal_test): Likewise.
3381         (issignaling_test): Likewise.
3382         (isunordered_test): Likewise.
3383         (logb_test): Likewise.
3384         (logb_downward_test_data): Remove.
3385         (logb_test_downward): Likewise.
3386         (lround_test): Use ALL_RM_TEST.
3387         (llround_test): Likewise.
3388         (modf_test): Likewise.
3389         (nexttoward_test): Likewise.
3390         (remainder_test): Likewise.
3391         (drem_test): Likewise.
3392         (remainder_tonearest_test_data): Likewise.
3393         (remainder_test_tonearest): Likewise.
3394         (drem_test_tonearest): Likewise.
3395         (remainder_towardzero_test_data): Likewise.
3396         (remainder_test_towardzero): Likewise.
3397         (drem_test_towardzero): Likewise.
3398         (remainder_downward_test_data): Likewise.
3399         (remainder_test_downward): Likewise.
3400         (drem_test_downward): Likewise.
3401         (remainder_upward_test_data): Likewise.
3402         (remainder_test_upward): Likewise.
3403         (drem_test_upward): Likewise.
3404         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
3405         (round_test): Use ALL_RM_TEST.
3406         (signbit_test): Likewise.
3407         (trunc_test): Likewise.
3408         (significand_test): Likewise.
3409         (main): Don't call removed functions.
3410
3411 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
3412
3413         [BZ #16674]
3414         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
3415         || __USE_XOPEN2K8].
3416         (ILL_ILLOPN): Likewise.
3417         (ILL_ILLADR): Likewise.
3418         (ILL_ILLTRP): Likewise.
3419         (ILL_PRVOPC): Likewise.
3420         (ILL_PRVREG): Likewise.
3421         (ILL_COPROC): Likewise.
3422         (ILL_BADSTK): Likewise.
3423         (FPE_INTDIV): Likewise.
3424         (FPE_INTOVF): Likewise.
3425         (FPE_FLTDIV): Likewise.
3426         (FPE_FLTOVF): Likewise.
3427         (FPE_FLTUND): Likewise.
3428         (FPE_FLTRES): Likewise.
3429         (FPE_FLTINV): Likewise.
3430         (FPE_FLTSUB): Likewise.
3431         (SEGV_MAPERR): Likewise.
3432         (SEGV_ACCERR): Likewise.
3433         (BUS_ADRALN): Likewise.
3434         (BUS_ADRERR): Likewise.
3435         (BUS_OBJERR): Likewise.
3436         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3437         (TRAP_TRACE): Likewise.
3438         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3439         __USE_XOPEN2K8].
3440         (CLD_KILLED): Likewise.
3441         (CLD_DUMPED): Likewise.
3442         (CLD_TRAPPED): Likewise.
3443         (CLD_STOPPED): Likewise.
3444         (CLD_CONTINUED): Likewise.
3445         (POLL_IN): Likewise.
3446         (POLL_OUT): Likewise.
3447         (POLL_MSG): Likewise.
3448         (POLL_ERR): Likewise.
3449         (POLL_PRI): Likewise.
3450         (POLL_HUP): Likewise.
3451         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
3452         Likewise.
3453         (ILL_ILLOPN): Likewise.
3454         (ILL_ILLADR): Likewise.
3455         (ILL_ILLTRP): Likewise.
3456         (ILL_PRVOPC): Likewise.
3457         (ILL_PRVREG): Likewise.
3458         (ILL_COPROC): Likewise.
3459         (ILL_BADSTK): Likewise.
3460         (FPE_INTDIV): Likewise.
3461         (FPE_INTOVF): Likewise.
3462         (FPE_FLTDIV): Likewise.
3463         (FPE_FLTOVF): Likewise.
3464         (FPE_FLTUND): Likewise.
3465         (FPE_FLTRES): Likewise.
3466         (FPE_FLTINV): Likewise.
3467         (FPE_FLTSUB): Likewise.
3468         (SEGV_MAPERR): Likewise.
3469         (SEGV_ACCERR): Likewise.
3470         (BUS_ADRALN): Likewise.
3471         (BUS_ADRERR): Likewise.
3472         (BUS_OBJERR): Likewise.
3473         (BUS_MCEERR_AR): Likewise.
3474         (BUS_MCEERR_AO): Likewise.
3475         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3476         (TRAP_TRACE): Likewise.
3477         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3478         __USE_XOPEN2K8].
3479         (CLD_KILLED): Likewise.
3480         (CLD_DUMPED): Likewise.
3481         (CLD_TRAPPED): Likewise.
3482         (CLD_STOPPED): Likewise.
3483         (CLD_CONTINUED): Likewise.
3484         (POLL_IN): Likewise.
3485         (POLL_OUT): Likewise.
3486         (POLL_MSG): Likewise.
3487         (POLL_ERR): Likewise.
3488         (POLL_PRI): Likewise.
3489         (POLL_HUP): Likewise.
3490         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
3491         (ILL_ILLOPN): Likewise.
3492         (ILL_ILLADR): Likewise.
3493         (ILL_ILLTRP): Likewise.
3494         (ILL_PRVOPC): Likewise.
3495         (ILL_PRVREG): Likewise.
3496         (ILL_COPROC): Likewise.
3497         (ILL_BADSTK): Likewise.
3498         (FPE_INTDIV): Likewise.
3499         (FPE_INTOVF): Likewise.
3500         (FPE_FLTDIV): Likewise.
3501         (FPE_FLTOVF): Likewise.
3502         (FPE_FLTUND): Likewise.
3503         (FPE_FLTRES): Likewise.
3504         (FPE_FLTINV): Likewise.
3505         (FPE_FLTSUB): Likewise.
3506         (SEGV_MAPERR): Likewise.
3507         (SEGV_ACCERR): Likewise.
3508         (BUS_ADRALN): Likewise.
3509         (BUS_ADRERR): Likewise.
3510         (BUS_OBJERR): Likewise.
3511         (BUS_MCEERR_AR): Likewise.
3512         (BUS_MCEERR_AO): Likewise.
3513         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3514         (TRAP_TRACE): Likewise.
3515         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3516         __USE_XOPEN2K8].
3517         (CLD_KILLED): Likewise.
3518         (CLD_DUMPED): Likewise.
3519         (CLD_TRAPPED): Likewise.
3520         (CLD_STOPPED): Likewise.
3521         (CLD_CONTINUED): Likewise.
3522         (POLL_IN): Likewise.
3523         (POLL_OUT): Likewise.
3524         (POLL_MSG): Likewise.
3525         (POLL_ERR): Likewise.
3526         (POLL_PRI): Likewise.
3527         (POLL_HUP): Likewise.
3528         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
3529         Likewise.
3530         (ILL_ILLOPN): Likewise.
3531         (ILL_ILLADR): Likewise.
3532         (ILL_ILLTRP): Likewise.
3533         (ILL_PRVOPC): Likewise.
3534         (ILL_PRVREG): Likewise.
3535         (ILL_COPROC): Likewise.
3536         (ILL_BADSTK): Likewise.
3537         (ILL_BADIADDR): Likewise.
3538         (ILL_BREAK): Likewise.
3539         (FPE_INTDIV): Likewise.
3540         (FPE_INTOVF): Likewise.
3541         (FPE_FLTDIV): Likewise.
3542         (FPE_FLTOVF): Likewise.
3543         (FPE_FLTUND): Likewise.
3544         (FPE_FLTRES): Likewise.
3545         (FPE_FLTINV): Likewise.
3546         (FPE_FLTSUB): Likewise.
3547         (FPE_DECOVF): Likewise.
3548         (FPE_DECDIV): Likewise.
3549         (FPE_DECERR): Likewise.
3550         (FPE_INVASC): Likewise.
3551         (FPE_INVDEC): Likewise.
3552         (SEGV_MAPERR): Likewise.
3553         (SEGV_ACCERR): Likewise.
3554         (SEGV_PSTKOVF): Likewise.
3555         (BUS_ADRALN): Likewise.
3556         (BUS_ADRERR): Likewise.
3557         (BUS_OBJERR): Likewise.
3558         (BUS_MCEERR_AR): Likewise.
3559         (BUS_MCEERR_AO): Likewise.
3560         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3561         (TRAP_TRACE): Likewise.
3562         (TRAP_BRANCH): Likewise.
3563         (TRAP_HWBKPT): Likewise.
3564         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3565         __USE_XOPEN2K8].
3566         (CLD_KILLED): Likewise.
3567         (CLD_DUMPED): Likewise.
3568         (CLD_TRAPPED): Likewise.
3569         (CLD_STOPPED): Likewise.
3570         (CLD_CONTINUED): Likewise.
3571         (POLL_IN): Likewise.
3572         (POLL_OUT): Likewise.
3573         (POLL_MSG): Likewise.
3574         (POLL_ERR): Likewise.
3575         (POLL_PRI): Likewise.
3576         (POLL_HUP): Likewise.
3577         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
3578         (ILL_ILLOPN): Likewise.
3579         (ILL_ILLADR): Likewise.
3580         (ILL_ILLTRP): Likewise.
3581         (ILL_PRVOPC): Likewise.
3582         (ILL_PRVREG): Likewise.
3583         (ILL_COPROC): Likewise.
3584         (ILL_BADSTK): Likewise.
3585         (FPE_INTDIV): Likewise.
3586         (FPE_INTOVF): Likewise.
3587         (FPE_FLTDIV): Likewise.
3588         (FPE_FLTOVF): Likewise.
3589         (FPE_FLTUND): Likewise.
3590         (FPE_FLTRES): Likewise.
3591         (FPE_FLTINV): Likewise.
3592         (FPE_FLTSUB): Likewise.
3593         (SEGV_MAPERR): Likewise.
3594         (SEGV_ACCERR): Likewise.
3595         (BUS_ADRALN): Likewise.
3596         (BUS_ADRERR): Likewise.
3597         (BUS_OBJERR): Likewise.
3598         (BUS_MCEERR_AR): Likewise.
3599         (BUS_MCEERR_AO): Likewise.
3600         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3601         (TRAP_TRACE): Likewise.
3602         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3603         __USE_XOPEN2K8].
3604         (CLD_KILLED): Likewise.
3605         (CLD_DUMPED): Likewise.
3606         (CLD_TRAPPED): Likewise.
3607         (CLD_STOPPED): Likewise.
3608         (CLD_CONTINUED): Likewise.
3609         (POLL_IN): Likewise.
3610         (POLL_OUT): Likewise.
3611         (POLL_MSG): Likewise.
3612         (POLL_ERR): Likewise.
3613         (POLL_PRI): Likewise.
3614         (POLL_HUP): Likewise.
3615         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
3616         (ILL_ILLOPN): Likewise.
3617         (ILL_ILLADR): Likewise.
3618         (ILL_ILLTRP): Likewise.
3619         (ILL_PRVOPC): Likewise.
3620         (ILL_PRVREG): Likewise.
3621         (ILL_COPROC): Likewise.
3622         (ILL_BADSTK): Likewise.
3623         (FPE_INTDIV): Likewise.
3624         (FPE_INTOVF): Likewise.
3625         (FPE_FLTDIV): Likewise.
3626         (FPE_FLTOVF): Likewise.
3627         (FPE_FLTUND): Likewise.
3628         (FPE_FLTRES): Likewise.
3629         (FPE_FLTINV): Likewise.
3630         (FPE_FLTSUB): Likewise.
3631         (SEGV_MAPERR): Likewise.
3632         (SEGV_ACCERR): Likewise.
3633         (BUS_ADRALN): Likewise.
3634         (BUS_ADRERR): Likewise.
3635         (BUS_OBJERR): Likewise.
3636         (BUS_MCEERR_AR): Likewise.
3637         (BUS_MCEERR_AO): Likewise.
3638         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3639         (TRAP_TRACE): Likewise.
3640         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3641         __USE_XOPEN2K8].
3642         (CLD_KILLED): Likewise.
3643         (CLD_DUMPED): Likewise.
3644         (CLD_TRAPPED): Likewise.
3645         (CLD_STOPPED): Likewise.
3646         (CLD_CONTINUED): Likewise.
3647         (POLL_IN): Likewise.
3648         (POLL_OUT): Likewise.
3649         (POLL_MSG): Likewise.
3650         (POLL_ERR): Likewise.
3651         (POLL_PRI): Likewise.
3652         (POLL_HUP): Likewise.
3653         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
3654         (ILL_ILLOPN): Likewise.
3655         (ILL_ILLADR): Likewise.
3656         (ILL_ILLTRP): Likewise.
3657         (ILL_PRVOPC): Likewise.
3658         (ILL_PRVREG): Likewise.
3659         (ILL_COPROC): Likewise.
3660         (ILL_BADSTK): Likewise.
3661         (FPE_INTDIV): Likewise.
3662         (FPE_INTOVF): Likewise.
3663         (FPE_FLTDIV): Likewise.
3664         (FPE_FLTOVF): Likewise.
3665         (FPE_FLTUND): Likewise.
3666         (FPE_FLTRES): Likewise.
3667         (FPE_FLTINV): Likewise.
3668         (FPE_FLTSUB): Likewise.
3669         (SEGV_MAPERR): Likewise.
3670         (SEGV_ACCERR): Likewise.
3671         (BUS_ADRALN): Likewise.
3672         (BUS_ADRERR): Likewise.
3673         (BUS_OBJERR): Likewise.
3674         (BUS_MCEERR_AR): Likewise.
3675         (BUS_MCEERR_AO): Likewise.
3676         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3677         (TRAP_TRACE): Likewise.
3678         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3679         __USE_XOPEN2K8].
3680         (CLD_KILLED): Likewise.
3681         (CLD_DUMPED): Likewise.
3682         (CLD_TRAPPED): Likewise.
3683         (CLD_STOPPED): Likewise.
3684         (CLD_CONTINUED): Likewise.
3685         (POLL_IN): Likewise.
3686         (POLL_OUT): Likewise.
3687         (POLL_MSG): Likewise.
3688         (POLL_ERR): Likewise.
3689         (POLL_PRI): Likewise.
3690         (POLL_HUP): Likewise.
3691         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
3692         (ILL_ILLOPN): Likewise.
3693         (ILL_ILLADR): Likewise.
3694         (ILL_ILLTRP): Likewise.
3695         (ILL_PRVOPC): Likewise.
3696         (ILL_PRVREG): Likewise.
3697         (ILL_COPROC): Likewise.
3698         (ILL_BADSTK): Likewise.
3699         (ILL_DBLFLT): Likewise.
3700         (ILL_HARDWALL): Likewise.
3701         (FPE_INTDIV): Likewise.
3702         (FPE_INTOVF): Likewise.
3703         (FPE_FLTDIV): Likewise.
3704         (FPE_FLTOVF): Likewise.
3705         (FPE_FLTUND): Likewise.
3706         (FPE_FLTRES): Likewise.
3707         (FPE_FLTINV): Likewise.
3708         (FPE_FLTSUB): Likewise.
3709         (SEGV_MAPERR): Likewise.
3710         (SEGV_ACCERR): Likewise.
3711         (BUS_ADRALN): Likewise.
3712         (BUS_ADRERR): Likewise.
3713         (BUS_OBJERR): Likewise.
3714         (BUS_MCEERR_AR): Likewise.
3715         (BUS_MCEERR_AO): Likewise.
3716         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3717         (TRAP_TRACE): Likewise.
3718         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3719         __USE_XOPEN2K8].
3720         (CLD_KILLED): Likewise.
3721         (CLD_DUMPED): Likewise.
3722         (CLD_TRAPPED): Likewise.
3723         (CLD_STOPPED): Likewise.
3724         (CLD_CONTINUED): Likewise.
3725         (POLL_IN): Likewise.
3726         (POLL_OUT): Likewise.
3727         (POLL_MSG): Likewise.
3728         (POLL_ERR): Likewise.
3729         (POLL_PRI): Likewise.
3730         (POLL_HUP): Likewise.
3731         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
3732         (ILL_ILLOPN): Likewise.
3733         (ILL_ILLADR): Likewise.
3734         (ILL_ILLTRP): Likewise.
3735         (ILL_PRVOPC): Likewise.
3736         (ILL_PRVREG): Likewise.
3737         (ILL_COPROC): Likewise.
3738         (ILL_BADSTK): Likewise.
3739         (FPE_INTDIV): Likewise.
3740         (FPE_INTOVF): Likewise.
3741         (FPE_FLTDIV): Likewise.
3742         (FPE_FLTOVF): Likewise.
3743         (FPE_FLTUND): Likewise.
3744         (FPE_FLTRES): Likewise.
3745         (FPE_FLTINV): Likewise.
3746         (FPE_FLTSUB): Likewise.
3747         (SEGV_MAPERR): Likewise.
3748         (SEGV_ACCERR): Likewise.
3749         (BUS_ADRALN): Likewise.
3750         (BUS_ADRERR): Likewise.
3751         (BUS_OBJERR): Likewise.
3752         (BUS_MCEERR_AR): Likewise.
3753         (BUS_MCEERR_AO): Likewise.
3754         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3755         (TRAP_TRACE): Likewise.
3756         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3757         __USE_XOPEN2K8].
3758         (CLD_KILLED): Likewise.
3759         (CLD_DUMPED): Likewise.
3760         (CLD_TRAPPED): Likewise.
3761         (CLD_STOPPED): Likewise.
3762         (CLD_CONTINUED): Likewise.
3763         (POLL_IN): Likewise.
3764         (POLL_OUT): Likewise.
3765         (POLL_MSG): Likewise.
3766         (POLL_ERR): Likewise.
3767         (POLL_PRI): Likewise.
3768         (POLL_HUP): Likewise.
3769         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
3770         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
3771
3772         [BZ #16670]
3773         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
3774         before #include of <time.h>.
3775         [!__USE_XOPEN2K] (__need_timespec): Likewise.
3776         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
3777         (test-xfail-UNIX98/sched.h/conform): Likewise.
3778
3779 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3780
3781         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
3782         error absence of trapping exception support.
3783         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
3784
3785 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
3786
3787         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
3788         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
3789         * timezone/Makefile (testdata): Move definition above include of
3790         Rules.
3791         (test-zones): New variable.
3792         (tests-special): Add zone files.
3793         (build-testdata): Use $(evaluate-test).
3794
3795         * elf/Makefile (tests-special): Rename tests to end with .out.
3796         ($(objpfx)noload-mem): Likewise.
3797         ($(objpfx)tst-leaks1-mem): Likewise.
3798         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
3799         * iconv/Makefile (xtests-special): Change test-iconvconfig to
3800         $(objpfx)test-iconvconfig.out.
3801         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
3802         set -e inside subshell and redirect output to file.
3803         * iconvdata/Makefile (generated): Rename tests to end with .out.
3804         Correct type.
3805         (tests-special): Rename tests to end with .out.
3806         ($(objpfx)mtrace-tst-loading): Likewise.
3807         * intl/Makefile (generated): Likewise.
3808         (tests-special): Likewise.
3809         ($(objpfx)mtrace-tst-gettext): Likewise.
3810         * misc/Makefile (generated): Likewise.
3811         (tests-special): Likewise.
3812         ($(objpfx)tst-error1-mem): Likewise.
3813         * nptl/Makefile (tests-special): Likewise.
3814         ($(objpfx)tst-stack3-mem): Likewise.
3815         (generated): Likewise.
3816         * posix/Makefile (generated): Likewise.
3817         (tests-special): Likewise.
3818         (xtests-special): Likewise.
3819         ($(objpfx)tst-fnmatch-mem): Likewise.
3820         ($(objpfx)bug-regex2-mem): Likewise.
3821         ($(objpfx)bug-regex14-mem): Likewise.
3822         ($(objpfx)bug-regex21-mem): Likewise.
3823         ($(objpfx)bug-regex31-mem): Likewise.
3824         ($(objpfx)tst-vfork3-mem): Likewise.
3825         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
3826         ($(objpfx)tst-pcre-mem): Likewise.
3827         ($(objpfx)tst-boost-mem): Likewise.
3828         ($(objpfx)bug-ga2-mem): Likewise.
3829         ($(objpfx)bug-glob2-mem): Likewise.
3830         * resolv/Makefile (generate): Likewise.
3831         (tests-special): Likewise.
3832         (xtests-special): Likewise.
3833         (generated): Likewise.
3834         ($(objpfx)mtrace-tst-leaks): Likewise.
3835         ($(objpfx)mtrace-tst-leaks2): Likewise.
3836
3837         * scripts/merge-test-results.sh: New file.
3838         * Makefile (tests-special-notdir): New variable.
3839         (tests): Run merge-test-results.sh.
3840         (xtests): Likewise.
3841         * Rules (tests-special-notdir): New variable.
3842         (xtests-special-notdir): Likewise.
3843         (tests): Run merge-test-results.sh
3844         (xtests): Likewise.
3845
3846         * Makeconfig (test-xfail-name): New variable.
3847         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
3848         compute variable name for expected failures.
3849         * conform/Makefile (conformtest-headers-data): New variable.
3850         (conformtest-standards): Likewise.
3851         (conformtest-headers-ISO): Likewise.
3852         (conformtest-headers-ISO99): Likewise.
3853         (conformtest-headers-ISO11): Likewise.
3854         (conformtest-headers-POSIX): Likewise.
3855         (conformtest-headers-XPG3): Likewise.
3856         (conformtest-headers-XPG4): Likewise.
3857         (conformtest-headers-UNIX98): Likewise.
3858         (conformtest-headers-XOPEN2K): Likewise.
3859         (conformtest-headers-POSIX2008): Likewise.
3860         (conformtest-headers-XOPEN2K8): Likewise.
3861         (conformtest-header-list-base): Likewise.
3862         (conformtest-header-list-tests): Likewise.
3863         (conformtest-header-base): Likewise.
3864         (conformtest-header-tests): Likewise.
3865         (tests-special): Add $(conformtest-header-list-tests).  If
3866         [$(fast-check) && !$(cross-compiling)], add
3867         $(conformtest-header-tests) instead of
3868         $(objpfx)run-conformtest.out.
3869         (generated): Add $(conformtest-header-list-base).  If
3870         [$(fast-check) && !$(cross-compiling)], add
3871         $(conformtest-header-base).  Remove previous setting.
3872         ($(conformtest-header-list-tests)): New target.
3873         (test-xfail-run-conformtest): Remove variable.
3874         ($(objpfx)run-conformtest.out): Remove target.
3875         (test-xfail-ISO11/complex.h/conform): New variable.
3876         (test-xfail-ISO11/stdalign.h/conform): Likewise.
3877         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
3878         (test-xfail-XPG3/varargs.h/conform): Likewise.
3879         (test-xfail-XPG4/varargs.h/conform): Likewise.
3880         (test-xfail-UNIX98/varargs.h/conform): Likewise.
3881         (test-xfail-XPG4/ndbm.h/conform): Likewise.
3882         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
3883         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
3884         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
3885         (test-xfail-XPG3/fcntl.h/conform): Likewise.
3886         (test-xfail-XPG3/ftw.h/conform): Likewise.
3887         (test-xfail-XPG3/grp.h/conform): Likewise.
3888         (test-xfail-XPG3/langinfo.h/conform): Likewise.
3889         (test-xfail-XPG3/limits.h/conform): Likewise.
3890         (test-xfail-XPG3/pwd.h/conform): Likewise.
3891         (test-xfail-XPG3/search.h/conform): Likewise.
3892         (test-xfail-XPG3/signal.h/conform): Likewise.
3893         (test-xfail-XPG3/stdio.h/conform): Likewise.
3894         (test-xfail-XPG3/stdlib.h/conform): Likewise.
3895         (test-xfail-XPG3/string.h/conform): Likewise.
3896         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
3897         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
3898         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
3899         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
3900         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
3901         (test-xfail-XPG3/sys/types.h/conform): Likewise.
3902         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
3903         (test-xfail-XPG3/termios.h/conform): Likewise.
3904         (test-xfail-XPG3/time.h/conform): Likewise.
3905         (test-xfail-XPG3/unistd.h/conform): Likewise.
3906         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
3907         (test-xfail-XPG4/fcntl.h/conform): Likewise.
3908         (test-xfail-XPG4/langinfo.h/conform): Likewise.
3909         (test-xfail-XPG4/netdb.h/conform): Likewise.
3910         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
3911         (test-xfail-XPG4/signal.h/conform): Likewise.
3912         (test-xfail-XPG4/stdio.h/conform): Likewise.
3913         (test-xfail-XPG4/stdlib.h/conform): Likewise.
3914         (test-xfail-XPG4/stropts.h/conform): Likewise.
3915         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
3916         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
3917         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
3918         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
3919         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
3920         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
3921         (test-xfail-XPG4/sys/time.h/conform): Likewise.
3922         (test-xfail-XPG4/sys/types.h/conform): Likewise.
3923         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
3924         (test-xfail-XPG4/termios.h/conform): Likewise.
3925         (test-xfail-XPG4/ucontext.h/conform): Likewise.
3926         (test-xfail-XPG4/unistd.h/conform): Likewise.
3927         (test-xfail-XPG4/utmpx.h/conform): Likewise.
3928         (test-xfail-POSIX/sched.h/conform): Likewise.
3929         (test-xfail-POSIX/signal.h/conform): Likewise.
3930         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
3931         (test-xfail-POSIX/tar.h/conform): Likewise.
3932         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
3933         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
3934         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
3935         (test-xfail-UNIX98/netdb.h/conform): Likewise.
3936         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
3937         (test-xfail-UNIX98/sched.h/conform): Likewise.
3938         (test-xfail-UNIX98/signal.h/conform): Likewise.
3939         (test-xfail-UNIX98/stdio.h/conform): Likewise.
3940         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
3941         (test-xfail-UNIX98/stropts.h/conform): Likewise.
3942         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
3943         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
3944         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
3945         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
3946         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
3947         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
3948         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
3949         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
3950         (test-xfail-UNIX98/unistd.h/conform): Likewise.
3951         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
3952         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
3953         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
3954         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
3955         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
3956         (test-xfail-XOPEN2K/math.h/conform): Likewise.
3957         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3958         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
3959         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
3960         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
3961         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
3962         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
3963         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
3964         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
3965         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
3966         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
3967         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
3968         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
3969         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
3970         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
3971         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
3972         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
3973         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
3974         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
3975         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
3976         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
3977         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
3978         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
3979         (test-xfail-POSIX2008/signal.h/conform): Likewise.
3980         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
3981         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
3982         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
3983         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
3984         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
3985         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
3986         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
3987         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
3988         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
3989         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
3990         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
3991         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
3992         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
3993         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
3994         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
3995         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
3996         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
3997         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
3998         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
3999         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
4000         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
4001         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
4002         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
4003         (conformtest-cc-flags): Likewise.
4004         ($(conformtest-header-tests): New target.
4005         * conform/check-header-lists.sh: New file.
4006         * conform/run-conformtest.sh: Remove.
4007
4008         * conform/conformtest.pl: Allow ' and \ in values given for
4009         constants.
4010         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
4011         inclusion.
4012         [POSIX] (sys/types.h): Likewise.
4013         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
4014         inclusion.
4015         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
4016         inclusion.
4017         * conform/data/signal.h-data (SIGIO): Remove expectation.
4018         [XPG3] (SIGBUS): Do not expect.
4019         [POSIX || XPG3] (SIGPOLL): Likewise.
4020         [POSIX || XPG3] (SIGPROF): Likewise.
4021         [POSIX || XPG3] (SIGSYS): Likewise.
4022         [XPG3] (SIGTRAP): Likewise.
4023         [POSIX || XPG3] (SIGURG): Likewise.
4024         [POSIX || XPG3] (SIGVTALRM): Likewise.
4025         [POSIX || XPG3] (SIGXCPU): Likewise.
4026         [POSIX || XPG3] (SIGXFSZ): Likewise.
4027         [POSIX] (SA_SIGINFO): Expect.
4028         [XPG3] (siginfo_t): Do not expect type or contents.
4029         [POSIX] (si_pid): Do not expect element.
4030         [POSIX] (si_uid): Likewise.
4031         [POSIX] (si_addr): Likewise.
4032         [POSIX] (si_status): Likewise.
4033         [POSIX] (si_band): Likewise.
4034         [XPG4] (si_value): Likewise.
4035         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
4036         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
4037         [POSIX || XPG3] (ILL_ILLADR): Likewise.
4038         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
4039         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
4040         [POSIX || XPG3] (ILL_PRVREG): Likewise.
4041         [POSIX || XPG3] (ILL_COPROC): Likewise.
4042         [POSIX || XPG3] (ILL_BADSTK): Likewise.
4043         [POSIX || XPG3] (FPE_INTDIV): Likewise.
4044         [POSIX || XPG3] (FPE_INTOVF): Likewise.
4045         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
4046         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
4047         [POSIX || XPG3] (FPE_FLTUND): Likewise.
4048         [POSIX || XPG3] (FPE_FLTRES): Likewise.
4049         [POSIX || XPG3] (FPE_FLTINV): Likewise.
4050         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
4051         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
4052         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
4053         [POSIX || XPG3] (BUS_ADRALN): Likewise.
4054         [POSIX || XPG3] (BUS_ADRERR): Likewise.
4055         [POSIX || XPG3] (BUS_OBJERR): Likewise.
4056         [POSIX || XPG3] (CLD_EXITED): Likewise.
4057         [POSIX || XPG3] (CLD_KILLED): Likewise.
4058         [POSIX || XPG3] (CLD_DUMPED): Likewise.
4059         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
4060         [POSIX || XPG3] (CLD_STOPPED): Likewise.
4061         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
4062         [POSIX || XPG3] (POLL_IN): Likewise.
4063         [POSIX || XPG3] (POLL_OUT): Likewise.
4064         [POSIX || XPG3] (POLL_MSG): Likewise.
4065         [POSIX || XPG3] (POLL_ERR): Likewise.
4066         [POSIX || XPG3] (POLL_PRI): Likewise.
4067         [POSIX || XPG3] (POLL_HUP): Likewise.
4068         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
4069         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
4070         (SIG*): Do not allow.
4071         [XPG3] (si_*): Likewise.
4072         [XPG3] (SI_*): Likewise.
4073         [XPG3 || XPG4] (sigev_*): Likewise.
4074         [XPG3 || XPG4] (SIGEV_*): Likewise.
4075         [XPG3 || XPG4] (sival_*): Likewise.
4076         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
4077         [POSIX || XPG3] (BUS_*): Likewise.
4078         [POSIX || XPG3] (CLD_*): Likewise.
4079         [POSIX || XPG3] (FPE_*): Likewise.
4080         [POSIX || XPG3] (ILL_*): Likewise.
4081         [POSIX || XPG3] (POLL_*): Likewise.
4082         [POSIX || XPG3] (SEGV_*): Likewise.
4083         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
4084         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
4085         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
4086         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
4087         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
4088         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
4089         Specify type and value.
4090         (TVERSLEN): Likewise.
4091         (REGTYPE): Likewise.
4092         (AREGTYPE): Likewise.
4093         (LNKTYPE): Likewise.
4094         (SYMTYPE): Likewise.
4095         (CHRTYPE): Likewise.
4096         (BLKTYPE): Likewise.
4097         (DIRTYPE): Likewise.
4098         (FIFOTYPE): Likewise.
4099         (CONTTYPE): Likewise.
4100         (TSUID): Likewise.
4101         (TSGID): Likewise.
4102         (TSVTX): Likewise.
4103         (TUREAD): Likewise.
4104         (TUWRITE): Likewise.
4105         (TUEXEC): Likewise.
4106         (TGREAD): Likewise.
4107         (TGWRITE): Likewise.
4108         (TGEXEC): Likewise.
4109         (TOREAD): Likewise.
4110         (TOWRITE): Likewise.
4111         (TOEXEC): Likewise.
4112         [POSIX] (TSVTX): Expect constant.
4113
4114 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
4115
4116         * Makefile (tests): Change dependencies to ....
4117         (tests-special): ... additions to this variable.
4118         (tests): Depend on $(tests-special).
4119         * Makerules (check-abi-list): New variable.
4120         (check-abi): Depend on $(check-abi-list).
4121         [$(subdir) = elf] (tests-special): Add
4122         $(objpfx)check-abi-libc.out.
4123         [$(build-shared) = yes && subdir] (tests-special): Add
4124         $(check-abi-list).
4125         [$(build-shared) = yes && subdir] (tests): Do not depend on
4126         check-abi.
4127         * Rules (tests): Depend on $(tests-special).
4128         (xtests): Depend on $(xtests-special).
4129         * catgets/Makefile (tests): Change dependencies to ....
4130         (tests-special): ... additions to this variable.
4131         * conform/Makefile (tests): Change dependencies to ....
4132         (tests-special): ... additions to this variable.
4133         * elf/Makefile (tests): Change dependencies to ....
4134         (tests-special): ... additions to this variable.
4135         * grp/Makefile (tests): Change dependencies to ....
4136         (tests-special): ... additions to this variable.
4137         * iconv/Makefile (xtests): Change dependencies to ....
4138         (xtests-special): ... additions to this variable.
4139         * iconvdata/Makefile (tests): Change dependencies to ....
4140         (tests-special): ... additions to this variable.
4141         * intl/Makefile (tests): Change dependencies to ....
4142         (tests-special): ... additions to this variable.  Also add
4143         $(objpfx)tst-gettext.out.
4144         * io/Makefile (tests): Change dependencies to ....
4145         (tests-special): ... additions to this variable.
4146         * libio/Makefile (tests): Change dependencies to ....
4147         (tests-special): ... additions to this variable.
4148         * malloc/Makefile (tests): Change dependencies to ....
4149         (tests-special): ... additions to this variable.
4150         * misc/Makefile (tests): Change dependencies to ....
4151         (tests-special): ... additions to this variable.
4152         * nptl/Makefile (tests): Change dependencies to ....
4153         (tests-special): ... additions to this variable.
4154         * nptl_db/Makefile (tests): Change dependencies to ....
4155         (tests-special): ... additions to this variable.
4156         * posix/Makefile (tests): Change dependencies to ....
4157         (tests-special): ... additions to this variable.
4158         (xtests): Change dependencies to ....
4159         (xtests-special): ... additions to this variable.
4160         * resolv/Makefile (tests): Change dependencies to ....
4161         (tests-special): ... additions to this variable.
4162         (xtests): Change dependencies to ....
4163         (xtests-special): ... additions to this variable.
4164         * stdio-common/Makefile (tests): Change dependencies to ....
4165         (tests-special): ... additions to this variable.
4166         (do-tst-unbputc): Remove target.
4167         (do-tst-printf): Likewise.
4168         * stdlib/Makefile (tests): Change dependencies to ....
4169         (tests-special): ... additions to this variable.
4170         * string/Makefile (tests): Change dependencies to ....
4171         (tests-special): ... additions to this variable.
4172         * sysdeps/x86/Makefile (tests): Change dependencies to ....
4173         (tests-special): ... additions to this variable.
4174
4175         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
4176         whole file.
4177         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
4178         whole file.
4179         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
4180         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
4181
4182         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
4183         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
4184         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
4185         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
4186         * conform/data/libgen.h-data [XPG3]: Likewise.
4187         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
4188         * conform/data/ndbm.h-data [XPG3]: Likewise.
4189         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
4190         * conform/data/netdb.h-data [XPG3]: Likewise.
4191         * conform/data/netinet/in.h-data [XPG3]: Likewise.
4192         * conform/data/poll.h-data [XPG3]: Likewise.
4193         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
4194         * conform/data/strings.h-data [XPG3]: Likewise.
4195         * conform/data/stropts.h-data [XPG3]: Likewise.
4196         * conform/data/sys/mman.h-data [XPG3]: Likewise.
4197         * conform/data/sys/resource.h-data [XPG3]: Likewise.
4198         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
4199         Likewise.
4200         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
4201         * conform/data/sys/time.h-data [XPG3]: Likewise.
4202         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
4203         * conform/data/sys/uio.h-data [XPG3]: Likewise.
4204         * conform/data/sys/un.h-data [XPG3]: Likewise.
4205         * conform/data/syslog.h-data [XPG3]: Likewise.
4206         * conform/data/ucontext.h-data [XPG3]: Likewise.
4207         * conform/data/utmpx.h-data [XPG3]: Likewise.
4208         * conform/data/varargs.h-data [UNIX98]: Enable file.
4209
4210         * manual/Makefile (INSTALL_INFO): Remove variable setting.
4211
4212         * math/libm-test.inc (struct test_f_f_data): Move expected results
4213         into structure for each rounding mode.
4214         (struct test_ff_f_data): Likewise.
4215         (struct test_ff_f_data_nexttoward): Likewise.
4216         (struct test_fi_f_data): Likewise.
4217         (struct test_fl_f_data): Likewise.
4218         (struct test_if_f_data): Likewise.
4219         (struct test_fff_f_data): Likewise.
4220         (struct test_c_f_data): Likewise.
4221         (struct test_f_f1_data): Likewise.
4222         (struct test_fF_f1_data): Likewise.
4223         (struct test_ffI_f1_data): Likewise.
4224         (struct test_c_c_data): Likewise.
4225         (struct test_cc_c_data): Likewise.
4226         (struct test_f_i_data): Likewise.
4227         (struct test_ff_i_data): Likewise.
4228         (struct test_f_l_data): Likewise.
4229         (struct test_f_L_data): Likewise.
4230         (struct test_fFF_11_data): Likewise.
4231         (RM_): New macro.
4232         (RM_FE_DOWNWARD): Likewise.
4233         (RM_FE_TONEAREST): Likewise.
4234         (RM_FE_TOWARDZERO): Likewise.
4235         (RM_FE_UPWARD): Likewise.
4236         (RUN_TEST_LOOP_f_f): Update references to expected results.
4237         (RUN_TEST_LOOP_2_f): Likewise.
4238         (RUN_TEST_LOOP_fff_f): Likewise.
4239         (RUN_TEST_LOOP_c_f): Likewise.
4240         (RUN_TEST_LOOP_f_f1): Likewise.
4241         (RUN_TEST_LOOP_fF_f1): Likewise.
4242         (RUN_TEST_LOOP_fI_f1): Likewise.
4243         (RUN_TEST_LOOP_ffI_f1): Likewise.
4244         (RUN_TEST_LOOP_c_c): Likewise.
4245         (RUN_TEST_LOOP_cc_c): Likewise.
4246         (RUN_TEST_LOOP_f_i): Likewise.
4247         (RUN_TEST_LOOP_f_i_tg): Likewise.
4248         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4249         (RUN_TEST_LOOP_f_b): Likewise.
4250         (RUN_TEST_LOOP_f_b_tg): Likewise.
4251         (RUN_TEST_LOOP_f_l): Likewise.
4252         (RUN_TEST_LOOP_f_L): Likewise.
4253         (RUN_TEST_LOOP_fFF_11): Likewise.
4254         * math/gen-libm-test.pl (parse_args): Output four copies of
4255         expected results for each test.
4256
4257         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
4258         (__ASSUME_UTIMES): Remove.
4259         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4260         (__ASSUME_UTIMES): Likewise.
4261
4262         * math/gen-auto-libm-tests.c: Update comment on output format.
4263         (output_for_one_input_case): Generate before-rounding and
4264         after-rounding information as conditions on output flags not
4265         floating-point format.
4266         * math/auto-libm-test-out: Regenerated.
4267         * math/gen-libm-test.pl (cond_value): New function.
4268         (or_cond_value): Use cond_value.
4269         (generate_testfile): Handle conditional exceptions.
4270
4271 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
4272
4273         * math/libm-test.inc (max_valid_error): New variable.
4274         (init_max_error): Take new argument specifying whether function
4275         results are exactly determined.  Set max_valid_error and bound
4276         other variables for errors based on this argument.
4277         (set_max_error): Do not record results above max_valid_error.
4278         (check_float_internal): Only accept errors of up to 0.5ulps if
4279         also at most max_valid_error.
4280         (START): Take new argument EXACT and pass it to init_max_error.
4281         (acos_test): Update call to START.
4282         (acos_test_tonearest): Likewise.
4283         (acos_test_towardzero): Likewise.
4284         (acos_test_downward): Likewise.
4285         (acos_test_upward): Likewise.
4286         (acosh_test): Likewise.
4287         (asin_test): Likewise.
4288         (asin_test_tonearest): Likewise.
4289         (asin_test_towardzero): Likewise.
4290         (asin_test_downward): Likewise.
4291         (asin_test_upward): Likewise.
4292         (asinh_test): Likewise.
4293         (atan_test): Likewise.
4294         (atanh_test): Likewise.
4295         (atan2_test): Likewise.
4296         (cabs_test): Likewise.
4297         (cacos_test): Likewise.
4298         (cacosh_test): Likewise.
4299         (carg_test): Likewise.
4300         (casin_test): Likewise.
4301         (casinh_test): Likewise.
4302         (catan_test): Likewise.
4303         (catanh_test): Likewise.
4304         (cbrt_test): Likewise.
4305         (ccos_test): Likewise.
4306         (ccosh_test): Likewise.
4307         (ceil_test): Likewise.
4308         (cexp_test): Likewise.
4309         (cimag_test): Likewise.
4310         (clog_test): Likewise.
4311         (clog10_test): Likewise.
4312         (conj_test): Likewise.
4313         (copysign_test): Likewise.
4314         (cos_test): Likewise.
4315         (cos_test_tonearest): Likewise.
4316         (cos_test_towardzero): Likewise.
4317         (cos_test_downward): Likewise.
4318         (cos_test_upward): Likewise.
4319         (cosh_test): Likewise.
4320         (cosh_test_tonearest): Likewise.
4321         (cosh_test_towardzero): Likewise.
4322         (cosh_test_downward): Likewise.
4323         (cosh_test_upward): Likewise.
4324         (cpow_test): Likewise.
4325         (cproj_test): Likewise.
4326         (creal_test): Likewise.
4327         (csin_test): Likewise.
4328         (csinh_test): Likewise.
4329         (csqrt_test): Likewise.
4330         (ctan_test): Likewise.
4331         (ctan_test_tonearest): Likewise.
4332         (ctan_test_towardzero): Likewise.
4333         (ctan_test_downward): Likewise.
4334         (ctan_test_upward): Likewise.
4335         (ctanh_test): Likewise.
4336         (ctanh_test_tonearest): Likewise.
4337         (ctanh_test_towardzero): Likewise.
4338         (ctanh_test_downward): Likewise.
4339         (ctanh_test_upward): Likewise.
4340         (erf_test): Likewise.
4341         (erfc_test): Likewise.
4342         (exp_test): Likewise.
4343         (exp_test_tonearest): Likewise.
4344         (exp_test_towardzero): Likewise.
4345         (exp_test_downward): Likewise.
4346         (exp_test_upward): Likewise.
4347         (exp10_test): Likewise.
4348         (exp10_test_tonearest): Likewise.
4349         (exp10_test_towardzero): Likewise.
4350         (exp10_test_downward): Likewise.
4351         (exp10_test_upward): Likewise.
4352         (pow10_test): Likewise.
4353         (exp2_test): Likewise.
4354         (expm1_test): Likewise.
4355         (expm1_test_tonearest): Likewise.
4356         (expm1_test_towardzero): Likewise.
4357         (expm1_test_downward): Likewise.
4358         (expm1_test_upward): Likewise.
4359         (fabs_test): Likewise.
4360         (fdim_test): Likewise.
4361         (floor_test): Likewise.
4362         (fma_test): Likewise.
4363         (fma_test_towardzero): Likewise.
4364         (fma_test_downward): Likewise.
4365         (fma_test_upward): Likewise.
4366         (fmax_test): Likewise.
4367         (fmin_test): Likewise.
4368         (fmod_test): Likewise.
4369         (fpclassify_test): Likewise.
4370         (frexp_test): Likewise.
4371         (hypot_test): Likewise.
4372         (ilogb_test): Likewise.
4373         (isfinite_test): Likewise.
4374         (finite_test): Likewise.
4375         (isgreater_test): Likewise.
4376         (isgreaterequal_test): Likewise.
4377         (isinf_test): Likewise.
4378         (isless_test): Likewise.
4379         (islessequal_test): Likewise.
4380         (islessgreater_test): Likewise.
4381         (isnan_test): Likewise.
4382         (isnormal_test): Likewise.
4383         (issignaling_test): Likewise.
4384         (isunordered_test): Likewise.
4385         (j0_test): Likewise.
4386         (j1_test): Likewise.
4387         (jn_test): Likewise.
4388         (ldexp_test): Likewise.
4389         (lgamma_test): Likewise.
4390         (gamma_test): Likewise.
4391         (lrint_test): Likewise.
4392         (lrint_test_tonearest): Likewise.
4393         (lrint_test_towardzero): Likewise.
4394         (lrint_test_downward): Likewise.
4395         (lrint_test_upward): Likewise.
4396         (llrint_test): Likewise.
4397         (llrint_test_tonearest): Likewise.
4398         (llrint_test_towardzero): Likewise.
4399         (llrint_test_downward): Likewise.
4400         (llrint_test_upward): Likewise.
4401         (log_test): Likewise.
4402         (log10_test): Likewise.
4403         (log1p_test): Likewise.
4404         (log2_test): Likewise.
4405         (logb_test): Likewise.
4406         (logb_test_downward): Likewise.
4407         (lround_test): Likewise.
4408         (llround_test): Likewise.
4409         (modf_test): Likewise.
4410         (nearbyint_test): Likewise.
4411         (nextafter_test): Likewise.
4412         (nexttoward_test): Likewise.
4413         (pow_test): Likewise.
4414         (pow_test_tonearest): Likewise.
4415         (pow_test_towardzero): Likewise.
4416         (pow_test_downward): Likewise.
4417         (pow_test_upward): Likewise.
4418         (remainder_test): Likewise.
4419         (drem_test): Likewise.
4420         (remainder_test_tonearest): Likewise.
4421         (drem_test_tonearest): Likewise.
4422         (remainder_test_towardzero): Likewise.
4423         (drem_test_towardzero): Likewise.
4424         (remainder_test_downward): Likewise.
4425         (drem_test_downward): Likewise.
4426         (remainder_test_upward): Likewise.
4427         (drem_test_upward): Likewise.
4428         (remquo_test): Likewise.
4429         (rint_test): Likewise.
4430         (rint_test_tonearest): Likewise.
4431         (rint_test_towardzero): Likewise.
4432         (rint_test_downward): Likewise.
4433         (rint_test_upward): Likewise.
4434         (round_test): Likewise.
4435         (scalb_test): Likewise.
4436         (scalbn_test): Likewise.
4437         (scalbln_test): Likewise.
4438         (signbit_test): Likewise.
4439         (sin_test): Likewise.
4440         (sin_test_tonearest): Likewise.
4441         (sin_test_towardzero): Likewise.
4442         (sin_test_downward): Likewise.
4443         (sin_test_upward): Likewise.
4444         (sincos_test): Likewise.
4445         (sinh_test): Likewise.
4446         (sinh_test_tonearest): Likewise.
4447         (sinh_test_towardzero): Likewise.
4448         (sinh_test_downward): Likewise.
4449         (sinh_test_upward): Likewise.
4450         (sqrt_test): Likewise.
4451         (sqrt_test_tonearest): Likewise.
4452         (sqrt_test_towardzero): Likewise.
4453         (sqrt_test_downward): Likewise.
4454         (sqrt_test_upward): Likewise.
4455         (tan_test): Likewise.
4456         (tan_test_tonearest): Likewise.
4457         (tan_test_towardzero): Likewise.
4458         (tan_test_downward): Likewise.
4459         (tan_test_upward): Likewise.
4460         (tanh_test): Likewise.
4461         (tgamma_test): Likewise.
4462         (trunc_test): Likewise.
4463         (y0_test): Likewise.
4464         (y1_test): Likewise.
4465         (yn_test): Likewise.
4466         (significand_test): Likewise.
4467
4468         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
4469         individual tests in comment.
4470         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
4471         (prev_max_error): New variable.
4472         (prev_real_max_error): Likewise.
4473         (prev_imag_max_error): Likewise.
4474         (compare_ulp_data): Don't refer to test names in comment.
4475         (find_test_ulps): Remove function.
4476         (find_function_ulps): Likewise.
4477         (find_complex_function_ulps): Likewise.
4478         (init_max_error): Take function name as argument.  Look up ulps
4479         for that function.
4480         (print_ulps): Remove function.
4481         (print_max_error): Use prev_max_error instead of calling
4482         find_function_ulps.
4483         (print_complex_max_error): Use prev_real_max_error and
4484         prev_imag_max_error instead of calling find_complex_function_ulps.
4485         (check_float_internal): Take max_ulp parameter instead of calling
4486         find_test_ulps.  Don't call print_ulps.
4487         (check_float): Update call to check_float_internal.
4488         (check_complex): Update calls to check_float_internal.
4489         (START): Pass argument to init_max_error.
4490         * math/gen-libm-test.pl (%results): Don't include "kind"
4491         information.
4492         (parse_ulps): Don't handle ulps of individual tests.
4493         (print_ulps_file): Likewise.
4494         (output_ulps): Likewise.
4495         * math/README.libm-test: Update.
4496         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
4497         individual tests.
4498         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
4499         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
4500         * sysdeps/arm/libm-test-ulps: Likewise.
4501         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
4502         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
4503         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
4504         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
4505         * sysdeps/microblaze/libm-test-ulps: Likewise.
4506         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4507         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4508         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4509         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4510         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4511         * sysdeps/sh/libm-test-ulps: Likewise.
4512         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4513         * sysdeps/tile/libm-test-ulps: Likewise.
4514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4515
4516 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
4517
4518         * math/libm-test.inc (print_complex_max_error): Check separately
4519         whether real and imaginary errors are within allowed range and
4520         pass 0 to print_complex_function_ulps instead of value within
4521         allowed range.
4522
4523 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4524
4525         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
4526         formatting.
4527         (get_handles_fopen): Likewise.
4528         (do_write_test): Likewise.
4529
4530         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
4531
4532         * libio/fileops.c (do_ftell): Use cached offset when
4533         available.
4534         * libio/iofwide.c (do_ftell_wide): Likewise.
4535         * libio/iofdopen.c (_IO_new_fdopen): Don't use
4536         _IO_file_attach.
4537         * libio/wfileops.c (_IO_fwide): Don't cache offset.
4538
4539         [BZ #16532]
4540         * libio/libioP.h (get_file_offset): New function.
4541         * libio/fileops.c (get_file_offset): Likewise.
4542         (do_ftell): Likewise.
4543         (_IO_new_file_seekoff): Split out ftell logic.
4544         * libio/wfileops.c (do_ftell_wide): Likewise.
4545         (_IO_wfile_seekoff): Split out ftell logic.
4546         * libio/tst-ftell-active-handler.c: New test case.
4547         * libio/Makefile (tests): Add it.
4548
4549 2014-03-03  Roland McGrath  <roland@hack.frob.com>
4550
4551         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
4552         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
4553
4554 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
4555
4556         [BZ #16639]
4557         * nscd/connections.c (nscd_init): Call do_exit.
4558         (start_threads): Call do_exit and notify_parent.
4559         (begin_drop_privileges): Call do_exit.
4560         (finish_drop_privileges): Likewise.
4561         * nscd/selinux.c (preserve_capabilities): Likewise.
4562         (install_real_capabilities): Likewise.
4563         (nscd_selinux_enabled): Likewise.
4564         (avc_create_thread): Likewise.
4565         (avc_alloc_lock): Likewise.
4566         (nscd_avc_init): Likewise.
4567         * nscd/nscd.c (parent_fd): New static variable.
4568         (main): Create a pipe between parent and child processes.
4569         Skip closing parent_fd.
4570         (monitor_child): New function.
4571         (do_exit): Likewise.
4572         (notify_parent): Likewise.
4573         * nscd/nscd.h (notify_parent): Likewise.
4574         (do_exit): Likewise.
4575
4576 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
4577
4578         * malloc/malloc.c (__libc_calloc): Revert last change.
4579
4580 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4581
4582         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4583
4584 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4585
4586         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
4587         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
4588         implementation.
4589         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4590         (__libc_ifunc_impl_list): Likewise.
4591         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
4592         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
4593         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
4594         * string/strrchr.c: Define STRRCHR.
4595
4596 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
4597
4598         * benchtest/bench-strtok.c (simple_strtok): Delete.
4599         (strtok_string): Use as benchmark.
4600         * string/strtok (STRTOK): New macro.
4601
4602 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
4603
4604         * manual/threads.texi: Add header and standard comments to all
4605         functions.
4606
4607         * elf/dl-lookup.c (check_match): New function.
4608         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
4609         (do_lookup_x): Remove nested function check_match. Use non-nested
4610         function check_match.
4611
4612 2014-02-28  Roland McGrath  <roland@hack.frob.com>
4613
4614         * csu/Makefile (generated, before-compile): Use += rather than =.
4615         * catgets/Makefile (generated, generated-dirs): Likewise.
4616         * debug/Makefile (generated): Likewise.
4617         * dlfcn/Makefile (generated): Likewise.
4618         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
4619         * iconvdata/Makefile (before-compile, generated): Likewise.
4620         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
4621         * libio/Makefile (generated): Likewise.
4622         * malloc/Makefile (generated): Likewise.
4623         * manual/Makefile (generated, generated-dirs): Likewise.
4624         * misc/Makefile (generated): Likewise.
4625         * posix/Makefile (generated): Likewise.
4626         * resolv/Makefile (generated): Likewise.
4627         * sunrpc/Makefile (generated, generated-dirs): Likewise.
4628         * timezone/Makefile (generated, generated-dirs): Likewise.
4629
4630         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
4631
4632 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4633
4634         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
4635         power8 implementation.
4636         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
4637         file: POWER8 llround ifunc implementation.
4638         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
4639         (__lllround): Add POWER8 implementation.
4640         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
4641         POWER8 llround implementation.
4642
4643         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
4644         power8 implementation.
4645         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
4646         file: POWER8 llrint ifunc implementation.
4647         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
4648         Add POWER8 implementation.
4649         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
4650         POWER8 llrint implementation.
4651
4652         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
4653         power8 implementation.
4654         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
4655         file: POWER8 finite ifunc implementation.
4656         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
4657         Add POWER8 implementation.
4658         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
4659         Likewise.
4660         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
4661         POWER8 finite implementation.
4662         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
4663
4664         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
4665         power8 implementation.
4666         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
4667         file: POWER8 isinf ifunc implementation.
4668         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
4669         POWER8 implementation.
4670         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
4671         Likewise.
4672         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
4673         isinf implementation.
4674         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
4675
4676         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
4677         (INIT_ARCH): Add hwcap2 initialization.
4678         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
4679         power8 implementation.
4680         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
4681         file: POWER8 isnan ifunc implementation.
4682         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
4683         POWER8 implementation.
4684         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
4685         Likewise.
4686         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
4687         isnan implementation.
4688         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
4689
4690 2014-02-27  Joey Ye  <joey.ye@arm.com>
4691
4692         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
4693         (_FP_NANFRAC_Q): Set to zero.
4694
4695 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4696
4697         [BZ #16623]
4698         * math/auto-libm-test-in: New test inputs.
4699         * math/auto-libm-test-out: Regenerate.
4700         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
4701         and DA.
4702         (__cos): Likewise.
4703         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
4704
4705 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
4706
4707         * scripts/evaluate-test.sh: Take new argument indicating whether
4708         failure is expected.
4709         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
4710         indicating whether failure is expected.
4711         * conform/Makefile (test-xfail-run-conformtest): New variable.
4712         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
4713         level.
4714         * posix/Makefile (test-xfail-annexc): New variable.
4715         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
4716
4717 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
4718
4719         * argp/Makefile: Include Makeconfig immediately after defining
4720         subdir.
4721         * assert/Makefile: Likewise.
4722         * benchtests/Makefile: Likewise.
4723         * catgets/Makefile: Likewise.
4724         * conform/Makefile: Likewise.
4725         * crypt/Makefile: Likewise.
4726         * csu/Makefile: Likewise.
4727         (all): Remove target.
4728         * ctype/Makefile: Include Makeconfig immediately after defining
4729         subdir.
4730         * debug/Makefile: Likewise.
4731         * dirent/Makefile: Likewise.
4732         * dlfcn/Makefile: Likewise.
4733         * gmon/Makefile: Likewise.
4734         * gnulib/Makefile: Likewise.
4735         * grp/Makefile: Likewise.
4736         * gshadow/Makefile: Likewise.
4737         * hesiod/Makefile: Likewise.
4738         * hurd/Makefile: Likewise.
4739         (all): Remove target.
4740         * iconvdata/Makefile: Include Makeconfig immediately after
4741         defining subdir.
4742         * inet/Makefile: Likewise.
4743         * intl/Makefile: Likewise.
4744         * io/Makefile: Likewise.
4745         * libio/Makefile: Likewise.
4746         (all): Remove target.
4747         * locale/Makefile: Include Makeconfig immediately after defining
4748         subdir.
4749         * login/Makefile: Likewise.
4750         * mach/Makefile: Likewise.
4751         (all): Remove target.
4752         * malloc/Makefile: Include Makeconfig immediately after defining
4753         subdir.
4754         (all): Remove target.
4755         * manual/Makefile: Include Makeconfig immediately after defining
4756         subdir.
4757         * math/Makefile: Likewise.
4758         * misc/Makefile: Likewise.
4759         * nis/Makefile: Likewise.
4760         * nss/Makefile: Likewise.
4761         * po/Makefile: Likewise.
4762         (all): Remove target.
4763         * posix/Makefile: Include Makeconfig immediately after defining
4764         subdir.
4765         * pwd/Makefile: Likewise.
4766         * resolv/Makefile: Likewise.
4767         * resource/Makefile: Likewise.
4768         * rt/Makefile: Likewise.
4769         * setjmp/Makefile: Likewise.
4770         * shadow/Makefile: Likewise.
4771         * signal/Makefile: Likewise.
4772         * socket/Makefile: Likewise.
4773         * soft-fp/Makefile: Likewise.
4774         * stdio-common/Makefile: Likewise.
4775         * stdlib/Makefile: Likewise.
4776         * streams/Makefile: Likewise.
4777         * string/Makefile: Likewise.
4778         * sunrpc/Makefile: Likewise.
4779         (all): Remove target.
4780         * sysvipc/Makefile: Include Makeconfig immediately after defining
4781         subdir.
4782         * termios/Makefile: Likewise.
4783         * time/Makefile: Likewise.
4784         * timezone/Makefile: Likewise.
4785         (all): Remove target.
4786         * wcsmbs/Makefile: Include Makeconfig immediately after defining
4787         subdir.
4788         * wctype/Makefile: Likewise.
4789
4790 2014-02-26  Steve Ellcey  <sellcey@mips.com>
4791
4792         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
4793         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
4794         (libc_feholdexcept_setround_mips): Ditto.
4795         (libc_feholdsetround): New.
4796         (libc_feholdsetroundf): New.
4797         (libc_feholdsetroundl): New.
4798         (libc_feupdateenv_test_mips): New.
4799         (libc_feupdateenv_test): New.
4800         (libc_feupdateenv_testf): New.
4801         (libc_feupdateenv_testl): New.
4802         (libc_feresetround): New.
4803         (libc_feresetroundf): New.
4804         (libc_feresetroundl): New.
4805         (libc_fetestexcept_mips): New.
4806         (libc_fetestexcept): New.
4807         (libc_fetestexceptf): New.
4808         (libc_fetestexceptl): New.
4809         (HAVE_RM_CTX): New.
4810         (libc_feholdexcept_setround_mips_ctx): New.
4811         (libc_feholdexcept_setround_ctx): New.
4812         (libc_feholdexcept_setroundf_ctx): New.
4813         (libc_feholdexcept_setroundl_ctx): New.
4814         (libc_fesetenv_mips_ctx): New.
4815         (libc_fesetenv_ctx): New.
4816         (libc_fesetenv_ctxf): New.
4817         (libc_fesetenv_ctxl): New.
4818         (libc_feupdateenv_mips_ctx): New.
4819         (libc_feupdateenv_ctx): New.
4820         (libc_feupdateenvf_ctx): New.
4821         (libc_feupdateenvl_ctx): New.
4822         (libc_feholdsetround_mips_ctx): New.
4823         (libc_feholdsetround_ctx): New.
4824         (libc_feholdsetroundf_ctx): New.
4825         (libc_feholdsetroundl_ctx): New.
4826         (libc_feresetround_mips_ctx): New.
4827         (libc_feresetround_ctx): New.
4828         (libc_feresetroundf_ctx): New.
4829         (libc_feresetroundl_ctx): New.
4830
4831 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
4832
4833         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
4834
4835         * manual/ipc.texi: New file.
4836         * manual/Makefile (chapters): Add ipc.
4837         * manual/job.texi: Add "Inter-Process Communication" to next.
4838         * manual/process.texi: Add "Inter-Process Communication" to prev.
4839
4840 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4841
4842         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4843
4844 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
4845
4846         * malloc/malloc.c (__libc_calloc): Simplify implementation.
4847
4848         * manual/arith.texi: Fix spaces after sentences.
4849         * manual/charset.texi: Likewise.
4850         * manual/errno.texi: Likewise.
4851         * manual/install.texi: Likewise.
4852         * manual/llio.texi: Likewise.
4853         * manual/locale.texi: Likewise.
4854         * manual/maint.texi: Likewise.
4855         * manual/math.texi: Likewise.
4856         * manual/memory.texi: Likewise.
4857         * manual/message.texi: Likewise.
4858         * manual/probes.texi: Likewise.
4859         * manual/resource.texi: Likewise.
4860         * manual/signal.texi: Likewise.
4861         * manual/socket.texi: Likewise.
4862         * manual/stdio.texi: Likewise.
4863         * manual/string.texi: Likewise.
4864         * manual/time.texi: Likewise.
4865         * manual/users.texi: Likewise.
4866
4867 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
4868
4869         [BZ #16632]
4870         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
4871         _DEFAULT_SOURCE is defined.
4872
4873 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
4874             Carlos O'Donell  <carlos@redhat.com>
4875
4876         [BZ #16613]
4877         * elf/dl-tls.c (_dl_count_modids): New function.
4878         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
4879         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
4880         audit library and increment generation counter.
4881         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
4882         * elf/tst-audit9.c: New file.
4883         * elf/tst-auditmod9a.c: New file.
4884         * elf/tst-auditmod9b.c: New file.
4885         * elf/Makefile: Add rules to build and run tst-audit9.
4886
4887 2014-02-25  Florian Weimer  <fweimer@redhat.com>
4888
4889         [BZ #15347]
4890         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
4891
4892 2014-02-25  Will Newton  <will.newton@linaro.org>
4893
4894         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
4895         (__longjmp): Restore sp and lr before restoring callee
4896         saved registers.  Add longjmp and longjmp_target
4897         SystemTap probe point.
4898         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
4899         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
4900         Define to zero to match jmpbuf layout.
4901         * sysdeps/arm/setjmp.S: Include stap-probe.h.
4902         (__sigsetjmp): Save sp and lr before saving callee
4903         saved registers.  Add setjmp SystemTap probe point.
4904
4905 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
4906
4907         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4908
4909 2014-02-24  Andreas Schwab  <schwab@suse.de>
4910
4911         [BZ #15804]
4912         * elf/pldd.c (wait_for_ptrace_stop): New function.
4913         (main): Call it after attaching.
4914
4915 2014-02-22  Roland McGrath  <roland@hack.frob.com>
4916
4917         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
4918         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
4919         Versions files is now verboten.
4920         * hurd/Versions (libc: GLIBC_2.0):
4921         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
4922         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
4923         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
4924         * mach/Versions: Likewise.
4925
4926         * csu/Versions: Remove unused %include.
4927         * resolv/Versions: Likewise.
4928
4929 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
4930
4931         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
4932         ($(objpfx)check-local-headers.out): Likewise.
4933         ($(objpfx)begin-end-check.out): Likewise.
4934         * Makerules (check-abi-%.out): Likewise.
4935         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
4936         ($(objpfx)test2.cat): Likewise.
4937         ($(objpfx)de/libc.cat): Likewise.
4938         ($(objpfx)test-gencat.out): Likewise.
4939         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
4940         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
4941         ($(objpfx)noload-mem): Likewise.
4942         ($(objpfx)tst-pathopt.out): Likewise.
4943         ($(objpfx)tst-rtld-load-self.out): Likewise.
4944         ($(objpfx)tst-array1-cmp.out): Likewise.
4945         ($(objpfx)tst-array1-static-cmp.out): Likewise.
4946         ($(objpfx)tst-array2-cmp.out): Likewise.
4947         ($(objpfx)tst-array3-cmp.out): Likewise.
4948         ($(objpfx)tst-array4-cmp.out): Likewise.
4949         ($(objpfx)tst-array5-cmp.out): Likewise.
4950         ($(objpfx)tst-array5-static-cmp.out): Likewise.
4951         ($(objpfx)check-textrel.out): Likewise.
4952         ($(objpfx)check-execstack.out): Likewise.
4953         ($(objpfx)check-localplt.out): Likewise.
4954         ($(objpfx)order2-cmp.out): Likewise.
4955         ($(objpfx)tst-leaks1-mem): Likewise.
4956         ($(objpfx)tst-leaks1-static-mem): Likewise.
4957         ($(objpfx)tst-initorder-cmp.out): Likewise.
4958         ($(objpfx)tst-initorder2-cmp.out): Likewise.
4959         ($(objpfx)tst-unused-dep.out): Likewise.
4960         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
4961         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
4962         * iconv/Makefile (test-iconvconfig): Likewise.
4963         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
4964         ($(objpfx)iconv-test.out): Likewise.
4965         ($(objpfx)tst-tables.out): Likewise.
4966         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
4967         ($(objpfx)tst-gettext.out): Likewise.
4968         ($(objpfx)tst-translit.out): Likewise.
4969         ($(objpfx)tst-gettext2.out): Likewise.
4970         ($(objpfx)tst-gettext4.out): Likewise.
4971         ($(objpfx)tst-gettext6.out): Likewise.
4972         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
4973         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
4974         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
4975         ($(objpfx)tst-fopenloc-mem.out): Likewise.
4976         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
4977         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
4978         * posix/Makefile ($(objpfx)globtest.out): Likewise.
4979         ($(objpfx)wordexp-tst.out): Likewise.
4980         ($(objpfx)annexc.out): Likewise.
4981         ($(objpfx)tst-fnmatch-mem): Likewise.
4982         ($(objpfx)bug-regex2-mem): Likewise.
4983         ($(objpfx)bug-regex14-mem): Likewise.
4984         ($(objpfx)bug-regex21-mem): Likewise.
4985         ($(objpfx)bug-regex31-mem): Likewise.
4986         ($(objpfx)tst-vfork3-mem): Likewise.
4987         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
4988         ($(objpfx)tst-pcre-mem): Likewise.
4989         ($(objpfx)tst-boost-mem): Likewise.
4990         ($(objpfx)tst-getconf.out): Likewise.
4991         ($(objpfx)bug-ga2-mem): Likewise.
4992         ($(objpfx)bug-glob2-mem): Likewise.
4993         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
4994         ($(objpfx)mtrace-tst-leaks2): Likewise.
4995         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
4996         ($(objpfx)tst-printf.out): Likewise.
4997         ($(objpfx)tst-setvbuf1.out): Likewise.
4998         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
4999         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
5000         ($(objpfx)tst-fmtmsg.out): Likewise.
5001         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
5002         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
5003
5004         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
5005         * bits/sigaction.h [__USE_MISC]: Likewise.
5006         * bits/waitstatus.h: Update #endif comments.
5007         * ctype/ctype.h: Likewise.
5008         * dirent/dirent.h: Likewise.
5009         [__USE_MISC]: Remove redundant conditionals.
5010         * grp/grp.h: Update #endif comments.
5011         [__USE_GNU]: Remove redundant conditionals.
5012         [__USE_MISC]: Likewise.
5013         * inet/netinet/in.h [__USE_GNU]: Likewise.
5014         * io/sys/stat.h [__USE_MISC]: Likewise.
5015         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
5016         * libio/bits/stdio.h: Update #endif comments.
5017         [__USE_MISC]: Remove redundant conditionals.
5018         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
5019         * libio/stdio.h: Update #endif comments.
5020         [__USE_MISC]: Remove redundant conditionals.
5021         * math/bits/math-finite.h [__USE_MISC]: Likewise.
5022         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
5023         * math/math.h: Update #else and #endif comments.
5024         [__USE_MISC]: Remove redundant conditionals.
5025         * misc/sys/uio.h: Update #endif comments.
5026         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
5027         * posix/glob.h [__USE_MISC]: Likewise.
5028         * posix/sys/types.h: Update #endif comments.
5029         [__USE_MISC]: Remove redundant conditionals.
5030         * posix/sys/wait.h: Update #endif comments.
5031         [__USE_MISC]: Remove redundant conditionals.
5032         * posix/unistd.h: Update #endif comments.
5033         [__USE_MISC]: Remove redundant conditionals.
5034         * pwd/pwd.h [__USE_GNU]: Likewise.
5035         [__USE_MISC]: Likewise.
5036         * resolv/netdb.h [__USE_GNU]: Likewise.
5037         * signal/signal.h: Update #endif comments.
5038         [__USE_MISC]: Remove redundant conditionals.
5039         * stdlib/stdlib.h: Update #else and #endif comments.
5040         [__USE_MISC]: Remove redundant conditionals.
5041         [__USE_GNU]: Likewise.
5042         * string/bits/string2.h [__USE_MISC]: Likewise.
5043         * string/string.h: Update #endif comments.
5044         [__USE_MISC]: Remove redundant conditionals.
5045         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
5046         Likewise.
5047         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
5048         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
5049         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
5050         Likewise.
5051         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
5052         Likewise.
5053         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
5054         comments.
5055         [__USE_MISC]: Remove redundant conditionals.
5056         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
5057         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
5058         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
5059         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
5060         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
5061         Likewise.
5062         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
5063         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
5064         Likewise.
5065         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
5066         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
5067         Likewise.
5068         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
5069         Likewise.
5070         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
5071         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
5072         Likewise.
5073         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
5074         Likewise.
5075         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
5076         * sysdeps/x86/bits/string.h: Update #endif comments.
5077         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
5078         conditionals.
5079         * time/sys/time.h: Update #endif comments.
5080         * time/time.h: Likewise.
5081         [__USE_MISC]: Remove redundant conditionals.
5082
5083 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
5084
5085         [BZ #16600]
5086         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
5087
5088 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
5089
5090         * Versions.def (librt): Add GLIBC_2.17.
5091
5092 2014-02-21  Adam Conrad  <adconrad@0c3.net>
5093
5094         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
5095         synonym for _SYS_AUXV_H to allow direct inclusion.
5096         * sysdeps/sparc/bits/hwcap.h: Likewise.
5097         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
5098         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
5099         * sysdeps/sparc/sysdep.h: Likewise.
5100
5101 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5102
5103         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
5104
5105 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5106
5107         * benchtests/bench-strrchr.c: Print length instead of position.
5108
5109 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
5110
5111         [BZ #16611]
5112         * sysdeps/unix/sysv/linux/kernel-features.h
5113         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
5114         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
5115         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
5116         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
5117         Likewise.
5118         [__i386__ || __powerpc__ || __sh__ || __sparc__]
5119         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
5120         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
5121         (__ASSUME_SENDMMSG): Define instead of using previous
5122         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
5123         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
5124         (__ASSUME_SENDMMSG_SYSCALL): Define.
5125         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5126         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
5127         Likewise.
5128         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5129         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
5130         Likewise.
5131         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5132         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
5133         Likewise.
5134         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
5135         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
5136         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
5137         [__ASSUME_SENDMMSG]: Change conditionals to
5138         [__ASSUME_SENDMMSG_SOCKETCALL].
5139         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5140         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
5141         Define.
5142         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5143         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
5144         Likewise.
5145         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
5146         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
5147         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
5148         [!__ASSUME_SENDMMSG]: Change conditional to
5149         [!__ASSUME_SENDMMSG_SOCKETCALL].
5150         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5151         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
5152         Define.
5153
5154         [BZ #16610]
5155         * sysdeps/unix/sysv/linux/kernel-features.h
5156         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
5157         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
5158         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
5159         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
5160         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
5161         [__i386__ || __sparc__]
5162         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
5163         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
5164         (__ASSUME_RECVMMSG): Define instead of using previous
5165         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
5166         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
5167         (__ASSUME_RECVMMSG_SYSCALL): Define.
5168         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5169         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
5170         Likewise.
5171         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5172         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
5173         Likewise.
5174         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5175         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
5176         Likewise.
5177         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
5178         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
5179         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
5180         [__ASSUME_RECVMMSG]: Change condition to
5181         [__ASSUME_RECVMMSG_SOCKETCALL].
5182         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5183         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
5184         Define.
5185         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
5186         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5187         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
5188         Likewise.
5189         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
5190         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
5191         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
5192         [!__ASSUME_RECVMMSG]: Change condition to
5193         [!__ASSUME_RECVMMSG_SOCKETCALL].
5194         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5195         (__ASSUME_RECVMMSG_SYSCALL): Define.
5196
5197         [BZ #16609]
5198         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
5199         __powerpc__ || __s390__ || __sh__ || __sparc__]
5200         (__ASSUME_SOCKETCALL): Define.
5201         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
5202         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
5203         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
5204         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
5205         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
5206         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
5207         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
5208         (__ASSUME_ACCEPT4): Define instead of using previous
5209         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
5210         __powerpc__ || __sparc__ || __s390__)] condition.
5211         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
5212         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
5213         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
5214         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
5215         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
5216         [!__ASSUME_ACCEPT4]: Change condition to
5217         [!__ASSUME_ACCEPT4_SOCKETCALL].
5218         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5219         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
5220         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
5221         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5222         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
5223         __ASSUME_ACCEPT4_SYSCALL.
5224         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
5225         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
5226         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5227         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
5228         __ASSUME_ACCEPT4_SYSCALL.
5229         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
5230         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
5231         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
5232         [__ASSUME_ACCEPT4]: Change condition to
5233         [__ASSUME_ACCEPT4_SOCKETCALL].
5234         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5235         (__ASSUME_SOCKETCALL): Define.
5236         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
5237         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5238         (__ASSUME_SOCKETCALL): Define.
5239         (__ASSUME_ACCEPT4): Remove.
5240         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
5241         Define.
5242         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5243         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
5244         Likewise.
5245         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5246         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
5247
5248         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
5249         macro.
5250         (HWCAP_ARM_LPAE): Likewise.
5251         (HWCAP_ARM_EVTSTRM): Likewise.
5252         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
5253         Add vpfd32, lpae and evtstrm.
5254         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
5255         Increase to 22.
5256
5257 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
5258
5259         * math/auto-libm-test-in: Add tests of clog10.
5260         * math/auto-libm-test-out: Regenerated.
5261         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
5262         * sysdeps/i386/fpu/libm-test-ulps: Update.
5263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5264
5265 2014-02-18  Andreas Schwab  <schwab@suse.de>
5266
5267         [BZ #16574]
5268         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
5269         Store non-zero if the second buffer was newly allocated.
5270         (send_dg): Likewise.
5271         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
5272         to send_vc and send_dg.
5273         (res_nsend): Pass NULL for ansp2_malloced.
5274         * resolv/res_query.c (__libc_res_nquery): Add parameter
5275         answerp2_malloced and pass it down to __libc_res_nsend.
5276         (res_nquery): Pass additional NULL to __libc_res_nquery.
5277         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
5278         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
5279         second answer buffer if answerp2_malloced was set.
5280         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
5281         (__libc_res_nquerydomain): Add parameter
5282         answerp2_malloced and pass it down to __libc_res_nquery.
5283         (res_nquerydomain): Pass additional NULL to
5284         __libc_res_nquerydomain.
5285         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
5286         additional NULL to __libc_res_nsend and __libc_res_nquery.
5287         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
5288         additional NULL to __libc_res_nsearch.
5289         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
5290         parameter of __libc_res_nsearch to check for separately allocated
5291         second buffer.
5292         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
5293         __libc_res_nquery.
5294         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
5295         additional NULL to __libc_res_nquery.
5296         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
5297         __libc_res_nsearch.
5298         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
5299         * include/resolv.h: Update prototypes of __libc_res_nquery,
5300         __libc_res_nsearch, __libc_res_nsend.
5301
5302 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
5303
5304         * math/auto-libm-test-in: Add tests of fma.
5305         * math/auto-libm-test-out: Regenerated.
5306         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
5307         (fma_towardzero_test_data): Likewise.
5308         (fma_downward_test_data): Likewise.
5309         (fma_upward_test_data): Likewise.
5310         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
5311         mpc_mode.
5312         (rounding_modes): Add values for new field.
5313         (func_calc_method): Add value mpfr_fff_f.
5314         (func_calc_desc): Add mpfr_fff_f union field.
5315         (test_function): Add field exact_args.
5316         (FUNC): Add macro argument EXACT_ARGS.
5317         (FUNC_mpfr_f_f): Update call to FUNC.
5318         (FUNC_mpfr_f_f): Likewise.
5319         (FUNC_mpfr_ff_f): Likewise.
5320         (FUNC_mpfr_if_f): Likewise.
5321         (FUNC_mpc_c_f): Likewise.
5322         (FUNC_mpc_c_c): Likewise.
5323         (test_functions): Add fma.  Update calls to FUNC.
5324         (handle_input_arg): Add argument exact_args.
5325         (add_test): Update call to handle_input_arg.
5326         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
5327         (output_for_one_input_case): Update call to calc_generic_results.
5328         Recalculate exact zero results in each rounding mode.
5329
5330         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
5331         non-negative before setting low bit.
5332         * math/auto-libm-test-in: Mark one asin test possibly having
5333         spurious underflow.
5334         * math/auto-libm-test-out: Regenerated.
5335         * sysdeps/i386/fpu/libm-test-ulps: Update.
5336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5337
5338 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
5339
5340         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
5341         * sysdeps/unix/sysv/linux/microblaze: Move directory from
5342         ports/sysdeps/unix/sysv/linux/microblaze.
5343         * README: Add missing listing for microblaze*-*-linux-gnu.
5344
5345 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
5346
5347         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
5348         * sysdeps/unix/sysv/linux/ia64: Move directory from
5349         ports/sysdeps/unix/sysv/linux/ia64.
5350         * README: Update listing for ia64-*-linux-gnu.
5351
5352 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
5353             Joseph Myers  <joseph@codesourcery.com>
5354
5355         * Makeconfig (test-name): New variable.
5356         (evaluate-test): Likewise.
5357         * Makerules (do-test-clean): Remove .test-result files.
5358         (common-mostlyclean): Likewise.
5359         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
5360         * scripts/evaluate-test.sh: New file.
5361
5362 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
5363
5364         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
5365         separate $(objpfx)tst-fopenloc-cmp.out and
5366         $(objpfx)tst-fopenloc-mem.out targets.
5367         (tests): Update dependencies.
5368         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
5369         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
5370         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
5371         (tst-rxspencer-no-utf8-ARGS): New variable.
5372         (tst-rxspencer-no-utf8-ENV): Likewise.
5373         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
5374         instead of $(objpfx)tst-rxspencer-mem.
5375         ($(objpfx)tst-rxspencer-mem): Change target to
5376         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
5377         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
5378         * posix/tst-rxspencer-no-utf8.c: New file.
5379
5380         * elf/Makefile ($(objpfx)order.out): Remove rule.
5381         [$(run-built-tests) = yes] (tests): Depend on
5382         $(objpfx)order-cmp.out.
5383         ($(objpfx)order-cmp.out): New rule.
5384         [$(run-built-tests) = yes] (tests): Depend on
5385         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
5386         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
5387         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
5388         $(objpfx)tst-array5-static-cmp.out.
5389         ($(objpfx)tst-array1.out): Remove rule.
5390         ($(objpfx)tst-array1-cmp.out): New rule.
5391         ($(objpfx)tst-array1-static.out): Remove rule.
5392         ($(objpfx)tst-array1-static-cmp.out): New rule.
5393         ($(objpfx)tst-array2.out): Remove rule.
5394         ($(objpfx)tst-array2-cmp.out): New rule.
5395         ($(objpfx)tst-array3.out): Remove rule.
5396         ($(objpfx)tst-array3-cmp.out): New rule.
5397         ($(objpfx)tst-array4.out): Remove rule.
5398         ($(objpfx)tst-array4-cmp.out): New rule.
5399         ($(objpfx)tst-array5.out): Remove rule.
5400         ($(objpfx)tst-array5-cmp.out): New rule.
5401         ($(objpfx)tst-array5-static.out): Remove rule.
5402         ($(objpfx)tst-array5-static-cmp.out): New rule.
5403         [$(run-built-tests) = yes] (tests): Depend on
5404         $(objpfx)order2-cmp.out.
5405         ($(objpfx)order2.out): Remove rule.
5406         ($(objpfx)order2-cmp.out): New rule.
5407         ($(objpfx)tst-initorder.out): Remove rule.
5408         [$(run-built-tests) = yes] (tests): Depend on
5409         $(objpfx)tst-initorder-cmp.out.
5410         ($(objpfx)tst-initorder-cmp.out): New rule.
5411         ($(objpfx)tst-initorder2.out): Remove rule.
5412         [$(run-built-tests) = yes] (tests): Depend on
5413         $(objpfx)tst-initorder2-cmp.out.
5414         ($(objpfx)tst-initorder2-cmp.out): New rule.
5415         [$(run-built-tests) = yes] (tests): Depend on
5416         $(objpfx)tst-unused-dep-cmp.out.
5417         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
5418         ($(objpfx)tst-unused-dep-cmp.out): New rule.
5419         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
5420         on $(objpfx)tst-setvbuf1-cmp.out.
5421         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
5422         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
5423         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
5424         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
5425         ($(objpfx)tst-svc.out): Remove rule.
5426         ($(objpfx)tst-svc-cmp.out): New rule.
5427
5428 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
5429
5430         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
5431         * ctype/ctype.h [__USE_MISC]: Likewise.
5432         * dirent/dirent.h [__USE_MISC]: Likewise.
5433         * grp/grp.h [__USE_MISC]: Likewise.
5434         * io/fcntl.h [__USE_MISC]: Likewise.
5435         * io/sys/stat.h [__USE_MISC]: Likewise.
5436         * libio/stdio.h [__USE_MISC]: Likewise.
5437         * posix/unistd.h [__USE_MISC]: Likewise.
5438         * pwd/pwd.h [__USE_MISC]: Likewise.
5439         * stdlib.h [__USE_MISC]: Likewise.
5440         * string/bits/string2.h [__USE_MISC]: Likewise.
5441         * string/string.h [__USE_MISC]: Likewise.
5442         * time/time.h [__USE_MISC]: Likewise.
5443
5444 2014-02-13  Andreas Schwab  <schwab@suse.de>
5445
5446         [BZ #16574]
5447         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
5448         second answer buffer if it was separately allocated.
5449
5450 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
5451
5452         * sysdeps/mips/math-tests.h: Include <features.h>.
5453         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
5454         (ROUNDING_TESTS_long_double): Do not define.
5455         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
5456         (EXCEPTION_TESTS_long_double): Likewise.
5457         * sysdeps/mips/mips64/libm-test-ulps: Update.
5458
5459         * include/features.h (__USE_BSD): Remove macro definitions.
5460         (__USE_SVID): Likewise.
5461         (_BSD_SOURCE): Likewise.
5462         (_SVID_SOURCE): Likewise.
5463         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
5464         from definition of _DEFAULT_SOURCE.
5465         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
5466         [_DEFAULT_SOURCE].
5467         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
5468         * bits/mman.h [__USE_BSD]: Likewise.
5469         * bits/termios.h [__USE_BSD]: Likewise.
5470         * bits/waitstatus.h [__USE_BSD]: Likewise.
5471         * ctype/ctype.h [__USE_SVID]: Likewise.
5472         * dirent/dirent.h [__USE_BSD]: Likewise.
5473         * grp/grp.h [__USE_SVID]: Likewise.
5474         [__USE_BSD]: Likewise.
5475         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
5476         * io/fcntl.h [__USE_BSD]: Likewise.
5477         * io/ftw.h [__USE_BSD]: Likewise.
5478         * io/sys/stat.h [__USE_BSD]: Likewise.
5479         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
5480         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
5481         * libio/stdio.h [__USE_SVID]: Likewise.
5482         [__USE_BSD]: Likewise.
5483         * math/math.h [__USE_SVID]: Likewise.
5484         [__USE_BSD]: Likewise.
5485         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
5486         * misc/bits/syslog.h [__USE_BSD]: Likewise.
5487         * misc/search.h [__USE_SVID]: Likewise.
5488         * misc/sys/mman.h [__USE_BSD]: Likewise.
5489         * misc/sys/syslog.h [__USE_BSD]: Likewise.
5490         * misc/sys/uio.h [__USE_BSD]: Likewise.
5491         * posix/bits/unistd.h [__USE_BSD]: Likewise.
5492         * posix/glob.h [__USE_BSD]: Likewise.
5493         * posix/regex.h [__USE_BSD]: Likewise.
5494         * posix/sys/types.h [__USE_BSD]: Likewise.
5495         [__USE_SVID]: Likewise.
5496         * posix/sys/utsname.h [__USE_SVID]: Likewise.
5497         * posix/sys/wait.h [__USE_BSD]: Likewise.
5498         [__USE_SVID]: Likewise.
5499         * posix/unistd.h [__USE_BSD]: Likewise.
5500         [__USE_SVID]: Likewise.
5501         * pwd/pwd.h [__USE_SVID]: Likewise.
5502         * resolv/netdb.h [__USE_BSD]: Likewise.
5503         * setjmp/setjmp.h [__USE_BSD]: Likewise.
5504         * signal/signal.h [__USE_BSD]: Likewise.
5505         [__USE_SVID]: Likewise.
5506         * socket/sys/socket.h [__USE_BSD]: Likewise.
5507         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
5508         * stdlib/stdlib.h [__USE_BSD]: Likewise.
5509         [__USE_SVID]: Likewise.
5510         * string/bits/string2.h [__USE_BSD]: Likewise.
5511         [__USE_SVID]: Likewise.
5512         * string/bits/string3.h [__USE_BSD]: Likewise.
5513         * string/endian.h [__USE_BSD]: Likewise.
5514         * string/string.h [__USE_SVID]: Likewise.
5515         [__USE_BSD]: Likewise.
5516         * string/strings.h [__USE_BSD]: Likewise.
5517         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
5518         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
5519         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
5520         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
5521         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
5522         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
5523         Likewise.
5524         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
5525         Likewise.
5526         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
5527         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
5528         Likewise.
5529         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
5530         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
5531         Likewise.
5532         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
5533         Likewise.
5534         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
5535         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
5536         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
5537         Likewise.
5538         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
5539         Likewise.
5540         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
5541         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
5542         * termios/termios.h [__USE_BSD]: Likewise.
5543         * time/sys/time.h [__USE_BSD]: Likewise.
5544         * time/time.h [__USE_BSD]: Likewise.
5545         [__USE_SVID]: Likewise.
5546
5547         * Makefile (subdir_targets): Remove subdir_lint.out.
5548
5549         * stdio-common/Makefile (do-tst-unbputc): Remove target.
5550         (do-tst-printf): Likewise.
5551         (tests): Depend directly on $(objpfx)tst-unbputc.out and
5552         $(objpfx)tst-printf.out.
5553
5554         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
5555
5556         * Makerules (check-abi-%): Change target to
5557         $(objpfx)check-abi-%.out.
5558         (check-abi target): Update dependencies.
5559         (check-abi-pattern variable): Redirect output of diff to $@.
5560         (check-abi variable): Likewise.
5561         * elf/Makefile (check-abi): Update dependencies.
5562
5563         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
5564         unused.
5565         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
5566         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
5567         subnormal range.
5568         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
5569         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
5570         value has largest subnormal exponent.
5571         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
5572         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
5573         * sysdeps/aarch64/soft-fp/sfp-machine.h
5574         (_FP_TININESS_AFTER_ROUNDING): New macro.
5575         * sysdeps/alpha/soft-fp/sfp-machine.h
5576         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5577         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
5578         Likewise.
5579         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
5580         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5581         * sysdeps/mips/soft-fp/sfp-machine.h
5582         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5583         * sysdeps/powerpc/soft-fp/sfp-machine.h
5584         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5585         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
5586         Likewise.
5587         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5588         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5589         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5590         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5591         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
5592         Likewise.
5593
5594 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
5595
5596         [BZ #16545]
5597         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
5598         model 1.
5599
5600 2014-02-12  Richard Henderson  <rth@redhat.com>
5601
5602         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
5603         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
5604         * sysdeps/unix/sysv/linux/alpha: Move directory from
5605         ports/sysdeps/unix/sysv/linux/alpha.
5606         * README: Update listing for alpha-*-linux-gnu.
5607
5608 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
5609
5610         * include/features.h: Update comment documenting feature test
5611         macros.
5612         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
5613         _DEFAULT_SOURCE.
5614         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
5615         (_SVID_SOURCE): Likewise.
5616         (_DEFAULT_SOURCE): Update description of default features.
5617         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
5618         with _GNU_SOURCE.
5619         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
5620         (S_ISVTX): Likewise.
5621         * manual/math.texi (Mathematical Constants): Likewise.
5622         * manual/signal.texi (Interrupted Primitives): Likewise.
5623         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
5624         * math/test-matherr.c (_SVID_SOURCE): Do not define.
5625         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
5626         Don't refer to _SVID_SOURCE in warning text.
5627
5628         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5629
5630         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
5631         already defined.
5632         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
5633         * sysdeps/mips/dl-lookup.c: Remove.
5634         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
5635
5636 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
5637
5638         [BZ #16447]
5639         * math/auto-libm-test-in: Add testcase for expl.
5640         * math/auto-libm-test-out: Regenerate.
5641         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
5642         calculation of unsafe.
5643         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
5644
5645 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5646
5647         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
5648         * sysdeps/unix/sysv/linux/aarch64: Move directory from
5649         ports/sysdeps/unix/sysv/linux/aarch64.
5650         * README: Update listing for aarch64*-*-linux-gnu.
5651
5652 2014-02-11  Will Newton  <will.newton@linaro.org>
5653
5654         * manual/probes.texi (Mathematical Function Probes): Use
5655         "triggered" instead of "hit".
5656
5657         * manual/probes.texi (Internal Probes): Add documentation
5658         of setjmp, longjmp and longjmp_target probes.
5659
5660         * include/stap-probe.h: Add comment about probe argument
5661         format.
5662
5663         * malloc/mtrace.c (attribute_hidden): Remove unused macro
5664         definition.  (tr_where, tr_freehook, tr_mallochook,
5665         tr_reallochook, tr_memalignhook): Use ANSI protoype.
5666
5667 2014-02-11  David S. Miller  <davem@davemloft.net>
5668
5669         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
5670         processing int_tests.
5671
5672 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
5673
5674         * sysdeps/mips: Move directory from ports/sysdeps/mips.
5675         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
5676         * sysdeps/unix/sysv/linux/mips: Move directory from
5677         ports/sysdeps/unix/sysv/linux/mips.
5678         * README: Update listing for mips-*-linux-gnu and
5679         mips64-*-linux-gnu.
5680
5681 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
5682
5683         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
5684         * sysdeps/unix/sysv/linux/m68k: Move directory from
5685         ports/sysdeps/unix/sysv/linux/m68k.
5686         * README: Update listing for m68k-*-linux-gnu.
5687
5688 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
5689
5690         * sysdeps/tile: Move directory from ports/sysdeps/tile.
5691         * sysdeps/unix/sysv/linux/generic: Move directory from
5692         ports/sysdeps/unix/sysv/linux/generic.
5693         * sysdeps/unix/sysv/linux/tile: Move directory from
5694         ports/sysdeps/unix/sysv/linux/tile.
5695         * README: Update listing for tile*-*-linux-gnu.
5696
5697 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
5698
5699         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
5700         __builtin_expect.
5701         * benchtests/bench-memmem.c (simple_memmem): Likewise.
5702         * catgets/open_catalog.c (__open_catalog): Likewise.
5703         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
5704         * debug/confstr_chk.c: Likewise.
5705         * debug/fread_chk.c (__fread_chk): Likewise.
5706         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
5707         * debug/getgroups_chk.c: Likewise.
5708         * debug/mbsnrtowcs_chk.c: Likewise.
5709         * debug/mbsrtowcs_chk.c: Likewise.
5710         * debug/mbstowcs_chk.c: Likewise.
5711         * debug/memcpy_chk.c: Likewise.
5712         * debug/memmove_chk.c: Likewise.
5713         * debug/mempcpy_chk.c: Likewise.
5714         * debug/memset_chk.c: Likewise.
5715         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
5716         * debug/strcat_chk.c (__strcat_chk): Likewise.
5717         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
5718         * debug/strncat_chk.c (__strncat_chk): Likewise.
5719         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
5720         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
5721         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
5722         * debug/wcpncpy_chk.c: Likewise.
5723         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
5724         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
5725         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
5726         * debug/wcsncpy_chk.c: Likewise.
5727         * debug/wcsnrtombs_chk.c: Likewise.
5728         * debug/wcsrtombs_chk.c: Likewise.
5729         * debug/wcstombs_chk.c: Likewise.
5730         * debug/wmemcpy_chk.c: Likewise.
5731         * debug/wmemmove_chk.c: Likewise.
5732         * debug/wmempcpy_chk.c: Likewise.
5733         * debug/wmemset_chk.c: Likewise.
5734         * dirent/scandirat.c (SCANDIRAT): Likewise.
5735         * dlfcn/dladdr1.c (dladdr1): Likewise.
5736         * dlfcn/dladdr.c (dladdr): Likewise.
5737         * dlfcn/dlclose.c (dlclose_doit): Likewise.
5738         * dlfcn/dlerror.c (__dlerror): Likewise.
5739         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5740         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
5741         * dlfcn/dlopen.c (dlopen_doit): Likewise.
5742         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
5743         * dlfcn/dlsym.c (dlsym_doit): Likewise.
5744         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
5745         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
5746         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
5747         Likewise.
5748         * elf/dl-conflict.c: Likewise.
5749         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
5750         * elf/dl-dst.h: Likewise.
5751         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
5752         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
5753         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
5754         * elf/dl-init.c (call_init, _dl_init): Likewise.
5755         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
5756         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
5757         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
5758         Likewise.
5759         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
5760         Likewise.
5761         * elf/dl-minimal.c (__libc_memalign): Likewise.
5762         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
5763         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5764         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
5765         * elf/dl-sym.c (do_sym): Likewise.
5766         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
5767         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
5768         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
5769         * elf/dl-writev.h (_dl_writev): Likewise.
5770         * elf/ldconfig.c (search_dir): Likewise.
5771         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
5772         (dl_main): Likewise.
5773         * elf/setup-vdso.h (setup_vdso): Likewise.
5774         * grp/compat-initgroups.c (compat_call): Likewise.
5775         * grp/fgetgrent.c (fgetgrent): Likewise.
5776         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
5777         * grp/putgrent.c (putgrent): Likewise.
5778         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
5779         Likewise.
5780         * hurd/hurdinit.c: Likewise.
5781         * iconvdata/8bit-gap.c (struct): Likewise.
5782         * iconvdata/ansi_x3.110.c : Likewise.
5783         * iconvdata/big5.c : Likewise.
5784         * iconvdata/big5hkscs.c : Likewise.
5785         * iconvdata/cp1255.c: Likewise.
5786         * iconvdata/cp1258.c : Likewise.
5787         * iconvdata/cp932.c : Likewise.
5788         * iconvdata/euc-cn.c: Likewise.
5789         * iconvdata/euc-jisx0213.c : Likewise.
5790         * iconvdata/euc-jp.c: Likewise.
5791         * iconvdata/euc-jp-ms.c : Likewise.
5792         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
5793         * iconvdata/gb18030.c : Likewise.
5794         * iconvdata/gbbig5.c (const): Likewise.
5795         * iconvdata/gbgbk.c: Likewise.
5796         * iconvdata/gbk.c : Likewise.
5797         * iconvdata/ibm1364.c : Likewise.
5798         * iconvdata/ibm930.c : Likewise.
5799         * iconvdata/ibm932.c: Likewise.
5800         * iconvdata/ibm933.c : Likewise.
5801         * iconvdata/ibm935.c : Likewise.
5802         * iconvdata/ibm937.c : Likewise.
5803         * iconvdata/ibm939.c : Likewise.
5804         * iconvdata/ibm943.c: Likewise.
5805         * iconvdata/iso_11548-1.c: Likewise.
5806         * iconvdata/iso-2022-cn.c : Likewise.
5807         * iconvdata/iso-2022-cn-ext.c : Likewise.
5808         * iconvdata/iso-2022-jp-3.c: Likewise.
5809         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
5810         * iconvdata/iso-2022-kr.c : Likewise.
5811         * iconvdata/iso646.c (gconv_end): Likewise.
5812         * iconvdata/iso_6937-2.c : Likewise.
5813         * iconvdata/iso_6937.c : Likewise.
5814         * iconvdata/iso8859-1.c: Likewise.
5815         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
5816         * iconvdata/shift_jisx0213.c : Likewise.
5817         * iconvdata/sjis.c : Likewise.
5818         * iconvdata/t.61.c : Likewise.
5819         * iconvdata/tcvn5712-1.c : Likewise.
5820         * iconvdata/tscii.c: Likewise.
5821         * iconvdata/uhc.c : Likewise.
5822         * iconvdata/unicode.c (gconv_end): Likewise.
5823         * iconvdata/utf-16.c (gconv_end): Likewise.
5824         * iconvdata/utf-32.c (gconv_end): Likewise.
5825         * iconvdata/utf-7.c (base64): Likewise.
5826         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5827         * iconv/gconv_close.c (__gconv_close): Likewise.
5828         * iconv/gconv_open.c (__gconv_open): Likewise.
5829         * iconv/gconv_simple.c (internal_ucs4_loop_single)
5830         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
5831         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
5832         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
5833         (ucs4le_internal_loop_single): Likewise.
5834         * iconv/iconv.c (iconv): Likewise.
5835         * iconv/iconv_close.c: Likewise.
5836         * iconv/loop.c (SINGLE): Likewise.
5837         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
5838         * include/atomic.h: Likewise.
5839         * inet/inet6_option.c (option_alloc): Likewise.
5840         * intl/bindtextdom.c (set_binding_values): Likewise.
5841         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
5842         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5843         * intl/localealias.c (read_alias_file): Likewise.
5844         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
5845         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
5846         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
5847         * libio/fmemopen.c (fmemopen): Likewise.
5848         * libio/iofgets.c (_IO_fgets): Likewise.
5849         * libio/iofgets_u.c (fgets_unlocked): Likewise.
5850         * libio/iofgetws.c (fgetws): Likewise.
5851         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
5852         * libio/iogetdelim.c (_IO_getdelim): Likewise.
5853         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
5854         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
5855         * locale/findlocale.c (_nl_find_locale): Likewise.
5856         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
5857         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
5858         Likewise.
5859         * locale/setlocale.c (setlocale): Likewise.
5860         * login/programs/pt_chown.c (main): Likewise.
5861         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
5862         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
5863         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
5864         (mmap, mmap64, mremap, munmap): Likewise.
5865         * math/e_exp2l.c: Likewise.
5866         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
5867         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
5868         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
5869         * math/s_catan.c (__catan): Likewise.
5870         * math/s_catanf.c (__catanf): Likewise.
5871         * math/s_catanh.c (__catanh): Likewise.
5872         * math/s_catanhf.c (__catanhf): Likewise.
5873         * math/s_catanhl.c (__catanhl): Likewise.
5874         * math/s_catanl.c (__catanl): Likewise.
5875         * math/s_ccosh.c (__ccosh): Likewise.
5876         * math/s_ccoshf.c (__ccoshf): Likewise.
5877         * math/s_ccoshl.c (__ccoshl): Likewise.
5878         * math/s_cexp.c (__cexp): Likewise.
5879         * math/s_cexpf.c (__cexpf): Likewise.
5880         * math/s_cexpl.c (__cexpl): Likewise.
5881         * math/s_clog10.c (__clog10): Likewise.
5882         * math/s_clog10f.c (__clog10f): Likewise.
5883         * math/s_clog10l.c (__clog10l): Likewise.
5884         * math/s_clog.c (__clog): Likewise.
5885         * math/s_clogf.c (__clogf): Likewise.
5886         * math/s_clogl.c (__clogl): Likewise.
5887         * math/s_csin.c (__csin): Likewise.
5888         * math/s_csinf.c (__csinf): Likewise.
5889         * math/s_csinh.c (__csinh): Likewise.
5890         * math/s_csinhf.c (__csinhf): Likewise.
5891         * math/s_csinhl.c (__csinhl): Likewise.
5892         * math/s_csinl.c (__csinl): Likewise.
5893         * math/s_csqrt.c (__csqrt): Likewise.
5894         * math/s_csqrtf.c (__csqrtf): Likewise.
5895         * math/s_csqrtl.c (__csqrtl): Likewise.
5896         * math/s_ctan.c (__ctan): Likewise.
5897         * math/s_ctanf.c (__ctanf): Likewise.
5898         * math/s_ctanh.c (__ctanh): Likewise.
5899         * math/s_ctanhf.c (__ctanhf): Likewise.
5900         * math/s_ctanhl.c (__ctanhl): Likewise.
5901         * math/s_ctanl.c (__ctanl): Likewise.
5902         * math/w_pow.c: Likewise.
5903         * math/w_powf.c: Likewise.
5904         * math/w_powl.c: Likewise.
5905         * math/w_scalb.c (sysv_scalb): Likewise.
5906         * math/w_scalbf.c (sysv_scalbf): Likewise.
5907         * math/w_scalbl.c (sysv_scalbl): Likewise.
5908         * misc/error.c (error_tail): Likewise.
5909         * misc/pselect.c (__pselect): Likewise.
5910         * nis/nis_callback.c (__nis_create_callback): Likewise.
5911         * nis/nis_call.c (__nisfind_server): Likewise.
5912         * nis/nis_creategroup.c (nis_creategroup): Likewise.
5913         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
5914         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5915         * nis/nis_getservlist.c (nis_getservlist): Likewise.
5916         * nis/nis_lookup.c (nis_lookup): Likewise.
5917         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
5918         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
5919         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
5920         * nis/nis_xdr.c (xdr_endpoint): Likewise.
5921         * nis/nss_compat/compat-grp.c (getgrent_next_file)
5922         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
5923         * nis/nss_compat/compat-initgroups.c (add_group)
5924         (internal_getgrent_r): Likewise.
5925         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
5926         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
5927         * nis/nss_compat/compat-spwd.c (getspent_next_file)
5928         (internal_getspnam_r): Likewise.
5929         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
5930         (_nss_nis_getaliasbyname_r): Likewise.
5931         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
5932         (_nss_nis_getntohost_r): Likewise.
5933         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
5934         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
5935         (_nss_nis_getgrgid_r): Likewise.
5936         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
5937         (internal_nis_gethostent_r, internal_gethostbyname2_r)
5938         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
5939         (_nss_nis_gethostbyname4_r): Likewise.
5940         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
5941         (initgroups_netid): Likewise.
5942         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
5943         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
5944         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
5945         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
5946         (_nss_nis_getprotobynumber_r): Likewise.
5947         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
5948         (_nss_nis_getsecretkey): Likewise.
5949         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
5950         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
5951         (_nss_nis_getpwuid_r): Likewise.
5952         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
5953         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
5954         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
5955         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
5956         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
5957         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
5958         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
5959         Likewise.
5960         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
5961         (_nss_nisplus_getntohost_r): Likewise.
5962         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
5963         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
5964         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
5965         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
5966         Likewise.
5967         * nis/nss_nisplus/nisplus-initgroups.c
5968         (_nss_nisplus_initgroups_dyn): Likewise.
5969         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
5970         (_nss_nisplus_getnetbyaddr_r): Likewise.
5971         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
5972         (_nss_nisplus_getprotobynumber_r): Likewise.
5973         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
5974         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
5975         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
5976         Likewise.
5977         * nis/nss_nisplus/nisplus-service.c
5978         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
5979         (_nss_nisplus_getservbyport_r): Likewise.
5980         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
5981         (_nss_nisplus_getspnam_r): Likewise.
5982         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
5983         Likewise.
5984         * nscd/aicache.c (addhstaiX): Likewise.
5985         * nscd/cache.c (cache_search, prune_cache): Likewise.
5986         * nscd/connections.c (register_traced_file, send_ro_fd)
5987         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
5988         (main_loop_epoll): Likewise.
5989         * nscd/grpcache.c (addgrbyX): Likewise.
5990         * nscd/hstcache.c (addhstbyX): Likewise.
5991         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5992         * nscd/mem.c (gc, mempool_alloc): Likewise.
5993         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
5994         (addinnetgrX): Likewise.
5995         * nscd/nscd-client.h (__nscd_acquire_maplock)
5996         (__nscd_drop_map_ref): Likewise.
5997         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5998         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5999         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
6000         Likewise.
6001         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6002         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6003         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
6004         (__nscd_get_map_ref): Likewise.
6005         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
6006         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
6007         Likewise.
6008         * nscd/pwdcache.c (addpwbyX): Likewise.
6009         * nscd/selinux.c (preserve_capabilities): Likewise.
6010         * nscd/servicescache.c (addservbyX): Likewise.
6011         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
6012         * posix/fnmatch.c (fnmatch): Likewise.
6013         * posix/getopt.c (_getopt_internal_r): Likewise.
6014         * posix/glob.c (glob, glob_in_dir): Likewise.
6015         * posix/wordexp.c (exec_comm_child): Likewise.
6016         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
6017         (getanswer_r, gaih_getanswer_slice): Likewise.
6018         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
6019         * resolv/res_init.c: Likewise.
6020         * resolv/res_mkquery.c (res_nmkquery): Likewise.
6021         * resolv/res_query.c (__libc_res_nquery): Likewise.
6022         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
6023         Likewise.
6024         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
6025         * stdio-common/perror.c (perror): Likewise.
6026         * stdio-common/printf_fp.c (___printf_fp): Likewise.
6027         * stdio-common/tmpnam.c (tmpnam): Likewise.
6028         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
6029         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
6030         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
6031         Likewise.
6032         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
6033         * stdlib/putenv.c (putenv): Likewise.
6034         * stdlib/setenv.c (__add_to_environ): Likewise.
6035         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
6036         * stdlib/strtol_l.c (INTERNAL): Likewise.
6037         * string/memmem.c (memmem): Likewise.
6038         * string/strerror.c (strerror): Likewise.
6039         * string/strnlen.c (__strnlen): Likewise.
6040         * string/test-memmem.c (simple_memmem): Likewise.
6041         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
6042         * sunrpc/pm_getport.c (__get_socket): Likewise.
6043         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
6044         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6045         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
6046         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
6047         Likewise.
6048         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6049         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
6050         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
6051         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
6052         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
6053         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
6054         Likewise.
6055         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
6056         Likewise.
6057         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
6058         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
6059         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6060         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
6061         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6062         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
6063         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
6064         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
6065         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
6066         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6067         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6068         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
6069         Likewise.
6070         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
6071         Likewise.
6072         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
6073         Likewise.
6074         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
6075         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6076         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
6077         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
6078         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6079         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
6080         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6081         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
6082         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
6083         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
6084         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
6085         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6086         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
6087         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
6088         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6089         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6090         Likewise.
6091         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
6092         Likewise.
6093         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
6094         Likewise.
6095         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
6096         Likewise.
6097         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
6098         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6099         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
6100         Likewise.
6101         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
6102         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
6103         * sysdeps/posix/opendir.c (__opendirat): Likewise.
6104         * sysdeps/posix/sleep.c: Likewise.
6105         * sysdeps/posix/tempname.c: Likewise.
6106         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
6107         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6108         Likewise.
6109         * sysdeps/powerpc/powerpc32/dl-machine.h
6110         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
6111         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
6112         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
6113         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
6114         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
6115         Likewise.
6116         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
6117         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
6118         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
6119         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
6120         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
6121         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
6122         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
6123         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
6124         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6125         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
6126         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
6127         (elf_machine_lazy_rel): Likewise.
6128         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
6129         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
6130         (elf_machine_lazy_rel): Likewise.
6131         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
6132         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
6133         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
6134         * sysdeps/unix/grantpt.c (grantpt): Likewise.
6135         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
6136         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
6137         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
6138         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6139         Likewise.
6140         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
6141         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
6142         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
6143         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
6144         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
6145         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
6146         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
6147         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
6148         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
6149         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
6150         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
6151         Likewise.
6152         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
6153         (__posix_fallocate64_l64): Likewise.
6154         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
6155         (posix_fallocate): Likewise.
6156         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
6157         Likewise.
6158         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6159         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
6160         (getifaddrs_internal): Likewise.
6161         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
6162         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
6163         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
6164         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
6165         * sysdeps/unix/sysv/linux/posix_fallocate64.c
6166         (__posix_fallocate64_l64): Likewise.
6167         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
6168         Likewise.
6169         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
6170         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
6171         (__get_clockfreq): Likewise.
6172         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
6173         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
6174         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
6175         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6176         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6177         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
6178         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
6179         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
6180         Likewise.
6181         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
6182         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
6183         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
6184         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
6185         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
6186         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
6187         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
6188         Likewise.
6189         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6190         (posix_fallocate): Likewise.
6191         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6192         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
6193         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
6194         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
6195         (elf_machine_rela, elf_machine_rela_relative)
6196         (elf_machine_lazy_rel): Likewise.
6197         * time/asctime.c (asctime_internal): Likewise.
6198         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
6199         * time/tzset.c (__tzset_parse_tz): Likewise.
6200         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
6201         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
6202         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
6203         * wcsmbs/wcsmbsload.h: Likewise.
6204
6205         [BZ #15894]
6206         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
6207
6208         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
6209         (arena_get2): Remove THREAD_STATS conditionals.
6210         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
6211         (__malloc_stats, int): Likewise.
6212
6213 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
6214
6215         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
6216         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
6217
6218         * manual/setjmp.texi: Fix typos/grammar errors.
6219
6220         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
6221         Only return early when n is <= 0.  Delete unused return statement.
6222
6223         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
6224         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
6225         * debug/tst-longjmp_chk3.c: New file.
6226
6227         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
6228         (test_main): Replace code with set_fortify_handler call.
6229         * debug/test-strcpy_chk.c: Likewise.
6230         * debug/tst-chk1.c: Likewise.
6231         * debug/tst-longjmp_chk.c: Likewise.
6232         * test-skeleton.c: Include fcntl.h & paths.h
6233         (set_fortify_handler): Define.
6234
6235         * debug/tst-longjmp_chk.c: Add header comment and include
6236         ../test-skeleton.c.
6237         (do_test): Mark static.
6238         (TEST_FUNCTION): Define.
6239
6240         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
6241         (IP_PMTUDISC_INTERFACE): Likewise.
6242         (IP_MULTICAST_IF): Likewise.
6243         (IP_MULTICAST_TTL): Likewise.
6244         (IP_MULTICAST_LOOP): Likewise.
6245         (IP_ADD_MEMBERSHIP): Likewise.
6246         (IP_DROP_MEMBERSHIP): Likewise.
6247         (IP_UNBLOCK_SOURCE): Likewise.
6248         (IP_BLOCK_SOURCE): Likewise.
6249         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
6250         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
6251         (IP_MSFILTER): Likewise.
6252         (MCAST_JOIN_GROUP): Likewise.
6253         (MCAST_BLOCK_SOURCE): Likewise.
6254         (MCAST_UNBLOCK_SOURCE): Likewise.
6255         (MCAST_LEAVE_GROUP): Likewise.
6256         (MCAST_JOIN_SOURCE_GROUP): Likewise.
6257         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
6258         (MCAST_MSFILTER): Likewise.
6259         (IP_MULTICAST_ALL): Likewise.
6260         (IP_UNICAST_IF): Likewise.
6261
6262         * timezone/Makefile: Delete $(have-ksh) check.
6263         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
6264         * timezone/tzselect.ksh: Add +x mode bits.
6265
6266         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
6267         (ANON_INODE_FS_MAGIC): Likewise.
6268         (BDEVFS_MAGIC): Likewise.
6269         (BINFMTFS_MAGIC): Likewise.
6270         (BTRFS_TEST_MAGIC): Likewise.
6271         (CRAMFS_MAGIC_WEND): Likewise.
6272         (DEBUGFS_MAGIC): Likewise.
6273         (ECRYPTFS_SUPER_MAGIC): Likewise.
6274         (EXT3_SUPER_MAGIC): Likewise.
6275         (EXT4_SUPER_MAGIC): Likewise.
6276         (FUTEXFS_SUPER_MAGIC): Likewise.
6277         (HOSTFS_SUPER_MAGIC): Likewise.
6278         (HUGETLBFS_MAGIC): Likewise.
6279         (MINIX3_SUPER_MAGIC): Likewise.
6280         (MTD_INODE_FS_MAGIC): Likewise.
6281         (NILFS_SUPER_MAGIC): Likewise.
6282         (OPENPROM_SUPER_MAGIC): Likewise.
6283         (PIPEFS_MAGIC): Likewise.
6284         (PSTOREFS_MAGIC): Likewise.
6285         (QNX6_SUPER_MAGIC): Likewise.
6286         (RAMFS_MAGIC): Likewise.
6287         (REISERFS_SUPER_MAGIC_STRING): Likewise.
6288         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
6289         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
6290         (SECURITYFS_MAGIC): Likewise.
6291         (SELINUX_MAGIC): Likewise.
6292         (SMACK_MAGIC): Likewise.
6293         (SOCKFS_MAGIC): Likewise.
6294         (SQUASHFS_MAGIC): Likewise.
6295         (STACK_END_MAGIC): Likewise.
6296         (TMPFS_MAGIC): Likewise.
6297         (USBDEVICE_SUPER_MAGIC): Likewise.
6298         (V9FS_MAGIC): Likewise.
6299         (XENFS_SUPER_MAGIC): Likewise.
6300         (CRAMFS_MAGIC): Fix typo in comment.
6301         (EXT2_SUPER_MAGIC): Update comment.
6302         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
6303
6304 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
6305
6306         * sysdeps/arm: Move directory from ports/sysdeps/arm.
6307         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
6308         * sysdeps/unix/sysv/linux/arm: Move directory from
6309         ports/sysdeps/unix/sysv/linux/arm.
6310         * README: Update listing for arm-*-linux-gnueabi.
6311
6312         * README: Remove mention of am33.
6313
6314 2014-02-07  Roland McGrath  <roland@hack.frob.com>
6315
6316         * bits/sigset.h (__sigemptyset): Use a statement expression rather
6317         than the comma operator, to avoid "rhs of comma has no effect"
6318         compiler warnings.
6319         (__sigfillset, __sigandset, __sigorset): Likewise.
6320         * include/signal.h (__sigemptyset): Likewise.
6321         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
6322
6323 2014-02-07  Allan McRae  <allan@archlinux.org>
6324
6325         * version.h (RELEASE): Set to "development".
6326         (VERSION): Set to "2.19.90"
6327         * NEWS: Add 2.20 section.
6328
6329 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
6330
6331         [BZ #16529]
6332         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
6333
6334 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6335
6336         * manual/contrib.texi: Update entry for Carlos O'Donell,
6337         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
6338
6339 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
6340
6341         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
6342
6343         * sysdeps/unix/sysv/linux/kernel-features.h
6344         [__LINUX_KERNEL_VERSION >= 0x020621]
6345         (__ASSUME_PROC_PID_TASK_COMM): Define.
6346
6347 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6348
6349         [BZ #16398]
6350         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
6351         conversion when destination buffer does not have enough space.
6352         * libio/tst-ftell-partial-wide.c: New test case.
6353         * libio/Makefile (tests): Add tst-ftell-partial-wide.
6354
6355         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
6356         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
6357         Leonard and Allan McRae.
6358
6359 2014-02-04  David S. Miller  <davem@davemloft.net>
6360
6361         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
6362         32-bit.
6363
6364 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6365
6366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
6367         New file
6368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
6369         New file
6370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
6371         New file.
6372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
6373         New file.
6374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
6375         New file.
6376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
6377         New file.
6378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
6379         New file.
6380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
6381         New file.
6382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
6383         New file.
6384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
6385         New file.
6386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
6387         New file.
6388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
6389         New file.
6390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
6391         New file.
6392
6393 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6394
6395         * nptl/shlib-versions: Change powerpc*le start to 2.17.
6396         * shlib-versions: Likewise.
6397
6398 2014-02-04  Roland McGrath  <roland@hack.frob.com>
6399             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6400
6401         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
6402         (abilist-pattern): New variable, set to %-le.abilist.
6403
6404         * Makerules (abilist-pattern): New variable.
6405         (vpath): Use $(abilist-pattern) in place of %.abilist.
6406         (check-abi-% pattern rule): Likewise.
6407         (check-abi, update-abi): Likewise.
6408
6409 2014-02-04  Eric Wong  <normalperson@yhbt.net>
6410
6411         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6412
6413 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
6414
6415         * manual/startup.texi: Add next, previous, and top entries for
6416         the `Program Arguments' and `Environment Variables' nodes.
6417
6418 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
6419
6420         * manual/macros.texi: Add comments before MTASC-safety macros.
6421
6422         * manual/users.texi: Document MTASC-safety properties.
6423
6424         * manual/threads.texi (pthread_key_create, pthread_key_delete)
6425         (pthread_getspecific, pthread_setspecific): Format with
6426         @deftypefun, and add @safety note.
6427         * manual/signal.texi: Move comments that analyze the above
6428         functions to their home place.
6429
6430 2014-02-03  Allan McRae  <allan@archlinux.org>
6431
6432         * po/sl.po: Update Slovenian translation from translation project.
6433
6434 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
6435
6436         * manual/time.texi (timegm): Add missing blank after @c.
6437         Reported by Joseph Myers <joseph@codesourcery.com>.
6438
6439 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
6440
6441         * manual/check-safety.sh: New.
6442         * manual/Makefile ($(objpfx)stamp-summary): Run it.
6443
6444         * manual/terminal.texi: Document MTASC-safety properties.
6445
6446         * manual/filesys.texi: Document MTASC-safety properties.
6447
6448         * manual/errno.texi: Document MTASC-safety properties.
6449
6450         * manual/intro.texi: Document safety identifiers and
6451         conditionals.
6452
6453         * manual/string.texi (wcstok): Fix prototype.
6454         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
6455
6456         * manual/time.texi: Document MTASC-safety properties.
6457
6458         * manual/string.texi: Document MTASC-safety properties.
6459
6460         * manual/threads.texi: Document MTASC-safety properties.
6461
6462         * manual/stdio.texi: Document MTASC-safety properties.
6463
6464         * manual/syslog.texi: Document MTASC-safety properties.
6465
6466         * manual/sysinfo.texi: Document MTASC-safety properties.
6467
6468         * manual/startup.texi: Document MTASC-safety properties.
6469
6470         * manual/socket.texi: Document MTASC-safety properties.
6471
6472         * manual/signal.texi: Document MTASC-safety properties.
6473
6474 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
6475
6476         * manual/setjmp.texi: Document MTASC-safety properties.
6477
6478         * manual/search.texi: Document MTASC-safety properties.
6479
6480         * manual/resource.texi: Document MTASC-safety properties.
6481
6482         * manual/process.texi: Document MTASC-safety properties.
6483
6484         * manual/platform.texi: Document MTASC-safety properties.
6485
6486         * manual/pipe.texi: Document MTASC-safety properties.
6487
6488         * manual/pattern.texi: Document MTASC-safety properties.
6489
6490         * manual/message.texi: Document MTASC-safety properties.
6491
6492         [BZ #12751]
6493         * manual/memory.texi: Document MTASC-safety properties.
6494
6495         * manual/math.texi: Document MTASC-safety properties.
6496
6497         * manual/locale.texi: Document MTASC-safety properties.
6498
6499         * manual/llio.texi: Document MTASC-safety properties.
6500
6501         * manual/libdl.texi: New.
6502
6503         * manual/lang.texi: Document MTASC-safety properties.
6504
6505         * manual/job.texi: Document MTASC-safety properties.
6506
6507         * manual/getopt.texi: Document MTASC-safety properties.
6508
6509         * manual/ctype.texi: Document MTASC-safety properties.
6510
6511 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
6512
6513         [BZ #16046]
6514         * csu/libc-tls.c (static_map): Remove variable.
6515         (__libc_setup_tls): Use main executable's link map for TLS data.
6516         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
6517         casing for LM_ID_BASE and GL(dl_nns).
6518         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
6519         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
6520         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
6521         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
6522         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
6523         member.
6524         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
6525         l_phnum members.
6526
6527 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
6528
6529         * manual/debug.texi: Document MTASC-safety properties.
6530
6531 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
6532
6533         [BZ #16510]
6534         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
6535         of __x86_64__ when disabling x87 inline functions.
6536
6537 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
6538
6539         * manual/charset.texi: Document MTASC-safety properties.
6540
6541         * manual/crypt.texi: Document MTASC-safety properties.
6542
6543         * manual/conf.texi: Document MTASC-safety properties.
6544
6545         * manual/arith.texi: Document MTASC-safety properties.
6546
6547         * manual/argp.texi: Document MTASC-safety properties.
6548
6549         * manual/macros.texi: Introduce macros to document multi
6550         thread, asynchronous signal and asynchronous cancellation
6551         safety properties.
6552         * manual/intro.texi: Introduce the properties themselves.
6553
6554 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6555
6556         * sysdeps/sh/sh4/Makefile: New file.
6557
6558 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
6559
6560         * math/gen-libm-test.pl ($srcdir): New variable.
6561         ($auto_input): Use it.
6562
6563 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6564
6565         [BZ #16506]
6566         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
6567         access beyond array bounds when parsing netgroups file.
6568
6569         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
6570         the old buffer before realloc.
6571
6572 2014-01-27  Allan McRae  <allan@archlinux.org>
6573
6574         * po/fr.po: Update French translation from translation project.
6575
6576 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6577
6578         * sysdeps/sh/libm-test-ulps: Regenerate.
6579
6580 2014-01-24  David S. Miller  <davem@davemloft.net>
6581
6582         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
6583
6584 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6585
6586         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
6587         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
6588
6589 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6590
6591         [BZ #16474]
6592         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
6593         string pointers after reallocation.
6594
6595 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6596
6597         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
6598         __SH4A__ instead of __SH_FPU_ANY__.
6599
6600 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6601
6602         * sysdeps/sh/fpu_control.h: New file.
6603         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
6604         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6605         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
6606         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
6607         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
6608         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
6609         * sysdeps/sh/sys/ucontext.h: Remove.
6610         * sysdeps/sh/sys: Remove directory.
6611
6612 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6613
6614         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
6615         s390/sys/ucontext.h.
6616         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6617         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
6618
6619 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
6620
6621         [BZ #15605]
6622         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
6623
6624 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6625
6626         [BZ#16431]
6627         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
6628         Adjust the vDSO correctly for internal calls.
6629         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
6630
6631 2014-01-20  Allan McRae  <allan@archlinux.org>
6632
6633         * po/ca.po: Update Catalan translation from translation project.
6634
6635 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
6636
6637         * sysdeps/s390/sotruss-lib.c: New file.
6638
6639 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6640
6641         [BZ#16430]
6642         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
6643         (__GI___gettimeofday): Alias for a different internal symbol to avoid
6644         local calls issues by not having a PLT stub required for IFUNC calls.
6645         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
6646
6647 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
6648
6649         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
6650         * math/test-fpucw-static.c: Likewise.
6651
6652 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6653
6654         [BZ #16453]
6655         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
6656
6657 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6658
6659         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
6660         implementation for powerpc.
6661
6662 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
6663
6664         [BZ #14782]
6665         * sysdeps/posix/system.c (__libc_system): Do not enable
6666         asynchronous cancellation.
6667
6668 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6669
6670         [BZ #16427]
6671         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
6672         handling only for numbers special also in the IEEE case.
6673
6674 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6675
6676         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
6677
6678 2014-01-11  Allan McRae  <allan@archlinux.org>
6679
6680         * po/bg.po: Update Bulgarian translation from translation project.
6681
6682         * po/de.po: Update German translation from translation project.
6683
6684 2014-01-10  Roland McGrath  <roland@hack.frob.com>
6685
6686         * sysdeps/generic/gcc-compat.h: New file.
6687
6688 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6689
6690         * benchtests/asin-inputs: Correct slow inputs.
6691         * benchtests/acos-inputs: Likewise.
6692
6693 2014-01-10  Allan McRae  <allan@archlinux.org>
6694
6695         * po:sv.po: Update Swedish translation from translation project.
6696
6697         * po/vi.po: Update Vietnamese translation from translation project.
6698
6699         * po/eo.po: Update Esperanto translation from translation project.
6700
6701         * po/cs.po: Update Czech translation from translation project.
6702
6703         * po/nl.po: Update Dutch translation from translation project.
6704
6705         * po/pl.po: Update Polish translation from translation project.
6706
6707         * po/ru.po: Update Russian translation from translation project.
6708
6709         * po/uk.po: Update Ukrainian translation from translation project.
6710
6711 2014-01-08  Brooks Moses  <bmoses@google.com>
6712
6713         * elf/dl-load.c: Fix comment typo.
6714
6715 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
6716
6717         * po/header.pot: Rename to...
6718         * po/pot.header: ... this.
6719         * po/Makefile: Use pot.header.
6720
6721 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
6722             Maxim Kuvyrkov  <maxim@kugelworks.com>
6723
6724         [BZ #16394]
6725         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
6726         SRC and DEST against LEN.
6727
6728 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6729
6730         [BZ #16414]
6731         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
6732         implementation.
6733         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
6734
6735 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6736
6737         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6738
6739 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
6740
6741         [BZ #16408]
6742         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
6743         for large positive arguments.
6744
6745 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
6746
6747         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
6748
6749         * math/auto-libm-test-in: Mark various tests with
6750         xfail-rounding:ldbl-128ibm.
6751         * math/auto-libm-test-out: Regenerated.
6752
6753         [BZ #16407]
6754         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
6755         Increase overflow threshold.
6756
6757 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
6758
6759         [BZ #14286]
6760         * stdio-common/vfprintf.c: Check for integer overflow.
6761
6762 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6763
6764         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
6765         the first argument and return value of __tls_get_addr_internal.
6766
6767 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6768
6769         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
6770         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
6771
6772 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6773
6774         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
6775         * sysdeps/s390/rtld-global-offsets.sym: New file.
6776         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
6777         GLIBC_2.19 symbol.
6778         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
6779         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
6780         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
6781         ... this.
6782         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
6783         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
6784         ... this.
6785         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
6786         Regenerate.
6787         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
6788         Regenerate.
6789         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
6790         halfs of GPRs for high_gprs contexts.
6791         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
6792         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
6793         field.
6794         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
6795         uc_flags field.
6796         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
6797         64 bit versions:
6798         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
6799         for high GPRs (uc_high_gprs) and for future extensions
6800         (__reserved).
6801         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
6802         for future extensions (__reserved).
6803         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
6804         64 bit versions:
6805         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
6806         SC_HIGHGPRS offset definition.
6807         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
6808         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
6809
6810         * Versions.def: Add GLIBC_2.19 for libpthread.
6811         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
6812         siglongjmp for libpthread with GLIBC_2.19 symver.
6813         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
6814         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
6815         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
6816         * sysdeps/s390/__longjmp.c: New file.
6817         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
6818         * sysdeps/s390/longjmp.c: New file.
6819         * sysdeps/s390/setjmp.S: New file.
6820         * sysdeps/s390/sigjmp.S: New file.
6821         * sysdeps/s390/v1-longjmp.c: New file.
6822         * sysdeps/s390/v1-setjmp.h: New file.
6823         * sysdeps/s390/v1-sigjmp.c: New file.
6824         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
6825         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
6826         GLIBC_2.19 version.
6827         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
6828         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
6829         versioned symbols for ____longjmp_chk.
6830         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
6831         Likewise.
6832         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
6833         Regenerate.
6834         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6835         Regenerate.
6836         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
6837         Regenerate.
6838         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6839         Regenerate.
6840         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
6841         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
6842         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
6843         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
6844         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
6845         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
6846         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
6847         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
6848         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
6849         * sysdeps/s390/rtld-__longjmp.c: New file.
6850         * sysdeps/s390/rtld-setjmp.S: New file.
6851
6852 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
6853
6854         [BZ #16400]
6855         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6856         Return -__logl (x) for small positive arguments without evaluating
6857         a polynomial.
6858
6859 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
6860
6861         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
6862         Rename to ...
6863         (__ptrace_peeksiginfo_args): ... this.
6864         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6865         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6866         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6867
6868 2014-01-06  Allan McRae  <allan@archlinux.org>
6869
6870         * inet/netinet/in.h: Fix typo in comment.
6871
6872 2014-01-05  Andreas Jaeger  <aj@suse.de>
6873
6874         * sysdeps/i386/fpu/libm-test-ulps: Update.
6875
6876 2014-01-05  Allan McRae  <allan@archlinux.org>
6877
6878         * po/libc.pot: Regenerated.
6879
6880         * malloc/memusagestat.c: Fix gettext call formatting.
6881
6882 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
6883
6884         * nscd/nscd.c: Improve usage() output.
6885
6886 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
6887
6888         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
6889         * sysdeps/unix/sysv/linux/configure: Regenerated.
6890         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
6891         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
6892
6893 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
6894
6895         [BZ #16390]
6896         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
6897         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
6898
6899 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6900
6901         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
6902         extra tokens at end of #undef directive.
6903         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
6904         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
6905         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
6906
6907 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
6908
6909         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
6910
6911         * math/auto-libm-test-in: Mark various tests with
6912         xfail-rounding:ldbl-128ibm.
6913         * math/auto-libm-test-out: Regenerated.
6914
6915 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
6916
6917         [BZ #16386]
6918         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
6919         numbers with subnormal high part when calculating exponent.
6920
6921         [BZ #16385]
6922         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
6923         fabs.
6924
6925         [BZ #16384]
6926         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
6927         M_LN2l.
6928         (__ieee754_acoshl): Use __log1pl not __log1p.
6929
6930 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
6931
6932         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
6933         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
6934         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
6935         (grow_heap, heap_trim, _int_new_arena, get_free_list)
6936         (reused_arena, arena_get2): Convert to GNU style.
6937         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
6938         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
6939         (memalign_check, __malloc_set_state): Likewise.
6940         * malloc/mallocbug.c (main): Likewise.
6941         * malloc/malloc.c (__malloc_assert, malloc_init_state)
6942         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
6943         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
6944         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
6945         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
6946         (__posix_memalign, malloc_info): Likewise.
6947         * malloc/malloc.h: Likewise.
6948         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
6949         (mallochook, memalignhook, reallochook, mabort): Likewise.
6950         * malloc/mcheck.h: Likewise.
6951         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
6952         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
6953         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
6954         * malloc/morecore.c (__default_morecore): Likewise.
6955         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
6956         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
6957         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
6958         (print_and_abort): Likewise.
6959         * malloc/obstack.h: Likewise.
6960         * malloc/set-freeres.c (__libc_freeres): Likewise.
6961         * malloc/tst-mallocstate.c (main): Likewise.
6962         * malloc/tst-mtrace.c (main): Likewise.
6963         * malloc/tst-realloc.c (do_test): Likewise.
6964
6965 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
6966
6967         [BZ #16366]
6968         * nscd/netgroupcache.c (do_notfound): New function.
6969         (addgetnetgrentX): Use it.
6970
6971         [BZ # 16365]
6972         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
6973         NSS_STATUS_NOTFOUND.
6974
6975 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
6976
6977         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6978         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6979
6980 2014-01-01  Allan McRae  <allan@archlinux.org>
6981
6982         * scripts/update-copyrights: Update configure input file suffix.
6983
6984         * NEWS: Update copyright year.
6985         * catgets/gencat.c: Likewise.
6986         * csu/version.c: Likewise.
6987         * debug/catchsegv.sh: Likewise.
6988         * debug/pcprofiledump.c: Likewise.
6989         * debug/xtrace.sh: Likewise.
6990         * elf/ldconfig.c: Likewise.
6991         * elf/ldd.bash.in: Likewise.
6992         * elf/pldd.c: Likewise.
6993         * elf/sotruss.ksh: Likewise.
6994         * elf/sprof.c: Likewise.
6995         * iconv/iconv_prog.c: Likewise.
6996         * iconv/iconvconfig.c: Likewise.
6997         * locale/programs/locale.c: Likewise.
6998         * locale/programs/localedef.c: Likewise.
6999         * login/programs/pt_chown.c: Likewise.
7000         * malloc/memusage.sh: Likewise.
7001         * malloc/memusagestat.c: Likewise.
7002         * malloc/mtrace.pl: Likewise.
7003         * manual/libc.texinfo: Likewise.
7004         * nscd/nscd.c: Likewise.
7005         * nss/getent.c: Likewise.
7006         * nss/makedb.c: Likewise.
7007         * posix/getconf.c: Likewise.
7008         * scripts/test-installation.pl: Likewise.
7009
7010         * All files with FSF copyright notices: Update copyright dates
7011         using scripts/update-copyrights.
7012         * intl/plural.c: Regenerated.
7013         * locale/programs/charmap-kw.h: Likewise.
7014         * locale/programs/locfile-kw.h: Likewise.
7015
7016 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
7017
7018         * sysdeps/unix/sysv/linux/configure: Regenerated.
7019         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
7020         the linux/fanotify.h header.
7021         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
7022         HAVE_LINUX_FANOTIFY_H is defined.
7023
7024 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
7025
7026         * benchtests/cos-inputs: New inputs.
7027         * benchtests/sin-inputs: Likewise.
7028
7029         * benchtests/atan-inputs: New inputs. Fix name of multiple
7030         precision fallback inputs.
7031
7032         * benchtests/atanh-inputs: New inputs.
7033         * benchtests/tanh-inputs: Likewise.
7034
7035         * benchtests/acosh-inputs: New inputs.
7036         * benchtests/asinh-inputs: Likewise.
7037
7038         * benchtests/cosh-inputs: New inputs.
7039         * benchtests/sinh-inputs: Likewise.
7040
7041         * benchtests/acos-inputs: Add more inputs.
7042         * benchtests/asin-inputs: Likewise.
7043
7044 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
7045
7046         [BZ #16375]
7047         * manual/arith.texi: Fix spelling.
7048         * manual/charset.texi: Likewise.
7049         * manual/errno.texi: Likewise.
7050         * manual/filesys.texi: Likewise.
7051         * manual/lang.texi: Likewise.
7052         * manual/llio.texi: Likewise.
7053         * manual/locale.texi: Likewise.
7054         * manual/message.texi: Likewise.
7055         * manual/resource.texi: Likewise.
7056         * manual/search.texi: Likewise.
7057         * manual/setjmp.texi: Likewise.
7058         * manual/stdio.texi: Likewise.
7059         * manual/string.texi: Likewise.
7060         * manual/sysinfo.texi: Likewise.
7061         * manual/time.texi: Likewise.
7062
7063 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
7064
7065         * po/sl.po: New file.
7066
7067 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
7068
7069         * .gitignore: Add core/.gdbinit/.gdb_history.
7070
7071 2013-12-27  Allan McRae  <allan@archlinux.org>
7072
7073         [BZ #16369]
7074         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
7075         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
7076
7077 2013-12-24  Brooks Moses  <bmoses@google.com>
7078
7079         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
7080         all compilers that claim C++98 compliance, not just GCC.
7081         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
7082         Likewise.
7083
7084 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
7085
7086         * NEWS: Restore accidentally deleted bug-fix entries.
7087
7088 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
7089             Ondřej Bílka  <neleai@seznam.cz>
7090
7091         [BZ #15073]
7092         * malloc/malloc.c (_int_free): Perform sanity check only if we
7093         have_lock.
7094
7095 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
7096
7097         [BZ #12986]
7098         * manual/stdio.texi (String Input Conversions): Clarify that character
7099         classes are not supported.
7100
7101 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7102
7103         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7104
7105 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
7106
7107         [BZ #16337]
7108         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7109         Calculate results for small negative arguments directly rather
7110         than using reflection formula with special underflow handling.
7111
7112         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
7113         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
7114         sysdeps/unix/bsd/bsd4.4/syscalls.list.
7115         (fchflags): Likewise.
7116         (revoke): Likewise.
7117         (setlogin): Likewise.
7118         (sigaltstack): Likewise.
7119         (wait4): Likewise.
7120         (sigblock): Remove.
7121         (sigsetmask): Likewise.
7122         (wait3): Likewise.
7123         (waitpid): Likewise.
7124         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
7125         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
7126         file.
7127         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
7128         * sysdeps/unix/bsd/Makefile: ... here.
7129         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
7130         * sysdeps/unix/bsd/Versions: ... here.
7131         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
7132         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
7133         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
7134         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
7135         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
7136         * sysdeps/unix/bsd/sigblock.c: ... here.
7137         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
7138         * sysdeps/unix/bsd/sigsetmask.c: ... here.
7139         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
7140         * sysdeps/unix/bsd/sigvec.c: ... here.
7141         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
7142         * sysdeps/unix/bsd/tcdrain.c: ... here.
7143         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
7144         * sysdeps/unix/bsd/tcgetattr.c: ... here.
7145         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
7146         * sysdeps/unix/bsd/tcsetattr.c: ... here.
7147         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
7148         * sysdeps/unix/bsd/wait.c: ... here.
7149         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
7150         * sysdeps/unix/bsd/wait3.c: ... here.
7151         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
7152         * sysdeps/unix/bsd/waitpid.c: ... here.
7153
7154 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
7155
7156         [BZ #16356]
7157         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
7158         round-to-nearest for [!USE_AS_EXPM1L].
7159         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
7160         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
7161         more tests of exp and exp10.  Expect some exp10 tests to miss
7162         exceptions or fail in directed rounding modes.
7163         * math/auto-libm-test-out: Regenerated.
7164         * math/libm-test.inc (exp10_tonearest_test_data): New array.
7165         (exp10_test_tonearest): New function.
7166         (exp10_towardzero_test_data): New array.
7167         (exp10_test_towardzero): New function.
7168         (exp10_downward_test_data): New array.
7169         (exp10_test_downward): New function.
7170         (exp10_upward_test_data): New array.
7171         (exp10_test_upward): New function.
7172         (main): Call the new functions.
7173         * sysdeps/i386/fpu/libm-test-ulps: Update.
7174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7175
7176 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
7177
7178         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
7179         asinh, atan, atan2, atanh, cbrt, cos and cosh.
7180         * math/auto-libm-test-out: Regenerated.
7181         * math/libm-test.inc (acosh_test_data): Add more tests.
7182         (atanh_test_data): Likewise.
7183         (ceil_test_data): Likewise.
7184         (copysign_test_data): Likewise.
7185         * sysdeps/i386/fpu/libm-test-ulps: Update.
7186         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7187
7188         * timezone/checktab.awk: Update from tzcode 2013i.
7189         * timezone/private.h: Likewise.
7190         * timezone/scheck.c: Likewise.
7191         * timezone/tzfile.h: Likewise.
7192         * timezone/tzselect.ksh: Likewise.
7193         * timezone/zdump.c: Likewise.
7194         * timezone/zic.c: Likewise.
7195
7196         * math/auto-libm-test-in: Add tests of cpow.
7197         * math/auto-libm-test-out: Regenerated.
7198         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
7199         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7200         mpc_cc_c.
7201         (func_calc_desc): Add mpc_cc_c union field.
7202         (test_functions): Add cpow.
7203         (special_fill_2pi): New function.
7204         (special_real_inputs): Add 2pi.
7205         (calc_generic_results): Handle mpc_cc_c.
7206         * sysdeps/i386/fpu/libm-test-ulps: Update.
7207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7208
7209         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
7210         csqrt, ctan and ctanh.
7211         * math/auto-libm-test-out: Regenerated.
7212         * math/libm-test.inc (TEST_COND_x86_64): New macro.
7213         (TEST_COND_x86): Likewise.
7214         (ccos_test_data): Use AUTO_TESTS_c_c.
7215         (ccosh_test_data): Likewise.
7216         (cexp_test_data): Likewise.
7217         (clog_test_data): Likewise.
7218         (csqrt_test_data): Likewise.
7219         (ctan_test_data): Likewise.
7220         (ctan_tonearest_test_data): Likewise.
7221         (ctan_towardzero_test_data): Likewise.
7222         (ctan_downward_test_data): Likewise.
7223         (ctan_upward_test_data): Likewise.
7224         (ctanh_test_data): Likewise.
7225         (ctanh_tonearest_test_data): Likewise.
7226         (ctanh_towardzero_test_data): Likewise.
7227         (ctanh_downward_test_data): Likewise.
7228         (ctanh_upward_test_data): Likewise.
7229         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7230         mpc_c_c.
7231         (func_calc_desc): Add mpc_c_c union field.
7232         (FUNC_mpc_c_c): New macro.
7233         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
7234         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
7235         ctanh.
7236         (special_fill_min_subnorm_p120): New function.
7237         (special_real_inputs): Add min_subnorm_p120.
7238         (calc_generic_results): Handle mpc_c_c.
7239         * sysdeps/i386/fpu/libm-test-ulps: Update.
7240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7241
7242 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
7243
7244         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
7245         (do_sin_slow): New functions.
7246         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
7247         (cslow2, csloww1, csloww2): Use the new functions.
7248
7249         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
7250         Use M to change sign of result instead of X.  Assume X is
7251         positive.
7252         (csloww1): Likewise.
7253         (__sin): Adjust.
7254         (__cos): Adjust.
7255
7256         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
7257         arguments A and DA.
7258         (__sin): Adjust.
7259         (__cos): Likewise.
7260
7261         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
7262         (__cos): Likewise.
7263         (sloww1): Don't adjust sign of DX.
7264         (csloww1): Likewise.
7265         (sloww2): Use X directly and don't adjust sign of DX.
7266         (csloww2): Likewise.
7267
7268 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
7269
7270         * math/auto-libm-test-in: Add tests of cabs and carg.
7271         * math/auto-libm-test-out: Regenerated.
7272         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
7273         (carg_test_data): Likewise.
7274         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7275         mpc_c_f.
7276         (func_calc_desc): Add mpc_c_f union field.
7277         (test_functions): Add cabs and carg.
7278         (calc_generic_results): Handle mpc_c_f.
7279
7280         * sysdeps/powerpc/powerpc32/libgcc-compat.S
7281         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
7282         as a macro and a compat symbol.
7283         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
7284         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
7285         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
7286         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
7287         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
7288         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
7289         not use .hidden.
7290         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
7291         Likewise.
7292         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
7293         Likewise.
7294         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
7295         Likewise.
7296         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
7297         Likewise.
7298         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
7299         Likewise.
7300         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
7301         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
7302         from GLIBC_2.3.2.
7303
7304 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7305
7306         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7307
7308 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
7309
7310         * manual/texinfo.tex: Update to version 2013-11-26.10 with
7311         trailing whitespace removed.
7312         * scripts/config.guess: Update to version 2013-11-29.
7313         * scripts/config.sub: Update to version 2013-10-01.
7314
7315         * math/auto-libm-test-in: Add tests of sincos.
7316         * math/auto-libm-test-out: Regenerated.
7317         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
7318         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7319         mpfr_f_11.
7320         (func_calc_desc): Add mpfr_f_11 union field.
7321         (test_functions): Add sincos.
7322         (calc_generic_results): Handle mpfr_f_11.
7323         * sysdeps/i386/fpu/libm-test-ulps: Update.
7324         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7325
7326 2013-12-19  Andreas Schwab  <schwab@suse.de>
7327
7328         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
7329         CALL_MCOUNT.
7330         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
7331         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
7332         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
7333
7334 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
7335
7336         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
7337         * sysdeps/i386/fpu/libm-test-ulps: Update.
7338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7339
7340         [BZ #16293]
7341         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
7342         round-to-nearest mode when using frndint.
7343         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
7344         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
7345         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
7346         Likewise.
7347         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
7348         sinh test to fail.
7349         * math/auto-libm-test-out: Regenerated.
7350         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
7351         (TEST_COND_x86): Likewise.
7352         (expm1_tonearest_test_data): New array.
7353         (expm1_test_tonearest): New function.
7354         (expm1_towardzero_test_data): New array.
7355         (expm1_test_towardzero): New function.
7356         (expm1_downward_test_data): New array.
7357         (expm1_test_downward): New function.
7358         (expm1_upward_test_data): New array.
7359         (expm1_test_upward): New function.
7360         (main): Run the new test functions.
7361         * sysdeps/i386/fpu/libm-test-ulps: Update.
7362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7363
7364         * include/features.h: Update comment documenting feature test
7365         macros.  Mention _DEFAULT_SOURCE in comment.
7366         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
7367         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
7368         _BSD_SOURCE and _SVID_SOURCE.
7369         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
7370         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
7371         !_SVID_SOURCE]: Likewise.
7372         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
7373         (__USE_POSIX_IMPLICITLY): Define.
7374         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
7375         (_POSIX_SOURCE): Undefine and redefine.
7376         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
7377         (_POSIX_C_SOURCE): Likewise.
7378         * manual/creature.texi (_DEFAULT_SOURCE): Document.
7379         (Feature Test Macros): Update documentation of default features.
7380
7381 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7382
7383         * benchtests/Makefile: Add bench-strtok.
7384         * benchtests/bench-strtok.c: New file: strtok benchtest.
7385
7386 2013-12-19  Allan McRae  <allan@archlinux.org>
7387
7388         * manual/install.texi: Suppress menu for plain text output.
7389         * INSTALL: Regenerated.
7390
7391 2013-12-18  Brooks Moses  <bmoses@google.com>
7392
7393         [BZ #15846]
7394         * misc/getauxval.c: Include errno.h.
7395         (__getauxval): Set errno to ENOENT if the requested type is not
7396         found.
7397         * misc/sys/auxv.h (getauxval): Document that it may set errno;
7398         don't declare with __attribute_const__.
7399         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
7400         * manual/startup.texi: Document that getauxval sets errno.
7401
7402 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
7403
7404         * math/auto-libm-test-in: Add tests of jn and yn.
7405         * math/auto-libm-test-out: Regenerated.
7406         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
7407         (yn_test_data): Likewise.
7408         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7409         mpfr_if_f.
7410         (func_calc_desc): Add mpfr_if_f union field.
7411         (FUNC_mpfr_if_f): New macro.
7412         (test_functions): Add jn and yn.
7413         (calc_generic_results): Assert type of second input for
7414         mpfr_ff_f.  Handle mpfr_if_f.
7415         (output_for_one_input_case): Disable all checking for arguments
7416         fitting floating-point types in case of an integer argument.
7417         * sysdeps/i386/fpu/libm-test-ulps: Update.
7418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7419
7420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
7421         Don't expect fegetround reference in libm.so.
7422
7423 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7424
7425         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
7426         $(config-cflags-nofma).
7427
7428 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
7429
7430         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
7431         * math/auto-libm-test-out: Regenerated.
7432
7433         [BZ #16338]
7434         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
7435         to determine exponent and adjust argument to have exponent of -1.
7436         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7437         log2.
7438         * math/auto-libm-test-out: Regenerated.
7439         * sysdeps/i386/fpu/libm-test-ulps: Update.
7440         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7441
7442 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
7443
7444         * manual/probes.texi: Remove cases when per-thread arenas are
7445         disabled.
7446
7447 2013-12-18  Andreas Schwab  <schwab@suse.de>
7448
7449         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
7450         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
7451         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
7452         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
7453         * sysdeps/i386/i686/multiarch/Makefile: Update.
7454         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
7455
7456 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
7457
7458         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
7459         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
7460
7461 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7462
7463         [BZ #15968]
7464         Support TZ transition times < 00:00:00.
7465         This is needed for version-3 tz-format files; it supports time
7466         stamps past 2037 for America/Godthab (the only entry in the tz
7467         database for which this change is relevant).
7468         * manual/time.texi (TZ Variable): Document transition times
7469         from -167:59:59 through -00:00:01.
7470         * time/tzset.c (tz_rule): Time of day is now signed.
7471         (__tzset_parse_tz): Parse negative time of day.
7472
7473         Document TZ transition times >= 25:00:00.
7474         * manual/time.texi (TZ Variable): Document transition times from
7475         25:00:00 through 167:59:59.  These are already supported, and this
7476         support will help with version-3 tz-format files.
7477
7478         * manual/time.texi (TZ Variable): Modernize North America example
7479         to reflect current (i.e., 2007-and-later) daylight saving rules.
7480
7481         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
7482
7483 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
7484
7485         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
7486         * sysdeps/unix/bsd/bits/stat.h: Likewise.
7487         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
7488         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7489         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
7490         * sysdeps/unix/bsd/bsdstat.h: Likewise.
7491         * sysdeps/unix/bsd/clock.c: Likewise.
7492         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7493         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
7494         * sysdeps/unix/bsd/init-posix.c: Likewise.
7495         * sysdeps/unix/bsd/poll.c: Likewise.
7496         * sysdeps/unix/bsd/ptsname.c: Likewise.
7497         * sysdeps/unix/bsd/seekdir.c: Likewise.
7498         * sysdeps/unix/bsd/setegid.c: Likewise.
7499         * sysdeps/unix/bsd/seteuid.c: Likewise.
7500         * sysdeps/unix/bsd/setgid.c: Likewise.
7501         * sysdeps/unix/bsd/setrgid.c: Likewise.
7502         * sysdeps/unix/bsd/setruid.c: Likewise.
7503         * sysdeps/unix/bsd/setsid.c: Likewise.
7504         * sysdeps/unix/bsd/setuid.c: Likewise.
7505         * sysdeps/unix/bsd/sigaction.c: Likewise.
7506         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
7507         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
7508         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
7509         * sysdeps/unix/bsd/telldir.c: Likewise.
7510         * sysdeps/unix/bsd/times.c: Likewise.
7511         * sysdeps/unix/bsd/usleep.c: Likewise.
7512
7513         * misc/Makefile (install-lib): Remove libbsd-compat.a.
7514         ($(objpfx)libbsd-compat.a): Remove rule.
7515
7516         * include/features.h (__FAVOR_BSD): Do not define.
7517         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
7518         features conflicting with POSIX.
7519         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
7520         (_BSD_SOURCE): Remove description of not being a subset of other
7521         feature test macros.
7522         * manual/job.texi (getpgrp): Do not document BSD version.
7523         (getpgid): Do not document by reference to BSD getpgrp.
7524         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
7525         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
7526         * signal/signal.h [__FAVOR_BSD]: Likewise.
7527         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
7528         instead of making contents conditional on [__FAVOR_BSD].
7529         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
7530
7531 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7532
7533         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7534
7535 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
7536
7537         [BZ #16314]
7538         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
7539         values below 2**-450, not 2**-500.
7540         * math/auto-libm-test-in: Don't allow spurious underflow from
7541         hypot.
7542         * math/auto-libm-test-out: Regenerated.
7543
7544         [BZ #16316]
7545         [BZ #16330]
7546         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
7547         values of ha and hb and sort them after adjusting subnormal
7548         arguments.
7549         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
7550         Likewise.
7551         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
7552         values of ea and eb and sort them after adjusting subnormal
7553         arguments.
7554         * math/auto-libm-test-in: Do not expect some hypot tests of
7555         subnormals to fail.  Add more hypot tests.
7556         * math/auto-libm-test-out: Regenerated.
7557
7558 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7559
7560         [BZ #13304]
7561         * sysdeps/sh/s_fma.c: New file.
7562         * sysdeps/sh/s_fmaf.c: New file.
7563         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
7564         version.
7565         * sysdeps/sh/Implies: Add sh/soft-fp.
7566
7567 2013-12-16  Roland McGrath  <roland@hack.frob.com>
7568
7569         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
7570         level of indirection to members `objname', `errstring', `malloced'.
7571         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
7572         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
7573         it as the __longjmp argument (just pass 1 instead).
7574         (_dl_catch_error): Initialize C with argument pointers and address of
7575         volatile local ERRCODE rather than copying values out of C at return.
7576
7577 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
7578
7579         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
7580         * math/auto-libm-test-out: Regenerated.
7581         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
7582         (hypot_test_data): Likewise.
7583         (pow_test_data): Likewise.
7584         (pow_tonearest_test_data): Likewise.
7585         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7586         mpfr_ff_f.
7587         (func_calc_desc): Add mpfr_ff_f union field.
7588         (FUNC_mpfr_ff_f): New macro.
7589         (test_functions): Add atan2, hypot and pow.
7590         (special_fill_min): New function.
7591         (special_fill_minus_min): Likewise.
7592         (special_fill_min_subnorm): Likewise.
7593         (special_fill_minus_min_subnorm): Likewise.
7594         (special_real_inputs): Add min, -min, min_subnorm and
7595         -min_subnorm.
7596         (calc_generic_results): Handle mpfr_ff_f.
7597         * sysdeps/i386/fpu/libm-test-ulps: Update.
7598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7599
7600 2013-12-16  Will Newton  <will.newton@linaro.org>
7601
7602         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
7603         (Aligned Memory Blocks): Add documentation for aligned_alloc
7604         and suggest it as an alternative to posix_memalign.
7605         (Hooks for Malloc): Document __memalign_hook is also called
7606         for aligned_alloc.  (Summary of Malloc): Add summary for
7607         aligned alloc.  Document __memalign_hook is also called
7608         for aligned_alloc.
7609
7610 2013-12-16  Will Newton  <will.newton@linaro.org>
7611
7612         * manual/memory.texi (Malloc Examples): Clarify default
7613         alignment documentation.  Suggest posix_memalign rather
7614         than memalign or valloc.
7615         (Aligned Memory Blocks): Remove suggestion to use memalign
7616         or valloc.  Remove obsolete comment about BSD.
7617         Document memalign errno values and mark the function obsolete.
7618         Document posix_memalign returned error codes.  Mark valloc
7619         as obsolete.  (Hooks for Malloc): __memalign_hook is also
7620         called for posix_memalign and valloc.
7621         (Summary of Malloc): Add posix_memalign to function summary.
7622         __memalign_hook is also called for posix_memalign and valloc.
7623
7624 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7625
7626         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
7627         TAYLOR_SIN.
7628         (__sin): Adjust.
7629         (__cos): Likewise.
7630         (sloww): Use mynumber union.  Expand ternary operator into
7631         if-else statements.
7632         (cslow): use mynumber union.
7633
7634 2013-12-16  Allan McRae  <allan@archlinux.org>
7635
7636         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
7637         * configure: Regenerated.
7638
7639         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
7640
7641         [BZ #14120]
7642         * configure.ac: Added --enable-maintainer-mode. Check for
7643         autoconf when enabled.
7644         * configure: Regenerated.
7645
7646         * nscd/nscd.service: New file.
7647         * nscd/nscd.tmpfiles: New file.
7648
7649 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
7650
7651         [BZ #12100]
7652         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
7653         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
7654         * sysdeps/x86_64/multiarch/strstr.c: ... here.
7655         (strstr): Add __strstr_sse2_unaligned ifunc.
7656         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
7657         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
7658         (strcasestr): Remove __strcasestr_sse42 ifunc.
7659         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
7660         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
7661         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
7662
7663 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7664
7665         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
7666         * sysdeps/sh/bits/fenv.h: ... here.
7667         * sysdeps/sh/sh4/fpu/bits: Remove directory.
7668
7669 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7670
7671         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
7672
7673         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
7674         hypotf multiarch implementations.
7675         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
7676         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
7677         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
7678         multiarch hypot for PPC64.
7679         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
7680         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
7681         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
7682         multiarch hypotf for PPC64.
7683
7684         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
7685         modff multiarch implementations.
7686         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
7687         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
7688         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
7689         multiarch modf for PPC64.
7690         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
7691         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
7692         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
7693         multiarch modff for PPC64.
7694
7695         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
7696         and logl multiarch implementations.
7697         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
7698         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
7699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
7700         multiarch logb for PPC64.
7701         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
7702         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
7703         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
7704         multiarch logb for PPC64.
7705         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
7706         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
7707         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
7708         multiarch logb for PPC64.
7709
7710         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
7711         isinff multiarch implementation.
7712         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
7713         file.
7714         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
7715         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
7716         multiarch isinf for PPC64.
7717         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
7718         file.
7719         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
7720         multiarch isinff for PPC64.
7721
7722         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
7723         finitef multiarch implementation.
7724         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
7725         file.
7726         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
7727         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
7728         multiarch finite for PPC64.
7729         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
7730         file.
7731         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
7732         multiarch finitef for PPC64.
7733
7734         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
7735         lrint multiarch implementation.
7736         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
7737         file.
7738         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
7739         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
7740         multiarch llrint for PPC64.
7741         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
7742         multiarch lrint for PPC64.
7743
7744         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
7745         copysignf multiarch implementation.
7746         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
7747         file.
7748         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
7749         file.
7750         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
7751         multiarch copysign for PPC64.
7752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
7753         multiarch copysignf for PPC64.
7754
7755         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
7756         multiarch implementation.
7757         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
7758         file.
7759         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
7760         file.
7761         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
7762         file.
7763         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
7764         file.
7765         multiarch llround for PPC64.
7766         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
7767         multiarch trunc for PPC64.
7768         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
7769         multiarch truncf for PPC64.
7770
7771         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
7772         multiarch implementation.
7773         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
7774         file.
7775         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
7776         file.
7777         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
7778         file.
7779         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
7780         file.
7781         multiarch llround for PPC64.
7782         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
7783         multiarch round for PPC64.
7784         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
7785         multiarch roundf for PPC64.
7786
7787         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
7788         multiarch implementation.
7789         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
7790         file.
7791         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
7792         file.
7793         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
7794         file.
7795         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
7796         file.
7797         multiarch llround for PPC64.
7798         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
7799         multiarch floor for PPC64.
7800         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
7801         multiarch floorf for PPC64.
7802
7803         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
7804         multiarch implementation.
7805         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
7806         file.
7807         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
7808         file.
7809         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
7810         file.
7811         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
7812         file.
7813         multiarch llround for PPC64.
7814         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
7815         multiarch ceil for PPC64.
7816         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
7817         multiarch ceilf for PPC64.
7818
7819         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
7820         multiarch implementation.
7821         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
7822         file.
7823         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
7824         file.
7825         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
7826         file.
7827         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
7828         multiarch llround for PPC64.
7829         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
7830         multiarch lround for PPC64.
7831
7832         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
7833         multiarch implementation.
7834         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
7835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
7836         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
7837         file.
7838         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
7839         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
7840         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
7841         multiarch isnan for PPC64.
7842         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
7843         multiarch isnanf for PPC64.
7844
7845         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
7846         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
7847         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
7848         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
7849         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
7850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
7851
7852         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
7853         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7854         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7855         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7856
7857         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
7858         multiarch implementations.
7859         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7860         (__libc_ifunc_impl_list): Likewise.
7861         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
7862         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
7863         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
7864         multiarch stpcpy for PPC64.
7865
7866         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
7867         multiarch implementations.
7868         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7869         (__libc_ifunc_impl_list): Likewise.
7870         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
7871         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
7872         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
7873         multiarch strcpy for PPC64.
7874
7875         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
7876         redefine function name.
7877         (_wordcopy_fwd_dest_aligned): Likewise.
7878         (_wordcopy_bwd_aligned): Likewise.
7879         (_wordcopy_bwd_dest_aligned): Likewise.
7880         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
7881         multiarch implementations.
7882         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7883         (__libc_ifunc_impl_list): Likewise.
7884         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
7885         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
7886         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
7887         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
7888         multiarch wcscpy for PPC64.
7889
7890         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
7891         multiarch implementations.
7892         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7893         (__libc_ifunc_impl_list): Likewise.
7894         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
7895         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
7896         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
7897         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
7898         multiarch wcscpy for PPC64.
7899
7900         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
7901         multiarch implementations.
7902         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7903         (__libc_ifunc_impl_list): Likewise.
7904         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
7905         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
7906         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
7907         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
7908         multiarch wcsrchr for PPC64.
7909
7910         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
7911         multiarch implementations.
7912         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7913         (__libc_ifunc_impl_list): Likewise.
7914         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
7915         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
7916         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
7917         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
7918         multiarch wcschr for PPC64.
7919
7920         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
7921         multiarch implementations.
7922         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7923         (__libc_ifunc_impl_list): Likewise.
7924         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
7925         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
7926         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
7927         multiarch strchrnul for PPC64.
7928
7929         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
7930         implementations.
7931         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7932         (__libc_ifunc_impl_list): Likewise.
7933         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
7934         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
7935         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
7936         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
7937         strchr for PPC64.
7938
7939         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
7940         implementations.
7941         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7942         (__libc_ifunc_impl_list): Likewise.
7943         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
7944         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
7945         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
7946         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
7947         strncmp for PPC64.
7948
7949         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
7950         multiarch implementations.
7951         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7952         (__libc_ifunc_impl_list): Likewise.
7953         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
7954         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
7955         strncasecmp for PPC64.
7956         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
7957         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
7958         multiarch strncasecmp_l for PPC64.
7959
7960         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
7961         multiarch implementations.
7962         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
7963         (__libc_ifunc_impl_list): Likewise.
7964         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
7965         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
7966         multiarch strcasecmp for PPC64.
7967         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
7968         file.
7969         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
7970         multiarch strcasecmp_l for PPC64.
7971
7972         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
7973         implementations.
7974         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7975         (__libc_ifunc_impl_list): Likewise.
7976         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
7977         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
7978         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
7979         strnlen for PPC64.
7980
7981         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
7982         implementations.
7983         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7984         (__libc_ifunc_impl_list): Likewise.
7985         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
7986         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
7987         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
7988         strlen for PPC64.
7989
7990         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
7991         implementations.
7992         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7993         (__libc_ifunc_impl_list): Likewise.
7994         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
7995         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
7996         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
7997         rawmemrchr for PPC64.
7998
7999         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
8000         implementation.
8001         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8002         (__libc_ifunc_impl_list): Likewise.
8003         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
8004         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
8005         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
8006         memrchr for PPC64.
8007
8008         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
8009         implementation.
8010         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8011         (__libc_ifunc_impl_list): Likewise.
8012         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
8013         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
8014         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
8015         memchr for PPC64.
8016
8017         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
8018         implementation.
8019         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8020         (__libc_ifunc_impl_list): Likewise.
8021         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
8022         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
8023         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
8024         mempcpy for PPC64.
8025
8026         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
8027         avoid cretion of __bzero symbol.
8028         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
8029         Likewise.
8030         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
8031         Likewise.
8032         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
8033         Likewise.
8034         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
8035         multiarch implementations.
8036         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8037         (__libc_ifunc_impl_list): Likewise.
8038         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
8039         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
8040         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
8041         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
8042         bzero for PPC32.
8043         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
8044         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
8045         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
8046         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
8047         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
8048         memset for PPC64.
8049         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
8050
8051         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
8052         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
8053         implementations.
8054         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8055         (__libc_ifunc_impl_list): Likewise.
8056         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
8057         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
8058         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
8059         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
8060         memcmp for PPC64.
8061
8062         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
8063         multiarch for POWER/PPC64.
8064         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
8065         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
8066         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
8067         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
8068         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
8069         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
8070         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
8071         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
8072         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
8073         memcpy for PPC64.
8074
8075         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
8076         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
8077         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
8078         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
8079         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
8080         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
8081         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
8082         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
8083         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
8084         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
8085         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
8086         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
8087         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
8088         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
8089         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
8090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
8091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
8092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
8093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
8094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
8095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
8096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
8097
8098 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8099
8100         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
8101
8102 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
8103
8104         * benchtests/Makefile (bench): Add exp2 and log2.
8105         (LDLIBS-bench-exp2): Add -lm.
8106         (LDLIBS-bench-log2): Likewise.
8107         * benchtests/exp2-inputs: New inputs file.
8108         * benchtests/log2-inputs: New inputs file.
8109         * benchtests/log-inputs: Add new inputs.
8110         * benchtests/tan-inputs: Likewise.
8111
8112 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
8113
8114         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
8115         definition...
8116         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
8117         (csloww2): ... from here.
8118
8119         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
8120         instead of structures.
8121         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
8122         (POLYNOMIAL): Likewise.
8123         (TAYLOR_SLOW): Likewise.
8124         (__sin): Likewise.
8125         (__cos): Likewise.
8126         (slow1): Likewise.
8127         (slow2): Likewise.
8128         (sloww): Likewise.
8129         (sloww1); Likewise.
8130         (sloww2): Likewise.
8131         (bsloww1): Likewise.
8132         (bsloww2): Likewise.
8133         (cslow2): Likewise.
8134         (csloww): Likewise.
8135         (csloww1): Likewise.
8136         (csloww2): Likewise.
8137
8138 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
8139
8140         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
8141         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
8142         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
8143         * malloc/hooks.c (realloc_check): Likewise.
8144
8145         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
8146         * malloc/arena.c: Remove PER_THREAD conditional.
8147         [!PER_THREAD]: Remove code.
8148         (ptmalloc_unlock_all2): Likewise.
8149         (ptmalloc_init): Likewise.
8150         (_int_new_arena): Likewise.
8151         (arena_get2): Likewise.
8152         * malloc/hooks.c (__malloc_get_state): Likewise.
8153         (__malloc_set_state): Likewise.
8154         * malloc/malloc.c: Likewise.
8155         (struct malloc_state): Likewise.
8156         (struct malloc_par): Likewise.
8157         (__libc_realloc): Likewise.
8158         (__libc_mallopt): Likewise.
8159
8160 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8161
8162         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
8163
8164 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
8165
8166         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
8167         macro to a function.  Check for zero perturb_byte.
8168         (_int_malloc, _int_free): Remove zero perturb_byte checks.
8169
8170         * malloc/malloc.c: (force_reg): Remove.
8171         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
8172         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
8173         force_reg by atomic_forced_read.
8174         * malloc/arena.c (ptmalloc_init): Likewise.
8175         * malloc/hooks.c (top_check): Likewise.
8176
8177 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8178
8179         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8180
8181 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
8182
8183         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8184
8185 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
8186
8187         * math/auto-libm-test-in: Add tests of lgamma.
8188         * math/auto-libm-test-out: Regenerated.
8189         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
8190         (M_LOG_2_SQRT_PIl): Likewise.
8191         (lgamma_test_data): Use AUTO_TESTS_f_f1.
8192         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8193         mpfr_f_f1.
8194         (func_calc_desc): Add mpfr_f_f1 union field.
8195         (ARGS1): New macro.
8196         (ARGS2): Likewise.
8197         (ARGS3): Likewise.
8198         (ARGS4): Likewise.
8199         (RET1): Likewise.
8200         (RET2): Likewise.
8201         (CALC): Likewise.
8202         (FUNC): Likewise.
8203         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
8204         (test_functions): Add lgamma.
8205         (calc_generic_results): Handle mpfr_f_f1.
8206         * sysdeps/i386/fpu/libm-test-ulps: Update.
8207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8208
8209 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8210
8211         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
8212         __mpn_add_n for PowerPC64/POWER7.
8213         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
8214         __mpn_sub_n for PowerPC64/POWER7.
8215
8216         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
8217         __mpn_addmul_1 for PowerPC64.
8218         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
8219         __mpn_submul_1 for PowerPC64.
8220         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
8221         for PowerPC64.
8222         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
8223         for PowerPC64.
8224
8225 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
8226
8227         [BZ #15089]
8228         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
8229
8230 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8231
8232         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
8233
8234         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
8235         add multiarch folders.
8236         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
8237         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
8238         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
8239         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
8240         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
8241         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
8242         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
8243         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
8244         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
8245         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
8246         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
8247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
8248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
8249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
8250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
8251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
8252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
8253
8254         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
8255         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
8256         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
8257         New file.
8258         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
8259         New file.
8260         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
8261         multiarch __ieee754_hypot for PowerPC32.
8262         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
8263         New file.
8264         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
8265         New file.
8266         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
8267         multiarch __ieee754_hypotf for PowerPC32.
8268
8269         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
8270         long_double_symbol only if __logbl is defined.
8271         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
8272         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
8273         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
8274         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
8275         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
8276         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
8277         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
8278         path for implementation.
8279         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
8280         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
8281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
8282         logb, and logbl multiarch implementations for PowerPC32.
8283         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
8284         file.
8285         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
8286         file.
8287         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
8288         multiarch logb for PowerPC32.
8289         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
8290         file.
8291         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
8292         file.
8293         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
8294         multiarch logbf for PowerPC32.
8295         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
8296         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
8297         file.
8298         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
8299         multiarch logbl implementation for PowerPC32.
8300
8301         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
8302         and modff multiarch implementations.
8303         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
8304         New file.
8305         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
8306         New file.
8307         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
8308         multiarch modf for PowerPC32.
8309         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
8310         New file.
8311         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
8312         New file.
8313         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
8314         multiarch modff for PowerPC32.
8315
8316         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
8317         and lrintf multiarch implementations.
8318         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
8319         New file.
8320         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
8321         New file.
8322         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
8323         multiarch lrint for PowerPC32.
8324         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
8325         file: multiarch lrintf for PowerPC32.
8326
8327         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
8328         and lroundf multiarch implementations.
8329         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
8330         New file.
8331         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
8332         New file.
8333         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
8334         New file.
8335         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
8336         multiarch lround for PowerPC32.
8337         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
8338         file: multiarch lroundf for PowerPC32.
8339
8340         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
8341         copysign and copysignf multiarch implementations.
8342         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
8343         New file.
8344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
8345         New file.
8346         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
8347         file: multiarch copysign for PowerPC32.
8348         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
8349         file: multiarch copysignf for PowerPC32.
8350
8351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
8352         and truncf multiarch implementations.
8353         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
8354         New file.
8355         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
8356         file.
8357         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
8358         multiarch trunc for PowerPC32.
8359         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
8360         New file.
8361         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
8362         New file.
8363         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
8364         multiarch truncf for PowerPC32.
8365
8366         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
8367         and roundf multiarch implementations.
8368         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
8369         New file.
8370         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
8371         file.
8372         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
8373         multiarch round for PowerPC32.
8374         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
8375         New file.
8376         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
8377         New file.
8378         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
8379         multiarch roundf for PowerPC32.
8380
8381         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
8382         and floorf multiarch implementations.
8383         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
8384         New file.
8385         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
8386         file.
8387         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
8388         multiarch floor for PowerPC32.
8389         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
8390         New file.
8391         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
8392         New file.
8393         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
8394         multiarch floorf for PowerPC32.
8395
8396         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
8397         and ceilf multiarch implementations.
8398         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
8399         New file.
8400         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
8401         file.
8402         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
8403         multiarch ceil for PowerPC32.
8404         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
8405         New file.
8406         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
8407         file.
8408         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
8409         multiarch ceilf for PowerPC32.
8410
8411         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
8412         is defined.
8413         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
8414         FINITEF is defined.
8415         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
8416         and finitef multiarch implementations.
8417         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
8418         New file.
8419         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
8420         file.
8421         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
8422         multiarch finite for PowerPC32.
8423         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
8424         New file.
8425         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
8426         file: multiarch finitef for PowerPC32.
8427
8428         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
8429         and isinff multiarch implementations.
8430         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
8431         file.
8432         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
8433         file.
8434         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
8435         multiarch isinf for PowerPC32.
8436         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
8437         New file.
8438         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
8439         multiarch isinff for PowerPC32.
8440
8441         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
8442         alias when __isnan is defined.
8443         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
8444         and isnanf multiarch implementations.
8445         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
8446         file.
8447         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
8448         file.
8449         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
8450         file.
8451         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
8452         file.
8453         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
8454         multiarch isnan for PowerPC32.
8455         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
8456         New file.
8457         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
8458         New file.
8459         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
8460         multiarch isnanf for PowerPC32.
8461
8462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
8463         and sqrtf multiarch implementations.
8464         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
8465         file.
8466         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
8467         file.
8468         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
8469         multiarch sqrt for PowerPC32.
8470         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
8471         file.
8472         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
8473         file.
8474         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
8475         multiarch sqrtf for PowerPC32.
8476
8477         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
8478         and llroundf multiarch implementations.
8479         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
8480         New file.
8481         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
8482         New file.
8483         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
8484         New file.
8485         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
8486         file: multiarch llround for PowerPC32.
8487         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
8488         file: multiarch llroundf for PowerPC32.
8489
8490         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
8491         multiarch PowerPC32 fpu implementations.
8492         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
8493         New file.
8494         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
8495         New file.
8496         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
8497         multiarch llrint for PowerPC32.
8498         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
8499         New file.
8500         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
8501         New file.
8502         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
8503         file.
8504
8505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
8506
8507         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
8508         file.
8509         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
8510         file.
8511         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
8512         file.
8513         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
8514         multiarch wordcopy for PPC32.
8515         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
8516         wordcopy objects.
8517         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8518         (__libc_ifunc_impl_list): Likewise.
8519         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
8520         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
8521         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
8522         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
8523         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
8524         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
8525
8526         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
8527         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
8528         file.
8529         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
8530         file.
8531         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
8532         file.
8533         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
8534         multiarch wcscpy for PPC32.
8535         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
8536         multiarch objects.
8537         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8538         (__libc_ifunc_impl_list): Likewise.
8539         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
8540         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
8541         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
8542         sysdeps/powerpc/power6/wcscpy.c.
8543
8544         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
8545         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
8546         file.
8547         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
8548         file.
8549         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
8550         file.
8551         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
8552         multiarch wcsrchr for PPC32.
8553         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
8554         multiarch objects.
8555         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8556         (__libc_ifunc_impl_list): Likewise.
8557         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
8558         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
8559         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
8560         sysdeps/powerpc/power6/wcsrchr.c.
8561
8562         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
8563         file.
8564         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
8565         file.
8566         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
8567         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
8568         multiarch wcschr for PPc32.
8569         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
8570         multiarch objects.
8571         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8572         (__libc_ifunc_impl_list): Likewise.
8573         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
8574         * sysdeps/powerpc/power6/wcschr.c: ... to here.
8575         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
8576         sysdeps/powerpc/power6/wcschr.c.
8577
8578         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
8579         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
8580         file.
8581         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
8582         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
8583         file: multiarch strchr for PPC32.
8584         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
8585         multiarch objects.
8586         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8587         (__libc_ifunc_impl_list): Likewise.
8588
8589         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
8590         name.
8591         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
8592         file.
8593         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
8594         file.
8595         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
8596         multiarch strchrnul for PPC32.
8597         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
8598         multiarch objects.
8599         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8600         (__libc_ifunc_impl_list): Likewise.
8601
8602         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
8603         file.
8604         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
8605         multiarch strncasecmp for PPC32.
8606         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
8607         file.
8608         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
8609         multiarch strncasecmp_l for PPC32.
8610         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
8611         strncasecmp multiarch objects.
8612         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8613         (__libc_ifunc_impl_list): Likewise.
8614
8615         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
8616         file.
8617         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
8618         multiarch strncasecmp for PPC32.
8619         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
8620         New file.
8621         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
8622         multiarch strcasecmp_l for PPC32.
8623         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
8624         multiarch objects.
8625         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8626         (__libc_ifunc_impl_list): Likewise.
8627
8628         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
8629         file.
8630         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
8631         file.
8632         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
8633         multiarch strncmp for PPC32.
8634         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
8635         multiarch objects.
8636         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8637         (__libc_ifunc_impl_list): Likewise.
8638
8639         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
8640         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
8641         file.
8642         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
8643         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
8644         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
8645         multiarch objects.
8646         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8647         (__libc_ifunc_impl_list): Likewise.
8648
8649         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
8650         file.
8651         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
8652         file.
8653         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
8654         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
8655         multiarch objects.
8656         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8657         (__libc_ifunc_impl_list): Likewise.
8658
8659         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
8660         file.
8661         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
8662         file.
8663         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
8664         multiarch rawmemchr for PPC32.
8665         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
8666         multiarch objects.
8667         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8668         (__libc_ifunc_impl_list): Likewise.
8669
8670         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
8671         file.
8672         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
8673         file.
8674         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
8675         file: memrchr multiarch for PPC32.
8676         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
8677         multiarch objects.
8678         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8679         (__libc_ifunc_impl_list): Likewise.
8680
8681         * string/memchr.c (__memchr): Using macro to redefine symbol name.
8682         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
8683         file.
8684         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
8685         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
8686         multiarch memchr for PPC32.
8687         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
8688         multiarch objects.
8689         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
8690         (__libc_ifunc_impl_list): Likewise.
8691
8692         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
8693         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
8694         file.
8695         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
8696         file.
8697         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
8698         file: multiarch mempcpy for PPC32.
8699         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
8700         multiarch objects.
8701         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
8702         (__libc_ifunc_impl_list): Likewise.
8703
8704         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
8705         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
8706         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
8707         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
8708         multiarch bzero for PPC32.
8709         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
8710         file.
8711         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
8712         file.
8713         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
8714         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
8715         file: multiarch memset for PPC32.
8716         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
8717         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
8718         memset multiarch objects.
8719         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
8720         (__libc_ifunc_impl_list): Likewise.
8721
8722         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
8723         file.
8724         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
8725         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
8726         memcmp for PPC32.
8727         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
8728         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
8729         multiarch objects.
8730         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
8731         (__libc_ifunc_impl_list): Likewise.
8732
8733         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
8734         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
8735         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
8736         file.
8737         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
8738         file.
8739         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
8740         file.
8741         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
8742         multiarch memcpy for PPC32.
8743         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
8744         multiarch objects.
8745         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
8746         (__libc_ifunc_impl_list): Likewise.
8747
8748         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
8749         support multiarch for POWER/PPC32.
8750         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
8751         Likewise.
8752         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
8753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
8754         Implies file to make multiarch folder appers before the fpu and
8755         default folder for power4 configuration.
8756
8757 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8758
8759         * scripts/bench.pl: Append volatile keyword to type.
8760
8761 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8762
8763         * sysdeps/sh/sotruss-lib.c: New file.
8764         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
8765
8766 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8767
8768         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8769
8770 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
8771
8772         [BZ #6810]
8773         * math/w_tgamma.c: Include <errno.h>.
8774         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
8775         * math/w_tgammaf.c: Include <errno.h>.
8776         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
8777         * math/w_tgammal.c: Include <errno.h>.
8778         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
8779         * math/auto-libm-test-in: Do not allow missing errno on tgamma
8780         underflow.  Add more tgamma tests.
8781         * math/auto-libm-test-out: Regenerated.
8782         * sysdeps/i386/fpu/libm-test-ulps: Update.
8783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8784
8785         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
8786         sin, sinh, tan, tanh, tgamma, y0 and y1.
8787         * math/auto-libm-test-out: Regenerated.
8788         * math/libm-test.inc (TEST_COND_x86_64): New macro.
8789         (TEST_COND_x86): Likewise.
8790         (M_E2l): Remove macro.
8791         (M_E3l): Likewise.
8792         (M_2_SQRT_PIl): Likewise.
8793         (M_SQRT_PIl): Likewise.
8794         (M_1_DIV_El): Likewise.
8795         (log_test_data): Use AUTO_TESTS_f_f.
8796         (log10_test_data): Likewise.
8797         (log1p_test_data): Likewise.
8798         (log2_test_data): Likewise.
8799         (sin_test_data): Likewise.
8800         (sin_tonearest_test_data): Likewise.
8801         (sin_towardzero_test_data): Likewise.
8802         (sin_downward_test_data): Likewise.
8803         (sin_upward_test_data): Likewise.
8804         (sinh_test_data): Likewise.
8805         (sinh_tonearest_test_data): Likewise.
8806         (sinh_towardzero_test_data): Likewise.
8807         (sinh_downward_test_data): Likewise.
8808         (sinh_upward_test_data): Likewise.
8809         (tan_test_data): Likewise.
8810         (tan_tonearest_test_data): Likewise.
8811         (tan_towardzero_test_data): Likewise.
8812         (tan_downward_test_data): Likewise.
8813         (tan_upward_test_data): Likewise.
8814         (tanh_test_data): Likewise.
8815         (tgamma_test_data): Likewise.
8816         (y0_test_data): Likewise.
8817         (y1_test_data): Likewise.
8818         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
8819         (special_real_inputs): Add pi/4.
8820         * sysdeps/i386/fpu/libm-test-ulps: Update.
8821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8822
8823 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8824
8825         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
8826         "longjmp_target" static probes.
8827         (__longjmp): Rename to __longjmp_symbol.
8828         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
8829         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
8830         on which longjmp to generate.
8831         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
8832         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
8833         probe.
8834         (__sigsetjmp): Rename to __sigsetjmp_symbol.
8835         (__sigjmp_save): Rename to __sigjmp_save_symbol.
8836         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
8837         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
8838         and __sigjmp_save_symbol based on which sigsetjmp to generated.
8839         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
8840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
8841         __longjmp_symbol based on which __longjmp to generate.
8842         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
8843         probe.
8844         (setjmp): Rename to setjmp_symbol.
8845         (__sigsetjmp): Rename to __sigsetjmp_symbol.
8846         (_setjmp): Rename to _setjmp_symbol.
8847         (__sigsetjmp): Rename to __sigsetjmp_symbol.
8848         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
8849         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
8850         which setjmp to generate.
8851         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
8852         "longjmp_target" static probes.
8853
8854 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8855
8856         * benchtests/README: Add note about output arguments.
8857         * benchtests/bench-sincos.c: Remove file.
8858         * benchtests/sincos-inputs: New file.
8859         * scripts/bench.pl: Identify output arguments and define
8860         static variables for them.
8861
8862         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
8863
8864         [BZ #15941]
8865         * Makefile (INSTALL): Add install-plain.texi as the primary
8866         dependency.
8867         * manual/install-plain.texi: New file.
8868         * manual/install.texi: Include node directive only for
8869         non-plaintext output.
8870
8871 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
8872
8873         * stdlib/longlong.h: Update from GCC.
8874
8875         [BZ #6807]
8876         [BZ #15901]
8877         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
8878         * math/w_j0f.c (y0f): Likewise.
8879         * math/w_j0l.c (__y0l): Likewise.
8880         * math/w_j1.c (y1): Likewise.
8881         * math/w_j1f.c (y1f): Likewise.
8882         * math/w_j1l.c (__y1l): Likewise
8883         * math/w_jn.c (yn): Likewise.
8884         * math/w_jnf.c (ynf): Likewise.
8885         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
8886         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
8887         value for Bessel function domain errors outside _SVID_ mode.
8888         Adjust sign of return value for yn (negative integer, 0).
8889         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
8890         by zero in return for negative x and set sign appropriately for
8891         negative n.
8892         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
8893         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
8894         * math/libm-test.inc (y0_test_data): Add more tests and adjust
8895         expectations in error cases.
8896         (y1_test_data): Likewise.
8897         (yn_test_data): Likewise.
8898         * sysdeps/i386/fpu/libm-test-ulps: Update.
8899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8900
8901 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8902
8903         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
8904         "64" to "64-v1".  Add "64-v2".
8905         (abi-64-options): Rename to ...
8906         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
8907         (abi-64-condition): Rename to ...
8908         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
8909         (abi-64-ld-soname): Rename to ...
8910         (abi-64-v1-ld-soname): ... this.
8911         (abi-64-v2-options): Define.
8912         (abi-64-v2-condition): Likewise.
8913         (abi-64-v2-ld-soname): Likewise.
8914         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
8915         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
8916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
8917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
8918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
8919
8920 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8921             Alan Modra  <amodra@gmail.com>
8922
8923         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
8924         New versions for use with the ELFv2 ABI.
8925         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
8926         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
8927         declaration.
8928         (struct La_ppc64v2_retval): Likewise.
8929         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
8930         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
8931         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
8932         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
8933         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
8934         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
8935         Do not save or restore CR.
8936         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
8937         (_dl_profile_resolve): Do no save or restore CR.  Support extended
8938         return values for ELFv2 ABI.  Fix location of FPR return registers.
8939         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
8940         updated values for _CALL_ELF == 2.
8941         (La_regs, La_retval, int_retval): Likewise.
8942
8943 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8944
8945         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
8946         (FRAME_MIN_SIZE_PARM): Likewise.
8947         (FRAME_BACKCHAIN): Likewise.
8948         (FRAME_CR_SAVE): Likewise.
8949         (FRAME_LR_SAVE): Likewise.
8950         (FRAME_TOC_SAVE): Likewise.
8951         (FRAME_PARM_SAVE): Likewise.
8952         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
8953         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
8954         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
8955         (call_mcount_parm_offset): New macro.
8956         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
8957         (PROF): Use symbolic stack frame offsets.
8958         (TAIL_CALL_SYSCALL_ERROR): Likewise.
8959         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
8960         Redefine in terms of FRAME_MIN_SIZE.
8961         (_dl_runtime_resolve): Use symbolic stack frame offsets.
8962         (_dl_profile_resolve): Likewise.  Update comment.
8963         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
8964         symbols stack frame offsets.
8965         (__sigsetjmp): Likewise.
8966         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8967         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
8968         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
8969         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
8970
8971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
8972         (FRAME_BACKCHAIN): Remove.
8973         (FRAME_CR_SAVE): Likewise.
8974         (FRAME_LR_SAVE): Likewise.
8975         (FRAME_COMPILER_DW): Likewise.
8976         (FRAME_LINKER_DW): Likewise.
8977         (FRAME_TOC_SAVE): Likewise.
8978         (FRAME_PARM_SAVE): Likewise.
8979         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
8980         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
8981         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
8982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
8983         (CHECK_SP): Use symbolic stack frame offsets.
8984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
8985         zone" instead of caller's parameter save area for temp storage.
8986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
8987         Likewise.  Also, use symbolic stack frame offsets.
8988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
8989         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
8990         our own stack frame instead of the caller's.
8991         (__socket): Use symbolic stack frame offsets.
8992
8993 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8994             Alan Modra  <amodra@gmail.com>
8995
8996         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
8997         Define.
8998         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
8999         (PPC64_LOCAL_ENTRY_OFFSET): Define.
9000         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
9001         New function.
9002         (elf_machine_fixup_plt): Call it.
9003         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
9004         reloc arguments.
9005         (elf_machine_rela): Update call to elf_machine_plt_conflict.
9006         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
9007         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
9008         r2 before calling target.
9009
9010 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9011             Alan Modra  <amodra@gmail.com>
9012
9013         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
9014         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
9015         versions of macros to support ELFv2 ABI.
9016         (LOCALENTRY): New macro.
9017         (ENTRY, EALIGN): Use it.
9018         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
9019         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
9020         fall through into ENTRY entry point.
9021         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
9022         Only define if _CALL_ELF != 2.
9023
9024         (elf_machine_matches_host): Verify ABI version matches.
9025         (RTLD_START): Use LOCALENTRY.
9026         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
9027         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
9028         (PLT_ENTRY_WORDS): New macro.
9029         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
9030         (elf_machine_runtime_setup): Support ELFv2 ABI.
9031         (elf_machine_fixup_plt): Likewise.
9032         (elf_machine_plt_conflict): Likewise.
9033         (resolve_ifunc): Likewise.
9034         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
9035         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
9036         Likewise.
9037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9038         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
9039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9040         (makecontext): Support ELFv2 ABI.
9041         * elf/elf.h (EF_PPC64_ABI): Define.
9042
9043 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9044
9045         * sysdeps/powerpc/powerpc64/sysdep.h
9046         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
9047         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
9048         (ENTRY) [ASSEMBLER]: ... but instead here ...
9049         (EALIGN) [ASSEMBLER]: ... and here.
9050         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
9051         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
9052         (ENTRY_2) [!ASSEMBLER]: Use it.
9053         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
9054         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
9055         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
9056         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
9057         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
9058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
9059         Use PPC64_LOAD_FUNCPTR.
9060
9061         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
9062
9063 2013-12-04  Alan Modra  <amodra@gmail.com>
9064
9065         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
9066         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
9067         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
9068         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
9069
9070         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
9071         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
9072         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
9073         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
9074         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
9075         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
9076
9077 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9078
9079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9080         (__makecontext): Fix incorrect CFI when backtracing out of
9081         context created via makecontext.
9082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
9083         (__setcontext): Fix incorrect CFI during switch to new context.
9084         (__novec_setcontext): Likewise.
9085
9086 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
9087
9088         [BZ #4772]
9089         * time/strptime_l.c (__strptime_internal): Allow modifiers
9090         in strptime.
9091         * time/tst-strptime.c (day_tests): Add testcase.
9092
9093 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
9094
9095         * scripts/bench.pl: Skip over blank lines.
9096
9097 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
9098
9099         [BZ #926]
9100         * manual/time.texi (Calendar Time): Clarify what timezone functions
9101         use.
9102
9103 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9104
9105         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9106
9107 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
9108
9109         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
9110         implementation.
9111         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
9112         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
9113         * debug/memset_chk.c (__memset_chk): Likewise.
9114         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
9115         * debug/strncpy_chk.c: Likewise.
9116
9117 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
9118
9119         [BZ #15268]
9120         [BZ #15425]
9121         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
9122         (__ieee754_exp): For possibly underflowing results, check size of
9123         result and force underflow exception if required.
9124         * math/auto-libm-test-in: Add more tests of exp.
9125         * math/auto-libm-test-out: Regenerated.
9126         * sysdeps/i386/fpu/libm-test-ulps: Update.
9127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9128
9129         [BZ #16283]
9130         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
9131         * math/w_exp2f.c (__exp2f): Likewise.
9132         * math/w_exp2l.c (__exp2l): Likewise.
9133         * math/auto-libm-test-in: Do not allow missing errno on exp2
9134         underflow.
9135         * math/auto-libm-test-out: Regenerated.
9136
9137 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
9138
9139         [BZ #16274]
9140         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
9141         handle filename validation.
9142         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
9143         (do_open): Delete.
9144
9145 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
9146
9147         [BZ #6786]
9148         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
9149         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
9150         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
9151         <float.h>.
9152         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
9153         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
9154         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
9155         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
9156         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
9157         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
9158         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
9159         * math/auto-libm-test-in: Don't allow missing errno from erfc.
9160         Add more erfc tests.
9161         * math/auto-libm-test-out: Regenerated.
9162         * sysdeps/i386/fpu/libm-test-ulps: Update.
9163         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9164
9165         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
9166         exp2, expm1, j0 and j1.
9167         * math/auto-libm-test-out: Regenerated.
9168         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
9169         (erfc_test_data): Likewise.
9170         (exp_test_data): Likewise.
9171         (exp_tonearest_test_data): Likewise.
9172         (exp_towardzero_test_data): Likewise.
9173         (exp_downward_test_data): Likewise.
9174         (exp_upward_test_data): Likewise.
9175         (exp10_test_data): Likewise.
9176         (exp2_test_data): Likewise.
9177         (expm1_test_data): Likewise.
9178         (j0_test_data): Likewise.
9179         (j1_test_data): Likewise.
9180         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
9181         (input_flag_type): Add flag_xfail_rounding.
9182         (input_flags): Add xfail-rounding.
9183         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
9184         (output_for_one_input_case): Handle flag_xfail_rounding.
9185         * sysdeps/i386/fpu/libm-test-ulps: Update.
9186         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9187
9188 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
9189
9190         [BZ #16289]
9191         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
9192         division by 0.
9193
9194 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
9195
9196         [BZ #16195]
9197         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
9198         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
9199         (STAP_PROBE0): New macro.
9200         (STAP_PROBE1): Likewise.
9201         (STAP_PROBE2): Likewise.
9202         (STAP_PROBE3): Likewise.
9203         (STAP_PROBE4): Likewise.
9204
9205 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
9206
9207         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
9208
9209 2013-12-02  Steve Ellcey  <sellcey@mips.com>
9210
9211         * benchtests/Makefile (bench): Add sqrt.
9212         (LDLIBS-bench-sqrt): New.
9213         * benchtests/sqrt-input: New.
9214
9215 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
9216
9217         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
9218         (GAIH_EAI): Likewise.
9219         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
9220         (gaih_inet): Likewise.
9221         (getaddrinfo): Don't use GAIH_EAI.
9222
9223         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
9224         (struct gaih): Remove definition.
9225
9226 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9227
9228         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
9229         Use HERRNOP directly.
9230
9231 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9232
9233         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9234
9235 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
9236
9237         * math/gen-auto-libm-tests.c (test_functions): Add more
9238         single-argument functions.
9239         (special_fill_pi_2): New function.
9240         (special_fill_minus_pi_2): Likewise.
9241         (special_fill_pi_6): Likewise.
9242         (special_fill_minus_pi_6): Likewise.
9243         (special_fill_pi_3): Likewise.
9244         (special_fill_2pi_3): Likewise.
9245         (special_fill_e): Likewise.
9246         (special_fill_1_e): Likewise.
9247         (special_fill_e_minus_1): Likewise.
9248         (special_real_inputs): Add more special inputs.
9249         (output_for_one_input_case): Do not require ERANGE on underflow to
9250         zero if round-to-nearest result does not underflow to zero, unless
9251         exact results required.
9252         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
9253         atan, atanh, cbrt, cos and cosh.
9254         * math/auto-libm-test-out: Regenerated.
9255         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
9256         (acos_tonearest_test_data): Likewise.
9257         (acos_towardzero_test_data): Likewise.
9258         (acos_downward_test_data): Likewise.
9259         (acos_upward_test_data): Likewise.
9260         (acosh_test_data): Likewise.
9261         (asin_test_data): Likewise.
9262         (asin_tonearest_test_data): Likewise.
9263         (asin_towardzero_test_data): Likewise.
9264         (asin_upward_test_data): Likewise.
9265         (asinh_test_data): Likewise.
9266         (atan_test_data): Likewise.
9267         (atanh_test_data): Likewise.
9268         (cbrt_test_data): Likewise.
9269         (cos_test_data): Likewise.
9270         (cos_tonearest_test_data): Likewise.
9271         (cos_towardzero_test_data): Likewise.
9272         (cos_downward_test_data): Likewise.
9273         (cos_upward_test_data): Likewise.
9274         (cosh_test_data): Likewise.
9275         (cosh_tonearest_test_data): Likewise.
9276         (cosh_towardzero_test_data): Likewise.
9277         (cosh_downward_test_data): Likewise.
9278         (cosh_upward_test_data): Likewise.
9279         * sysdeps/i386/fpu/libm-test-ulps: Update.
9280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9281
9282 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
9283
9284         [BZ #6787]
9285         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
9286         * math/w_exp10f.c (__exp10f): Likewise.
9287         * math/w_exp10l.c (__exp10l): Likewise.
9288         * math/libm-test.inc (exp10_test_data): Add more tests and expect
9289         errno settings in existing tests.
9290
9291         [BZ #14032]
9292         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
9293         precision control set to double precision.
9294         * sysdeps/i386/fpu/w_sqrt.c: New file.
9295         * math/auto-libm-test-in: Add more tests.
9296         * math/auto-libm-test-out: Update.
9297
9298         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
9299         (sqrt_test_tonearest): New function.
9300         (sqrt_towardzero_test_data): New variable.
9301         (sqrt_test_towardzero): New function.
9302         (sqrt_downward_test_data): New variable.
9303         (sqrt_test_downward): New function.
9304         (sqrt_upward_test_data): New variable.
9305         (sqrt_test_upward): New function.
9306         (main): Call the new functions.
9307
9308         * math/gen-auto-libm-tests.c: New file.
9309         * math/auto-libm-test-in: Likewise.
9310         * math/auto-libm-test-out: New generated file.
9311         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
9312         variables.
9313         (%beautify): Add generated representations of zero.
9314         (top level): Set $auto_input and call parse_auto_input.
9315         (beautify): Remove trailing "f" from hex float constants.
9316         (parse_args): Handle XFAIL_TEST.
9317         (convert_condition): New function.
9318         (or_value): Likewise.
9319         (or_cond_value): Likewise.
9320         (generate_testfile): Handle AUTO_TESTS_* lines.
9321         (parse_auto_input): New function.
9322         * math/libm-test.inc (XFAIL_TEST): New macro.
9323         (ERRNO_UNCHANGED): Update value.
9324         (ERRNO_EDOM): Likewise.
9325         (ERRNO_ERANGE): Likewise.
9326         (IGNORE_RESULT): Likewise.
9327         (TEST_COND_flt_32): New macro.
9328         (TEST_COND_dbl_64): Likewise.
9329         (TEST_COND_ldbl_96_intel): Likewise.
9330         (TEST_COND_ldbl_96_m68k): Likewise.
9331         (TEST_COND_ldbl_128): Likewise.
9332         (TEST_COND_ldbl_128ibm): Likewise.
9333         (TEST_COND_long32): Likewise.
9334         (TEST_COND_long64): Likewise.
9335         (TEST_COND_before_rounding): Likewise.
9336         (TEST_COND_after_rounding): Likewise.
9337         (enable_test): Handle XFAIL_TEST flag.
9338         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
9339         with finite results.
9340         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
9341         auto-libm-test-out.
9342
9343 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
9344             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9345
9346         [BZ #16214]
9347         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
9348         __tls_get_addr_internal instead of __tls_get_offset in order to
9349         avoid GOT pointer dependency.  Make rtld export
9350         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
9351         __tls_get_addr since we are a __tls_get_offset platform.
9352         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
9353         GOT pointer being set up before.
9354         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
9355
9356 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
9357
9358         * manual/math.texi (Errors in Math Functions): Document accuracy
9359         goals.
9360
9361         [BZ #15004]
9362         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
9363         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
9364         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9365         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9366         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9367         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9368         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9369         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9370         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9371         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9372         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9373         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9374         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9375         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9376         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9377         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9378
9379         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
9380         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
9381         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
9382         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
9383         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
9384         Likewise.
9385         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
9386         Likewise.
9387         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
9388         Likewise.
9389         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
9390         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
9391         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
9392         atomic-feupdateenv and flt-rounds.
9393         * sysdeps/powerpc/nofpu/Versions (libc): Add
9394         __atomic_feholdexcept, __atomic_feclearexcept,
9395         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
9396         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
9397         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
9398         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
9399         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
9400         here.
9401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
9402         Update.
9403
9404         * manual/arith.texi (FP Exceptions): Document that exceptions may
9405         not be raised when matherr is used.
9406         (Math Error Reporting): Document overflow in directed rounding
9407         modes.  Document that errno may not be set when finite values are
9408         returned on overflow.  Document intent to set errno on underflow
9409         only for underflow to zero.
9410
9411         [BZ #16271]
9412         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
9413         round-to-nearest then adjust result for other rounding modes.
9414         * include/fenv.h (fegetround): Use libm_hidden_proto.
9415         * math/fegetround.c (fegetround): Use libm_hidden_def.
9416         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
9417         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
9418         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
9419         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
9420         Likewise.
9421         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
9422         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
9423         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
9424         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
9425
9426 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9427
9428         [BZ #16077]
9429         * nss/Versions (libnss_files): Add
9430         _nss_files_gethostbyname3_r.
9431         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
9432         New function.
9433         (HOST_DB_LOOKUP): Remove macro.
9434         (_nss_files_gethostbyname_r): Implement function without the
9435         HOST_DB_LOOKUP macro.
9436         (_nss_files_gethostbyname2_r): Likewise.
9437
9438 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
9439
9440         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
9441
9442 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
9443
9444         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
9445         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
9446         warning.
9447
9448 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9449
9450         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
9451         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
9452         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
9453         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
9454         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
9455         __fe_nomask_env_priv and attribute_hidden.
9456         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
9457         (libc_feupdateenv_test_ppc): Likewise.
9458         (libc_feresetround_ppc): Likewise.
9459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
9460         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
9461         compat_symbol macro.
9462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
9463         (__fe_nomask_env): Likewise.
9464         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
9465
9466 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9467
9468         * string/Makefile: Remove ifunc tests.
9469         * string/test-string.h: Define TEST_IFUNC.
9470         * string/test-bcopy-ifunc.c: Remove.
9471         * string/test-bzero-ifunc.c: Likewise.
9472         * string/test-memccpy-ifunc.c: Likewise.
9473         * string/test-memchr-ifunc.c: Likewise.
9474         * string/test-memcmp-ifunc.c: Likewise.
9475         * string/test-memcpy-ifunc.c: Likewise.
9476         * string/test-memmem-ifunc.c: Likewise.
9477         * string/test-memmove-ifunc.c: Likewise.
9478         * string/test-mempcpy-ifunc.c: Likewise.
9479         * string/test-memrchr-ifunc.c: Likewise.
9480         * string/test-memset-ifunc.c: Likewise.
9481         * string/test-rawmemchr-ifunc.c: Likewise.
9482         * string/test-stpcpy-ifunc.c: Likewise.
9483         * string/test-stpncpy-ifunc.c: Likewise.
9484         * string/test-strcasecmp-ifunc.c: Likewise.
9485         * string/test-strcasestr-ifunc.c: Likewise.
9486         * string/test-strcat-ifunc.c: Likewise.
9487         * string/test-strchr-ifunc.c: Likewise.
9488         * string/test-strchrnul-ifunc.c: Likewise.
9489         * string/test-strcmp-ifunc.c: Likewise.
9490         * string/test-strcpy-ifunc.c: Likewise.
9491         * string/test-strcspn-ifunc.c: Likewise.
9492         * string/test-strlen-ifunc.c: Likewise.
9493         * string/test-strncasecmp-ifunc.c: Likewise.
9494         * string/test-strncat-ifunc.c: Likewise.
9495         * string/test-strncmp-ifunc.c: Likewise.
9496         * string/test-strncpy-ifunc.c: Likewise.
9497         * string/test-strnlen-ifunc.c: Likewise.
9498         * string/test-strpbrk-ifunc.c: Likewise.
9499         * string/test-strrchr-ifunc.c: Likewise.
9500         * string/test-strspn-ifunc.c: Likewise.
9501         * string/test-strstr-ifunc.c: Likewise.
9502
9503 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9504
9505         * benchtests/Makefile: Remove ifunc tests.
9506         * benchtests/bench-string.h: Define TEST_IFUNC.
9507         * benchtests/bench-bcopy-ifunc.c: Remove.
9508         * benchtests/bench-bzero-ifunc.c: Likewise.
9509         * benchtests/bench-memccpy-ifunc.c: Likewise.
9510         * benchtests/bench-memchr-ifunc.c: Likewise.
9511         * benchtests/bench-memcmp-ifunc.c: Likewise.
9512         * benchtests/bench-memcpy-ifunc.c: Likewise.
9513         * benchtests/bench-memmem-ifunc.c: Likewise.
9514         * benchtests/bench-memmove-ifunc.c: Likewise.
9515         * benchtests/bench-mempcpy-ifunc.c: Likewise.
9516         * benchtests/bench-memrchr-ifunc.c: Likewise.
9517         * benchtests/bench-memset-ifunc.c: Likewise.
9518         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
9519         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
9520         * benchtests/bench-stpcpy-ifunc.c: Likewise.
9521         * benchtests/bench-stpncpy-ifunc.c: Likewise.
9522         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
9523         * benchtests/bench-strcasestr-ifunc.c: Likewise.
9524         * benchtests/bench-strcat-ifunc.c: Likewise.
9525         * benchtests/bench-strchr-ifunc.c: Likewise.
9526         * benchtests/bench-strchrnul-ifunc.c: Likewise.
9527         * benchtests/bench-strcmp-ifunc.c: Likewise.
9528         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
9529         * benchtests/bench-strcpy-ifunc.c: Likewise.
9530         * benchtests/bench-strcspn-ifunc.c: Likewise.
9531         * benchtests/bench-strlen-ifunc.c: Likewise.
9532         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
9533         * benchtests/bench-strncat-ifunc.c: Likewise.
9534         * benchtests/bench-strncmp-ifunc.c: Likewise.
9535         * benchtests/bench-strncpy-ifunc.c: Likewise.
9536         * benchtests/bench-strnlen-ifunc.c: Likewise.
9537         * benchtests/bench-strpbrk-ifunc.c: Likewise.
9538         * benchtests/bench-strrchr-ifunc.c: Likewise.
9539         * benchtests/bench-strsep-ifunc.c: Likewise.
9540         * benchtests/bench-strspn-ifunc.c: Likewise.
9541         * benchtests/bench-strstr-ifunc.c: Likewise.
9542
9543 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9544
9545         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
9546
9547 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9548
9549         * resolv/netdb.h: Use __glibc_reserved instead __unused.
9550         * rt/aio.h: Likewise.
9551         * sysdeps/gnu/bits/utmp.h: Likewise.
9552         * sysdeps/gnu/bits/utmpx.h: Likewise.
9553         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
9554         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
9555         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
9556         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
9557         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
9558         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9559         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
9560         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
9561         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
9562         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
9563         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
9564         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
9565         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
9566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
9567         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
9568         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
9569         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
9570         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
9571         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
9572         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9573         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
9574         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
9575         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
9576         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
9577         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
9578         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9579         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
9580         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
9581         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
9582         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
9583         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9584         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
9585         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
9586         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
9587         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9588         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
9589         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
9590         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
9591         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
9592         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
9593         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9594         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
9595
9596 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
9597
9598         [BZ #16245]
9599         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
9600         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
9601
9602 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
9603
9604         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
9605         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
9606         Likewise.
9607
9608 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9609
9610         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
9611         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
9612         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
9613         (__fesetround): Remove define.
9614         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
9615         rounding and exceptions handling.
9616         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
9617         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
9618         (__fe_nomask_env): Likewise.
9619         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
9620         __fegetround instead of fegetround.
9621         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
9622         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
9623
9624 2013-11-21  Roland McGrath  <roland@hack.frob.com>
9625
9626         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
9627         it's there.
9628
9629         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
9630
9631 2013-11-21  Meador Inge  <meadori@codesourcery.com>
9632
9633         [BZ #11157]
9634         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
9635         (encrypt_r): Likewise.
9636         * malloc/obstack.h (obstack_free): Likewise.
9637         * posix/unistd.h (encrypt): Likewise.
9638
9639 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
9640
9641         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
9642         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
9643         DL_CALL_DT_FINI() that call the functions directly.
9644         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
9645         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
9646         * elf/dl-fini.c: Likewise.
9647
9648 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
9649
9650         * malloc/hooks.c (memalign_check): Add alignment rounding.
9651         * malloc/malloc.c (_mid_memalign): New function.
9652         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
9653         Implement by calling _mid_memalign.
9654         * manual/probes.texi (Memory Allocation Probes): Remove
9655         memory_valloc_retry and memory_pvalloc_retry.
9656
9657 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9658
9659         * locale/programs/locarchive.c (open_archive): Add const
9660         qualifier to ARCHIVEFNAME and copy default fname to
9661         DEFAULT_FNAME.
9662
9663         [BZ #15601]
9664         * libio/tst-widetext.input: Rename Oriya to Odia.
9665         * locale/iso-639.def: Likewise.
9666
9667         * manual/probes.texi (Mathematical Function Probes): Add
9668         documentation for sin, cos, asin and acos probes.
9669         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
9670         (__sin32): Add slowasin probe.
9671         (__cos32): Add slowacos probe.
9672         (__mpsin): Add slowsin probe.
9673         (__mpcos): Add slowcos probe.
9674
9675 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
9676
9677         [BZ #15483]
9678         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
9679         thread-local __sim_exceptions_thread and global
9680         __sim_exceptions_global.
9681         (__sim_disabled_exceptions): Change to thread-local
9682         __sim_disabled_exceptions_thread and global
9683         __sim_disabled_exceptions_global.
9684         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
9685         and global __sim_round_mode_global.
9686         (__simulate_exceptions): Use thread-local floating-point state and
9687         set global state from it as needed.
9688         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
9689         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
9690         __sim_round_mode_thread.
9691         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
9692         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
9693         and global __sim_exceptions_global.
9694         (__sim_disabled_exceptions): Change to thread-local
9695         __sim_disabled_exceptions_thread and global
9696         __sim_disabled_exceptions_global.
9697         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
9698         and global __sim_round_mode_global.
9699         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
9700         (SIM_SET_GLOBAL): Likewise.
9701         * sysdeps/powerpc/soft-fp/sfp-machine.h
9702         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
9703         __sim_round_mode_thread.
9704         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
9705         __sim_disabled_exceptions_thread.
9706         (__sim_exceptions): Change to __sim_exceptions_thread.
9707         (__sim_disabled_exceptions): Change to
9708         __sim_disabled_exceptions_thread.
9709         (__sim_round_mode): Change to __sim_round_mode_thread.
9710         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
9711         thread-local floating-point state and set global state from it as
9712         needed.
9713         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
9714         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
9715         (__sim_disabled_exceptions): Remove extern declaration.
9716         (feenableexcept): Use thread-local floating-point state and set
9717         global state from it as needed.
9718         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
9719         extern declaration.
9720         (__sim_disabled_exceptions): Likewise.
9721         (__sim_round_mode): Likewise.
9722         (__fegetenv): Use thread-local floating-point state.
9723         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
9724         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
9725         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
9726         floating-point state and set global state from it as needed.
9727         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
9728         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
9729         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
9730         Likewise.
9731         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
9732         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
9733         Likewise.
9734         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
9735         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
9736         Use __sim_round_mode_thread.
9737         * math/test-fenv-tls.c: New file.
9738         * math/Makefile (tests): Add test-fenv-tls.
9739         ($(objpfx)test-fenv-tls): Depend on
9740         $(common-objpfx)nptl/libpthread.so.
9741
9742 2013-11-19  Andreas Schwab  <schwab@suse.de>
9743
9744         * locale/programs/locale.c (show_info): Decode wordarray elements.
9745         * locale/categories.def (LC_MONETARY): Add element for
9746         _NL_MONETARY_CRNCYSTR.
9747         * locale/C-monetary.c (conversion_rate): New variable.
9748         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
9749         element.
9750
9751 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
9752
9753         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
9754         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
9755
9756 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
9757
9758         * elf/Makefile (tst-auxv): New test.
9759         * elf/tst-auxv.c: New
9760         * elf/rtld.c (dl_main): Adjust AT_EXECFN
9761
9762 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
9763
9764         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
9765         (hidden_proto): Caller changed.
9766         (hidden_tls_proto): New macro.
9767         (libc_hidden_tls_proto): Likewise.
9768         (rtld_hidden_tls_proto): Likewise.
9769         (libm_hidden_tls_proto): Likewise.
9770         (libresolv_hidden_tls_proto): Likewise.
9771         (librt_hidden_tls_proto): Likewise.
9772         (libdl_hidden_tls_proto): Likewise.
9773         (libnss_files_hidden_tls_proto): Likewise.
9774         (libnsl_hidden_tls_proto): Likewise.
9775         (libnss_nisplus_hidden_tls_proto): Likewise.
9776         (libutil_hidden_tls_proto): Likewise.
9777
9778 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
9779
9780         [BZ #10253]
9781         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
9782         (decompose_rpath): Defer expansion to fillin_rpath.
9783         (_dl_init_paths): Pass linkmap to fillin_rpath.
9784
9785 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9786
9787         * benchtests/Makefile: Add strsep.
9788         * benchtests/bench-strsep.c: New file: strsep benchtest.
9789         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
9790
9791 2013-11-18  Andreas Schwab  <schwab@suse.de>
9792
9793         * locale/programs/locale.c (show_info) [case byte]: Check for
9794         '\377' instead of '\177'.
9795         * locale/C-monetary.c (not_available): Always use "\377".
9796         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
9797         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
9798         detect unavailable sign_posn locale elements.
9799         * locale/localeconv.c (__localeconv): For grouping and
9800         mon_grouping handle "\177" and "\377" like no grouping.
9801         (INT_ELEM): New macro.  Use it to set all numeric members.
9802         * locale/programs/ld-monetary.c (monetary_read)
9803         <tok_mon_grouping>: Normalize single -1 to the empty string.
9804         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
9805         Likewise.
9806
9807 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
9808
9809         [BZ #16055]
9810         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
9811         when we match (nil).
9812         * stdio-common/tst-sscanf.c (struct test): Add testcase.
9813
9814 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
9815
9816         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
9817         (NO_TEST_INLINE): Update value.
9818         (ERRNO_UNCHANGED): Likewise.
9819         (ERRNO_EDOM): Likewise.
9820         (ERRNO_ERANGE): Likewise.
9821         (IGNORE_RESULT): Likewise.
9822         (check_float_internal): Check signs of NaN results if
9823         TEST_NAN_SIGN used.
9824         (check_complex): Pass TEST_NAN_SIGN flag through to second
9825         check_float_internal call.
9826         (copysign_test_data): Add tests with quiet NaNs as second
9827         argument.  Use TEST_NAN_SIGN.
9828         (fabs_test_data): Add test of negative quiet NaN argument.  Use
9829         TEST_NAN_SIGN.
9830         (signbit_test_data): Add tests of quiet NaN argument.
9831         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
9832
9833         * math/gen-libm-test.pl (show_exceptions): Take extra argument
9834         $ignore_result.
9835         (parse_args): Handle function results specified as IGNORE.
9836         * math/libm-test.inc (IGNORE_RESULT): New macro.
9837         (check_float_internal): Do not check numerical result if flag
9838         IGNORE_RESULT set.
9839         (check_complex): Pass through IGNORE_RESULT to second
9840         check_float_internal call.
9841         (check_int): Do not check numerical result if flag IGNORE_RESULT
9842         set.
9843         (check_long): Likewise.
9844         (check_bool): Likewise.
9845         (check_longlong): Likewise.
9846         (lrint_test_data): Add tests of infinite and NaN arguments.
9847         (lrint_tonearest_test_data): Likewise.
9848         (lrint_towardzero_test_data): Likewise.
9849         (lrint_downward_test_data): Likewise.
9850         (lrint_upward_test_data): Likewise.
9851         (llrint_test_data): Likewise.
9852         (llrint_tonearest_test_data): Likewise.
9853         (llrint_towardzero_test_data): Likewise.
9854         (llrint_downward_test_data): Likewise.
9855         (llrint_upward_test_data): Likewise.
9856         (lround_test_data): Likewise.
9857         (llround_test_data): Likewise.
9858
9859         * math/libm-test.inc (NO_TEST_INLINE): New macro.
9860         (ERRNO_UNCHANGED): Update value.
9861         (ERRNO_EDOM): Likewise.
9862         (ERRNO_ERANGE): Likewise.
9863         (NO_TEST_INLINE_FLOAT): New macro.
9864         (NO_TEST_INLINE_DOUBLE): Likewise.
9865         (enable_test): New function.
9866         (RUN_TEST_f_f): Check enable_test before running test.
9867         (RUN_TEST_2_f): Likewise.
9868         (RUN_TEST_fff_f): Likewise.
9869         (RUN_TEST_c_f): Likewise.
9870         (RUN_TEST_f_f1): Likewise.
9871         (RUN_TEST_fF_f1): Likewise.
9872         (RUN_TEST_fI_f1): Likewise.
9873         (RUN_TEST_ffI_f1): Likewise.
9874         (RUN_TEST_c_c): Likewise.
9875         (RUN_TEST_cc_c): Likewise.
9876         (RUN_TEST_f_i): Likewise.
9877         (RUN_TEST_f_i_tg): Likewise.
9878         (RUN_TEST_ff_i_tg): Likewise.
9879         (RUN_TEST_f_b): Likewise.
9880         (RUN_TEST_f_b_tg): Likewise.
9881         (RUN_TEST_f_l): Likewise.
9882         (RUN_TEST_f_L): Likewise.
9883         (RUN_TEST_fFF_11): Likewise.
9884         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
9885         conditionals.
9886         (cosh_test_data): Likewise.
9887         (exp_test_data): Likewise.
9888         (expm1_test_data): Likewise.
9889         (hypot_test_data): Likewise.
9890         (pow_test_data): Likewise.
9891         (sinh_test_data): Likewise.
9892         (tanh_test_data): Likewise.
9893         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
9894         flags argument.
9895
9896         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
9897         tests with quiet NaN input and output.
9898         (acosh_test_data): Likewise.
9899         (asin_test_data): Likewise.
9900         (asinh_test_data): Likewise.
9901         (atan_test_data): Likewise.
9902         (atanh_test_data): Likewise.
9903         (atan2_test_data): Likewise.
9904         (cbrt_test_data): Likewise.
9905         (cos_test_data): Likewise.
9906         (cosh_test_data): Likewise.
9907         (erf_test_data): Likewise.
9908         (erfc_test_data): Likewise.
9909         (exp_test_data): Likewise.
9910         (exp10_test_data): Likewise.
9911         (exp2_test_data): Likewise.
9912         (expm1_test_data): Likewise.
9913         (hypot_test_data): Likewise.
9914         (j0_test_data): Likewise.
9915         (j1_test_data): Likewise.
9916         (jn_test_data): Likewise.
9917         (lgamma_test_data): Likewise.
9918         (log_test_data): Likewise.
9919         (log10_test_data): Likewise.
9920         (log1p_test_data): Likewise.
9921         (log2_test_data): Likewise.
9922         (pow_test_data): Likewise.
9923         (scalb_test_data): Likewise.
9924         (sin_test_data): Likewise.
9925         (sincos_test_data): Likewise.
9926         (sinh_test_data): Likewise.
9927         (tan_test_data): Likewise.
9928         (tanh_test_data): Likewise.
9929         (tgamma_test_data): Likewise.
9930         (y0_test_data): Likewise.
9931         (y1_test_data): Likewise.
9932         (yn_test_data): Likewise.
9933
9934         [BZ #16167]
9935         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
9936         argument being NaN and avoid computations with second argument in
9937         that case.
9938         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9939         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9940         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9941
9942 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
9943
9944         * locale/iso-639.def: Add Chitwani Tharu (the).
9945
9946 2013-11-14  Andreas Schwab  <schwab@suse.de>
9947
9948         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
9949         word instead of empty string.
9950
9951 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9952
9953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
9954         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
9955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
9956         (__fe_nomask_env): Likewise.
9957
9958 2013-11-13  Steve Ellcey  <sellcey@mips.com>
9959
9960         * benchtests/bench-timing.h: Include time.h.
9961
9962 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
9963
9964         [BZ #15997]
9965         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
9966         to 3.4.0 for x32.
9967         * sysdeps/unix/sysv/linux/configure: Regenerated.
9968
9969 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
9970
9971         [BZ #16151]
9972         * stdlib/strtod_l.c (round_and_return): Do not consider
9973         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
9974         exponent one less than half the least subnormal exponent.
9975         * stdlib/test-strtod-round-data: Add more tests.
9976         * stdlib/tst-strtod-round.c (tests): Regenerated.
9977
9978 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9979
9980         [BZ #14143]
9981         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
9982         (__fe_mask_env): Likewise.
9983         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
9984         libm_hidden_proto and add function prototype.
9985         (__fe_mask_env): Add function prototype.
9986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
9987         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
9988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
9989         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
9990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
9991         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
9992
9993 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9994
9995         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
9996         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
9997
9998 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9999
10000         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
10001         of htab_find_slot().
10002
10003 2013-11-11  David S. Miller  <davem@davemloft.net>
10004
10005         [BZ #16150]
10006         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
10007         symbol in the non-vis3 case in static builds.
10008         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
10009         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
10010         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
10011         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
10012
10013 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10014
10015         [BZ #387]
10016         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
10017         it is empty.
10018
10019 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10020
10021         * benchtests/Makefile: Add bench-strtod.
10022         * benchtests/bench-strtod.c: New file: strtod benchtest
10023
10024 2013-11-11  Andreas Schwab  <schwab@suse.de>
10025
10026         [BZ #16153]
10027         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
10028         terminating NUL in key length.
10029
10030 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10031
10032         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
10033         Add artificial ODP entry for vDSO symbol for PPC64.
10034         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
10035         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
10036
10037 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
10038
10039         [BZ #15374]
10040         * nss/getent.c (services_keys): Recognize services starting with digit.
10041
10042 2013-11-06  David S. Miller  <davem@davemloft.net>
10043
10044         [BZ #15985]
10045         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
10046         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
10047
10048 2013-11-06  Will Newton  <will.newton@linaro.org>
10049
10050         * manual/memory.texi (Malloc Examples): Remove register
10051         keyword from examples.
10052
10053 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
10054
10055         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
10056
10057 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
10058
10059         [BZ #6981]
10060         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
10061         depending on [__GCC_IEC_559 > 0].
10062         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
10063         depending on [__GCC_IEC_559_COMPLEX > 0].
10064
10065 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
10066
10067         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
10068         to iso-639.def.
10069
10070 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
10071
10072         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
10073
10074 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
10075
10076         [BZ #16112]
10077         * malloc/malloc (malloc_info): Do not handle first bin as
10078         special case.
10079
10080 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
10081
10082         * locale/iso-639.def: Add Central Nahuatl (nhn).
10083
10084 2013-11-01  Bruno Haible  <bruno@clisp.org>
10085
10086         [BZ #7003]
10087         * manual/math.texi (BSD Random): Specify range upper bound as
10088         in POSIX.
10089
10090 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
10091
10092         * locale/iso-639.def: Add Meadow Mari (mhr).
10093
10094 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
10095
10096         [BZ #14752], [BZ #15763]
10097         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
10098         Validate name.
10099         * rt/tst_shm.c: Add test for escaping directory.
10100
10101 2013-10-31  Andreas Schwab  <schwab@suse.de>
10102
10103         [BZ #15917]
10104         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
10105         followed by 'x' as part of digit sequence.
10106         * stdio-common/tst-sscanf.c (double_tests2): New tests.
10107
10108 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
10109
10110         [BZ #16037]
10111         * configure.ac: allow GNU Make 4.0 and greater.
10112         * configure: Regenerated.
10113
10114 2013-10-30  Will Newton  <will.newton@linaro.org>
10115
10116         [BZ #16038]
10117         * malloc/hooks.c (memalign_check): Limit alignment to the
10118         maximum representable power of two.
10119         * malloc/malloc.c (__libc_memalign): Likewise.
10120         * malloc/tst-memalign.c (do_test): Add test for very
10121         large alignment values.
10122         * malloc/tst-posix_memalign.c (do_test): Likewise.
10123
10124 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
10125
10126         [BZ #11087]
10127         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
10128         (munmap_chunk): Likewise.
10129         (mremap_chunk): Likewise.
10130
10131 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
10132
10133         [BZ #15799]
10134         * stdlib/div.c (div): Remove obsolete code.
10135         * stdlib/ldiv.c (ldiv): Likewise.
10136         * stdlib/lldiv.c (lldiv): Likewise.
10137
10138 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10139
10140         [BZ #16071]
10141         * nss/nss_files/files-XXX.c (get_contents_ret): New
10142         enumerator.
10143         (get_contents): New function.
10144         (internal_getent): Use it.  Expand size of LINEBUFLEN.
10145
10146 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
10147
10148         * configure.in: Moved to ...
10149         * configure.ac: ... here. Change reference to configure.in
10150         to configure.ac.
10151         * sysdeps/arm/preconfigure.ac: ... here.
10152         configure.in to configure.ac.
10153         * sysdeps/gnu/configure.in: Moved to ...
10154         * sysdeps/gnu/configure.ac: ... here.
10155         * sysdeps/i386/configure.in: Moved to ...
10156         * sysdeps/i386/configure.ac: ... here.
10157         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
10158         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
10159         * sysdeps/mach/configure.in: Moved to ...
10160         * sysdeps/mach/configure.ac: ... here.
10161         * sysdeps/mach/hurd/configure.in: Moved to ...
10162         * sysdeps/mach/hurd/configure.ac: ... here.
10163         * sysdeps/powerpc/configure.in: Moved to ...
10164         * sysdeps/powerpc/configure.ac: ... here.
10165         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
10166         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
10167         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
10168         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
10169         * sysdeps/s390/s390-32/configure.in: Moved to ...
10170         * sysdeps/s390/s390-32/configure.ac: ... here.
10171         * sysdeps/s390/s390-64/configure.in: Moved to ...
10172         * sysdeps/s390/s390-64/configure.ac: ... here.
10173         * sysdeps/sh/configure.in: Moved to ...
10174         * sysdeps/sh/configure.ac: ... here.
10175         * sysdeps/sparc/configure.in: Moved to ...
10176         * sysdeps/sparc/configure.ac: ... here.
10177         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
10178         * sysdeps/unix/sysv/linux/configure.ac: ... here.
10179         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
10180         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
10181         * sysdeps/x86_64/configure.in: Moved to ...
10182         * sysdeps/x86_64/configure.ac: ... here.
10183         * sysdeps/x86_64/preconfigure.in: Moved to ...
10184         * sysdeps/x86_64/preconfigure.ac: ... here.
10185         * aclocal.m4: Change reference to configure.in to configure.ac.
10186         * config.h.in: Likewise.
10187         * manual/install.texi: Likewise.
10188         * manual/maint.texi: Likewise.
10189         * Makefile: Likewise.
10190         * malloc/Makefile: Likewise.
10191         * nscd/Makefile: Likewise.
10192         * Makeconfig: Change reference to configure.in and
10193         preconfigure.in to configure.ac and preconfigure.ac
10194         respectively.
10195         * INSTALL: Regenerated.
10196         * configure: Likewise.
10197         * sysdeps/gnu/configure: Likewise.
10198         * sysdeps/i386/configure: Likewise.
10199         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
10200         * sysdeps/mach/configure: Likewise.
10201         * sysdeps/mach/hurd/configure: Likewise.
10202         * sysdeps/powerpc/configure: Likewise.
10203         * sysdeps/powerpc/powerpc32/configure: Likewise.
10204         * sysdeps/powerpc/powerpc64/configure: Likewise.
10205         * sysdeps/s390/s390-32/configure: Likewise.
10206         * sysdeps/s390/s390-64/configure: Likewise.
10207         * sysdeps/sh/configure: Likewise.
10208         * sysdeps/sparc/configure: Likewise.
10209         * sysdeps/unix/sysv/linux/configure: Likewise.
10210         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
10211         * sysdeps/x86_64/configure: Likewise.
10212         * sysdeps/x86_64/preconfigure: Likewise.
10213
10214 2013-10-29  Andreas Schwab  <schwab@suse.de>
10215
10216         * stdio-common/Makefile (tst-swscanf-ENV): Define.
10217
10218 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10219
10220         * benchtests/pow-inputs: Add new inputs.
10221
10222         * benchtests/exp-inputs: Add new inputs.
10223
10224         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
10225         conditional check for return value.
10226         (__cos32): Likewise.
10227
10228 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10229
10230         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
10231         to provide a boost for large inputs with word alignment.
10232         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
10233         implementation based on optimized PPC64 strcpy.
10234         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
10235         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
10236         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
10237         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
10238
10239 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
10240
10241         [BZ #2801]
10242         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
10243
10244 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
10245
10246         [BZ #14876]
10247         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
10248         * time/tst-strptime.c (day_tests): Add testcase.
10249
10250 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
10251
10252         [BZ #14029]
10253         * manual/pattern.texi: Acknowledge that fnmatch can fail.
10254
10255 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
10256
10257         [BZ #16074]
10258         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
10259         MAP_FAILED on error.
10260
10261 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10262
10263         [BZ #16072]
10264         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
10265         heap for large requests.
10266
10267 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
10268
10269         [BZ #9954]
10270         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
10271         result if the result has no associated interface.
10272         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
10273         interface for all 127.X.Y.Z addresses.
10274
10275 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
10276
10277         * locale/iso-639.def: Add Ligurian (lij)
10278
10279 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
10280
10281         [BZ #15825]
10282         * sunrpc/rpc_main.c: Document rpcgen -5.
10283
10284 2013-10-19  Michael Stahl  <mstahl@redhat.com>
10285
10286         * elf/rtld.c (do_preload): Print the reason why preloading failed.
10287
10288 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
10289
10290         [BZ #10278]
10291         * posix/glob.c: Match only directories when trailing slash is present.
10292         * posix/tst-gnuglob.c (my_opendir): Do not open files.
10293         (main): Add testcase.
10294
10295 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
10296
10297         [BZ #15670]
10298         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
10299
10300 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
10301
10302         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
10303         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
10304         AUTH_DES and cindex for FIPS 140-2.
10305         (DES Encryption): Add cindex FIPS 46-3.
10306
10307         * locale/locarchive.h (struct locarhandle): Add fname.
10308         * locale/programs/localedef.c (main): Pass ARGV[remaining]
10309         if an optional argument was specified to --list-archive,
10310         otherwise NULL.
10311         * locale/programs/locarchive.c (show_archive_content): Take new
10312         argument fname and pass it via ah.fname to open_archive.
10313         * locale/programs/localedef.h: Update decl.
10314         (open_archive): If AH->fname is non-null, open that file
10315         rather than the default file name, and don't ignore ENOENT.
10316         (create_archive): Set AH.fname to NULL.
10317         (delete_locales_from_archive): Likewise.
10318         (add_locales_to_archive): Likewise.
10319         * locale/programs/locfile.c (write_all_categories): Likewise.
10320
10321 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
10322             Aldy Hernandez  <aldyh@redhat.com>
10323
10324         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
10325         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
10326         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
10327         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
10328         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
10329         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
10330         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
10331         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
10332         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
10333         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
10334         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
10335         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
10336         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
10337         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
10338         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
10339         Likewise.
10340         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
10341         Likewise.
10342         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
10343         Likewise.
10344         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
10345         Likewise.
10346         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
10347         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
10348         Likewise.
10349         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
10350         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
10351         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
10352         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
10353         Likewise.
10354         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
10355         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
10356         * sysdeps/powerpc/preconfigure: Likewise.
10357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10358         Likewise.
10359         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
10360         Replace contents of file by #include of <fenv_libc.h>.
10361         * sysdeps/powerpc/soft-fp/sfp-machine.h
10362         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
10363         and <sys/prctl.h>.
10364         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
10365         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
10366         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
10367         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
10368         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
10369         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
10370         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
10371         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
10372         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
10373         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
10374         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
10375         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
10376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
10377         Allow copysignl PLT reference to be missing.
10378
10379 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
10380             Joseph Myers  <joseph@codesourcery.com
10381
10382         [BZ #15948]
10383         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
10384         single character.
10385         (add_to_tablewc): Assert sequence of wide characters is nonempty.
10386
10387 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
10388
10389         * elf/tst-tls-dlinfo.c: Don't include tls.h.
10390         * elf/tst-tls1.c: Likewise.
10391         * elf/tst-tls10.h: Likewise.
10392         * elf/tst-tls14.c: Likewise.
10393         * elf/tst-tls2.c: Likewise.
10394         * elf/tst-tls3.c: Likewise.
10395         * elf/tst-tls4.c: Likewise.
10396         * elf/tst-tls5.c: Likewise.
10397         * elf/tst-tls6.c: Likewise.
10398         * elf/tst-tls7.c: Likewise.
10399         * elf/tst-tls8.c: Likewise.
10400         * elf/tst-tls9.c: Likewise.
10401         * elf/tst-tlsmod1.c: Likewise.
10402         * elf/tst-tlsmod13.c: Likewise.
10403         * elf/tst-tlsmod13a.c: Likewise.
10404         * elf/tst-tlsmod14a.c: Likewise.
10405         * elf/tst-tlsmod16a.c: Likewise.
10406         * elf/tst-tlsmod16b.c: Likewise.
10407         * elf/tst-tlsmod2.c: Likewise.
10408         * elf/tst-tlsmod3.c: Likewise.
10409         * elf/tst-tlsmod4.c: Likewise.
10410         * elf/tst-tlsmod5.c: Likewise.
10411         * elf/tst-tlsmod6.c: Likewise.
10412
10413 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
10414
10415         [BZ #12486]
10416         * malloc/malloc.c: remove checks for statistics.
10417
10418 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
10419
10420         [BZ #15277]
10421         * inet/inet_net.c (inet_network): Detect additional invalid strings.
10422         * inet/tst-network.c: Add testcase.
10423
10424 2013-10-17  Andreas Schwab  <schwab@suse.de>
10425
10426         [BZ #15218]
10427         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
10428         to determine canonical name.
10429
10430 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
10431
10432         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
10433         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
10434         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10435         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10436         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10437         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10438         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10439         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10440         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10441         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10442         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10443         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10444         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10445         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10446         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10447         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10448         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10449         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10450         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10451         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10452         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10453         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10454         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10455         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
10456         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
10457         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
10458         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
10459         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
10460         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
10461         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
10462         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10463         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10464         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10465         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10466         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10467         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10468         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10469         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10470         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10471         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10472         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10473         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10474         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10475         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10476         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10477         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10478         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10479         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10480         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10481         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10482         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10483         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10484         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10485         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10486         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10487         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10488         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10489         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10490
10491 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
10492
10493         [BZ #16041]
10494         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
10495         make result into a quiet NaN.
10496
10497 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
10498
10499         * soft-fp/adddf3.c: Fix horizontal whitespace.
10500         * soft-fp/addsf3.c: Likewise.
10501         * soft-fp/addtf3.c: Likewise.
10502         * soft-fp/divdf3.c: Likewise.
10503         * soft-fp/divsf3.c: Likewise.
10504         * soft-fp/divtf3.c: Likewise.
10505         * soft-fp/double.h: Likewise.
10506         * soft-fp/eqdf2.c: Likewise.
10507         * soft-fp/eqsf2.c: Likewise.
10508         * soft-fp/eqtf2.c: Likewise.
10509         * soft-fp/extenddftf2.c: Likewise.
10510         * soft-fp/extended.h: Likewise.
10511         * soft-fp/extendsfdf2.c: Likewise.
10512         * soft-fp/extendsftf2.c: Likewise.
10513         * soft-fp/extendxftf2.c: Likewise.
10514         * soft-fp/fixdfdi.c: Likewise.
10515         * soft-fp/fixdfsi.c: Likewise.
10516         * soft-fp/fixdfti.c: Likewise.
10517         * soft-fp/fixsfdi.c: Likewise.
10518         * soft-fp/fixsfsi.c: Likewise.
10519         * soft-fp/fixsfti.c: Likewise.
10520         * soft-fp/fixtfdi.c: Likewise.
10521         * soft-fp/fixtfsi.c: Likewise.
10522         * soft-fp/fixtfti.c: Likewise.
10523         * soft-fp/fixunsdfdi.c: Likewise.
10524         * soft-fp/fixunsdfsi.c: Likewise.
10525         * soft-fp/fixunsdfti.c: Likewise.
10526         * soft-fp/fixunssfdi.c: Likewise.
10527         * soft-fp/fixunssfsi.c: Likewise.
10528         * soft-fp/fixunssfti.c: Likewise.
10529         * soft-fp/fixunstfdi.c: Likewise.
10530         * soft-fp/fixunstfsi.c: Likewise.
10531         * soft-fp/fixunstfti.c: Likewise.
10532         * soft-fp/floatdidf.c: Likewise.
10533         * soft-fp/floatdisf.c: Likewise.
10534         * soft-fp/floatditf.c: Likewise.
10535         * soft-fp/floatsidf.c: Likewise.
10536         * soft-fp/floatsisf.c: Likewise.
10537         * soft-fp/floatsitf.c: Likewise.
10538         * soft-fp/floattidf.c: Likewise.
10539         * soft-fp/floattisf.c: Likewise.
10540         * soft-fp/floattitf.c: Likewise.
10541         * soft-fp/floatundidf.c: Likewise.
10542         * soft-fp/floatundisf.c: Likewise.
10543         * soft-fp/floatunditf.c: Likewise.
10544         * soft-fp/floatunsidf.c: Likewise.
10545         * soft-fp/floatunsisf.c: Likewise.
10546         * soft-fp/floatunsitf.c: Likewise.
10547         * soft-fp/floatuntidf.c: Likewise.
10548         * soft-fp/floatuntisf.c: Likewise.
10549         * soft-fp/floatuntitf.c: Likewise.
10550         * soft-fp/fmadf4.c: Likewise.
10551         * soft-fp/fmasf4.c: Likewise.
10552         * soft-fp/fmatf4.c: Likewise.
10553         * soft-fp/gedf2.c: Likewise.
10554         * soft-fp/gesf2.c: Likewise.
10555         * soft-fp/getf2.c: Likewise.
10556         * soft-fp/ledf2.c: Likewise.
10557         * soft-fp/lesf2.c: Likewise.
10558         * soft-fp/letf2.c: Likewise.
10559         * soft-fp/muldf3.c: Likewise.
10560         * soft-fp/mulsf3.c: Likewise.
10561         * soft-fp/multf3.c: Likewise.
10562         * soft-fp/negdf2.c: Likewise.
10563         * soft-fp/negsf2.c: Likewise.
10564         * soft-fp/negtf2.c: Likewise.
10565         * soft-fp/op-1.h: Likewise.
10566         * soft-fp/op-2.h: Likewise.
10567         * soft-fp/op-4.h: Likewise.
10568         * soft-fp/op-8.h: Likewise.
10569         * soft-fp/op-common.h: Likewise.
10570         * soft-fp/quad.h: Likewise.
10571         * soft-fp/single.h: Likewise.
10572         * soft-fp/soft-fp.h: Likewise.
10573         * soft-fp/sqrtdf2.c: Likewise.
10574         * soft-fp/sqrtsf2.c: Likewise.
10575         * soft-fp/sqrttf2.c: Likewise.
10576         * soft-fp/subdf3.c: Likewise.
10577         * soft-fp/subsf3.c: Likewise.
10578         * soft-fp/subtf3.c: Likewise.
10579         * soft-fp/truncdfsf2.c: Likewise.
10580         * soft-fp/trunctfdf2.c: Likewise.
10581         * soft-fp/trunctfsf2.c: Likewise.
10582         * soft-fp/trunctfxf2.c: Likewise.
10583         * soft-fp/unorddf2.c: Likewise.
10584         * soft-fp/unordsf2.c: Likewise.
10585         * soft-fp/unordtf2.c: Likewise.
10586
10587 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
10588
10589         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
10590         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
10591
10592 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
10593
10594         * elf/dl-libc.c: Clear initfini list after freeing.
10595
10596 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
10597
10598         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
10599         * soft-fp/addsf3.c: Likewise.
10600         * soft-fp/addtf3.c: Likewise.
10601         * soft-fp/divdf3.c: Likewise.
10602         * soft-fp/divsf3.c: Likewise.
10603         * soft-fp/divtf3.c: Likewise.
10604         * soft-fp/double.h: Likewise.
10605         * soft-fp/eqdf2.c: Likewise.
10606         * soft-fp/eqsf2.c: Likewise.
10607         * soft-fp/eqtf2.c: Likewise.
10608         * soft-fp/extenddftf2.c: Likewise.
10609         * soft-fp/extended.h: Likewise.
10610         * soft-fp/extendsfdf2.c: Likewise.
10611         * soft-fp/extendsftf2.c: Likewise.
10612         * soft-fp/extendxftf2.c: Likewise.
10613         * soft-fp/fixdfdi.c: Likewise.
10614         * soft-fp/fixdfsi.c: Likewise.
10615         * soft-fp/fixdfti.c: Likewise.
10616         * soft-fp/fixsfdi.c: Likewise.
10617         * soft-fp/fixsfsi.c: Likewise.
10618         * soft-fp/fixsfti.c: Likewise.
10619         * soft-fp/fixtfdi.c: Likewise.
10620         * soft-fp/fixtfsi.c: Likewise.
10621         * soft-fp/fixtfti.c: Likewise.
10622         * soft-fp/fixunsdfdi.c: Likewise.
10623         * soft-fp/fixunsdfsi.c: Likewise.
10624         * soft-fp/fixunsdfti.c: Likewise.
10625         * soft-fp/fixunssfdi.c: Likewise.
10626         * soft-fp/fixunssfsi.c: Likewise.
10627         * soft-fp/fixunssfti.c: Likewise.
10628         * soft-fp/fixunstfdi.c: Likewise.
10629         * soft-fp/fixunstfsi.c: Likewise.
10630         * soft-fp/fixunstfti.c: Likewise.
10631         * soft-fp/floatdidf.c: Likewise.
10632         * soft-fp/floatdisf.c: Likewise.
10633         * soft-fp/floatditf.c: Likewise.
10634         * soft-fp/floatsidf.c: Likewise.
10635         * soft-fp/floatsisf.c: Likewise.
10636         * soft-fp/floatsitf.c: Likewise.
10637         * soft-fp/floattidf.c: Likewise.
10638         * soft-fp/floattisf.c: Likewise.
10639         * soft-fp/floattitf.c: Likewise.
10640         * soft-fp/floatundidf.c: Likewise.
10641         * soft-fp/floatundisf.c: Likewise.
10642         * soft-fp/floatunsidf.c: Likewise.
10643         * soft-fp/floatunsisf.c: Likewise.
10644         * soft-fp/floatuntidf.c: Likewise.
10645         * soft-fp/floatuntisf.c: Likewise.
10646         * soft-fp/floatuntitf.c: Likewise.
10647         * soft-fp/fmadf4.c: Likewise.
10648         * soft-fp/fmasf4.c: Likewise.
10649         * soft-fp/fmatf4.c: Likewise.
10650         * soft-fp/gedf2.c: Likewise.
10651         * soft-fp/gesf2.c: Likewise.
10652         * soft-fp/getf2.c: Likewise.
10653         * soft-fp/ledf2.c: Likewise.
10654         * soft-fp/lesf2.c: Likewise.
10655         * soft-fp/letf2.c: Likewise.
10656         * soft-fp/muldf3.c: Likewise.
10657         * soft-fp/mulsf3.c: Likewise.
10658         * soft-fp/multf3.c: Likewise.
10659         * soft-fp/negdf2.c: Likewise.
10660         * soft-fp/negsf2.c: Likewise.
10661         * soft-fp/negtf2.c: Likewise.
10662         * soft-fp/op-1.h: Likewise.
10663         * soft-fp/op-2.h: Likewise.
10664         * soft-fp/op-4.h: Likewise.
10665         * soft-fp/op-8.h: Likewise.
10666         * soft-fp/op-common.h: Likewise.
10667         * soft-fp/quad.h: Likewise.
10668         * soft-fp/single.h: Likewise.
10669         * soft-fp/soft-fp.h: Likewise.
10670         * soft-fp/sqrtdf2.c: Likewise.
10671         * soft-fp/sqrtsf2.c: Likewise.
10672         * soft-fp/sqrttf2.c: Likewise.
10673         * soft-fp/subdf3.c: Likewise.
10674         * soft-fp/subsf3.c: Likewise.
10675         * soft-fp/subtf3.c: Likewise.
10676         * soft-fp/truncdfsf2.c: Likewise.
10677         * soft-fp/trunctfdf2.c: Likewise.
10678         * soft-fp/trunctfsf2.c: Likewise.
10679         * soft-fp/trunctfxf2.c: Likewise.
10680         * soft-fp/unorddf2.c: Likewise.
10681         * soft-fp/unordsf2.c: Likewise.
10682         * soft-fp/unordtf2.c: Likewise.
10683
10684 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
10685
10686         [BZ #15672]
10687         * misc/error.c (error_tail): Fix possible buffer overflow.
10688
10689 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
10690
10691         [BZ #13028]
10692         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
10693         address.
10694
10695 2013-10-14  P. J. McDermott  <pj@pehjota.net>
10696
10697         [BZ #832]
10698         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
10699         testing pipefail option.
10700
10701 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
10702
10703         * soft-fp/double.h: Indent preprocessor directives inside #if.
10704         * soft-fp/extended.h: Likewise.
10705         * soft-fp/op-2.h: Likewise.
10706         * soft-fp/op-4.h: Likewise.
10707         * soft-fp/op-common.h: Likewise.
10708         * soft-fp/quad.h: Likewise.
10709         * soft-fp/single.h: Likewise.
10710         * soft-fp/soft-fp.h: Likewise.
10711
10712 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
10713
10714         * iconv/iconv_prog.c: Fix typos.
10715         * stdio-common/psiginfo-data.h: Likewise.
10716
10717 2013-10-12   Reuben Thomas <rrt@sc3d.org>
10718
10719         [BZ #15764]
10720         * locale/setlocale.c: Fix typo.
10721
10722 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
10723
10724         [BZ #16036]
10725         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
10726         signaling NaN arguments.
10727         * soft-fp/unordsf2.c (__unordsf2): Likewise.
10728         * soft-fp/unordtf2.c (__unordtf2): Likewise.
10729
10730         [BZ #14910]
10731         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
10732         unordered operands.
10733         * soft-fp/gesf2.c (__gesf2): Likewise.
10734         * soft-fp/getf2.c (__getf2): Likewise.
10735         * soft-fp/ledf2.c (__ledf2): Likewise.
10736         * soft-fp/lesf2.c (__lesf2): Likewise.
10737         * soft-fp/letf2.c (__letf2): Likewise.
10738
10739         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
10740         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10741         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10742         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
10743         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
10744         * soft-fp/fixdfti.c (__fixdfti): Likewise.
10745         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
10746         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
10747         * soft-fp/fixsfti.c (__fixsfti): Likewise.
10748         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
10749         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
10750         * soft-fp/fixtfti.c (__fixtfti): Likewise.
10751         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
10752         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
10753         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
10754         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
10755         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
10756         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
10757         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
10758         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
10759         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
10760         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
10761         * soft-fp/floatdisf.c (__floatdisf): Likewise.
10762         * soft-fp/floatsisf.c (__floatsisf): Likewise.
10763         * soft-fp/floattidf.c (__floattidf): Likewise.
10764         * soft-fp/floattisf.c (__floattisf): Likewise.
10765         * soft-fp/floattitf.c (__floattitf): Likewise.
10766         * soft-fp/floatundidf.c (__floatundidf): Likewise.
10767         * soft-fp/floatundisf.c (__floatundisf): Likewise.
10768         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
10769         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
10770         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
10771         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
10772         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
10773         * soft-fp/gesf2.c (__gesf2): Likewise.
10774         * soft-fp/getf2.c (__getf2): Likewise.
10775         * soft-fp/ledf2.c (__ledf2): Likewise.
10776         * soft-fp/lesf2.c (__lesf2): Likewise.
10777         * soft-fp/letf2.c (__letf2): Likewise.
10778
10779         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
10780         Undefine and redefine.
10781         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
10782         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
10783         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
10784         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
10785         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10786         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
10787         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10788         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
10789         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10790         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
10791         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10792         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
10793         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10794         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
10795         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10796
10797         [BZ #16032]
10798         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
10799         without decrementing exponent if mantissa >= that for the
10800         denominator, not >.
10801         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
10802         denominator, not >.  Decrement exponent in < case instead of
10803         incrementing in >= case.
10804         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
10805         without decrementing exponent if mantissa >= that for the
10806         denominator, not >.
10807
10808         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
10809         computing saturated result for unsigned overflow.
10810
10811 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10812             Jeff Law  <law@redhat.com>
10813
10814         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
10815         (atan2Mp): Add systemtap probe marker.
10816         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
10817         (__ieee754_log): Add systemtap probe marker.
10818         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
10819         (atanMp): Add systemtap probe marker.
10820         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
10821         (tanMp): Add systemtap probe marker.
10822         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
10823         (__slowexp): Add systemtap probe marker.
10824         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
10825         (__slowpow): Add systemtap probe marker.
10826         * manual/probes.texi: Document probes.
10827
10828 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
10829
10830         [BZ #15362]
10831         * libio/fileops.c (_IO_new_file_write): Return count of bytes
10832         written.
10833         (_IO_new_file_xsputn): Don't return EOF if nothing has been
10834         written.
10835         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
10836         written to buffer but not flushed.
10837         * libio/iofwrite_u.c:  Likewise.
10838         * libio/iopadn.c:  Return bytes returned even if EOF was
10839         encountered.
10840         * libio/iowpadn.c:  Likewise.
10841         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
10842         if _IO_padn does not write the whole buffer.
10843         [!COMPILE_WPRINTF] (PAD): Likewise.
10844
10845 2013-10-10  David S. Miller  <davem@davemloft.net>
10846
10847         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
10848         directory block.
10849
10850 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
10851
10852         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
10853         instead of FSF address.
10854         * soft-fp/fixdfti.c: Likewise.
10855         * soft-fp/fixsfti.c: Likewise.
10856         * soft-fp/fixtfti.c: Likewise.
10857         * soft-fp/fixunsdfti.c: Likewise.
10858         * soft-fp/fixunssfti.c: Likewise.
10859         * soft-fp/fixunstfti.c: Likewise.
10860         * soft-fp/floattidf.c: Likewise.
10861         * soft-fp/floattisf.c: Likewise.
10862         * soft-fp/floattitf.c: Likewise.
10863         * soft-fp/floatuntidf.c: Likewise.
10864         * soft-fp/floatuntisf.c: Likewise.
10865         * soft-fp/floatuntitf.c: Likewise.
10866         * soft-fp/trunctfxf2.c: Likewise.
10867
10868         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
10869         * soft-fp/fixdfti.c: Likewise.
10870         * soft-fp/fixsfti.c: Likewise.
10871         * soft-fp/fixtfti.c: Likewise.
10872         * soft-fp/fixunsdfti.c: Likewise.
10873         * soft-fp/fixunssfti.c: Likewise.
10874         * soft-fp/fixunstfti.c: Likewise.
10875         * soft-fp/floattidf.c: Likewise.
10876         * soft-fp/floattisf.c: Likewise.
10877         * soft-fp/floattitf.c: Likewise.
10878         * soft-fp/floatuntidf.c: Likewise.
10879         * soft-fp/floatuntisf.c: Likewise.
10880         * soft-fp/floatuntitf.c: Likewise.
10881         * soft-fp/trunctfxf2.c: Likewise.
10882
10883 2013-10-10  David S. Miller  <davem@davemloft.net>
10884
10885         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10886
10887 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
10888
10889         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
10890         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
10891         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
10892         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
10893         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
10894         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
10895         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
10896
10897         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
10898         for NaNs before doing comparisons on argument.
10899         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
10900         Likewise.
10901
10902 2013-10-10  Will Newton  <will.newton@linaro.org>
10903
10904         * malloc/hooks.c (memalign_check): Ensure the value of bytes
10905         passed to _int_memalign does not overflow.
10906
10907 2013-10-10  Torvald Riegel  <triegel@redhat.com>
10908
10909         * scripts/bench.pl: Add include-sources directive.
10910         * benchtests/README: Update documentation.
10911
10912 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
10913
10914         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
10915         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
10916         instead of FP_INIT_ROUNDMODE.
10917         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
10918         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
10919
10920         [BZ #16034]
10921         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
10922         copy class of input value.
10923         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
10924         not handle exceptions.
10925         * soft-fp/negsf2.c (__negsf2): Likewise.
10926         * soft-fp/negtf2.c (__negtf2): Likewise.
10927         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
10928
10929 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
10930
10931         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
10932         semicolon.  From Linux kernel.
10933
10934 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
10935
10936         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
10937
10938 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
10939
10940         [BZ #156]
10941         * manual/socket.texi: Added statement about buffer
10942         for gethostbyname2_r.
10943
10944 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
10945
10946         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
10947         Use .p2align directive instead, throughout.
10948         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
10949         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
10950         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
10951         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
10952         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10953         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
10954         * sysdeps/x86_64/strchr.S: Likewise.
10955         * sysdeps/x86_64/strrchr.S: Likewise.
10956
10957 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
10958
10959         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
10960
10961         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
10962
10963         * sysdeps/generic/math_private.h (__mpsin1): Remove
10964         declaration.
10965         (__mpcos1): Likewise.
10966         (__mpsin): New argument __range_reduce.
10967         (__mpcos): Likewise.
10968         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10969         (slow): Use __mpsin and __mpcos.
10970         (slow1): Likewise.
10971         (slow2): Likewise.
10972         (sloww): Likewise.
10973         (sloww1): Likewise.
10974         (sloww2): Likewise.
10975         (bsloww): Likewise.
10976         (bsloww1): Likewise.
10977         (bsloww2): Likewise.
10978         (cslow2): Likewise.
10979         (csloww): Likewise.
10980         (csloww1): Likewise.
10981         (csloww2): Likewise.
10982         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
10983         range_reduce.  Merge in __mpsin1.
10984         (__mpcos): Likewise.
10985         (__mpsin1): Remove.
10986         (__mpcos1): Likewise.
10987
10988 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
10989
10990         * locale/loadlocale.c (_nl_intern_locale_data): Use
10991         LOCFILE_ALIGNED_P.
10992         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
10993         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
10994         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
10995         obstack data is appropriately aligned.
10996         (obstack_int32_grow_fast): Likewise.
10997         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
10998         * locale/programs/locfile.c (add_locale_uint32): Likewise.
10999         (add_locale_uint32_array): Likewise.
11000
11001 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
11002
11003         * benchtests/Makefile: Remove ARGLIST and RET variables.
11004         ($(objpfx)bench-%.c): Pass only function name to the script.
11005         * benchtests/README: Update documentation.
11006         * benchtests/acos-inputs: Add new directives.
11007         * benchtests/acosh-inputs: Likewise.
11008         * benchtests/asin-inputs: Likewise.
11009         * benchtests/asinh-inputs: Likewise.
11010         * benchtests/atan-inputs: Likewise.
11011         * benchtests/atanh-inputs: Likewise.
11012         * benchtests/cos-inputs: Likewise.
11013         * benchtests/cosh-inputs: Likewise.
11014         * benchtests/exp-inputs: Likewise.
11015         * benchtests/log-inputs: Likewise.
11016         * benchtests/pow-inputs: Likewise.
11017         * benchtests/rint-inputs: Likewise.
11018         * benchtests/sin-inputs: Likewise.
11019         * benchtests/sinh-inputs: Likewise.
11020         * benchtests/tan-inputs: Likewise.
11021         * benchtests/tanh-inputs: Likewise.
11022         * scripts/bench.pl: Add support for new directives.
11023
11024 2013-10-07  Alan Modra  <amodra@gmail.com>
11025
11026         * README: Fix careless merge.
11027
11028 2013-10-05  Alan Modra  <amodra@gmail.com>
11029
11030         * NEWS: Mention powerpc64le support and bugs fixed.
11031         * README: Both big-endian and little-endian powerpc64 supported.
11032
11033 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11034
11035         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
11036         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
11037         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
11038         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
11039
11040 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
11041
11042         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
11043         match prototype.
11044
11045 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
11046
11047         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
11048         Move -mhard-float appending from
11049         ports/sysdeps/powerpc/powerpc32/Makefile.
11050         [$(with-fp) = yes] (ASFLAGS): Likewise.
11051         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
11052         * sysdeps/powerpc/nofpu: Move directory from
11053         ports/sysdeps/powerpc/nofpu.
11054         * sysdeps/powerpc/soft-fp: Move directory from
11055         ports/sysdeps/powerpc/soft-fp.
11056         * sysdeps/powerpc/powerpc32/405: Move directory from
11057         ports/sysdeps/powerpc/powerpc32/405.
11058         * sysdeps/powerpc/powerpc32/440: Move directory from
11059         ports/sysdeps/powerpc/powerpc32/440.
11060         * sysdeps/powerpc/powerpc32/464: Move directory from
11061         ports/sysdeps/powerpc/powerpc32/464.
11062         * sysdeps/powerpc/powerpc32/476: Move directory from
11063         ports/sysdeps/powerpc/powerpc32/476.
11064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
11065         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
11066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
11067         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
11068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
11069         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
11070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
11071         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
11072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
11073         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
11074         * README: Update for powerpc-*-linux-gnu software floating point
11075         support in libc.
11076
11077         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
11078         case to powerpc/powerpc32*.
11079         * sysdeps/unix/sysv/linux/configure: Regenerated.
11080
11081         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
11082         (_FPU_MASK_OM): Define as 0x04.
11083         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
11084         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
11085         0x00c10080.
11086         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
11087         0x0000003c.
11088         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
11089
11090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
11091         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
11092         getcontext_e500.
11093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
11094         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
11095         setcontext_e500.
11096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
11097         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
11098         and setcontext_e500.
11099
11100 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
11101
11102         * locale/iso-3166.def: Update iso-1366.def and related occurrences
11103
11104 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11105
11106         * manual/threads.texi (Default Thread Attributes): Fix typo.
11107
11108 2013-10-04  Will Newton  <will.newton@linaro.org>
11109
11110         * malloc/Makefile: Add tst-memalign.
11111         * malloc/tst-memalign.c: New file.
11112
11113         * malloc/tst-posix_memalign.c: Add comments.
11114         (do_test): Add comments and call free on all potentially
11115         allocated pointers. Add space after cast.
11116
11117         * malloc/tst-pvalloc.c: Add comments.
11118         (do_test): Add comments and call free on all potentially
11119         allocated pointers. Remove duplicate check for NULL pointer.
11120         Add space after cast.
11121
11122         * malloc/tst-valloc.c: Add comments.
11123         (do_test): Add comments and call free on all potentially
11124         allocated pointers. Remove duplicate check for NULL pointer.
11125         Add space after cast.
11126
11127 2013-10-04  Alan Modra  <amodra@gmail.com>
11128
11129         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
11130         Use stdint types in rather than __attribute__((mode())).
11131         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
11132
11133 2013-10-04  Alan Modra  <amodra@gmail.com>
11134
11135         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
11136         Correct handling of unaligned relocs for little-endian.
11137         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
11138
11139 2013-10-04  Alan Modra  <amodra@gmail.com>
11140
11141         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
11142         * configure: Regenerate.
11143         * nptl/shlib-versions: Powerpc*le starts at 2.18.
11144         * shlib-versions: Likewise.
11145
11146 2013-10-04  Alan Modra  <amodra@gmail.com>
11147
11148         * string/tester.c (test_memrchr): Increment reported test cycle.
11149
11150 2013-10-04  Alan Modra  <amodra@gmail.com>
11151
11152         * string/test-memcpy.c (do_one_test): When reporting errors, print
11153         string address and don't overrun end of string.
11154
11155 2013-10-04  Alan Modra  <amodra@gmail.com>
11156
11157         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
11158         insrdi.  Make better use of reg selection to speed exit slightly.
11159         Schedule entry path a little better.  Remove useless "are we done"
11160         checks on entry to main loop.  Handle wrapping around zero address.
11161         Correct main loop count.  Handle single left-over word from main
11162         loop inline rather than by using loop_small.  Remove extra word
11163         case in loop_small caused by wrong loop count.  Add little-endian
11164         support.
11165         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
11166         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
11167         cache hint.
11168         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
11169         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
11170         support.  Avoid rlwimi.
11171         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
11172
11173 2013-10-04  Alan Modra  <amodra@gmail.com>
11174
11175         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
11176         insrdi.  Formatting.
11177         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
11178         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
11179         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
11180         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
11181         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
11182         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
11183
11184 2013-10-04  Alan Modra  <amodra@gmail.com>
11185
11186         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
11187         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
11188         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
11189         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
11190         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
11191         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
11192         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
11193         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
11194         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
11195         use of regs.  Use power7 mtocrf.  Tidy function tails.
11196
11197 2013-10-04  Alan Modra  <amodra@gmail.com>
11198
11199         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
11200         Formatting.  Consistently use rXXX register defines or rN defines.
11201         Use early exit labels that avoid restoring unused non-volatile regs.
11202         Make cr field use more consistent with rWORDn compares.  Rename
11203         regs used as shift registers for unaligned loop, using rN defines
11204         for short lifetime/multiple use regs.
11205         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
11206         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
11207         addi 1,1,64 to pop stack frame.  Simplify return value code.
11208         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
11209
11210 2013-10-04  Alan Modra  <amodra@gmail.com>
11211
11212         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
11213         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
11214         rather than rlwimi.
11215         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
11216         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
11217         little-endian support.  Correct typos.
11218         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
11219         rather than rlwimi.
11220         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
11221         in loop and entry code to keep "and." results.
11222         (strchr): Add little-endian support.  Comment.  Move cntlzd
11223         earlier in tail.
11224         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
11225
11226 2013-10-04  Alan Modra  <amodra@gmail.com>
11227
11228         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
11229         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
11230         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
11231         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
11232
11233 2013-10-04  Alan Modra  <amodra@gmail.com>
11234
11235         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
11236         (rTMP): Define as r11.
11237         (strcmp): Add little-endian support.  Optimise tail.
11238         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
11239         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
11240         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
11241         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
11242         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
11243         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11244         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
11245
11246 2013-10-04  Alan Modra  <amodra@gmail.com>
11247
11248         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
11249         little-endian support.  Remove unnecessary "are we done" tests.
11250         Handle "s" wrapping around zero and extremely large "size".
11251         Correct main loop count.  Handle single left-over word from main
11252         loop inline rather than by using small_loop.  Correct comments.
11253         Delete "zero" tail, use "end_max" instead.
11254         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
11255
11256 2013-10-04  Alan Modra  <amodra@gmail.com>
11257
11258         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
11259         support.  Don't branch over align.
11260         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
11261         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
11262         support.  Rearrange tmp reg use to suit.  Comment.
11263         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
11264
11265 2013-10-04  Alan Modra  <amodra@gmail.com>
11266
11267         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
11268
11269 2013-10-04  Alan Modra  <amodra@gmail.com>
11270
11271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
11272         conditional form of branch and link when obtaining pc.
11273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
11274
11275 2013-10-04  Alan Modra  <amodra@gmail.com>
11276
11277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
11278         HIWORD/LOWORD.
11279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
11280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
11281
11282 2013-10-04  Alan Modra  <amodra@gmail.com>
11283
11284         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
11285         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
11286         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
11287         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
11288         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11289         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
11290         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
11291         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
11292         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
11293         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
11294
11295 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
11296             Alistair Popple <alistair@ozlabs.au.ibm.com>
11297             Alan Modra <amodra@gmail.com>
11298
11299         [BZ #15723]
11300         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
11301         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
11302         _dl_hwcap access for little-endian.
11303         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
11304         destroy vmx regs when saving unaligned.
11305         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
11306         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
11307         destroy vmx regs when saving unaligned.
11308
11309 2013-10-04  Alan Modra  <amodra@gmail.com>
11310
11311         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
11312         Don't use a union to pack hi/low value.
11313
11314 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
11315
11316         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
11317         for little-endian.
11318         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
11319         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
11320         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
11321         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
11322         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
11323
11324 2013-10-04  Alan Modra  <amodra@gmail.com>
11325
11326         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
11327         constants to usual value for .cst8 section, and remove redundant
11328         high address load.
11329         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
11330         constant for 0x1p52.  Load little-endian words of double from
11331         correct stack offsets.
11332
11333 2013-10-04  Alan Modra  <amodra@gmail.com>
11334
11335         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
11336         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
11337         words of double from correct stack offsets.
11338         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
11339         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
11340         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
11341         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
11342         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
11343         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
11344         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
11345         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
11346         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
11347         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
11348         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
11349         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
11350         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
11351         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
11352         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
11353         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
11354         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
11355
11356 2013-10-04  Alan Modra  <amodra@gmail.com>
11357
11358         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
11359         64-bit int/double union.
11360         (_FPU_SETCW): Likewise.
11361         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
11362         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
11363
11364 2013-10-04  Alan Modra  <amodra@gmail.com>
11365
11366         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
11367         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
11368
11369 2013-10-04  Alan Modra  <amodra@gmail.com>
11370
11371         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
11372         use vector int constants.
11373         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
11374
11375 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
11376
11377         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
11378         array with long long.
11379         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
11380         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
11381         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
11382         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
11383         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
11384         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
11385         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
11386         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
11387         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
11388         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
11389         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
11390         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
11391         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
11392
11393 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
11394
11395         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
11396         (__signbit): Likewise.  Correct for little-endian.
11397         (__signbitl): Call __signbit.
11398         (lrint): Correct for little-endian.
11399         (lrintf): Call lrint.
11400
11401 2013-10-04  Alan Modra  <amodra@gmail.com>
11402
11403         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
11404         union 32-bit int array member with 64-bit int array.
11405         (t515, tm256): Double rather than long double.
11406         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
11407
11408 2013-10-04  Alan Modra  <amodra@gmail.com>
11409
11410         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
11411         Delete.
11412         (IEEE854_LONG_DOUBLE_BIAS): Delete.
11413         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
11414         version of math_ldbl.h.
11415
11416 2013-10-04  Alan Modra  <amodra@gmail.com>
11417
11418         [BZ #15734], [BZ #15735]
11419         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
11420         all uses of ieee875 long double macros and unions.  Simplify test
11421         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
11422         ldbl_extract_mantissa value for ix,iy exponents.  Properly
11423         normalize after ldbl_extract_mantissa, and don't add hidden bit
11424         already handled.  Don't treat low word of ieee854 mantissa like
11425         low word of IBM long double and mask off bit when testing for
11426         zero.
11427         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
11428         all uses of ieee875 long double macros and unions.  Simplify tests
11429         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
11430         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
11431         two1022, instead use their values.  Recognise that tests for large
11432         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
11433         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
11434         Rewrite all uses of ieee875 long double macros and unions.  Simplify
11435         test for 0.0L and nan.  Correct negation.
11436         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
11437         ieee875 long double macros and unions.  Correct output for large
11438         magnitude x.  Correct absolute value calculation.
11439         (__erfcl): Likewise.
11440         * math/libm-test.inc: Add tests for errors discovered in IBM long
11441         double versions of fmodl, remainderl, erfl and erfcl.
11442
11443 2013-10-04  Alan Modra  <amodra@gmail.com>
11444
11445         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
11446         all uses of ieee854 long double macros and unions.  Simplify tests
11447         for long doubles that are fully specified by the high double.
11448         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11449         Likewise.
11450         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
11451         Remove dead code too.
11452         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11453         (__ieee754_ynl): Likewise.
11454         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
11455         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
11456         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
11457         Remove dead code too.
11458         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11459         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
11460         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
11461         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
11462         Simplify.
11463         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
11464         Simplify.
11465         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
11466         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
11467         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
11468         Comment on variable precision.
11469         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
11470         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11471         Likewise.
11472         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
11473         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11474         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11475         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11476         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
11477
11478 2013-10-04  Alan Modra  <amodra@gmail.com>
11479
11480         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
11481         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
11482         all uses of ieee854 long double macros and unions.
11483         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
11484         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
11485         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
11486         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
11487         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
11488         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
11489         Likewise.
11490         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
11491         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11492         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
11493         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11494         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11495         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11496         Simplify sign and nan test too.
11497         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
11498         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
11499         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
11500         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
11501         Likewise.
11502         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
11503         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
11504         Likewise.
11505         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11506         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11507         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
11508         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
11509         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
11510         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
11511
11512 2013-10-04  Alan Modra  <amodra@gmail.com>
11513
11514         * stdio-common/printf_size.c (__printf_size): Don't use
11515         union ieee854_long_double in fpnum union.
11516         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
11517         signbit macro to retrieve sign from long double.
11518         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
11519         retrieve sign from long double.
11520         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
11521         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
11522         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
11523         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11524         * math/test-misc.c (main): Don't use union ieee854_long_double.
11525
11526 2013-10-04  Alan Modra  <amodra@gmail.com>
11527
11528         [BZ #15680]
11529         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
11530         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
11531         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
11532         calculation.  Remove unnecessary test for denormal exponent.
11533         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
11534         Correct handling of denormals.  Avoid undefined shift behaviour.
11535         Correct normalisation of low mantissa when low double is denormal.
11536         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
11537         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
11538         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
11539         Correct normalisation of low mantissa.  Test for overflow of high
11540         mantissa and normalise.
11541         (ldbl_nearbyint): Use more readable constant for two52.
11542         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
11543         (__mpn_construct_long_double): Fix test for overflow of high
11544         mantissa and correct normalisation.  Avoid undefined shift.
11545
11546 2013-10-04  Alan Modra  <amodra@gmail.com>
11547
11548         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
11549         (union ibm_extended_long_double): Define as an array of ieee754_double.
11550         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
11551         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
11552         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
11553         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
11554         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
11556         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
11557         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11559         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
11560         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
11561
11562 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
11563
11564         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
11565         page size instead of calling getpagesize.
11566
11567         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
11568         (LOCFILE_ALIGN_MASK): Likewise.
11569         (LOCFILE_ALIGN_UP): Likewise.
11570         (LOCFILE_ALIGNED_P): Likewise.
11571         * locale/programs/ld-collate.c (collate_output): Use the new
11572         macros instead of __alignof__ (int32_t).
11573         * locale/weight.h (findidx): Likewise.
11574
11575 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
11576
11577         [BZ #431]
11578         * manual/string.texi: Fix strncat and wcsncat.
11579
11580 2013-10-03  Brooks Moses  <bmoses@google.com>
11581
11582         [BZ #15915]
11583         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
11584         * Makerules: ...here, and adjust associated comments.
11585
11586 2013-10-02  Will Newton  <will.newton@linaro.org>
11587
11588         * malloc/Makefile: Add tst-pvalloc.
11589         * malloc/tst-pvalloc.c: New file.
11590
11591 2013-10-02  Will Newton  <will.newton@linaro.org>
11592
11593         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
11594         improve test coverage.
11595
11596 2013-10-02  Will Newton  <will.newton@linaro.org>
11597
11598         * malloc/Makefile: Add tst-posix_memalign.
11599         * malloc/tst-posix_memalign.c: New file.
11600
11601 2013-10-01  Eric Blake  <eblake@redhat.com>
11602
11603         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
11604         Use __THROWNL rather than __THROW on static functions.
11605
11606 2013-09-30  Petr Machata  <pmachata@redhat.com>
11607
11608         * elf/elf.h (R_AARCH64_ABS16): New macro.
11609         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
11610         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
11611         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
11612         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
11613         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
11614         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
11615         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
11616         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
11617         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
11618         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
11619         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
11620         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
11621         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
11622         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
11623         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
11624         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
11625         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
11626         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
11627         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
11628         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
11629         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
11630         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
11631         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
11632         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
11633         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
11634         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
11635         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
11636         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
11637         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
11638         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
11639         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
11640         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
11641         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
11642         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
11643         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
11644         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
11645         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
11646         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
11647         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
11648         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
11649         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
11650         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
11651         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
11652         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
11653         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
11654         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
11655         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
11656         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
11657         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
11658         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
11659         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
11660         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
11661         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
11662         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
11663         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
11664         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
11665         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
11666         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
11667         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
11668         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
11669         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
11670         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
11671         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
11672         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
11673         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
11674         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
11675         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
11676         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
11677         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
11678         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
11679         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
11680         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
11681         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
11682         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
11683         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
11684         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
11685         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
11686         (R_AARCH64_TLSDESC_LDR): Likewise.
11687         (R_AARCH64_TLSDESC_ADD): Likewise.
11688         (R_AARCH64_TLSDESC_CALL): Likewise.
11689
11690 2013-09-30  Andreas Schwab  <schwab@suse.de>
11691
11692         [BZ #15048]
11693         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
11694         the nss database lookup.
11695         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11696         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11697
11698 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
11699
11700         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
11701
11702 2013-09-28  P. J. McDermott  <pj@pehjota.net>
11703
11704         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
11705         ${Bash-specific parameter/pattern/string} parameter expansion.
11706         * sysdeps/unix/make-syscalls.sh: Likewise.
11707
11708 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11709
11710         * sysdeps/sh/stackguard-macros.h: New file.
11711
11712 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
11713
11714         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
11715         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
11716         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
11717         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
11718         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
11719         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
11720
11721 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11722
11723         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
11724         Fix thread ID register.
11725
11726 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
11727
11728         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
11729         [POSIX || UNIX98]: Require rather than permitting all symbols from
11730         <time.h>.
11731         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
11732         element of struct sched_param.
11733         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
11734         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
11735         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
11736         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
11737         constant.
11738
11739 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
11740
11741         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
11742         argument calculation.
11743
11744 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
11745
11746         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
11747         Expect macro.
11748         [POSIX] (pthread_attr_t): Do not require type.
11749         [POSIX] (pthread_cond_t): Likewise.
11750         [POSIX] (pthread_condattr_t): Likewise.
11751         [POSIX] (pthread_key_t): Likewise.
11752         [POSIX] (pthread_mutex_t): Likewise.
11753         [POSIX] (pthread_mutexattr_t): Likewise.
11754         [POSIX] (pthread_once_t): Likewise.
11755         [POSIX] (pthread_t): Likewise.
11756         [POSIX-based standards] (pthread_atfork): Expect function.
11757
11758 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
11759             Richard Sandiford  <richard@codesourcery.com>
11760
11761         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
11762         (swap_endianness_p): New extern variable.
11763         (set_big_endian): New inline function.
11764         (maybe_swap_uint32): Likewise.
11765         (maybe_swap_uint32_array): Likewise.
11766         (maybe_swap_uint32_obstack): Likewise.
11767         * locale/programs/locfile.c: Include <stdbool.h>.
11768         (swap_endianness_p): New variable.
11769         (add_locale_uint32): Call maybe_swap_uint32.
11770         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
11771         (write_locale_data): Call maybe_swap_uint32_array.
11772         * locale/programs/ld-collate.c (obstack_int32_grow): Call
11773         maybe_swap_uint32.
11774         (obstack_int32_grow_fast): Likewise.
11775         (output_weightwc): Call maybe_swap_uint32_obstack.
11776         (collate_output): Likewise.
11777         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
11778         (OPT_LITTLE_ENDIAN): Likewise.
11779         (options): Add --little-endian and --big-endian options.
11780         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
11781         * locale/programs/locarchive.c: Include "locfile.h".
11782         (GET): New macro.
11783         (SET): Likewise.
11784         (INC): Likewise.
11785         (create_archive): Use the new macros to access fields of
11786         structures directly mapped from or written to locale archives.
11787         (oldlocrecentcmp): Likewise.
11788         (enlarge_archive): Likewise.
11789         (insert_name): Likewise.
11790         (add_alias): Likewise.
11791         (add_locale): Likewise.
11792         (delete_locales_from_archive): Likewise.
11793         (show_archive_content): Likewise.
11794         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
11795         locale data.
11796
11797 2013-09-24  Roland McGrath  <roland@hack.frob.com>
11798
11799         * manual/freemanuals.texi: Updated from (newly) canonical copy at
11800         http://www.gnu.org/doc/freemanuals.texi.
11801         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
11802
11803 2013-09-24  Will Newton  <will.newton@linaro.org>
11804
11805         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
11806         macro.
11807
11808 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
11809
11810         * locale/hashval.h (compute_hashval): Interpret bytes of key as
11811         unsigned char.
11812
11813 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
11814
11815         * manual/threads.texi (POSIX Threads): Fix a typo.
11816
11817 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
11818
11819         [BZ #14547]
11820         * string/tst-strcoll-overflow.c: New test case.
11821         * string/Makefile (xtests): Add tst-strcoll-overflow.
11822         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
11823         cache if string sizes may cause integer overflow.
11824
11825         [BZ #14547]
11826         * string/strcoll_l.c (coll_seq): New members rule, idx,
11827         save_idx and back_us.
11828         (get_next_seq_nocache): New function.
11829         (do_compare_nocache): New function.
11830         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
11831         when malloc fails.
11832
11833 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
11834
11835         [BZ #15754]
11836         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
11837         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
11838         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
11839
11840         [BZ #15754]
11841         * elf/Makefile (tests): Add tst-ptrguard1.
11842         (tests-static): Add tst-ptrguard1-static.
11843         (tst-ptrguard1-ARGS): Define.
11844         (tst-ptrguard1-static-ARGS): Define.
11845         * elf/tst-ptrguard1.c: New file.
11846         * elf/tst-ptrguard1-static.c: New file.
11847         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
11848         * sysdeps/i386/stackguard-macros.h: Likewise.
11849         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
11850         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
11851         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
11852         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
11853         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
11854         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
11855
11856 2013-09-23  Hector Marco  <hecmargi@upv.es>
11857             Ismael Ripoll  <iripoll@disca.upv.es>
11858             Carlos O'Donell  <carlos@redhat.com>
11859
11860         [BZ #15754]
11861         * sysdeps/generic/stackguard-macros.h: Define
11862         __pointer_chk_guard_local and POINTER_CHK_GUARD.
11863         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
11864         Define __pointer_chk_guard_local.
11865         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
11866         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
11867
11868 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
11869
11870         [BZ #15859]
11871         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
11872
11873 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
11874
11875         * include/string.h (__ffs): Declare as hidden.
11876         * string/ffs.c (__ffs): Define as hidden.
11877         * sysdeps/i386/ffs.c (__ffs): Likewise.
11878         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
11879         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
11880         * sysdeps/s390/ffs.c (__ffs): Likewise.
11881         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
11882
11883 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
11884
11885         * NEWS: Mention malloc probes.
11886
11887         * malloc/arena.c (new_heap): New memory_heap_new probe.
11888         (grow_heap): New memory_heap_more probe.
11889         (shrink_heap): New memory_heap_less probe.
11890         (heap_trim): New memory_heap_free probe.
11891         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
11892         (systrim): New memory_sbrk_less probe.
11893         * manual/probes.texi: Document them.
11894
11895         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
11896         * manual/probes.texi: Document it.
11897
11898         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
11899         (__libc_realloc): Add memory_realloc_retry probe.
11900         (__libc_memalign): Add memory_memalign_retry probe.
11901         (__libc_valloc): Add memory_valloc_retry probe.
11902         (__libc_pvalloc): Add memory_pvalloc_retry probe.
11903         (__libc_calloc): Add memory_calloc_retry probe.
11904         * manual/probes.texi: Document them.
11905
11906         * malloc/arena.c (get_free_list): Add probe
11907         memory_arena_reuse_free_list.
11908         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
11909         and memory_arena_reuse.
11910         (arena_get2) [!PER_THREAD]: Likewise.
11911         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
11912         memory_arena_reuse_realloc.
11913         * manual/probes.texi: Document them.
11914
11915         * malloc/malloc.c (__libc_free): Add
11916         memory_mallopt_free_dyn_thresholds probe.
11917         (__libc_mallopt): Add multiple memory_mallopt probes.
11918         * manual/probes.texi: Document them.
11919
11920         * malloc/malloc.c: Include stap-probe.h.
11921         (__libc_mallopt): Add memory_mallopt probe.
11922         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
11923         * manual/probes.texi: New.
11924         * manual/Makefile (chapters): Add probes.
11925         * manual/threads.texi: Set next node.
11926
11927 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
11928
11929         [BZ #15963, #13985]
11930         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
11931         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
11932         Add `Chinese' to `nan' entry name.
11933
11934 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11935
11936         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
11937         (POLYNOMIAL): Likewise.
11938         (TAYLOR_SINCOS): Likewise.
11939         (TAYLOR_SLOW): Likewise.
11940         (__sin): Use TAYLOR_SINCOS.
11941         (__cos): Likewise.
11942         (slow): Use TAYLOR_SLOW.
11943         (sloww): Likewise.
11944         (bsloww): Likewise.
11945         (csloww): Likewise.
11946
11947 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11948
11949         * stdlib/strtod_l.c: Fix buffer overrun.
11950
11951 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11952
11953         * benchtests/Makefile (bench): Add sincos.
11954         * benchtests/bench-sincos.c: New file.
11955
11956         * math/libm-test.inc (cos_test_data): New test inputs.
11957         (sin_test_data): Likewise.
11958
11959         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
11960         macro.
11961         (__sin): Use it.
11962         (__cos): Likewise.
11963         (slow1): Likewise.
11964         (slow2): Likewise.
11965         (sloww1): Likewise.
11966         (sloww2): Likewise.
11967         (bsloww1): Likewise.
11968         (bsloww2): Likewise.
11969         (cslow2): Likewise.
11970         (csloww1): Likewise.
11971         (csloww2): Likewise.
11972
11973         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
11974         function.
11975         (__sin): Use it.
11976         (__cos): Likewise.
11977
11978         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
11979         gotos.
11980         (__cos): Likewise.
11981
11982 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
11983
11984         * config.h.in (HAVE_MIPS_NAN2008): New macro.
11985         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
11986         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
11987         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
11988         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
11989         * elf/cache.c (print_entry): Handle the new cache flags.
11990
11991 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
11992             Aldy Hernandez  <aldyh@redhat.com>
11993
11994         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
11995         Change condition to [_SOFT_FLOAT].
11996         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
11997         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
11998         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
11999         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
12000         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
12001         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
12002         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
12003         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
12004         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
12005         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
12006         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
12007         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
12008         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
12009         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
12010         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
12011         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
12012         declaration.
12013
12014 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
12015
12016         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
12017         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
12018         (__longjmp): Use LOAD_GP to load saved GPRs.
12019         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
12020         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
12021         (__sigsetjmp): Use SAVE_GP to save GPRs.
12022
12023         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
12024         Do not append -msoft-float.
12025         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
12026
12027 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12028
12029         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
12030
12031 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
12032
12033         [BZ #15966]
12034         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
12035         (_FPU_GETCW): Use initial "__" on variable and field names but not
12036         on macro parameter name.
12037         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
12038         parentheses around reference to macro parameter.
12039
12040 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
12041
12042         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
12043         prototype.
12044         (ctype_startup): Use uint32_t in cast and sizeof for
12045         ctype->charnames.
12046
12047 2013-09-11  Jia Liu  <proljc@gmail.com>
12048
12049         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
12050         __daddr_t_defined.
12051         [__FreeBSD__]: Likewise.
12052
12053 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
12054
12055         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12056         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
12057         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
12058         (strchr): Remove __strchr_sse42 ifunc selection.
12059         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
12060         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
12061
12062 2013-09-11  Will Newton  <will.newton@linaro.org>
12063
12064         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
12065         parameter to RES. Remove hardcoded 1000 value.
12066         * benchtests/bench-skeleton.c (main): Pass RES parameter
12067         to TIMING_INIT and multiply result by 1000.
12068
12069 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12070
12071         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12072
12073 2013-09-11  Andreas Schwab  <schwab@suse.de>
12074
12075         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
12076         if not defined.
12077         (O_TMPFILE) [__USE_GNU]: Define.
12078         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
12079         Define.
12080
12081 2013-09-11  Will Newton  <will.newton@linaro.org>
12082
12083         [BZ #15857]
12084         * malloc/malloc.c (__libc_memalign): Check the value of bytes
12085         does not overflow.
12086
12087 2013-09-11  Will Newton  <will.newton@linaro.org>
12088
12089         [BZ #15856]
12090         * malloc/malloc.c (__libc_valloc): Check the value of bytes
12091         does not overflow.
12092
12093 2013-09-11  Will Newton  <will.newton@linaro.org>
12094
12095         [BZ #15855]
12096         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
12097         does not overflow.
12098
12099 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
12100
12101         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
12102         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12103         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12104         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12105         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12106
12107 2013-09-10  Allan McRae  <allan@archlinux.org>
12108
12109         [BZ #15748]
12110         * manual/arith.texi (Parsing of Floats): Clarify
12111         cross-reference.
12112
12113         [BZ #15849]
12114         * manual/install.texi (Running make install): Mention
12115         --enable-pt-chown.
12116         * INSTALL: Regenerated.
12117
12118 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
12119
12120         * csu/init-first.c (_init): Remove the !SHARED condition around
12121         FPU control word initialization.
12122         * elf/dl-support.c (_dl_fpu_control): New variable.
12123         (_dl_aux_init) <AT_FPUCW>: Initialize it.
12124         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
12125         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
12126         * math/test-fpucw-static.c: New file.
12127         * math/test-fpucw-ieee.c: New file.
12128         * math/test-fpucw-ieee-static.c: New file.
12129         * math/Makefile (tests): Add `test-fpucw-ieee' and
12130         `$(tests-static)'.
12131         (tests-static): New variable.
12132         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
12133         dependency to...
12134         [($(build-shared),yes)]
12135         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
12136         ... this.
12137         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
12138         New dependency.
12139
12140 2013-09-09  Allan McRae  <allan@archlinux.org>
12141
12142         [BZ #15939]
12143         * manual/string.texi (Collation Functions): Fix typo in
12144         strcoll example.
12145         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
12146
12147         [BZ #15893]
12148         * stdlib/isomac.c (get_null_defines): Fix memory leak.
12149
12150         [BZ #15892]
12151         * libio/memstream.c (open_memstream): Fix memory leak.
12152         * libio/wmemstream.c (open_wmemstream): Likewise.
12153
12154         [BZ #15895]
12155         * nscd/netgroupcache.c: Fix nesting of ifdefs.
12156
12157 2013-09-09  Will Newton  <will.newton@linaro.org>
12158
12159         * malloc/Makefile: Add tst-realloc to tests.
12160         * malloc/tst-realloc.c: New file.
12161
12162 2013-09-09  Allan McRae  <allan@archlinux.org>
12163
12164         [BZ #15844]
12165         * COPYING: Update from GNU website to fix FSF address.
12166         * COPYING.LIB: Likewise.
12167
12168 2013-09-06  David S. Miller  <davem@davemloft.net>
12169
12170         * po/zh_TW.po: Update Chinese (traditional) translation from
12171         translation project.
12172
12173 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
12174             Joseph Myers  <joseph@codesourcery.com>
12175
12176         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
12177         "localeinfo.h".
12178         (obstack_chunk_alloc): New macro.
12179         (obstack_chunk_free): Likewise.
12180         (record_offset): New function.
12181         (init_locale_data): Likewise.
12182         (align_locale_data): Likewise.
12183         (add_locale_empty): Likewise.
12184         (add_locale_raw_data): Likewise.
12185         (add_locale_raw_obstack): Likewise.
12186         (add_locale_string): Likewise.
12187         (add_locale_wstring): Likewise.
12188         (add_locale_uint32): Likewise.
12189         (add_locale_uint32_array): Likewise.
12190         (add_locale_char): Likewise.
12191         (start_locale_structure): Likewise.
12192         (end_locale_structure): Likewise.
12193         (start_locale_prelude): Likewise.
12194         (end_locale_prelude): Likewise.
12195         (write_locale_data): Take locale_file structure rather than an
12196         iovec.
12197         * locale/programs/locfile.h: Include "obstack.h".
12198         (struct locale_file): Change to store locale file contents instead
12199         of header.
12200         (init_locale_data): New prototype.
12201         (align_locale_data): Likewise.
12202         (add_locale_empty): Likewise.
12203         (add_locale_raw_data): Likewise.
12204         (add_locale_raw_obstack): Likewise.
12205         (add_locale_string): Likewise.
12206         (add_locale_wstring): Likewise.
12207         (add_locale_uint32): Likewise.
12208         (add_locale_uint32_array): Likewise.
12209         (add_locale_char): Likewise.
12210         (start_locale_structure): Likewise.
12211         (end_locale_structure): Likewise.
12212         (start_locale_prelude): Likewise.
12213         (end_locale_prelude): Likewise.
12214         (write_locale_data): Update prototype.
12215         * locale/programs/3level.h (struct TABLE): Remove result field.
12216         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
12217         Use new locale_file interface.
12218         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
12219         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
12220         * locale/programs/ld-address.c (address_output): Use new
12221         locale_file interface.
12222         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
12223         NO_ADD_LOCALE.
12224         (collate_finish): Don't call collseq_table_finalize.
12225         (collate_output): Use new locale_file interface.
12226         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
12227         in file.
12228         (NO_FINALIZE): Change to NO_ADD_LOCALE.
12229         (TABLE): Move defines earlier in file.
12230         (ELEMENT): Likewise.
12231         (DEFAULT): Likewise.
12232         (wctrans_table_add): Move macro and inline function earlier in
12233         file.
12234         (struct wctype_table): Move type earlier in file.
12235         (add_locale_wctype_table): New static prototype.
12236         (struct locale_ctype_t): Use logical types instead of struct iovec
12237         pointers for members.
12238         (ctype_output): Use new locale_file interface.
12239         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
12240         new locale_file interface.
12241         (allocate_arrays): Update for use of new locale_file interface.
12242         * locale/programs/ld-identification.c (identification_output): Use
12243         new locale_file interface.
12244         * locale/programs/ld-measurement.c (measurement_output): Likewise.
12245         * locale/programs/ld-messages.c (messages_output): Likewise.
12246         * locale/programs/ld-monetary.c (monetary_output): Likewise.
12247         * locale/programs/ld-name.c (name_output): Likewise.
12248         * locale/programs/ld-numeric.c (numeric_output): Likewise.
12249         * locale/programs/ld-paper.c (paper_output): Likewise.
12250         * locale/programs/ld-telephone.c (telephone_output): Likewise.
12251         * locale/programs/ld-time.c (time_output): Likewise.
12252
12253 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12254
12255         * benchtests/Makefile: Add memrchr benchmark.
12256         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
12257         benchmark as memrchr.
12258         * benchtests/bench-memrchr-ifunc.c: New file.
12259         * benchtests/bench-memrchr.c: New file.
12260
12261 2013-09-06   Will Newton  <will.newton@linaro.org>
12262
12263         * benchtests/Makefile (string-bench): Add memcpy.
12264
12265 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
12266             Cong Wang  <amwang@redhat.com>
12267
12268         [BZ #15850]
12269         * sysdeps/unix/sysv/linux/bits/in.h
12270         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
12271         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
12272         before __USE_KERNEL_IPV6_DEFS uses.
12273         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
12274         IPPROTO_BEETPH.
12275         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
12276         sockaddr_in6, or ipv6_mreq.
12277
12278 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12279
12280         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
12281         memory access for final bytes in some large inputs.
12282         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
12283
12284 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12285
12286         * string/test-memrchr.c: New file.
12287         * string/test-memrchr-ifunc.c: New file.
12288         * string/Makefile: Add new memrchr testcase.
12289
12290 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
12291
12292         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
12293         fanotify_init returns EPERM.
12294
12295 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
12296
12297         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
12298         errors.
12299         (top level): Treat second token from macro or constant entries for
12300         allowed headers as allowed.
12301         * include/complex.h: Condition internal declarations on
12302         [!_ISOMAC].
12303         * include/fenv.h: Condition include of <stdbool.h> and internal
12304         declarations on [!_ISOMAC].
12305
12306 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
12307
12308         [BZ #15923]
12309         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
12310
12311 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
12312
12313         * configure.in (--enable-versioning): Remove configure option.
12314         (libc_cv_asm_symver_directive): Remove configure test.
12315         (libc_cv_ld_version_script_option): Likewise.
12316         (VERSIONING): Remove variable and AC_SUBST.
12317         (DO_VERSIONING): Remove AC_DEFINE.
12318         * configure: Regenerated.
12319         * config.h.in (DO_VERSIONING): Remove macro.
12320         * Makerules [$(versioning) = yes]: Change conditionals to
12321         [$(build-shared) = yes].
12322         * config.make.in (versioning): Remove variable.
12323         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
12324         [$(build-shared) = yes].
12325         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
12326         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
12327         * elf/Makefile [$(versioning) = yes]: Change conditionals to
12328         [$(build-shared) = yes].
12329         * extra-lib.mk [$(versioning) = yes]: Likewise.
12330         * hurd/Makefile [$(versioning) = yes]: Likewise.
12331         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
12332         [SHARED].
12333         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
12334         [SHARED].
12335         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
12336         [SHARED && !NO_HIDDEN].
12337         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
12338         [SHARED].
12339         [SHARED && DO_VERSIONING]: Likewise..
12340         * libio/Makefile [$(versioning) = yes]: Change conditionals to
12341         [$(build-shared) = yes].
12342         * manual/install.texi (--disable-versioning): Remove
12343         documentation.
12344         * INSTALL: Regenerated.
12345         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
12346         to [SHARED].
12347         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
12348         [$(build-shared) = yes].
12349         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
12350         * sysdeps/i386/i686/multiarch/strstr-c.c
12351         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
12352         [SHARED && !NO_HIDDEN].
12353         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
12354         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
12355         * sysdeps/powerpc/powerpc32/dl-machine.c
12356         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
12357         * sysdeps/powerpc/powerpc32/sysdep.h
12358         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
12359         to [SHARED && PIC && !NO_HIDDEN].
12360         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
12361         conditional to [SHARED].
12362
12363 2013-09-04   Will Newton  <will.newton@linaro.org>
12364
12365         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
12366         * benchtests/bench-string.h: Include bench-timing.h instead
12367         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
12368         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
12369         call to HP_TIMING_DIFF_INIT.
12370         * benchtests/bench-memccpy.c: Use bench-timing.h macros
12371         instead of hp-timing.h macros.
12372         * benchtests/bench-memchr.c: Likewise.
12373         * benchtests/bench-memcmp.c: Likewise.
12374         * benchtests/bench-memcpy.c: Likewise.
12375         * benchtests/bench-memmem.c: Likewise.
12376         * benchtests/bench-memmove.c: Likewise.
12377         * benchtests/bench-memset.c: Likewise.
12378         * benchtests/bench-rawmemchr.c: Likewise.
12379         * benchtests/bench-strcasecmp.c: Likewise.
12380         * benchtests/bench-strcasestr.c: Likewise.
12381         * benchtests/bench-strcat.c: Likewise.
12382         * benchtests/bench-strchr.c: Likewise.
12383         * benchtests/bench-strcmp.c: Likewise.
12384         * benchtests/bench-strcpy.c: Likewise.
12385         * benchtests/bench-strcpy_chk.c: Likewise.
12386         * benchtests/bench-strlen.c: Likewise.
12387         * benchtests/bench-strncasecmp.c: Likewise.
12388         * benchtests/bench-strncat.c: Likewise.
12389         * benchtests/bench-strncmp.c: Likewise.
12390         * benchtests/bench-strncpy.c: Likewise.
12391         * benchtests/bench-strnlen.c: Likewise.
12392         * benchtests/bench-strpbrk.c: Likewise.
12393         * benchtests/bench-strrchr.c: Likewise.
12394         * benchtests/bench-strspn.c: Likewise.
12395         * benchtests/bench-strstr.c: Likewise.
12396
12397 2013-09-04  Will Newton  <will.newton@linaro.org>
12398
12399         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
12400
12401 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
12402
12403         [BZ #15427]
12404         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
12405         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
12406         * math/libm-test.inc (lgamma_test_data): Add more tests.
12407         * sysdeps/i386/fpu/libm-test-ulps: Update.
12408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12409
12410 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
12411
12412         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
12413         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
12414         Add ifunc.
12415         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
12416         Add strcmp-sse2-unaligned
12417         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
12418
12419 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
12420
12421         * Versions.def (libc): Add GLIBC_2.19.
12422
12423 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
12424
12425         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
12426         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
12427
12428 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
12429
12430         [BZ #14155]
12431         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
12432         intermediate calculations in recurrence.
12433         (__ieee754_ynf): Likewise.
12434         * math/libm-test.inc (jn_test_data): Do not allow spurious
12435         underflow exception.  Add more tests.
12436         (yn_test_data): Add more tests.
12437         * sysdeps/i386/fpu/libm-test-ulps: Update.
12438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12439
12440 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
12441
12442         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
12443
12444 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
12445
12446         * csu/init-first.c: Fix then/than typos.
12447         * locale/programs/ld-collate.c: Likewise.
12448         * locale/programs/linereader.h: Likewise.
12449         * manual/charset.texi: Likewise.
12450         * manual/filesys.texi: Likewise.
12451         * manual/stdio.texi: Likewise.
12452         * manual/string.texi: Likewise.
12453         * stdlib/fmtmsg.c: Likewise.
12454         * sysdeps/i386/stpncpy.S: Likewise.
12455         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
12456         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
12457         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
12458         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
12459
12460 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
12461
12462         * elf/dl-open.c: Fix typos.
12463         * iconvdata/gbbig5.c: Likewise.
12464         * iconvdata/iso-2022-jp.c: Likewise.
12465         * iconv/gconv_int.h: Likewise.
12466         * iconv/loop.c: Likewise.
12467         * nis/rpcsvc/nis.h: Likewise.
12468         * resolv/ns_name.c: Likewise.
12469         * stdio-common/vfscanf.c: Likewise.
12470         * streams/stropts.h: Likewise.
12471         * sunrpc/rpc_thread.c: Likewise.
12472         * sysdeps/i386/strpbrk.S: Likewise.
12473         * sysdeps/ieee754/k_standard.c: Likewise.
12474         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12475         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12476         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12477         * sysdeps/mach/hurd/profil.c: Likewise.
12478         * sysdeps/s390/dl-procinfo.h: Likewise.
12479         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
12480         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
12481         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
12482         * sysdeps/x86_64/dl-trampoline.S: Likewise.
12483         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
12484
12485 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
12486
12487         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
12488         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
12489
12490 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
12491
12492         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
12493         aix specific files.
12494         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
12495         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
12496         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
12497         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
12498         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
12499         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
12500         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
12501         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
12502
12503 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
12504             Roland McGrath  <roland@hack.frob.com>
12505
12506         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
12507         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
12508
12509 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12510
12511         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
12512         __executable_start symbol instead of _start.
12513
12514 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
12515
12516         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
12517         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
12518         Move macros to...
12519         * sysdeps/gnu/ldsodefs.h: ... this new file.
12520
12521         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
12522         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
12523         instead of ELFOSABI_LINUX.
12524
12525         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
12526         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
12527         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
12528         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
12529         Likewise.
12530         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
12531         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
12532         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
12533         Likewise.
12534         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
12535         (ibm_extended_long_double): Add ieee_nan member.
12536         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
12537         (do_test): New function.
12538
12539         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
12540         TEST_TRUNC.
12541         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
12542         functions, renamed from truncdfsf_test, trunctfsf_test,
12543         trunctfdf_test.
12544         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
12545         functions.
12546         (do_test): Run all these.
12547
12548 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
12549
12550         * argp/argp-help.c: Fix typos.
12551         * argp/argp-parse.c: Likewise.
12552         * debug/backtracesyms.c: Likewise.
12553         * elf/elf.h: Likewise.
12554         * malloc/malloc.c: Likewise.
12555         * nis/nis_print.c: Likewise.
12556         * resolv/res_comp.c: Likewise.
12557         * stdlib/stdlib.h: Likewise.
12558         * sunrpc/clnt_tcp.c: Likewise.
12559         * sunrpc/clnt_udp.c: Likewise.
12560         * sunrpc/clnt_unix.c: Likewise.
12561         * sysdeps/unix/bsd/ptsname.c: Likewise.
12562         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
12563         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
12564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
12565         Likewise.
12566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
12567         Likewise.
12568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
12569         Likewise.
12570         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
12571
12572 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12573
12574         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
12575         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12576
12577 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
12578
12579         [BZ #15897]
12580         * dlfcn/Makefile (tests): Add bug-dl-leaf.
12581         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
12582         ($(objpfx)bug-dl-leaf): New rule.
12583         ($(objpfx)bug-dl-leaf.so): Likewise.
12584         ($(objpfx)bug-dl-leaf.out): Likewise.
12585         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
12586         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
12587         * dlfcn/bug-dl-leaf.c: New test.
12588         * dlfcn/bug-dl-leaf-lib.c: Likewise.
12589         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
12590         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
12591         (dlclose): Likewise.
12592         (dlmopen): Likewise.
12593
12594 2013-08-27  Roland McGrath  <roland@hack.frob.com>
12595
12596         * include/netdb.h [!_ISOMAC]:
12597         Don't include <tls.h>.
12598         (h_errno, __libc_h_errno): Move declaration and macros out of
12599         [_LIBC_REENTRANT].
12600
12601         * include/resolv.h [_RESOLV_H_]:
12602         Don't include <tls.h>.
12603         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
12604         * resolv/res_libc.c: Don't include <tls.h>.
12605         (_res): Use __attribute__ ((nocommon)) in place of
12606         __attribute__ ((section (".bss"))).
12607
12608         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
12609         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
12610
12611         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
12612
12613         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
12614         only under [SIOCGIFCONF && SIOCGIFNETMASK].
12615
12616         * resolv/res_mkquery.c: Include <sys/time.h>.
12617
12618         * inet/ifreq.c: Moved to ...
12619         * sysdeps/unix/ifreq.c: ... here.
12620         * inet/ifreq.c: New file, true stub version.
12621
12622         * socket/sa_len.c: New file.
12623         * socket/Makefile (aux): Add it.
12624         * sysdeps/unix/sysv/linux/Makefile
12625         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
12626         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
12627         and #include <socket/sa_len.c>.
12628         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
12629         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
12630
12631         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
12632         * bits/socket.h: ... here.
12633
12634         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
12635         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
12636         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
12637
12638 2013-08-27  Andreas Schwab  <schwab@suse.de>
12639
12640         [BZ #15736]
12641         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
12642         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
12643         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
12644         * string/test-strcasecmp.c (test_main): Run tests in several
12645         locales.
12646         * string/test-strncasecmp.c (test_main): Likewise.
12647
12648         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
12649         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
12650         to __strcasecmp_nonascii and __strncasecmp_nonascii.
12651         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
12652         (__strncasecmp_ssse3) [PIC]: Likewise.
12653
12654 2013-08-26  Roland McGrath  <roland@hack.frob.com>
12655
12656         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
12657
12658         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
12659         instead of explicitly declaring xdecrypt.
12660         * nis/nss_nis/nis-publickey.c: Likewise.
12661
12662 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12663
12664         [BZ #15890]
12665         * nscd/aicache.c: Include res_hconf.h.
12666         (addhstaiX): Initialize res_hconf.
12667
12668 2013-08-26  Andreas Schwab  <schwab@suse.de>
12669
12670         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
12671         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
12672
12673 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12674
12675         * nscd/aicache.c (addhstaiX): Fix indentation.
12676
12677 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
12678
12679         * configure.ac: Quote $build_pt_chown test.
12680         * configure: Regenerated.
12681
12682 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
12683
12684         [BZ #15532]
12685         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
12686         * math/s_cexpf.c (__cexpf): Likewise.
12687         * math/s_cexpl.c (__cexpl): Likewise.
12688         * math/libm-test.inc (cexp_test_data): Correct expected return
12689         value for NaN + i0.  Add another test.
12690
12691 2013-08-22  David S. Miller  <davem@davemloft.net>
12692
12693         * po/ca.po: Update Catalan translation from translation project.
12694         * po/uk.po: Add Ukrainian translations from translation project.
12695
12696 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
12697
12698         [BZ #15797]
12699         * math/s_fdim.c (__fdim): Check for infinite arguments if result
12700         is infinite, not alongside NaN test.
12701         * math/s_fdimf.c (__fdimf): Likewise.
12702         * math/s_fdiml.c (__fdiml): Likewise.
12703         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
12704         errno is unchanged.
12705
12706 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
12707
12708         * argp/argp-help.c: Fix typos.
12709         * crypt/speeds.c: Likewise.
12710         * csu/check_fds.c: Likewise.
12711         * elf/dl-load.c: Likewise.
12712         * elf/dl-open.c: Likewise.
12713         * elf/reldep3.c: Likewise.
12714         * elf/reldep.c: Likewise.
12715         * elf/sprof.c: Likewise.
12716         * iconv/iconv_charmap.c: Likewise.
12717         * iconv/skeleton.c: Likewise.
12718         * iconv/strtab.c: Likewise.
12719         * io/lockf64.c: Likewise.
12720         * libio/libioP.h: Likewise.
12721         * resolv/gai_notify.c: Likewise.
12722         * resolv/ns_name.c: Likewise.
12723         * resolv/ns_samedomain.c: Likewise.
12724         * resolv/res_send.c: Likewise.
12725         * stdlib/random.c: Likewise.
12726         * sunrpc/rpc/xdr.h: Likewise.
12727         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
12728         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12729         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12730         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12731         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12732         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12733         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12734         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12735         * sysdeps/mach/hurd/check_fds.c: Likewise.
12736         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
12737         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
12738         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
12739         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
12740         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
12741         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
12742         * sysdeps/pthread/aio_notify.c: Likewise.
12743         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
12744         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
12745         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
12746         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
12747         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
12748
12749 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12750
12751         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
12752         version if bit_Slow_SSE4_2 is set.
12753         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12754         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12755
12756 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12757
12758         [BZ #15867]
12759         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
12760         trampoline stack frame information.
12761         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
12762         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
12763         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
12764         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
12765         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
12766         * sysdeps/unix/sysv/linux/powerpc/init-first.c
12767         (_libc_vdso_platform_setup): Initialize the signal trampolines.
12768         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
12769         sa_flags value.
12770         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
12771         interrupting a syscall and set with option SA_SIGINFO.
12772
12773 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
12774
12775         [BZ #15531]
12776         * math/s_cproj.c (__cproj): Only return an infinity if one part of
12777         argument is infinite.
12778         * math/s_cprojf.c (__cprojf): Likewise.
12779         * math/s_cprojl.c (__cprojl): Likewise.
12780         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
12781         * math/libm-test.inc (cproj_test_data): Add more tests.
12782
12783         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
12784
12785         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
12786         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
12787         size.  Use __ffs to determine corresponding shift.
12788
12789 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
12790             Roland McGrath  <roland@hack.frob.com>
12791
12792         * Makefile (INSTALL): Remove trailing blank lines from output of
12793         makeinfo.
12794
12795 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12796
12797         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
12798         Align 32 bit compat elf_greg to 8 bytes.
12799
12800 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12801
12802         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
12803
12804 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12805
12806         * string/strcoll_l.c (coll_seq): New structure.
12807         (get_next_seq_cached): New function.
12808         (get_next_seq): New function.
12809         (do_compare): New function.
12810         (STRCOLL): Use GNU style definition.  Simplify implementation
12811         by using get_next_seq, get_next_seq_cached and do_compare.
12812
12813 2013-08-16  Florian Weimer  <fweimer@redhat.com>
12814
12815         [BZ #14699]
12816         CVE-2013-4237
12817         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
12818         member.
12819         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
12820         member.
12821         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
12822         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
12823         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
12824         conditional.
12825         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
12826         GETDENTS_64BIT_ALIGNED.
12827         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12828         * manual/filesys.texi (Reading/Closing Directory): Document
12829         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
12830         strongly.
12831         * manual/conf.texi (Limits for Files): Add portability note to
12832         NAME_MAX, PATH_MAX.
12833         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
12834
12835 2013-08-13  Andreas Schwab  <schwab@suse.de>
12836
12837         [BZ #15749]
12838         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
12839         of fabs.
12840         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
12841         LDBL_MAX_EXP >= 16384]: Add tests for it.
12842
12843 2013-08-12  David S. Miller  <davem@davemloft.net>
12844
12845         * version.h (RELEASE): Set to "development".
12846         (VERSION): Set to "2.18.90".
12847         * NEWS: Add 2.19 section.
12848
12849 2013-08-03  David S. Miller  <davem@davemloft.net>
12850
12851         * po/ko.po: Update Korean translation from translation project.
12852
12853 2013-08-01  David S. Miller  <davem@davemloft.net>
12854
12855         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
12856         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
12857         Bilka.
12858
12859 2013-07-30  David S. Miller  <davem@davemloft.net>
12860
12861         * po/fr.po: Update French translation from translation project.
12862
12863 2013-07-28  David S. Miller  <davem@davemloft.net>
12864
12865         * po/cs.po: Update Czech translation from translation project.
12866
12867         * po/sv.po: Update Swedish translation from translation project.
12868
12869 2013-07-27  David S. Miller  <davem@davemloft.net>
12870
12871         * po/eo.po: Update Esperanto translation from translation project.
12872
12873         * po/vi.po: Update Vietnamese translation from translation project.
12874
12875         * po/de.po: Update German translation from translation project.
12876
12877 2013-07-26  David S. Miller  <davem@davemloft.net>
12878
12879         * po/bg.po: Update Bulgarian translation from translation project.
12880
12881         * po/nl.po: Update Dutch translation from translation project.
12882         * po/pl.po: Update Polish translation from translation project.
12883         * po/ru.po: Update Russian translation from translation project.
12884
12885 2013-07-24  David S. Miller  <davem@davemloft.net>
12886
12887         * po/libc.pot: Update.
12888
12889 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12890
12891         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
12892         variable page size.
12893         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
12894         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
12895         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
12896
12897 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12898
12899         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
12900
12901 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12902             Andreas Schwab  <schwab@suse.de>
12903             Roland McGrath  <roland@hack.frob.com>
12904             Joseph Myers  <joseph@codesourcery.com>
12905             Carlos O'Donell  <carlos@redhat.com>
12906
12907         [BZ #15755]
12908         * config.h.in: Define HAVE_PT_CHOWN.
12909         * config.make.in (build-pt-chown): New variable.
12910         * configure.in (--enable-pt_chown): New configure option.
12911         * configure: Regenerate.
12912         * login/Makefile: Include Makeconfig.  Build pt_chown only if
12913         build-pt-chown is enabled.
12914         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
12915         pt_chown to fix pty ownership.
12916         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
12917         CLOSE_ALL_FDS.
12918         * manual/install.texi (Configuring and compiling): Mention
12919         --enable-pt_chown. Add @findex for grantpt.
12920         * INSTALL: Regenerate.
12921
12922 2013-07-20  David S. Miller  <davem@davemloft.net>
12923
12924         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
12925         difference between 32-bit and 64-bit.
12926
12927 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
12928
12929         [BZ #15711]
12930         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
12931         Avoid system header dependency with -ffreestanding.
12932         ($(objpfx)bits/syscall%d): Likewise.
12933
12934 2013-07-13  David S. Miller  <davem@davemloft.net>
12935
12936         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
12937         underflows from atanl/atan2l due to bug 15319.
12938         (casinh_test_data): Likewise.
12939
12940 2013-07-07  David S. Miller  <davem@davemloft.net>
12941
12942         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
12943
12944 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
12945
12946         * sysdeps/i386/fpu/libm-test-ulps: Update.
12947         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12948
12949 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12950
12951         * configure.in (--enable-lock-elision): Fix message text.
12952         * INSTALL: Regenerate.
12953         * configure: Regenerate.
12954
12955 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12956
12957         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12958
12959 2013-07-03  Andreas Jaeger  <aj@suse.de>
12960
12961         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
12962         define.
12963         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
12964         (ptrace_peeksiginfo_args): Add.
12965         (__ptrace_peeksiginfo_flags): Add.
12966         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12967         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12968         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12969
12970 2013-07-03  Allan McRae  <allan@archlinux.org>
12971
12972         * sysdeps/i386/fpu/libm-test-ulps: Update.
12973
12974 2013-07-02  David S. Miller  <davem@davemloft.net>
12975
12976         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12977
12978 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
12979
12980         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12981
12982 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
12983
12984         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
12985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12986
12987 2013-07-02  Andi Kleen <ak@linux.intel.com>
12988
12989         * config.h.in (ENABLE_LOCK_ELISION): Add.
12990         * configure.in (--enable-lock-elision): Add option.
12991         * manual/install.texi: Document --enable lock elision.
12992         * configure: Regenerate
12993         * INSTALL: Regenerate.
12994
12995 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
12996
12997         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
12998         SSE4.2 strcasecmp for libc.a.
12999         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
13000
13001 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
13002
13003         [BZ #13304]
13004         * soft-fp/op-common.h (_FP_FMA): New macro.
13005         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
13006         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
13007         (_FP_MUL_MEAT_1_imm): ... here.
13008         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
13009         (_FP_MUL_MEAT_1_wide): ... here.
13010         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
13011         (_FP_MUL_MEAT_1_hard): ... here.
13012         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
13013         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
13014         (_FP_MUL_MEAT_2_wide): ... here.
13015         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
13016         (_FP_MUL_MEAT_2_wide_3mul): ... here.
13017         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
13018         (_FP_MUL_MEAT_2_gmp): ... here.
13019         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
13020         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
13021         (_FP_MUL_MEAT_4_wide): ... here.
13022         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
13023         (_FP_MUL_MEAT_4_gmp): ... here.
13024         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
13025         (_FP_WFRACBITS_DW_S): Likewise.
13026         (_FP_WFRACXBITS_DW_S): Likewise.
13027         (_FP_HIGHBIT_DW_S): Likewise.
13028         (FP_FMA_S): Likewise.
13029         (_FP_FRAC_HIGH_DW_S): Likewise.
13030         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
13031         (_FP_WFRACBITS_DW_D): Likewise.
13032         (_FP_WFRACXBITS_DW_D): Likewise.
13033         (_FP_HIGHBIT_DW_D): Likewise.
13034         (FP_FMA_D): Likewise.
13035         (_FP_FRAC_HIGH_DW_D): Likewise.
13036         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
13037         (_FP_WFRACBITS_DW_E): Likewise.
13038         (_FP_WFRACXBITS_DW_E): Likewise.
13039         (_FP_HIGHBIT_DW_E): Likewise.
13040         (FP_FMA_E): Likewise.
13041         (_FP_FRAC_HIGH_DW_E): Likewise.
13042         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
13043         (_FP_WFRACBITS_DW_Q): Likewise.
13044         (_FP_WFRACXBITS_DW_Q): Likewise.
13045         (_FP_HIGHBIT_DW_Q): Likewise.
13046         (FP_FMA_Q): Likewise.
13047         (_FP_FRAC_HIGH_DW_Q): Likewise.
13048         * soft-fp/fmasf4.c: New file.
13049         * soft-fp/fmadf4.c: Likewise.
13050         * soft-fp/fmatf4.c: Likewise.
13051
13052 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13053
13054         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
13055         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
13056         Silvermont.
13057         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
13058         macro.
13059         (index_Slow_SSE4_2): Likewise.
13060         (index_Prefer_PMINUB_for_stringop): Likewise.
13061         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
13062         bit_Slow_SSE4_2 is set.
13063         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13064         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13065
13066 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13067
13068         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
13069         rtld_global._dl_hwcap2.
13070         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
13071         POWER8.
13072         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
13073         POWER8 feature descriptions defined in _dl_hwcap2.
13074         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
13075         string handling for POWER8 feature bits.
13076         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
13077         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
13078         _dl_powerpc_cap_flags.
13079         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
13080         * sysdeps/powerpc/rtld-global-offsets.sym
13081         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
13082         _dl_hwcap2 in the rtld_global_ro structure.
13083
13084 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13085
13086         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
13087         hardware capabilities in support of AT_HWCAP2.
13088         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
13089         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
13090         GLRO(dl_hwcap2).
13091         (_dl_show_auxv): Add support for calling _dl_procinfo to display
13092         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
13093         explicitly the unknown a_type display mechanism is used.
13094         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
13095         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
13096         struct member.
13097         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
13098         to macro prototype for AT_HWCAP2 support.
13099         * sysdeps/i386/dl-procinfo.h: Likewise.
13100         * sysdeps/s390/dl-procinfo.h: Likewise.
13101         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
13102         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
13103         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
13104         return -1 for unknown a_type display fallback.
13105         * sysdeps/sparc/dl-procinfo.h: Likewise.
13106         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
13107         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
13108
13109 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
13110
13111         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
13112         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
13113
13114 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
13115
13116         [BZ #12492]
13117         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
13118         mprotect making __stack_prot writable.
13119
13120 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
13121             Joseph Myers  <joseph@codesourcery.com>
13122
13123         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
13124         as being properly aligned.
13125
13126 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
13127
13128         * dlfcn/modstatic5.c: New file.
13129         * dlfcn/tststatic5.c: New file.
13130         * dlfcn/Makefile (tests): Add tststatic5.
13131         (tests-static): Likewise.
13132         (modules-names): Add modstatic5.
13133         (tststatic5-ENV): New variable.
13134         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
13135
13136         [BZ #15022]
13137         * elf/dl-support.c (_dl_main_map): New variable.
13138         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
13139         (_dl_nns, _dl_load_adds): Set to 1.
13140         (_dl_initial_searchlist): Refer to _dl_main_map.
13141         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
13142         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
13143         call to _dl_get_origin.
13144         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
13145         around call_map.
13146         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
13147         * dlfcn/modstatic3.c: New file.
13148         * dlfcn/tststatic3.c: New file.
13149         * dlfcn/tststatic4.c: New file.
13150         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
13151         (tests-static): Likewise.
13152         (modules-names): Add modstatic3.
13153         (tststatic3-ENV, tststatic4-ENV): New variables.
13154         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
13155         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
13156
13157 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
13158
13159         * configure.in (CC): Require GCC version 4.4 or later.
13160         * configure: Regenerated.
13161         * manual/install.texi (Tools for Compilation): Update GCC version
13162         requirement.
13163         * INSTALL: Regenerated.
13164
13165 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13166
13167         [BZ #15674]
13168         * string/test-memcmp.c (check2): New.
13169         (main): Call check2.
13170
13171         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
13172
13173 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
13174
13175         [BZ #15022]
13176         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
13177         over to...
13178         (dl_open_worker) [!SHARED]: ... here.
13179
13180 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13181
13182         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
13183
13184 2013-06-25  Richard Henderson  <rth@redhat.com>
13185
13186         * locale/programs/locarchive.c: Include <libc-internal.h>
13187
13188 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
13189
13190         * manual/texinfo.tex: Update to version 2013-06-21.17, with
13191         trailing whitespace removed.
13192
13193 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
13194
13195         [BZ #10283]
13196         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
13197         * locale/programs/locarchive.c: Include libc-mmap.h.
13198         (prepare_address_space): Take two new outputs (the mmap base and len).
13199         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
13200         values.
13201         (create_archive): Declare new mmap base and len values for
13202         prepare_address_space, and store the result in ah.
13203         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
13204         (enlarge_archive): If ah->mmap_base is not NULL, use that and
13205         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
13206         Declare new mmap base and len values for
13207         prepare_address_space, and store the result in new_ah.
13208         (open_archive): Declare new mmap base and len values for
13209         prepare_address_space, and store the result in ah.
13210         (close_archive): If ah->mmap_base is not NULL, use that and
13211         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
13212         * sysdeps/generic/libc-mmap.h: New file.
13213
13214 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
13215
13216         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
13217         (ALIGN_UP): Likewise.
13218         (PTR_ALIGN_DOWN): Likewise.
13219         (PTR_ALIGN_UP): Likewise.
13220
13221 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13222
13223         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
13224         entry mapped to PPC_PLATFORM_POWER8.
13225         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
13226         POWER8.
13227         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
13228         (_dl_string_platform): Add case for exporting platform position for
13229         POWER8.
13230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
13231         search path to sysdeps/powerpc/powerpc32/power8 directory.
13232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
13233         search path to sysdeps/powerpc/powerpc64/power8 directory.
13234         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
13235         power7 directories.
13236         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
13237         power7 directories.
13238
13239 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13240
13241         * INSTALL: Regenerate.
13242
13243         * nscd/connections.c (nscd_init): Fix comment.
13244
13245 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
13246
13247         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
13248
13249         [BZ #15667]
13250         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
13251         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
13252
13253 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
13254
13255         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
13256         DL_DST_REQ_STATIC.
13257         (DL_DST_REQ_STATIC): Remove macro.
13258
13259 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
13260
13261         [BZ #7006]
13262         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
13263         with a shift of 0 bits.
13264
13265 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
13266
13267         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
13268         $(tststatic-ENV).
13269
13270 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13271
13272         [BZ #15655]
13273         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
13274
13275 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13276
13277         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
13278         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
13279         accepts -fno-tree-loop-distribute-patterns.
13280         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
13281         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
13282         recursive call.
13283         * string/memset.c (memset): Likewise.
13284         * string/test-memmove.c (simple_memmove): Disable loop transformation
13285         to library calls.
13286         * string/test-memset.c (simple_memset): Likewise.
13287         * benchtests/bench-memmove.c (simple_memmove): Likewise.
13288         * benchtests/bench-memset.c (simple_memset): Likewise.
13289         * configure: Regenerated.
13290
13291 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
13292
13293         * math/test-misc.c (main): Ignore fesetround failure when failures
13294         of subsequent rounding tests would be ignored.
13295
13296         [BZ #15654]
13297         * math/fedisblxcpt.c (fedisableexcept): Return 0.
13298         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
13299         * math/fegetenv.c (__fegetenv): Return 0.
13300         * math/fegetexcept.c (fegetexcept): Return 0.
13301         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
13302         FE_TONEAREST.
13303         * math/feholdexcpt.c (feholdexcept): Return 0.
13304         * math/fesetenv.c (__fesetenv): Return 0.
13305         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
13306         argument FE_TONEAREST.
13307         * math/feupdateenv.c (__feupdateenv): Return 0.
13308         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
13309
13310 2013-06-18  Roland McGrath  <roland@hack.frob.com>
13311
13312         * elf/rtld-Rules (rtld-compile-command.S): New variable.
13313         (rtld-compile-command.s, rtld-compile-command.c): New variables.
13314         ($(objpfx)rtld-%.os rules): Use them.
13315
13316 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13317
13318         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
13319         fields.
13320
13321 2013-06-17  Roland McGrath  <roland@hack.frob.com>
13322
13323         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
13324         length of target pattern, then descending length of dependency pattern.
13325         * configure.in (AWK): Require gawk 3.1.2 or newer.
13326         * manual/install.texi (Tools for Compilation): Say that we do.
13327         * configure: Regenerated.
13328
13329         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
13330         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
13331         * scripts/sysd-rules.awk: ... this new script.
13332         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
13333         than a glob-style pattern.
13334
13335 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
13336
13337         * math/test-misc.c (main): Do not treat incorrectly rounded
13338         conversions as failure unless ROUNDING_TESTS passes.
13339
13340 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
13341
13342         [BZ #15631]
13343         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
13344         restore exception state around main square root computation, then
13345         check for inexactness explicitly.
13346
13347         * math/libm-test.inc (fma_test_data): Add another test.
13348
13349 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
13350
13351         * manual/threads.texi (Non-POSIX Extensions): New document
13352         node.  Document pthread_getattr_default_np and
13353         pthread_setattr_default_np.
13354
13355         * Versions.def (libpthread): Add GLIBC_2.18.
13356         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
13357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
13358         Likewise.
13359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
13360         Likewise.
13361         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13362         Likewise.
13363         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13364         Likewise.
13365         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
13366         Likewise.
13367         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
13368         Likewise.
13369         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
13370         Likewise.
13371         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
13372         Likewise.
13373         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13374         Likewise.
13375
13376 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13377
13378         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13379         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
13380
13381 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13382             H.J. Lu  <hjl.tools@gmail.com>
13383
13384         [BZ #15627]
13385         * sysdeps/x86_64/rtld-memset.c: Remove file.
13386         * sysdeps/x86_64/rtld-memset.S: New file.
13387
13388 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
13389
13390         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
13391         (test_in_one_mode): Take arguments for whether the rounding mode
13392         is supported for each floating-point type.
13393         (do_test): Pass new arguments to test_in_one_mode using
13394         ROUNDING_TESTS.
13395
13396 2013-06-13  Roland McGrath  <roland@hack.frob.com>
13397
13398         * posix/tst-waitid.c (do_test): Distinguish different instances of
13399         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
13400         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
13401         before entering the kernel for waitpid.
13402
13403 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13404
13405         * NEWS: Fix note on clock function precision.  Text by Roland
13406         McGrath.
13407
13408 2013-06-13  Roland McGrath  <roland@hack.frob.com>
13409
13410         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
13411         it into place only when and if the sanity check passes.
13412
13413 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
13414
13415         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
13416         output for whether conversion result is exact.  Take argument
13417         indicating whether type is IBM long double.
13418         (round_for_all): Change need_exact field to ibm_ld.
13419         * stdlib/tst-strtod-round.c (struct exactness): New type.
13420         (struct test): Change bool ld_ok field to struct exactness exact.
13421         (TEST): Update all definitions for change to field.
13422         (tests): Regenerate array contents.
13423         (test_in_one_mode): Take pointer to new field instead of old ld_ok
13424         field value.  Check for IBM long double here.
13425         (do_test): Update calls to test_in_one_mode.
13426
13427 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13428
13429         [BZ #12515]
13430         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
13431         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
13432
13433 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13434
13435         [BZ #15605]
13436         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
13437         generated by the compiler on loop optimizations.
13438         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
13439         general definitions.
13440
13441 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
13442
13443         * math/bug-nextafter.c: Include <math-tests.h>.
13444         (main): Only test for exceptions if EXCEPTION_TESTS is true for
13445         the relevant type.
13446         * math/bug-nexttoward.c: Include <math-tests.h>.
13447         (main): Only test for exceptions if EXCEPTION_TESTS is true for
13448         the relevant type.
13449         * math/test-misc.c: Include <math-tests.h>.
13450         (main): Only test for exceptions if EXCEPTION_TESTS is true for
13451         the relevant type.
13452
13453 2013-06-12  Andreas Jaeger  <aj@suse.de>
13454
13455         * po/ia.po: Update Interlingua translation from translation
13456         project.
13457
13458 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
13459
13460         * include/fenv.h: Include stdbool.h.
13461         (struct rm_ctx): New structure.
13462         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
13463         Define macro.
13464         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
13465         (SET_RESTORE_ROUNDF): Likewise.
13466         (SET_RESTORE_ROUNDL): Likewise.
13467         (SET_RESTORE_ROUND_NOEX): Likewise.
13468         (SET_RESTORE_ROUND_NOEXF): Likewise.
13469         (SET_RESTORE_ROUND_NOEXL): Likewise.
13470         (SET_RESTORE_ROUND_53BIT): Likewise.
13471         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
13472         (libc_feresetround_noexf_ctx): Likewise.
13473         (libc_feresetround_noexl_ctx): Likewise.
13474         (libc_feholdsetround_53bit_ctx): Likewise.
13475         (libc_feresetround_53bit_ctx): Likewise.
13476         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
13477         (libc_feholdexcept_setround_sse_ctx): New function.
13478         (libc_fesetenv_sse_ctx): Likewise.
13479         (libc_feupdateenv_sse_ctx): Likewise.
13480         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
13481         (libc_feholdexcept_setround_387_ctx): Likewise.
13482         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
13483         (libc_feholdsetround_387_prec_ctx): Likewise.
13484         (libc_feholdsetround_387_ctx): Likewise.
13485         (libc_feholdsetround_387_53bit_ctx): Likewise.
13486         (libc_feholdsetround_sse_ctx): Likewise.
13487         (libc_feresetround_sse_ctx): Likewise.
13488         (libc_feresetround_387_ctx): Likewise.
13489         (libc_feupdateenv_387_ctx): Likewise.
13490         (libc_feholdexcept_setroundf_ctx): Define macro.
13491         (libc_fesetenvf_ctx): Likewise.
13492         (libc_feupdateenvf_ctx): Likewise.
13493         (libc_feholdsetroundf_ctx): Likewise.
13494         (libc_feresetroundf_ctx): Likewise.
13495         (libc_feholdexcept_setround_ctx): Likewise.
13496         (libc_fesetenv_ctx): Likewise.
13497         (libc_feupdateenv_ctx): Likewise.
13498         (libc_feholdsetround_ctx): Likewise.
13499         (libc_feresetround_ctx): Likewise.
13500         (libc_feholdexcept_setroundl_ctx): Likewise.
13501         (libc_feupdateenvl_ctx): Likewise.
13502         (libc_feholdsetroundl_ctx): Likewise.
13503         (libc_feresetroundl_ctx): Likewise.
13504         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
13505         (libc_feresetround_53bit_ctx): Likewise.
13506
13507 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13508
13509         * locale/iso-639.def: Convert to UTF-8.
13510
13511 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
13512
13513         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
13514         (EXCEPTION_TESTS_double): Likewise.
13515         (EXCEPTION_TESTS_long_double): Likewise.
13516         (EXCEPTION_TESTS): Likewise.
13517         * math/libm-test.inc (test_exceptions): Only test exceptions if
13518         EXCEPTION_TESTS (FLOAT).
13519
13520 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13521
13522         * benchtests/Makefile (string-bench): Add strcpy_chk and
13523         stpcpy_chk.
13524         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
13525         * benchtests/bench-stpcpy_chk.c: New file.
13526         * benchtests/bench-strcpy_chk-ifunc.c: New file.
13527         * benchtests/bench-strcpy_chk.c: New file.
13528         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
13529         code.
13530         (do_test): Likewise.
13531
13532 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13533
13534         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
13535         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
13536         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
13537         with tabs where appropriate.
13538         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
13539         dl-procinfo.h.
13540         [PPC_PLATFORM_PPC440]: Likewise.
13541         [PPC_PLATFORM_PPC464]: Likewise.
13542         [PPC_PLATFORM_PPC476]: Likewise.
13543         (_dl_string_platform): Add support for detecting ppc405, ppc440,
13544         ppc464, and ppc476 platform strings merging from ports/
13545         dl-procinfo.h.
13546
13547 2013-06-11  Andreas Schwab  <schwab@suse.de>
13548
13549         [BZ #14991]
13550         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
13551         (from_ucs4_idx): Regenerate.
13552         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
13553         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
13554         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
13555         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
13556         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
13557         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
13558         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
13559         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
13560         from FROM_LOOP and TO_LOOP specific macros.
13561         (BODY): Handle combining characters.
13562         * iconvdata/BIG5HKSCS.irreversible: Update.
13563         * iconvdata/BIG5HKSCS.precomposed: New file.
13564         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
13565         characters.
13566         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
13567
13568 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13569
13570         * include/sys/time.h: Fix indentation and add copyright header.
13571
13572         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
13573         (do_test): Likewise.
13574         * string/test-memchr.c (do_one_test): Likewise.
13575         (do_test): Likewise.
13576         * string/test-memcmp.c (do_one_test): Likewise.
13577         (do_test): Likewise.
13578         * string/test-memcpy.c (do_one_test): Likewise.
13579         (do_test): Likewise.
13580         * string/test-memmem.c (do_one_test): Likewise.
13581         (do_test): Likewise.
13582         (do_random_tests): Likewise.
13583         * string/test-memmove.c (do_one_test): Likewise.
13584         (do_test): Likewise.
13585         * string/test-memset.c (do_one_test): Likewise.
13586         (do_test): Likewise.
13587         * string/test-rawmemchr.c (do_one_test): Likewise.
13588         (do_test): Likewise.
13589         * string/test-strcasecmp.c (do_one_test): Likewise.
13590         (do_test): Likewise.
13591         * string/test-strcasestr.c (do_one_test): Likewise.
13592         (do_test): Likewise.
13593         * string/test-strcat.c (do_one_test): Likewise.
13594         (do_test): Likewise.
13595         * string/test-strchr.c (do_one_test): Likewise.
13596         (do_test): Likewise.
13597         * string/test-strcmp.c (do_one_test): Likewise.
13598         (do_test): Likewise.
13599         * string/test-strcpy.c (do_one_test): Likewise.
13600         (do_test): Likewise.
13601         * string/test-string.h: Likewise.
13602         (test_init): Likewise.
13603         * string/test-strlen.c (do_one_test): Likewise.
13604         (do_test): Likewise.
13605         * string/test-strncasecmp.c (do_one_test): Likewise.
13606         (do_test): Likewise.
13607         * string/test-strncat.c (do_one_test): Likewise.
13608         (do_test): Likewise.
13609         * string/test-strncmp.c (do_one_test): Likewise.
13610         (do_test_limit): Likewise.
13611         (do_test): Likewise.
13612         * string/test-strncpy.c (do_one_test): Likewise.
13613         (do_test): Likewise.
13614         * string/test-strnlen.c (do_one_test): Likewise.
13615         (do_test): Likewise.
13616         * string/test-strpbrk.c (do_one_test): Likewise.
13617         (do_test): Likewise.
13618         * string/test-strrchr.c (do_one_test): Likewise.
13619         (do_test): Likewise.
13620         * string/test-strspn.c (do_one_test): Likewise.
13621         (do_test): Likewise.
13622         * string/test-strstr.c (do_one_test): Likewise.
13623         (do_test): Likewise.
13624
13625         * benchtests/Makefile (string-bench): Add string benchmarks.
13626         * benchtests/bench-bcopy-ifunc.c: New file.
13627         * benchtests/bench-bcopy.c: New file.
13628         * benchtests/bench-bzero-ifunc.c: New file.
13629         * benchtests/bench-bzero.c: New file.
13630         * benchtests/bench-memccpy-ifunc.c: New file.
13631         * benchtests/bench-memccpy.c: New file.
13632         * benchtests/bench-memchr-ifunc.c: New file.
13633         * benchtests/bench-memchr.c: New file.
13634         * benchtests/bench-memcmp-ifunc.c: New file.
13635         * benchtests/bench-memcmp.c: New file.
13636         * benchtests/bench-memmem-ifunc.c: New file.
13637         * benchtests/bench-memmem.c: New file.
13638         * benchtests/bench-memmove-ifunc.c: New file.
13639         * benchtests/bench-memmove.c: New file.
13640         * benchtests/bench-mempcpy-ifunc.c: New file.
13641         * benchtests/bench-mempcpy.c: New file.
13642         * benchtests/bench-memset-ifunc.c: New file.
13643         * benchtests/bench-memset.c: New file.
13644         * benchtests/bench-rawmemchr-ifunc.c: New file.
13645         * benchtests/bench-rawmemchr.c: New file.
13646         * benchtests/bench-stpcpy-ifunc.c: New file.
13647         * benchtests/bench-stpcpy.c: New file.
13648         * benchtests/bench-stpncpy-ifunc.c: New file.
13649         * benchtests/bench-stpncpy.c: New file.
13650         * benchtests/bench-strcasecmp-ifunc.c: New file.
13651         * benchtests/bench-strcasecmp.c: New file.
13652         * benchtests/bench-strcasestr-ifunc.c: New file.
13653         * benchtests/bench-strcasestr.c: New file.
13654         * benchtests/bench-strcat-ifunc.c: New file.
13655         * benchtests/bench-strcat.c: New file.
13656         * benchtests/bench-strchr-ifunc.c: New file.
13657         * benchtests/bench-strchr.c: New file.
13658         * benchtests/bench-strchrnul-ifunc.c: New file.
13659         * benchtests/bench-strchrnul.c: New file.
13660         * benchtests/bench-strcmp-ifunc.c: New file.
13661         * benchtests/bench-strcmp.c: New file.
13662         * benchtests/bench-strcpy-ifunc.c: New file.
13663         * benchtests/bench-strcpy.c: New file.
13664         * benchtests/bench-strcspn-ifunc.c: New file.
13665         * benchtests/bench-strcspn.c: New file.
13666         * benchtests/bench-strlen-ifunc.c: New file.
13667         * benchtests/bench-strlen.c: New file.
13668         * benchtests/bench-strncasecmp-ifunc.c: New file.
13669         * benchtests/bench-strncasecmp.c: New file.
13670         * benchtests/bench-strncat-ifunc.c: New file.
13671         * benchtests/bench-strncat.c: New file.
13672         * benchtests/bench-strncmp-ifunc.c: New file.
13673         * benchtests/bench-strncmp.c: New file.
13674         * benchtests/bench-strncpy-ifunc.c: New file.
13675         * benchtests/bench-strncpy.c: New file.
13676         * benchtests/bench-strnlen-ifunc.c: New file.
13677         * benchtests/bench-strnlen.c: New file.
13678         * benchtests/bench-strpbrk-ifunc.c: New file.
13679         * benchtests/bench-strpbrk.c: New file.
13680         * benchtests/bench-strrchr-ifunc.c: New file.
13681         * benchtests/bench-strrchr.c: New file.
13682         * benchtests/bench-strspn-ifunc.c: New file.
13683         * benchtests/bench-strspn.c: New file.
13684         * benchtests/bench-strstr-ifunc.c: New file.
13685         * benchtests/bench-strstr.c: New file.
13686
13687         * benchtests/Makefile: Disable parallel execution of targets.
13688         (string-bench): Add memcpy.
13689         (benchset): New variable to store a list of benchmark sets.
13690         (bench-func): Renamed from bench.
13691         (bench-set): New target.
13692         (bench): Depend on bench-func and bench-set.
13693         * benchtests/README: Add section on benchmark sets.
13694         * benchtests/bench-memcpy-ifunc.c: New file.
13695         * benchtests/bench-memcpy.c: New file.
13696         * benchtests/bench-string.h: New file.
13697
13698 2013-06-11  Andreas Schwab  <schwab@suse.de>
13699
13700         [BZ #15577]
13701         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
13702         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
13703         values in the triple.
13704         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
13705         terminator in the group key.
13706
13707 2013-06-11  Andreas Jaeger  <aj@suse.de>
13708
13709         * po/zh_TW.po: Update Chinese (traditional) translation from
13710         translation project.
13711
13712 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13713
13714         * include/time.h (__clock_gettime): Add libc_hidden_proto.
13715         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
13716         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
13717         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
13718         (clock_getcpuclockid): Likewise.
13719         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
13720         Add weak_alias and libc_hidden_def.
13721         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
13722         * rt/clock_gettime.c (clock_gettime): Rename to
13723         __clock_gettime.  Add weak_alias and libc_hidden_def.
13724         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
13725         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
13726         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
13727         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
13728         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
13729         Likewise.
13730         * rt/clock_settime.c (clock_settime): Rename to
13731         __clock_settime.  Add weak_alias and libc_hidden_def.
13732         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
13733
13734 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
13735
13736         * mach/err_boot.sub: Remove trailing whitespace.
13737         * mach/err_ipc.sub: Likewise.
13738         * mach/err_mach.sub: Likewise.
13739
13740         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
13741         (ROUNDING_TESTS_double): Likewise.
13742         (ROUNDING_TESTS_long_double): Likewise.
13743         (ROUNDING_TESTS): Likewise.
13744         * math/libm-test.inc: Include <math-tests.h>.
13745         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
13746         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
13747         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13748         (IF_ROUND_INIT_FE_UPWARD): Likewise.
13749
13750 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
13751
13752         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
13753         of assigning.
13754
13755 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
13756
13757         * sysdeps/gnu/errlist.awk: Do not generate space at end of
13758         otherwise empty TRANS lines.
13759         * sysdeps/gnu/errlist.c: Regenerated.
13760
13761         * catgets/gencat.c (error_print): Use (void) in function
13762         definition.
13763         * crypt/crypt_util.c (__init_des): Likewise.
13764         * crypt/speeds.c (Stop): Likewise.
13765         (main): Likewise.
13766         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
13767         * inet/ruserpass.c (token): Likewise.
13768         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
13769         * intl/localealias.c (extend_alias_table): Likewise.
13770         * intl/plural-exp.c (init_germanic_plural): Likewise.
13771         * libio/fcloseall.c (__fcloseall): Likewise.
13772         * libio/genops.c (_IO_flush_all): Likewise.
13773         (_IO_flush_all_linebuffered): Likewise.
13774         (_IO_cleanup): Likewise.
13775         (_IO_iter_begin): Likewise.
13776         (_IO_iter_end): Likewise.
13777         (_IO_list_lock): Likewise.
13778         (_IO_list_unlock): Likewise.
13779         (_IO_list_resetlock): Likewise.
13780         * libio/getchar.c (getchar): Likewise.
13781         * libio/getchar_u.c (getchar_unlocked): Likewise.
13782         * libio/getwchar.c (getwchar): Likewise.
13783         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
13784         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
13785         * login/getpt.c (__getpt): Likewise.
13786         * login/tst-utmp.c (main): Likewise.
13787         * malloc/hooks.c (__malloc_check_init): Likewise.
13788         * malloc/malloc.c (__malloc_stats): Likewise.
13789         * malloc/mtrace.c (tr_break): Likewise.
13790         (mtrace): Likewise.
13791         (muntrace): Likewise.
13792         * misc/fstab.c (endfsent): Likewise.
13793         * misc/getclktck.c (__getclktck): Likewise.
13794         * misc/getdtsz.c (__getdtablesize): Likewise.
13795         * misc/gethostid.c (gethostid): Likewise.
13796         * misc/getpagesize.c (__getpagesize): Likewise.
13797         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
13798         (__get_nprocs): Likewise.
13799         (__get_phys_pages): Likewise.
13800         (__get_avphys_pages): Likewise.
13801         * misc/getttyent.c (getttyent): Likewise.
13802         (setttyent): Likewise.
13803         (endttyent): Likewise.
13804         * misc/getusershell.c (getusershell): Likewise.
13805         (endusershell): Likewise.
13806         (setusershell): Likewise.
13807         (initshells): Likewise.
13808         * misc/hsearch.c (__hdestroy): Likewise.
13809         * misc/sync.c (sync): Likewise.
13810         * misc/syslog.c (closelog_internal): Likewise.
13811         (closelog): Likewise.
13812         * misc/ttyslot.c (ttyslot): Likewise.
13813         * misc/vhangup.c (vhangup): Likewise.
13814         * posix/fork.c (__fork): Likewise.
13815         * posix/getegid.c (__getegid): Likewise.
13816         * posix/geteuid.c (__geteuid): Likewise.
13817         * posix/getgid.c (__getgid): Likewise.
13818         * posix/getpid.c (__getpid): Likewise.
13819         * posix/getppid.c (__getppid): Likewise.
13820         * posix/getuid.c (__getuid): Likewise.
13821         * posix/pause.c (pause): Likewise.
13822         * posix/setpgrp.c (setpgrp): Likewise.
13823         * posix/setsid.c (__setsid): Likewise.
13824         * posix/test-vfork.c (noop): Likewise.
13825         * resolv/gethnamaddr.c (_endhtent): Likewise.
13826         (_gethtent): Likewise.
13827         (ht_endhostent): Likewise.
13828         (gethostent): Likewise.
13829         (dns_service): Likewise.
13830         * stdlib/drand48.c (drand48): Likewise.
13831         * stdlib/lrand48.c (lrand48): Likewise.
13832         * stdlib/mrand48.c (mrand48): Likewise.
13833         * stdlib/rand.c (rand): Likewise.
13834         * stdlib/random.c (__random): Likewise.
13835         * stdlib/setenv.c (clearenv): Likewise.
13836         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
13837         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
13838         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
13839         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
13840         (__get_nprocs): Likewise.
13841         (__get_phys_pages): Likewise.
13842         (__get_avphys_pages): Likewise.
13843         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
13844         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
13845         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
13846         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
13847         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
13848         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
13849         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
13850         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
13851         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
13852         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
13853         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
13854         * sysdeps/mach/hurd/sync.c (sync): Likewise.
13855         * sysdeps/posix/clock.c (clock): Likewise.
13856         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
13857         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
13858         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
13859         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
13860         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
13861         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
13862         (__get_nprocs_conf): Likewise.
13863         (__get_phys_pages): Likewise.
13864         (__get_avphys_pages): Likewise.
13865         * time/clock.c (clock): Likewise.
13866         * time/tzset.c (__tzname_max): Likewise.
13867
13868 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
13869
13870         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
13871         (__bswap_32): Do not use "register".
13872         * crypt/crypt.c (_ufc_doit_r): Likewise.
13873         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
13874         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
13875         * gmon/gmon.c (__monstartup): Likewise.
13876         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
13877         * hurd/hurdmalloc.c (more_memory): Likewise.
13878         (malloc): Likewise.
13879         (free): Likewise.
13880         (realloc): Likewise.
13881         (malloc_fork_prepare): Likewise.
13882         (malloc_fork_parent): Likewise.
13883         (malloc_fork_child): Likewise.
13884         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
13885         (_svcauth_des): Likewise.
13886         * inet/inet_lnaof.c (inet_lnaof): Likewise.
13887         * inet/inet_net.c (inet_network): Likewise.
13888         * inet/inet_netof.c (inet_netof): Likewise.
13889         * inet/rcmd.c (__validuser2_sa): Likewise.
13890         * io/fts.c (fts_open): Likewise.
13891         (fts_load): Likewise.
13892         (fts_close): Likewise.
13893         (fts_read): Likewise.
13894         (fts_children): Likewise.
13895         (fts_build): Likewise.
13896         (fts_stat): Likewise.
13897         (fts_sort): Likewise.
13898         (fts_alloc): Likewise.
13899         (fts_lfree): Likewise.
13900         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
13901         (_IO_file_xsgetn): Likewise.
13902         (_IO_file_xsgetn_mmap): Likewise.
13903         * libio/iofopncook.c (_IO_cookie_read): Likewise.
13904         (_IO_cookie_write): Likewise.
13905         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
13906         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
13907         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
13908         * malloc/obstack.c (_obstack_begin): Likewise.
13909         (_obstack_begin_1): Likewise.
13910         (_obstack_newchunk): Likewise.
13911         (_obstack_allocated_p): Likewise.
13912         (obstack_free): Likewise.
13913         (_obstack_memory_used): Likewise.
13914         * misc/getttyent.c (getttynam): Likewise.
13915         (getttyent): Likewise.
13916         (skip): Likewise.
13917         (value): Likewise.
13918         * misc/getusershell.c (initshells): Likewise.
13919         * misc/syslog.c (__vsyslog_chk): Likewise.
13920         * misc/ttyslot.c (ttyslot): Likewise.
13921         * nis/nis_hash.c (__nis_hash): Likewise.
13922         * posix/fnmatch_loop.c (FCT): Likewise.
13923         * posix/getconf.c (print_all): Likewise.
13924         (main): Likewise.
13925         * posix/getopt.c (exchange): Likewise.
13926         * posix/glob.c (globfree): Likewise.
13927         (prefix_array): Likewise.
13928         (__glob_pattern_type): Likewise.
13929         * resolv/arpa/nameser.h (NS_GET16): Likewise.
13930         (NS_GET32): Likewise.
13931         (NS_PUT16): Likewise.
13932         (NS_PUT32): Likewise.
13933         * resolv/gethnamaddr.c (getanswer): Likewise.
13934         (gethostbyname2): Likewise.
13935         (gethostbyaddr): Likewise.
13936         (_gethtent): Likewise.
13937         (_gethtbyname2): Likewise.
13938         (_gethtbyaddr): Likewise.
13939         * resolv/ns_print.c (dst_s_get_int16): Likewise.
13940         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
13941         * resolv/res_init.c (__res_vinit): Likewise.
13942         (net_mask): Likewise.
13943         * resolv/res_mkquery.c (outchar): Likewise.
13944         (PRINT): Likewise.
13945         * stdio-common/printf_fp.c (outchar): Likewise.
13946         (PRINT): Likewise.
13947         * stdio-common/printf_fphex.c (outchar): Likewise.
13948         (PRINT): Likewise.
13949         * stdio-common/printf_size.c (outchar): Likewise.
13950         (PRINT): Likewise.
13951         * stdio-common/test_rdwr.c (main): Likewise.
13952         * stdio-common/tfformat.c (matches): Likewise.
13953         * stdio-common/vfprintf.c (outchar): Likewise.
13954         (printf_unknown): Likewise.
13955         (buffered_vfprintf): Likewise.
13956         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
13957         * stdio-common/xbug.c (AppendToBuffer): Likewise.
13958         (ReadFile): Likewise.
13959         * stdlib/qsort.c (SWAP): Likewise.
13960         (_quicksort): Likewise.
13961         * stdlib/setenv.c (__add_to_environ): Likewise.
13962         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
13963         * stdlib/strtol_l.c (__strtol_l): Likewise.
13964         * stdlib/tst-strtod.c (main): Likewise.
13965         * stdlib/tst-strtol.c (main): Likewise.
13966         * stdlib/tst-strtoll.c (main): Likewise.
13967         * string/bits/string2.h (__strcmp_cc): Likewise.
13968         (__strcmp_cg): Likewise.
13969         (__strcspn_c1): Likewise.
13970         (__strcspn_c2): Likewise.
13971         (__strcspn_c3): Likewise.
13972         (__strspn_c1): Likewise.
13973         (__strspn_c2): Likewise.
13974         (__strspn_c3): Likewise.
13975         (__strsep_1c): Likewise.
13976         (__strsep_2c): Likewise.
13977         (__strsep_3c): Likewise.
13978         * string/memccpy.c (__memccpy): Likewise.
13979         * string/stpcpy.c (__stpcpy): Likewise.
13980         * string/strcmp.c (strcmp): Likewise.
13981         * string/strrchr.c (strrchr): Likewise.
13982         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
13983         Likewise.
13984         * sysdeps/mach/hurd/getcwd.c
13985         (_hurd_canonicalize_directory_name_internal): Likewise.
13986         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
13987         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
13988         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
13989         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
13990         Likewise, in both definitions.
13991         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
13992         definitions.
13993         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
13994         64] (__bswap_64): Likewise.
13995         * time/test_time.c (main): Likewise.
13996         * time/tzfile.c (__tzfile_read): Likewise.
13997         (__tzfile_compute): Likewise.
13998         * time/tzset.c (__tzset_parse_tz): Likewise.
13999         (tzset_internal): Likewise.
14000         (compute_change): Likewise.
14001         * wcsmbs/wcscat.c (__wcscat): Likewise.
14002         * wcsmbs/wcschr.c (wcschr): Likewise.
14003         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
14004         * wcsmbs/wcscspn.c (wcscspn): Likewise.
14005         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
14006         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
14007         * wcsmbs/wcsspn.c (wcsspn): Likewise.
14008         * wcsmbs/wcsstr.c (wcsstr): Likewise.
14009         * wcsmbs/wmemchr.c (wmemchr): Likewise.
14010         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14011         * wcsmbs/wmemset.c (wmemset): Likewise.
14012
14013 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
14014
14015         * scripts/config.guess: Update to version 2013-05-16.
14016         * scripts/config.sub: Update to version 2013-04-24.
14017         * scripts/install-sh: Update to version 2011-11-20.07.
14018         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
14019         * scripts/move-if-change: Update to version 2012-01-06 07:23.
14020
14021 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
14022
14023         * debug/fgetws_u_chk.c: Fix leading whitespaces.
14024         * elf/sln.c: Likewise.
14025         * hurd/hurd/ioctl.h: Likewise.
14026         * hurd/hurdmalloc.c: Likewise.
14027         * hurd/xattr.c: Likewise.
14028         * include/shlib-compat.h: Likewise.
14029         * inet/ruserpass.c: Likewise.
14030         * libio/iofgets_u.c: Likewise.
14031         * libio/iofgetws_u.c: Likewise.
14032         * locale/programs/ld-identification.c: Likewise.
14033         * locale/programs/ld-time.c: Likewise.
14034         * mach/msg-destroy.c: Likewise.
14035         * nss/nss_files/files-netgrp.c: Likewise.
14036         * resolv/res_data.c: Likewise.
14037         * soft-fp/op-1.h: Likewise.
14038         * soft-fp/op-2.h: Likewise.
14039         * soft-fp/op-4.h: Likewise.
14040         * soft-fp/op-common.h: Likewise.
14041         * stdio-common/printf_fphex.c: Likewise.
14042         * stdlib/strtod_l.c: Likewise.
14043         * sunrpc/rpc/clnt.h: Likewise.
14044         * sysdeps/generic/framestate.c: Likewise.
14045         * sysdeps/i386/bsd-_setjmp.S: Likewise.
14046         * sysdeps/i386/bsd-setjmp.S: Likewise.
14047         * sysdeps/i386/__longjmp.S: Likewise.
14048         * sysdeps/i386/setjmp.S: Likewise.
14049         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14050         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14051         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14052         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14053         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14054         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
14055         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14056         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14057         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14058         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
14059         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
14060         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
14061         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
14062         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
14063         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
14064         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14065         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
14066         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
14067         * sysdeps/ieee754/support.c: Likewise.
14068         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
14069         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
14070         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
14071         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
14072         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
14073         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
14074         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
14075         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
14076         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
14077         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
14078         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
14079         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
14080         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
14081         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
14082         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
14083         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
14084         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
14085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
14086
14087 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
14088
14089         * posix/transbug.c: Remove executable mode.
14090
14091 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
14092
14093         * crypt/speeds.c: Remove trailing whitespace.
14094         * dlfcn/default.c: Likewise.
14095         * elf/ifuncdep2.c: Likewise.
14096         * elf/ifuncmain1.c: Likewise.
14097         * elf/ifuncmain1vis.c: Likewise.
14098         * elf/testobj.h: Likewise.
14099         * elf/tst-stackguard1.c: Likewise.
14100         * gmon/sys/gmon.h: Likewise.
14101         * hurd/hurdmsg.c: Likewise.
14102         * hurd/new-fd.c: Likewise.
14103         * hurd/ports-get.c: Likewise.
14104         * iconvdata/ibm1008_420.c: Likewise.
14105         * inet/tst-getni1.c: Likewise.
14106         * inet/tst-getni2.c: Likewise.
14107         * libio/ioungetc.c: Likewise.
14108         * libio/wfiledoalloc.c: Likewise.
14109         * manual/libm-err-tab.pl: Likewise.
14110         * math/w_dremf.c: Likewise.
14111         * misc/ftruncate.c: Likewise.
14112         * posix/bug-glob2.c: Likewise.
14113         * posix/tst-pcre.c: Likewise.
14114         * posix/wait4.c: Likewise.
14115         * resolv/README: Likewise.
14116         * resolv/res_debug.h: Likewise.
14117         * resolv/tst-inet_ntop.c: Likewise.
14118         * setjmp/bug269-setjmp.c: Likewise.
14119         * soft-fp/extended.h: Likewise.
14120         * soft-fp/op-1.h: Likewise.
14121         * soft-fp/op-2.h: Likewise.
14122         * soft-fp/op-4.h: Likewise.
14123         * soft-fp/op-8.h: Likewise.
14124         * soft-fp/testit.c: Likewise.
14125         * stdio-common/bug16.c: Likewise.
14126         * stdlib/random.c: Likewise.
14127         * sunrpc/rpcsvc/rquota.x: Likewise.
14128         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
14129         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14130         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14131         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14132         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14133         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14134         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14135         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14136         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14137         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14138         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14139         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
14140         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14141         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14142         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14143         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14144         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14145         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14146         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
14147         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14148         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14149         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14150         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
14151         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
14152         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14153         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14154         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
14155         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14156         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14157         * sysdeps/ieee754/s_lib_version.c: Likewise.
14158         * sysdeps/mach/hurd/check_fds.c: Likewise.
14159         * sysdeps/mach/hurd/getsockname.c: Likewise.
14160         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
14161         * sysdeps/mach/hurd/recvfrom.c: Likewise.
14162         * sysdeps/powerpc/bits/link.h: Likewise.
14163         * sysdeps/powerpc/dl-procinfo.c: Likewise.
14164         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
14165         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
14166         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
14167         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
14168         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
14169         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
14170         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
14171         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
14172         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14173         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
14174         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
14175         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
14176         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14177         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14178         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14179         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
14180         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
14181         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14182         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14183         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14184         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
14185         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14186         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
14187         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
14188         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
14189         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
14190         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14191         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14192         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
14193         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
14194         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
14195         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14196         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
14197         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
14198         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
14199         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
14200         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
14201         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
14202         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
14203         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
14204         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
14205         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
14206         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
14207         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
14208         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
14209         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
14210         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
14211         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
14212         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
14213         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14214         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14215         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
14216         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
14217         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
14218         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
14219         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
14220         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14221         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
14222         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
14223         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
14224         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
14225         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
14226         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
14227         * sysdeps/powerpc/sysdep.h: Likewise.
14228         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
14229         * sysdeps/s390/s390-64/sub_n.S: Likewise.
14230         * sysdeps/sh/dl-trampoline.S: Likewise.
14231         * sysdeps/sh/memset.S: Likewise.
14232         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
14233         * sysdeps/sh/strlen.S: Likewise.
14234         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
14235         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
14236         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
14237         * sysdeps/sparc/sparc32/rem.S: Likewise.
14238         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
14239         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
14240         * sysdeps/sparc/sparc32/strchr.S: Likewise.
14241         * sysdeps/sparc/sparc32/udiv.S: Likewise.
14242         * sysdeps/sparc/sparc32/urem.S: Likewise.
14243         * sysdeps/sparc/sparc64/add_n.S: Likewise.
14244         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
14245         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
14246         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
14247         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
14248         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
14249         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
14250         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
14251         * sysdeps/unix/bsd/times.c: Likewise.
14252         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
14253         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
14254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
14255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
14256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
14257         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
14258         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
14259         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
14260         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
14261         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
14262         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
14263         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
14264         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
14265         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
14266         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
14267         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
14268         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
14269         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14270         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
14271         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
14272         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
14273         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
14274         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
14275         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
14276         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
14277         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
14278         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
14279         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14280         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
14281         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
14282         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
14283         * sysdeps/x86_64/strcspn.S: Likewise.
14284
14285 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14286
14287         * locale/C-translit.h: Revert #include <stdint.h> because this is a
14288         generated file.  Regenerate properly from gen-translit.pl.
14289         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
14290         locale/C-translit.h.
14291
14292 2013-06-05  Andreas Schwab  <schwab@suse.de>
14293
14294         [BZ #15100]
14295         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
14296         week as 6 instead of -1.
14297         * time/tst-strptime.c (day_tests): Add test case.
14298
14299 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
14300
14301         * sysdeps/generic/math_private.h
14302         (libc_feholdexcept_setround_53bit): Replace with
14303         libc_feholdsetround_53bit.
14304         (libc_feupdateenv_53bit): Replace with
14305         libc_feresetround_53bit.
14306         (SET_RESTORE_ROUND_53BIT): Adjust.
14307
14308 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
14309
14310         * string/test-strchrnul.c: Add copyright header.
14311
14312         * posix/tst-getaddrinfo4.c: Increase test timeout.
14313
14314 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
14315
14316         [BZ #15536]
14317         * math/libm-test.inc (MAX_EXP): Remove
14318         (MIN_EXP): Define.
14319         (ulp): Use MIN_EXP - MANT_DIG.
14320         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
14321
14322 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
14323
14324         * po/be.po: Revert last change.
14325         * po/zh_CN.po: Likewise.
14326         * po/header.pot: Likewise.
14327
14328 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
14329
14330         * Makefile ($(common-objpfx)linkobj/libc.so): Define
14331         link-libc-deps to empty as target-specific variable.
14332         * Makerules (link-libc-args): New variable.
14333         (libc-for-link): Likewise.
14334         (link-libc-deps): Likewise.
14335         (lib%.so): Depend on $(link-libc-deps).  Link with
14336         $(link-libc-args).
14337         (build-module): Link with $(link-libc-args).
14338         (build-module-asneeded): Likewise.
14339         (build-module-helper-objlist): Filter out $(link-libc-deps) from
14340         list of objects.
14341         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
14342         target-specific variable.
14343         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
14344         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
14345         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
14346         libc.
14347         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
14348         libc and ld.so.
14349         ($(objpfx)libpcprofile.so): Likewise.
14350         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
14351         libc_nonshared.a.
14352         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
14353         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
14354         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
14355         $(link-libc-deps).
14356         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
14357         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
14358         * login/Makefile ($(objpfx)libutil.so): Likewise.
14359         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
14360         * math/Makefile ($(objpfx)libm.so): Likewise.
14361         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
14362         $(objpfx)libnsl.so): Define libc-for-link as target-specific
14363         variable instead of depending directly on libc.
14364         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
14365         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
14366         $(link-libc-deps).
14367         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
14368         libc.
14369         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
14370         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
14371         ($(objpfx)libanl.so): Likewise.
14372         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
14373         ld.so.
14374         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
14375         $(link-libc-deps).
14376         * sysdeps/i386/fpu/Makefile: Remove file.
14377         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
14378         ($(objpfx)libm.so): Remove dependency on ld.so.
14379
14380 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
14381
14382         [BZ # 15553]
14383         * nis/yp_xdr.c (XDRMAXNAME): Define.
14384         (XDRMAXRECORD): Define.
14385         (xdr_domainname): Use XDRMAXNAME.
14386         (xdr_mapname): Likewise.
14387         (xdr_peername): Likewise.
14388         (xdr_keydat): Use XDRMAXRECORD.
14389         (xdr_valdat): Likewise.
14390
14391 2013-05-30  Jeff Law  <law@redhat.com>
14392
14393         [BZ #14256]
14394         * manual/errno.texi (ESTALE): Update to account for more than
14395         just NFS file systems.
14396         * sysdeps/gnu/errlist.c: Regenerated.
14397
14398 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
14399
14400         [BZ #15465]
14401         * elf/Makefile (tests): Add tst-null-argv.
14402         (modules-names):  Add tst-null-argv-lib.
14403         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
14404         (tst-null-argv-ENV): Set environment for tst-null-argv.
14405         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
14406         (RTLD_PROGNAME): New macro.
14407         * elf/tst-null-argv.c: New test case.
14408         * elf/tst-null-argv-lib.c: Library for test case.
14409         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
14410         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
14411         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
14412         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
14413         * elf/dl-init.c (call_init): Likewise.
14414         (_dl_init): Likewise.
14415         * elf/dl-load.c (print_search_path): Likewise.
14416         (_dl_map_object): Likewise.
14417         * elf/dl-lookup.c (do_lookup_x): Likewise.
14418         (add_dependency): Likewise.
14419         (_dl_lookup_symbol_x): Likewise.
14420         (_dl_debug_bindings): Likewise.
14421         * elf/dl-open.c (_dl_show_scope): Likewise.
14422         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
14423         * elf/dl-version.c (match_symbol): Likewise.
14424         (_dl_check_map_versions): Likewise.
14425         * elf/rtld.c (dl_main): Likewise.
14426         (print_unresolved): Use RTLD_PROGNAME.
14427         (print_missing_version): Likewise.
14428         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
14429         (elf_machine_rela): Likewise.
14430         * sysdeps/powerpc/powerpc32/dl-machine.c
14431         (__process_machine_rela): Likewise.
14432         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14433         Likewise.
14434         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
14435         Likewise.
14436         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
14437         Likewise.
14438         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14439         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
14440         Likewise.
14441         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
14442         Likewise.
14443         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14444
14445 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
14446
14447         * po/be.po: Add descriptive title.
14448         * po/zh_CN.po: Likewise.
14449         * po/header.pot: Likewise.
14450
14451 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
14452
14453         * locale/programs/locarchive.c (create_archive): Inlucde fname in
14454         error message.
14455         (enlarge_archive): Likewise.
14456
14457 2013-05-28  Ben North  <ben@redfrontdoor.org>
14458
14459         * manual/arith.texi (frexp): It is the magnitude of the return
14460         value which lies in [0.5, 1), not the return value itself.
14461
14462 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14463
14464         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14465
14466 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
14467
14468         * stdio-common/bug26.c (main): Correct fscanf template.
14469
14470         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
14471         declare _dl_skip_args.
14472
14473         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
14474         Don't declare.
14475
14476         * manual/platform.texi: Add missing @end deftypefun.
14477
14478 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
14479
14480         [BZ #15529]
14481         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
14482         bit of mantissa of 2^16382.
14483         * math/libm-test.inc (hypot_test_data): Add more tests.
14484
14485         * math/libm-test.inc: Add drem and pow10 to list of tested
14486         functions.
14487         (pow10_test): New function.
14488         (drem_test): Likewise.
14489         (drem_test_tonearest): Likewise.
14490         (drem_test_towardzero): Likewise.
14491         (drem_test_downward): Likewise.
14492         (drem_test_upward): Likewise.
14493         (main): Call the new functions.
14494
14495         * math/libm-test.inc (finite_test_data): Remove.
14496         (finite_test): Run tests from isfinite_test_data.
14497         (gamma_test_data): Remove.
14498         (gamma_test): Run tests from lgamma_test_data.
14499         * sysdeps/i386/fpu/libm-test-ulps: Update.
14500         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14501
14502 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14503
14504         * manual/platform.texi: Add PowerPC PPR function set documentation.
14505         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
14506         implementation.
14507
14508 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
14509
14510         * math/libm-test.inc (MAX_EXP): Define.
14511         (ULPDIFF): Define.
14512         (ulp): New function.
14513         (check_float_internal): Use ULPDIFF.
14514         (cpow_test): Disable failing test.
14515         (check_ulp): Test ulp() implemetnation.
14516         (main): Call check_ulp before starting tests.
14517
14518 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
14519
14520         * math/gen-libm-test.pl (generate_testfile): Do not handle
14521         START_DATA and END_DATA.
14522         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
14523         END_DATA.
14524         (acos_tonearest_test_data): Likewise.
14525         (acos_towardzero_test_data): Likewise.
14526         (acos_downward_test_data): Likewise.
14527         (acos_upward_test_data): Likewise.
14528         (acosh_test_data): Likewise.
14529         (asin_test_data): Likewise.
14530         (asin_tonearest_test_data): Likewise.
14531         (asin_towardzero_test_data): Likewise.
14532         (asin_downward_test_data): Likewise.
14533         (asin_upward_test_data): Likewise.
14534         (asinh_test_data): Likewise.
14535         (atan_test_data): Likewise.
14536         (atanh_test_data): Likewise.
14537         (atan2_test_data): Likewise.
14538         (cabs_test_data): Likewise.
14539         (cacos_test_data): Likewise.
14540         (cacosh_test_data): Likewise.
14541         (carg_test_data): Likewise.
14542         (casin_test_data): Likewise.
14543         (casinh_test_data): Likewise.
14544         (catan_test_data): Likewise.
14545         (catanh_test_data): Likewise.
14546         (cbrt_test_data): Likewise.
14547         (ccos_test_data): Likewise.
14548         (ccosh_test_data): Likewise.
14549         (ceil_test_data): Likewise.
14550         (cexp_test_data): Likewise.
14551         (cimag_test_data): Likewise.
14552         (clog_test_data): Likewise.
14553         (clog10_test_data): Likewise.
14554         (conj_test_data): Likewise.
14555         (copysign_test_data): Likewise.
14556         (cos_test_data): Likewise.
14557         (cos_tonearest_test_data): Likewise.
14558         (cos_towardzero_test_data): Likewise.
14559         (cos_downward_test_data): Likewise.
14560         (cos_upward_test_data): Likewise.
14561         (cosh_test_data): Likewise.
14562         (cosh_tonearest_test_data): Likewise.
14563         (cosh_towardzero_test_data): Likewise.
14564         (cosh_downward_test_data): Likewise.
14565         (cosh_upward_test_data): Likewise.
14566         (cpow_test_data): Likewise.
14567         (cproj_test_data): Likewise.
14568         (creal_test_data): Likewise.
14569         (csin_test_data): Likewise.
14570         (csinh_test_data): Likewise.
14571         (csqrt_test_data): Likewise.
14572         (ctan_test_data): Likewise.
14573         (ctan_tonearest_test_data): Likewise.
14574         (ctan_towardzero_test_data): Likewise.
14575         (ctan_downward_test_data): Likewise.
14576         (ctan_upward_test_data): Likewise.
14577         (ctanh_test_data): Likewise.
14578         (ctanh_tonearest_test_data): Likewise.
14579         (ctanh_towardzero_test_data): Likewise.
14580         (ctanh_downward_test_data): Likewise.
14581         (ctanh_upward_test_data): Likewise.
14582         (erf_test_data): Likewise.
14583         (erfc_test_data): Likewise.
14584         (exp_test_data): Likewise.
14585         (exp_tonearest_test_data): Likewise.
14586         (exp_towardzero_test_data): Likewise.
14587         (exp_downward_test_data): Likewise.
14588         (exp_upward_test_data): Likewise.
14589         (exp10_test_data): Likewise.
14590         (exp2_test_data): Likewise.
14591         (expm1_test_data): Likewise.
14592         (fabs_test_data): Likewise.
14593         (fdim_test_data): Likewise.
14594         (finite_test_data): Likewise.
14595         (floor_test_data): Likewise.
14596         (fma_test_data): Likewise.
14597         (fma_towardzero_test_data): Likewise.
14598         (fma_downward_test_data): Likewise.
14599         (fma_upward_test_data): Likewise.
14600         (fmax_test_data): Likewise.
14601         (fmin_test_data): Likewise.
14602         (fmod_test_data): Likewise.
14603         (fpclassify_test_data): Likewise.
14604         (frexp_test_data): Likewise.
14605         (gamma_test_data): Likewise.
14606         (hypot_test_data): Likewise.
14607         (ilogb_test_data): Likewise.
14608         (isfinite_test_data): Likewise.
14609         (isgreater_test_data): Likewise.
14610         (isgreaterequal_test_data): Likewise.
14611         (isinf_test_data): Likewise.
14612         (isless_test_data): Likewise.
14613         (islessequal_test_data): Likewise.
14614         (islessgreater_test_data): Likewise.
14615         (isnan_test_data): Likewise.
14616         (isnormal_test_data): Likewise.
14617         (issignaling_test_data): Likewise.
14618         (isunordered_test_data): Likewise.
14619         (j0_test_data): Likewise.
14620         (j1_test_data): Likewise.
14621         (jn_test_data): Likewise.
14622         (ldexp_test_data): Likewise.
14623         (lgamma_test_data): Likewise.
14624         (lrint_test_data): Likewise.
14625         (lrint_tonearest_test_data): Likewise.
14626         (lrint_towardzero_test_data): Likewise.
14627         (lrint_downward_test_data): Likewise.
14628         (lrint_upward_test_data): Likewise.
14629         (llrint_test_data): Likewise.
14630         (llrint_tonearest_test_data): Likewise.
14631         (llrint_towardzero_test_data): Likewise.
14632         (llrint_downward_test_data): Likewise.
14633         (llrint_upward_test_data): Likewise.
14634         (log_test_data): Likewise.
14635         (log10_test_data): Likewise.
14636         (log1p_test_data): Likewise.
14637         (log2_test_data): Likewise.
14638         (logb_test_data): Likewise.
14639         (logb_downward_test_data): Likewise.
14640         (lround_test_data): Likewise.
14641         (llround_test_data): Likewise.
14642         (modf_test_data): Likewise.
14643         (nearbyint_test_data): Likewise.
14644         (nextafter_test_data): Likewise.
14645         (nexttoward_test_data): Likewise.
14646         (pow_test_data): Likewise.
14647         (pow_tonearest_test_data): Likewise.
14648         (pow_towardzero_test_data): Likewise.
14649         (pow_downward_test_data): Likewise.
14650         (pow_upward_test_data): Likewise.
14651         (remainder_test_data): Likewise.
14652         (remainder_tonearest_test_data): Likewise.
14653         (remainder_towardzero_test_data): Likewise.
14654         (remainder_downward_test_data): Likewise.
14655         (remainder_upward_test_data): Likewise.
14656         (remquo_test_data): Likewise.
14657         (rint_test_data): Likewise.
14658         (rint_tonearest_test_data): Likewise.
14659         (rint_towardzero_test_data): Likewise.
14660         (rint_downward_test_data): Likewise.
14661         (rint_upward_test_data): Likewise.
14662         (round_test_data): Likewise.
14663         (scalb_test_data): Likewise.
14664         (scalbn_test_data): Likewise.
14665         (scalbln_test_data): Likewise.
14666         (signbit_test_data): Likewise.
14667         (sin_test_data): Likewise.
14668         (sin_tonearest_test_data): Likewise.
14669         (sin_towardzero_test_data): Likewise.
14670         (sin_downward_test_data): Likewise.
14671         (sin_upward_test_data): Likewise.
14672         (sincos_test_data): Likewise.
14673         (sinh_test_data): Likewise.
14674         (sinh_tonearest_test_data): Likewise.
14675         (sinh_towardzero_test_data): Likewise.
14676         (sinh_downward_test_data): Likewise.
14677         (sinh_upward_test_data): Likewise.
14678         (sqrt_test_data): Likewise.
14679         (tan_test_data): Likewise.
14680         (tan_tonearest_test_data): Likewise.
14681         (tan_towardzero_test_data): Likewise.
14682         (tan_downward_test_data): Likewise.
14683         (tan_upward_test_data): Likewise.
14684         (tanh_test_data): Likewise.
14685         (tgamma_test_data): Likewise.
14686         (trunc_test_data): Likewise.
14687         (y0_test_data): Likewise.
14688         (y1_test_data): Likewise.
14689         (yn_test_data): Likewise.
14690         (significand_test_data): Likewise.
14691
14692         * math/gen-libm-test.pl (@functions): Remove variable.
14693         (generate_testfile): Don't handle START and END lines.
14694         * math/libm-test.inc (START): New macro.
14695         (END): Likewise.
14696         (END_COMPLEX): Likewise.
14697         (acos_test): Use END macro without arguments.
14698         (acos_test_tonearest): Likewise.
14699         (acos_test_towardzero): Likewise.
14700         (acos_test_downward): Likewise.
14701         (acos_test_upward): Likewise.
14702         (acosh_test): Likewise.
14703         (asin_test): Likewise.
14704         (asin_test_tonearest): Likewise.
14705         (asin_test_towardzero): Likewise.
14706         (asin_test_downward): Likewise.
14707         (asin_test_upward): Likewise.
14708         (asinh_test): Likewise.
14709         (atan_test): Likewise.
14710         (atanh_test): Likewise.
14711         (atan2_test): Likewise.
14712         (cabs_test): Likewise.
14713         (cacos_test): Use END_COMPLEX macro without arguments.
14714         (cacosh_test): Likewise.
14715         (carg_test): Use END macro without arguments.
14716         (casin_test): Use END_COMPLEX macro without arguments.
14717         (casinh_test): Likewise.
14718         (catan_test): Likewise.
14719         (catanh_test): Likewise.
14720         (cbrt_test): Use END macro without arguments.
14721         (ccos_test): Use END_COMPLEX macro without arguments.
14722         (ccosh_test): Likewise.
14723         (ceil_test): Use END macro without arguments.
14724         (cexp_test): Use END_COMPLEX macro without arguments.
14725         (cimag_test): Use END macro without arguments.
14726         (clog_test): Use END_COMPLEX macro without arguments.
14727         (clog10_test): Likewise.
14728         (conj_test): Likewise.
14729         (copysign_test): Use END macro without arguments.
14730         (cos_test): Likewise.
14731         (cos_test_tonearest): Likewise.
14732         (cos_test_towardzero): Likewise.
14733         (cos_test_downward): Likewise.
14734         (cos_test_upward): Likewise.
14735         (cosh_test): Likewise.
14736         (cosh_test_tonearest): Likewise.
14737         (cosh_test_towardzero): Likewise.
14738         (cosh_test_downward): Likewise.
14739         (cosh_test_upward): Likewise.
14740         (cpow_test): Use END_COMPLEX macro without arguments.
14741         (cproj_test): Likewise.
14742         (creal_test): Use END macro without arguments.
14743         (csin_test): Use END_COMPLEX macro without arguments.
14744         (csinh_test): Likewise.
14745         (csqrt_test): Likewise.
14746         (ctan_test): Likewise.
14747         (ctan_test_tonearest): Likewise.
14748         (ctan_test_towardzero): Likewise.
14749         (ctan_test_downward): Likewise.
14750         (ctan_test_upward): Likewise.
14751         (ctanh_test): Likewise.
14752         (ctanh_test_tonearest): Likewise.
14753         (ctanh_test_towardzero): Likewise.
14754         (ctanh_test_downward): Likewise.
14755         (ctanh_test_upward): Likewise.
14756         (erf_test): Use END macro without arguments.
14757         (erfc_test): Likewise.
14758         (exp_test): Likewise.
14759         (exp_test_tonearest): Likewise.
14760         (exp_test_towardzero): Likewise.
14761         (exp_test_downward): Likewise.
14762         (exp_test_upward): Likewise.
14763         (exp10_test): Likewise.
14764         (exp2_test): Likewise.
14765         (expm1_test): Likewise.
14766         (fabs_test): Likewise.
14767         (fdim_test): Likewise.
14768         (finite_test): Likewise.
14769         (floor_test): Likewise.
14770         (fma_test): Likewise.
14771         (fma_test_towardzero): Likewise.
14772         (fma_test_downward): Likewise.
14773         (fma_test_upward): Likewise.
14774         (fmax_test): Likewise.
14775         (fmin_test): Likewise.
14776         (fmod_test): Likewise.
14777         (fpclassify_test): Likewise.
14778         (frexp_test): Likewise.
14779         (gamma_test): Likewise.
14780         (hypot_test): Likewise.
14781         (ilogb_test): Likewise.
14782         (isfinite_test): Likewise.
14783         (isgreater_test): Likewise.
14784         (isgreaterequal_test): Likewise.
14785         (isinf_test): Likewise.
14786         (isless_test): Likewise.
14787         (islessequal_test): Likewise.
14788         (islessgreater_test): Likewise.
14789         (isnan_test): Likewise.
14790         (isnormal_test): Likewise.
14791         (issignaling_test): Likewise.
14792         (isunordered_test): Likewise.
14793         (j0_test): Likewise.
14794         (j1_test): Likewise.
14795         (jn_test): Likewise.
14796         (ldexp_test): Likewise.
14797         (lgamma_test): Likewise.
14798         (lrint_test): Likewise.
14799         (lrint_test_tonearest): Likewise.
14800         (lrint_test_towardzero): Likewise.
14801         (lrint_test_downward): Likewise.
14802         (lrint_test_upward): Likewise.
14803         (llrint_test): Likewise.
14804         (llrint_test_tonearest): Likewise.
14805         (llrint_test_towardzero): Likewise.
14806         (llrint_test_downward): Likewise.
14807         (llrint_test_upward): Likewise.
14808         (log_test): Likewise.
14809         (log10_test): Likewise.
14810         (log1p_test): Likewise.
14811         (log2_test): Likewise.
14812         (logb_test): Likewise.
14813         (logb_test_downward): Likewise.
14814         (lround_test): Likewise.
14815         (llround_test): Likewise.
14816         (modf_test): Likewise.
14817         (nearbyint_test): Likewise.
14818         (nextafter_test): Likewise.
14819         (nexttoward_test): Likewise.
14820         (pow_test): Likewise.
14821         (pow_test_tonearest): Likewise.
14822         (pow_test_towardzero): Likewise.
14823         (pow_test_downward): Likewise.
14824         (pow_test_upward): Likewise.
14825         (remainder_test): Likewise.
14826         (remainder_test_tonearest): Likewise.
14827         (remainder_test_towardzero): Likewise.
14828         (remainder_test_downward): Likewise.
14829         (remainder_test_upward): Likewise.
14830         (remquo_test): Likewise.
14831         (rint_test): Likewise.
14832         (rint_test_tonearest): Likewise.
14833         (rint_test_towardzero): Likewise.
14834         (rint_test_downward): Likewise.
14835         (rint_test_upward): Likewise.
14836         (round_test): Likewise.
14837         (scalb_test): Likewise.
14838         (scalbn_test): Likewise.
14839         (scalbln_test): Likewise.
14840         (signbit_test): Likewise.
14841         (sin_test): Likewise.
14842         (sin_test_tonearest): Likewise.
14843         (sin_test_towardzero): Likewise.
14844         (sin_test_downward): Likewise.
14845         (sin_test_upward): Likewise.
14846         (sincos_test): Likewise.
14847         (sinh_test): Likewise.
14848         (sinh_test_tonearest): Likewise.
14849         (sinh_test_towardzero): Likewise.
14850         (sinh_test_downward): Likewise.
14851         (sinh_test_upward): Likewise.
14852         (sqrt_test): Likewise.
14853         (tan_test): Likewise.
14854         (tan_test_tonearest): Likewise.
14855         (tan_test_towardzero): Likewise.
14856         (tan_test_downward): Likewise.
14857         (tan_test_upward): Likewise.
14858         (tanh_test): Likewise.
14859         (tgamma_test): Likewise.
14860         (trunc_test): Likewise.
14861         (y0_test): Likewise.
14862         (y1_test): Likewise.
14863         (yn_test): Likewise.
14864         (significand_test): Likewise.
14865
14866 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
14867
14868         [BZ #15381]
14869         * libio/genops.c (_IO_no_init): Initialize wide struct info.
14870
14871 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
14872
14873         [BZ #14894]
14874         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
14875         __ppc_mdoio and __ppc_mdoom.
14876         * manual/platform.texi: Document new functions __ppc_yield,
14877         __ppc_mdoio and __ppc_mdoom.
14878
14879 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
14880
14881         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
14882         (main): Mention "tls" pseudo-hwcap is legacy.
14883         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
14884
14885 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
14886
14887         * math/gen-libm-test.pl (parse_args): Output only string of
14888         arguments as text for test name, not full call or descriptions of
14889         tests for extra outputs.
14890         (generate_testfile): Do not pass function name to parse_args.
14891         Generate this_func variable from START.
14892         * math/libm-test.inc (struct test_f_f_data): Rename test_name
14893         field to arg_str.
14894         (struct test_ff_f_data): Likewise.
14895         (test_ff_f_data_nexttoward): Likewise.
14896         (struct test_fi_f_data): Likewise.
14897         (struct test_fl_f_data): Likewise.
14898         (struct test_if_f_data): Likewise.
14899         (struct test_fff_f_data): Likewise.
14900         (struct test_c_f_data): Likewise.
14901         (struct test_f_f1_data): Likewise.  Remove field extra_name.
14902         (struct test_fF_f1_data): Likewise.
14903         (struct test_ffI_f1_data): Likewise.
14904         (struct test_c_c_data): Rename test_name field to arg_str.
14905         (struct test_cc_c_data): Likewise.
14906         (struct test_f_i_data): Likewise.
14907         (struct test_ff_i_data): Likewise.
14908         (struct test_f_l_data): Likewise.
14909         (struct test_f_L_data): Likewise.
14910         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
14911         and extra2_name.
14912         (COMMON_TEST_SETUP): New macro.
14913         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
14914         (COMMON_TEST_CLEANUP): Likewise.
14915         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
14916         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
14917         macros.
14918         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
14919         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
14920         macros.
14921         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
14922         (RUN_TEST_fff_f): Take argument string.  Call new setup and
14923         cleanup macros.
14924         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
14925         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
14926         macros.
14927         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
14928         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
14929         macros.
14930         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
14931         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
14932         cleanup macros.
14933         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
14934         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
14935         cleanup macros.
14936         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
14937         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
14938         cleanup macros.
14939         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
14940         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
14941         macros.
14942         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
14943         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
14944         macros.
14945         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
14946         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
14947         macros.
14948         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
14949         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
14950         cleanup macros.
14951         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
14952         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
14953         cleanup macros.
14954         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
14955         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
14956         macros.
14957         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
14958         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
14959         cleanup macros.
14960         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
14961         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
14962         macros.
14963         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
14964         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
14965         macros.
14966         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
14967         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
14968         cleanup macros.
14969         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
14970
14971 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
14972
14973         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
14974         to _sifields.sigfault.
14975         (si_addr_lsb): Define new macro.
14976         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
14977         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
14978         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
14979
14980 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
14981
14982         [BZ #15441]
14983         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
14984         returns -1.
14985         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
14986         null return -1.
14987         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
14988         loading the domain.
14989
14990 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
14991
14992         * math/gen-libm-test.pl (parse_args): Do not include expected
14993         result in test name.
14994         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
14995         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14996         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
14997         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14998         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
14999         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15000
15001 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
15002
15003         * benchtests/Makefile: Sort function entries.
15004
15005         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
15006         tanh, asinh, acosh, atanh.
15007         * benchtests/acos-inputs: New file.
15008         * benchtests/acosh-inputs: New file.
15009         * benchtests/asin-inputs: New file.
15010         * benchtests/asinh-inputs: New file.
15011         * benchtests/atanh-inputs: New file.
15012         * benchtests/cosh-inputs: New file.
15013         * benchtests/log-inputs: New file.
15014         * benchtests/sinh-inputs: New file.
15015         * benchtests/tanh-inputs: New file.
15016
15017 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
15018
15019         [BZ #15339]
15020         * posix/tst-getaddrinfo4.c: New test.
15021         * posix/Makefile (tests): Add it.
15022
15023 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15024
15025         [BZ #15339]
15026         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
15027         when no services were used.
15028         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
15029         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
15030
15031 2013-05-21  Andreas Schwab  <schwab@suse.de>
15032
15033         [BZ #15014]
15034         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
15035         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
15036         successful.
15037         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
15038         redundant variable declarations and reallocation of buffer when
15039         parsing as IPv6 address.  Always set NSS status when called from
15040         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
15041         buffer too small.  Correct computation of needed size.
15042         * nss/Makefile (tests): Add test-digits-dots.
15043         * nss/test-digits-dots.c: New test.
15044
15045 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15046
15047         * benchtests/Makefile: Remove instructions for adding
15048         benchmark tests.
15049         * benchtests/README: New file to explain how to execute and
15050         enhance the benchmark tests.
15051
15052 2013-05-21  Andreas Schwab  <schwab@suse.de>
15053
15054         [BZ #15493]
15055         * setjmp/Makefile (tests): Add tst-sigsetjmp.
15056         * setjmp/tst-sigsetjmp.c: New test.
15057
15058 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
15059
15060         * sysdeps/x86_64/memset.S (memset): New implementation.
15061         (__bzero): Likewise.
15062         (__memset_tail): New function.
15063
15064 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
15065
15066         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
15067         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
15068         __memcpy_sse2_unaligned ifunc selection.
15069         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
15070         Add memcpy-sse2-unaligned.S.
15071         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
15072         Add: __memcpy_sse2_unaligned.
15073
15074 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
15075
15076         [BZ #15490]
15077         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
15078         math_force_eval before restoring floating-point envrionment.
15079         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
15080         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
15081         Likewise.
15082         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
15083         <math_private.h>.
15084         (__nearbyintl): Use math_force_eval before restoring
15085         floating-point environment.
15086         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
15087
15088         * math/gen-libm-test.pl (special_functions): Remove.
15089         (parse_args): Don't handle TEST_extra.  Handle functions with no
15090         return value.
15091         * math/libm-test.inc (struct test_sincos_data): Replace with
15092         struct test_fFF_11_data.
15093         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
15094         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
15095         (sincos_test_data): Change element type to struct
15096         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
15097         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
15098         RUN_TEST_LOOP_sincos.
15099         * math/README.libm-test: Don't mention special handling of
15100         individual functions.
15101         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
15102         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
15103         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
15104         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
15105         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
15106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15107
15108         * math/gen-libm-test.pl (get_variable): Remove function.
15109         (parse_args): Don't show pointer parameters to call in test
15110         names.  Use "extra output N" in test names for extra outputs
15111         rather than naming variables.
15112
15113 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
15114
15115         [BZ #15488]
15116         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
15117         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
15118         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
15119         double tests.
15120         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
15121         disable.
15122         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
15123         check_long_double.
15124
15125         * math/gen-libm-test.pl (@tests): Remove variable.
15126         ($count): Likewise.
15127         (new_test): Remove function.
15128         (show_exceptions): New function.
15129         (special_functions): Use show_exceptions instead of new_test.
15130         (parse_args): Likewise.
15131         (generate_testfile): Pass only function name in generated call to
15132         print_max_error or print_complex_max_error.
15133         (get_ulps): Do not handle complex tests specially.
15134         (output_test): Rename to ...
15135         (get_all_ulps_for_test): ... this.  Return a string rather than
15136         printing to a file.  Require ulps to be present.
15137         (output_ulps): Generate arrays rather than #defines.
15138         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
15139         (struct ulp_data): New type.
15140         (BUILD_COMPLEX_ULP): Remove macro.
15141         (compare_ulp_data): New function.
15142         (find_ulps): Likewise.
15143         (find_test_ulps): Likewise.
15144         (find_function_ulps): Likewise.
15145         (find_complex_function_ulps): Likewise.
15146         (print_max_error): Determine allowed ulps using
15147         find_function_ulps.
15148         (print_complex_max_error): Determine allowed ulps using
15149         find_complex_function_ulps.
15150         (check_float_internal): Determine max ulps using find_test_ulps.
15151         (check_float): Do not take max_ulp parameter.  Update call to
15152         check_float_internal.
15153         (check_complex): Likewise.
15154         (check_int): Do not take max_ulp parameter.
15155         (check_long): Likewise.
15156         (check_bool): Likewise.
15157         (check_longlong): Likewise.
15158         (struct test_f_f_data): Remove max_ulp field.
15159         (struct test_ff_f_data): Likewise.
15160         (struct test_ff_f_data_nexttoward): Likewise.
15161         (struct test_fi_f_data): Likewise.
15162         (struct test_fl_f_data): Likewise.
15163         (struct test_if_f_data): Likewise.
15164         (struct test_fff_f_data): Likewise.
15165         (struct test_c_f_data): Likewise.
15166         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
15167         (struct test_fF_f1_data): Likewise.
15168         (struct test_ffI_f1_data): Likewise.
15169         (struct test_c_c_data): Remove max_ulp field.
15170         (struct test_cc_c_data): Likewise.
15171         (struct test_f_i_data): Likewise.
15172         (struct test_ff_i_data): Likewise.
15173         (struct test_f_l_data): Likewise.
15174         (struct test_f_L_data): Likewise.
15175         (struct test_sincos_data): Likewise.
15176         (RUN_TEST_f_f): Do not handle ulps.
15177         (RUN_TEST_LOOP_f_f): Likewise.
15178         (RUN_TEST_2_f): Likewise.
15179         (RUN_TEST_LOOP_2_f): Likewise.
15180         (RUN_TEST_fff_f): Likewise.
15181         (RUN_TEST_LOOP_fff_f): Likewise.
15182         (RUN_TEST_c_f): Likewise.
15183         (RUN_TEST_LOOP_c_f): Likewise.
15184         (RUN_TEST_f_f1): Likewise.
15185         (RUN_TEST_LOOP_f_f1): Likewise.
15186         (RUN_TEST_fF_f1): Likewise.
15187         (RUN_TEST_LOOP_fF_f1): Likewise.
15188         (RUN_TEST_fI_f1): Likewise.
15189         (RUN_TEST_LOOP_fI_f1): Likewise.
15190         (RUN_TEST_ffI_f1): Likewise.
15191         (RUN_TEST_LOOP_ffI_f1): Likewise.
15192         (RUN_TEST_c_c): Likewise.
15193         (RUN_TEST_LOOP_c_c): Likewise.
15194         (RUN_TEST_cc_c): Likewise.
15195         (RUN_TEST_LOOP_cc_c): Likewise.
15196         (RUN_TEST_f_i): Likewise.
15197         (RUN_TEST_LOOP_f_i): Likewise.
15198         (RUN_TEST_f_i_tg): Likewise.
15199         (RUN_TEST_LOOP_f_i_tg): Likewise.
15200         (RUN_TEST_ff_i_tg): Likewise.
15201         (RUN_TEST_LOOP_ff_i_tg): Likewise.
15202         (RUN_TEST_f_b): Likewise.
15203         (RUN_TEST_LOOP_f_b): Likewise.
15204         (RUN_TEST_f_b_tg): Likewise.
15205         (RUN_TEST_LOOP_f_b_tg): Likewise.
15206         (RUN_TEST_f_l): Likewise.
15207         (RUN_TEST_LOOP_f_l): Likewise.
15208         (RUN_TEST_f_L): Likewise.
15209         (RUN_TEST_LOOP_f_L): Likewise.
15210         (RUN_TEST_sincos): Likewise.
15211         (RUN_TEST_LOOP_sincos): Likewise.
15212
15213 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
15214
15215         [BZ #15480]
15216         [BZ #15485]
15217         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
15218         main case of finite arguments, set rounding mode to FE_TONEAREST
15219         and discard exceptions.
15220         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
15221         exceptions.
15222         (remainder_tonearest_test_data): New variable.
15223         (remainder_test_tonearest): New function.
15224         (remainder_towardzero_test_data): New variable.
15225         (remainder_test_towardzero): New function.
15226         (remainder_downward_test_data): New variable.
15227         (remainder_test_downward): New function.
15228         (remainder_upward_test_data): New variable.
15229         (remainder_test_upward): New function.
15230         (main): Call the new test functions.
15231
15232         * math/libm-test.inc (struct test_f_f1_data): Remove field
15233         extra_init.
15234         (struct test_fF_f1_data): Likewise.
15235         (struct test_ffI_f1_data): Likewise.
15236         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
15237         based on value of EXTRA_EXPECTED.
15238         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
15239         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
15240         EXTRA_VAR based on value of EXTRA_EXPECTED.
15241         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
15242         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
15243         EXTRA_VAR based on value of EXTRA_EXPECTED.
15244         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
15245         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
15246         EXTRA_VAR based on value of EXTRA_EXPECTED.
15247         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
15248         * math/gen-libm-test.pl (parse_args): Don't output initializers
15249         for extra output values.
15250
15251         * math/libm-test.inc (check_int): Expect result to be exactly
15252         equal to expected value and do not handle ulps.
15253         (check_long): Likewise.
15254         (check_longlong): Likewise.
15255
15256         * math/libm-test.inc (ceil_test_data): Test for "inexact"
15257         exceptions.
15258         (cimag_test_data): Likewise.
15259         (conj_test_data): Likewise.
15260         (copysign_test_data): Likewise.
15261         (cproj_test_data): Likewise.
15262         (creal_test_data): Likewise.
15263         (fabs_test_data): Likewise.
15264         (fdim_test_data): Likewise.
15265         (finite_test_data): Likewise.
15266         (floor_test_data): Likewise.
15267         (fmax_test_data): Likewise.
15268         (fmin_test_data): Likewise.
15269         (fmod_test_data): Likewise.
15270         (fpclassify_test_data): Likewise.
15271         (frexp_test_data): Likewise.
15272         (ilogb_test_data): Likewise.
15273         (isfinite_test_data): Likewise.
15274         (isgreater_test_data): Likewise.
15275         (isgreaterequal_test_data): Likewise.
15276         (isinf_test_data): Likewise.
15277         (isless_test_data): Likewise.
15278         (islessequal_test_data): Likewise.
15279         (islessgreater_test_data): Likewise.
15280         (isnan_test_data): Likewise.
15281         (isnormal_test_data): Likewise.
15282         (issignaling_test_data): Likewise.
15283         (isunordered_test_data): Likewise.
15284         (ldexp_test_data): Likewise.
15285         (lrint_test_data): Likewise.
15286         (lrint_test_data) [TEST_FLOAT]: Disable one test.
15287         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
15288         (lrint_tonearest_test_data): Test for "inexact" exceptions.
15289         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
15290         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
15291         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
15292         test input.
15293         (lrint_towardzero_test_data): Test for "inexact" exceptions.
15294         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
15295         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
15296         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
15297         that test input.
15298         (lrint_downward_test_data): Test for "inexact" exceptions.
15299         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
15300         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
15301         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
15302         test input.
15303         (lrint_upward_test_data): Test for "inexact" exceptions.
15304         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
15305         test input.
15306         (llrint_test_data): Test for "inexact" exceptions.
15307         (llrint_test_data) [TEST_FLOAT]: Disable one test.
15308         (llrint_tonearest_test_data): Test for "inexact" exceptions.
15309         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
15310         (llrint_towardzero_test_data): Test for "inexact" exceptions.
15311         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
15312         (llrint_downward_test_data): Test for "inexact" exceptions.
15313         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
15314         (llrint_upward_test_data): Test for "inexact" exceptions.
15315         (logb_test_data): Likewise.
15316         (logb_downward_test_data): Likewise.
15317         (nextafter_test_data): Likewise.
15318         (nexttoward_test_data): Likewise.
15319         (remainder_test_data): Likewise.
15320         (remquo_test_data): Likewise.
15321         (scalbn_test_data): Likewise.
15322         (scalbln_test_data): Likewise.
15323         (signbit_test_data): Likewise.
15324         (sqrt_test_data): Likewise.
15325         (significand_test_data): Likewise.
15326
15327 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
15328
15329         [BZ #15424]
15330         * benchtests/bench-modf.c (struct args): Mark arg0 as
15331         volatile.
15332         * scripts/bench.pl: Mark members of struct args as volatile.
15333
15334 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15335
15336         [BZ # 15497]
15337         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
15338         negative infinity on POWER6 or lower.
15339         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
15340
15341 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
15342
15343         [BZ #15442]
15344         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
15345         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
15346         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
15347         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
15348         (_FP_SETQNAN): New macro.
15349         (_FP_SETQNAN_SEMIRAW): Likewise.
15350         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
15351         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
15352         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
15353         (FP_EXTEND): Use _FP_FRAC_SNANP.
15354         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
15355         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
15356         into account.
15357         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
15358         New macro.
15359         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
15360         Likewise.
15361
15362 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
15363
15364         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
15365         with DIVIDE_BY_ZERO_EXCEPTION.
15366         (gamma_test_data): Likewise.
15367         (lgamma_test_data): Likewise.
15368         (log_test_data): Likewise.
15369         (log10_test_data): Likewise.
15370         (log2_test_data): Likewise.
15371         (tgamma_test_data): Likewise.
15372
15373         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
15374         (acos_test_tonearest): Likewise.
15375         (acos_test_towardzero): Likewise.
15376         (acos_test_downward): Likewise.
15377         (acos_test_upward): Likewise.
15378         (acosh_test): Likewise.
15379         (asin_test): Likewise.
15380         (asin_test_tonearest): Likewise.
15381         (asin_test_towardzero): Likewise.
15382         (asin_test_downward): Likewise.
15383         (asin_test_upward): Likewise.
15384         (asinh_test): Likewise.
15385         (atan_test): Likewise.
15386         (atanh_test): Likewise.
15387         (atan2_test): Likewise.
15388         (cabs_test): Likewise.
15389         (cacos_test): Likewise.
15390         (cacosh_test): Likewise.
15391         (casin_test): Likewise.
15392         (casinh_test): Likewise.
15393         (catan_test): Likewise.
15394         (catanh_test): Likewise.
15395         (cbrt_test): Likewise.
15396         (ccos_test): Likewise.
15397         (ccosh_test): Likewise.
15398         (cexp_test): Likewise.
15399         (clog_test): Likewise.
15400         (clog10_test): Likewise.
15401         (cos_test): Likewise.
15402         (cos_test_tonearest): Likewise.
15403         (cos_test_towardzero): Likewise.
15404         (cos_test_downward): Likewise.
15405         (cos_test_upward): Likewise.
15406         (cosh_test): Likewise.
15407         (cosh_test_tonearest): Likewise.
15408         (cosh_test_towardzero): Likewise.
15409         (cosh_test_downward): Likewise.
15410         (cosh_test_upward): Likewise.
15411         (cpow_test): Likewise.
15412         (csin_test): Likewise.
15413         (csinh_test): Likewise.
15414         (csqrt_test): Likewise.
15415         (ctan_test): Likewise.
15416         (ctan_test_tonearest): Likewise.
15417         (ctan_test_towardzero): Likewise.
15418         (ctan_test_downward): Likewise.
15419         (ctan_test_upward): Likewise.
15420         (ctanh_test): Likewise.
15421         (ctanh_test_tonearest): Likewise.
15422         (ctanh_test_towardzero): Likewise.
15423         (ctanh_test_downward): Likewise.
15424         (ctanh_test_upward): Likewise.
15425         (erf_test): Likewise.
15426         (erfc_test): Likewise.
15427         (exp_test): Likewise.
15428         (exp_test_tonearest): Likewise.
15429         (exp_test_towardzero): Likewise.
15430         (exp_test_downward): Likewise.
15431         (exp_test_upward): Likewise.
15432         (exp10_test): Likewise.
15433         (exp2_test): Likewise.
15434         (expm1_test): Likewise.
15435         (fmod_test): Likewise.
15436         (gamma_test): Likewise.
15437         (hypot_test): Likewise.
15438         (j0_test): Likewise.
15439         (j1_test): Likewise.
15440         (jn_test): Likewise.
15441         (lgamma_test): Likewise.
15442         (log_test): Likewise.
15443         (log10_test): Likewise.
15444         (log1p_test): Likewise.
15445         (log2_test): Likewise.
15446         (logb_test_downward): Likewise.
15447         (pow_test): Likewise.
15448         (pow_test_tonearest): Likewise.
15449         (pow_test_towardzero): Likewise.
15450         (pow_test_downward): Likewise.
15451         (pow_test_upward): Likewise.
15452         (remainder_test): Likewise.
15453         (remquo_test): Likewise.
15454         (sin_test): Likewise.
15455         (sin_test_tonearest): Likewise.
15456         (sin_test_towardzero): Likewise.
15457         (sin_test_downward): Likewise.
15458         (sin_test_upward): Likewise.
15459         (sincos_test): Likewise.
15460         (sinh_test): Likewise.
15461         (sinh_test_tonearest): Likewise.
15462         (sinh_test_towardzero): Likewise.
15463         (sinh_test_downward): Likewise.
15464         (sinh_test_upward): Likewise.
15465         (sqrt_test): Likewise.
15466         (tan_test): Likewise.
15467         (tan_test_tonearest): Likewise.
15468         (tan_test_towardzero): Likewise.
15469         (tan_test_downward): Likewise.
15470         (tan_test_upward): Likewise.
15471         (tanh_test): Likewise.
15472         (tgamma_test): Likewise.
15473         (y0_test): Likewise.
15474         (y1_test): Likewise.
15475         (yn_test): Likewise.
15476
15477         * math/gen-libm-test.pl (adjust_arg): Remove function.
15478         (special_function): Remove argument $in_func.  Only handle
15479         generating output for tables of tests, not inside functions.
15480         (parse_args): Likewise.
15481         (generate_testfile): Remove variable $in_func.  Update call to
15482         parse_args.
15483         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
15484         (MINUS_ZERO_INIT): Rename macro to minus_zero.
15485         (PLUS_INFTY_INIT): Rename macro to plus_infty.
15486         (MINUS_INFTY_INIT): Rename macro to minus_infty.
15487         (QNAN_VALUE_INIT): Rename macro to qnan_value.
15488         (MAX_VALUE_INIT): Rename macro to max_value.
15489         (MIN_VALUE_INIT): Rename macro to min_value.
15490         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
15491         (plus_zero): Remove variable.
15492         (minus_zero): Likewise.
15493         (plus_infty): Likewise.
15494         (minus_infty): Likewise.
15495         (qnan_value): Likewise.
15496         (max_value): Likewise.
15497         (min_value): Likewise.
15498         (min_subnorm_value): Likewise.
15499
15500 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15501
15502         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
15503         uint64_t or uint32_t usage.
15504         * crypt/sha256-block.c: Likewise.
15505         * crypt/sha256-crypt.c: Likewise.
15506         * crypt/sha256.c: Likewise.
15507         * crypt/sha512-block.c: Likewise.
15508         * crypt/sha512-crypt.c: Likewise.
15509         * crypt/sha512.c: Likewise.
15510         * debug/backtrace-tst.c: Likewise.
15511         * debug/pcprofiledump.c: Likewise.
15512         * elf/cache.c: Likewise.
15513         * elf/dl-cache.c: Likewise.
15514         * elf/dl-misc.c: Likewise.
15515         * elf/dl-profile.c: Likewise.
15516         * elf/dl-support.c: Likewise.
15517         * elf/ldconfig.c: Likewise.
15518         * elf/sprof.c: Likewise.
15519         * iconv/dummy-repertoire.c: Likewise.
15520         * iconv/iconv_charmap.c: Likewise.
15521         * iconv/skeleton.c: Likewise.
15522         * iconvdata/8bit-generic.c: Likewise.
15523         * iconvdata/cp737.h: Likewise.
15524         * iconvdata/cp775.h: Likewise.
15525         * iconvdata/ibm1008.h: Likewise.
15526         * iconvdata/ibm1025.h: Likewise.
15527         * iconvdata/ibm1046.h: Likewise.
15528         * iconvdata/ibm1097.h: Likewise.
15529         * iconvdata/ibm1112.h: Likewise.
15530         * iconvdata/ibm1122.h: Likewise.
15531         * iconvdata/ibm1123.h: Likewise.
15532         * iconvdata/ibm1124.h: Likewise.
15533         * iconvdata/ibm1129.h: Likewise.
15534         * iconvdata/ibm1130.h: Likewise.
15535         * iconvdata/ibm1132.h: Likewise.
15536         * iconvdata/ibm1133.h: Likewise.
15537         * iconvdata/ibm1137.h: Likewise.
15538         * iconvdata/ibm1140.h: Likewise.
15539         * iconvdata/ibm1141.h: Likewise.
15540         * iconvdata/ibm1142.h: Likewise.
15541         * iconvdata/ibm1143.h: Likewise.
15542         * iconvdata/ibm1144.h: Likewise.
15543         * iconvdata/ibm1145.h: Likewise.
15544         * iconvdata/ibm1146.h: Likewise.
15545         * iconvdata/ibm1147.h: Likewise.
15546         * iconvdata/ibm1148.h: Likewise.
15547         * iconvdata/ibm1149.h: Likewise.
15548         * iconvdata/ibm1153.h: Likewise.
15549         * iconvdata/ibm1154.h: Likewise.
15550         * iconvdata/ibm1155.h: Likewise.
15551         * iconvdata/ibm1156.h: Likewise.
15552         * iconvdata/ibm1157.h: Likewise.
15553         * iconvdata/ibm1158.h: Likewise.
15554         * iconvdata/ibm1160.h: Likewise.
15555         * iconvdata/ibm1161.h: Likewise.
15556         * iconvdata/ibm1162.h: Likewise.
15557         * iconvdata/ibm1163.h: Likewise.
15558         * iconvdata/ibm1164.h: Likewise.
15559         * iconvdata/ibm1166.h: Likewise.
15560         * iconvdata/ibm1167.h: Likewise.
15561         * iconvdata/ibm12712.h: Likewise.
15562         * iconvdata/ibm1390.h: Likewise.
15563         * iconvdata/ibm1399.h: Likewise.
15564         * iconvdata/ibm16804.h: Likewise.
15565         * iconvdata/ibm4517.h: Likewise.
15566         * iconvdata/ibm4899.h: Likewise.
15567         * iconvdata/ibm4909.h: Likewise.
15568         * iconvdata/ibm4971.h: Likewise.
15569         * iconvdata/ibm5347.h: Likewise.
15570         * iconvdata/ibm803.h: Likewise.
15571         * iconvdata/ibm856.h: Likewise.
15572         * iconvdata/ibm901.h: Likewise.
15573         * iconvdata/ibm902.h: Likewise.
15574         * iconvdata/ibm9030.h: Likewise.
15575         * iconvdata/ibm9066.h: Likewise.
15576         * iconvdata/ibm921.h: Likewise.
15577         * iconvdata/ibm922.h: Likewise.
15578         * iconvdata/ibm9448.h: Likewise.
15579         * iconvdata/isiri-3342.h: Likewise.
15580         * iconvdata/jis0201.h: Likewise.
15581         * include/link.h: Likewise.
15582         * include/netdb.h: Likewise.
15583         * inet/check_native.c: Likewise.
15584         * inet/check_pf.c: Likewise.
15585         * inet/getipv4sourcefilter.c: Likewise.
15586         * inet/getnameinfo.c: Likewise.
15587         * inet/getsourcefilter.c: Likewise.
15588         * inet/htonl.c: Likewise.
15589         * inet/setipv4sourcefilter.c: Likewise.
15590         * inet/setsourcefilter.c: Likewise.
15591         * inet/test-inet6_opt.c: Likewise.
15592         * inet/tst-network.c: Likewise.
15593         * locale/C-collate.c: Likewise.
15594         * locale/C-ctype.c: Likewise.
15595         * locale/C-time.c: Likewise.
15596         * locale/C-translit.h: Likewise.
15597         * locale/loadarchive.c: Likewise.
15598         * locale/programs/3level.h: Likewise.
15599         * locale/programs/charmap.c: Likewise.
15600         * locale/programs/charmap.h: Likewise.
15601         * locale/programs/ld-address.c: Likewise.
15602         * locale/programs/ld-collate.c: Likewise.
15603         * locale/programs/ld-ctype.c: Likewise.
15604         * locale/programs/ld-identification.c: Likewise.
15605         * locale/programs/ld-measurement.c: Likewise.
15606         * locale/programs/ld-messages.c: Likewise.
15607         * locale/programs/ld-monetary.c: Likewise.
15608         * locale/programs/ld-name.c: Likewise.
15609         * locale/programs/ld-numeric.c: Likewise.
15610         * locale/programs/ld-paper.c: Likewise.
15611         * locale/programs/ld-telephone.c: Likewise.
15612         * locale/programs/ld-time.c: Likewise.
15613         * locale/programs/linereader.c: Likewise.
15614         * locale/programs/locale.c: Likewise.
15615         * locale/programs/locarchive.c: Likewise.
15616         * locale/programs/locfile.h: Likewise.
15617         * locale/programs/repertoire.c: Likewise.
15618         * locale/programs/simple-hash.c: Likewise.
15619         * locale/programs/simple-hash.h: Likewise.
15620         * malloc/memusage.c: Likewise.
15621         * malloc/memusagestat.c: Likewise.
15622         * nis/nis_defaults.c: Likewise.
15623         * nis/nis_hash.c: Likewise.
15624         * nis/nis_print.c: Likewise.
15625         * nis/nis_xdr.c: Likewise.
15626         * nscd/connections.c: Likewise.
15627         * nscd/hstcache.c: Likewise.
15628         * nscd/nscd_gethst_r.c: Likewise.
15629         * nscd/nscd_getserv_r.c: Likewise.
15630         * nscd/nscd_helper.c: Likewise.
15631         * nscd/servicescache.c: Likewise.
15632         * nss/makedb.c: Likewise.
15633         * nss/nss_db/db-XXX.c: Likewise.
15634         * nss/nss_db/db-initgroups.c: Likewise.
15635         * nss/nss_db/db-netgrp.c: Likewise.
15636         * nss/nss_files/files-network.c: Likewise.
15637         * nss/nss_files/files-parse.c: Likewise.
15638         * posix/bug-regex5.c: Likewise.
15639         * posix/fnmatch_loop.c: Likewise.
15640         * posix/regcomp.c: Likewise.
15641         * posix/regexec.c: Likewise.
15642         * posix/tst-rfc3484-2.c: Likewise.
15643         * posix/tst-rfc3484-3.c: Likewise.
15644         * posix/tst-rfc3484.c: Likewise.
15645         * resolv/nss_dns/dns-canon.c: Likewise.
15646         * resolv/nss_dns/dns-network.c: Likewise.
15647         * resolv/res_init.c: Likewise.
15648         * resolv/res_mkquery.c: Likewise.
15649         * resolv/tst-aton.c: Likewise.
15650         * stdlib/cxa_atexit.c: Likewise.
15651         * stdlib/cxa_finalize.c: Likewise.
15652         * stdlib/gen-fpioconst.c: Likewise.
15653         * stdlib/strtol_l.c: Likewise.
15654         * string/tst-endian.c: Likewise.
15655         * sunrpc/auth_des.c: Likewise.
15656         * sunrpc/clnt_udp.c: Likewise.
15657         * sunrpc/rtime.c: Likewise.
15658         * sunrpc/svcauth_des.c: Likewise.
15659         * sunrpc/xdr.c: Likewise.
15660         * sunrpc/xdr_intXX_t.c: Likewise.
15661         * sunrpc/xdr_rec.c: Likewise.
15662         * sysdeps/generic/ldconfig.h: Likewise.
15663         * sysdeps/generic/ldsodefs.h: Likewise.
15664         * sysdeps/generic/memusage.h: Likewise.
15665         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
15666         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
15667         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
15668         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
15669         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15670         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
15671         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
15672         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
15673         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15674         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
15675         * sysdeps/posix/getaddrinfo.c: Likewise.
15676         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15677         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15678         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15679         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15680         * sysdeps/powerpc/test-gettimebase.c: Likewise.
15681         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
15682         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
15683         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
15684         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
15685         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
15686         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15687         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15688         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
15689         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
15690         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
15691         * sysdeps/x86_64/dl-tls.h: Likewise.
15692         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
15693         * time/alt_digit.c: Likewise.
15694         * time/era.c: Likewise.
15695         * wcsmbs/tst-c16c32-1.c: Likewise.
15696
15697 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
15698
15699         * math/libm-test.inc (struct test_sincos_data): New type.
15700         (RUN_TEST_LOOP_sincos): New macro.
15701         (sincos_test_data): New variable.
15702         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
15703
15704 2013-05-16  Richard Henderson  <rth@redhat.com>
15705
15706         * math/atest-exp2.c (LIMB64): New macro.
15707         (CONSTSZ): New macro.
15708         (mp_exp1, mp_exp_m1, mp_log2): New variables.
15709         (hexdig): Move ...
15710         (print_mpn_fp): ... to function scope.
15711         (read_mpn_hex): Remove.
15712         (get_log2): Remove.
15713         (exp2_mpn): Use mp_log2.
15714         (main): Use mp_exp1.
15715
15716 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
15717
15718         * math/libm-test.inc: Remove comment about not testing "inexact"
15719         exceptions.
15720         (INEXACT_EXCEPTION): New macro.
15721         (NO_INEXACT_EXCEPTION): Likewise.
15722         (INVALID_EXCEPTION_OK): Update value.
15723         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
15724         (OVERFLOW_EXCEPTION_OK): Likewise.
15725         (UNDERFLOW_EXCEPTION_OK): Likewise.
15726         (IGNORE_ZERO_INF_SIGN): Likewise.
15727         (ERRNO_UNCHANGED): Likewise.
15728         (ERRNO_EDOM): Likewise.
15729         (ERRNO_ERANGE): Likewise.
15730         (test_exceptions): Handle testing "inexact" exceptions.
15731         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
15732         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
15733         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
15734         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
15735         INEXACT_EXCEPTION.
15736         (rint_towardzero_test_data): Likewise.
15737         (rint_downward_test_data): Likewise.
15738         (rint_upward_test_data): Likewise.
15739
15740         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
15741         with OVERFLOW_EXCEPTION.
15742         (exp10_test_data): Likewise.
15743         (exp2_test_data): Likewise.
15744         (expm1_test_data): Likewise.
15745         (lgamma_test_data): Likewise.
15746         (pow_test_data): Likewise.
15747         (tgamma_test_data): Likewise.
15748         (yn_test_data): Remove duplicate test of overflow.
15749
15750         * math/libm-test.inc (struct test_cc_c_data): New type.
15751         (RUN_TEST_LOOP_cc_c): New macro.
15752         (cpow_test_data): New variable.
15753         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
15754
15755         * math/libm-test.inc (struct test_f_L_data): New type.
15756         (RUN_TEST_LOOP_f_L): New macro.
15757         (llrint_test_data): New variable.
15758         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
15759         (llrint_tonearest_test_data): New variable.
15760         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
15761         (llrint_towardzero_test_data): New variable.
15762         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
15763         (llrint_downward_test_data): New variable.
15764         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
15765         (llrint_upward_test_data): New variable.
15766         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
15767         (llround_test_data): New variable.
15768         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
15769
15770 2013-05-13  Peter Collingbourne  <pcc@google.com>
15771
15772         * math/atest-exp2.c (get_log2): Remove const attribute.
15773
15774 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
15775
15776         * math/libm-test.inc (struct test_f_l_data): New type.
15777         (RUN_TEST_LOOP_f_l): New macro.
15778         (lrint_test_data): New variable.
15779         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
15780         (lrint_tonearest_test_data): New variable.
15781         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
15782         (lrint_towardzero_test_data): New variable.
15783         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
15784         (lrint_downward_test_data): New variable.
15785         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
15786         (lrint_upward_test_data): New variable.
15787         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
15788         (lround_test_data): New variable.
15789         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
15790
15791 2013-05-15  Peter Collingbourne  <pcc@google.com>
15792
15793         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
15794         (EXTRACT_WORDS64) Use where appropriate.
15795         (INSERT_WORDS64) Likewise.
15796
15797         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
15798         constraints with x constraints.
15799         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
15800
15801         * malloc/obstack.c (_obstack_compat): Add initializer.
15802
15803 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
15804
15805         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
15806         si_trapno and add si_addr_lsb to _sifields.sigfault.
15807         (si_trapno): Remove macro.
15808         (si_addr_lsb): Define new macro.
15809         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
15810
15811 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
15812
15813         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
15814         instead of TEST_f_l.
15815         (llrint_test_tonearest): Likewise.
15816         (llrint_test_towardzero): Likewise.
15817         (llrint_test_downward): Likewise.
15818         (llrint_test_upward): Likewise.
15819         (llround_test): Likewise.
15820
15821         * math/libm-test.inc (struct test_f_i_data): Add comment.
15822         (RUN_TEST_LOOP_f_b): New macro.
15823         (RUN_TEST_LOOP_f_b_tg): Likewise.
15824         (finite_test_data): New variable.
15825         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
15826         (isfinite_test_data): New variable.
15827         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15828         (isinf_test_data): New variable.
15829         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15830         (isnan_test_data): New variable.
15831         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15832         (isnormal_test_data): New variable.
15833         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15834         (issignaling_test_data): New variable.
15835         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15836         (signbit_test_data): New variable.
15837         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
15838
15839         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
15840         with INVALID_EXCEPTION.
15841         (acosh_test_data): Likewise.
15842         (asin_test_data): Likewise.
15843         (atanh_test_data): Likewise.
15844         (fmod_test_data): Likewise.
15845         (log_test_data): Likewise.
15846         (log10_test_data): Likewise.
15847         (log2_test_data): Likewise.
15848         (pow_test_data): Likewise.
15849         (sqrt_test_data): Likewise.
15850         (y0_test_data): Likewise.
15851         (y1_test_data): Likewise.
15852         (yn_test_data): Likewise.
15853
15854         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
15855         function contents.
15856
15857         * math/libm-test.inc (struct test_ff_i_data): New type.
15858         (RUN_TEST_LOOP_ff_i_tg): New macro.
15859         (isgreater_test_data): New variable.
15860         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15861         (isgreaterequal_test_data): New variable.
15862         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15863         (isless_test_data): New variable.
15864         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15865         (islessequal_test_data): New variable.
15866         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15867         (islessgreater_test_data): New variable.
15868         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15869         (isunordered_test_data): New variable.
15870         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
15871
15872 2013-05-14  David S. Miller  <davem@davemloft.net>
15873
15874         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15875
15876 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
15877
15878         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
15879
15880         * math/libm-test.inc (struct test_fF_f1_data): Change type of
15881         extra_test to int.
15882         (struct test_f_i_data): Change type of max_ulp to int.
15883
15884         * math/libm-test.inc (test_ffI_f1_data): New type.
15885         (RUN_TEST_LOOP_ffI_f1): New macro.
15886         (remquo_test_data): New variable.
15887         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
15888
15889         * setjmp/tst-setjmp-fp.c: New file.
15890         * setjmp/Makefile (tests): Add tst-setjmp-fp.
15891         (link-libm): New variable.
15892         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
15893
15894         * math/libm-test.inc (struct test_f_i_data): New type.
15895         (RUN_TEST_LOOP_f_i): New macro.
15896         (RUN_TEST_LOOP_f_i_tg): Likewise.
15897         (fpclassify_test_data): New variable.
15898         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
15899         (ilogb_test_data): New variable.
15900         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
15901
15902         * math/libm-test.inc (scalbln_test): Correct function name in END
15903         call.
15904
15905         * math/libm-test.inc (struct test_f_f1_data): Add comment.
15906         (RUN_TEST_LOOP_fI_f1): New macro.
15907         (frexp_test_data): New variable.
15908         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
15909
15910         * math/libm-test.inc (struct test_fF_f1_data): New type.
15911         (RUN_TEST_LOOP_fF_f1): New macro.
15912         (modf_test_data): New variable.
15913         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
15914
15915         * math/libm-test.inc (struct test_f_f1_data): New type.
15916         (RUN_TEST_LOOP_f_f1): New macro.
15917         (gamma_test_data): New variable.
15918         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
15919         (lgamma_test_data): New variable.
15920         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
15921
15922 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
15923
15924         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
15925         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
15926         (main): Comment "tls" pseudo-hwcap.
15927
15928 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
15929
15930         * math/libm-test.inc (struct test_fl_f_data): New type.
15931         (RUN_TEST_LOOP_fl_f): New variable.
15932         (scalbln_test_data): New variable.
15933         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
15934
15935         * math/libm-test.inc (struct test_fi_f_data): New type.
15936         (RUN_TEST_LOOP_fi_f): New macro.
15937         (ldexp_test_data): New variable.
15938         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
15939         (scalbn_test_data): New variable.
15940         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
15941
15942         * math/libm-test.inc (struct test_c_f_data): New type.
15943         (RUN_TEST_LOOP_c_f): New macro.
15944         (cabs_test_data): New variable.
15945         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
15946         (carg_test_data): New variable.
15947         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
15948         (cimag_test_data): New variable.
15949         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
15950         (creal_test_data): New variable.
15951         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
15952
15953         * math/libm-test.inc (struct test_if_f_data): New type.
15954         (RUN_TEST_LOOP_if_f): New macro.
15955         (jn_test_data): New variable.
15956         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
15957         (yn_test_data): New variable.
15958         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
15959
15960         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
15961
15962 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15963
15964         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
15965         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
15966
15967 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15968
15969         * benchtests/Makefile (CPPFLAGS-nonlib): Add
15970         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
15971         (bench-deps): Add bench-timing.h.
15972         * benchtests-bench-skeleton.c: Include bench-timing.h.
15973         (main): Use TIMING_* macros instead of clock_gettime.
15974         * benchtests/bench-timing.h: New file.
15975
15976         [BZ #14582]
15977         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
15978         Renamed from _LIB_VERSION.
15979         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
15980
15981 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
15982
15983         * math/libm-test.inc (struct test_fff_f_data): New type.
15984         (RUN_TEST_LOOP_fff_f): New macro.
15985         (fma_test_data): New variable.
15986         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
15987         (fma_towardzero_test_data): New variable.
15988         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
15989         (fma_downward_test_data): New variable.
15990         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
15991         (fma_upward_test_data): New variable.
15992         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
15993
15994         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
15995         (struct test_c_c_data): New type.
15996         (RUN_TEST_LOOP_c_c): New macro.
15997         (cacos_test_data): New variable.
15998         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
15999         (cacosh_test_data): New variable.
16000         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
16001         (casin_test_data): New variable.
16002         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
16003         (casinh_test_data): New variable.
16004         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
16005         (catan_test_data): New variable.
16006         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
16007         (catanh_test_data): New variable.
16008         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
16009         (ccos_test_data): New variable.
16010         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
16011         (ccosh_test_data): New variable.
16012         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
16013         (cexp_test_data): New variable.
16014         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
16015         (clog_test_data): New variable.
16016         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
16017         (clog10_test_data): New variable.
16018         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
16019         (conj_test_data): New variable.
16020         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
16021         (cproj_test_data): New variable.
16022         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
16023         (csin_test_data): New variable.
16024         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
16025         (csinh_test_data): New variable.
16026         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
16027         (csqrt_test_data): New variable.
16028         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
16029         (ctan_test_data): New variable.
16030         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
16031         (ctan_tonearest_test_data): New variable.
16032         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
16033         (ctan_towardzero_test_data): New variable.
16034         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
16035         (ctan_downward_test_data): New variable.
16036         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
16037         (ctan_upward_test_data): New variable.
16038         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
16039         (ctanh_test_data): New variable.
16040         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
16041         (ctanh_tonearest_test_data): New variable.
16042         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
16043         (ctanh_towardzero_test_data): New variable.
16044         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
16045         (ctanh_downward_test_data): New variable.
16046         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
16047         (ctanh_upward_test_data): New variable.
16048         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
16049         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
16050         of BUILD_COMPLEX.
16051
16052         * math/libm-test.inc (struct test_ff_f_data): New type.
16053         (struct test_ff_f_data_nexttoward): Likewise.
16054         (RUN_TEST_LOOP_2_f): New macro.
16055         (RUN_TEST_LOOP_ff_f): Likewise.
16056         (atan2_test_data): New variable.
16057         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
16058         (copysign_test_data): New variable.
16059         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
16060         (fdim_test_data): New variable.
16061         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
16062         (fmax_test_data): New variable.
16063         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
16064         (fmin_test_data): New variable.
16065         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
16066         (fmod_test_data): New variable.
16067         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
16068         (hypot_test_data): New variable.
16069         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
16070         (nextafter_test_data): New variable.
16071         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
16072         (nexttoward_test_data): New variable.
16073         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
16074         (pow_test_data): New variable.
16075         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
16076         (pow_tonearest_test_data): New variable.
16077         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
16078         (pow_towardzero_test_data): New variable.
16079         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
16080         (pow_downward_test_data): New variable.
16081         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
16082         (pow_upward_test_data): New variable.
16083         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
16084         (remainder_test_data): New variable.
16085         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
16086         (scalb_test_data): New variable.
16087         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
16088         * sysdeps/i386/fpu/libm-test-ulps: Update.
16089
16090 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
16091
16092         * math/libm-test.inc (fma_test): Use max_value instead of local
16093         variable fltmax.
16094         (nextafter_test): Likewise.
16095
16096         * math/libm-test.inc (acos_towardzero_test_data): New variable.
16097         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16098         (acos_downward_test_data): New variable.
16099         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16100         (acos_upward_test_data): New variable.
16101         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16102         (acosh_test_data): New variable.
16103         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
16104         (asin_test_data): New variable.
16105         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
16106         (asin_tonearest_test_data): New variable.
16107         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16108         (asin_towardzero_test_data): New variable.
16109         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16110         (asin_downward_test_data): New variable.
16111         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16112         (asin_upward_test_data): New variable.
16113         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16114         (asinh_test_data): New variable.
16115         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
16116         (atan_test_data): New variable.
16117         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
16118         (atanh_test_data): New variable.
16119         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
16120         (cbrt_test_data): New variable.
16121         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
16122         (ceil_test_data): New variable.
16123         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
16124         (cos_test_data): New variable.
16125         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
16126         (cos_tonearest_test_data): New variable.
16127         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16128         (cos_towardzero_test_data): New variable.
16129         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16130         (cos_downward_test_data): New variable.
16131         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16132         (cos_upward_test_data): New variable.
16133         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16134         (cosh_test_data): New variable.
16135         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
16136         (cosh_tonearest_test_data): New variable.
16137         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16138         (cosh_towardzero_test_data): New variable.
16139         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16140         (cosh_downward_test_data): New variable.
16141         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16142         (cosh_upward_test_data): New variable.
16143         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16144         (erf_test_data): New variable.
16145         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
16146         (erfc_test_data): New variable.
16147         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
16148         (exp_test_data): New variable.
16149         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
16150         (exp_tonearest_test_data): New variable.
16151         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16152         (exp_towardzero_test_data): New variable.
16153         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16154         (exp_downward_test_data): New variable.
16155         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16156         (exp_upward_test_data): New variable.
16157         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16158         (exp10_test_data): New variable.
16159         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
16160         (exp2_test_data): New variable.
16161         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
16162         (expm1_test_data): New variable.
16163         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
16164         (fabs_test_data): New variable.
16165         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
16166         (floor_test_data): New variable.
16167         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
16168         (j0_test_data): New variable.
16169         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
16170         (j1_test_data): New variable.
16171         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
16172         (log_test_data): New variable.
16173         (log_test): Run tests with RUN_TEST_LOOP_f_f.
16174         (log10_test_data): New variable.
16175         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
16176         (log1p_test_data): New variable.
16177         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
16178         (log2_test_data): New variable.
16179         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
16180         (logb_test_data): New variable.
16181         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
16182         (logb_downward_test_data): New variable.
16183         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16184         (nearbyint_test_data): New variable.
16185         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
16186         (rint_test_data): New variable.
16187         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
16188         (rint_tonearest_test_data): New variable.
16189         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16190         (rint_towardzero_test_data): New variable.
16191         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16192         (rint_downward_test_data): New variable.
16193         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16194         (rint_upward_test_data): New variable.
16195         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16196         (round_test_data): New variable.
16197         (round_test): Run tests with RUN_TEST_LOOP_f_f.
16198         (sin_test_data): New variable.
16199         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
16200         (sin_tonearest_test_data): New variable.
16201         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16202         (sin_towardzero_test_data): New variable.
16203         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16204         (sin_downward_test_data): New variable.
16205         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16206         (sin_upward_test_data): New variable.
16207         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16208         (sinh_test_data): New variable.
16209         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
16210         (sinh_tonearest_test_data): New variable.
16211         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16212         (sinh_towardzero_test_data): New variable.
16213         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16214         (sinh_downward_test_data): New variable.
16215         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16216         (sinh_upward_test_data): New variable.
16217         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16218         (sqrt_test_data): New variable.
16219         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
16220         (tan_test_data): New variable.
16221         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
16222         (tan_tonearest_test_data): New variable.
16223         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16224         (tan_towardzero_test_data): New variable.
16225         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16226         (tan_downward_test_data): New variable.
16227         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16228         (tan_upward_test_data): New variable.
16229         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16230         (tanh_test_data): New variable.
16231         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
16232         (tgamma_test_data): New variable.
16233         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
16234         (trunc_test_data): New variable.
16235         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
16236         (y0_test_data): New variable.
16237         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
16238         (y1_test_data): New variable.
16239         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
16240         (significand_test_data): New variable.
16241         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
16242
16243 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
16244
16245         [BZ #12387]
16246         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
16247
16248 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16249
16250         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
16251
16252 2013-05-10  Andreas Jaeger  <aj@suse.de>
16253
16254         [BZ #15448]
16255         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
16256         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
16257
16258 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
16259
16260         * math/gen-libm-test.pl (adjust_arg): New function.
16261         (special_functions): Handle generating output in both functions
16262         and arrays.
16263         (parse_args): Likewise.
16264         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
16265         $in_func argument to parse_args.
16266         * math/libm-test.inc (struct test_f_f_data): New type.
16267         (IF_ROUND_INIT_): New macro.
16268         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
16269         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
16270         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
16271         (IF_ROUND_INIT_FE_UPWARD): Likewise.
16272         (ROUND_RESTORE_): Likewise.
16273         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
16274         (ROUND_RESTORE_FE_TONEAREST): Likewise.
16275         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
16276         (ROUND_RESTORE_FE_UPWARD): Likewise.
16277         (RUN_TEST_LOOP_f_f): New macro.
16278         (acos_test_data): New variable.
16279         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
16280         (acos_tonearest_test_data): New variable.
16281         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16282
16283 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16284
16285         * benchtests/bench-skeleton.c (startup): Fix coding style.
16286
16287 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
16288
16289         [BZ #6809]
16290         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
16291         negative infinity argument.
16292         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
16293         negative infinity argument.
16294         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
16295         negative infinity argument.
16296         * math/libm-test.inc (tgamma_test): Expect errno to be set for
16297         domain errors.
16298
16299 2013-05-10  Florian Weimer  <fweimer@redhat.com>
16300
16301         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
16302         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
16303         * iconv/iconv_prog.c (main): Likewise.
16304         * locale/programs/charmap-dir.c (charmap_readdir)
16305         (fopen_uncompressed): Likewise.
16306         * locale/programs/locfile.c (siblings_uncached)
16307         (write_locale_data): Use lstat64 instead of lstat.
16308         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
16309         stat.
16310
16311 2013-05-10  Andreas Jaeger  <aj@suse.de>
16312
16313         [BZ #15395]
16314         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
16315         localization.
16316         Include <locale.h>.
16317
16318 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
16319
16320         * elf/dl-close.c (_dl_close_worker): Add comments.
16321
16322 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
16323
16324         [BZ #15359]
16325         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
16326         high part of pi/2.
16327         (__ieee754_rem_pio2l): Update comments.
16328
16329         [BZ #15429]
16330         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
16331         high part of pi/2.
16332         (__ieee754_rem_pio2l): Update comments.
16333
16334         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
16335         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
16336
16337         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
16338         M_PI_4l.
16339
16340         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
16341         (M_PI_34_LOG10El): Likewise.
16342         (M_PI2_LOG10El): Likewise.
16343         (M_PI4_LOG10El): Likewise.
16344         (M_PI_LOG10El): Likewise.
16345
16346 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16347
16348         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16349
16350 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
16351
16352         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
16353         (MINUS_ZERO_INIT): Likewise.
16354         (PLUS_INFTY_INIT): Likewise.
16355         (MINUS_INFTY_INIT): Likewise.
16356         (QNAN_VALUE_INIT): Likewise.
16357         (MAX_VALUE_INIT): Likewise.
16358         (MIN_VALUE_INIT): Likewise.
16359         (MIN_SUBNORM_VALUE_INIT): Likewise.
16360         (plus_zero): Initialize with PLUS_ZERO_INIT.
16361         (minus_zero): Initialize with MINUS_ZERO_INIT.
16362         (plus_infty): Initialize with PLUS_INFTY_INIT.
16363         (minus_infty): Initialize with MINUS_INFTY_INIT.
16364         (qnan_value): Initialize with QNAN_VALUE_INIT.
16365         (max_value): Initialize with MAX_VALUE_INIT.
16366         (min_value): Initialize with MIN_VALUE_INIT.
16367         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
16368
16369         * math/libm-test.inc (RUN_TEST_if_f): New macro.
16370         (jn_test): Use TEST_if_f instead of TEST_ff_f.
16371         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
16372         (yn_test): Use TEST_if_f instead of TEST_ff_f.
16373
16374         * math/libm-test.inc (RUN_TEST_f_f): New macro.
16375         (RUN_TEST_2_f): Likewise.
16376         (RUN_TEST_ff_f): Likewise.
16377         (RUN_TEST_fi_f): Likewise.
16378         (RUN_TEST_fl_f): Likewise.
16379         (RUN_TEST_fff_f): Likewise.
16380         (RUN_TEST_c_f): Likewise.
16381         (RUN_TEST_f_f1): Likewise.
16382         (RUN_TEST_fF_f1): Likewise.
16383         (RUN_TEST_fI_f1): Likewise.
16384         (RUN_TEST_ffI_f1): Likewise.
16385         (RUN_TEST_c_c): Likewise.
16386         (RUN_TEST_cc_c): Likewise.
16387         (RUN_TEST_f_i): Likewise.
16388         (RUN_TEST_f_i_tg): Likewise.
16389         (RUN_TEST_ff_i_tg): Likewise.
16390         (RUN_TEST_f_b): Likewise.
16391         (RUN_TEST_f_b_tg): Likewise.
16392         (RUN_TEST_f_l): Likewise.
16393         (RUN_TEST_f_L): Likewise.
16394         (RUN_TEST_sincos): Likewise.
16395         * math/gen-libm-test.pl (new_test): Take new argument to indicate
16396         whether to show exceptions.  Do not include ");\n" in return
16397         value.
16398         (special_functions): Output call to RUN_TEST_sincos instead of
16399         check_float calls.  Update calls to new_test.
16400         (parse_args): Output call to single RUN_TEST_* macro instead of
16401         check_* calls and other assignments.  Update calls to new_test.
16402
16403         [BZ #2546]
16404         [BZ #2560]
16405         [BZ #5159]
16406         [BZ #15426]
16407         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
16408         input to result for tgamma overflow.
16409         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
16410         (gamma_coeff): New variable.
16411         (NCOEFF): New macro.
16412         (gamma_positive): New function.
16413         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
16414         underflow here.  Use gamma_positive instead of exp (lgamma) for
16415         other arguments.
16416         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
16417         (gamma_coeff): New variable.
16418         (NCOEFF): New macro.
16419         (gammaf_positive): New function.
16420         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
16421         underflow here.  Use gamma_positive instead of exp (lgamma) for
16422         other arguments.
16423         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
16424         (gamma_coeff): New variable.
16425         (NCOEFF): New macro.
16426         (gammal_positive): New function.
16427         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
16428         underflow here.  Use gamma_positive instead of exp (lgamma) for
16429         other arguments.
16430         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
16431         (gamma_coeff): New variable.
16432         (NCOEFF): New macro.
16433         (gammal_positive): New function.
16434         (__ieee754_gammal_r): Handle positive infinity, overflow and
16435         underflow here.  Handle NaN the same as positive infinity.  Remove
16436         check x < 0xffffffff for negative integers.  Use gamma_positive
16437         instead of exp (lgamma) for other arguments.
16438         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
16439         (gamma_coeff): New variable.
16440         (NCOEFF): New macro.
16441         (gammal_positive): New function.
16442         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
16443         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
16444         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
16445         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
16446         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
16447         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
16448         * sysdeps/generic/math_private.h (__gamma_productf): New
16449         prototype.
16450         (__gamma_product): Likewise.
16451         (__gamma_productl): Likewise.
16452         * math/Makefile (libm-calls): Add gamma_product.
16453         * math/libm-test.inc (tgamma_test): Add more tests.
16454         * sysdeps/i386/fpu/libm-test-ulps: Update.
16455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16456
16457 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
16458
16459         * benchtests/bench-skeleton.c (main): Preheat CPU.
16460
16461 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
16462
16463         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
16464
16465 2013-05-07  Roland McGrath  <roland@hack.frob.com>
16466
16467         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
16468         and _dl_skip_args_internal.
16469
16470 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
16471
16472         * manual/message.texi (Message Translation): Talk about users.
16473         Message to key mapping impacts design.
16474
16475 2013-05-06  Roland McGrath  <roland@hack.frob.com>
16476
16477         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
16478
16479         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
16480
16481         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
16482         * sysdeps/wordsize-64/glob64.c: ... here.
16483
16484         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
16485         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
16486         New macros.
16487
16488         * debug/getlogin_r_chk.c: Moved to ...
16489         * login/getlogin_r_chk.c: ... here.
16490         * debug/Makefile (routines): Move getlogin_r_chk to ...
16491         * login/Makefile (routines): ... here.
16492         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
16493         * login/Versions (libc: GLIBC_2.4): ... here.
16494
16495         * io/poll.c (__poll): Renamed from poll.
16496         Add libc_hidden_def.
16497         (poll): Define as weak alias.
16498
16499         * debug/ptsname_r_chk.c: Moved to ...
16500         * login/ptsname_r_chk.c: ... here.
16501         * debug/Makefile (routines): Move ptsname_r_chk to ...
16502         * login/Makefile (routines): ... here.
16503         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
16504         * login/Versions (libc: GLIBC_2.4): ... here.
16505
16506         * posix/getlogin.c: Moved to ...
16507         * login/getlogin.c: ... here.
16508         * posix/getlogin_r.c: Moved to ...
16509         * login/getlogin_r.c: ... here.
16510         * posix/getlogin_r.c: Moved to ...
16511         * login/getlogin_r.c: ... here.
16512         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
16513         * login/Makefile (routines): ... here.
16514         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
16515         * login/Versions (libc: GLIBC_2.0): ... here.
16516
16517         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
16518         (setrlimit): Define as weak alias.
16519
16520         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
16521         Call __ names for open, ftruncate, and close.
16522         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
16523         (truncate): Define as weak alias.
16524
16525 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
16526
16527         * math/gen-libm-test.pl (parse_args): Initialize x before each
16528         test of frexp, modf and remquo.
16529
16530         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
16531         test signgam value.
16532
16533 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16534
16535         [BZ #15418]
16536         [BZ #15419]
16537         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
16538         internal tests.
16539         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16540
16541 2013-05-06  Roland McGrath  <roland@hack.frob.com>
16542
16543         * elf/dl-writev.h: New file.
16544         * elf/dl-misc.c: Include it.
16545         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
16546         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
16547
16548 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
16549
16550         * math/libm-test.inc (noXFails): Remove variable.
16551         (noXPasses): Likewise.
16552         (BUILD_COMPLEX_INT): Remove macro.
16553         (print_screen): Remove xfail argument.
16554         (print_screen_max_error): Likewise.
16555         (update_stats): Likewise.
16556         (print_max_error): Likewise.  Update calls to other affected
16557         functions.
16558         (print_complex_max_error): Likewise.
16559         (test_single_exception): Update calls to print_screen.
16560         (test_single_errno): Likewise.
16561         (check_float_internal): Remove xfail argument.  Update calls to
16562         other affected functions.
16563         (check_float): Likewise.
16564         (check_complex): Likewise.
16565         (check_int): Likewise.
16566         (check_long): Likewise.
16567         (check_bool): Likewise.
16568         (check_longlong): Likewise.
16569         (main): Don't print noXFails and noXPasses.
16570         * math/gen-libm-test.pl (top level): Don't mention expected
16571         failure handling in comment.
16572         (new_test): Don't handle expected failures.
16573         (parse_args): Don't mention expected failure handling in comment.
16574         (generate_testfile): Don't handle expected failures.
16575         (parse_ulps): Likewise.
16576         (print_ulps_file): Likewise.
16577         (get_failure): Remove function.
16578         (output_test): Don't handle expected failures.
16579         * make/README.libm-test: Don't mention expected failure handling.
16580
16581         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
16582         (minus_zero): Likewise.
16583         (plus_infty): Likewise.
16584         (minus_infty): Likewise.
16585         (qnan_value): Likewise.
16586         (max_value): Likewise.
16587         (min_value): Likewise.
16588         (min_subnorm_value): Likewise.
16589         (initialize): Do not initialize those variables dynamically.
16590
16591 2013-05-03  Roland McGrath  <roland@hack.frob.com>
16592
16593         * io/open.c (__open_2): Moved to ...
16594         * io/open_2.c: ... this new file.
16595         * io/open64.c (__open64_2): Moved to ...
16596         * io/open64_2.c: ... this new file.
16597         * io/openat.c (__openat_2): Moved to ...
16598         * io/openat_2.c: ... this new file.
16599         * io/openat64.c (__openat64_2): Moved to ...
16600         * io/openat64_2.c: ... this new file.
16601         * io/Makefile (routines): Add them.
16602         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
16603         * sysdeps/unix/sysv/linux/open_2.c: File removed.
16604         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
16605         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
16606         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
16607         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
16608         (__openat64): Add hidden_ver.
16609         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
16610         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
16611
16612         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
16613         Separately conditionalize setting of GLRO(dl_sysinfo) so
16614         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
16615         as well, but the actual setting is only under [NEED_DL_SYSINFO].
16616
16617 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16618
16619         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
16620         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
16621         definition.
16622         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
16623         * sysdeps/unix/sysv/linux/powerpc/init-first.c
16624         (_libc_vdso_platform_setup): Add __vdso_time initialization.
16625         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
16626         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
16627
16628 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
16629
16630         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
16631         test signgam value.
16632
16633         * math/libm-test.inc (hypot_test): Do not use
16634         IGNORE_ZERO_INF_SIGN.
16635
16636 2013-05-03  Andreas Jaeger  <aj@suse.de>
16637
16638         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
16639         Linux 3.9.
16640         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
16641         (PF_MAX): Adjust for VSOCK change.
16642
16643 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16644
16645         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16646
16647 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
16648
16649         [BZ #15264]
16650         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
16651         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
16652         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
16653
16654 2013-05-02  David S. Miller  <davem@davemloft.net>
16655
16656         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16657
16658 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
16659
16660         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
16661
16662 2013-05-01  Roland McGrath  <roland@hack.frob.com>
16663
16664         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
16665
16666 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
16667
16668         [BZ #14952]
16669         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
16670         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
16671         Use __attribute__ ((__gnu_inline__)).
16672         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
16673         Don't use __attribute__ ((__gnu_inline__)).
16674
16675 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
16676
16677         [BZ #15423]
16678         * math/s_catan.c (__catan): Handle small real or imaginary part of
16679         input specially to avoid spurious underflow.
16680         * math/s_catanf.c (__catanf): Likewise.
16681         * math/s_catanh.c (__catanh): Likewise.
16682         * math/s_catanhf.c (__catanhf): Likewise.
16683         * math/s_catanhl.c (__catanhl): Likewise.
16684         * math/s_catanl.c (__catanl): Likewise.
16685         * math/libm-test.inc (catan_test): Add more tests.
16686         (catanh_test): Likewise.
16687         * sysdeps/i386/fpu/libm-test-ulps: Update.
16688         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16689
16690 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16691
16692         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16693
16694 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
16695
16696         [BZ #15416]
16697         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
16698         accurately for denominator in atan2.
16699         * math/s_catanf.c (__catanf): Likewise.
16700         * math/s_catanh.c (__catanh): Likewise.
16701         * math/s_catanhf.c (__catanhf): Likewise.
16702         * math/s_catanhl.c (__catanhl): Likewise.
16703         * math/s_catanl.c (__catanl): Likewise.
16704         * math/libm-test.inc (catan_test): Add more tests.
16705         (catanh_test): Likewise.
16706         * sysdeps/i386/fpu/libm-test-ulps: Update.
16707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16708
16709 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
16710
16711         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
16712
16713         * benchtests/Makefile (bench): Remove slow benchmarks.
16714         * benchtests/atan-inputs: Add slow benchmark inputs.
16715         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
16716         (BENCH_FUNC): Accept variant offset.
16717         (VARIANT): Define.
16718         * benchtests/bench-skeleton.c (main): Run benchmark for each
16719         variant.
16720         * benchtests/cos-inputs: Add slow benchmark inputs.
16721         * benchtests/exp-inputs: Likewise.
16722         * benchtests/pow-inputs: Likewise.
16723         * benchtests/sin-inputs: Likewise.
16724         * benchtests/slowatan-inputs: Remove.
16725         * benchtests/slowatan.c: Remove.
16726         * benchtests/slowcos-inputs: Remove.
16727         * benchtests/slowcos.c: Remove.
16728         * benchtests/slowexp-inputs: Remove.
16729         * benchtests/slowexp.c: Remove.
16730         * benchtests/slowpow-inputs: Remove.
16731         * benchtests/slowpow.c: Remove.
16732         * benchtests/slowsin-inputs: Remove.
16733         * benchtests/slowsin.c: Remove.
16734         * benchtests/slowtan-inputs: Remove.
16735         * benchtests/slowtan.c: Remove.
16736         * benchtests/tan-inputs: Add slow benchmark inputs.
16737         * scripts/bench.pl: Parse comments and directives.
16738
16739         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
16740         in CPPFLAGS.
16741         ($(objpfx)bench-%.c): Remove *-ITER.
16742         * benchtests/bench-modf.c: Remove definition of ITER.
16743         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
16744         (main): Loop for DURATION seconds instead of fixed number of
16745         iterations.
16746         * scripts/bench.pl: Don't expect iterations in parameters.
16747
16748 2013-04-29  Roland McGrath  <roland@hack.frob.com>
16749
16750         * io/fchdir.c (__fchdir): Renamed from fchdir.
16751         (fchdir): Define as weak alias.
16752
16753 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
16754
16755         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
16756         (ERRNO_EDOM): Likewise.
16757         (ERRNO_ERANGE): Likewise.
16758         (noErrnoTests): New variable.
16759         (init_max_error): Set errno to 0.
16760         (test_single_errno): New function.
16761         (test_errno): Likewise.
16762         (check_float_internal): Call test_errno.  Set errno to 0.
16763         (check_complex): Refer to errno tests in comment.
16764         (check_int): Call test_errno.  Set errno to 0.
16765         (check_long): Likewise.
16766         (check_bool): Likewise.
16767         (check_longlong): Likewise.
16768         (cos_test): Use ERRNO_* flags for errno tests instead of
16769         check_int.
16770         (expm1_test): Likewise.
16771         (fmod_test): Likewise.
16772         (ilogb_test): Likewise.
16773         (lgamma_test): Likewise.
16774         (pow_test): Likewise.
16775         (remainder_test): Likewise.
16776         (sin_test): Likewise.
16777         (tan_test): Likewise.
16778         (yn_test): Likewise.
16779         (initialize): Set errno to 0.
16780         (main): Print number of errno tests.
16781         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
16782
16783 2013-04-29  Andreas Jaeger  <aj@suse.de>
16784
16785         [BZ #15084]
16786         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
16787         and RES_USEVC.
16788
16789         [BZ #15085]
16790         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
16791         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
16792         unimplemented.
16793
16794         [BZ #15380]
16795         * stdlib/random.c (__initstate): Return NULL if
16796         __initstate fails.
16797
16798         [BZ #15086]
16799         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
16800         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
16801         RES_SNGLKUPREOP.
16802
16803 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16804
16805         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16806
16807 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
16808
16809         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
16810         of individual tests.
16811         (casin_test): Likewise.
16812         (casinh_test): Likewise.
16813
16814 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
16815
16816         [BZ #15409]
16817         * math/s_catan.c (__catan): Handle arguments with large real or
16818         imaginary part separately without squaring.
16819         * math/s_catanf.c (__catanf): Likewise.
16820         * math/s_catanh.c (__catanh): Likewise.
16821         * math/s_catanhf.c (__catanhf): Likewise.
16822         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16823         and redefine.
16824         (__catanhl): Handle arguments with large real or imaginary part
16825         separately without squaring.
16826         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16827         and redefine.
16828         (__catanl): Handle arguments with large real or imaginary part
16829         separately without squaring.
16830         * math/libm-test.inc (catan_test): Add more tests.
16831         (catanh_test): Likewise.
16832         * sysdeps/i386/fpu/libm-test-ulps: Update.
16833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16834
16835 2013-04-27  Andreas Jaeger  <aj@suse.de>
16836
16837         [BZ #15007]
16838         * stdlib/stdlib.h: Update guards for qecvt.
16839         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
16840         <stdlib.h>.
16841
16842 2013-04-27  Allan McRae  <allan@archlinux.org>
16843
16844         * sysdeps/i386/fpu/libm-test-ulps: Update.
16845
16846 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
16847
16848         [BZ #15406]
16849         * math/s_catan.c: Include <float.h>.
16850         (__catan): Ensure underflow exception occurs for underflowed
16851         result.
16852         * math/s_catanf.c: Include <float.h>.
16853         (__catanf): Ensure underflow exception occurs for underflowed
16854         result.
16855         * math/s_catanh.c: Include <float.h>.
16856         (__catanh): Ensure underflow exception occurs for underflowed
16857         result.
16858         * math/s_catanhf.c: Include <float.h>.
16859         (__catanhf): Ensure underflow exception occurs for underflowed
16860         result.
16861         * math/s_catanhl.c: Include <float.h>.
16862         (__catanhl): Ensure underflow exception occurs for underflowed
16863         result.
16864         * math/s_catanl.c: Include <float.h>.
16865         (__catanl): Ensure underflow exception occurs for underflowed
16866         result.
16867         * math/libm-test.inc (catan_test): Add more tests.
16868         (catanh_test): Likewise.
16869
16870         [BZ #15405]
16871         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
16872         underflowed result.
16873         * math/s_ccoshf.c (__ccoshf): Likewise.
16874         * math/s_ccoshl.c (__ccoshl): Likewise.
16875         * math/s_csin.c (__csin): Likewise.
16876         * math/s_csinf.c (__csinf): Likewise.
16877         * math/s_csinh.c (__csinh): Likewise.
16878         * math/s_csinhf.c (__csinhf): Likewise.
16879         * math/s_csinhl.c (__csinhl): Likewise.
16880         * math/s_csinl.c (__csinl): Likewise.
16881         * math/libm-test.inc (ccos_test): Add more tests.
16882         (ccosh_test): Likewise.
16883         (csin_test): Likewise.
16884         (csinh_test): Likewise.
16885
16886 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16887
16888         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
16889         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
16890         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
16891         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
16892         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
16893         powerpc/power5+/fpu folders.
16894         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
16895
16896
16897 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
16898
16899         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16900
16901 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
16902
16903         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
16904         additions to variable.
16905         [$(config-machine) = x86_64] (modules-names): Likewise.
16906         ($(objpfx)tst-audit3): Remove dependency.
16907         ($(objpfx)tst-audit3.out): Likewise.
16908         ($(objpfx)tst-audit4): Likewise.
16909         ($(objpfx)tst-audit4.out): Likewise.
16910         ($(objpfx)tst-audit5): Likewise.
16911         ($(objpfx)tst-audit5.out): Likewise.
16912         ($(objpfx)tst-audit6): Likewise.
16913         ($(objpfx)tst-audit6.out): Likewise.
16914         ($(objpfx)tst-audit7): Likewise.
16915         ($(objpfx)tst-audit7.out): Likewise.
16916         (tst-audit3-ENV): Remove variable.
16917         (tst-audit4-ENV): Likewise.
16918         (tst-audit5-ENV): Likewise.
16919         (tst-audit6-ENV): Likewise.
16920         (tst-audit7-ENV): Likewise.
16921         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
16922         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
16923         addition to variable.
16924         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
16925         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
16926         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
16927         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
16928         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
16929         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
16930         tst-audit3, tst-audit4 and tst-audit5.
16931         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
16932         tst-audit6 and tst-audit7.
16933         [$(subdir) = elf] (modules-names): Add audit modules for those
16934         tests.
16935         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
16936         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
16937         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
16938         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
16939         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
16940         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
16941         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
16942         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
16943         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
16944         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
16945         [$(subdir) = elf] (tst-audit3-ENV): New variable.
16946         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
16947         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
16948         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
16949         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
16950         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
16951         Likewise.
16952         [$(subdir) = elf && $(config-cflags-avx) = yes]
16953         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
16954         [$(subdir) = elf && $(config-cflags-avx) = yes]
16955         (CFLAGS-tst-auditmod4a.c): Likewise.
16956         [$(subdir) = elf && $(config-cflags-avx) = yes]
16957         (CFLAGS-tst-auditmod4b.c): Likewise.
16958         [$(subdir) = elf && $(config-cflags-avx) = yes]
16959         (CFLAGS-tst-auditmod6b.c): Likewise.
16960         [$(subdir) = elf && $(config-cflags-avx) = yes]
16961         (CFLAGS-tst-auditmod6c.c): Likewise.
16962         [$(subdir) = elf && $(config-cflags-avx) = yes]
16963         (CFLAGS-tst-auditmod7b.c): Likewise.
16964         * elf/tst-audit3.c: Move to ...
16965         * sysdeps/x86_64/tst-audit3.c: ... here.
16966         * elf/tst-audit4.c: Move to ...
16967         * sysdeps/x86_64/tst-audit4.c: ... here.
16968         * elf/tst-audit5.c: Move to ...
16969         * sysdeps/x86_64/tst-audit5.c: ... here.
16970         * elf/tst-audit6.c: Move to ...
16971         * sysdeps/x86_64/tst-audit6.c: ... here.
16972         * elf/tst-audit7.c: Move to ...
16973         * sysdeps/x86_64/tst-audit7.c: ... here.
16974         * elf/tst-auditmod3a.c: Move to ...
16975         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
16976         * elf/tst-auditmod3b.c: Move to ...
16977         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
16978         * elf/tst-auditmod4a.c: Move to ...
16979         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
16980         * elf/tst-auditmod4b.c: Move to ...
16981         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
16982         * elf/tst-auditmod5a.c: Move to ...
16983         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
16984         * elf/tst-auditmod5b.c: Move to ...
16985         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
16986         * elf/tst-auditmod6a.c: Move to ...
16987         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
16988         * elf/tst-auditmod6b.c: Move to ...
16989         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
16990         * elf/tst-auditmod6c.c: Move to ...
16991         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
16992         * elf/tst-auditmod7a.c: Move to ...
16993         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
16994         * elf/tst-auditmod7b.c: Move to ...
16995         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
16996
16997 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
16998
16999         [BZ #15366]
17000         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
17001         define unconditionally.
17002         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
17003         define unconditionally.
17004         (INT8_C, INT16_C, etc.): Likewise.
17005
17006 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
17007
17008         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
17009         __ehdr_start with hidden visibility.
17010
17011         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
17012
17013 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
17014
17015         * math/libm-test.inc (cos_test): Use accurate hex constants.
17016         (sincost_test): Likewise.
17017
17018 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
17019
17020         * math/libm-test.inc (catan_test): Add more tests.
17021         (catanh_test): Likewise.
17022
17023         * math/s_catanf.c (__catanf): Use suffixed floating-point
17024         constants.
17025         * math/s_catanhf.c (__catanhf): Likewise.
17026         * math/s_catanhl.c (__catanhl): Likewise.
17027         * math/s_catanl.c (__catanl): Likewise.
17028
17029         [BZ #15394]
17030         * math/s_catan.c (__catan): Calculate imaginary part of result
17031         with log1p not log unless computing log of number close to 0.
17032         * math/s_catanf.c (__catanf): Likewise.
17033         * math/s_catanl.c (__catanl): Likewise.
17034         * math/s_catanh.c (__catanh): Calculate real part of result with
17035         log1p not log unless computing log of number close to 0.
17036         * math/s_catanhf.c (__catanhf): Likewise.
17037         * math/s_catanhl.c (__catanhl): Likewise.
17038         * math/libm-test.inc (catan_test): Add more tests.
17039         (catanh_test): Likewise.
17040         * sysdeps/i386/fpu/libm-test-ulps: Update.
17041         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17042
17043 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
17044
17045         * benchtests/Makefile: Mention files in which fast and slow
17046         paths of math functions are implemented.
17047
17048 2013-04-23  Roland McGrath  <roland@hack.frob.com>
17049
17050         * sysdeps/posix/timespec_get.c: New file.
17051
17052 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17053
17054         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
17055         POWER.
17056         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
17057         for POWER.
17058         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
17059         powerpc/power5/fpu folders.
17060         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
17061         * benchtests/Makefile: Add modf testcase.
17062         * benchtests/bench-modf.c: New file: Benchmark test for mo
17063
17064 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
17065
17066         [BZ #14888]
17067         * time/Makefile (tests): Add tst-strptime-whitespace.
17068         * time/strptime_l.c (get_number): Use ISSPACE.
17069         (__strptime_internal): Likewise.
17070         * time/tst-strptime-whitespace.c: New test case.
17071
17072 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
17073
17074         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
17075         member.
17076         (_nss_files_init): Set it here.
17077
17078 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
17079
17080         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
17081         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
17082         unsigned.
17083
17084 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
17085
17086         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
17087
17088 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17089
17090         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
17091         size just once.
17092
17093 2013-04-21  David S. Miller  <davem@davemloft.net>
17094
17095         * po/ru.po: Update Russion translation from translation project.
17096
17097 2013-04-17  Adam Conrad  <adconrad@0c3.net>
17098
17099         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
17100         and setfsgid.
17101
17102 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
17103
17104         * configure.in: Remove i386 configure warning. Remove i386 case.
17105         * configure: Regenerate.
17106         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
17107         Add example to error message.
17108         * sysdeps/i386/configure: Regenerate.
17109
17110 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
17111
17112         * benchtests/Makefile (bench): Add cos, tan, slowcos and
17113         slowtan.
17114         * benchtests/cos-inputs: New file.
17115         * benchtests/slowcos-inputs: New file.
17116         * benchtests/slowcos.c: New file.
17117         * benchtests/slowtan-inputs: New file.
17118         * benchtests/slowtan.c: New file.
17119         * benchtests/tan-inputs: New file.
17120
17121 2013-04-16  Roland McGrath  <roland@hack.frob.com>
17122
17123         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
17124         considered kosher.
17125
17126 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
17127
17128         * benchtests/Makefile: Include cppflags-iterator.mk to add
17129         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
17130
17131         * Makefile.in (bench-clean): New target.
17132         * benchtests/Makefile (bench-clean): Likewise.
17133
17134 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
17135
17136         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
17137
17138 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
17139
17140         * stdio-common/tstdiomisc.c: Fix coding-style violation.
17141
17142 2013-04-15  Andreas Schwab  <schwab@suse.de>
17143
17144         * nscd/grpcache.c (cache_addgr): Properly check for short write.
17145         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17146         * nscd/pwdcache.c (cache_addpw): Likewise.
17147         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
17148         more than recsize.
17149
17150 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
17151
17152         * benchtests/Makefile (bench): Write all output to
17153         bench-out.tmp together.
17154
17155 2013-04-15  Andreas Schwab  <schwab@suse.de>
17156
17157         * nscd/nscd.c (main): Don't fork again after closing files.
17158
17159 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
17160
17161         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
17162
17163         * benchtests/Rules (bench-deps): Collect dependencies into a
17164         single variable.  Add Makefile to dependencies.
17165         ($(objpfx)bench-%.c): Depend on bench-deps.
17166
17167 2013-04-12  Roland McGrath  <roland@hack.frob.com>
17168             Xavier Roche  <roche+kml2@exalead.com>
17169
17170         [BZ #15361]
17171         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
17172         just that it's a file descriptor.
17173         * manual/llio.texi (Synchronizing AIO Operations): Update description
17174         for EBADF error from aio_fsync.
17175
17176 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
17177
17178         * Rules (bench): Move target definition...
17179         * benchtests/Makefile: ... here.
17180
17181 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
17182
17183         * math/libm-test.inc (cos_test): Fix PI/2 test.
17184         (sincos_test): Likewise.
17185         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
17186         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
17187
17188 2013-04-11  Andreas Schwab  <schwab@suse.de>
17189
17190         [BZ #13988]
17191         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
17192         accept exponent character only when digits were seen.
17193         * stdio-common/Makefile (tests): Add bug26.
17194         * stdio-common/bug26.c: New file.
17195
17196         [BZ #14293]
17197         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
17198         non-freeable.
17199
17200 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
17201
17202         * Makeconfig (rtld-prefix): Define built linker prefix.
17203         * Rules (run-bench): Use it.
17204         * math/Makefile (run-regen-ulps): Likewise.
17205
17206         * Rules (bench): Remove eval.
17207
17208 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17209             Roland McGrath  <roland@hack.frob.com>
17210             Ondrej Bilka  <neleai@seznam.cz>
17211
17212         [BZ #15346]
17213         * time/getdate.c: Include ctype.h and alloca.h.
17214         (__getdate_r): Trim leading and trailing spaces of input.
17215         * time/tst-getdate.c (tests): Add tests with leading and
17216         trailing spaces.
17217
17218 2013-04-08  Roland McGrath  <roland@hack.frob.com>
17219
17220         [BZ #14280]
17221         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
17222         when computing value.
17223
17224 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
17225
17226         * math/README.libm-test (How can I generate "libm-test-ulps"?):
17227         Use testrun.sh to run libm tests.
17228
17229         [BZ #15309]
17230         * elf/dl-open.c (dl_open_worker): memset all of seen array.
17231
17232 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
17233
17234         [BZ #15264]
17235         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
17236
17237 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
17238
17239         * Makefile.in (regen-ulps): New target.
17240         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
17241         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
17242         [ifneq (no,$(PERL)] (regen-ulps): New target.
17243         [ifeq (no,$(PERL)] (regen-ulps): New target.
17244         * math/libm-test.inc (ulps_file_name): Define.
17245         (output_dir): New variable.
17246         (options): Add "output-dir" option.
17247         (parse_opt): Handle 'o' case.
17248         (main): If output_dir is non-NULL use it as a prefix
17249         otherwise use "".
17250         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
17251
17252 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
17253
17254         [BZ #10060, #10062]
17255         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
17256         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
17257         fail configure if __sync_val_compare_and_swap is not inlined.
17258         * sysdeps/i386/configure: Regenerate.
17259         * configure.in: Build for i686 when configured for i386.
17260         * configure: Regenerate.
17261         * README: Remove i386 reference.
17262
17263 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
17264
17265         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
17266         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17267
17268 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
17269
17270         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
17271         (lmsnanval): New variables.
17272         (F): Add conversion tests.
17273         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
17274         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
17275
17276         * stdio-common/tstdiomisc.c (F): Properly collect individual
17277         tests' results.
17278
17279         [BZ #14686, #15336]
17280         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
17281         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
17282         Instead, use input NaN values or generate a qNaN by arithmetic
17283         operation.  Also fix bugs to comply with the standard.
17284         * math/libm-test.inc (remainder_test): Add more tests.
17285
17286         [BZ #15335, #15342]
17287         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
17288         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
17289         input NaN values or generate a qNaN by arithmetic operation.
17290
17291         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
17292         unreachable code.
17293
17294         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
17295         definitions.
17296
17297 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
17298
17299         [BZ #14478]
17300         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
17301         underflowed result.
17302         * math/s_cexpf.c (__cexpf): Likewise.
17303         * math/s_cexpl.c (__cexpl): Likewise.
17304         * math/libm-test.inc (cexp_test): Add more tests.
17305
17306 2013-04-03  Andreas Schwab  <schwab@suse.de>
17307
17308         [BZ #15330]
17309         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
17310         order arrays from heap if bigger than alloca cutoff.
17311
17312 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
17313
17314         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
17315         (SNAN_TESTS_double): Refer to GCC PR56831.
17316         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
17317         GCC PR56828.
17318
17319 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
17320
17321         * Rules (bench): Move bench.out after the run is complete.
17322
17323         * Rules (bench): Echo currently running benchmark.
17324
17325         * benchtests/Makefile (bench): Add atan and slowatan.
17326         * benchtests/atan-inputs: New file.
17327         * benchtests/slowatan-inputs: New file.
17328         * benchtests/slowatan.c: New file.
17329
17330         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
17331         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
17332         its value.
17333
17334         [BZ #15305]
17335         * sysdeps/unix/sysv/linux/kernel-features.h
17336         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
17337         __ASSUME_XFS_RESTRICTED_CHOWN.
17338         * sysdeps/unix/sysv/linux/pathconf.c
17339         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
17340         Save and restore errno.
17341
17342 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
17343
17344         [BZ #15327]
17345         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
17346         arguments using __kernel_casinh.
17347         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
17348         arguments using __kernel_casinhf.
17349         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
17350         arguments using __kernel_casinhl.
17351         * math/libm-test.inc (cacosh_test): Add more tests.
17352         * sysdeps/i386/fpu/libm-test-ulps: Update.
17353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17354
17355 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
17356
17357         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
17358         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
17359
17360         * bench/Makefile (bench): Add sin and slowsin.
17361         * benchtests/sin-inputs: New file.
17362         * benchtests/slowsin-inputs: New file.
17363         * benchtests/slowsin.c: New file.
17364
17365         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
17366         (bench): Add slowexp and slowpow.
17367         (exp-ITER): Increase iterations.
17368         (pow-ITER): Likewise.
17369         * benchtests/exp-inputs: Change input.
17370         * benchtests/pow-inputs: Likewise.
17371         * benchtests/slowexp-inputs: New file.
17372         * benchtests/slowexp.c: New file.
17373         * benchtests/slowpow-inputs: New file.
17374         * benchtests/slowpow.c: New file.
17375
17376 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17377
17378         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
17379         instructions.
17380         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
17381         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
17382         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
17383         * benchtests/Makefile: Add rint benchtest.
17384         * benchtests/rint-inputs: Input for rint benchtest.
17385
17386 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17387
17388         * Versions.def (libm): Add GLIBC_2.18.
17389         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
17390         hidden libm prototypes.
17391         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
17392         * math/Makefile (libm-calls): Add s_issignaling.
17393         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
17394         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
17395         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
17396         declaration.
17397         * math/math.h [__USE_GNU] (issignaling): New macro.
17398         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
17399         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
17400         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
17401         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
17402         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
17403         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
17404         * manual/arith.texi (issignaling): New section.
17405         * manual/libm-err-tab.pl (@all_functions): Update comment.
17406         * math/gen-libm-test.pl (parse_args): Apply special handling for
17407         issignaling.
17408         * math/libm-test.inc (print_float, issignaling_test): New
17409         functions.
17410         (check_float_internal): Add issignaling checks.
17411         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
17412         default definition.
17413         * sysdeps/powerpc/math-tests.h: New file.
17414         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
17415         tests.
17416         * math/test-snan.c (TEST_FUNC): Likewise.
17417
17418 2013-03-30  David S. Miller  <davem@davemloft.net>
17419
17420         * po/de.po: Update from translation team.
17421
17422 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
17423
17424         [BZ #10357]
17425         * math/k_casinh.c (__kernel_casinh): Handle arguments with
17426         imaginary part less than 1.0 and real part less than 0.5
17427         specially.
17428         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17429         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17430         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
17431         (cacos_test): Add more tests.
17432         (casin_test): Likewise.
17433         (casinh_test): Likewise.
17434         * sysdeps/i386/fpu/libm-test-ulps: Update.
17435         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17436
17437 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
17438
17439         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
17440         ONE with its value.
17441
17442         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
17443         (__pow_mp): Replace ONE and MONE with their values.
17444         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
17445         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
17446         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
17447         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
17448         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
17449         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
17450
17451         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
17452
17453         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
17454         (__pow_mp): Replace ZERO and MZERO with their values.
17455         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
17456         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
17457         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
17458         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
17459         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
17460         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
17461         (__sqr): Likewise.
17462
17463         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
17464
17465         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
17466
17467 2013-03-28  Roland McGrath  <roland@hack.frob.com>
17468
17469         * include/stdlib.h [!SHARED] (__call_tls_dtors):
17470         Declare with __attribute__ ((weak)).
17471         * stdlib/exit.c (__libc_atexit) [!SHARED]:
17472         Call __call_tls_dtors only if it's not NULL.
17473
17474 2013-03-28  Roland McGrath  <roland@hack.frob.com>
17475
17476         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
17477         didn't do it already, then set _dl_phdr and _dl_phnum based on the
17478         magic __ehdr_start linker symbol if it's defined.
17479         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
17480         them up here if it was already done.
17481
17482         * elf/dl-support.c (_dl_phdr): Make pointer to const.
17483         (_dl_aux_init): Use const in cast when setting it.
17484         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
17485         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
17486         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
17487
17488         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
17489         Declare them here.
17490         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
17491         * csu/libc-tls.c: Nor here.
17492         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
17493
17494         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
17495         (__libc_message): Never call vsyslog.
17496
17497 2013-03-28  Alan Modra  <amodra@gmail.com>
17498
17499         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
17500         Define as empty.
17501         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
17502         Likewise.
17503
17504 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17505
17506         [BZ #15214]
17507         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
17508         underflow.
17509         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17510
17511 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17512
17513         [BZ #15304]
17514         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
17515         Don't add gid passed as argument.
17516
17517         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
17518
17519 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
17520
17521         [BZ #15307]
17522         * math/k_casinh.c (__kernel_casinh): Handle arguments with
17523         imaginary part between 1.0 and 1.5 and real part less than 0.5
17524         specially.
17525         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17526         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17527         * math/libm-test.inc (cacos_test): Add more tests.
17528         (casin_test): Likewise.
17529         (casinh_test): Likewise.
17530         * sysdeps/i386/fpu/libm-test-ulps: Update.
17531         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17532
17533 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17534
17535         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
17536         constants.
17537         (norm): Likewise.
17538         (denorm): Likewise.
17539         (__dbl_mp): Likewise.
17540         (add_magnitudes): Likewise.
17541         (sub_magnitudes): Likewise.
17542         (__add): Likewise.
17543         (__sub): Likewise.
17544         (__mul): Likewise.
17545         (__sqr): Likewise.
17546         (__inv): Likewise.
17547         (__dvd): Likewise.
17548
17549         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
17550         commented code.
17551         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
17552         (__dubcos): Likewise.
17553         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
17554         (__ieee754_acos): Likewise.
17555         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
17556         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
17557         (__exp1): Likewise.
17558         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
17559         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
17560         (log1): Likewise.
17561         (my_log2): Likewise.
17562         (checkint): Likewise.
17563         * sysdeps/ieee754/dbl-64/e_remainder.c
17564         (__ieee754_remainder): Likewise.
17565         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
17566         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
17567         (bsloww): Likewise.
17568         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
17569
17570         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
17571         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
17572         MANTISSA_STORE_T to store computations on mantissa.  Use
17573         macros for rounding and division.
17574         (denorm): Likewise.
17575         (__dbl_mp): Likewise.
17576         (add_magnitudes): Likewise.
17577         (sub_magnitudes): Likewise.
17578         (__mul): Likewise.
17579         (__sqr): Likewise.
17580         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
17581         powers of two in terms of TWOPOW macro.
17582         (mp_no): Make type of mantissa as MANTISSA_T.
17583         [!RADIXI]: Define RADIXI.
17584         [!TWO52]: Define TWO52.
17585         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
17586
17587 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17588
17589         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
17590         llroundl symbol when building for PPC32.
17591
17592 2013-03-24  Mark H Weaver  <mhw@netris.org>
17593
17594         * manual/arith.texi (Normalization Functions): Fix prototypes for
17595         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
17596
17597 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17598
17599         [BZ #13889]
17600         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
17601         high value to check if expl overflow.
17602         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
17603         to check for underflow and overflow.
17604         * math/libm-test.inc: Add exp test.
17605
17606 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
17607
17608         [BZ #11120]
17609         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
17610         with NOT_IN_libc.
17611
17612 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17613
17614         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
17615         symbol.
17616
17617 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
17618
17619         * math/gen-libm-test.pl (parse_args, special_functions): Properly
17620         wrap blocks consisting of several statements.
17621
17622         * sysdeps/generic/math-tests.h: New file.
17623         * sysdeps/i386/fpu/math-tests.h: Likewise.
17624         * math/test-snan.c: Include it.
17625         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
17626
17627 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
17628
17629         [BZ #15285]
17630         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
17631         (__ieee754_j0l): Do not improve calculations using cos of twice
17632         input for inputs above LDBL_MAX / 2.0L.
17633         (__ieee754_y0l): Likewise.
17634         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
17635         (__ieee754_j1l): Do not improve calculations using cos of twice
17636         input for inputs above LDBL_MAX / 2.0L.
17637         (__ieee754_y1l): Likewise.
17638         * math/libm-test.inc (j0_test): Add another test.
17639         (j1_test): Likewise.
17640         (y0_test): Likewise.
17641         (y1_test): Likewise.
17642         * sysdeps/i386/fpu/libm-test-ulps: Update.
17643
17644 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17645
17646         * Rules ($(objpfx)bench-%.c): Include code from a C source
17647         file.
17648
17649 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
17650
17651         [BZ #15287]
17652         * math/k_casinh.c (__kernel_casinh): Handle arguments with
17653         imaginary part 1.0 and real part less than 0.5 specially.
17654         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17655         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17656         * math/libm-test.inc (cacos_test): Add more tests.
17657         (casin_test): Likewise.
17658         (casinh_test): Likewise.
17659         * sysdeps/i386/fpu/libm-test-ulps: Update.
17660         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17661
17662 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17663
17664         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
17665         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
17666
17667 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
17668
17669         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
17670         * config.make.in (config-cflags-sse4): Remove variable.
17671         (config-cflags-avx): Likewise.
17672         (config-cflags-sse2avx): Likewise.
17673         (config-cflags-novzeroupper): Likewise.
17674         (config-asflags-i686): Likewise.
17675         (have-mfma4): Likewise.
17676         (have-as-vis3): Likewise.
17677         (MIG): Likewise.
17678         * configure.in (MIG): Do not AC_SUBST.
17679         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
17680         (libc_cv_cc_sse4): Do not AC_SUBST.
17681         (libc_cv_cc_avx): Likewise.
17682         (libc_cv_cc_sse2avx): Likewise.
17683         (libc_cv_cc_novzeroupper): Likewise.
17684         (libc_cv_cc_fma4): Likewise.
17685         (libc_cv_as_i686): Likewise.
17686         (libc_cv_sparc_as_vis3): Likewise.
17687         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
17688         LIBC_CONFIG_VAR.
17689         (config-asflags-i686): Likewise.
17690         (config-cflags-avx): Likewise.
17691         (config-cflags-sse2avx): Likewise.
17692         (have-mfma4): Likewise.
17693         (config-cflags-novzeroupper): Likewise.
17694         * sysdeps/mach/configure.in (MIG): Likewise.
17695         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
17696         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
17697         LIBC_CONFIG_VAR.
17698         (config-cflags-avx): Likewise.
17699         (config-cflags-sse2avx): Likewise.
17700         (have-mfma4): Likewise.
17701         (config-cflags-novzeroupper): Likewise.
17702         * configure: Regenerated.
17703         * sysdeps/i386/configure: Likewise.
17704         * sysdeps/mach/configure: Likewise.
17705         * sysdeps/sparc/configure: Likewise.
17706         * sysdeps/x86_64/configure: Likewise.
17707
17708 2013-03-20  Roland McGrath  <roland@hack.frob.com>
17709
17710         [BZ #14812]
17711         * locale/programs/localedef.c (options): Put N_ translation marker
17712         on argument names, not just descriptions.
17713
17714 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
17715
17716         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
17717
17718 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
17719
17720         [BZ #14176]
17721         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
17722
17723 2013-03-19  Roland McGrath  <roland@hack.frob.com>
17724
17725         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
17726         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
17727         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
17728         [!BEFORE_ABORT] (before_abort): New function.
17729         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
17730         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
17731         (writev_for_fatal): New function.
17732         (WRITEV_FOR_FATAL): New macro; call that.
17733         (backtrace_and_maps): New function.
17734         (BEFORE_ABORT): New macro; call that.
17735         (struct str_list): Type removed.
17736         (__libc_message, __libc_fatal): Functions removed.
17737         Include <sysdeps/posix/libc_fatal.c> instead.
17738
17739 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
17740
17741         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
17742         constants.
17743         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
17744         double constants.
17745
17746 2013-03-19  Andreas Schwab  <schwab@suse.de>
17747
17748         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
17749         * sysdeps/gnu/configure: Regenerate.
17750
17751         * configure.in: Substitute libc_cv_rtlddir.
17752         * configure: Regenerate.
17753         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
17754         * Makeconfig (rtlddir, inst_rtlddir): New variables.
17755         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
17756         * elf/Makefile (install-others, CFLAGS-interp.c)
17757         (ldso_install, common-ldd-rewrite): Likewise.
17758         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
17759         $(inst_slibdir)/$(rtld-installed-name).
17760         * scripts/rellns-sh: Add -p option.
17761         * Makerules (make-shlib-link): Use rellns-sh to get relative name
17762         for source.
17763
17764 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17765
17766         * manual/nptl.texi: Renamed to ...
17767         * manual/threads.texi: ... this.
17768         * manual/Makefile (chapters): Update.
17769
17770 2013-03-18  Roland McGrath  <roland@hack.frob.com>
17771
17772         [BZ #14812]
17773         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
17774         on argument names, not just descriptions.
17775         * malloc/memusagestat.c (options): Likewise.
17776         * nss/getent.c (options): Likewise.
17777
17778 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
17779
17780         [BZ #14812]
17781         * iconv/iconv_prog.c (options): Put N_ translation marker
17782         on argument names, not just descriptions.
17783         * iconv/iconvconfig.c (options): Likewise.
17784
17785 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
17786
17787         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
17788         implementation which is faster on all x86_64 architectures.
17789         Tested on AMD, Intel Nehalem, SNB, IVB.
17790         * sysdeps/x86_64/strnlen.S: Likewise.
17791
17792         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
17793         Remove all multiarch strlen and strnlen versions.
17794         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
17795         Remove strlen and strnlen related parts.
17796
17797         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
17798         Inline strlen part.
17799         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
17800
17801         * sysdeps/x86_64/multiarch/strlen.S: Remove.
17802         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
17803         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
17804         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
17805         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
17806         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
17807
17808 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
17809
17810         * manual/memory.texi (Malloc Tunable Parameters):
17811         Sort parameters alphabetically. Add comments for missing entries.
17812
17813 2013-03-17  David S. Miller  <davem@davemloft.net>
17814
17815         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17816
17817 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
17818
17819         [BZ #15283]
17820         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
17821         for arguments at most half maximum finite value.
17822         * math/libm-test.inc (j0_test): Add more tests.
17823         (j1_test): Likewise.
17824         (y0_test): Likewise.
17825         (y1_test): Likewise.
17826         * sysdeps/i386/fpu/libm-test-ulps: Update.
17827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17828
17829         [BZ #14155]
17830         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
17831         1 / x and functions P and Q for arguments above 0x1p256L.
17832         (__ieee754_y0l): Likewise.
17833         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
17834         (__ieee754_y1l): Likewise.
17835         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
17836         (j1_test): Likewise.
17837         (y0_test): Likewise.
17838         (y1_test): Likewise.
17839
17840 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
17841
17842         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
17843         variable.
17844
17845 2013-03-15  Roland McGrath  <roland@hack.frob.com>
17846
17847         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
17848         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
17849         zero since it's initialized to EXEC_PAGESIZE.
17850
17851         * sysdeps/unix/sysv/linux/ldsodefs.h
17852         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
17853         * sysdeps/generic/ldsodefs.h: ... here.
17854
17855 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
17856
17857         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
17858
17859         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
17860         math/test-snan.c.
17861         * math/test-snan.c: Renamed from
17862         sysdeps/powerpc/fpu/test-powerpc-snan.c.
17863         * math/Makefile (tests): Add test-snan.
17864         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
17865         test-powerpc-snan.
17866
17867         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
17868         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
17869         functions.
17870         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
17871         __builtin_nan family of functions.
17872         * math/libm-test.inc (initialize): Initialize qnan_value with
17873         __builtin_nan family of functions.
17874         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
17875         Remove variables.
17876         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
17877         Remove functions.
17878         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
17879         storage class.  Initialize qNaN_var and sNaN_var with
17880         __builtin_nan and __builtin_nans families of functions,
17881         respectively.
17882
17883         * math/libm-test.inc (acosh_test): Also test with qNaN input.
17884         (sqrt_test): Remove duplicate test with qNaN input.
17885         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
17886         (round_test, signbit_test, significand_test): Note missing +/-Inf
17887         as well as qNaN tests.
17888
17889         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
17890         qNaN_var.  Fix a few strings, too.
17891         * math/libm-test.inc (nan_value): Rename to qnan_value.
17892         * math/gen-libm-test.pl (%beautify): Adjust to that.
17893         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
17894         * math/test-misc.c (main): Likewise.
17895         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
17896         to __qnan_bytes, and __qnan_union, respectively.
17897         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
17898         Likewise.
17899         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
17900         and lqnanval, respectively.
17901         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
17902         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
17903         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
17904         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
17905
17906         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
17907         * math/test-misc.c (main) [__x86_64__]: Enable test for long
17908         doubles.
17909
17910         * math/test-misc.c (main): Fix copy'n'pastos.
17911         * misc/tst-efgcvt.c (special): Likewise.
17912
17913         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
17914         Remove declarations.
17915
17916 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
17917
17918         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
17919         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
17920         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
17921         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
17922
17923 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17924
17925         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
17926         macro to return vdso values correctly in IFUNC implementations.
17927         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
17928         Optimization by using IFUNC.
17929
17930 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
17931             Richard Henderson  <rth@redhat.com>
17932             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17933
17934         * Makefile.in (bench): New target.
17935         * NEWS: Mention the benchmark framework.
17936         * Rules (bench): Likewise.
17937         (binaries-bench): Generate binaries for functions to
17938         benchmark.
17939         * benchtests/Makefile: New makefile for benchmark tests.
17940         * benchtests/bench-skeleton.c: New skeleton file for benchmark
17941         programs.
17942         * benchtests/exp-inputs: New input file for EXP function.
17943         * benchtests/pow-inputs: New input file for POW function.
17944         * scripts/bench.pl: New script to generate source files for
17945         benchmark programs.
17946
17947 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
17948
17949         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
17950         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
17951         computations on mantissa.  Use macros for rounding and
17952         division.
17953         (denorm): Likewise.
17954         (__dbl_mp): Likewise.
17955         (add_magnitudes): Likewise.
17956         (sub_magnitudes): Likewise.
17957         (__mul): Likewise.
17958         (__sqr): Likewise.
17959         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
17960         powers of two in terms of TWOPOW macro.
17961         (mp_no): Make type of mantissa as MANTISSA_T.
17962         [!RADIXI]: Define RADIXI.
17963         [!TWO52]: Define TWO52.
17964         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
17965
17966         * manual/nptl.texi (cindex): Modify threads to pthreads.
17967
17968 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
17969
17970         * sysdeps/x86_64/preconfigure: Regenerated.
17971
17972 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
17973
17974         [BZ #14155]
17975         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
17976         0x1p28 and above.
17977         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
17978         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
17979         0x1p28 and above.
17980         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
17981         * math/libm-test.inc (j0_test): Do not allow one spurious
17982         underflow exception.
17983         (y1_test): Likewise.
17984
17985 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
17986
17987         * manual/Makefile (chapters): Add nptl.
17988         * manual/debug.texi (Debugging Support): Add link to Threads
17989         chapter.
17990         * manual/nptl.texi: New file.
17991
17992         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
17993
17994 2013-03-14  Petr Baudis  <pasky@ucw.cz>
17995
17996         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
17997         for non-NULL pointer before the memory validity test. Pointed
17998         out by Holger Brunck <holger.brunck@keymile.com>.
17999
18000 2013-03-13  Andreas Schwab  <schwab@suse.de>
18001
18002         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
18003         instead of .os.
18004
18005 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
18006
18007         * timezone/zic.c: Update from tzcode 2013b.
18008
18009 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
18010
18011         * manual/install.texi (Configuring and compiling):
18012         Mention i686 and i586.
18013         * INSTALL: Regenerate.
18014
18015 2013-03-12  Roland McGrath  <roland@hack.frob.com>
18016
18017         * sysdeps/init_array/elf-init.c: New file.
18018         * csu/elf-init.c
18019         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
18020         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
18021
18022         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
18023         __gmon_start__ as global, but as static with a .preinit_array pointer.
18024         * sysdeps/init_array/gmon-start.c: New file.  Use that.
18025         * sysdeps/init_array/crti.S: New file, empty except for comments.
18026         * sysdeps/init_array/crtn.S: Likewise.
18027
18028 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
18029
18030         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
18031         definining bcopy.
18032         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18033         Remove Prefer_SSE_for_memop.
18034         * sysdeps/x86_64/multiarch/init-arch.h: Remove
18035         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
18036         HAS_PREFER_SSE_FOR_MEMOP.
18037         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
18038         memset-x86-64.
18039         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
18040         Remove bzero, memset ifunc support.
18041         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
18042         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
18043         * sysdeps/x86_64/multiarch/memset.S: Likewise.
18044         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18045
18046 2013-03-11  Andreas Schwab  <schwab@suse.de>
18047
18048         [BZ #15234]
18049         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
18050         by SHLIB_COMPAT.
18051         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
18052         (GLIBC_2.16): Remove pthread_atfork.
18053
18054 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
18055
18056         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
18057         (ptestcases.h): Likewise.
18058
18059 2013-03-08  Roland McGrath  <roland@hack.frob.com>
18060
18061         * Makeconfig ($(common-objpfx)config.status): Depend on
18062         sysdeps/*/preconfigure{,.in} too.
18063
18064 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
18065
18066         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
18067         (__free_hook): Use void * instead of __malloc_ptr_t.
18068         (__malloc_hook): Likewise.
18069         (__realloc_hook): Likewise.
18070         (__memalign_hook): Likewise.
18071         (__after_morecore_hook): Likewise.
18072         * malloc/arena.c (save_malloc_hook): Likewise.
18073         (save_free_hook): Likewise.
18074         * malloc/hooks.c (malloc_hook_ini): Likewise.
18075         (realloc_hook_ini): Likewise.
18076         (memalign_hook_ini): Likewise.
18077         * malloc/malloc.c (malloc_hook_ini): Likewise.
18078         (realloc_hook_ini): Likewise.
18079         (memalign_hook_ini): Likewise.
18080         (__free_hook): Likewise.
18081         (__malloc_hook): Likewise.
18082         (__realloc_hook): Likewise.
18083         (__memalign_hook): Likewise.
18084         (__libc_malloc): Likewise.
18085         (__libc_free): Likewise.
18086         (__libc_realloc): Likewise.
18087         (__libc_memalign): Likewise.
18088         (__libc_valloc): Likewise.
18089         (__libc_pvalloc): Likewise.
18090         (__libc_calloc): Likewise.
18091         (__posix_memalign): Likewise.
18092         * malloc/morecore.c (__sbrk): Likewise.
18093         (__default_morecore): Likewise.
18094
18095         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
18096
18097         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
18098         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
18099         __malloc_ptrdiff_t.
18100
18101         * malloc/malloc.h (__malloc_size_t): Remove macro.
18102         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
18103         __malloc_size_t.
18104         (old_memalign_hook): Likewise.
18105         (old_realloc_hook): Likewise.
18106         (struct hdr): Likewise.
18107         (flood): Likewise.
18108         (mallochook): Likewise.
18109         (memalignhook): Likewise.
18110         (reallochook): Likewise.
18111         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
18112         (tr_old_realloc_hook): Likewise.
18113         (tr_old_memalign_hook): Likewise.
18114         (tr_mallochook): Likewise.
18115         (tr_reallochook): Likewise.
18116         (tr_memalignhook): Likewise.
18117
18118 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18119
18120         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
18121         default_ldbl_pack and using as default implementation.
18122         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
18123         implementation.
18124         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
18125         redundant definition.
18126         (ldbl_insert_mantissa): Likewise.
18127         (ldbl_canonicalize): Likewise.
18128         (ldbl_nearbyint): Likewise.
18129         (ldbl_pack): Rename to ldbl_pack_ppc.
18130         (ldbl_unpack): Rename to ldbl_unpack_ppc.
18131         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
18132         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
18133
18134 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
18135
18136         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
18137         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
18138         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
18139         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
18140         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
18141         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
18142         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
18143         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
18144
18145 2013-03-07  Andreas Jaeger  <aj@suse.de>
18146
18147         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18148         bits/mman-linux.h.
18149
18150 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
18151
18152         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
18153         Include mpa.h and declare __MPEXP.
18154         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
18155         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
18156         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
18157         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
18158         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
18159         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
18160         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
18161
18162         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
18163         (__slowpow): Use long double EXPL and LOGL functions to
18164         compute POW.
18165         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
18166         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
18167         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
18168         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
18169         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
18170         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
18171
18172         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
18173         intermediate variable to calculate exponent.
18174         (__sqr): Likewise.
18175         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
18176         Likewise.
18177         (__sqr): Likewise.
18178
18179         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
18180         [!NO__SQR]: Define __sqr.
18181         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
18182         and NO__SQR.  Remove all code except __mul and __sqr.  Include
18183         sysdeps/ieee754/dbl-64/mpa.c.
18184         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
18185
18186         [BZ #12723]
18187         * posix/Makefile (tests): Add tst-pathconf.
18188         * posix/tst-pathconf.c: New test case.
18189         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
18190         _PC_PIPE_BUF.
18191         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
18192
18193 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
18194
18195         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
18196
18197 2013-03-06  Andreas Jaeger  <aj@suse.de>
18198
18199         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
18200         definition via __MAP_ANONYMOUS.
18201
18202         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
18203         it's not part of Linux headers.
18204
18205         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
18206         (MAP_HUGE_MASK): Define.
18207
18208         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
18209         Define.
18210         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
18211         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
18212         Define.
18213         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
18214         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
18215         Define.
18216         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
18217         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
18218         Define.
18219         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
18220
18221         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
18222         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
18223         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
18224         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
18225         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
18226         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
18227
18228         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18229         Handle f2fs.
18230
18231         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18232         Handle f2fs and efivarfs.
18233
18234         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
18235         f2fs.
18236
18237         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
18238         (EFIVARFS_MAGIC): Add.
18239         (F2FS_LINK_MAX): Add.
18240
18241 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18242
18243         * stdio-common/vfprintf.c: Replace __builtin_expect with
18244         __glibc_unlikely.
18245
18246 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
18247
18248         [BZ #13550]
18249         * sysdeps/generic/bp-sym.h: Remove file.
18250         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
18251         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
18252         <bp-sym.h> and <bp-asm.h>.
18253         (__longjmp): Don't use BP_SYM.
18254         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
18255         and <bp-asm.h>.
18256         (memcpy): Don't use BP_SYM.
18257         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
18258         <bp-sym.h> and <bp-asm.h>.
18259         (memcpy): Don't use BP_SYM.
18260         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
18261         <bp-asm.h>.
18262         (memcpy): Don't use BP_SYM.
18263         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
18264         <bp-asm.h>.
18265         (memset): Don't use BP_SYM.
18266         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
18267         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
18268         (__bzero): Don't use BP_SYM.
18269         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
18270         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
18271         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
18272         <bp-sym.h> and <bp-asm.h>.
18273         (memcmp): Don't use BP_SYM.  Remove comment about bounded
18274         pointers.
18275         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
18276         <bp-sym.h> and <bp-asm.h>.
18277         (memcpy): Don't use BP_SYM.
18278         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
18279         <bp-sym.h> and <bp-asm.h>.
18280         (memset): Don't use BP_SYM.
18281         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
18282         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
18283         (__bzero): Don't use BP_SYM.
18284         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
18285         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
18286         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
18287         <bp-sym.h> and <bp-asm.h>.
18288         (strncmp): Don't use BP_SYM.  Remove comment about bounded
18289         pointers.
18290         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
18291         <bp-sym.h> and <bp-asm.h>.
18292         (memcpy): Don't use BP_SYM.
18293         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
18294         <bp-sym.h> and <bp-asm.h>.
18295         (memset): Don't use BP_SYM.
18296         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
18297         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
18298         (__bzero): Don't use BP_SYM.
18299         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
18300         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
18301         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
18302         <bp-sym.h> and <bp-asm.h>.
18303         (__memchr): Don't use BP_SYM.
18304         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
18305         <bp-sym.h> and <bp-asm.h>.
18306         (memcmp): Don't use BP_SYM.  Remove comment about bounded
18307         pointers.
18308         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
18309         <bp-sym.h> and <bp-asm.h>.
18310         (memcpy): Don't use BP_SYM.
18311         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
18312         <bp-sym.h> and <bp-asm.h>.
18313         (__mempcpy): Don't use BP_SYM.
18314         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
18315         <bp-sym.h> and <bp-asm.h>.
18316         (__memrchr): Don't use BP_SYM.
18317         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
18318         <bp-sym.h> and <bp-asm.h>.
18319         (memset): Don't use BP_SYM.
18320         (__bzero): Likewise.
18321         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
18322         <bp-sym.h> and <bp-asm.h>.
18323         (__rawmemchr): Don't use BP_SYM.
18324         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
18325         <bp-sym.h> and <bp-asm.h>.
18326         (__STRCMP): Don't use BP_SYM.
18327         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
18328         <bp-sym.h> and <bp-asm.h>.
18329         (strchr): Don't use BP_SYM.
18330         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
18331         <bp-sym.h> and <bp-asm.h>.
18332         (__strchrnul): Don't use BP_SYM.
18333         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
18334         <bp-sym.h> and <bp-asm.h>.
18335         (strlen): Don't use BP_SYM.
18336         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
18337         <bp-sym.h> and <bp-asm.h>.
18338         (strncmp): Don't use BP_SYM.  Remove comment about bounded
18339         pointers.
18340         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
18341         <bp-sym.h> and <bp-asm.h>.
18342         (__strnlen): Don't use BP_SYM.
18343         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
18344         <bp-sym.h> and <bp-asm.h>.
18345         (__GI__setjmp): Don't use BP_SYM.
18346         (_setjmp): Likewise.
18347         (__sigsetjmp): Likewise.
18348         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
18349         (L(start_addresses)): Don't use BP_SYM.
18350         (_start): Likewise.
18351         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
18352         <bp-asm.h>.
18353         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
18354         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
18355         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
18356         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
18357         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
18358         <bp-asm.h>.
18359         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
18360         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
18361         about bounded pointers.
18362         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
18363         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
18364         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
18365         <bp-asm.h>.
18366         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
18367         about bounded pointers.  Remove GKM FIXME comments.
18368         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
18369         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
18370         <bp-asm.h>.
18371         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
18372         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
18373         Remove GKM FIXME comments.
18374         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
18375         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
18376         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
18377         <bp-asm.h>.
18378         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
18379         about bounded pointers.  Remove GKM FIXME comment.
18380         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
18381         and <bp-asm.h>.
18382         (strncmp): Don't use BP_SYM.  Remove comment about bounded
18383         pointers.
18384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
18385         <bp-sym.h> and <bp-asm.h>.
18386         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
18387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
18388         <bp-sym.h> and <bp-asm.h>.
18389         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
18390         comment.
18391
18392 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18393
18394         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
18395         call free(NULL).
18396
18397 2013-03-05  David S. Miller  <davem@davemloft.net>
18398
18399         * po/es.po: Update from translation team.
18400
18401 2013-03-05  Andreas Jaeger  <aj@suse.de>
18402
18403         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
18404         <bits/mman-linux.h>.
18405         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
18406         is fine.
18407         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
18408         <bits/mman-linux.h> to end of file.
18409         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
18410         is fine.
18411         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
18412         <bits/mman-linux.h> to end of file.
18413         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
18414         is fine.
18415         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
18416         <bits/mman-linux.h> to end of file.
18417
18418         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
18419         (MCL_CURRENT, MCL_FUTURE): Define here.
18420
18421 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18422
18423         [BZ #15232]
18424         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
18425         attribute_hidden.
18426         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
18427
18428 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18429
18430         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
18431         fourth parameter needed for rt_sigprocmask syscall.
18432         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
18433         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
18434         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
18435         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
18436         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
18437         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
18438
18439 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
18440
18441         [BZ #13550]
18442         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
18443         comment about bounded pointers.
18444         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
18445         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
18446
18447 2013-03-04  Andreas Jaeger  <aj@suse.de>
18448
18449         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
18450         common definitions.
18451
18452         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
18453         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
18454         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
18455         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18456         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18457         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18458
18459 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18460
18461         [BZ #15055]
18462         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
18463         __ieee754_sqrl instead of __sqrl.
18464
18465 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
18466
18467         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
18468         * sysdeps/powerpc/fpu_control.h: ... here.
18469         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
18470         * sysdeps/powerpc/bits/fenvinline.h: ... here.
18471         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
18472         * sysdeps/powerpc/bits/mathinline.h: ... here.
18473
18474 2013-03-01  Roland McGrath  <roland@hack.frob.com>
18475
18476         * elf/dl-hwcaps.c (_dl_important_hwcaps):
18477         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
18478         to just [NEED_DL_SYSINFO_DSO].
18479         * elf/dl-support.c: Likewise.
18480         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
18481         * elf/rtld.c (dl_main): Likewise.
18482         * elf/setup-vdso.h (setup_vdso): Likewise.
18483         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
18484         * sysdeps/unix/sysv/linux/dl-sysdep.c
18485         (_dl_discover_osversion): Likewise.
18486
18487 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
18488
18489         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
18490         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
18491
18492 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
18493
18494         * NEWS: Mention libm performance improvements and non-x86 PI
18495         futex support.
18496
18497         * csu/libc-start.c (__pthread_initialize_minimal): Change
18498         function arguments.
18499         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
18500
18501 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
18502
18503         [BZ #13550]
18504         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
18505         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
18506         <bp-sym.h> and <bp-asm.h>.
18507         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
18508         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
18509         and <bp-asm.h>.
18510         (memcpy): Don't use BP_SYM.
18511         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
18512         <bp-asm.h>.
18513         (__mpn_add_n): Don't use BP_SYM.
18514         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
18515         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
18516         and <bp-asm.h>.
18517         (__mpn_addmul_1): Don't use BP_SYM.
18518         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18519         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
18520         <bp-sym.h>.
18521         (_setjmp): Don't use BP_SYM.
18522         (__novmx_setjmp): Likewise.
18523         (__GI__setjmp): Likewise.
18524         (__vmx_setjmp): Likewise.
18525         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
18526         <bp-sym.h>.
18527         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
18528         (__bzero): Don't use BP_SYM.
18529         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
18530         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
18531         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
18532         <bp-sym.h> and <bp-asm.h>.
18533         (memcpy): Don't use BP_SYM.
18534         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
18535         <bp-sym.h> and <bp-asm.h>.
18536         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
18537         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
18538         <bp-sym.h> and <bp-asm.h>.
18539         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
18540         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
18541         <bp-asm.h>.
18542         (__mpn_lshift): Don't use BP_SYM.
18543         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
18544         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
18545         <bp-asm.h>.
18546         (memset): Don't use BP_SYM.
18547         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
18548         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
18549         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
18550         <bp-asm.h>.
18551         (__mpn_mul_1): Don't use BP_SYM.
18552         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18553         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
18554         <bp-sym.h> and <bp-asm.h>.
18555         (memcmp): Don't use BP_SYM.
18556         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
18557         <bp-sym.h> and <bp-asm.h>.
18558         (memcpy): Don't use BP_SYM.
18559         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
18560         <bp-sym.h> and <bp-asm.h>.
18561         (memset): Don't use BP_SYM.
18562         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
18563         <bp-sym.h> and <bp-asm.h>.
18564         (strncmp): Don't use BP_SYM.
18565         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
18566         <bp-sym.h> and <bp-asm.h>.
18567         (memcpy): Don't use BP_SYM.
18568         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
18569         <bp-sym.h> and <bp-asm.h>.
18570         (memset): Don't use BP_SYM.
18571         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
18572         <bp-sym.h> and <bp-asm.h>.
18573         (__memchr): Don't use BP_SYM.
18574         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
18575         <bp-sym.h> and <bp-asm.h>.
18576         (memcmp): Don't use BP_SYM.
18577         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
18578         <bp-sym.h> and <bp-asm.h>.
18579         (memcpy): Don't use BP_SYM.
18580         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
18581         <bp-sym.h> and <bp-asm.h>.
18582         (__mempcpy): Don't use BP_SYM.
18583         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
18584         <bp-sym.h> and <bp-asm.h>.
18585         (__memrchr): Don't use BP_SYM.
18586         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
18587         <bp-sym.h> and <bp-asm.h>.
18588         (memset): Don't use BP_SYM.
18589         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
18590         <bp-sym.h> and <bp-asm.h>.
18591         (__rawmemchr): Don't use BP_SYM.
18592         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
18593         <bp-sym.h> and <bp-asm.h>.
18594         (__STRCMP): Don't use BP_SYM.
18595         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
18596         <bp-sym.h> and <bp-asm.h>.
18597         (strchr): Don't use BP_SYM.
18598         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
18599         <bp-sym.h> and <bp-asm.h>.
18600         (__strchrnul): Don't use BP_SYM.
18601         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
18602         <bp-sym.h> and <bp-asm.h>.
18603         (strlen): Don't use BP_SYM.
18604         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
18605         <bp-sym.h> and <bp-asm.h>.
18606         (strncmp): Don't use BP_SYM.
18607         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
18608         <bp-sym.h> and <bp-asm.h>.
18609         (__strnlen): Don't use BP_SYM.
18610         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
18611         <bp-asm.h>.
18612         (__mpn_rshift): Don't use BP_SYM.
18613         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
18614         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
18615         <bp-sym.h> and <bp-asm.h>.
18616         (__sigsetjmp): Don't use BP_SYM.
18617         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
18618         (L(start_addresses)): Don't use BP_SYM.
18619         (_start): Likewise.
18620         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
18621         <bp-asm.h>.
18622         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
18623         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
18624         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
18625         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
18626         <bp-asm.h>.
18627         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
18628         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
18629         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
18630         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
18631         <bp-asm.h>.
18632         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
18633         comments.
18634         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
18635         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
18636         <bp-asm.h>.
18637         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
18638         FIXME comments.
18639         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
18640         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
18641         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
18642         <bp-asm.h>.
18643         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
18644         comment.
18645         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
18646         and <bp-asm.h>.
18647         (strncmp): Don't use BP_SYM,
18648         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
18649         <bp-asm.h>.
18650         (__mpn_sub_n): Don't use BP_SYM.
18651         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
18652         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
18653         and <bp-asm.h>.
18654         (__mpn_submul_1): Don't use BP_SYM.
18655         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
18657         <bp-sym.h> and <bp-asm.h>.
18658         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
18659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
18660         <bp-sym.h> and <bp-asm.h>.
18661         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
18662         comment.
18663
18664 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18665
18666         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
18667         Use ZK to minimize writes to Z.
18668         (sub_magnitudes): Simplify code a bit.
18669         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
18670         Use ZK to minimize writes to Z.
18671         (sub_magnitudes): Simplify code a bit.
18672
18673 2013-02-27  Roland McGrath  <roland@hack.frob.com>
18674
18675         * csu/gmon-start.c: Add special exception to license text.
18676
18677 2013-02-27  Richard Henderson  <rth@redhat.com>
18678
18679         * scripts/config.guess: Update from config.git.
18680         * scripts/config.sub: Likewise.
18681
18682 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
18683
18684         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
18685
18686         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
18687
18688         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
18689
18690         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
18691
18692         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
18693
18694 2013-02-26  Roland McGrath  <roland@hack.frob.com>
18695
18696         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
18697         [$(build-shared = yes].
18698
18699 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18700
18701         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
18702         (__mul): Reduce iterations for calculating mantissa.
18703
18704         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
18705         MPTWO.
18706         (__mpranred): Likewise.
18707
18708         [BZ #15160]
18709         * malloc/memusagestat.c (main): Draw graphs for heap and stack
18710         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
18711
18712 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
18713
18714         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
18715         Define __attribute__.
18716
18717 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18718
18719         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
18720         unused.
18721         * posix/regex_internal.h (__attribute): Remove.
18722         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
18723         (re_string_context_at): Likewise.
18724         (bitset_not): Use __attribute__ and mark function as possibly
18725         unused.
18726         (bitset_merge): Likewise.
18727         (bitset_mask): Likewise.
18728         (re_string_char_size_at): Likewise.
18729         (re_string_wchar_at): Likewise.
18730         (re_string_elem_size_at): Likewise.
18731
18732 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18733
18734         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
18735         code.
18736         (cc32): Likewise.
18737
18738         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
18739         (__acr): Likewise.
18740         (__cpy): Likewise.
18741         (norm): Likewise.
18742         (denorm): Likewise.
18743         (__dbl_mp): Likewise.
18744         (add_magnitudes): Likewise.
18745         (sub_magnitudes): Likewise.
18746         (__mul): Likewise.
18747         (__inv): Likewise.
18748
18749         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
18750         style.
18751
18752         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
18753         style.
18754
18755         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
18756         code.
18757
18758         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
18759         up changes with default code.
18760         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
18761         Likewise.
18762
18763 2013-02-24  Allan McRae  <allan@archlinux.org>
18764
18765         * manual/socket.texi (The Internet Namespace): Order menu items
18766         to match that in the file.
18767
18768         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
18769         node listing of the info page menu.
18770
18771 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
18772
18773         [BZ #13550]
18774         * sysdeps/i386/bp-asm.h: Remove file.
18775         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
18776         (PARMS): Do not use macros from bp-asm.h.
18777         (S1): Likewise.
18778         (S2): Likewise.
18779         (SIZE): Likewise.
18780         (__mpn_add_n): Do not use BP_SYM
18781         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
18782         "bp-asm.h".
18783         (PARMS): Do not use macros from bp-asm.h.
18784         (S1): Likewise.
18785         (SIZE): Likewise.
18786         (__mpn_addmul_1): Do not use BP_SYM
18787         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
18788         "bp-asm.h".
18789         (PARMS): Do not use macros from bp-asm.h.
18790         (SIGMSK): Likewise.
18791         (_setjmp): Likewise.  Do not use BP_SYM.
18792         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
18793         "bp-asm.h".
18794         (PARMS): Do not use macros from bp-asm.h.
18795         (SIGMSK): Likewise.
18796         (setjmp): Likewise.  Do not use BP_SYM.
18797         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
18798         "bp-asm.h".
18799         (PARMS): Do not use macros from bp-asm.h.
18800         (__frexp): Do not use BP_SYM.
18801         (frexp): Likewise.
18802         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
18803         "bp-asm.h".
18804         (PARMS): Do not use macros from bp-asm.h.
18805         (__frexpf): Do not use BP_SYM.
18806         (frexpf): Likewise.
18807         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
18808         "bp-asm.h".
18809         (PARMS): Do not use macros from bp-asm.h.
18810         (__frexpl): Do not use BP_SYM.
18811         (frexpl): Likewise.
18812         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
18813         "bp-asm.h".
18814         (PARMS): Do not use macros from bp-asm.h.
18815         (__remquo): Do not use BP_SYM.
18816         (remquo): Likewise.
18817         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
18818         "bp-asm.h".
18819         (PARMS): Do not use macros from bp-asm.h.
18820         (__remquof): Do not use BP_SYM.
18821         (remquof): Likewise.
18822         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
18823         "bp-asm.h".
18824         (PARMS): Do not use macros from bp-asm.h.
18825         (__remquol): Do not use BP_SYM.
18826         (remquol): Likewise.
18827         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
18828         "bp-asm.h".
18829         (PARMS): Do not use macros from bp-asm.h.
18830         (DEST): Likewise.
18831         (SRC): Likewise.
18832         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
18833         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
18834         "bp-asm.h".
18835         (PARMS): Do not use macros from bp-asm.h.
18836         (strlen): Do not use BP_SYM.
18837         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
18838         "bp-asm.h".
18839         (PARMS): Do not use macros from bp-asm.h.
18840         (S1): Likewise.
18841         (S2): Likewise.
18842         (SIZE): Likewise.
18843         (__mpn_add_n): Do not use BP_SYM.
18844         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
18845         "bp-asm.h".
18846         (PARMS): Do not use macros from bp-asm.h.
18847         (S1): Likewise.
18848         (SIZE): Likewise.
18849         (__mpn_addmul_1): Do not use BP_SYM.
18850         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
18851         weak_alias.
18852         (bzero): Likewise.
18853         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
18854         "bp-asm.h".
18855         (PARMS): Do not use macros from bp-asm.h.
18856         (S): Likewise.
18857         (SIZE): Likewise.
18858         (__mpn_lshift): Do not use BP_SYM.
18859         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
18860         "bp-asm.h".
18861         (PARMS): Do not use macros from bp-asm.h.
18862         (DEST): Likewise.
18863         (SRC): Likewise.
18864         (LEN): Likewise.
18865         (memcpy): Likewise.  Do not use BP_SYM.
18866         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
18867         libc_hidden_def and weak_alias.
18868         (mempcpy): Do not use BP_SYM in weak_alias.
18869         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
18870         "bp-asm.h".
18871         (PARMS): Do not use macros from bp-asm.h.
18872         (DEST): Likewise.
18873         (LEN): Likewise.
18874         [!BZERO_P] (CHR): Likewise.
18875         (memset): Likewise.  Do not use BP_SYM.
18876         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
18877         "bp-asm.h".
18878         (PARMS): Do not use macros from bp-asm.h.
18879         (S1): Likewise.
18880         (SIZE): Likewise.
18881         (__mpn_mul_1): Do not use BP_SYM.
18882         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
18883         "bp-asm.h".
18884         (PARMS): Do not use macros from bp-asm.h.
18885         (S): Likewise.
18886         (SIZE): Likewise.
18887         (__mpn_rshift): Do not use BP_SYM.
18888         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
18889         "bp-asm.h".
18890         (PARMS): Do not use macros from bp-asm.h.
18891         (STR): Likewise.
18892         (CHR): Likewise.
18893         (strchr): Likewise.  Do not use BP_SYM.
18894         (index): Do not use BP_SYM in weak_alias.
18895         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
18896         "bp-asm.h".
18897         (PARMS): Do not use macros from bp-asm.h.
18898         (DEST): Likewise.
18899         (SRC): Likewise.
18900         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
18901         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
18902         "bp-asm.h".
18903         (PARMS): Do not use macros from bp-asm.h.
18904         (strlen): Do not use BP_SYM.
18905         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
18906         "bp-asm.h".
18907         (PARMS): Do not use macros from bp-asm.h.
18908         (S1): Likewise.
18909         (S2): Likewise.
18910         (SIZE): Likewise.
18911         (__mpn_sub_n): Do not use BP_SYM.
18912         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
18913         "bp-asm.h".
18914         (PARMS): Do not use macros from bp-asm.h.
18915         (S1): Likewise.
18916         (SIZE): Likewise.
18917         (__mpn_submul_1): Do not use BP_SYM.
18918         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
18919         "bp-asm.h".
18920         (PARMS): Do not use macros from bp-asm.h.
18921         (S1): Likewise.
18922         (S2): Likewise.
18923         (SIZE): Likewise.
18924         (__mpn_add_n): Do not use BP_SYM.
18925         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
18926         weak_alias.
18927         (bzero): Likewise.
18928         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
18929         "bp-asm.h".
18930         (PARMS): Do not use macros from bp-asm.h.
18931         (BLK2): Likewise.
18932         (LEN): Likewise.
18933         (memcmp): Do not use BP_SYM.
18934         (bcmp): Do not use BP_SYM in weak_alias.
18935         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
18936         "bp-asm.h".
18937         (PARMS): Do not use macros from bp-asm.h.
18938         (DEST): Likewise.
18939         (SRC): Likewise.
18940         (LEN): Likewise.
18941         (memcpy): Likewise.  Do not use BP_SYM.
18942         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
18943         "bp-asm.h".
18944         (PARMS): Do not use macros from bp-asm.h.
18945         (DEST): Likewise.
18946         (SRC): Likewise.
18947         (LEN): Likewise.
18948         (memmove): Likewise.  Do not use BP_SYM.
18949         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
18950         "bp-asm.h".
18951         (PARMS): Do not use macros from bp-asm.h.
18952         (DEST): Likewise.
18953         (SRC): Likewise.
18954         (LEN): Likewise.
18955         (__mempcpy): Likewise.  Do not use BP_SYM.
18956         (mempcpy): Do not use BP_SYM in weak_alias.
18957         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
18958         "bp-asm.h".
18959         (PARMS): Do not use macros from bp-asm.h.
18960         (DEST): Likewise.
18961         (LEN): Likewise.
18962         [!BZERO_P] (CHR): Likewise.
18963         (memset): Likewise.  Do not use BP_SYM.
18964         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
18965         "bp-asm.h".
18966         (PARMS): Do not use macros from bp-asm.h.
18967         (STR2): Likewise.
18968         (strcmp): Do not use BP_SYM.
18969         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
18970         "bp-asm.h".
18971         (PARMS): Do not use macros from bp-asm.h.
18972         (STR): Likewise.
18973         (DELIM): Likewise.
18974         [USE_AS_STRTOK_R] (SAVE): Likewise.
18975         (FUNCTION): Likewise.  Do not use BP_SYM.
18976         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
18977         aliases.
18978         (strtok_r): Likewise.
18979         (__GI___strtok_r): Likewise.
18980         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
18981         (PARMS): Do not use macros from bp-asm.h.
18982         (S): Likewise.
18983         (SIZE): Likewise.
18984         (__mpn_lshift): Do not use BP_SYM.
18985         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
18986         (PARMS): Do not use macros from bp-asm.h.
18987         (STR): Likewise.
18988         (CHR): Likewise.
18989         (__memchr): Do not use BP_SYM.
18990         (memchr): Do not use BP_SYM in weak_alias.
18991         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
18992         (PARMS): Do not use macros from bp-asm.h.
18993         (BLK2): Likewise.
18994         (LEN): Likewise.
18995         (memcmp): Do not use BP_SYM.
18996         (bcmp): Do not use BP_SYM in weak_alias.
18997         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
18998         (PARMS): Do not use macros from bp-asm.h.
18999         (S1): Likewise.
19000         (SIZE): Likewise.
19001         (__mpn_mul_1): Do not use BP_SYM.
19002         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
19003         "bp-asm.h".
19004         (PARMS): Do not use macros from bp-asm.h.
19005         (STR): Likewise.
19006         (CHR): Likewise.
19007         (__rawmemchr): Do not use BP_SYM.
19008         (rawmemchr): Do not use BP_SYM in weak_alias.
19009         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
19010         (PARMS): Do not use macros from bp-asm.h.
19011         (S): Likewise.
19012         (SIZE): Likewise.
19013         (__mpn_rshift): Do not use BP_SYM.
19014         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
19015         (PARMS): Do not use macros from bp-asm.h.
19016         (SIGMSK): Likewise.
19017         (__sigsetjmp): Likewise.  Do not use BP_SYM.
19018         * sysdeps/i386/start.S: Do not include "bp-sym.h".
19019         (_start): Do not use BP_SYM.
19020         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
19021         (PARMS): Do not use macros from bp-asm.h.
19022         (DEST): Likewise.
19023         (SRC): Likewise.
19024         (__stpcpy): Likewise.  Do not use BP_SYM.
19025         (stpcpy): Do not use BP_SYM in weak_alias.
19026         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
19027         "bp-asm.h".
19028         (PARMS): Do not use macros from bp-asm.h.
19029         (DEST): Likewise.
19030         (SRC): Likewise.
19031         (LEN): Likewise.
19032         (__stpncpy): Likewise.  Do not use BP_SYM.
19033         (stpncpy): Do not use BP_SYM in weak_alias.
19034         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
19035         (PARMS): Do not use macros from bp-asm.h.
19036         (STR): Likewise.
19037         (CHR): Likewise.
19038         (strchr): Likewise.  Do not use BP_SYM.
19039         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
19040         "bp-asm.h".
19041         (PARMS): Do not use macros from bp-asm.h.
19042         (STR): Likewise.
19043         (CHR): Likewise.
19044         (__strchrnul): Likewise.  Do not use BP_SYM.
19045         (strchrnul): Do not use BP_SYM in weak_alias.
19046         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
19047         "bp-asm.h".
19048         (PARMS): Do not use macros from bp-asm.h.
19049         (STOP): Likewise.
19050         (strcspn): Do not use BP_SYM.
19051         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
19052         "bp-asm.h".
19053         (PARMS): Do not use macros from bp-asm.h.
19054         (STR): Likewise.
19055         (STOP): Likewise.
19056         (strpbrk): Likewise.  Do not use BP_SYM.
19057         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
19058         "bp-asm.h".
19059         (PARMS): Do not use macros from bp-asm.h.
19060         (STR): Likewise.
19061         (CHR): Likewise.
19062         (strrchr): Likewise.  Do not use BP_SYM.
19063         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
19064         (PARMS): Do not use macros from bp-asm.h.
19065         (SKIP): Likewise.
19066         (strspn): Do not use BP_SYM.
19067         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
19068         (PARMS): Do not use macros from bp-asm.h.
19069         (STR): Likewise.
19070         (DELIM): Likewise.
19071         (SAVE): Likewise.
19072         (FUNCTION): Likewise.  Do not use BP_SYM.
19073         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
19074         aliases.
19075         (strtok_r): Likewise.
19076         (__GI___strtok_r): Likewise.
19077         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
19078         (PARMS): Do not use macros from bp-asm.h.
19079         (S1): Likewise.
19080         (S2): Likewise.
19081         (SIZE): Likewise.
19082         (__mpn_sub_n): Do not use BP_SYM.
19083         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
19084         "bp-asm.h".
19085         (PARMS): Do not use macros from bp-asm.h.
19086         (S1): Likewise.
19087         (SIZE): Likewise.
19088         (__mpn_submul_1): Do not use BP_SYM.
19089         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
19090         <bp-sym.h>.
19091         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
19092         and <bp-asm.h>.
19093         (PARMS): Do not use macros from bp-asm.h.
19094         (FLAGS): Likewise.
19095         (PTID): Likewise.
19096         (TLS): Likewise.
19097         (CTID): Likewise.
19098         (__clone): Do not use BP_SYM.
19099         (clone): Do not use BP_SYM in weak_alias.
19100         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
19101         and <bp-asm.h>.
19102         (PARMS): Do not use macros from bp-asm.h.
19103         (LEN): Likewise.
19104         (__mmap64): Do not use BP_SYM.
19105         (mmap64): Do not use BP_SYM in weak_alias.
19106         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
19107         <bp-sym.h> and <bp-asm.h>.
19108         (PARMS): Do not use macros from bp-asm.h.
19109         (__posix_fadvise64_l64): Do not use BP_SYM.
19110         * sysdeps/unix/sysv/linux/i386/semtimedop.S
19111         (PARMS): Do not use macros from bp-asm.h.
19112         (NSOPS): Likewise.
19113         (semtimedop): Do not use BP_SYM.
19114         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
19115         and <bp-asm.h>.
19116
19117 2013-02-21  Allan McRae  <allan@archlinux.org>
19118
19119         * manual/message.texi (Charset conversion in gettext):
19120         Move @end statement to beginning of line.
19121
19122 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19123
19124         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
19125         static.
19126         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
19127         Likewise.
19128
19129         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
19130         (denorm): Likewise.
19131         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
19132         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
19133
19134 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19135
19136         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
19137         tail-call to the resolved function if pltexit isn't needed.
19138
19139 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19140
19141         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
19142         or Y being zero as being unlikely.
19143         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
19144         Likewise.
19145
19146 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
19147
19148         * manual/nss.texi (System Databases and Name Service Switch):
19149         Remove frobnicate @pxref.
19150
19151 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
19152
19153         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
19154         __attribute__ ((unused)) to __attribute__ ((__unused__)).
19155
19156 2013-02-20  Petr Machata  <pmachata@redhat.com>
19157
19158         * elf/elf.h (R_ARM_TARGET1): New macro.
19159         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
19160         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
19161         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
19162         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
19163         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
19164         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
19165         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
19166         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
19167         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
19168         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
19169         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
19170         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
19171         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
19172         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
19173         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
19174         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
19175         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
19176         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
19177         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
19178         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
19179         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
19180         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
19181         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
19182         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
19183         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
19184         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
19185         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
19186         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
19187         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
19188         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
19189         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
19190         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
19191         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
19192         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
19193         (R_ARM_THM_GOT_BREL12): Likewise.
19194         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
19195         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
19196         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
19197         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
19198         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
19199         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
19200         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
19201         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
19202         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
19203
19204 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
19205
19206         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
19207         __attribute_used__ to __attribute__ ((unused)).
19208
19209 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
19210
19211         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
19212         powerpc mpa.c.
19213         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
19214         comment formatting.
19215         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
19216
19217 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
19218
19219         [BZ #13550]
19220         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
19221         Remove macro.
19222         (ENTER): Remove both macro definitions.
19223         (LEAVE): Likewise.
19224         (CHECK_BOUNDS_LOW): Likewise.
19225         (CHECK_BOUNDS_HIGH): Likewise.
19226         (CHECK_BOUNDS_BOTH): Likewise.
19227         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
19228         (RETURN_BOUNDED_POINTER): Likewise.
19229         (RETURN_NULL_BOUNDED_POINTER): Likewise.
19230         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
19231         (POP_ERRNO_LOCATION_RETURN): Likewise.
19232         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
19233         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19234         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
19235         macros.
19236         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19237         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
19238         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
19239         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
19240         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
19241         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
19242         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
19243         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
19244         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
19245         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
19246         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
19247         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
19248         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19249         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
19250         removed macros.
19251         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19252         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
19253         macros.
19254         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19255         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
19256         * sysdeps/i386/i586/memset.S (memset): Likewise.
19257         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
19258         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19259         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
19260         macros.
19261         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19262         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
19263         Change uses of L(2) to L(out).
19264         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
19265         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
19266         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
19267         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19268         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
19269         removed macros.
19270         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19271         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
19272         macros.
19273         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19274         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
19275         (RETURN): Do not use macro LEAVE.
19276         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
19277         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
19278         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
19279         * sysdeps/i386/i686/memset.S (memset): Likewise.
19280         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
19281         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
19282         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
19283         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
19284         Likewise.
19285         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
19286         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
19287         L(1_2) and L(1_3) into L(1).
19288         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
19289         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
19290         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19291         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
19292         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
19293         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
19294         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
19295         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19296         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
19297         macros.
19298         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
19299         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19300         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
19301         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
19302         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
19303         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19304         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
19305         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
19306         * sysdeps/i386/strcspn.S (strcspn): Likewise.
19307         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
19308         * sysdeps/i386/strrchr.S (strrchr): Likewise.
19309         * sysdeps/i386/strspn.S (strspn): Likewise.
19310         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
19311         conditional code.
19312         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
19313         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
19314         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
19315         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
19316         L(1_3) into L(1_1).
19317         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
19318         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19319         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
19320         macros.
19321         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19322
19323 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
19324
19325         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
19326         macro.
19327
19328 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
19329
19330         * math/atest-exp.c (exp_mpn): Remove ROUND.
19331         * math/atest-exp2.c (exp_mpn): Likewise.
19332         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
19333
19334         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
19335         * stdlib/tst-tls-atexit-lib.c: Likewise.
19336         * stdlib/tst-tls-atexit.c: Likewise.
19337
19338 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
19339
19340         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
19341         and __attribute_alloc_size__.
19342
19343 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
19344
19345         * include/programs/xmalloc.h: Change __attribute_alloc_size to
19346         __attribute_alloc_size__.
19347         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
19348         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
19349
19350 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
19351
19352         * include/programs/xmalloc.h: New file.
19353         * catgets/gencat.c: Include it.
19354         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
19355         * elf/pldd.c: Likewise.
19356         * iconv/iconv_charmap.c: Likewise.
19357         * iconv/iconvconfig.c: Likewise.
19358         * iconv/strtab.c: Likewise.
19359         * locale/programs/locale.c: Likewise.
19360         * locale/programs/localedef.h: Likewise.
19361         * locale/programs/simple-hash.c: Likewise.
19362         * nscd/nscd.h: Likewise.
19363         * nss/makedb.c: Likewise.
19364         * sysdeps/generic/ldconfig.h: Likewise.
19365
19366 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
19367
19368         * Versions.def: Add GLIBC_2.18.
19369         * include/link.h (struct link_map): New member l_tls_dtor_count.
19370         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
19371         (__call_tls_dtors): Likewise.
19372         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
19373         __cxa_thread_atexit_impl.
19374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19375         Likewise.
19376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
19377         Likewise.
19378         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
19379         Likewise.
19380         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
19381         Likewise.
19382         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
19383         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
19384         Likewise.
19385         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
19386         Likewise.
19387         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
19388         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
19389         Likewise.
19390         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
19391         (tests): Add test case tst-tls-atexit.
19392         (modules-names): Add shared library for tst-tls-atexit.
19393         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
19394         (GLIBC_PRIVATE): Add __call_tls_dtors.
19395         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
19396         for libstdc++.
19397         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
19398         * stdlib/tst-tls-atexit.c: New test case.
19399         * stdlib/tst-tls-atexit-lib.c: New test case.
19400
19401         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
19402
19403         * elf/Versions (ld): Add _dl_find_dso_for_object.
19404         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
19405         * elf/dl-open.c (_dl_find_dso_for_object): New function.
19406         (dl_open_worker): Use _dl_find_dso_for_object.
19407         * elf/dl-sym.c (do_sym): Likewise.
19408         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
19409
19410 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19411
19412         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
19413         Syntactic changes only.
19414         (_dl_runtime_profile): Do a tail-call to the resolved function.
19415
19416 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
19417
19418         [BZ #13550]
19419         * sysdeps/x86_64/bp-asm.h: Remove file.
19420         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
19421         <bp-sym.h> and <bp-asm.h>.
19422         (__clone): Do not use BP_SYM.
19423         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
19424         <bp-sym.h> and <bp-asm.h>.
19425         * sysdeps/unix/x86_64/sysdep.S: Likewise.
19426         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
19427         "bp-asm.h".
19428         (_setjmp): Do not use BP_SYM.
19429         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
19430         "bp-asm.h".
19431         (setjmp): Do not use BP_SYM.
19432         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
19433         libc_hidden_def.
19434         (mempcpy): Do not use BP_SYM in weak_alias.
19435         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
19436         "bp-asm.h".
19437         (strchr): Do not use BP_SYM.
19438         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
19439         "bp-asm.h".
19440         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
19441         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
19442         (_start): Do not use BP_SYM.
19443         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
19444         "bp-asm.h".
19445         (strcat): Do not use BP_SYM.
19446         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
19447         "bp-asm.h".
19448         (STRCMP): Do not use BP_SYM.
19449         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
19450         "bp-asm.h".
19451         (STRCPY): Do not use BP_SYM.
19452         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
19453         "bp-asm.h".
19454         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
19455         "bp-asm.h".
19456         (FUNCTION): Do not use BP_SYM.
19457         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
19458         weak_alias.
19459         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
19460
19461 2013-02-17  Andreas Jaeger  <aj@suse.de>
19462
19463         * time/Versions: Sort entries.
19464         * string/Versions: Likewise.
19465         * resolv/Versions: Likewise.
19466         * posix/Versions: Likewise.
19467         * iconv/Versions: Likewise.
19468         * elf/Versions: Likewise.
19469         * wcsmbs/Versions: Likewise.
19470
19471 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19472
19473         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
19474         loop termination condition.
19475
19476         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
19477         variable to calculate EZ.
19478         (__sqr): Likewise.
19479
19480         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
19481         the lower precision input.
19482
19483 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
19484
19485         [BZ #13550]
19486         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
19487         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
19488         (run-via-rtld-prefix): Do not handle %-bp tests.
19489         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
19490         (all-object-suffixes): Remove .ob.
19491         (bppfx): Remove variable.
19492         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
19493         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
19494         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
19495         [$(build-bounded) = yes] (libtype.ob): Likewise.
19496         * Makerules (elide-routines.ob): Remove variable.
19497         (do-tests-clean): Do not handle *-bp.out.
19498         (common-mostlyclean): Do not handle *-bp and *-bp.out.
19499         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
19500         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
19501         (tests): Do not include $(tests-bp.out).
19502         (xtests): Do not include $(xtests-bp.out).
19503         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
19504         [$(build-bounded) = yes] ($(addprefix
19505         $(objpfx),$(binaries-bounded))): Remove rule.
19506         ($(objpfx)%-bp.out): Remove rule.
19507         * config.make.in (build-bounded): Remove variable.
19508         * crypt/Makefile [$(build-bounded) = yes]
19509         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
19510         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
19511         append to variable.
19512         [$(build-bounded) = yes] (install-lib): Likewise.
19513         [$(build-bounded) = yes] (generated): Likewise.
19514         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
19515         Remove rule.
19516         * intl/Makefile [$(build-bounded) = yes]
19517         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
19518         * math/Makefile [$(build-bounded) = yes]
19519         ($(tests:%=$(objpfx)%-bp): Likewise.
19520         * misc/Makefile [$(build-bounded) = yes]
19521         ($(objpfx)tst-tsearch-bp): Likewise.
19522         * nptl/Makeconfig (bounded-thread-library): Remove variable.
19523         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
19524         Remove dependency.
19525         * string/Makefile (o-objects.ob): Remove variable.
19526         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
19527         (CFLAGS-.ob): Remove variable.
19528         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
19529         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
19530         both definitions of variable.
19531         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
19532         (ASFLAGS-.ob): Remove variable.
19533
19534 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
19535
19536         [BZ #13550]
19537         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
19538         Remove __BOUNDED_POINTERS__ from condition.
19539         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
19540         * string/bits/string2.h [!__NO_STRING_INLINES &&
19541         !__BOUNDED_POINTERS__]: Likewise.
19542         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
19543         Likewise.
19544         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
19545         Remove conditional code.
19546         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
19547         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
19548         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
19549         condition.
19550
19551         [BZ #13550]
19552         * csu/libc-start.c: Do not include <bp-sym.h>.
19553         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
19554         * elf/dl-open.c: Do not include <bp-sym.h>.
19555         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
19556         * math/fegetenv.c: Do not include <bp-sym.h>.
19557         (fegetenv): Do not use BP_SYM in versioned symbols.
19558         * nptl/sysdeps/pthread/bits/libc-lockP.h
19559         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
19560         <bp-sym.h>.
19561         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19562         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
19563         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19564         (__pthread_mutex_destroy): Likewise.
19565         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19566         (__pthread_mutex_lock): Likewise.
19567         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19568         (__pthread_mutex_trylock): Likewise.
19569         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19570         (__pthread_mutex_unlock): Likewise.
19571         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19572         (__pthread_mutexattr_init): Likewise.
19573         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19574         (__pthread_mutexattr_destroy): Likewise.
19575         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19576         (__pthread_mutexattr_settype): Likewise.
19577         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19578         (__pthread_rwlock_init): Likewise.
19579         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19580         (__pthread_rwlock_destroy): Likewise.
19581         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19582         (__pthread_rwlock_rdlock): Likewise.
19583         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19584         (__pthread_rwlock_tryrdlock): Likewise.
19585         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19586         (__pthread_rwlock_wrlock): Likewise.
19587         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19588         (__pthread_rwlock_trywrlock): Likewise.
19589         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19590         (__pthread_rwlock_unlock): Likewise.
19591         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19592         (__pthread_key_create): Likewise.
19593         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19594         (__pthread_setspecific): Likewise.
19595         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19596         (__pthread_getspecific): Likewise.
19597         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
19598         Likewise.
19599         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19600         (_pthread_cleanup_push_defer): Likewise.
19601         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19602         (_pthread_cleanup_pop_restore): Likewise.
19603         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19604         (pthread_setcancelstate): Likewise.
19605         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
19606         <bp-sym.h>.
19607         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
19608         (memchr): Do not use BP_SYM in weak_alias.
19609         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
19610         (fegetenv): Do not use BP_SYM in versioned symbols.
19611         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
19612         (fesetenv): Do not use BP_SYM in versioned symbols.
19613         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
19614         (feupdateenv): Do not use BP_SYM in versioned symbols.
19615         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
19616         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
19617         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
19618         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
19619         (open64): Do not use BP_SYM in weak_alias.
19620         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
19621         (fegetenv): Do not use BP_SYM in versioned symbols.
19622         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
19623         (fesetenv): Do not use BP_SYM in versioned symbols.
19624         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
19625         (feupdateenv): Do not use BP_SYM in versioned symbols.
19626         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
19627         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
19628         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
19629         (feraiseexcept): Do not use BP_SYM in versioned symbols.
19630         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
19631         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
19632         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
19633         <bp-sym.h>.
19634         (__libc_start_main): Do not use BP_SYM.
19635
19636 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19637
19638         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
19639         redundant return line.
19640         (norm): Likewise.
19641         (denorm): Likewise.
19642         (dbl_mp): Likewise.
19643         (sub_magnitudes): Likewise.
19644         (__add): Likewise.
19645         (__sub): Likewise.
19646         (__mul): Likewise.
19647         (__inv): Likewise.
19648         (__dvd): Likewise.
19649         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
19650         (norm): Likewise.
19651         (denorm): Likewise.
19652         (dbl_mp): Likewise.
19653         (sub_magnitudes): Likewise.
19654         (__add): Likewise.
19655         (__sub): Likewise.
19656         (__mul): Likewise.
19657         (__inv): Likewise.
19658         (__dvd): Likewise.
19659
19660         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
19661         instead of __mul.
19662         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
19663         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
19664         (cc32): Likewise.
19665
19666         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
19667         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
19668         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
19669         of __mul for squares.
19670         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
19671         function
19672         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
19673         Likewise.
19674         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
19675         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
19676
19677 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
19678
19679         [BZ #13550]
19680         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
19681         code.
19682         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
19683         prototype or function definition.  Rename ubp_* variables and
19684         parameters.  Remove argv definitions conditional on
19685         [__BOUNDED_POINTERS__].
19686         * debug/backtrace.c (__backtrace): Do not use __unbounded.
19687         * elf/dl-runtime.c (_dl_fixup): Likewise.
19688         * include/set-hooks.h (RUN_HOOK): Likewise.
19689         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
19690         definition.
19691         * string/strcpy.c (strcpy): Do not use __unbounded.
19692         * sysdeps/generic/frame.h (struct layout): Likewise.
19693         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
19694         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
19695         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
19696         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
19697         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
19698         (__backtrace): Likewise.
19699         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
19700         use __ptrvalue.
19701         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
19702         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
19703         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
19704         Likewise.
19705         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
19706         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
19707         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
19708         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
19709         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
19710         Do not use __unbounded.
19711         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
19712         Rename __unboundedrlimits parameter to rlimits in prototype.
19713         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
19714         Do not use __unbounded.
19715         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
19716         not use __ptrvalue.
19717         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
19718         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
19719         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
19720         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
19721         __ptrvalue or __unbounded.
19722         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
19723         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
19724         use __unbounded.
19725         (__new_msgctl): Do not use __ptrvalue.
19726         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
19727         __unbounded.
19728         (__libc_msgrcv): Do not use __ptrvalue.
19729         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
19730         startup_info): Do not use __unbounded.
19731         (__libc_start_main): Likewise.  Rename ubp_* variables and
19732         parameters.  Remove argv definitions conditional on
19733         [__BOUNDED_POINTERS__].
19734         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
19735         __ptrvalue.
19736         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
19737         use __unbounded.
19738         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
19739         or __ptrvalue.
19740         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
19741         use __unbounded.
19742         (__new_shmctl): Do not use __ptrvalue.
19743         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
19744         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
19745         Likewise.
19746         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
19747         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
19748         (__libc_sigaction): Likewise.
19749         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
19750         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
19751         Likewise.
19752         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
19753
19754 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
19755
19756         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
19757
19758         * string/mempcpy.c: Implement by calling memcpy.
19759
19760 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
19761
19762         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
19763
19764         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
19765         evaluation.
19766
19767         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
19768         values in the mantissa.
19769
19770         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
19771         minimize writes to Z.
19772         (sub_magnitudes): Simplify code a bit.
19773
19774 2013-02-12  Roland McGrath  <roland@hack.frob.com>
19775
19776         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
19777         from the message.  The linker prefixes all warnings with that already.
19778
19779 2013-02-12  Andreas Schwab  <schwab@suse.de>
19780
19781         [BZ #15078]
19782         * posix/regexec.c (extend_buffers): Add parameter min_len.
19783         (check_matching): Pass minimum needed length.
19784         (clean_state_log_if_needed): Likewise.
19785         (get_subexp): Likewise.
19786         * posix/Makefile (tests): Add bug-regex34.
19787         (bug-regex34-ENV): Define.
19788         * posix/bug-regex34.c: New file.
19789
19790         [BZ #11561]
19791         * posix/regcomp.c (parse_bracket_exp): When looking up collating
19792         elements compare against the byte sequence of it, not its name.
19793         * posix/Makefile (tests): Add bug-regex35.
19794         (bug-regex35-ENV): Define.
19795         * posix/bug-regex35.c: New file.
19796
19797 2013-02-11  Tom de Vries  <tom@codesourcery.com>
19798
19799         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
19800         comment.
19801         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
19802         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
19803         (CHECK_EOL): Add undef.
19804
19805 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
19806
19807         * bits/stdlib-bsearch.h: New file.
19808         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
19809         * stdlib/stdlib.h: Likewise.
19810
19811 2013-02-11  Roland McGrath  <roland@hack.frob.com>
19812
19813         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
19814         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
19815         declaration.
19816         * manual/search.texi (Array Search Function): Add missing const in
19817         lfind prototype.
19818         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
19819         declaration to use rlim_t.
19820         (Basic Scheduling Functions): Remove erroneous const from
19821         sched_getparam prototype.  Remove erroneous * from
19822         sched_get_priority_max and sched_get_priority_min prototypes.
19823         (Resource Usage): Fix summary @comment on vtimes to refer to
19824         sys/vtimes.h rather than vtimes.h.
19825         Add missing *s in vtimes prototype.
19826         (Limits on Resources): Fix ulimit prototype to return long int.
19827         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
19828         prototypes to use long int rather than double.
19829         (BSD Random): Fix initstate and setstate to use char *, not void *.
19830         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
19831         prototype to make second argument 'struct aiocb64 *const[]'.
19832         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
19833         (Status of AIO Operations): Remove erroneous const in aio_return and
19834         aio_return64 prototypes.
19835         (Synchronizing I/O): Fix sync prototype to return void.
19836         * manual/startup.texi (Suboptions): Remove an erroneous const in
19837         getsubopt prototype.
19838         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
19839         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
19840         use size_t rather than int.
19841         (Scanning All Users): Likewise for getpwent_r.
19842         (Setting Groups): Add missing const to setgroups prototype.
19843         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
19844         * manual/socket.texi (Host Names): Fix gethostbyaddr and
19845         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
19846         'const void *' rather than 'const char *'.
19847         (Host Address Functions): Likewise for inet_ntop.
19848         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
19849         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
19850         ssize_t for return value.
19851         (Sending Data): Likewise for send, sendto, sendmsg.
19852         (Socket Option Functions): Add a missing const in setsockopt prototype.
19853         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
19854         use wchar_t for the argument.
19855         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
19856         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
19857         take no arguments.
19858         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
19859         double/float/long double for second argument.
19860         Fix return types of significand, significandf, significandl.
19861         * manual/filesys.texi (Setting Permissions): Use mode_t for second
19862         argument in fchmod prototype.
19863         (File Owner): Use uid_t and gid_t in fchown prototype.
19864         (File Times): Add const to utimes, futimes, and lutimes prototypes.
19865         (Making Special Files): Use mode_t and dev_t in mknod prototype.
19866         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
19867         use 'const struct dirent **' as argument types to CMP function pointer
19868         argument.
19869         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
19870         (File Times): Fix summary magic @comment for struct utimbuf and utime
19871         to refer to utime.h, not time.h.
19872         * manual/string.texi (Argz Functions): Add missing const in
19873         argz_extract and argz_next prototypes.
19874         (Finding Tokens in a String): Likewise for basename.
19875         (String/Array Comparison): Fix typo in wcscasecmp prototype.
19876         (Copying and Concatenation): Fix typo in wmemmove prototype.
19877         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
19878         (Signal Stack): Remove erroneous const in sigstack prototype.
19879         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
19880         prototype.
19881         (Simple Calendar Time): Likewise for stime.
19882         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
19883         prototype.
19884         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
19885         say sys/sysctl.h instead.
19886         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
19887         and vsyslog prototypes.
19888
19889 2013-02-11  Tom de Vries  <tom@codesourcery.com>
19890
19891         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
19892         Remove.
19893
19894 2013-02-11  Roland McGrath  <roland@hack.frob.com>
19895
19896         * misc/sys/mman.h: Fix typo in mremap comment.
19897
19898 2013-02-08  Roland McGrath  <roland@hack.frob.com>
19899
19900         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
19901         the '\0' terminator.
19902
19903 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
19904
19905         [BZ #13550]
19906         * debug/segfault.c: Don't include <bp-checks.h>.
19907         * sysdeps/generic/bp-checks.h: Remove file.
19908         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
19909         (__GETDENTS): Don't use CHECK_N.
19910         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
19911         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
19912         (__getgroups): Don't use CHECK_N.
19913         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
19914         (setgroups): Don't use CHECK_N.
19915         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
19916         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
19917         (__libc_msgrcv): Don't use CHECK_N.
19918         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
19919         (__libc_msgsnd): Don't use CHECK_N.
19920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
19921         <bp-checks.h>.
19922         (__libc_pread): Don't use CHECK_N.
19923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
19924         include <bp-checks.h>.
19925         (__libc_pread64): Don't use CHECK_N.
19926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
19927         include <bp-checks.h>.
19928         (__libc_pwrite): Don't use CHECK_N.
19929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
19930         include <bp-checks.h>.
19931         (__libc_pwrite64): Don't use CHECK_N.
19932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
19933         <bp-checks.h>.
19934         (__libc_pread): Don't use CHECK_N.
19935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
19936         include <bp-checks.h>.
19937         (__libc_pread64): Don't use CHECK_N.
19938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
19939         include <bp-checks.h>.
19940         (__libc_pwrite): Don't use CHECK_N.
19941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
19942         include <bp-checks.h>.
19943         (__libc_pwrite64): Don't use CHECK_N.
19944         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
19945         (do_pread): Don't use CHECK_N.
19946         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
19947         (do_pread64): Don't use CHECK_N.
19948         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
19949         (do_pwrite): Don't use CHECK_N.
19950         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
19951         (do_pwrite64): Don't use CHECK_N.
19952         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
19953         (__libc_readv): Don't use CHECK_N.
19954         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
19955         (semop): Don't use CHECK_N.
19956         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
19957         <bp-checks.h>.
19958         (semtimedop): Don't use CHECK_N.
19959         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
19960         (__libc_pread): Don't use CHECK_N.
19961         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
19962         <bp-checks.h>.
19963         (__libc_pread64): Don't use CHECK_N.
19964         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
19965         <bp-checks.h>.
19966         (__libc_pwrite): Don't use CHECK_N.
19967         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
19968         <bp-checks.h>.
19969         (__libc_pwrite64): Don't use CHECK_N.
19970         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
19971         <bp-checks.h>.
19972         (__libc_msgrcv): Don't use CHECK_N.
19973         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
19974         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
19975         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
19976         (__libc_writev): Don't use CHECK_N.
19977
19978 2013-02-08  Roland McGrath  <roland@hack.frob.com>
19979
19980         * string/strcpy.c: Removed unused variable.
19981
19982         * Makeconfig (+sysdep-includes): Define with := rather than =.
19983         Use an existing include/ subdir of each sysdeps dir before it.
19984
19985 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
19986
19987         * nscd/connection.c (register_traced_file): Comment function.
19988         [HAVE_INOTIFY] (union __inev): Define.
19989         [HAVE_INOTIFY] (inotify_check_files): New function.
19990         [HAVE_INOTIFY] (clear_db_cache): Likewise.
19991         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
19992         clear_db_cache.
19993         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
19994
19995 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
19996
19997         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
19998         loaded if not already and that a failure is permanent.
19999
20000 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
20001
20002         [BZ #15006]
20003         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
20004         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
20005
20006 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
20007
20008         [BZ #13550]
20009         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
20010         (CHECK_1_NULL_OK): Likewise.
20011         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
20012         (__fxstat): Do not use CHECK_1.
20013         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
20014         <bp-checks.h>.
20015         (___fxstat64): Do not use CHECK_1.
20016         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
20017         <bp-checks.h>.
20018         (__fxstatat): Do not use CHECK_1.
20019         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
20020         <bp-checks.h>.
20021         (__fxstatat64): Do not use CHECK_1.
20022         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
20023         <bp-checks.h>.
20024         (__fxstat): Do not use CHECK_1.
20025         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
20026         <bp-checks.h>.
20027         (__fxstatat): Do not use CHECK_1.
20028         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
20029         <bp-checks.h>.
20030         (__getresgid): Do not use CHECK_1.
20031         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
20032         <bp-checks.h>.
20033         (__getresuid): Do not use CHECK_1.
20034         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
20035         <bp-checks.h>.
20036         (__lxstat): Do not use CHECK_1.
20037         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
20038         <bp-checks.h>.
20039         (__old_msgctl): Do not use CHECK_1.
20040         (__new_msgctl): Likewise.
20041         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
20042         <bp-checks.h>.
20043         (__new_setrlimit): Do not use CHECK_1.
20044         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
20045         <bp-checks.h>.
20046         (__old_shmctl): Do not use CHECK_1.
20047         (__new_shmctl): Likewise.
20048         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
20049         <bp-checks.h>.
20050         (__xstat): Do not use CHECK_1.
20051         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
20052         (__lxstat): Do not use CHECK_1.
20053         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
20054         <bp-checks.h>.
20055         (___lxstat64): Do not use CHECK_1.
20056         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
20057         (__old_msgctl): Do not use CHECK_1.
20058         (__new_msgctl): Likewise.
20059         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
20060         <bp-checks.h>.
20061         (__gettimeofday): Do not use CHECK_1.
20062         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
20063         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
20064         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
20065         <bp-checks.h>.
20066         (__gettimeofday): Do not use CHECK_1.
20067         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
20068         (__old_shmctl): Do not use CHECK_1_NULL_OK.
20069         (__new_shmctl): Do not use CHECK_1.
20070         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
20071         <bp-checks.h>.
20072         (do_sigtimedwait): Do not use CHECK_1.
20073         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
20074         <bp-checks.h>.
20075         (do_sigwaitinfo): Do not use CHECK_1.
20076         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
20077         <bp-checks.h>.
20078         (msgctl): Do not use CHECK_1.
20079         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
20080         <bp-checks.h>.
20081         (shmctl): Do not use CHECK_1.
20082         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
20083         (ustat): Do not use CHECK_1.
20084         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
20085         <bp-checks.h>.
20086         (__fxstat): Do not use CHECK_1.
20087         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
20088         <bp-checks.h>.
20089         (__fxstatat): Do not use CHECK_1.
20090         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
20091         <bp-checks.h>.
20092         (__lxstat): Do not use CHECK_1.
20093         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
20094         <bp-checks.h>.
20095         (__xstat): Do not use CHECK_1.
20096         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
20097         (__xstat): Do not use CHECK_1.
20098         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
20099         (___xstat64): Do not use CHECK_1.
20100
20101         [BZ #13550]
20102         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
20103         definitions.
20104         (CHECK_BOUNDS_HIGH): Likewise.
20105         * string/strcpy.c: Do not include <bp-checks.h>.
20106         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
20107
20108 2013-02-07  Roland McGrath  <roland@hack.frob.com>
20109
20110         * nscd/nscd-client.h (__nscd_drop_map_ref):
20111         Add __attribute__ ((unused)).
20112         * nis/nss-nisplus.h (niserr2nss): Likewise.
20113
20114         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
20115         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
20116
20117         * csu/libc-tls.c (init_static_tls, init_slotinfo):
20118         Remove inline keyword.
20119         * include/rounding-mode.h (round_away): Likewise.
20120         * libio/wfileops.c (adjust_wide_data): Likewise.
20121         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
20122         (__m128i_strloadu_tolower): Likewise.
20123         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
20124         (__m128i_strloadu_tolower): Likewise.
20125         * time/mktime.c (ydhms_diff): Likewise.
20126         * locale/elem-hash.h (elem_hash): Likewise.
20127         * locale/setlocale.c (setdata): Likewise.
20128         * posix/regex_internal.h (re_string_char_size_at): Likewise.
20129         (re_string_wchar_at): Likewise.
20130         (bitset_not, bitset_merge, bitset_mask): Likewise.
20131         [!(__GNUC__ > 3)] (inline): Remove macro.
20132         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
20133         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
20134         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
20135         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
20136         * string/memcmp.c (memcmp_bytes): Likewise.
20137         * locale/programs/locarchive.c (compute_hashval): Likewise.
20138         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
20139         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
20140         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
20141         * nss/getent.c (print_rpc, print_protocols): Likewise.
20142         (print_passwd, print_group, print_aliases): Likewise.
20143         * nis/nss-nisplus.h (niserr2nss): Likewise.
20144         * nscd/connections.c (restart_p): Likewise.
20145         Change return type to bool.
20146
20147 2013-02-05  Roland McGrath  <roland@hack.frob.com>
20148
20149         * Makeconfig (all-Depend-files): Add existing
20150         $(sorted-subdirs:=/Depend) files.
20151         (all-subdirs): Remove nss.
20152         * sysdeps/unix/inet/Subdirs: Add it here instead.
20153         * hesiod/Depend: New file.
20154
20155         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
20156         instead of calling alloca.
20157
20158         * io/lseek.c (__lseek): Rename to __libc_lseek.
20159         Define __lseek as an alias.
20160
20161         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
20162
20163 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
20164
20165         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
20166         else clause and remove check for non-standard endianness.
20167
20168 2013-02-04  David S. Miller  <davem@davemloft.net>
20169
20170         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20171
20172 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
20173
20174         [BZ #13550]
20175         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
20176         (__ubp_memchr): Remove prototype.
20177         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
20178         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
20179         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
20180         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
20181         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
20182         Remove alias.
20183         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
20184         (__ubp_memchr): Likewise.
20185         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
20186         (__ubp_memchr): Likewise.
20187         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
20188         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
20189         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
20190         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
20191         CHECK_STRING.
20192         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
20193         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
20194         (__getcwd): Do not use CHECK_STRING.
20195         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
20196         <bp-checks.h>.
20197         (__real_chown): Do not use CHECK_STRING.
20198         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
20199         <bp-checks.h>.
20200         (fchownat): Do not use CHECK_STRING.
20201         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
20202         CHECK_STRING.
20203         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
20204         <bp-checks.h>.
20205         (__lchown): Do not use CHECK_STRING.
20206         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
20207         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
20208         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
20209         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
20210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
20211         include <bp-checks.h>.
20212         (truncate64): Do not use CHECK_STRING.
20213         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
20214         <bp-checks.h>.
20215         (__real_chown): Do not use CHECK_STRING.
20216         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
20217         <bp-checks.h>.
20218         (__lchown): Do not use CHECK_STRING.
20219         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
20220         <bp-checks.h>.
20221         (__chown): Do not use CHECK_STRING.
20222         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
20223         <bp-checks.h>.
20224         (truncate64): Do not use CHECK_STRING.
20225         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
20226         Likewise.
20227         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
20228         (__xmknod): Do not use CHECK_STRING.
20229         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
20230         <bp-checks.h>.
20231         (__xmknodat): Do not use CHECK_STRING.
20232         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
20233         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
20234
20235 2013-02-04  Andreas Schwab  <schwab@suse.de>
20236
20237         [BZ #14142]
20238         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
20239         * include/netdb.h: Likewise for h_errno.
20240         * elf/tst-stackguard1.c: Include <tls.h>.
20241
20242 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
20243
20244         * elf/link.h (struct link_map): Extend the l_addr comment.
20245         * include/link.h (struct link_map): Likewise.
20246
20247 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
20248
20249         [BZ #13550]
20250         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
20251         (BOUNDED_1): Remove macro.
20252         * debug/backtrace.c: Don't include <bp-checks.h>.
20253         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
20254         (__backtrace): Likewise.
20255         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
20256         <bp-checks.h>.
20257         (__backtrace): Don't use BOUNDED_1.
20258         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
20259         <bp-checks.h>.
20260         (__backtrace): Don't use BOUNDED_1.
20261         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
20262         (__backtrace): Don't use BOUNDED_1.
20263         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
20264         (shmat): Don't use BOUNDED_N.
20265
20266 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
20267
20268         [BZ #13550]
20269         * sysdeps/generic/bp-start.h: Remove file.
20270         * csu/libc-start.c: Don't include <bp-start.h>.
20271         (LIBC_START_MAIN): Set up __environ directly instead of using
20272         INIT_ARGV_and_ENVIRON.
20273         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
20274         <bp-start.h>.
20275
20276         [BZ #13550]
20277         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
20278         definitions.
20279         (CHECK_FCNTL): Likewise.
20280         (CHECK_N_PAGES): Likewise.
20281
20282         [BZ #13550]
20283         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
20284         definitions.
20285         (CHECK_SIGSET_NULL_OK): Likewise.
20286         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
20287         <bp-checks.h>.
20288         (sigpending): Don't use CHECK_SIGSET.
20289         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
20290         <bp-checks.h>.
20291         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
20292         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
20293         <bp-checks.h>.
20294         (do_sigsuspend): Don't use CHECK_SIGSET.
20295         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
20296         use CHECK_SIGSET.
20297         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
20298         (do_sigwait): Don't use CHECK_SIGSET.
20299         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
20300         use CHECK_SIGSET.
20301         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
20302         include <bp-checks.h>.
20303         (sigpending): Don't use CHECK_SIGSET.
20304         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
20305         include <bp-checks.h>.
20306         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
20307         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
20308         <bp-checks.h>.
20309         (sigpending): Don't use CHECK_SIGSET.
20310         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
20311         <bp-checks.h>.
20312         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
20313
20314         [BZ #13550]
20315         * sysdeps/generic/bp-semctl.h: Remove file.
20316         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
20317         <bp-checks.h> and <bp-semctl.h>.
20318         (__old_semctl): Don't use CHECK_SEMCTL.
20319         (__new_semctl): Likewise.
20320         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
20321         and <bp-semctl.h>.
20322         (__old_semctl): Don't use CHECK_SEMCTL.
20323         (__new_semctl): Likewise.
20324         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
20325         <bp-checks.h> and <bp-semctl.h>.
20326         (__old_semctl): Don't use CHECK_SEMCTL.
20327         (__new_semctl): Likewise.
20328         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
20329         <bp-checks.h> and <bp-semctl.h>.
20330         (semctl): Don't use CHECK_SEMCTL.
20331
20332         [BZ #13550]
20333         * Makerules (elide-bp-thunks): Remove variable.
20334         (elide-routines.oS): Don't use $(elide-bp-thunks).
20335         (elide-routines.os): Likewise.
20336         (elide-routines.o): Likewise.
20337         (elide-routines.op): Likewise.
20338         (elide-routines.og): Likewise.
20339         (objects): Don't use $(bp-thunks).
20340         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
20341         include.
20342         (common-generated): Do not add s-proto-bp.d.
20343         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
20344         (int): Likewise.
20345         (typ): Likewise.
20346         Do not generate makefile rules for bounded-pointer thunks.
20347         * sysdeps/generic/bp-thunks.h: Remove file.
20348         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
20349         * sysdeps/unix/s-proto-bp.S: Likewise.
20350
20351         [BZ #15062]
20352         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
20353         parts of result separately when argument is not close to line from
20354         -i to i and one part of argument is small.
20355         * math/k_casinhf.c (__kernel_casinhf): Likewise.
20356         * math/k_casinhl.c (__kernel_casinhl): Likewise.
20357         * math/libm-test.inc (cacos_test): Add more tests.
20358         (casin_test): Likewise.
20359         (casinh_test): Likewise.
20360         * sysdeps/i386/fpu/libm-test-ulps: Update.
20361         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20362
20363 2013-01-31  David S. Miller  <davem@davemloft.net>
20364
20365         * po/de.po: Update from translation team.
20366
20367 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
20368
20369         * time/tzfile.c: Include stdint.h for SIZE_MAX.
20370
20371 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
20372
20373         * configure.in (_AC_PROG_CC_C89): New definition.
20374         * configure: Regenerate.
20375
20376         * configure.in (AC_PROG_CPP): New definition.
20377         * configure: Regenerate.
20378
20379 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
20380
20381         * debug/tst-backtrace.h: New file.
20382         * debug/tst-backtrace2.c: Include tst-backtrace.h.
20383         (ret): Remove variable.
20384         (x): Likewise.
20385         (FAIL): Remove macro.
20386         (NO_INLINE): Likewise.
20387         (fn1): Use match function instead of strstr.
20388         * debug/tst-backtrace3.c: Include tst-backtrace.h.
20389         (ret): Remove variable.
20390         (x): Likewise.
20391         (FAIL): Remove macro.
20392         (NO_INLINE): Likewise.
20393         (fn): Use match function instead of strstr.
20394         * debug/tst-backtrace4.c: Include tst-backtrace.h.
20395         (ret): Remove variable.
20396         (x): Likewise.
20397         (FAIL): Remove macro.
20398         (NO_INLINE): Likewise.
20399         (handle_signal): Use match function instead of strstr.
20400         * debug/tst-backtrace5.c: Include tst-backtrace.h.
20401         (ret): Remove variable.
20402         (x): Likewise.
20403         (FAIL): Remove macro.
20404         (NO_INLINE): Likewise.
20405         (handle_signal): Use match function instead of strstr.
20406
20407 2013-01-23  Roland McGrath  <roland@hack.frob.com>
20408
20409         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
20410
20411 2013-01-23  David S. Miller  <davem@davemloft.net>
20412
20413         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
20414         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
20415         argument of CAS if possible.
20416         * sysdeps/sparc/sparc64/bits/atomic.h
20417         (__arch_compare_and_exchange_val_32_acq): Likewise.
20418         (__arch_compare_and_exchange_val_64_acq): Likewise.
20419
20420 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
20421
20422         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
20423         * sysdeps/posix/ulimit.c: ... this.
20424         Include <limits.h>.
20425         * sysdeps/unix/bsd/ulimit.c: Remove file.
20426
20427 2013-01-23  Adam Conrad  <adconrad@0c3.net>
20428
20429         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
20430         (LDFLAGS-tst-array5): Likewise.
20431
20432 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
20433
20434         [BZ #15036]
20435         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
20436         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
20437         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
20438         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
20439
20440 2013-01-21  David S. Miller  <davem@davemloft.net>
20441
20442         * sysdeps/sparc/backtrace.c: New file.
20443         * sysdeps/sparc/sparc32/backtrace.h: New file.
20444         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
20445         * sysdeps/sparc/sparc64/backtrace.h: New file.
20446         * sysdeps/sparc/sparc64/backtrace.c: Delete.
20447         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
20448         -funwind-tables.
20449
20450 2013-01-21  Andreas Schwab  <schwab@suse.de>
20451
20452         [BZ #15020]
20453         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
20454         closed its stdout.
20455
20456 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
20457
20458         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
20459         "mpa2.h".
20460         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20461
20462 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
20463             Mark Mitchell  <mark@codesourcery.com>
20464             Tom de Vries  <tom@codesourcery.com>
20465             Paul Pluzhnikov  <ppluzhnikov@google.com>
20466
20467         * debug/tst-backtrace2.c: New file.
20468         * debug/tst-backtrace3.c: Likewise.
20469         * debug/tst-backtrace4.c: Likewise.
20470         * debug/tst-backtrace5.c: Likewise.
20471         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
20472         (CFLAGS-tst-backtrace3.c): Likewise.
20473         (CFLAGS-tst-backtrace4.c): Likewise.
20474         (CFLAGS-tst-backtrace5.c): Likewise.
20475         (LDFLAGS-tst-backtrace2): Likewise.
20476         (LDFLAGS-tst-backtrace3): Likewise.
20477         (LDFLAGS-tst-backtrace4): Likewise.
20478         (LDFLAGS-tst-backtrace5): Likewise.
20479         (tests): Add new tests tst-backtrace2, tst-backtrace3,
20480         tst-backtrace4 and tst-backtrace5.
20481
20482 2013-01-18  Anton Blanchard  <anton@samba.org>
20483             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
20484
20485         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
20486         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
20487         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
20488         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
20489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
20490         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
20491         "+r" and remove output regs list as redundant.  Add explicit inline
20492         asm to specify register of return val to work around compiler codegen
20493         bug.  Remove (int) cast on return value.  Add return type parameter to
20494         use in macro so that this macro does not truncate return value for
20495         64-bit values.
20496         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
20497         pass to INTERNAL_VSYSCALL_NCS.
20498         (INLINE_VSYSCALL): Add 'long int' as return type to
20499         INTERNAL_VSYSCALL_NCS macro invocation.
20500         (INTERNAL_VSYSCALL): Add 'long int' as return type to
20501         INTERNAL_VSYSCALL_NCS macro invocation.
20502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
20503
20504 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20505
20506         [BZ #14496]
20507         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
20508         Fix application of SIMD FP exception mask.
20509
20510         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
20511         mp_no from a power of two.
20512         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
20513         __mpexp_twomm1.  Use __pow_mp.
20514
20515         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
20516         multiplication.
20517
20518 2013-01-17  David S. Miller  <davem@davemloft.net>
20519
20520         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20521
20522 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
20523
20524         [BZ #15023]
20525         * include/complex.h: Condition contents on [!_COMPLEX_H].
20526         (__kernel_casinhf): New prototype.
20527         (__kernel_casinh): Likewise.
20528         (__kernel_casinhl): Likewise.
20529         * math/Makefile (libm_calls): Add k_casinh.
20530         * math/k_casinh.c: New file.
20531         * math/k_casinhf.c: Likewise.
20532         * math/k_casinhl.c: Likewise.
20533         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
20534         finite nonzero arguments.
20535         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
20536         finite nonzero arguments.
20537         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
20538         finite nonzero arguments.
20539         * math/s_casinh.c: Do not include <float.h>.
20540         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
20541         * math/s_casinhf.c: Do not include <float.h>.
20542         (__casinhf): Move code for finite nonzero arguments to
20543         k_casinhf.c.
20544         * math/s_casinhl.c: Do not include <float.h>.
20545         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
20546         redefine.
20547         (__casinhl): Move code for finite nonzero arguments to
20548         k_casinhl.c.
20549         * math/libm-test.inc (cacos_test): Add more tests.
20550         * sysdeps/i386/fpu/libm-test-ulps: Update.
20551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20552
20553 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
20554
20555         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
20556         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
20557         [!HAVE_MREMAP]: Remove [defined linux] case.
20558         * malloc/arena.c: Do not include <malloc-sysdep.h>.
20559
20560 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
20561
20562         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
20563
20564 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
20565
20566         * elf/elf.h (R_386_SIZE32): New relocation.
20567         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
20568         R_386_SIZE32.
20569         (elf_machine_rela): Likewise.
20570         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
20571         R_X86_64_SIZE64 and R_X86_64_SIZE32.
20572
20573 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
20574
20575         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
20576         (FP_FAST_FMA): Do not define.
20577         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
20578         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
20579         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
20580         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
20581         !_SOFT_FLOAT]: Likewise.
20582         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
20583         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
20584         value.
20585         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
20586         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
20587         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
20588         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
20589         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
20590         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
20591         file.
20592
20593 2013-01-16  Andreas Schwab  <schwab@suse.de>
20594
20595         [BZ #14327]
20596         * include/stdlib.h (__mktemp): Add declaration.
20597         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
20598         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
20599
20600 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
20601
20602         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
20603         definitions.
20604         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
20605         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
20606         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
20607         definitions here.
20608         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
20609         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
20610         definitions.
20611         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
20612         and ONE.
20613         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
20614         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
20615         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
20616         definitions.
20617         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
20618         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
20619         definitions.
20620         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
20621
20622         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
20623
20624 2013-01-15  David S. Miller  <davem@davemloft.net>
20625
20626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
20627         trunc{,f} to libm-sysdep_routes.
20628         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
20629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
20630         file.
20631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
20632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
20633         file.
20634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
20635         file.
20636         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
20637         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
20638         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
20639         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
20640         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
20641         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
20642         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
20643         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
20644
20645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
20646         nearbyint{,f} to libm-sysdep_routes.
20647         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
20648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
20649         New file.
20650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
20651         file.
20652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
20653         New file.
20654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
20655         file.
20656         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
20657         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
20658         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
20659         file.
20660         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
20661         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
20662         file.
20663         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
20664         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
20665         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
20666
20667         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
20668         libc_feholdexcept and libc_fesetenv.
20669
20670 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
20671
20672         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
20673
20674 2013-01-14  David S. Miller  <davem@davemloft.net>
20675
20676         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
20677         (SPARC_ASM_VIS2_IFUNC): Likewise.
20678         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
20679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
20680         use of 'siam' instruction.
20681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
20682         Likewise.
20683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
20684         Likewise.
20685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
20686         Likewise.
20687         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
20688         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
20689         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
20690         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
20691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
20692         file.
20693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
20694         file.
20695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
20696         file.
20697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
20698         file.
20699         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
20700         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
20701         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
20702         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
20703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
20704         new VIS2 routines.
20705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
20706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
20707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
20708         Likewise.
20709         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
20710         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
20711         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
20712         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
20713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
20714         routines to libm-sysdep_routines.
20715         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
20716
20717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
20718         fdim/fdimf to libm-sysdep_routines.
20719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
20720         file.
20721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
20722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
20723         file.
20724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
20725         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
20726         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
20727         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
20728         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
20729         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
20730         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
20731
20732 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20733
20734         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
20735         to optimize copies.
20736
20737         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
20738         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
20739         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20740
20741         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
20742         local variable MPTWO.
20743         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
20744         Likewise.
20745
20746 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
20747
20748         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
20749         GLOB_NOESCAPE.
20750
20751 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
20752
20753         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
20754
20755 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
20756
20757         * manual/pattern.texi (glob_t): Document gl_flags.
20758         (glob64_t): Likewise.
20759
20760 2013-01-11  David S. Miller  <davem@davemloft.net>
20761
20762         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
20763         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
20764         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
20765         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
20766         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
20767         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
20768         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
20769         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
20770         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
20771         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
20772         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
20773         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
20774         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
20775
20776         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
20777         sparc V9 rather than using V8 code.
20778         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
20779         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
20780
20781         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
20782         Move to...
20783         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
20784         Here.
20785
20786 2013-01-11  Roland McGrath  <roland@hack.frob.com>
20787
20788         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
20789         not in the main loop.
20790         * configure: Regenerated.
20791
20792 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
20793
20794         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
20795         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
20796         to just #else.
20797         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
20798         [!__GLIBC_HAVE_LONG_LONG] case.
20799         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
20800         condition to just #else.
20801         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
20802         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
20803         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
20804         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
20805         unconditional.
20806         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
20807         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
20808         #elif condition to just #else.
20809         * sysdeps/unix/sysv/linux/sys/sysmacros.h
20810         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
20811         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
20812         #elif condition to just #else.
20813
20814 2013-01-11  Steve Ellcey  <sellcey@mips.com>
20815
20816         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
20817         (EF_MIPS_ARCH_64): Fix value.
20818         (EF_MIPS_ARCH_32R2): New.
20819         (EF_MIPS_ARCH_64R2): New.
20820
20821 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
20822
20823         * Makeconfig (+link-pie-before-libc): New.
20824         (+link-pie-after-libc): Likewise.
20825         (+link-pie-tests): Likewise.
20826         (+link-pie): Rewritten.
20827         (link-before-libc): Remove $(config-LDFLAGS).
20828         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
20829         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
20830         (config-LDFLAGS): Renamed to ...
20831         (rtld-LDFLAGS): This.
20832         (rtld-tests-LDFLAGS): New macro.
20833         (link-libc-rpath-link): Likewise.
20834         (link-libc-tests-rpath-link): Likewise.
20835         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
20836         (link-libc): Prepand $(link-libc-rpath-link).
20837         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
20838         (test-program-prefix): New macro.
20839         (test-via-rtld-prefix): Likewise.
20840         (test-program-cmd): Likewise.
20841         (host-test-program-cmd): Likewise.
20842         * Makefile ($(common-objpfx)testrun.sh): Replace
20843         $(run-program-prefix) with $(test-program-prefix).
20844         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
20845         $(rtld-LDFLAGS).
20846         ($(common-objpfx)shlib.lds): Likewise.
20847         (build-module-helper): Likewise.
20848         ($(common-objpfx)format.lds): Likewise.
20849         * Rules (binaries-pie-tests): New.
20850         (binaries-pie-notests): Likewise.
20851         (binaries-pie): Rewritten.
20852         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
20853         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
20854         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
20855         (make-test-out): Replace $(host-built-program-cmd) with
20856         $(host-test-program-cmd).
20857         * config.make.in (build-hardcoded-path-in-tests): New variable.
20858         * configure.in (--enable-hardcoded-path-in-tests): New configure
20859         option.
20860         (hardcoded_path_in_tests): New AC_SUBST.
20861         * configure: Regenerated.
20862         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
20863         $(built-program-cmd) with $(test-program-cmd).
20864         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
20865         (test_program_cmd): This.
20866         * elf/Makefile ($(objpfx)order.out): Run test with
20867         $(test-program-prefix).
20868         ($(objpfx)order2.out): Likewise.
20869         ($(objpfx)tst-initorder.out): Likewise.
20870         ($(objpfx)tst-initorder2.out): Likewise.
20871         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
20872         $(test-program-cmd).
20873         ($(objpfx)tst-array1-static.out): Likewise.
20874         ($(objpfx)tst-array2.out): Likewise.
20875         ($(objpfx)tst-array3.out): Likewise.
20876         ($(objpfx)tst-array4.out): Likewise.
20877         ($(objpfx)tst-array5.out): Likewise.
20878         ($(objpfx)tst-array5-static.out): Likewise.
20879         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
20880         $(test-program-cmd).
20881         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
20882         $(run-program-prefix) with $(test-program-prefix).
20883         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
20884         (test_program_prefix): This.
20885         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
20886         $(run-program-prefix) with $(test-program-prefix).
20887         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
20888         (test_program_prefix): This.
20889         * iconvdata/tst-tables.sh: Likewise.
20890         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
20891         $(run-program-prefix) with $(test-program-prefix).
20892         ($(objpfx)tst-translit.out): Likewise.
20893         ($(objpfx)tst-gettext2.out): Likewise.
20894         ($(objpfx)tst-gettext4.out): Likewise.
20895         ($(objpfx)tst-gettext6.out): Likewise.
20896         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
20897         (test_program_prefix): This.
20898         * intl/tst-gettext2.sh: Likewise.
20899         * intl/tst-gettext4.sh  Likewise.
20900         * intl/tst-gettext6.sh: Likewise.
20901         * intl/tst-translit.sh: Likewise.
20902         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
20903         with $(test-program-cmd).
20904         * libio/Makefile ($(objpfx)test-freopen.out): Replace
20905         $(run-program-prefix) with $(test-program-prefix).
20906         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
20907         (test_program_prefix): This.
20908         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
20909         $(run-program-prefix) with $(test-program-prefix).
20910         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
20911         (test_program_prefix): This.
20912         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
20913         * posix/Makefile ($(objpfx)globtest.out): Replace
20914         $(run-via-rtld-prefix) and $(test-wrapper) with
20915         $(test-program-prefix) and $(test-via-rtld-prefix).
20916         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
20917         $(test-program-prefix).
20918         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
20919         $(host-test-program-cmd).
20920         (tst-spawn-ARGS): Likewise.
20921         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
20922         $(test-program-prefix).
20923         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
20924         (test_via_rtld_prefix): This.
20925         (test_wrapper): Renamed to ...
20926         (test_program_prefix): This.
20927         (run_program_prefix): Replaced by test_program_prefix.
20928         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
20929         (test_program_prefix): This.
20930         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
20931         with $(host-test-program-cmd).
20932         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
20933         $(run-program-prefix) with $(test-program-prefix).
20934         ($(objpfx)tst-printf.out): Likewise.
20935         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
20936         $(test-program-cmd).
20937         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
20938         (test_program_prefix): This.
20939         * stdio-common/tst-unbputc.sh: Likewise.
20940         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
20941         $(run-program-prefix) with $(test-program-prefix).
20942         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
20943         (test_program_prefix): This.
20944         * string/Makefile ($(objpfx)tst-svc.out):  Replace
20945         $(built-program-cmd) with $(test-program-cmd).
20946
20947 2013-01-11  Andreas Jaeger  <aj@suse.de>
20948
20949         [BZ #15003]
20950         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
20951         value. Sync with Linux 3.7.
20952
20953 2013-01-10  David S. Miller  <davem@davemloft.net>
20954
20955         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
20956         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
20957         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
20958
20959 2013-01-10  Roland McGrath  <roland@hack.frob.com>
20960
20961         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
20962         never set.
20963         * configure: Regenerated.
20964
20965 2013-01-10  David S. Miller  <davem@davemloft.net>
20966
20967         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
20968         sparc V9 rather than using V8 code.
20969         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
20970         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
20971
20972 2013-01-10  Roland McGrath  <roland@hack.frob.com>
20973
20974         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
20975         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
20976         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
20977         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
20978         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
20979         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
20980         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
20981         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
20982         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
20983         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
20984         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
20985         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
20986         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
20987         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
20988         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
20989         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
20990         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
20991         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
20992         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
20993         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
20994         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
20995         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
20996         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
20997         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
20998         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
20999         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
21000         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
21001
21002 2013-01-10  David S. Miller  <davem@davemloft.net>
21003
21004         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21005
21006 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
21007
21008         * posix/Makefile (tests-static): New variable.
21009         (tests): Add $(tests-static).
21010         (tst-exec-static-ARGS): New variable.
21011         (tst-spawn-static-ARGS): Likewise.
21012         * posix/tst-exec-static.c: New file.
21013         * posix/tst-spawn-static.c: Likewise.
21014         * posix/tst-exec.c: Support run directly.
21015         * posix/tst-spawn.c: Likewise.
21016
21017 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
21018
21019         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
21020         long.
21021         * math/bits/mathcalls.h (llrint): Likewise.
21022         (llround): Likewise.
21023         * stdlib/stdlib.h (struct drand48_data): Likewise.
21024         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
21025         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
21026         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
21027         Likewise.
21028         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
21029         Likewise.
21030         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
21031         (elf_greg_t): Likewise.
21032         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
21033         (__jmp_buf): Likewise.
21034         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
21035         definitions.
21036         (llrint): Likewise, for all definitions.
21037         (llrintl): Likewise.
21038
21039         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
21040         Remove [__GNUC__] condition.
21041         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
21042         condition to just [__USE_ISOC99].
21043         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
21044
21045 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
21046
21047         [BZ #14200]
21048         * sysdeps/unix/sysv/linux/x86/bits/environments.h
21049         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
21050         defined.
21051         (_POSIX_V6_ILP32_OFF32): Likewise.
21052         (_XBS5_ILP32_OFF32): Likewise.
21053         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
21054         (__ILP32_OFFBIG_LDFLAGS): Likewise.
21055
21056 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
21057
21058         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
21059
21060         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
21061         doubles __mpexp_twomm1.  Adjust usage.
21062         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
21063         Remove.
21064
21065 2013-01-10  Andreas Schwab  <schwab@suse.de>
21066
21067         [BZ #14964]
21068         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
21069         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
21070
21071 2013-01-09  David S. Miller  <davem@davemloft.net>
21072
21073         [BZ #15003]
21074         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
21075         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
21076         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
21077         (TCP_FASTOPEN): Define.
21078         (tcp_repair_opt): New structure.
21079         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
21080         enum values.
21081         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
21082         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
21083         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
21084         (tcp_cookie_transactions): New structure.
21085
21086 2013-01-09  Anton Blanchard  <anton@samba.org>
21087
21088         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
21089         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
21090         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
21091         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
21092
21093 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
21094
21095         * include/features.h (__USE_ANSI): Remove.
21096
21097 2013-01-09  Roland McGrath  <roland@hack.frob.com>
21098
21099         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
21100
21101         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
21102
21103 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
21104
21105         * sysdeps/s390/fpu/libm-test-ulps: Update.
21106
21107         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21108
21109         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
21110         (__acr): Likewise.
21111         (__cpy): Likewise.
21112         (norm): Likewise.
21113         (denorm): Likewise.
21114         (__mp_dbl): Likewise.
21115         (__dbl_mp): Likewise.
21116         (add_magnitudes): Likewise.
21117         (sub_magnitudes): Likewise.
21118         (__add): Likewise.
21119         (__sub): Likewise.
21120         (__mul): Likewise.
21121         (__inv): Likewise.
21122         (__dvd): Likewise.
21123         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
21124         (__acr): Likewise.
21125         (__cpy): Likewise.
21126         (norm): Likewise.
21127         (denorm): Likewise.
21128         (__mp_dbl): Likewise.
21129         (__dbl_mp): Likewise.
21130         (add_magnitudes): Likewise.
21131         (sub_magnitudes): Likewise.
21132         (__add): Likewise.
21133         (__sub): Likewise.
21134         (__mul): Likewise.
21135         (__inv): Likewise.
21136         (__dvd): Likewise.
21137         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
21138         (__acr): Likewise.
21139         (__cpy): Likewise.
21140         (norm): Likewise.
21141         (denorm): Likewise.
21142         (__mp_dbl): Likewise.
21143         (__dbl_mp): Likewise.
21144         (add_magnitudes): Likewise.
21145         (sub_magnitudes): Likewise.
21146         (__add): Likewise.
21147         (__sub): Likewise.
21148         (__mul): Likewise.
21149         (__inv): Likewise.
21150         (__dvd): Likewise.
21151
21152 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
21153
21154         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
21155         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
21156         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
21157         2 && __USE_EXTERN_INLINES]: Likewise.
21158
21159 2013-01-08  Andreas Jaeger  <aj@suse.de>
21160
21161         [BZ# 14985]
21162         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
21163         Remove.
21164         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
21165         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
21166
21167 2013-01-07  Anton Blanchard  <anton@samba.org>
21168
21169         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
21170         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
21171         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
21172         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
21173         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
21174         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
21175         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
21176         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
21177         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
21178         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
21179         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
21180         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
21181         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
21182         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
21183         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
21184         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
21185         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
21186         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
21187         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
21188         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
21189         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
21190         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
21191         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
21192         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
21193         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
21194         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
21195         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
21196         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
21197         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
21198         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
21199         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
21200         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
21201         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
21202         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
21203         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
21204         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
21205         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
21206         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
21207         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
21208         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
21209         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
21210         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
21211         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
21212
21213 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
21214
21215         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
21216         (__MALLOC_PMT): Likewise.
21217         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
21218         [__GNUC__], only on [_LIBC].
21219         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
21220         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
21221         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
21222         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
21223         forward declaration.
21224         (realloc_hook_ini): Likewise.
21225         (memalign_hook_ini): Likewise.
21226         (__libc_memalign): Do not use __MALLOC_PMT in variable
21227         declaration.
21228         (__libc_valloc): Likewise.
21229         (__libc_pvalloc): Likewise.
21230         (__libc_calloc): Likewise.
21231         (__posix_memalign): Likewise.
21232
21233         [BZ #14996]
21234         * math/s_casinh.c: Include <float.h>.
21235         (__casinh): Do not do computation with squaring and square root
21236         for large arguments.
21237         * math/s_casinhf.c: Include <float.h>.
21238         (__casinhf): Do not do computation with squaring and square root
21239         for large arguments.
21240         * math/s_casinhl.c: Include <float.h>.
21241         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
21242         (__casinhl): Do not do computation with squaring and square root
21243         for large arguments.
21244         * math/libm-test.inc (casin_test): Add more tests.
21245         (casinh_test): Likewise.
21246         * sysdeps/i386/fpu/libm-test-ulps: Update.
21247         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21248
21249 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
21250
21251         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
21252         (__x86_64_raw_data_cache_size): Likewise.
21253         (__x86_64_data_cache_size_half): Likewise.
21254         (__x86_64_raw_data_cache_size_half): Likewise.
21255         (__x86_64_shared_cache_size): Likewise.
21256         (__x86_64_raw_shared_cache_size): Likewise.
21257         (__x86_64_shared_cache_size_half): Likewise.
21258         (__x86_64_raw_shared_cache_size_half): Likewise.
21259         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
21260         to ...
21261         (__x86_data_cache_size): This.
21262         (__x86_64_raw_data_cache_size): Renamed to ...
21263         (__x86_raw_data_cache_size): This.
21264         (__x86_64_data_cache_size_half): Renamed to ...
21265         (__x86_data_cache_size_half): This.
21266         (__x86_64_raw_data_cache_size_half): Renamed to ...
21267         (__x86_raw_data_cache_size_half): This.
21268         (__x86_64_shared_cache_size): Renamed to ...
21269         (__x86_shared_cache_size): This.
21270         (__x86_64_raw_shared_cache_size): Renamed to ...
21271         (__x86_raw_shared_cache_size): This.
21272         (__x86_64_shared_cache_size_half): Renamed to ...
21273         (__x86_shared_cache_size_half): This.
21274         (__x86_64_raw_shared_cache_size_half): Renamed to ...
21275         (__x86_raw_shared_cache_size_half): This.
21276         * sysdeps/x86_64/memcpy.S: Updated.
21277         * sysdeps/x86_64/memset.S: Likewise.
21278         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
21279         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
21280         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
21281
21282 2013-01-04  David S. Miller  <davem@davemloft.net>
21283
21284         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21285
21286 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
21287
21288         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
21289         1 to avoid redefinition warning.
21290         (__USE_GNU): Don't define.
21291         (init_signaling_nan): Protoize.
21292
21293         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21294
21295 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
21296
21297         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
21298         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
21299         (__cpymn): Likewise.
21300         (norm): Remove commented code.
21301         (denorm): Likewise.
21302         (__mp_dbl): Likewise.
21303         (__inv): Likewise.
21304         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
21305         (__cpymn): Likewise.
21306         (norm): Remove commented code.
21307         (denorm): Likewise.
21308         (__mp_dbl): Likewise.
21309         (__inv): Likewise.
21310
21311         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
21312         mp_no value for 1.0 and 2.0.
21313         (norm): Use RADIXI instead of radixi.d.
21314         (denorm): Likewise.
21315         (__mul): Use 0.0 instead of zero.d.
21316         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
21317         mp_no value for 1.0 and 2.0.
21318         (norm): Use RADIXI instead of radixi.d.
21319         (denorm): Likewise.
21320         (__mul): Use 0.0 instead of zero.d.
21321
21322 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
21323
21324         [BZ #14994]
21325         * math/s_casinh.c (__casinh): Reduce finite argument to first
21326         quadrant then set signs of results at the end.
21327         * math/s_casinhf.c (__casinhf): Likewise.
21328         * math/s_casinhl.c (__casinhl): Likewise.
21329         * math/libm-test.inc (casin_test): Add more tests.
21330         (casinh_test): Likewise.
21331         * sysdeps/i386/fpu/libm-test-ulps: Update.
21332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21333
21334 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
21335
21336         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
21337
21338         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
21339
21340         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
21341         declarations.
21342         (denorm): Likewise.
21343         (__mp_dbl): Likewise.
21344         (__inv): Likewise.
21345
21346         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
21347         and adjust the header comment.
21348
21349         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
21350         variable name from declaration.
21351
21352 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
21353
21354         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21355         Initialize COMMON_CPUID_INDEX_7 element.
21356         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
21357         (CPUID_RTM): Likewise.
21358         (HAS_RTM): Likewise.
21359         (COMMON_CPUID_INDEX_7): New enum.
21360
21361 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
21362
21363         [BZ #14981]
21364         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
21365         size is zero, record memory as freed.
21366
21367 2013-01-03  Andreas Jaeger  <aj@suse.de>
21368
21369         * po/ia.po: Add new Interlingua translation.
21370
21371 2012-01-03  Allan McRae  <allan@archlinux.org>
21372
21373         * locale/programs/localedef.c: Fix description of '--posix' flag.
21374
21375 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
21376
21377         * NEWS: Update dates in second copyright notice.
21378         * README: Update copyright dates in example.
21379         * manual/libc.texinfo: Update copyright dates.
21380         * scripts/test-installation.pl: Update copyright date in --version
21381         output.
21382
21383         * hurd/ctty-input.c: Fix copyright notice formatting.
21384         * hurd/ctty-output.c: Likewise.
21385         * hurd/dtable.c: Likewise.
21386         * hurd/hurd-raise.c: Likewise.
21387         * hurd/hurdprio.c: Likewise.
21388         * hurd/msgportdemux.c: Likewise.
21389         * misc/sys/file.h: Likewise.
21390         * misc/sys/ioctl.h: Likewise.
21391         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
21392         * sysdeps/mach/hurd/chdir.c: Likewise.
21393         * sysdeps/mach/hurd/fchdir.c: Likewise.
21394         * sysdeps/mach/hurd/rename.c: Likewise.
21395         * sysdeps/mach/hurd/rmdir.c: Likewise.
21396         * sysdeps/mach/hurd/seekdir.c: Likewise.
21397         * sysdeps/mach/hurd/setsid.c: Likewise.
21398         * sysdeps/posix/wait3.c: Likewise.
21399
21400         * All files with FSF copyright notices: Update copyright dates
21401         using scripts/update-copyrights.
21402         * intl/plural.c: Regenerated.
21403         * locale/programs/charmap-kw.h: Likewise.
21404         * locale/programs/locfile-kw.h: Likewise.
21405
21406 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
21407
21408         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
21409         four values.
21410
21411         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
21412         calculation loop and add branch prediction.
21413
21414         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
21415         check access beyond bounds of m1np.
21416
21417         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
21418         MPTWO.
21419         (__inv): Remove local variable MPTWO to use the global
21420         constant.
21421         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
21422         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
21423         variable MPTWO.
21424         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
21425         MP3HALFS static const.
21426
21427 2013-01-01  David S. Miller  <davem@davemloft.net>
21428
21429         * po/ca.po: Update from translation team.
21430
21431 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
21432
21433         * scripts/update-copyrights: New file.
21434         * Makeconfig: Reformat copyright notice.
21435         * ctype/ctype.h: Likewise.
21436         * debug/swprintf_chk.c: Likewise.
21437         * elf/dl-cache.c: Likewise.
21438         * elf/dl-debug.c: Likewise.
21439         * elf/dl-object.c: Likewise.
21440         * grp/initgroups.c: Likewise.
21441         * hurd/Makefile: Likewise.
21442         * hurd/hurd/signal.h: Likewise.
21443         * hurd/hurdfault.c: Likewise.
21444         * hurd/hurdioctl.c: Likewise.
21445         * hurd/hurdlookup.c: Likewise.
21446         * hurd/intr-msg.c: Likewise.
21447         * iconv/gconv_open.c: Likewise.
21448         * libio/swprintf.c: Likewise.
21449         * locale/lc-ctype.c: Likewise.
21450         * locale/nl_langinfo.c: Likewise.
21451         * mach/Machrules: Likewise.
21452         * mach/Makefile: Likewise.
21453         * malloc/obstack.h: Likewise.
21454         * manual/Makefile: Likewise.
21455         * manual/tsort.awk: Likewise.
21456         * misc/bits/stab.def: Likewise.
21457         * nis/nis_print_group_entry.c: Likewise.
21458         * nis/nis_table.c: Likewise.
21459         * nis/nss_compat/compat-pwd.c: Likewise.
21460         * nis/nss_compat/compat-spwd.c: Likewise.
21461         * po/Makefile: Likewise.
21462         * posix/fnmatch.c: Likewise.
21463         * posix/regex.h: Likewise.
21464         * resolv/Makefile: Likewise.
21465         * resolv/nss_dns/dns-network.c: Likewise.
21466         * resolv/res_hconf.c: Likewise.
21467         * scripts/gen-sorted.awk: Likewise.
21468         * soft-fp/soft-fp.h: Likewise.
21469         * stdio-common/printf.h: Likewise.
21470         * stdlib/monetary.h: Likewise.
21471         * stdlib/random.c: Likewise.
21472         * stdlib/random_r.c: Likewise.
21473         * sysdeps/generic/Makefile: Likewise.
21474         * sysdeps/gnu/Makefile: Likewise.
21475         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
21476         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21477         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
21478         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21479         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
21480         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21481         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21482         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
21483         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
21484         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21485         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
21486         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
21487         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
21488         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
21489         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21490         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
21491         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
21492         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21493         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
21494         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21495         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
21496         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
21497         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21498         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
21499         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
21500         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
21501         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
21502         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
21503         * sysdeps/mach/hurd/errnos.awk: Likewise.
21504         * sysdeps/mach/hurd/fork.c: Likewise.
21505         * sysdeps/mach/hurd/getcwd.c: Likewise.
21506         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
21507         * sysdeps/mach/hurd/mmap.c: Likewise.
21508         * sysdeps/mach/hurd/utimes.c: Likewise.
21509         * sysdeps/mach/hurd/xmknod.c: Likewise.
21510         * sysdeps/posix/profil.c: Likewise.
21511         * sysdeps/posix/readdir_r.c: Likewise.
21512         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21513         * sysdeps/powerpc/bits/setjmp.h: Likewise.
21514         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
21515         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
21516         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
21517         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
21518         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
21519         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21520         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
21521         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
21522         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
21523         * sysdeps/pthread/lio_listio.c: Likewise.
21524         * sysdeps/sparc/dl-procinfo.h: Likewise.
21525         * sysdeps/unix/i386/sysdep.S: Likewise.
21526         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
21527         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
21528         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
21529         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
21530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21531         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
21532         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
21533         * sysdeps/unix/sysv/linux/speed.c: Likewise.
21534         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
21535         * sysdeps/wordsize-32/divdi3.c: Likewise.
21536         * time/sys/time.h: Likewise.
21537         * wcsmbs/Makefile: Likewise.
21538
21539 2013-01-01  David S. Miller  <davem@davemloft.net>
21540
21541         * po/fr.po: Update from translation team.
21542
21543         * catgets/gencat.c: Update copyright year.
21544         * csu/version.c: Likewise.
21545         * debug/catchsegv.sh: Likewise.
21546         * debug/pcprofiledump.c: Likewise.
21547         * debug/xtrace.sh: Likewise.
21548         * elf/ldconfig.c: Likewise.
21549         * elf/ldd.bash.in: Likewise.
21550         * elf/pldd.c: Likewise.
21551         * elf/sotruss.ksh: Likewise.
21552         * elf/sprof.c: Likewise.
21553         * iconv/iconv_prog.c: Likewise.
21554         * iconv/iconvconfig.c: Likewise.
21555         * locale/programs/locale.c: Likewise.
21556         * locale/programs/localedef.c: Likewise.
21557         * login/programs/pt_chown.c: Likewise.
21558         * malloc/memusage.sh: Likewise.
21559         * malloc/memusagestat.c: Likewise.
21560         * malloc/mtrace.pl: Likewise.
21561         * nscd/nscd.c: Likewise.
21562         * nss/getent.c: Likewise.
21563         * nss/makedb.c: Likewise.
21564         * posix/getconf.c: Likewise.
21565
21566 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
21567
21568         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
21569         numbers.
21570
21571 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
21572
21573         * math/bits/mathcalls.h (modf): Use __nonnull.
21574
21575 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
21576
21577         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
21578         (split): Use macro CN instead of the bare value.
21579         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
21580         could be used.
21581         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
21582         instead of the bare value.
21583         (power1): Likewise.
21584
21585 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21586
21587         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
21588         __ATAN_TWOM.
21589         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
21590
21591         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
21592         their values.
21593         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
21594         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
21595         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
21596         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
21597
21598 2012-12-28  Andreas Jaeger  <aj@suse.de>
21599
21600         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
21601         values are from Linux 3.7.
21602
21603         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
21604         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
21605
21606 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21607
21608         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
21609         TRUE case.
21610
21611         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
21612         (norm): Likewise.
21613         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
21614         variables with preprocessor constants.
21615         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
21616         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
21617         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
21618
21619 2012-12-27  Bruno Haible  <bruno@clisp.org>
21620
21621         [BZ #14317]
21622         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
21623         only if needed.
21624
21625 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
21626
21627         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
21628         and use variable directly.
21629         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
21630
21631         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
21632         MPONE.
21633         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
21634         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
21635         variable MPONE.
21636         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
21637         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
21638         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
21639         include directive.  Remove local variable MPONE.
21640         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
21641         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
21642         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21643
21644 2012-12-25  David S. Miller  <davem@davemloft.net>
21645
21646         * version.h (RELEASE): Set to "development".
21647         (VERSION): Set to "2.17.90".
21648         * NEWS: Add 2.18 section.
21649
21650 2012-12-21  David S. Miller  <davem@davemloft.net>
21651
21652         * po/hr.po: Update from translation team.
21653
21654 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21655
21656         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
21657
21658 2012-12-19  Steve Ellcey  <sellcey@mips.com>
21659
21660         * NEWS:  Mention new memcpy for MIPS.
21661
21662 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
21663
21664         * manual/contrib.texi (Contributors): Spelling correction.
21665
21666 2012-12-15  David S. Miller  <davem@davemloft.net>
21667
21668         * po/ru.po: Update from translation team.
21669
21670 2012-12-13  David S. Miller  <davem@davemloft.net>
21671
21672         * NEWS: Mention IFUNC testsuite enhancements.
21673
21674         * po/pl.po: Update from translation team.
21675         * po/bg.po: Likewise.
21676
21677         * manual/contrib.texi (Contributors): Update entries for Hongjiu
21678         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
21679
21680 2012-12-11  David S. Miller  <davem@davemloft.net>
21681
21682         * po/sv.po: Update from translation team.
21683
21684         * po/vi.po: Update from translation team.
21685
21686         * po/cs.po: Update from translation team.
21687
21688         * po/de.po: Update from translation team.
21689         * po/eo.po: Likewise.
21690         * po/nl.po: Likewise.
21691
21692 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
21693
21694         [BZ #14246]
21695         * manual/argp.texi (Argp Helper Functions): Move node to follow
21696         Argp Parsing State.
21697
21698         [BZ #14872]
21699         * manual/conf.texi (Limits on File System Capacity): Mention if
21700         terminating null is included in the max size.
21701
21702 2012-12-10  Andreas Jaeger  <aj@suse.de>
21703
21704         * po/cs.po: Update from translation team.
21705
21706 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
21707
21708         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
21709         void pointer and cast to uintptr_t.
21710         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
21711         path.
21712         * sysdeps/s390/s390-64/memcpy.S: Likewise.
21713         * sysdeps/s390/s390-64/memset.S: Likewise.
21714
21715 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
21716
21717         [BZ #14833]
21718         * menual/message.texi (Message Translation): Fix typos.
21719         (Helper programs for gettext): Likewise.
21720
21721 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
21722
21723         [BZ #14898]
21724         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
21725         Change to -1.
21726
21727 2012-12-07  David S. Miller  <davem@davemloft.net>
21728
21729         * po/libc.pot: Update.
21730
21731 2012-12-07  Richard Henderson  <rth@redhat.com>
21732
21733         [BZ #10114]
21734         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
21735         normal/normal case to before the switch.
21736         (_FP_DIV): Likewise.
21737
21738 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
21739             Mike Frysinger  <vapier@gentoo.org>
21740
21741         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
21742         check for __NR_fadvise64_64.
21743
21744 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
21745
21746         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
21747         0, not just to plain "0" as a statement.
21748         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
21749         with cw.
21750
21751 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
21752
21753         * NEWS: Use sourceware.org in Bugzilla URL.
21754
21755 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
21756
21757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21758         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
21759
21760         * stdio-common/tst-put-error.c (do_test): Add newline to the
21761         padded test to ensure flush.
21762
21763 2012-12-05  Jeff Law  <law@redhat.com>
21764
21765         * sunrpc/etc.rpc (fedfs_admin): Add entry.
21766
21767 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
21768
21769         * README: Don't refer to ports add-on as distributed separately.
21770         Mention AArch64 in list of systems supported in the ports add-on.
21771
21772         * LICENSES: Add more non-FSF copyright and license notices.
21773
21774         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
21775         ((unused)).
21776
21777         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
21778
21779         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
21780         10000 as width of padded output.
21781
21782 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
21783
21784         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
21785
21786         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
21787         variable LX with __attribute__ ((unused)).
21788         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
21789         Likewise.
21790         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
21791         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
21792         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
21793         with __attribute__ ((unused)).
21794
21795 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
21796
21797         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
21798
21799 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
21800
21801         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
21802         (CFLAGS-nldbl-acos.c): New variable.
21803         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
21804         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
21805         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
21806         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
21807         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
21808         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
21809         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
21810         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
21811         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
21812         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
21813         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
21814         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
21815         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
21816         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
21817         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
21818         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
21819         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
21820         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
21821         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
21822         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
21823         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
21824         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
21825         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
21826         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
21827         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
21828         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
21829         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
21830         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
21831         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
21832         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
21833         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
21834         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
21835         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
21836         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
21837         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
21838         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
21839         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
21840         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
21841         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
21842         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
21843         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
21844         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
21845         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
21846         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
21847         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
21848         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
21849         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
21850         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
21851         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
21852         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
21853         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
21854         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
21855         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
21856         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
21857         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
21858         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
21859         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
21860         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
21861         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
21862         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
21863         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
21864         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
21865         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
21866         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
21867         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
21868         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
21869         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
21870         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
21871         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
21872         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
21873         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
21874         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
21875         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
21876         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
21877         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
21878         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
21879         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
21880         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
21881         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
21882         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
21883         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
21884         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
21885         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
21886         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
21887         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
21888         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
21889         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
21890         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
21891         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
21892         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
21893         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
21894         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
21895         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
21896         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
21897         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
21898         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
21899         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
21900
21901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21902         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
21903
21904         [BZ #14914]
21905         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
21906         whole low double instead of just low 47 bits when splitting values
21907         into two parts.
21908
21909 2012-12-03  Allan McRae  <allan@archlinux.org>
21910
21911         * manual/stdio.texi (Predefined Printf Handlers): Remove
21912         @hsep and @vsep usage.
21913
21914 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
21915
21916         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
21917         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
21918
21919 2012-12-03  Jeff Law  <law@redhat.com>
21920
21921         * time/sys/time.h (settimeofday): Do not mark TV argument
21922         as __nonnull.
21923
21924 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
21925
21926         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
21927         when currently writing and seek to current position when not.
21928         * libio/Makefile (tests): Remove bug-fclose1.
21929         * libio/bug-fclose1.c: Delete.
21930
21931 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
21932
21933         * manual/arith.texi (feenableexcept): Fix typo.
21934         (fedisableexcept): Likewise.
21935
21936 2012-11-30  Roland McGrath  <roland@hack.frob.com>
21937
21938         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
21939         second, differently-typed declaration, rather than a cast.
21940
21941 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
21942
21943         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
21944         * include/rpc/svc.h: ... here.
21945
21946 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
21947
21948         [BZ #13013]
21949         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
21950         depending n and resplen2 to catch cases where answer
21951         equals answerp2.
21952
21953 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
21954
21955         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
21956         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
21957
21958 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
21959
21960         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
21961
21962 2012-11-29  Roland McGrath  <roland@hack.frob.com>
21963
21964         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
21965
21966 2012-11-28  Jeff Law  <law@redhat.com>
21967
21968         [BZ #13761]
21969         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
21970         dataset_temporary.  Track alloca usage into alloca_used.
21971         If dataset is large allocate and release it via malloc/free.
21972
21973 2012-06-04  Florian Weimer  <fweimer@redhat.com>
21974
21975         [BZ #14197]
21976         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
21977
21978 2012-11-28  David S. Miller  <davem@davemloft.net>
21979
21980         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21981
21982 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
21983
21984         [BZ #14803]
21985         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
21986         of pi/2 rounded to nearest to 64 bits.
21987         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
21988         nearest to 64 bits.
21989         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
21990         bits.
21991
21992 2012-11-28  Jeff Law <law@redhat.com>
21993             Martin Osvald <mosvald@redhat.com>
21994
21995         [BZ #14889]
21996         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
21997         * sunrpc/svc.c: Include time.h.
21998         (__svc_accept_failed): New function.
21999         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
22000         any reason other than EINTR, call __svc_accept_failed.
22001         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
22002         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
22003
22004 2012-11-28  Andreas Schwab  <schwab@suse.de>
22005
22006         * scripts/abilist.awk: Also handle indirect functions in .opd
22007         section.
22008
22009 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
22010
22011         [BZ #13881]
22012         * sysdeps/x86/fpu/powl_helper.c: New file.
22013         * sysdeps/x86/fpu/Makefile: Likewise.
22014         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
22015         (p3): New object.
22016         (__ieee754_powl): Use __powl_helper for finite arguments except
22017         integer exponents below 8.
22018         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
22019         (p3): New object.
22020         (__ieee754_powl): Use __powl_helper for finite arguments except
22021         integer exponents below 8.
22022         * math/libm-test.inc (pow_test): Add more tests and enable some
22023         previously disabled tests.
22024         * sysdeps/i386/fpu/libm-test-ulps: Update.
22025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22026
22027 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
22028             Carlos O'Donell  <carlos_odonell@mentor.com>
22029
22030         * nss/makedb.c (is_prime): Assert that input is odd and greater
22031         than 4.  Note that fact in a comment too.
22032         (next_prime): Add 4 to input.
22033
22034 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
22035
22036         [BZ #11741]
22037         * libio/Makefile (tests): Add test case tst-fwrite-error.
22038         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
22039         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
22040         * libio/tst-fwrite-error.c: New test case.
22041
22042 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
22043
22044         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
22045         before casting to void *.
22046         * include/libc-internal.h (__pointer_type): New macro.
22047         (__integer_if_pointer_type_sub): Likewise.
22048         (__integer_if_pointer_type): Likewise.
22049         (cast_to_integer): Likewise.
22050         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
22051         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
22052         before casting to atomic64_t.
22053         (atomic_exchange_acq): Likewise.
22054         (__arch_exchange_and_add_body): Likewise.
22055         (__arch_add_body): Likewise.
22056         (atomic_add_negative): Likewise.
22057         (atomic_add_zero): Likewise.
22058
22059 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
22060
22061         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
22062         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
22063         (add_fdes): Likewise.
22064         (linear_search_fdes): Likewise.
22065         (binary_search_unencoded_fdes): Likewise.
22066
22067 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
22068
22069         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
22070
22071 2012-11-24  Adam Conrad  <adconrad@0c3.net>
22072
22073         * configure.in: Autodetect C++ header directories.
22074         * configure: Regenerated.
22075
22076 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
22077
22078         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
22079
22080 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
22081
22082         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22083
22084 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
22085
22086         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
22087         LDBL_MANT_DIG == 106]: Disable some tests.
22088         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
22089         Likewise.
22090         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
22091         Likewise.
22092
22093         [BZ #14871]
22094         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
22095         input for small inputs.  Return +/- pi/2 for large inputs.
22096         * math/libm-test.inc (atan_test): Add more tests.
22097
22098         * sysdeps/generic/unwind-dw2-fde-glibc.c
22099         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
22100         __attribute__ ((unused)).
22101
22102         [BZ #14645]
22103         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
22104         x * y if x and y are nonzero and z is zero.
22105
22106         [BZ #14811]
22107         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
22108         nonzero exponents with absolute value below 0x1p-117 to +/-
22109         0x1p-117.
22110
22111         [BZ #14869]
22112         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
22113         up arguments below 2**-450, not just those below 2**-500.
22114         * math/libm-test.inc (hypot_test): Add another test.
22115
22116         [BZ #14868]
22117         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
22118         Return a+b for ratio over 2**120, not 2**60.
22119         * math/libm-test.inc (hypot_test): Add another test.
22120
22121         * math/libm-test.inc (clog_test): Use
22122         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
22123         (clog10_test): Likewise.
22124
22125         [BZ #6778]
22126         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
22127
22128 2012-11-22  Andreas Schwab  <schwab@suse.de>
22129
22130         * sysdeps/i386/fpu/libm-test-ulps: Update.
22131
22132 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
22133
22134         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
22135         printf output with newline.
22136
22137 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
22138
22139         [BZ #14865]
22140         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
22141         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
22142         -z nodlopen, -z initfirst and -z execstack support.
22143         * configure: Regenerated.
22144
22145         * elf/elf.h (DF_1_NODIRECT): New macro.
22146         (DF_1_IGNMULDEF): Likewise.
22147         (DF_1_NOKSYMS): Likewise.
22148         (DF_1_NOHDR): Likewise.
22149         (DF_1_EDITED): Likewise.
22150         (DF_1_NORELOC): Likewise.
22151         (DF_1_SYMINTPOSE): Likewise.
22152         (DF_1_GLOBAUDIT): Likewise.
22153         (DF_1_SINGLETON): Likewise.
22154         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
22155         DT_1_SUPPORTED_MASK bits.
22156         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
22157
22158 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
22159
22160         * sysdeps/unix/make-syscalls.sh: Document prefixes.
22161
22162 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
22163
22164         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
22165         macro.
22166
22167         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
22168         (sendmmsg): Move declarations...
22169         * socket/sys/socket.h: ... here.
22170         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
22171         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
22172         include it from...
22173         * socket/recvmmsg.c: ... this new file.
22174         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
22175         (sendmmsg): Rename to __sendmmsg, create weak alias and make
22176         definition of __sendmmsg hidden.
22177         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
22178         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
22179         Move ENOSYS stub into and include it from...
22180         * socket/sendmmsg.c: ... this new file.
22181         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
22182         (sysdep_routines): Move recvmmsg and sendmmsg...
22183         * socket/Makefile (routines): ... here.
22184         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
22185         (GLIBC_PRIVATE): Add __sendmmsg.
22186         * include/sys/socket.h (__sendmmsg): Add declarations.
22187         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
22188         sendmmsg.
22189
22190 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
22191
22192         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
22193         variable I1 with __attribute__ ((unused)).
22194         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
22195
22196 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
22197
22198         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
22199         DUMMY variables with __attribute__ ((unused)).
22200
22201         * bits/byteswap.h: Include <bits/types.h>.
22202         (__bswap_64): Use __uint64_t instead of unsigned long long int.
22203
22204 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
22205
22206         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
22207         string_t.  Do not manually set errno.
22208         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
22209         length with __strnlen.  Make sure to both set errno and return it on
22210         failure.
22211
22212 2012-11-19  David S. Miller  <davem@davemloft.net>
22213
22214         With help from Joseph Myers.
22215         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
22216         very large arguments properly.
22217         * math/libm-test.inc (atan_test): New tests.
22218         (atan2_test): New tests.
22219         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22220         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22221
22222 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
22223
22224         [BZ #14856]
22225         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
22226         Define to 3.
22227
22228         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
22229         [POSIX] (EADDRNOTAVAIL): Likewise.
22230         [POSIX] (EAFNOSUPPORT): Likewise.
22231         [POSIX] (EALREADY): Likewise.
22232         [POSIX] (ECONNABORTED): Likewise.
22233         [POSIX] (ECONNREFUSED): Likewise.
22234         [POSIX] (ECONNRESET): Likewise.
22235         [POSIX] (EDESTADDRREQ): Likewise.
22236         [POSIX] (EDQUOT): Likewise.
22237         [POSIX] (EHOSTUNREACH): Likewise.
22238         [POSIX] (EIDRM): Likewise.
22239         [POSIX] (EISCONN): Likewise.
22240         [POSIX] (ELOOP): Likewise.
22241         [POSIX] (EMULTIHOP): Likewise.
22242         [POSIX] (ENETDOWN): Likewise.
22243         [POSIX] (ENETUNREACH): Likewise.
22244         [POSIX] (ENOBUFS): Likewise.
22245         [POSIX] (ENODATA): Likewise.
22246         [POSIX] (ENOLINK): Likewise.
22247         [POSIX] (ENOMSG): Likewise.
22248         [POSIX] (ENOPROTOOPT): Likewise.
22249         [POSIX] (ENOSR): Likewise.
22250         [POSIX] (ENOSTR): Likewise.
22251         [POSIX] (ENOTCONN): Likewise.
22252         [POSIX] (ENOTSOCK): Likewise.
22253         [POSIX] (EOPNOTSUPP): Likewise.
22254         [POSIX] (EOVERFLOW): Likewise.
22255         [POSIX] (EPROTO): Likewise.
22256         [POSIX] (EPROTONOSUPPORT): Likewise.
22257         [POSIX] (EPROTOTYPE): Likewise.
22258         [POSIX] (ESTALE): Likewise.
22259         [POSIX] (ETIME): Likewise.
22260         [POSIX] (ETXTBSY): Likewise.
22261         [POSIX] (EWOULDBLOCK): Likewise.
22262         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
22263         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
22264         [POSIX] (SEEK_CUR): Likewise.
22265         [POSIX] (SEEK_END): Likewise.
22266         [POSIX || UNIX98] (mode_t): Do not require.
22267         [POSIX] (off_t): Likewise.
22268         [POSIX] (pid_t): Likewise.
22269         [POSIX] (sys/stat.h): Do not allow header.
22270         [POSIX] (unistd.h): Likewise.
22271         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
22272         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
22273         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
22274         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
22275         require.
22276         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
22277         sigevent): Specify elements.
22278         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
22279         entry.
22280         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
22281         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
22282
22283         * conform/data/cpio.h-data [POSIX]: Disable whole file.
22284         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
22285         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
22286         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
22287         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
22288         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
22289         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
22290         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
22291         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
22292         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
22293         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
22294         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
22295         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
22296         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
22297         Likewise.
22298         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
22299         Likewise.
22300         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
22301         Likewise.
22302         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
22303         Likewise.
22304         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
22305         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
22306         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
22307         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
22308         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
22309         Specify lower bound on value.
22310         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
22311         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
22312         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
22313         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
22314         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
22315         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
22316         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
22317         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
22318         value.
22319         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
22320         as optional.
22321         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
22322         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
22323         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
22324         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
22325         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
22326         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
22327         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
22328         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
22329         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
22330         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
22331         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
22332         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
22333         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
22334         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
22335         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
22336         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
22337         entry.
22338         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
22339         optional.
22340         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
22341         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
22342         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
22343         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
22344         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
22345         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
22346         Likewise.
22347         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
22348         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
22349         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
22350         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
22351         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
22352         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
22353         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
22354         as optional.
22355         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
22356         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
22357         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
22358         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
22359         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
22360         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
22361         specify as optional.
22362         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
22363         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
22364         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
22365         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
22366         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
22367         [XPG3] (NL_LANGMAX): Likewise.
22368         [POSIX || XPG3] (NL_MSGMAX): Likewise.
22369         [POSIX || XPG3] (NL_NMAX): Likewise.
22370         [POSIX || XPG3] (NL_SETMAX): Likewise.
22371         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
22372         [XPG3] (NZERO): Likewise.
22373         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
22374         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
22375         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
22376         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
22377         (REG_ERANGE): Expect.
22378         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
22379         optional-constant.
22380         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
22381         Use (void) in prototype.
22382         [POSIX] (*_t): Allow.
22383         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
22384         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
22385         (WRDE_BADVAL): Expect.
22386
22387         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
22388         expect.
22389         [XPG3 || XPG4] (O_RSYNC): Likewise.
22390         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
22391         Likewise.
22392         [XPG3 || XPG4] (pthread_sigmask): Likewise.
22393         [XPG3 || XPG4] (sigqueue): Likewise.
22394         [XPG3 || XPG4] (sigtimedwait): Likewise.
22395         [XPG3 || XPG4] (sigwaitinfo): Likewise.
22396         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
22397         [XPG3 || XPG4] (vsnprintf): Likewise.
22398         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
22399         Likewise.
22400         [XPG3 || XPG4] (blksize_t): Likewise.
22401         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
22402         Likewise.
22403         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
22404         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
22405         [XPG3 || XPG4] (struct itimerspec): Likewise.
22406         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
22407         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
22408         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
22409         [XPG3 || XPG4] (clockid_t): Likewise.
22410         [XPG3 || XPG4] (timer_t): Likewise.
22411         [XPG3 || XPG4] (clock_getres): Likewise.
22412         [XPG3 || XPG4] (clock_gettime): Likewise.
22413         [XPG3 || XPG4] (clock_settime): Likewise.
22414         [XPG3 || XPG4] (nanosleep): Likewise.
22415         [XPG3 || XPG4] (timer_create): Likewise.
22416         [XPG3 || XPG4] (timer_delete): Likewise.
22417         [XPG3 || XPG4] (timer_gettime): Likewise.
22418         [XPG3 || XPG4] (timer_getoverrun): Likewise.
22419         [XPG3 || XPG4] (timer_settime): Likewise.
22420         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
22421         [XPG3 || XPG4] (getlogin_r): Likewise.
22422         [XPG3 || XPG4] (pread): Likewise.
22423         [XPG3 || XPG4] (pthread_atfork): Likewise.
22424         [XPG3 || XPG4] (pwrite): Likewise.
22425
22426         [BZ #14835]
22427         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
22428         <bits/siginfo.h>.
22429
22430 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
22431
22432         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
22433         finalizing MALLSTREAM.
22434
22435         * sysdeps/mach/hurd/syncfs.c: New file.
22436
22437 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
22438
22439         [BZ #14719]
22440         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
22441         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
22442         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
22443         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
22444         (_nss_dns_gethostbyname4_r): Likewise.
22445         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
22446         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
22447
22448 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
22449
22450         [BZ #13763]
22451         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
22452
22453 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
22454
22455         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
22456         * elf/cache.c (print_entry): Print ",AArch64" for
22457         FLAG_AARCH64_LIB64
22458
22459         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
22460         * elf/cache.c (print_entry): Print ",hard-float" for
22461         FLAG_ARM_LIBHF.
22462
22463 2012-11-18  David S. Miller  <davem@davemloft.net>
22464
22465         With help from Joseph Myers.
22466         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
22467         cutoff to 2**-13.
22468         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
22469         cutoff to 2**-25.
22470         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
22471         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
22472         small.
22473         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
22474         * math/libm-test.inc (y0_test): New tests.
22475         (y1_test): New tests.
22476         * sysdeps/i386/fpu/libm-test-ulps: Update.
22477         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22478         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22479
22480 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
22481
22482         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
22483         64-bit targets.
22484         * configure: Regenerated.
22485
22486 2012-11-17  David S. Miller  <davem@davemloft.net>
22487
22488         [BZ #14811]
22489         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
22490         nonzero exponents with absolute value below 0x1p-128 to +/-
22491         0x1p-128.
22492
22493 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
22494
22495         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
22496
22497         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
22498
22499         * posix/getconf-speclist.c: New file.
22500         * posix/posix-envs.def: Likewise.
22501         * posix/confstr.c (START_ENV_GROUP): New macro.
22502         (END_ENV_GROUP): Likewise.
22503         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
22504         (KNOWN_PRESENT_ENV_STRING): Likewise.
22505         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
22506         (UNKNOWN_ENVIRONMENT): Likewise.
22507         (confstr): Include posix-envs.def instead of handling
22508         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
22509         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
22510         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
22511         (END_ENV_GROUP): Likewise.
22512         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
22513         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
22514         (UNKNOWN_ENVIRONMENT): Likewise.
22515         (__sysconf): Include posix-envs.def instead of handling associated
22516         cases directly here.
22517         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
22518         preprocessing getconf-speclist.c rather than running getconf or
22519         generating empty file.
22520
22521 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
22522
22523         * scripts/check-local-headers.sh: Ignore 'mach' headers.
22524
22525 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
22526
22527         [BZ #14672]
22528         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
22529
22530 2012-11-16  David S. Miller  <davem@davemloft.net>
22531
22532         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
22533         smaller than LDBL_EPSILON/2.0L, just return xm1.
22534
22535 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
22536
22537         * elf/tst-array1.c (init): Set constructor priority to 1000.
22538         (fini): Set destructor priority to 1000.
22539         * elf/tst-array2dep.c: Likewise.
22540
22541 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22542
22543         [BZ #11741]
22544         * libio/fileops.c (_IO_new_file_write): Correctly return error.
22545         (_IO_new_file_xsputn): Also return EOF if none of the input
22546         data was written when overflow failed.
22547         * libio/iopadn.c (_IO_padn): Likewise.
22548         * libio/iowpadn.c (_IO_wpadn): Likewise.
22549         * stdio-common/tst-put-error.c: Add copyright notice.
22550         (do_test): Add case for printing padded string.
22551         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
22552         _IO_padn returned error.
22553         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
22554         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
22555         return EOF.
22556
22557 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22558
22559         * libio/libioP.h: Add comment note that the references to C++
22560         bits are now obsolete.
22561
22562 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
22563
22564         * math/libm-test.inc (check_complex): Use asprintf.
22565
22566 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
22567
22568         * debug/pcprofiledump.c (print_version): Update copyright year.
22569         * malloc/memusagestat.c (print_version): Likewise.
22570
22571 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
22572
22573         [BZ #14831]
22574         * elf/Makefile (tests): Add tst-audit8.
22575         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
22576         ($(objpfx)tst-audit8.out): New target.
22577         (tst-audit8-ENV): New variable.
22578         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
22579         audit if l_reloc_result is NULL.
22580         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
22581         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
22582         * elf/tst-audit8.c: New file.
22583
22584 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
22585
22586         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
22587         * misc/Makefile (CFLAGS-select.c): Define.
22588         * posix/Makefile (CFLAGS-pause.c): Define.
22589
22590 2012-11-13  David S. Miller  <davem@davemloft.net>
22591
22592         * crypt/Makefile: Move test targets after toplevel Rules
22593         inclusion.  Grab any necessary sysdep routines when linking.
22594         * crypt/md5.c (md5_process_block): Remove define, we will always
22595         name it __md5_process_block.
22596         (md5_finish_ctx): Update md5_process_block call.
22597         (md5_stream): Likewise.
22598         (md5_process_bytes): Likewise.
22599         (md5_process_block): Rename to __md5_process_block and move to ...
22600         * crypt/md5-block.c: ... here.
22601         * crypt/sha256.c (sha256_process_block): Move to ...
22602         * crypt/sha256-block.c: ... here.
22603         * crypt/sha512.c (sha512_process_block): Move to ...
22604         * crypt/sha512-block.c: ... here.
22605         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
22606         path.
22607         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
22608         * sysdeps/sparc/sparc64/multiarch/Makefile
22609         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
22610         crypt subdir.
22611         (localedef-aux): Add md5 crypto assembler when in locale subdir.
22612         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
22613         multiarch changes.
22614         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
22615         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
22616         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
22617         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
22618         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
22619         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
22620         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
22621         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
22622         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
22623         file.
22624         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
22625         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
22626         file.
22627         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
22628
22629 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
22630
22631         * timezone/tzselect.ksh: Update from tzcode git revision
22632         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
22633         * timezone/zdump.c: Likewise.
22634         * timezone/zic.c: Likewise.
22635         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
22636         in TZVERSION setting, not $(PKGVERSION).
22637         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
22638         REPORT_BUGS_TO settings.
22639
22640         [BZ #14838]
22641         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
22642         macro.
22643
22644 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
22645
22646         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
22647         detection to immediately after _FP_ROUND().
22648         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
22649         bits are 0.
22650
22651 2012-11-11  David S. Miller  <davem@davemloft.net>
22652
22653         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
22654         inttypes.h
22655         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
22656         __close rather than their public counterparts.
22657
22658 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
22659
22660         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
22661         file.
22662         [UNIX98] (sem_timedwait): Do not expect.
22663         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
22664         [XPG4 || UNIX98] (sockatmark): Do not expect.
22665         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
22666         (clock_getcpuclockid): Do not expect.
22667         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
22668         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
22669         Do not expect.
22670         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
22671         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
22672         [UNIX98] (vwscanf): Likewise.
22673         [UNIX98] (vswscanf): Likewise.
22674
22675 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
22676
22677         * timezone/version.h: Remove file.
22678         * timezone/README: Do not refer to version.h.
22679         * timezone/Makefile ($(objpfx)zic.o): New dependency on
22680         $(objpfx)version.h.
22681         ($(objpfx)zdump.o): Likewise.
22682         ($(objpfx)version.h): New target.
22683
22684         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
22685         2012i.
22686         * timezone/README: Don't mention modification to tzselect.ksh.
22687         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
22688         work on unmodified tzselect.ksh.  Substitute version numbers in
22689         tzselect.ksh.
22690
22691         * Makefile (format-me): Remove.
22692         (INSTALL): Adjust indentation.  Use commands directly instead of
22693         using $(format-me).
22694
22695         * aclocal.m4 (ACX_PKGVERSION): New macro.
22696         (ACX_BUGURL): Likewise.
22697         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
22698         (PKGVERSION): New AC_DEFINE_UNQUOTED.
22699         (REPORT_BUGS_TO): Likewise.
22700         * configure: Regenerated.
22701         * config.h.in (PKGVERSION): New macro.
22702         (REPORT_BUGS_TO): Likewise.
22703         * config.make.in (PKGVERSION): New variable.
22704         (PKGVERSION_TEXI): Likewise.
22705         (REPORT_BUGS_TO): Likewise.
22706         (REPORT_BUGS_TEXI): Likewise.
22707         * Makefile (format-me): Use -I$(common-objpfx)manual.
22708         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
22709         ($(common-objpfx)manual/%): New target.
22710         (manual/%): Remove target.
22711         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
22712         (print_version): Use PKGVERSION.
22713         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
22714         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
22715         and REPORT_BUGS_TO.
22716         ($(objpfx)xtrace): Likewise.
22717         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
22718         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
22719         (print_version): Use PKGVERSION.
22720         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
22721         (do_version): Use PKGVERSION.
22722         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
22723         REPORT_BUGS_TO.
22724         (common-ldd-rewrite): Likewise.
22725         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
22726         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
22727         (print_version): Use PKGVERSION.
22728         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
22729         * elf/pldd.c (argp_program_bug_address): Remove variable.
22730         (more_help): New function.
22731         (argp): Use more_help.
22732         (print_version): Use PKGVERSION.
22733         * elf/sln.c (main): Use PKGVERSION.
22734         (usage): Use REPORT_BUGS_TO.
22735         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
22736         (top level): Use PKGVERSION.
22737         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
22738         (print_version): Use PKGVERSION.
22739         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
22740         (print_version): Use PKGVERSION.
22741         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
22742         (print_version): Use PKGVERSION.
22743         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
22744         (print_version): Use PKGVERSION.
22745         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
22746         (print_version): Use PKGVERSION.
22747         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
22748         (print_version): Use PKGVERSION.
22749         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
22750         and BUGURL.
22751         ($(objpfx)memusage): Likewise.
22752         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
22753         (do_version): Use PKGVERSION.
22754         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
22755         (print_version): Use PKGVERSION.
22756         * malloc/mtrace.pl ($PACKAGE): Remove variable.
22757         ($PKGVERSION): New variable.
22758         ($REPORT_BUGS_TO): Likewise.
22759         (usage): Use $REPORT_BUGS_TO.
22760         (top level): Use $PKGVERSION.
22761         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
22762         ($(objpfx)pkgvers.texi): New rule.
22763         ($(objpfx)stamp-pkgvers): Likewise.
22764         * manual/install.texi: Include pkgvers.texi.
22765         (--with-pkgversion): Document new configure option.
22766         (--with-bugurl): Likewise.
22767         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
22768         than necessarily for this particular distribution.  Use
22769         REPORT_BUGS_TO for where to report bugs.
22770         * INSTALL: Regenerated.
22771         * manual/libc.texinfo: Include pkgvers.texi.
22772         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
22773         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
22774         (print_version): Use PKGVERSION.
22775         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
22776         (print_version): Use PKGVERSION.
22777         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
22778         (print_version): Use PKGVERSION.
22779         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
22780         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
22781         macro.
22782         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
22783         (print_version): Use PKGVERSION.
22784         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
22785         (print_version): Use PKGVERSION.
22786         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
22787         and PKGVERSION.
22788
22789         * timezone/checktab.awk: Update from tzcode 2012i.
22790         * timezone/ialloc.c: Likewise.
22791         * timezone/private.h: Likewise.
22792         * timezone/scheck.c: Likewise.
22793         * timezone/tzfile.h: Likewise.
22794         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
22795         (TZVERSION): Hardcode tzcode version number.
22796         * timezone/zdump.c: Update from tzcode 2012i.
22797         * timezone/zic.c: Likewise.
22798         * timezone/version.h: New file.
22799         * timezone/README: Describe version.h.  Update upstream location.
22800
22801         [BZ #14824]
22802         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
22803         (mktemp): Enable declaration.
22804         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
22805         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
22806         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
22807         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
22808         Likewise.
22809         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
22810         Likewise.
22811         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
22812         Likewise.
22813         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
22814         Likewise.
22815         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
22816         Likewise.
22817         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
22818         Likewise.
22819
22820         [BZ #14821]
22821         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
22822         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
22823         for copies of such integer values.
22824         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22825         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22826
22827 2012-11-09  Andreas Jaeger  <aj@suse.de>
22828
22829         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
22830         definitions and declarations that are provided by
22831         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
22832
22833 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22834
22835         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
22836         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
22837         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
22838         definition.
22839
22840 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
22841
22842         * elf/elf.h: Update comment before AArch64 relocations.
22843
22844 2012-11-07  David S. Miller  <davem@davemloft.net>
22845
22846         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
22847         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
22848         (__start_context): Declare.
22849         (__makecontext_ret): Delete.
22850         (__makecontext): Hook up __start_context instead of
22851         __makecontext_ret.
22852         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
22853         (sysdep_routines): Add __start_context when in stdlib.
22854
22855 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
22856
22857         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
22858         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
22859         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
22860         hardcoded "nm".
22861         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
22862         (READELF): New variable.  Use it instead of hardcoded "readelf".
22863
22864 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
22865
22866         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
22867         * sysdeps/x86/Makefile: Here.
22868         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
22869         * sysdeps/x86/tst-xmmymm.sh: This.
22870
22871 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
22872
22873         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
22874         expectations.
22875         [UNIX98] (pthread_barrier_t): Do not expect.
22876         [UNIX98] (pthread_barrierattr_t): Likewise.
22877         [UNIX98] (pthread_spinlock_t): Likewise.
22878         [UNIX98] (pthread_barrier_destroy): Likewise.
22879         [UNIX98] (pthread_barrier_init): Likewise.
22880         [UNIX98] (pthread_barrier_wait): Likewise.
22881         [UNIX98] (pthread_barrierattr_destroy): Likewise.
22882         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
22883         [UNIX98] (pthread_barrierattr_init): Likewise.
22884         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
22885         [UNIX98] (pthread_getcpuclockid): Likewise.
22886         [UNIX98] (pthread_mutex_timedlock): Likewise.
22887         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
22888         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
22889         [UNIX98] (pthread_sigmask): Likewise.
22890         [UNIX98] (pthread_spin_destroy): Likewise.
22891         [UNIX98] (pthread_spin_init): Likewise.
22892         [UNIX98] (pthread_spin_lock): Likewise.
22893         [UNIX98] (pthread_spin_trylock): Likewise.
22894         [UNIX98] (pthread_spin_unlock): Likewise.
22895         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
22896         Do not expect.
22897         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
22898         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
22899         [XPG3 || XPG4] (pthread_cond_t): Likewise.
22900         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
22901         [XPG3 || XPG4] (pthread_key_t): Likewise.
22902         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
22903         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
22904         [XPG3 || XPG4] (pthread_once_t): Likewise.
22905         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
22906         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
22907         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
22908         [XPG3 || XPG4] (pthread_t): Likewise.
22909
22910         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
22911         not expect.
22912         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
22913
22914         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
22915         Change function return type to int.
22916
22917         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
22918         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
22919         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
22920         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
22921         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
22922         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
22923         [!POSIX] (posix_madvise): Likewise.
22924         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
22925         && !UNIX98].
22926         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
22927         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
22928         (mode_t): Likewise.
22929         (posix_mem_offset): Likewise.
22930         (posix_typed_mem_get_info): Likewise.
22931         (posix_typed_mem_open): Likewise.
22932
22933         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
22934         Change condition to [XOPEN2K8].
22935
22936         * conform/conformtest.pl: Preprocess allow-header data with -x c
22937         instead of from stdin.
22938         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
22939         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
22940         [C99-based standards] (cerfc): Likewise.
22941         [C99-based standards] (cexp2): Likewise.
22942         [C99-based standards] (cexpm1): Likewise.
22943         [C99-based standards] (clog10): Likewise.
22944         [C99-based standards] (clog1p): Likewise.
22945         [C99-based standards] (clog2): Likewise.
22946         [C99-based standards] (clgamma): Likewise.
22947         [C99-based standards] (ctgamma): Likewise.
22948         [C99-based standards] (cerff): Likewise.
22949         [C99-based standards] (cerfcf): Likewise.
22950         [C99-based standards] (cexp2f): Likewise.
22951         [C99-based standards] (cexpm1f): Likewise.
22952         [C99-based standards] (clog10f): Likewise.
22953         [C99-based standards] (clog1pf): Likewise.
22954         [C99-based standards] (clog2f): Likewise.
22955         [C99-based standards] (clgammaf): Likewise.
22956         [C99-based standards] (ctgammaf): Likewise.
22957         [C99-based standards] (cerfl): Likewise.
22958         [C99-based standards] (cerfcl): Likewise.
22959         [C99-based standards] (cexp2l): Likewise.
22960         [C99-based standards] (cexpm1l): Likewise.
22961         [C99-based standards] (clog10l): Likewise.
22962         [C99-based standards] (clog1pl): Likewise.
22963         [C99-based standards] (clog2l): Likewise.
22964         [C99-based standards] (clgammal): Likewise.
22965         [C99-based standards] (ctgammal): Likewise.
22966         * conform/data/inttypes.h-data [C99-based standards]: Include
22967         stdint.h-data.  Remove all expectations for stdint.h contents.
22968         [C99-based standards] (PRI*): Do not allow.
22969         [C99-based standards] (SCN*): Likewise.
22970         [C99-based standards] (*_t): Likewise.
22971         [C99-based-standards] (PRId8): Expect macro.
22972         [C99-based-standards] (PRIi8): Likewise.
22973         [C99-based-standards] (PRIo8): Likewise.
22974         [C99-based-standards] (PRIu8): Likewise.
22975         [C99-based-standards] (PRIx8): Likewise.
22976         [C99-based-standards] (PRIX8): Likewise.
22977         [C99-based-standards] (SCNd8): Likewise.
22978         [C99-based-standards] (SCNi8): Likewise.
22979         [C99-based-standards] (SCNo8): Likewise.
22980         [C99-based-standards] (SCNu8): Likewise.
22981         [C99-based-standards] (SCNx8): Likewise.
22982         [C99-based-standards] (PRIdLEAST8): Likewise.
22983         [C99-based-standards] (PRIiLEAST8): Likewise.
22984         [C99-based-standards] (PRIoLEAST8): Likewise.
22985         [C99-based-standards] (PRIuLEAST8): Likewise.
22986         [C99-based-standards] (PRIxLEAST8): Likewise.
22987         [C99-based-standards] (PRIXLEAST8): Likewise.
22988         [C99-based-standards] (SCNdLEAST8): Likewise.
22989         [C99-based-standards] (SCNiLEAST8): Likewise.
22990         [C99-based-standards] (SCNoLEAST8): Likewise.
22991         [C99-based-standards] (SCNuLEAST8): Likewise.
22992         [C99-based-standards] (SCNxLEAST8): Likewise.
22993         [C99-based-standards] (PRIdFAST8): Likewise.
22994         [C99-based-standards] (PRIiFAST8): Likewise.
22995         [C99-based-standards] (PRIoFAST8): Likewise.
22996         [C99-based-standards] (PRIuFAST8): Likewise.
22997         [C99-based-standards] (PRIxFAST8): Likewise.
22998         [C99-based-standards] (PRIXFAST8): Likewise.
22999         [C99-based-standards] (SCNdFAST8): Likewise.
23000         [C99-based-standards] (SCNiFAST8): Likewise.
23001         [C99-based-standards] (SCNoFAST8): Likewise.
23002         [C99-based-standards] (SCNuFAST8): Likewise.
23003         [C99-based-standards] (SCNxFAST8): Likewise.
23004         [C99-based-standards] (PRId16): Likewise.
23005         [C99-based-standards] (PRIi16): Likewise.
23006         [C99-based-standards] (PRIo16): Likewise.
23007         [C99-based-standards] (PRIu16): Likewise.
23008         [C99-based-standards] (PRIx16): Likewise.
23009         [C99-based-standards] (PRIX16): Likewise.
23010         [C99-based-standards] (SCNd16): Likewise.
23011         [C99-based-standards] (SCNi16): Likewise.
23012         [C99-based-standards] (SCNo16): Likewise.
23013         [C99-based-standards] (SCNu16): Likewise.
23014         [C99-based-standards] (SCNx16): Likewise.
23015         [C99-based-standards] (PRIdLEAST16): Likewise.
23016         [C99-based-standards] (PRIiLEAST16): Likewise.
23017         [C99-based-standards] (PRIoLEAST16): Likewise.
23018         [C99-based-standards] (PRIuLEAST16): Likewise.
23019         [C99-based-standards] (PRIxLEAST16): Likewise.
23020         [C99-based-standards] (PRIXLEAST16): Likewise.
23021         [C99-based-standards] (SCNdLEAST16): Likewise.
23022         [C99-based-standards] (SCNiLEAST16): Likewise.
23023         [C99-based-standards] (SCNoLEAST16): Likewise.
23024         [C99-based-standards] (SCNuLEAST16): Likewise.
23025         [C99-based-standards] (SCNxLEAST16): Likewise.
23026         [C99-based-standards] (PRIdFAST16): Likewise.
23027         [C99-based-standards] (PRIiFAST16): Likewise.
23028         [C99-based-standards] (PRIoFAST16): Likewise.
23029         [C99-based-standards] (PRIuFAST16): Likewise.
23030         [C99-based-standards] (PRIxFAST16): Likewise.
23031         [C99-based-standards] (PRIXFAST16): Likewise.
23032         [C99-based-standards] (SCNdFAST16): Likewise.
23033         [C99-based-standards] (SCNiFAST16): Likewise.
23034         [C99-based-standards] (SCNoFAST16): Likewise.
23035         [C99-based-standards] (SCNuFAST16): Likewise.
23036         [C99-based-standards] (SCNxFAST16): Likewise.
23037         [C99-based-standards] (PRId32): Likewise.
23038         [C99-based-standards] (PRIi32): Likewise.
23039         [C99-based-standards] (PRIo32): Likewise.
23040         [C99-based-standards] (PRIu32): Likewise.
23041         [C99-based-standards] (PRIx32): Likewise.
23042         [C99-based-standards] (PRIX32): Likewise.
23043         [C99-based-standards] (SCNd32): Likewise.
23044         [C99-based-standards] (SCNi32): Likewise.
23045         [C99-based-standards] (SCNo32): Likewise.
23046         [C99-based-standards] (SCNu32): Likewise.
23047         [C99-based-standards] (SCNx32): Likewise.
23048         [C99-based-standards] (PRIdLEAST32): Likewise.
23049         [C99-based-standards] (PRIiLEAST32): Likewise.
23050         [C99-based-standards] (PRIoLEAST32): Likewise.
23051         [C99-based-standards] (PRIuLEAST32): Likewise.
23052         [C99-based-standards] (PRIxLEAST32): Likewise.
23053         [C99-based-standards] (PRIXLEAST32): Likewise.
23054         [C99-based-standards] (SCNdLEAST32): Likewise.
23055         [C99-based-standards] (SCNiLEAST32): Likewise.
23056         [C99-based-standards] (SCNoLEAST32): Likewise.
23057         [C99-based-standards] (SCNuLEAST32): Likewise.
23058         [C99-based-standards] (SCNxLEAST32): Likewise.
23059         [C99-based-standards] (PRIdFAST32): Likewise.
23060         [C99-based-standards] (PRIiFAST32): Likewise.
23061         [C99-based-standards] (PRIoFAST32): Likewise.
23062         [C99-based-standards] (PRIuFAST32): Likewise.
23063         [C99-based-standards] (PRIxFAST32): Likewise.
23064         [C99-based-standards] (PRIXFAST32): Likewise.
23065         [C99-based-standards] (SCNdFAST32): Likewise.
23066         [C99-based-standards] (SCNiFAST32): Likewise.
23067         [C99-based-standards] (SCNoFAST32): Likewise.
23068         [C99-based-standards] (SCNuFAST32): Likewise.
23069         [C99-based-standards] (SCNxFAST32): Likewise.
23070         [C99-based-standards] (PRId64): Likewise.
23071         [C99-based-standards] (PRIi64): Likewise.
23072         [C99-based-standards] (PRIo64): Likewise.
23073         [C99-based-standards] (PRIu64): Likewise.
23074         [C99-based-standards] (PRIx64): Likewise.
23075         [C99-based-standards] (PRIX64): Likewise.
23076         [C99-based-standards] (SCNd64): Likewise.
23077         [C99-based-standards] (SCNi64): Likewise.
23078         [C99-based-standards] (SCNo64): Likewise.
23079         [C99-based-standards] (SCNu64): Likewise.
23080         [C99-based-standards] (SCNx64): Likewise.
23081         [C99-based-standards] (PRIdLEAST64): Likewise.
23082         [C99-based-standards] (PRIiLEAST64): Likewise.
23083         [C99-based-standards] (PRIoLEAST64): Likewise.
23084         [C99-based-standards] (PRIuLEAST64): Likewise.
23085         [C99-based-standards] (PRIxLEAST64): Likewise.
23086         [C99-based-standards] (PRIXLEAST64): Likewise.
23087         [C99-based-standards] (SCNdLEAST64): Likewise.
23088         [C99-based-standards] (SCNiLEAST64): Likewise.
23089         [C99-based-standards] (SCNoLEAST64): Likewise.
23090         [C99-based-standards] (SCNuLEAST64): Likewise.
23091         [C99-based-standards] (SCNxLEAST64): Likewise.
23092         [C99-based-standards] (PRIdFAST64): Likewise.
23093         [C99-based-standards] (PRIiFAST64): Likewise.
23094         [C99-based-standards] (PRIoFAST64): Likewise.
23095         [C99-based-standards] (PRIuFAST64): Likewise.
23096         [C99-based-standards] (PRIxFAST64): Likewise.
23097         [C99-based-standards] (PRIXFAST64): Likewise.
23098         [C99-based-standards] (SCNdFAST64): Likewise.
23099         [C99-based-standards] (SCNiFAST64): Likewise.
23100         [C99-based-standards] (SCNoFAST64): Likewise.
23101         [C99-based-standards] (SCNuFAST64): Likewise.
23102         [C99-based-standards] (SCNxFAST64): Likewise.
23103         [C99-based-standards] (PRIdMAX): Likewise.
23104         [C99-based-standards] (PRIiMAX): Likewise.
23105         [C99-based-standards] (PRIoMAX): Likewise.
23106         [C99-based-standards] (PRIuMAX): Likewise.
23107         [C99-based-standards] (PRIxMAX): Likewise.
23108         [C99-based-standards] (PRIXMAX): Likewise.
23109         [C99-based-standards] (SCNdMAX): Likewise.
23110         [C99-based-standards] (SCNiMAX): Likewise.
23111         [C99-based-standards] (SCNoMAX): Likewise.
23112         [C99-based-standards] (SCNuMAX): Likewise.
23113         [C99-based-standards] (SCNxMAX): Likewise.
23114         [C99-based-standards] (PRIdPTR): Likewise.
23115         [C99-based-standards] (PRIiPTR): Likewise.
23116         [C99-based-standards] (PRIoPTR): Likewise.
23117         [C99-based-standards] (PRIuPTR): Likewise.
23118         [C99-based-standards] (PRIxPTR): Likewise.
23119         [C99-based-standards] (PRIXPTR): Likewise.
23120         [C99-based-standards] (SCNdPTR): Likewise.
23121         [C99-based-standards] (SCNiPTR): Likewise.
23122         [C99-based-standards] (SCNoPTR): Likewise.
23123         [C99-based-standards] (SCNuPTR): Likewise.
23124         [C99-based-standards] (SCNxPTR): Likewise.
23125         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
23126         allow.
23127         * conform/data/stdint.h-data: Update comments to clarify
23128         requirements.
23129         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
23130         type.
23131         [C99-based standards] (INT8_MAX): Likewise.
23132         [C99-based standards] (INT16_MIN): Likewise.
23133         [C99-based standards] (INT16_MAX): Likewise.
23134         [C99-based standards] (INT32_MIN): Likewise.
23135         [C99-based standards] (INT32_MAX): Likewise.
23136         [C99-based standards] (INT64_MIN): Likewise.
23137         [C99-based standards] (INT64_MAX): Likewise.
23138         [C99-based standards] (UINT8_MAX): Likewise.
23139         [C99-based standards] (UINT16_MAX): Likewise.
23140         [C99-based standards] (UINT32_MAX): Likewise.
23141         [C99-based standards] (UINT64_MAX): Likewise.
23142         [C99-based standards] (INT_LEAST8_MIN): Likewise.
23143         [C99-based standards] (INT_LEAST8_MAX): Likewise.
23144         [C99-based standards] (INT_LEAST16_MIN): Likewise.
23145         [C99-based standards] (INT_LEAST16_MAX): Likewise.
23146         [C99-based standards] (INT_LEAST32_MIN): Likewise.
23147         [C99-based standards] (INT_LEAST32_MAX): Likewise.
23148         [C99-based standards] (INT_LEAST64_MIN): Likewise.
23149         [C99-based standards] (INT_LEAST64_MAX): Likewise.
23150         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
23151         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
23152         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
23153         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
23154         [C99-based standards] (INT_FAST8_MIN): Likewise.
23155         [C99-based standards] (INT_FAST8_MAX): Likewise.
23156         [C99-based standards] (INT_FAST16_MIN): Likewise.
23157         [C99-based standards] (INT_FAST16_MAX): Likewise.
23158         [C99-based standards] (INT_FAST32_MIN): Likewise.
23159         [C99-based standards] (INT_FAST32_MAX): Likewise.
23160         [C99-based standards] (INT_FAST64_MIN): Likewise.
23161         [C99-based standards] (INT_FAST64_MAX): Likewise.
23162         [C99-based standards] (UINT_FAST8_MAX): Likewise.
23163         [C99-based standards] (UINT_FAST16_MAX): Likewise.
23164         [C99-based standards] (UINT_FAST32_MAX): Likewise.
23165         [C99-based standards] (UINT_FAST64_MAX): Likewise.
23166         [C99-based standards] (INTPTR_MIN): Likewise.
23167         [C99-based standards] (INTPTR_MAX): Likewise.
23168         [C99-based standards] (UINTPTR_MAX): Likewise.
23169         [C99-based standards] (INTMAX_MIN): Likewise.
23170         [C99-based standards] (INTMAX_MAX): Likewise.
23171         [C99-based standards] (UINTMAX_MAX): Likewise.
23172         [C99-based standards] (PTRDIFF_MIN): Likewise.
23173         [C99-based standards] (PTRDIFF_MAX): Likewise.
23174         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
23175         [C99-based standards] (SIZE_MAX): Likewise.
23176         [C99-based standards] (WCHAR_MAX): Likewise.
23177         [C99-based standards] (WINT_MAX): Likewise.
23178         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
23179         constraint on value.
23180         [C99-based standards] (WCHAR_MIN): Likewise.
23181         [C99-based standards] (WINT_MIN): Likewise.
23182         [C99-based standards] (*_t): Allow.
23183         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
23184         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
23185         Include math.h-data and complex.h-data.  Remove all expectations
23186         of math.h and complex.h contents.
23187         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
23188         at end of line.
23189         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
23190         (struct tm): Expect tag.
23191         [C99-based-standards] (wcstof): Expect function.
23192         [C99-based-standards] (wcstold): Likewise.
23193         [C99-based-standards] (wcstoll): Likewise.
23194         [C99-based-standards] (wcstoull): Likewise.
23195         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
23196         macro-int-constant.  Specify type.
23197         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
23198         constraint on value.
23199         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
23200         Specify type.
23201         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
23202         Specify value.
23203         [ISO C standards]: Do not allow headers.
23204         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
23205         wcs[abcdefghijklmnopqrstuvwxyz]*.
23206         [ISO C standards] (*_t): Do not allow.
23207         * conform/data/wctype.h-data [C99-based standards] (iswblank):
23208         Expect function.
23209         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
23210         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
23211         Specify type.
23212         [ISO C standards]: Do not allow headers.
23213         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
23214         is[abcdefghijklmnopqrstuvwxyz]*.
23215         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
23216         to[abcdefghijklmnopqrstuvwxyz]*.
23217         [ISO C standards] (*_t): Do not allow.
23218         * conform/data/stdalign.h-data: New file.
23219         * conform/data/stdbool.h-data: Likewise.
23220         * conform/data/stdnoreturn.h-data: Likewise.
23221
23222 2012-11-07  Roland McGrath  <roland@hack.frob.com>
23223
23224         [BZ #14815]
23225         * manual/filesys.texi (Directory Entries): Typo fix.
23226         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
23227
23228 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23229
23230         * elf/elf.h (EM_AARCH64): New macro.
23231         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
23232         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
23233         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
23234         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
23235         (R_AARCH64_TLSDESC): Likewise.
23236         (NT_ARM_TLS): Likewise.
23237         (NT_ARM_HW_BREAK): Likewise.
23238         (NT_ARM_HW_WATCH): Likewise.
23239
23240 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
23241
23242         [BZ #14811]
23243         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
23244         (__ieee754_powl): Saturate nonzero exponents with absolute value
23245         below 0x1p-79 to +/- 0x1p-79.
23246         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
23247         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
23248         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
23249         nonzero exponents with absolute value below 0x1p-32 to +/-
23250         0x1p-32.
23251         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
23252         (__ieee754_powl): Saturate nonzero exponents with absolute value
23253         below 0x1p-79 to +/- 0x1p-79.
23254         * math/libm-test.inc (pow_test): Add more tests.
23255
23256 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23257
23258         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
23259         _dl_s390_cap_flags with kernel. Increase string length.
23260         (_dl_s390_platforms): Add z196 and zEC12.
23261
23262 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
23263
23264         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
23265         Change XOPEN21K to XOPEN2K.
23266
23267 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
23268
23269         * string/memmove.c: Use memcpy when possible.
23270
23271 2012-11-06  Andreas Jaeger  <aj@suse.de>
23272
23273         * po/eo.po: Update from translation team.
23274
23275 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
23276
23277         [BZ #14793]
23278         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
23279         exponent and small x and y exponents, scale x or y up.  Increase
23280         by 2 the exponent used in scaling up.
23281         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
23282         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
23283         * math/libm-test.inc (fma_test): Add more tests.
23284         (fma_test_towardzero): Likewise.
23285         (fma_test_downward): Likewise.
23286         (fma_test_upward): Likewise.
23287
23288 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
23289
23290         [BZ #14805]
23291         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
23292         fenv_t *.
23293
23294         [BZ #14801]
23295         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
23296         namespace for names of struct fields.
23297         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
23298         fenv_t fields.
23299         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
23300         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
23301
23302 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23303
23304         [BZ #3665]
23305         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
23306
23307 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
23308
23309         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
23310         PTR_DEMANGLE.
23311
23312         [BZ #5246]
23313         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
23314         PTR_DEMANGLE.
23315
23316 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
23317
23318         [BZ #14797]
23319         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
23320         definitely overflow as x * y not x * y + z.
23321         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
23322         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
23323         * math/libm-test.inc (fma_test): Add more tests.
23324         (fma_test_towardzero): Likewise.
23325         (fma_test_downward): Likewise.
23326         (fma_test_upward): Likewise.
23327
23328 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
23329
23330         [BZ #157]
23331
23332         * include/stub-tag.h: Remove file.
23333         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
23334         '#include' of it.
23335         * manual/maint.texi (Porting): Don't reference it.
23336         * Makerules ($(objpfx)stubs): Likewise.
23337         * dirent/closedir.c: Don't include <stub-tag.h>.
23338         * dirent/dirfd.c: Likewise.
23339         * dirent/fdopendir.c: Likewise.
23340         * dirent/getdents.c: Likewise.
23341         * dirent/getdents64.c: Likewise.
23342         * dirent/opendir.c: Likewise.
23343         * dirent/readdir.c: Likewise.
23344         * dirent/readdir64.c: Likewise.
23345         * dirent/readdir64_r.c: Likewise.
23346         * dirent/readdir_r.c: Likewise.
23347         * dirent/rewinddir.c: Likewise.
23348         * dirent/seekdir.c: Likewise.
23349         * dirent/telldir.c: Likewise.
23350         * gmon/profil.c: Likewise.
23351         * grp/setgroups.c: Likewise.
23352         * inet/if_index.c: Likewise.
23353         * io/access.c: Likewise.
23354         * io/chdir.c: Likewise.
23355         * io/chmod.c: Likewise.
23356         * io/chown.c: Likewise.
23357         * io/close.c: Likewise.
23358         * io/dup.c: Likewise.
23359         * io/dup2.c: Likewise.
23360         * io/dup3.c: Likewise.
23361         * io/euidaccess.c: Likewise.
23362         * io/faccessat.c: Likewise.
23363         * io/fchdir.c: Likewise.
23364         * io/fchmod.c: Likewise.
23365         * io/fchmodat.c: Likewise.
23366         * io/fchown.c: Likewise.
23367         * io/fchownat.c: Likewise.
23368         * io/fcntl.c: Likewise.
23369         * io/flock.c: Likewise.
23370         * io/fstatfs.c: Likewise.
23371         * io/fstatfs64.c: Likewise.
23372         * io/fstatvfs.c: Likewise.
23373         * io/fstatvfs64.c: Likewise.
23374         * io/futimens.c: Likewise.
23375         * io/fxstat.c: Likewise.
23376         * io/fxstat64.c: Likewise.
23377         * io/fxstatat.c: Likewise.
23378         * io/fxstatat64.c: Likewise.
23379         * io/getcwd.c: Likewise.
23380         * io/isatty.c: Likewise.
23381         * io/lchmod.c: Likewise.
23382         * io/lchown.c: Likewise.
23383         * io/link.c: Likewise.
23384         * io/linkat.c: Likewise.
23385         * io/lseek.c: Likewise.
23386         * io/lseek64.c: Likewise.
23387         * io/lxstat64.c: Likewise.
23388         * io/mkdir.c: Likewise.
23389         * io/mkdirat.c: Likewise.
23390         * io/mkfifo.c: Likewise.
23391         * io/mkfifoat.c: Likewise.
23392         * io/open.c: Likewise.
23393         * io/open64.c: Likewise.
23394         * io/openat.c: Likewise.
23395         * io/openat64.c: Likewise.
23396         * io/pipe.c: Likewise.
23397         * io/pipe2.c: Likewise.
23398         * io/poll.c: Likewise.
23399         * io/posix_fadvise.c: Likewise.
23400         * io/posix_fadvise64.c: Likewise.
23401         * io/posix_fallocate.c: Likewise.
23402         * io/posix_fallocate64.c: Likewise.
23403         * io/read.c: Likewise.
23404         * io/readlink.c: Likewise.
23405         * io/readlinkat.c: Likewise.
23406         * io/rmdir.c: Likewise.
23407         * io/sendfile.c: Likewise.
23408         * io/sendfile64.c: Likewise.
23409         * io/statfs.c: Likewise.
23410         * io/statfs64.c: Likewise.
23411         * io/statvfs.c: Likewise.
23412         * io/statvfs64.c: Likewise.
23413         * io/symlink.c: Likewise.
23414         * io/symlinkat.c: Likewise.
23415         * io/ttyname.c: Likewise.
23416         * io/ttyname_r.c: Likewise.
23417         * io/umask.c: Likewise.
23418         * io/unlink.c: Likewise.
23419         * io/unlinkat.c: Likewise.
23420         * io/utime.c: Likewise.
23421         * io/utimensat.c: Likewise.
23422         * io/write.c: Likewise.
23423         * io/xmknod.c: Likewise.
23424         * io/xmknodat.c: Likewise.
23425         * io/xstat.c: Likewise.
23426         * io/xstat64.c: Likewise.
23427         * login/getpt.c: Likewise.
23428         * login/grantpt.c: Likewise.
23429         * login/unlockpt.c: Likewise.
23430         * math/e_acoshl.c: Likewise.
23431         * math/e_acosl.c: Likewise.
23432         * math/e_asinl.c: Likewise.
23433         * math/e_atan2l.c: Likewise.
23434         * math/e_atanhl.c: Likewise.
23435         * math/e_coshl.c: Likewise.
23436         * math/e_expl.c: Likewise.
23437         * math/e_fmodl.c: Likewise.
23438         * math/e_gammal_r.c: Likewise.
23439         * math/e_hypotl.c: Likewise.
23440         * math/e_j0l.c: Likewise.
23441         * math/e_j1l.c: Likewise.
23442         * math/e_jnl.c: Likewise.
23443         * math/e_lgammal_r.c: Likewise.
23444         * math/e_log10l.c: Likewise.
23445         * math/e_log2l.c: Likewise.
23446         * math/e_logl.c: Likewise.
23447         * math/e_powl.c: Likewise.
23448         * math/e_rem_pio2l.c: Likewise.
23449         * math/e_sinhl.c: Likewise.
23450         * math/e_sqrtl.c: Likewise.
23451         * math/fclrexcpt.c: Likewise.
23452         * math/fedisblxcpt.c: Likewise.
23453         * math/feenablxcpt.c: Likewise.
23454         * math/fegetenv.c: Likewise.
23455         * math/fegetexcept.c: Likewise.
23456         * math/fegetround.c: Likewise.
23457         * math/feholdexcpt.c: Likewise.
23458         * math/fesetenv.c: Likewise.
23459         * math/fesetround.c: Likewise.
23460         * math/feupdateenv.c: Likewise.
23461         * math/fgetexcptflg.c: Likewise.
23462         * math/fraiseexcpt.c: Likewise.
23463         * math/fsetexcptflg.c: Likewise.
23464         * math/ftestexcept.c: Likewise.
23465         * math/k_cosl.c: Likewise.
23466         * math/k_rem_pio2l.c: Likewise.
23467         * math/k_sinl.c: Likewise.
23468         * math/k_tanl.c: Likewise.
23469         * math/s_asinhl.c: Likewise.
23470         * math/s_atanl.c: Likewise.
23471         * math/s_cbrtl.c: Likewise.
23472         * math/s_erfl.c: Likewise.
23473         * math/s_expm1l.c: Likewise.
23474         * math/s_log1pl.c: Likewise.
23475         * math/s_tanhl.c: Likewise.
23476         * misc/acct.c: Likewise.
23477         * misc/brk.c: Likewise.
23478         * misc/chflags.c: Likewise.
23479         * misc/chroot.c: Likewise.
23480         * misc/fchflags.c: Likewise.
23481         * misc/fgetxattr.c: Likewise.
23482         * misc/flistxattr.c: Likewise.
23483         * misc/fremovexattr.c: Likewise.
23484         * misc/fsetxattr.c: Likewise.
23485         * misc/fsync.c: Likewise.
23486         * misc/ftruncate.c: Likewise.
23487         * misc/futimes.c: Likewise.
23488         * misc/futimesat.c: Likewise.
23489         * misc/getdomain.c: Likewise.
23490         * misc/getdtsz.c: Likewise.
23491         * misc/gethostid.c: Likewise.
23492         * misc/gethostname.c: Likewise.
23493         * misc/getloadavg.c: Likewise.
23494         * misc/getpagesize.c: Likewise.
23495         * misc/getsysstats.c: Likewise.
23496         * misc/getxattr.c: Likewise.
23497         * misc/gtty.c: Likewise.
23498         * misc/ioctl.c: Likewise.
23499         * misc/lgetxattr.c: Likewise.
23500         * misc/listxattr.c: Likewise.
23501         * misc/llistxattr.c: Likewise.
23502         * misc/lremovexattr.c: Likewise.
23503         * misc/lsetxattr.c: Likewise.
23504         * misc/lutimes.c: Likewise.
23505         * misc/madvise.c: Likewise.
23506         * misc/mincore.c: Likewise.
23507         * misc/mlock.c: Likewise.
23508         * misc/mlockall.c: Likewise.
23509         * misc/mmap.c: Likewise.
23510         * misc/mprotect.c: Likewise.
23511         * misc/msync.c: Likewise.
23512         * misc/munlock.c: Likewise.
23513         * misc/munlockall.c: Likewise.
23514         * misc/munmap.c: Likewise.
23515         * misc/preadv.c: Likewise.
23516         * misc/preadv64.c: Likewise.
23517         * misc/ptrace.c: Likewise.
23518         * misc/pwritev.c: Likewise.
23519         * misc/pwritev64.c: Likewise.
23520         * misc/readv.c: Likewise.
23521         * misc/reboot.c: Likewise.
23522         * misc/remap_file_pages.c: Likewise.
23523         * misc/removexattr.c: Likewise.
23524         * misc/revoke.c: Likewise.
23525         * misc/select.c: Likewise.
23526         * misc/setdomain.c: Likewise.
23527         * misc/setegid.c: Likewise.
23528         * misc/seteuid.c: Likewise.
23529         * misc/sethostid.c: Likewise.
23530         * misc/sethostname.c: Likewise.
23531         * misc/setregid.c: Likewise.
23532         * misc/setreuid.c: Likewise.
23533         * misc/setxattr.c: Likewise.
23534         * misc/sstk.c: Likewise.
23535         * misc/stty.c: Likewise.
23536         * misc/swapoff.c: Likewise.
23537         * misc/swapon.c: Likewise.
23538         * misc/sync.c: Likewise.
23539         * misc/syncfs.c: Likewise.
23540         * misc/syscall.c: Likewise.
23541         * misc/truncate.c: Likewise.
23542         * misc/ualarm.c: Likewise.
23543         * misc/usleep.c: Likewise.
23544         * misc/ustat.c: Likewise.
23545         * misc/utimes.c: Likewise.
23546         * misc/vhangup.c: Likewise.
23547         * misc/writev.c: Likewise.
23548         * posix/_exit.c: Likewise.
23549         * posix/alarm.c: Likewise.
23550         * posix/execve.c: Likewise.
23551         * posix/fexecve.c: Likewise.
23552         * posix/fork.c: Likewise.
23553         * posix/fpathconf.c: Likewise.
23554         * posix/getaddrinfo.c: Likewise.
23555         * posix/getegid.c: Likewise.
23556         * posix/geteuid.c: Likewise.
23557         * posix/getgid.c: Likewise.
23558         * posix/getgroups.c: Likewise.
23559         * posix/getlogin.c: Likewise.
23560         * posix/getlogin_r.c: Likewise.
23561         * posix/getpgid.c: Likewise.
23562         * posix/getpid.c: Likewise.
23563         * posix/getppid.c: Likewise.
23564         * posix/getresgid.c: Likewise.
23565         * posix/getresuid.c: Likewise.
23566         * posix/getsid.c: Likewise.
23567         * posix/getuid.c: Likewise.
23568         * posix/glob64.c: Likewise.
23569         * posix/nanosleep.c: Likewise.
23570         * posix/pathconf.c: Likewise.
23571         * posix/pause.c: Likewise.
23572         * posix/posix_madvise.c: Likewise.
23573         * posix/pread.c: Likewise.
23574         * posix/pread64.c: Likewise.
23575         * posix/pwrite.c: Likewise.
23576         * posix/pwrite64.c: Likewise.
23577         * posix/sched_getaffinity.c: Likewise.
23578         * posix/sched_getp.c: Likewise.
23579         * posix/sched_gets.c: Likewise.
23580         * posix/sched_primax.c: Likewise.
23581         * posix/sched_primin.c: Likewise.
23582         * posix/sched_rr_gi.c: Likewise.
23583         * posix/sched_setaffinity.c: Likewise.
23584         * posix/sched_setp.c: Likewise.
23585         * posix/sched_sets.c: Likewise.
23586         * posix/sched_yield.c: Likewise.
23587         * posix/setgid.c: Likewise.
23588         * posix/setlogin.c: Likewise.
23589         * posix/setpgid.c: Likewise.
23590         * posix/setresgid.c: Likewise.
23591         * posix/setresuid.c: Likewise.
23592         * posix/setsid.c: Likewise.
23593         * posix/setuid.c: Likewise.
23594         * posix/sleep.c: Likewise.
23595         * posix/spawni.c: Likewise.
23596         * posix/sysconf.c: Likewise.
23597         * posix/times.c: Likewise.
23598         * posix/wait.c: Likewise.
23599         * posix/wait3.c: Likewise.
23600         * posix/wait4.c: Likewise.
23601         * posix/waitpid.c: Likewise.
23602         * resolv/gai_sigqueue.c: Likewise.
23603         * resource/getpriority.c: Likewise.
23604         * resource/getrlimit.c: Likewise.
23605         * resource/getrusage.c: Likewise.
23606         * resource/nice.c: Likewise.
23607         * resource/setpriority.c: Likewise.
23608         * resource/setrlimit.c: Likewise.
23609         * resource/ulimit.c: Likewise.
23610         * rt/aio_cancel.c: Likewise.
23611         * rt/aio_fsync.c: Likewise.
23612         * rt/aio_read.c: Likewise.
23613         * rt/aio_sigqueue.c: Likewise.
23614         * rt/aio_suspend.c: Likewise.
23615         * rt/aio_write.c: Likewise.
23616         * rt/clock_getres.c: Likewise.
23617         * rt/clock_gettime.c: Likewise.
23618         * rt/clock_nanosleep.c: Likewise.
23619         * rt/clock_settime.c: Likewise.
23620         * rt/lio_listio.c: Likewise.
23621         * rt/mq_close.c: Likewise.
23622         * rt/mq_getattr.c: Likewise.
23623         * rt/mq_notify.c: Likewise.
23624         * rt/mq_open.c: Likewise.
23625         * rt/mq_receive.c: Likewise.
23626         * rt/mq_send.c: Likewise.
23627         * rt/mq_setattr.c: Likewise.
23628         * rt/mq_timedreceive.c: Likewise.
23629         * rt/mq_timedsend.c: Likewise.
23630         * rt/mq_unlink.c: Likewise.
23631         * rt/shm_open.c: Likewise.
23632         * rt/shm_unlink.c: Likewise.
23633         * rt/timer_create.c: Likewise.
23634         * rt/timer_delete.c: Likewise.
23635         * rt/timer_getoverr.c: Likewise.
23636         * rt/timer_gettime.c: Likewise.
23637         * rt/timer_settime.c: Likewise.
23638         * setjmp/__longjmp.c: Likewise.
23639         * setjmp/setjmp.c: Likewise.
23640         * signal/kill.c: Likewise.
23641         * signal/killpg.c: Likewise.
23642         * signal/raise.c: Likewise.
23643         * signal/sigaction.c: Likewise.
23644         * signal/sigaltstack.c: Likewise.
23645         * signal/sigblock.c: Likewise.
23646         * signal/sigignore.c: Likewise.
23647         * signal/sigintr.c: Likewise.
23648         * signal/signal.c: Likewise.
23649         * signal/sigpause.c: Likewise.
23650         * signal/sigpending.c: Likewise.
23651         * signal/sigqueue.c: Likewise.
23652         * signal/sigreturn.c: Likewise.
23653         * signal/sigset.c: Likewise.
23654         * signal/sigsetmask.c: Likewise.
23655         * signal/sigstack.c: Likewise.
23656         * signal/sigsuspend.c: Likewise.
23657         * signal/sigtimedwait.c: Likewise.
23658         * signal/sigvec.c: Likewise.
23659         * signal/sigwait.c: Likewise.
23660         * signal/sigwaitinfo.c: Likewise.
23661         * signal/sysv_signal.c: Likewise.
23662         * socket/accept.c: Likewise.
23663         * socket/accept4.c: Likewise.
23664         * socket/bind.c: Likewise.
23665         * socket/connect.c: Likewise.
23666         * socket/getpeername.c: Likewise.
23667         * socket/getsockname.c: Likewise.
23668         * socket/getsockopt.c: Likewise.
23669         * socket/isfdtype.c: Likewise.
23670         * socket/listen.c: Likewise.
23671         * socket/recv.c: Likewise.
23672         * socket/recvfrom.c: Likewise.
23673         * socket/recvmsg.c: Likewise.
23674         * socket/send.c: Likewise.
23675         * socket/sendmsg.c: Likewise.
23676         * socket/sendto.c: Likewise.
23677         * socket/setsockopt.c: Likewise.
23678         * socket/shutdown.c: Likewise.
23679         * socket/sockatmark.c: Likewise.
23680         * socket/socket.c: Likewise.
23681         * socket/socketpair.c: Likewise.
23682         * stdio-common/ctermid.c: Likewise.
23683         * stdio-common/cuserid.c: Likewise.
23684         * stdio-common/remove.c: Likewise.
23685         * stdio-common/rename.c: Likewise.
23686         * stdio-common/renameat.c: Likewise.
23687         * stdio-common/tempname.c: Likewise.
23688         * stdlib/getcontext.c: Likewise.
23689         * stdlib/makecontext.c: Likewise.
23690         * stdlib/setcontext.c: Likewise.
23691         * stdlib/swapcontext.c: Likewise.
23692         * stdlib/system.c: Likewise.
23693         * streams/fattach.c: Likewise.
23694         * streams/fdetach.c: Likewise.
23695         * streams/getmsg.c: Likewise.
23696         * streams/getpmsg.c: Likewise.
23697         * streams/putmsg.c: Likewise.
23698         * streams/putpmsg.c: Likewise.
23699         * sysdeps/unix/bsd/getpt.c: Likewise.
23700         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
23701         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
23702         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
23703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
23704         Likewise.
23705         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
23706         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
23707         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
23708         * sysvipc/msgctl.c: Likewise.
23709         * sysvipc/msgget.c: Likewise.
23710         * sysvipc/msgrcv.c: Likewise.
23711         * sysvipc/msgsnd.c: Likewise.
23712         * sysvipc/semctl.c: Likewise.
23713         * sysvipc/semget.c: Likewise.
23714         * sysvipc/semop.c: Likewise.
23715         * sysvipc/semtimedop.c: Likewise.
23716         * sysvipc/shmat.c: Likewise.
23717         * sysvipc/shmctl.c: Likewise.
23718         * sysvipc/shmdt.c: Likewise.
23719         * sysvipc/shmget.c: Likewise.
23720         * termios/tcdrain.c: Likewise.
23721         * termios/tcflow.c: Likewise.
23722         * termios/tcflush.c: Likewise.
23723         * termios/tcgetattr.c: Likewise.
23724         * termios/tcgetpgrp.c: Likewise.
23725         * termios/tcsendbrk.c: Likewise.
23726         * termios/tcsetattr.c: Likewise.
23727         * termios/tcsetpgrp.c: Likewise.
23728         * time/adjtime.c: Likewise.
23729         * time/clock.c: Likewise.
23730         * time/getitimer.c: Likewise.
23731         * time/gettimeofday.c: Likewise.
23732         * time/setitimer.c: Likewise.
23733         * time/settimeofday.c: Likewise.
23734         * time/stime.c: Likewise.
23735         * time/time.c: Likewise.
23736
23737 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
23738
23739         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
23740         /usr/old/bin.
23741
23742         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
23743         instead of spaces.
23744         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
23745
23746 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
23747
23748         [BZ #14796]
23749         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
23750         FE_TONEAREST before applying Dekker multiplication and Knuth
23751         addition.  Clear inexact exceptions and check for exact zero
23752         results afterwards.
23753         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
23754         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
23755         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
23756         * math/libm-test.inc (fma_test): Add more tests.
23757         (fma_test_towardzero): Likewise.
23758         (fma_test_downward): Likewise.
23759         (fma_test_upward): Likewise.
23760         * sysdeps/generic/math_private.h (default_libc_fesetround): New
23761         function.
23762         (libc_fesetround): New macro.
23763         (libc_fesetroundf): Likewise.
23764         (libc_fesetroundl): Likewise.
23765         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
23766         function.
23767         (libc_fesetround_387): Likewise.
23768         (libc_fesetroundf): New macro.
23769         (libc_fesetround): Likewise.
23770         (libc_fesetroundl): Likewise.
23771         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
23772         function.
23773         (libc_fesetroundf): New macro.
23774         (libc_fesetround): Likewise.
23775         (libc_fesetroundl): Likewise.
23776         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
23777         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
23778         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
23779         libm_hidden_ver.
23780         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
23781         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
23782         libm_hidden_def.
23783         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
23784         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
23785         libm_hidden_ver.
23786         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
23787         libm_hidden_def.
23788
23789         [BZ #3439]
23790         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
23791         integer constant usable in #if and use that to give value to enum
23792         constant.
23793         (FE_DIVBYZERO): Likewise.
23794         (FE_UNDERFLOW): Likewise.
23795         (FE_OVERFLOW): Likewise.
23796         (FE_INVALID): Likewise.
23797         (FE_INVALID_SNAN): Likewise.
23798         (FE_INVALID_ISI): Likewise.
23799         (FE_INVALID_IDI): Likewise.
23800         (FE_INVALID_ZDZ): Likewise.
23801         (FE_INVALID_IMZ): Likewise.
23802         (FE_INVALID_COMPARE): Likewise.
23803         (FE_INVALID_SOFTWARE): Likewise.
23804         (FE_INVALID_SQRT): Likewise.
23805         (FE_INVALID_INTEGER_CONVERSION): Likewise.
23806         (FE_TONEAREST): Likewise.
23807         (FE_TOWARDZERO): Likewise.
23808         (FE_UPWARD): Likewise.
23809         (FE_DOWNWARD): Likewise.
23810         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
23811         (FE_DIVBYZERO): Likewise.
23812         (FE_OVERFLOW): Likewise.
23813         (FE_UNDERFLOW): Likewise.
23814         (FE_INEXACT): Likewise.
23815         (FE_TONEAREST): Likewise.
23816         (FE_DOWNWARD): Likewise.
23817         (FE_UPWARD): Likewise.
23818         (FE_TOWARDZERO): Likewise.
23819         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
23820         (FE_UNDERFLOW): Likewise.
23821         (FE_OVERFLOW): Likewise.
23822         (FE_DIVBYZERO): Likewise.
23823         (FE_INVALID): Likewise.
23824         (FE_TONEAREST): Likewise.
23825         (FE_TOWARDZERO): Likewise.
23826         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
23827         (FE_OVERFLOW): Likewise.
23828         (FE_UNDERFLOW): Likewise.
23829         (FE_DIVBYZERO): Likewise.
23830         (FE_INEXACT): Likewise.
23831         (FE_TONEAREST): Likewise.
23832         (FE_TOWARDZERO): Likewise.
23833         (FE_UPWARD): Likewise.
23834         (FE_DOWNWARD): Likewise.
23835         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
23836         (FE_DIVBYZERO): Likewise.
23837         (FE_OVERFLOW): Likewise.
23838         (FE_UNDERFLOW): Likewise.
23839         (FE_INEXACT): Likewise.
23840         (FE_TONEAREST): Likewise.
23841         (FE_DOWNWARD): Likewise.
23842         (FE_UPWARD): Likewise.
23843         (FE_TOWARDZERO): Likewise.
23844
23845 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
23846
23847         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
23848
23849 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
23850
23851         * scripts/cross-test-ssh.sh (command): Use newlines to separate
23852         commands.  Quote $PWD.
23853         (blacklist_exports): Don't use remove_newlines.  Replace "declare
23854         -x" by "export".
23855         (remove_newlines): Remove.
23856
23857 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
23858
23859         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
23860         * stdlib/stdlib.h (atof): Moved to ...
23861         * include/bits/stdlib-float.h: Here.  New file.
23862         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
23863         * stdlib/bits/stdlib-float.h: New file.
23864         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
23865         -mno-sse -mno-mmx.
23866         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
23867         <xmmintrin.h>.
23868
23869 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
23870
23871         * conform/conformtest.pl (@headers): Add fenv.h.
23872         * conform/data/fenv.h-data: New file.
23873         * include/fenv.h [_ISOMAC]: Disable all contents of file except
23874         include of <math/fenv.h>.
23875
23876         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
23877         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
23878         && !UNIX98].  Enables tests for XOPEN2K8.
23879         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
23880         POSIX2008]: Likewise.
23881
23882         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
23883         (struct rusage): Do not expect type or its members.
23884
23885         [BZ #3439]
23886         * math/math.h (FP_NAN): Define macro to integer constant usable in
23887         #if and use that to give value to enum constant.
23888         (FP_INFINITE): Likewise.
23889         (FP_ZERO): Likewise.
23890         (FP_SUBNORMAL): Likewise.
23891         (FP_NORMAL): Likewise.
23892
23893 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
23894
23895         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
23896         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
23897         arguments.
23898
23899 2012-11-02  Roland McGrath  <roland@hack.frob.com>
23900
23901         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
23902         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
23903         autoconf-time if not.
23904         * configure.in: Remove AC_PREREQ.
23905
23906 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23907
23908         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
23909         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
23910         of the internal implementation.
23911
23912 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
23913
23914         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
23915         except include of <misc/sys/syslog.h>.
23916
23917 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
23918
23919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
23920         function returns with a NULL context exit with zero.
23921
23922 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23923
23924         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
23925
23926 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
23927
23928         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
23929         (run_program_cmd): This.
23930         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
23931         (tst_langinfo): New variable.  Use it.
23932
23933 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
23934
23935         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
23936         floating point opcodes.
23937
23938 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
23939
23940         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
23941         variable.
23942
23943         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
23944
23945         * sysdeps/mach/hurd/powerpc: Remove directory.
23946         * sysdeps/mach/powerpc: Likewise.
23947
23948 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
23949
23950         * scripts/check-local-headers.sh: Ignore c++ headers.
23951
23952 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
23953
23954         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
23955         __libc_cleanup_region_start argument.
23956
23957 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
23958
23959         [BZ #14784]
23960         [BZ #14785]
23961         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
23962         x * y using scaling, not as x * y + z.
23963         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
23964         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
23965         * math/libm-test.inc (fma_test): Add more tests.
23966         (fma_test_towardzero): Likewise.
23967         (fma_test_downward): Likewise.
23968         (fma_test_upward): Likewise.
23969
23970 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
23971
23972         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
23973
23974 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
23975
23976         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
23977         New variable.
23978
23979 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
23980
23981         * rt/tst-shm.c (worker): Correct checking for mmap failure.
23982
23983 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
23984
23985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23986         Fix sort order.
23987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
23988         Likewise.
23989
23990 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23991
23992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23993         Fix the order of the list for glibc 2.17.
23994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
23995         Likewise.
23996
23997 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
23998
23999         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24000
24001 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
24002
24003         [BZ #14610]
24004         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
24005         for low part of x being zero before using __atanl (y).
24006         * math/libm-test.inc (atan2_test): Add another test.
24007
24008         * manual/install.texi (Configuring and compiling): Document
24009         general use of test-wrapper and test-wrapper-env.
24010         * INSTALL: Regenerated.
24011
24012         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
24013         (__fma): Do not extract and scale down low bits on after-rounding
24014         systems when result rounded to normal precision would have normal
24015         exponent.
24016         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
24017         (__fmal): Do not extract and scale down low bits on after-rounding
24018         systems when result rounded to normal precision would have normal
24019         exponent.
24020         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
24021         (__fmal): Do not extract and scale down low bits on after-rounding
24022         systems when result rounded to normal precision would have normal
24023         exponent.
24024         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
24025         macro.
24026         (fma_test): Add more tests.
24027         (fma_test_towardzero): Likewise.
24028         (fma_test_downward): Likewise.
24029         (fma_test_upward): Likewise.
24030
24031 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
24032
24033         * sysdeps/i386/tininess.h: Renamed to ...
24034         * sysdeps/x86/tininess.h: This.
24035         * sysdeps/x86_64/tininess.h: Removed.
24036
24037 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
24038
24039         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
24040         input.  Use $(build-program-cmd).
24041         ($(objpfx)tst-array1-static.out): Likewise.
24042         ($(objpfx)tst-array2.out): Likewise.
24043         ($(objpfx)tst-array3.out): Likewise.
24044         ($(objpfx)tst-array4.out): Likewise.
24045         ($(objpfx)tst-array5.out): Likewise.
24046         ($(objpfx)tst-array5-static.out): Likewise.
24047
24048 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
24049
24050         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
24051         if defined.
24052
24053         * nss/nsswitch.h (nss_interface_function): Provide new
24054         macro for use with NSS functions.
24055         * grp/initgroups.c: Use new macro.
24056         * nss/getXXbyYY.c: Likewise.
24057         * nss/getXXbyYY_r.c: Likewise.
24058         * nss/getXXent.c: Likewise.
24059         * nss/getXXent_r.c: Likewise.
24060         * sysdeps/posix/getaddrinfo.c: Likewise.
24061
24062 2012-10-30  Andreas Jaeger  <aj@suse.de>
24063
24064         * po/ru.po: Update Russion translation from translation project.
24065
24066 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
24067
24068         [BZ #14152]
24069         [BZ #14783]
24070         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
24071         result and shift together with sticky bit instead of replicating
24072         round-to-nearest rounding.
24073         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
24074         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24075         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
24076         missing underflow exceptions.
24077         (fma_test_towardzero): Add more tests.
24078         (fma_test_downward): Likewise.
24079         (fma_test_upward): Likewise.
24080
24081         [BZ #14047]
24082         * sysdeps/generic/tininess.h: New file.
24083         * sysdeps/i386/tininess.h: Likewise.
24084         * sysdeps/sh/tininess.h: Likewise.
24085         * sysdeps/x86_64/tininess.h: Likewise.
24086         * stdlib/tst-strtod-underflow.c: Likewise.
24087         * stdlib/tst-tininess.c: Likewise.
24088         * stdlib/strtod_l.c: Include <tininess.h>.
24089         (round_and_return): Do not set errno for exact underflow cases.
24090         Force an underflow exception when setting errno for underflow.
24091         Determine underflow based on rounding to normal precision if
24092         TININESS_AFTER_ROUNDING.
24093         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
24094         ERANGE for exact underflow cases.
24095         * stdlib/Makefile (tests): Add tst-tininess and
24096         tst-strtod-underflow.
24097         ($(objpfx)tst-tininess): Use $(link-libm).
24098         ($(objpfx)tst-strtod-underflow): Likewise.
24099
24100 2012-10-30  Andreas Jaeger  <aj@suse.de>
24101
24102         [BZ#14767]
24103         * elf/Makefile (tests): Remove conditional for have-initfini-array
24104         since this is now always required and the variable does not exist
24105         anymore.
24106         (tests-static): Likewise.
24107         (modules-names): Likewise.
24108
24109         * po/eo.po: Add Esperanto translation from translation project.
24110
24111         * elf/tst-array1.c (fini_array): Make writeable so that it can be
24112         merged with constructor/destructor.
24113         (init_array): Likewise.
24114         * elf/tst-array2dep.c (fini_array): Likewise.
24115         (init_array): Likewise.
24116
24117 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
24118
24119         * manual/message.texi: Delete @cartouche tags.
24120
24121 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
24122
24123         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
24124         EOPNOTSUPP.
24125         * sysdeps/mach/hurd/fsync.c: Likewise.
24126
24127         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
24128         [_POSIX_REALTIME_SIGNALS]: Change condition to
24129         [_POSIX_REALTIME_SIGNALS > 0].
24130
24131 2012-10-27  Andreas Jaeger  <aj@suse.de>
24132
24133         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
24134         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
24135         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
24136         [__WORDSIZE != 64]: Likewise.
24137
24138 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
24139
24140         *  iconvdata/tst-table.sh: Remove ${SHELL}.
24141         *  iconvdata/tst-tables.sh: Likewise.
24142
24143 2012-10-25  David S. Miller  <davem@davemloft.net>
24144
24145         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
24146         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
24147         of strtoull.
24148
24149         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
24150         ifunc-impl-list.c
24151         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24152         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
24153         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
24154         file.
24155
24156 2012-10-25  Roland McGrath  <roland@hack.frob.com>
24157
24158         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
24159         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
24160         __getdirentries.
24161
24162 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
24163             Jim Blandy  <jimb@codesourcery.com>
24164
24165         * scripts/cross-test-ssh.sh: New file.
24166         * manual/install.texi (Configuring and compiling): Document use of
24167         cross-test-ssh.sh.
24168         * INSTALL: Regenerated.
24169
24170 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
24171
24172         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
24173         EOPNOTSUPP.
24174
24175 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
24176
24177         * Makeconfig (run-program-prefix): Fix comment.
24178
24179 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
24180             Jim Blandy  <jimb@codesourcery.com>
24181
24182         * Makeconfig (test-wrapper): New variable,
24183         (test-wrapper-env): Likewise.
24184         [$(cross-compiling) = yes && $(test-wrapper) != ""]
24185         (run-built-tests): Define to yes.
24186         (run-program-prefix): Use $(test-wrapper).
24187         (built-program-cmd): Likewise.
24188         * Rules (make-test-out): Use $(test-wrapper-env) and
24189         $(host-built-program-cmd).
24190         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
24191         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
24192         tst-pathopt.sh.
24193         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
24194         $(test-wrapper-env) to tst-rtld-load-self.sh.
24195         ($(objpfx)order2.out): Use $(test-wrapper).
24196         ($(objpfx)tst-initorder.out): Likewise.
24197         ($(objpfx)tst-initorder2.out): Likewise.
24198         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
24199         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
24200         (test_wrapper_env): New variable.  Use it to run ld.so.
24201         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
24202         Use it to run ld.so.
24203         (test_wrapper_env): Likewise.
24204         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
24205         $(test-wrapper) to run-iconv-test.sh.
24206         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
24207         (ICONV): Use $test_wrapper.
24208         * posix/Makefile ($(objpfx)globtest.out): Pass
24209         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
24210         globtest.sh, not $(run-program-prefix).
24211         * posix/globtest.sh (run_via_rtld_prefix): New variable.
24212         (test_wrapper): Likewise.
24213         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
24214         set together with run_via_rtld_prefix.
24215         (run_program_prefix): Define in terms of test_wrapper and
24216         run_via_rtld_prefix.
24217
24218 2012-10-24  Roland McGrath  <roland@hack.frob.com>
24219
24220         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
24221         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
24222         Targets removed.
24223
24224         [BZ #14743]
24225         * include/time.h: Remove librt_hidden_proto (clock_gettime).
24226         Declare __clock_getres, __clock_gettime, __clock_settime,
24227         __clock_nanosleep, and __clock_getcpuclockid.
24228         * rt/clock_gettime.c: Define __clock_gettime as an alias.
24229         Remove librt_hidden_def (clock_gettime).
24230         * sysdeps/unix/clock_gettime.c: Likewise.
24231         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
24232         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
24233         * rt/clock_getres.c: Define __clock_getres as an alias.
24234         * sysdeps/posix/clock_getres.c: Likewise.
24235         * rt/clock_settime.c: Define __clock_settime as an alias.
24236         * sysdeps/unix/clock_settime.c: Likewise.
24237         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
24238         * sysdeps/unix/clock_nanosleep.c: Likewise.
24239         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
24240         * rt/clock-compat.c: New file.
24241         * rt/Makefile (librt-routines): Add clock-compat and move
24242         $(clock-routines) to ...
24243         (routines): ... here, new variable.
24244         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
24245         Don't add get_clockfreq here.
24246         * rt/Versions (libc: GLIBC_2.17): New version set.
24247         Add clock_* symbols here.
24248         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
24249         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
24250         (GLIBC_2.17): Add clock_* symbols.
24251         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
24252         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
24253         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
24254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
24255         Likewise.
24256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
24257         Likewise.
24258         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
24259         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
24260         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
24261         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
24262         * NEWS: Mention the move.
24263
24264         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
24265         Use __open, __read, __close rather than their public counterparts.
24266         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
24267         (__get_clockfreq_via_cpuinfo): Likewise.
24268         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
24269         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
24270
24271         * config.h.in (HAVE_IFUNC): New #undef.
24272         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
24273         was successful.
24274         * configure: Regenerated.
24275
24276 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
24277
24278         * configure.in: Move READELF check to start of file.
24279         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
24280         libc_cv_asm_gnu_indirect_function in the process.
24281         * configure: Regenerated.
24282
24283 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
24284
24285         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
24286         send the output to /dev/null.
24287         (libc_cv_cc_with_libunwind): Likewise.
24288         (libc_cv_as_noexecstack): Likewise.
24289         * configure: Regenerate.
24290
24291 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
24292
24293         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
24294
24295         * posix/globtest.sh (TMPDIR): Do not set.
24296         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
24297         (testout): Likewise.
24298
24299 2012-10-24  Andreas Jaeger  <aj@suse.de>
24300
24301         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
24302         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
24303         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
24304         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
24305         posix_fadvise64, posix_fallocate64.
24306
24307         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
24308         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
24309         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
24310         Likewise.
24311         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
24312         Likewise.
24313         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
24314
24315         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
24316         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
24317         <bits/fcntl-linux.h>.
24318         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
24319
24320         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
24321         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
24322         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
24323         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
24324         [__WORDSIZE != 64]: Likewise.
24325
24326 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
24327
24328         * Makeconfig (run-built-tests): New variable.
24329         * Rules [$(cross-compiling) = yes]: Change condition to
24330         [$(run-built-tests) = no].
24331         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
24332         to [$(run-built-tests) = yes].
24333         * elf/Makefile [$(cross-compiling) = no]: Likewise
24334         * grp/Makefile [$(cross-compiling) = no]: Likewise.
24335         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
24336         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
24337         * intl/Makefile [$(cross-compiling) = no]: Likewise.
24338         * io/Makefile [$(cross-compiling) = no]: Likewise.
24339         * libio/Makefile [$(cross-compiling) = no]: Likewise.
24340         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
24341         * misc/Makefile [$(cross-compiling) = no]: Likewise.
24342         * posix/Makefile [$(cross-compiling) = no]: Likewise.
24343         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
24344         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
24345         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
24346         * string/Makefile [$(cross-compiling) = no]: Likewise.
24347
24348         * posix/Makefile ($(objpfx)globtest.out): Pass
24349         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
24350         $(rtld-installed-name).
24351         * posix/globtest.sh (elf_objpfx): Remove variable.
24352         (rtld_installed_name): Likewise.
24353         (library_path): Likewise.
24354         (run_program_prefix): New variable.  Use for running globtest
24355         binary.
24356
24357 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
24358             Joseph Myers  <joseph@codesourcery.com>
24359
24360         * Makeconfig (host-built-program-cmd): New variable.
24361         * elf/Makefile (tst-stackguard1-ARGS): Use
24362         $(host-built-program-cmd).
24363         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
24364         (tst-spawn-ARGS): Likewise.
24365         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
24366
24367 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
24368             Jim Blandy  <jimb@codesourcery.com>
24369
24370         * Makeconfig (run-via-rtld-prefix): New variable.
24371         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
24372         (built-program-cmd): Likewise.
24373
24374 2012-10-22  Andreas Jaeger  <aj@suse.de>
24375
24376         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
24377         __O_RSYNC if it exists, otherwise to O_SYNC.
24378
24379 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
24380             Joseph Myers  <joseph@codesourcery.com>
24381
24382         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
24383         /dev/null.
24384         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
24385         from /dev/null
24386         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
24387         /dev/null.
24388
24389 2012-10-22  Andreas Jaeger  <aj@suse.de>
24390
24391         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
24392         Define always.
24393         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
24394
24395         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24396         bits/fcntl-linux.h.
24397
24398         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
24399         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
24400
24401         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
24402         to __O_LARGEFILE.
24403         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
24404         to __O_LARGEFILE.
24405
24406 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
24407             Joseph Myers  <joseph@codesourcery.com>
24408
24409         * config.make.in (NM): New variable.
24410
24411 2012-10-21  Andreas Jaeger  <aj@suse.de>
24412
24413         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
24414         definitions and declarations that are provided by
24415         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
24416
24417 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
24418
24419         [BZ #14683]
24420         * elf/Makefile (tests-static): Add tst-leaks1-static.
24421         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
24422         ($(objpfx)tst-leaks1-static): New rule.
24423         ($(objpfx)tst-leaks1-static-mem): Likewise.
24424         (tst-leaks1-static-ENV): New macro.
24425         * elf/dl-open.c (dl_open_worker): Check the main application
24426         only if SHARED is defined.
24427         * elf/tst-leaks1-static.c: New file.
24428
24429 2012-10-20  Andreas Jaeger  <aj@suse.de>
24430
24431         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
24432         generic values for Linux.
24433         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
24434         and declarations that are provided by <bits/fcntl-linux.h> and
24435         include <bits/fcntl-linux.h>.
24436         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24437         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24438
24439 2012-10-20  Roland McGrath  <roland@hack.frob.com>
24440
24441         * io/fcntl.h: Move include of <bits/types.h> to the top and
24442         include it unconditionally.
24443
24444 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
24445
24446         * wcsmbs/Makefile (tests-ifunc): New variable.
24447         (tests): Add $(tests-ifunc).
24448         * wcsmbs/test-wcschr-ifunc.c: New file.
24449         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
24450         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
24451         * wcsmbs/test-wcslen-ifunc.c: Likewise.
24452         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
24453         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
24454
24455         * string/Makefile (tests-ifunc): New variable.
24456         (tests): Add $(tests-ifunc).
24457         * string/test-memccpy.c (TEST_NAME): New macro.
24458         * string/test-memchr.c (TEST_NAME): Likewise.
24459         * string/test-memcmp.c (TEST_NAME): Likewise.
24460         * string/test-memcpy.c (TEST_NAME): Likewise.
24461         * string/test-memmem.c (TEST_NAME): Likewise.
24462         * string/test-memmove.c (TEST_NAME): Likewise.
24463         * string/test-memset.c (TEST_NAME): Likewise.
24464         * string/test-rawmemchr.c (TEST_NAME): Likewise.
24465         * string/test-stpcpy.c (TEST_NAME): Likewise.
24466         * string/test-stpncpy.c (TEST_NAME): Likewise.
24467         * string/test-strcasecmp.c (TEST_NAME): Likewise.
24468         * string/test-strcasestr.c (TEST_NAME): Likewise.
24469         * string/test-strcat.c (TEST_NAME): Likewise.
24470         * string/test-strchr.c (TEST_NAME): Likewise.
24471         * string/test-strcmp.c(TEST_NAME): Likewise.
24472         * string/test-strcpy.c (TEST_NAME): Likewise.
24473         * string/test-strcspn.c (TEST_NAME): Likewise.
24474         * string/test-strlen.c (TEST_NAME): Likewise.
24475         * string/test-strncasecmp.c (TEST_NAME): Likewise.
24476         * string/test-strncmp.c (TEST_NAME): Likewise.
24477         * string/test-strncpy.c (TEST_NAME): Likewise.
24478         * string/test-strnlen.c (TEST_NAME): Likewise.
24479         * string/test-strpbrk.c (TEST_NAME): Likewise.
24480         * string/test-strrchr.c (TEST_NAME): Likewise.
24481         * string/test-strspn.c (TEST_NAME): Likewise.
24482         * string/test-strstr.c (TEST_NAME): Likewise.
24483         * string/test-bcopy-ifunc.c: New file.
24484         * string/test-bzero-ifunc.c: Likewise.
24485         * string/test-memccpy-ifunc.c: Likewise.
24486         * string/test-memchr-ifunc.c: Likewise.
24487         * string/test-memcmp-ifunc.c: Likewise.
24488         * string/test-memcpy-ifunc.c: Likewise.
24489         * string/test-memmem-ifunc.c: Likewise.
24490         * string/test-memmove-ifunc.c: Likewise.
24491         * string/test-mempcpy-ifunc.c: Likewise.
24492         * string/test-memset-ifunc.c: Likewise.
24493         * string/test-rawmemchr-ifunc.c: Likewise.
24494         * string/test-stpcpy-ifunc.c: Likewise.
24495         * string/test-stpncpy-ifunc.c: Likewise.
24496         * string/test-strcasecmp-ifunc.c: Likewise.
24497         * string/test-strcasestr-ifunc.c: Likewise.
24498         * string/test-strcat-ifunc.c: Likewise.
24499         * string/test-strchr-ifunc.c: Likewise.
24500         * string/test-strchrnul-ifunc.c: Likewise.
24501         * string/test-strcmp-ifunc.c: Likewise.
24502         * string/test-strcpy-ifunc.c: Likewise.
24503         * string/test-strcspn-ifunc.c: Likewise.
24504         * string/test-strlen-ifunc.c: Likewise.
24505         * string/test-strncasecmp-ifunc.c: Likewise.
24506         * string/test-strncat-ifunc.c: Likewise.
24507         * string/test-strncmp-ifunc.c: Likewise.
24508         * string/test-strncpy-ifunc.c: Likewise.
24509         * string/test-strnlen-ifunc.c: Likewise.
24510         * string/test-strpbrk-ifunc.c: Likewise.
24511         * string/test-strrchr-ifunc.c: Likewise.
24512         * string/test-strspn-ifunc.c: Likewise.
24513         * string/test-strstr-ifunc.c: Likewise.
24514
24515         * debug/Makefile (tests-ifunc): New variable.
24516         (tests): Add $(tests-ifunc).
24517         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
24518         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
24519         * debug/test-stpcpy_chk-ifunc.c: New file.
24520         * debug/test-strcpy_chk-ifunc.c: Likewise.
24521
24522 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
24523
24524         [BZ #13601]
24525         * elf/dl-load.c (open_verify): Retry read if the entire ELF
24526         header is not read in.
24527
24528 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
24529
24530         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
24531         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
24532         directly.  Pass built executable to script as
24533         $(built-program-cmd).
24534         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
24535         $testprogram without using LD_LIBRARY_PATH and $ldso.
24536
24537         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
24538         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
24539         $(rtld-installed-name).
24540         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
24541         (rtld_installed_name): Likewise.
24542         (library_path): Likewise.
24543         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
24544         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
24545         $(run-program-prefix) to tst-tables.sh.
24546         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
24547         it to run tst-table-from and tst-table-to.
24548         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
24549         Pass it to tst-table.sh.
24550         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
24551         $(run-program-prefix) to tst-gettext.sh.
24552         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
24553         tst-translit.sh.
24554         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
24555         tst-gettext2.sh.
24556         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
24557         to run tst-gettext.
24558         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
24559         to run tst-gettext2.
24560         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
24561         to run tst-translit.
24562         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
24563         $(run-program-prefix) to tst-mtrace.sh.
24564         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
24565         to run tst-mtrace.
24566         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
24567         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
24568         $(rtld-installed-name).
24569         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
24570         (rtld_installed_name): Likewise.
24571         (run_program_prefix): New variable.  Use it to run wordexp-test.
24572
24573         * Makeconfig (ARCH): Remove all definitions.
24574         (machine): Likewise.
24575         [ARCH]: Remove conditional code.
24576         [!objdir]: Give error.
24577         [!objdir] (objpfx): Remove.
24578         [!objdir] (common-objpfx): Likewise.
24579         [!objdir] (common-objdir): Likewise.
24580         * configure.in (config_makefile): Remove.  Hardcode Makefile in
24581         AC_CONFIG_FILES call.
24582         * configure: Regenerated.
24583
24584         [BZ #13888]
24585         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
24586         or TMPDIR.
24587         (testout): Likewise.
24588
24589         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
24590         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
24591         $(rtld-installed-name).
24592         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
24593         (rtld_installed_name): Likwise.
24594         (runit): Remove function.
24595         (run_getconf): New variable,  Use it for running getconf binary.
24596
24597 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
24598
24599         [BZ #14716]
24600         * string/test-memmem.c (check_result): New function.
24601         (do_one_test): Use it.
24602         (check1): New function.
24603         (test_main): Use it.
24604
24605 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
24606
24607         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
24608
24609 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
24610
24611         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
24612         (_G_LSEEK64): Likewise.
24613         (_G_MMAP64): Likewise.
24614         (_G_FSTAT64): Likewise.
24615         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
24616         (_G_LSEEK64): Likewise.
24617         (_G_MMAP64): Likewise.
24618         (_G_FSTAT64): Likewise.
24619         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
24620         unconditional.  Call __mmap64 directly.
24621         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
24622         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
24623         __lseek64 directly.
24624         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
24625         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
24626         __mmap64 directly.
24627         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
24628         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
24629         __lseek64 directly.
24630         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
24631         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
24632         __lseek64 directly.
24633         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
24634         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
24635         __lseek64 directly.
24636         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
24637         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
24638         __fxstat64 directly.
24639         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
24640         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
24641         unconditional.
24642         (freopen64) [!_G_OPEN64]: Remove conditional code.
24643         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
24644         unconditional.
24645         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
24646         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
24647         unconditional.
24648         (ftello64) [!_G_LSEEK64]: Remove conditional code.
24649         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
24650         unconditional.
24651         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
24652         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
24653         unconditional.
24654         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
24655         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
24656         unconditional.
24657         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
24658         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
24659         unconditional.
24660         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
24661         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
24662         unconditional.
24663         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
24664
24665 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
24666
24667         [BZ #12140]
24668         * manual/memory.texi (Malloc Tunable Parameters): Add note
24669         about free list pointers overwriting some perturb bytes.
24670         Wording suggested by Roland McGrath.
24671
24672 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
24673
24674         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
24675         (lgamma_test): Likewise.
24676         (tgamma_test): Likewise.
24677
24678 2012-10-16  Florian Weimer  <fweimer@redhat.com>
24679
24680         [BZ #14700]
24681         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
24682         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
24683
24684 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
24685
24686         * NEWS: Mention BZ #14716.
24687         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
24688         when removing AVAILABLE1_USES_J macro.
24689
24690 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
24691
24692         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
24693         (__bswap_64): __uint64_t for unsigned 64-bit int.
24694
24695 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
24696
24697         * include/string.h (memmem): Declare libc hidden alias.
24698         * string/memmem.c (memmem): Define libc hidden alias.
24699         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
24700         __read, __close instead of open, read, close.
24701
24702 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
24703
24704         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
24705         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
24706         global and hidden.
24707         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
24708         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
24709         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
24710         Likewise.
24711         (__rawmemchr_sse2): Likewise.
24712         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
24713         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
24714         (__strchr_sse2): Likewise.
24715         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
24716         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
24717         (__strcasecmp_sse2): Likewise.
24718         (__strncasecmp_sse2): Likewise.
24719         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
24720         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
24721         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
24722         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
24723         (__strrchr_sse2): Likewise.
24724         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
24725         ifunc-impl-list.c.
24726         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24727         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24728         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24729         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
24730         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24731         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24732         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24733         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24734         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
24735         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
24736         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
24737         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
24738         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
24739         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24740         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24741         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24742         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24743         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24744         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
24745         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
24746         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
24747         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
24748         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
24749         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
24750         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
24751         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
24752         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24753         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
24754         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24755         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24756
24757         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
24758         global and hidden.
24759         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
24760         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
24761         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
24762         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
24763         Likewise.
24764         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
24765         Likewise.
24766         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
24767         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
24768         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
24769         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
24770         ifunc-impl-list.c.
24771         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24772         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24773         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24774         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24775         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24776         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24777         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24778         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24779         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24780         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24781         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24782         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24783         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24784         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
24785         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
24786         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
24787         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
24788         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
24789         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24790         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24791         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24792         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24793         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24794         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24795         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
24796         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
24797         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
24798         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
24799         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
24800         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24801         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
24802         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24803         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24804         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
24805         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24806         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24807         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24808         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24809         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24810         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24811         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
24812
24813         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
24814         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
24815         * include/ifunc-impl-list.h: New file.
24816         * misc/ifunc-impl-list.c: Likewise.
24817         * misc/Makefile (routines): Add ifunc-impl-list.
24818         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
24819         * string/test-string.h: Include <ifunc-impl-list.h>.
24820         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
24821         TEST_NAME]: New variables.
24822         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
24823         are defined.
24824         (test_init): Call __libc_ifunc_impl_list to initialize
24825         func_list if TEST_IFUNC and TEST_NAME are defined.
24826
24827         * string/Makefile (strop-tests): Add bcopy and bzero.
24828         * string/test-bcopy.c: New file.
24829         * string/test-bzero.c: Likewise.
24830         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
24831         defined.
24832         * string/test-memset.c: Support bzero test if TEST_BZERO is
24833         defined.
24834         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
24835         __libc_memmove.
24836         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
24837         __libc_memset.
24838         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
24839         of memset.
24840
24841 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
24842
24843         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
24844         * configure: Regenerated.
24845
24846         * Makeconfig (+link-static-before-libc): Don't include
24847         $(link-static-libc).
24848
24849         * libio/libio.h (_IO_pos_t): Remove.
24850
24851 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
24852
24853         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
24854         McGrath.
24855
24856 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
24857
24858         * crypt/crypt-entry.c: Include fips-private.h.
24859         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
24860         * crypt/md5c-test.c (main): Tolerate disabled MD5.
24861         * sysdeps/unix/sysv/linux/fips-private.h: New file.
24862         * sysdeps/generic/fips-private.h: New file, dummy fallback.
24863
24864 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
24865
24866         * crypt/crypt-private.h: Include stdbool.h.
24867         (_ufc_setup_salt_r): Return bool.
24868         * crypt/crypt-entry.c: Include errno.h.
24869         (__crypt_r): Return NULL with EINVAL for bad salt.
24870         * crypt/crypt_util.c (bad_for_salt): New.
24871         (_ufc_setup_salt_r): Check that salt is long enough and within
24872         the specified alphabet.
24873         * crypt/badsalttest.c: New file.
24874         * crypt/Makefile (tests): Add it.
24875         ($(objpfx)badsalttest): New.
24876
24877 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
24878
24879         * NEWS: Add entry for BZ #14602.
24880
24881 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
24882
24883         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
24884         type-generic.
24885         * math/libm-test.inc: Update comment listing what functions and
24886         macros are tested.
24887         (isgreater_test): New function.
24888         (isgreaterequal_test): Likewise.
24889         (isless_test): Likewise.
24890         (islessequal_test): Likewise.
24891         (islessgreater_test): Likewise.
24892         (isunordered_test): Likewise.
24893         (main): Call the new functions.
24894
24895 2012-10-09  Roland McGrath  <roland@hack.frob.com>
24896
24897         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
24898         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
24899         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
24900         * sysdeps/i386/configure: Regenerated.
24901         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
24902         * sysdeps/mach/configure: Regenerated.
24903         * sysdeps/mach/hurd/configure: Regenerated.
24904         * sysdeps/powerpc/configure: Regenerated.
24905         * sysdeps/powerpc/powerpc32/configure: Regenerated.
24906         * sysdeps/powerpc/powerpc64/configure: Regenerated.
24907         * sysdeps/s390/s390-32/configure: Regenerated.
24908         * sysdeps/s390/s390-64/configure: Regenerated.
24909         * sysdeps/sh/configure: Regenerated.
24910         * sysdeps/sparc/configure: Regenerated.
24911         * sysdeps/unix/sysv/linux/configure: Regenerated.
24912         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
24913         * sysdeps/x86_64/configure: Regenerated.
24914
24915         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
24916         defined.  Don't check if MAP is NULL.
24917
24918 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
24919
24920         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
24921         (_G_stat64): Likewise.
24922         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
24923         (_G_stat64): Likewise.
24924         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
24925         instead of struct _G_stat64.
24926         * libio/fileops.c (mmap_remap_check): Likewise.
24927         (decide_maybe_mmap): Likewise.
24928         (_IO_new_file_seekoff): Likewise.
24929         (_IO_file_stat): Likewise.
24930         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
24931         _G_off64_t.
24932         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
24933         instead of struct _G_stat64.
24934         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24935
24936 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
24937
24938         [BZ #14602]
24939         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
24940         Replace with ...
24941         (CHECK_EOL): New macro.
24942         (two_way_short_needle): Check beginning of haystack for EOL.  Use
24943         CHECK_EOL.
24944         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
24945         Replace with CHECK_EOL.
24946         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
24947         Replace with CHECK_EOL.
24948
24949 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
24950
24951         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
24952         type-generic.
24953         * math/libm-test.inc: Update comment listing what functions and
24954         macros are tested.
24955         (finite_test): New function.
24956         (isinf_test): Likewise.
24957         (isnan_test): Likewise.
24958         (fpclassify_test): Test subnormal input.
24959         (isfinite_test): Likewise.
24960         (isnormal_test): Likewise.
24961         (main): Call the new functions.
24962
24963 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
24964
24965         [BZ #14660]
24966         * Makerules (%.dynsym): Force C locale when running
24967         $(OBJDUMP) --dynamic-syms.
24968
24969 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
24970
24971         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
24972         <stdint.h>.
24973
24974 2012-10-06  David S. Miller  <davem@davemloft.net>
24975
24976         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
24977         upper 32-bits of the length value in %o2 since we use branch-on-register
24978         tests which consider the entire 64-bit register.
24979
24980 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
24981
24982         * string/test-strstr.c (check2): Add a test for page boundary.
24983
24984 2012-10-05  David S. Miller  <davem@davemloft.net>
24985
24986         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
24987         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
24988         file.
24989         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
24990         sysdep_routines.
24991         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
24992         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
24993         and bzero when HWCAP_SPARC_CRYPTO is present.
24994
24995 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
24996
24997         [BZ #14602]
24998         * string/test-strstr.c (check2): New function.
24999         (test_main): Call check2.
25000
25001         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
25002         and bug-strchr1.
25003         * string/bug-strcasestr1.c (do_test): Moved to ...
25004         * string/test-strcasestr.c (check1): Here.  New function.
25005         (do_one_test): Break out result checking code into ...
25006         (check_result): This.  New function.
25007         (do_one_test): Call check_result.
25008         (test_main): Call check1.
25009         * string/bug-strchr1.c (do_test): Moved to ...
25010         * string/test-strchr.c (check1): Here.  New function.
25011         (do_one_test): Break out result checking code into ...
25012         (check_result): This.  New function.
25013         (do_one_test): Call check_result.
25014         (test_main): Call check1.
25015         * string/bug-strstr1.c (main): Moved to ...
25016         * string/test-strstr.c (check1): Here.  New function.
25017         (do_one_test): Break out result checking code into ...
25018         (check_result): This.  New function.
25019         (do_one_test): Call check_result.
25020         (test_main): Call check1.
25021         * string/bug-strcasestr1.c: Removed.
25022         * string/bug-strchr1.c: Likewise.
25023         * string/bug-strstr1.c: Likewise.
25024
25025         * elf/Makefile (dl-routines): Add hwcaps.
25026         * elf/dl-support.c (_dl_important_hwcaps): Removed.
25027         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
25028         (_dl_important_hwcaps): Moved to ...
25029         * elf/dl-hwcaps.c: Here.  New file.
25030         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
25031
25032         [BZ #14557]
25033         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
25034         if IS_IN_rtld isn't defined.
25035
25036         * elf/dl-support.c (_dl_sysinfo_map): New.
25037         Include "get-dynamic-info.h" and "setup-vdso.h".
25038         (_dl_non_dynamic_init): Call setup_vdso.
25039         * elf/dynamic-link.h: Don't include <assert.h>.
25040         (elf_get_dynamic_info): Moved to ...
25041         * elf/get-dynamic-info.h: Here.  New file.
25042         * elf/dynamic-link.h: Include "get-dynamic-info.h".
25043         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
25044         * elf/setup-vdso.h: Here.  New file.
25045         * elf/rtld.c: Include "setup-vdso.h".
25046         (dl_main): Call setup_vdso.
25047
25048 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
25049
25050         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
25051         creal in comment listing functions tested.  List finite, isinf,
25052         isnan, isless, islessequal, isgreater, isgreaterequal,
25053         islessgreater, isunordered, lgamma_r and pow10 as functions and
25054         macros not tested.  Mention which functions not tested are aliases
25055         for other functions.  Fix typo.  Note that signs of NaNs are not
25056         tested.
25057
25058         * scripts/config.guess: Update from config.git.
25059         * scripts/config.sub: Likewise.
25060
25061 2012-10-04  Roland McGrath  <roland@hack.frob.com>
25062
25063         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
25064         * misc/madvise.c (madvise): Renamed to __madvise.
25065         Make madvise a weak alias.
25066         * include/sys/mman.h: Declare __madvise.
25067         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
25068         * sysdeps/unix/syscalls.list
25069         (madvise): Make __madvise the strong name, and madvise a weak alias.
25070         * sysdeps/unix/sysv/linux/syscalls.list
25071         (madvise, mmap): Remove redundant entries.
25072         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
25073         * malloc/malloc.c (mtrim): Likewise.
25074         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
25075
25076 2012-10-03  Roland McGrath  <roland@hack.frob.com>
25077
25078         * sysdeps/mach/hurd/dl-cache.c: File removed.
25079         * config.h.in (USE_LDCONFIG): New #undef.
25080         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
25081         * configure: Regenerated.
25082         * elf/Makefile (dl-routines): Add dl-cache only under
25083         [$(use-ldconfig) = yes].
25084         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
25085         cache on [USE_LDCONFIG].
25086         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
25087         [USE_LDCONFIG].
25088         * elf/rtld.c (dl_main): Likewise.
25089
25090 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
25091
25092         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
25093         _SC_LEVEL4_CACHE_LINESIZE.
25094
25095 2012-10-03  Roland McGrath  <roland@hack.frob.com>
25096
25097         * sysdeps/unix/bsd/confstr.h: File removed.
25098
25099 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
25100
25101         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
25102         sys/sdt-config.h.
25103
25104 2012-10-02  Roland McGrath  <roland@hack.frob.com>
25105
25106         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
25107         Make 'mapoff' field ElfW(Off) rather than off_t.
25108
25109 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
25110
25111         * nscd/Makefile: Remove nscd-cflags and all its users.
25112         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
25113         (CFLAGS-nonlib): Add compiler flags for nscd modules.
25114
25115         [BZ #10631]
25116         * malloc.c (malloc_printerr): Clarify error message.
25117
25118 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
25119
25120         [BZ #14648]
25121         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25122         Set bit_FMA_Usable if FMA is supported.
25123         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
25124         macro.
25125         (bit_FMA4_Usable): Updated.
25126         (index_FMA_Usable): New macro.
25127         (CPUID_FMA): Likewise
25128         (HAS_FMA): Defined with bit_FMA_Usable.
25129
25130 2012-10-01  Roland McGrath  <roland@hack.frob.com>
25131
25132         * bits/types.h (__swblk_t): Type removed.
25133         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
25134         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
25135         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
25136         (__SWBLK_T_TYPE): Likewise.
25137         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
25138         (__SWBLK_T_TYPE): Likewise.
25139         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
25140         (__SWBLK_T_TYPE): Likewise.
25141         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
25142         (__SWBLK_T_TYPE): Likewise.
25143
25144 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
25145             Honza Horak <hhorak@redhat.com>
25146
25147         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
25148         (xdr_mapname): Use YPMAXMAP as maxsize.
25149         (xdr_peername): Use YPMAXPEER as maxsize.
25150         (xdr_keydat): Use YPAXRECORD as maxsize.
25151         (xdr_valdat): Use YPMAXRECORD as maxsize.
25152
25153 2012-10-01  Roland McGrath  <roland@hack.frob.com>
25154
25155         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
25156
25157         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
25158         * csu/init-first.c: ... here.
25159         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
25160         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
25161         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
25162         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
25163         * sysdeps/i386/init-first.c: File removed.
25164         * sysdeps/sh/init-first.c: File removed.
25165
25166 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
25167
25168         [BZ #14645]
25169         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
25170         if x * y might underflow to zero and z is zero.
25171         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25172         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25173         * math/libm-test.inc (min_subnorm_value): New variable.
25174         (fma_test): Add more tests.
25175         (fma_test_towardzero): Likewise.
25176         (fma_test_downward): Likewise
25177         (fma_test_upward): Likewise.
25178         (initialize): Set min_subnorm_value.
25179
25180 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
25181
25182         [BZ #14638]
25183         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
25184         0 + 0.
25185         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
25186         mode for addition resulting in exact zero.
25187         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
25188         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
25189         exact 0 + 0.
25190         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
25191         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25192         * math/libm-test.inc (fma_test): Add more tests.
25193         (fma_test_towardzero): New function.
25194         (fma_test_downward): Likewise.
25195         (fma_test_upward): Likewise.
25196         (main): Call the new functions.
25197
25198 2012-09-28  David S. Miller  <davem@davemloft.net>
25199
25200         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
25201
25202 2012-09-28  Roland McGrath  <roland@hack.frob.com>
25203
25204         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
25205         instead of SIGALRM.
25206
25207         * sysdeps/gnu/_G_config.h: Moved to ...
25208         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
25209         * sysdeps/mach/hurd/_G_config.h: Moved to ...
25210         * sysdeps/generic/_G_config.h: ... here.
25211
25212         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
25213
25214         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
25215
25216         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
25217         Conditionalize target on [libnss_test1.so-version].
25218
25219         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
25220
25221         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
25222         (elfobjdir): Move out of conditionals.
25223
25224         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
25225         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
25226         (__nss_lookup_function): Conditionalize label remove_from_tree on
25227         [!DO_STATIC_NSS || SHARED], matching its only use.
25228
25229 2012-09-28  David S. Miller  <davem@davemloft.net>
25230
25231         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
25232         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
25233         file.
25234         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
25235         sysdep_routines.
25236         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
25237         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
25238         when HWCAP_SPARC_CRYPTO is present.
25239
25240 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
25241
25242         * io/tst-mknodat.c: Create a FIFO instead of a socket.
25243
25244 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
25245
25246         [BZ #6530]
25247         * stdio-common/vfprintf.c (process_string_arg): Revert
25248         2000-07-22 change.
25249
25250 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
25251
25252         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
25253         for testcase.
25254         * stdio-common/tst-sprintf.c: Include <locale.h>
25255         (main): Test sprintf's handling of incomplete multibyte
25256         characters.
25257
25258 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
25259
25260         * elf/dl-runtime.c (VERSYMIDX): Removed.
25261         * elf/dl-version.c (VERSYMIDX): Likewise.
25262         * elf/do-rel.h (VERSYMIDX): Likewise.
25263         (VALIDX): Likewise.
25264         * elf/dynamic-link.h (VERSYMIDX): Likewise.
25265         * elf/rtld.c (VALIDX): Likewise.
25266         (ADDRIDX): Likewise.
25267         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
25268         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
25269         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
25270         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
25271         (VALIDX): Likewise.
25272         (ADDRIDX): Likewise.
25273
25274 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
25275
25276         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
25277
25278 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
25279
25280         [BZ #11438]
25281         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
25282         to global scope.
25283         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
25284         addresses are in the same scope as 192.0.2/24.
25285         * posix/gai.conf: Document new scope table defaults.
25286
25287 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
25288
25289         [BZ #5298]
25290         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
25291         for ftell.  Compute offsets from write pointers instead.
25292         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
25293
25294 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
25295
25296         [BZ #14543]
25297         * libio/Makefile (tests): New test case tst-fseek.
25298         * libio/tst-fseek.c: New test case to verify that fseek/ftell
25299         combination works in wide mode.
25300         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
25301         state when the external buffer state changes.
25302
25303 2012-09-27  David S. Miller  <davem@davemloft.net>
25304
25305         [BZ #14376]
25306         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
25307         pass reloc->r_addend in as the 'high' argument to
25308         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
25309
25310         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25311
25312 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
25313
25314         * rt/tst-aio2.c: Include <pthread.h>.
25315         * rt/tst-aio3.c: Likewise.
25316
25317 2012-09-27  Steve Ellcey  <sellcey@mips.com>
25318
25319         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
25320
25321 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
25322
25323         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
25324         contents on [SHARED].
25325
25326 2012-09-26  Marek Polacek  <polacek@redhat.com>
25327
25328         [BZ #14530]
25329         [BZ #13741]
25330         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
25331         for C++ and GCC <4.3 as well as for non GCC compilers.
25332
25333 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
25334
25335         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25336
25337 2012-09-25  Roland McGrath  <roland@hack.frob.com>
25338
25339         * Makefile.in (all, install): Declare with .PHONY.
25340         Reported by Michael Hope <michael.hope@linaro.org>.
25341
25342 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25343
25344         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
25345         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
25346         system header.
25347         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
25348         Likewise.
25349         (sydep_routines): Add the new and the internal functions.
25350         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
25351         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
25352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
25353         (GLIBC_2.17): Add the new function.
25354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
25355         (GLIBC_2.17): Likewise.
25356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
25357         (GLIBC_2.17): Likewise.
25358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
25359         (GLIBC_2.17): Likewise.
25360         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
25361
25362 2012-09-25  Alan Modra  <amodra@gmail.com>
25363
25364         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
25365         Add release barrier before setting once_control to say
25366         initialisation is done.  Add hints on lwarx.  Use macro in
25367         place of isync.
25368         (clear_once_control): Add release barrier.
25369
25370 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
25371
25372         [BZ #13629]
25373         * math/s_clog.c (__clog): Handle more values close to |z| = 1
25374         specially.
25375         * math/s_clog10.c (__clog10): Likewise.
25376         * math/s_clog10f.c (__clog10f): Likewise.
25377         * math/s_clog10l.c (__clog10l): Likewise.
25378         * math/s_clogf.c (__clogf): Likewise.
25379         * math/s_clogl.c (__clogl): Likewise.
25380         * math/Makefile (libm-calls): Add x2y2m1.
25381         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
25382         (__x2y2m1): Likewise.
25383         (__x2y2m1l): Likewise.
25384         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
25385         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
25386         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
25387         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
25388         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
25389         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
25390         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
25391         * sysdeps/i386/fpu/libm-test-ulps: Update.
25392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25393
25394         [BZ #14621]
25395         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
25396         int as type of variable DEPTH.
25397         (glob): Use size_t instead of int as type of variables NEWCOUNT
25398         and OLD_PATHC.
25399
25400 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25401
25402         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
25403         Add s_sincosf-sse2.
25404         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
25405         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
25406         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
25407         macros for using routine as __sincosf_ia32.
25408         Use macro for function declaration and weak_alias.
25409         * sysdeps/i386/fpu/libm-test-ulps: Update.
25410
25411         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
25412         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25413
25414         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
25415         subnormal argument.
25416         * math/s_cexpf.c (__cexpf): Likewise.
25417         * math/s_csinf.c (__csinf): Likewise.
25418         * math/s_csinhf.c (__csinhf): Likewise.
25419         * math/s_ctanf.c (__ctanf): Likewise.
25420         * math/s_ctanhf.c (__ctanhf): Likewise.
25421         * math/s_ccosh.c (__ccoshf): Likewise.
25422         * math/s_cexp.c (__cexpl): Likewise.
25423         * math/s_csin.c (__csin): Likewise.
25424         * math/s_csinh.c (__csinh): Likewise.
25425         * math/s_ctan.c (__ctan): Likewise.
25426         * math/s_ctanh.c (ctanh): Likewise.
25427         * math/s_ccoshl.c (__ccoshl): Likewise.
25428         * math/s_cexpl.c (__cexpl): Likewise.
25429         * math/s_csinl.c (__csinl): Likewise.
25430         * math/s_csinhl.c (__csinhl): Likewise.
25431         * math/s_ctanl.c (__ctanl): Likewise.
25432         * math/s_ctanhl.c (__ctanhl): Likewise.
25433
25434 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
25435
25436         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
25437         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
25438         (_IO_off_t): Define to __off_t, not _G_off_t.
25439         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
25440         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
25441         (_IO_wint_t): Define to wint_t, not _G_wint_t.
25442         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
25443         type of __dummy and __dummy2 fields.
25444         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
25445         (_G_ssize_t): Likewise.
25446         (_G_off_t): Likewise.
25447         (_G_pid_t): Likewise.
25448         (_G_uid_t): Likewise.
25449         (_G_wchar_t): Likewise.
25450         (_G_wint_t): Likewise.
25451         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
25452         (_G_ssize_t): Likewise.
25453         (_G_off_t): Likewise.
25454         (_G_pid_t): Likewise.
25455         (_G_uid_t): Likewise.
25456         (_G_wchar_t): Likewise.
25457         (_G_wint_t): Likewise.
25458         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
25459         (_G_ssize_t): Likewise.
25460         (_G_off_t): Likewise.
25461         (_G_pid_t): Likewise.
25462         (_G_uid_t): Likewise.
25463         (_G_wchar_t): Likewise.
25464         (_G_wint_t): Likewise.
25465
25466 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
25467
25468         * malloc/arena.c: Include malloc-sysdep.h.
25469         (shrink_heap): Use check_may_shrink_heap to decide if madvise
25470         is sufficient to shrink the heap or an unmap is needed.
25471         * sysdeps/generic/malloc-sysdep.h: New file.  Define
25472         new function check_may_shrink_heap.
25473         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
25474         new function check_may_shrink_heap.
25475
25476 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
25477
25478         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
25479         comments.
25480
25481 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
25482
25483         * catgets/test-gencat.sh: Add "set -e".
25484         * elf/tst-pathopt.sh: Likewise.
25485         * grp/tst_fgetgrent.sh: Likewise.
25486         * iconvdata/run-iconv-test.sh: Likewise.
25487         * intl/tst-gettext.sh: Likewise.
25488         * intl/tst-gettext2.sh: Likewise.
25489         * intl/tst-gettext4.sh: Likewise.
25490         * intl/tst-gettext6.sh: Likewise.
25491         * intl/tst-translit.sh: Likewise.
25492         * io/ftwtest-sh: Likewise.
25493         * libio/test-freopen.sh: Likewise.
25494         * malloc/tst-mtrace.sh: Likewise.
25495         * posix/globtest.sh: Likewise.
25496         * posix/tst-getconf.sh: Likewise.
25497         * posix/wordexp-tst.sh: Likewise.
25498         * stdio-common/tst-printf.sh: Likewise.
25499         * stdio-common/tst-unbputc.sh: Likewise.
25500         * stdlib/tst-fmtmsg.sh: Likewise.
25501         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
25502         * catgets/Makefile: Do not specify -e option when running
25503         testsuite shell scripts.
25504         * elf/Makefile: Likewise.
25505         * grp/Makefile: Likewise.
25506         * iconvdata/Makefile: Likewise.
25507         * intl/Makefile: Likewise.
25508         * io/Makefile: Likewise.
25509         * libio/Makefile: Likewise.
25510         * malloc/Makefile: Likewise.
25511         * posix/Makefile: Likewise.
25512         * stdio-common/Makefile: Likewise.
25513         * stdlib/Makefile: Likewise.
25514         * sysdeps/x86_64/Makefile: Likewise.
25515
25516         * io/ftwtest-sh: Add copyright header.
25517         * posix/globtest.sh: Likewise.
25518         * posix/tst-getconf.sh: Likewise.
25519         * posix/wordexp-tst.sh: Likewise.
25520         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
25521
25522 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
25523
25524         [BZ #13679]
25525         * Makeconfig (+link): Defined as $(+link-static) if
25526         $(build-shared) isn't yes.
25527         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
25528         isn't yes.
25529         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
25530
25531         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
25532
25533         [BZ #14562]
25534         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
25535         new chunk size with MALLOC_ALIGN_MASK.
25536
25537 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
25538
25539         [BZ #5044]
25540         * stdio-common/printf_fphex.c: Include <stdbool.h> and
25541         <rounding-mode.h>.
25542         (__printf_fphex): Determine rounding using get_rounding_mode and
25543         round_away.
25544         * stdio-common/tst-printf-round.c (struct hex_test): New
25545         structure.
25546         (hex_tests): New variable.
25547         (test_hex_in_one_mode): New function.
25548         (do_test): Also run tests for hex float output.
25549
25550 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
25551
25552         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
25553         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
25554         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
25555         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
25556         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
25557         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
25558         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
25559         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
25560
25561 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
25562
25563         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
25564         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
25565         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
25566         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
25567
25568 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
25569
25570         [BZ #14579]
25571         * elf/rtld.c (dl_main): Limit the check for self loading to normal
25572         mode only.
25573         * elf/tst-rtld-load-self.sh: New test.
25574         * elf/Makefile: Run it.
25575
25576 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
25577
25578         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
25579         (tst-writev-ENV): Remove.
25580         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
25581
25582 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
25583
25584         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
25585
25586 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
25587
25588         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
25589         unconditional.
25590         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
25591         Likewise.
25592         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
25593         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
25594         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
25595         Likewise.
25596
25597 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
25598
25599         [BZ #14587]
25600         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
25601         * config.make.in (have-cpp-asm-debuginfo): Removed.
25602         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
25603         * configure: Regenerated.
25604
25605 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
25606
25607         [BZ #5044]
25608         * stdio-common/printf_fp.c: Include <stdbool.h> and
25609         <rounding-mode.h>.
25610         (___printf_fp): Determine rounding using get_rounding_mode and
25611         round_away.
25612         * stdio-common/tst-printf-round.c: New file.
25613         * stdio-common/Makefile (tests): Add tst-printf-round.
25614         (link-libm): New variable.
25615         ($(objpfx)tst-printf-round): Depend in $(link-libm).
25616
25617 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
25618
25619         [BZ #14576]
25620         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
25621         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
25622         Likewise.
25623         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
25624         Likewise.
25625
25626 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
25627
25628         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
25629         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
25630         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
25631         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
25632
25633 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
25634
25635         [BZ #14518]
25636         * include/rounding-mode.h: New file.
25637         * sysdeps/generic/get-rounding-mode.h: Likewise.
25638         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
25639         * stdlib/strtod_l.c: Include <rounding-mode.h>.
25640         (MAX_VALUE): New macro.
25641         (MIN_VALUE): Likewise.
25642         (overflow_value): New function.
25643         (underflow_value): Likewise.
25644         (round_and_return): Use overflow_value and underflow_value to
25645         determine return values in overflow and underflow cases.  Use
25646         round_away to determine rounding depending on rounding mode.
25647         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
25648         determine return values in overflow and underflow cases.
25649         * stdlib/tst-strtod-round.c: Include <fenv.h>.
25650         (struct test_results): New structure.
25651         (struct test): Use struct test_results to store expected results
25652         for all rounding modes.
25653         (TEST): Include expected results for all rounding modes.
25654         (test_in_one_mode): New function.
25655         (do_test): Use test_in_one_mode to compute and check results.
25656         Check results for all rounding modes.
25657         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
25658         $(link-libm).
25659
25660 2012-12-09  Allan McRae  <allan@archlinux.org>
25661
25662         * sysdeps/i386/fpu/libm-test-ulps: Update
25663
25664 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
25665
25666         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
25667         (_G_int32_t): Likewise.
25668         (_G_uint16_t): Likewise.
25669         (_G_uint32_t): Likewise.
25670         (_G_HAVE_BOOL): Likewise.
25671         (_G_HAVE_ATEXIT): Likewise.
25672         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
25673         (_G_HAVE_IO_FILE_OPEN): Likewise.
25674         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
25675         (_G_int32_t): Likewise.
25676         (_G_uint16_t): Likewise.
25677         (_G_uint32_t): Likewise.
25678         (_G_HAVE_BOOL): Likewise.
25679         (_G_HAVE_ATEXIT): Likewise.
25680         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
25681         (_G_HAVE_IO_FILE_OPEN): Likewise.
25682         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
25683         (_G_int32_t): Likewise.
25684         (_G_uint16_t): Likewise.
25685         (_G_uint32_t): Likewise.
25686         (_G_HAVE_BOOL): Likewise.
25687         (_G_HAVE_ATEXIT): Likewise.
25688         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
25689         (_G_HAVE_IO_FILE_OPEN): Likewise.
25690
25691 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
25692
25693         * csu/libc-tls.c: Update copyright years.
25694
25695 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
25696
25697         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
25698         [!_G_USING_THUNKS]: Remove conditional code.
25699         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
25700         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
25701
25702         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
25703         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
25704         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
25705         (_G_VTABLE_LABEL_PREFIX): Likewise.
25706         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
25707         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
25708         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
25709         (_G_VTABLE_LABEL_PREFIX): Likewise.
25710         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
25711         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
25712         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
25713         (_G_VTABLE_LABEL_PREFIX): Likewise.
25714         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
25715
25716 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
25717
25718         * libio/Makefile: Include ../Makeconfig before tests.
25719         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
25720         only if $(build-shared) is yes.
25721
25722         * iconv/gconv_db.c: Update copyright years.
25723
25724 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25725
25726         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
25727         unwind info if defined PIC. Fix special cases description.
25728         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
25729
25730         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
25731         DP_HI_MASK entry.
25732         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
25733
25734 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
25735
25736         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
25737
25738         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
25739         is NULL.
25740
25741         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
25742         (LDLIBS-tst-chk4): This.
25743         (LDFLAGS-tst-chk5): Renamed to ...
25744         (LDLIBS-tst-chk5): This.
25745         (LDFLAGS-tst-chk6): Renamed to ...
25746         (LDLIBS-tst-chk6): This.
25747         (LDFLAGS-tst-lfschk4): Renamed to ...
25748         (LDLIBS-tst-lfschk4): This.
25749         (LDFLAGS-tst-lfschk5): Renamed to ...
25750         (LDLIBS-tst-lfschk5): This.
25751         (LDFLAGS-tst-lfschk6): Renamed to ...
25752         (LDLIBS-tst-lfschk6): This.
25753
25754         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
25755         on $(common-objpfx)soversions.mk.
25756
25757 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
25758
25759         [BZ #10014]
25760         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
25761         example host name.
25762
25763 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
25764
25765         * malloc/arena.c (arena_get_retry): New function that gets
25766         another arena for the caller to try its request on.
25767         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
25768         current arena cannot fulfill the request.
25769         (__libc_memalign): Likewise.
25770         (__libc_memalign): Likewise.
25771         (__libc_pvalloc): Likewise.
25772         (__libc_calloc): Likewise.
25773
25774 2012-09-05  John Tobey  <john.tobey@gmail.com>
25775
25776         [BZ #13542]
25777         * manual/arith.texi (Operations on Complex): Fix description
25778         of carg branch cut.
25779
25780 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
25781
25782         [BZ #10014]
25783         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
25784         host name.
25785
25786         [BZ #10038]
25787         * manual/memory.texi (Memory): Make order of menu items match
25788         order of sections.
25789
25790 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
25791
25792         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
25793         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
25794         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
25795
25796 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
25797
25798         * csu/libc-tls.c (static_dtv): Renamed to ...
25799         (_dl_static_dtv): This.  Make it global.
25800         (_dl_initial_dtv): Removed.
25801         (__libc_setup_tls): Updated.
25802         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
25803         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
25804         DL_INITIAL_DTV.
25805
25806 2012-09-06  Petr Machata  <pmachata@redhat.com>
25807
25808         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
25809         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
25810         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
25811         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
25812
25813 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
25814
25815         [BZ #14545]
25816         * csu/libc-tls.c (_dl_initial_dtv): New variable.
25817         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
25818         freeing dtv[-1].
25819
25820 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
25821
25822         [BZ #14544]
25823         * Makeconfig (link-static-before-libc): Replace $(+prector)
25824         with $(+prectorT).
25825         (link-static-after-libc): Replace $(+postctor) with
25826         $(+postctorT).
25827         (link-bounded): Replace $(+prector)/$(+postctor) with
25828         $(+prectorT)/$(+postctorT).
25829         (+prectorT): New macro.
25830         (+postctorT): Likewise.
25831
25832 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
25833
25834         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
25835         (round_str): Handle values above the maximum for IBM long double
25836         as inexact.
25837         * stdlib/tst-strtod-round.c (tests): Regenerated.
25838
25839 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25840
25841         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
25842         assembler flag.
25843         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
25844         zarch_nohighgprs around the zarch optimized routines.
25845         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
25846         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
25847         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
25848         for zarch.
25849
25850 2012-09-05  David S. Miller  <davem@davemloft.net>
25851
25852         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25853
25854         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
25855         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
25856         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
25857         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
25858         entries.
25859
25860 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
25861
25862         * malloc/arena.c: Fold copyright years.
25863         * malloc/mcheck.c, malloc/memusage.c: Likewise.
25864
25865 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
25866
25867         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
25868
25869 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
25870
25871         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
25872
25873 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
25874
25875         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
25876         change internal state upon failure.
25877
25878 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
25879
25880         * malloc/mcheck.c (mcheck_check_all): Fix typo.
25881         * malloc/memusage.c (mmap): Likewise.
25882         (mmap64, mremap): Likewise.  Adjust name in comment.
25883
25884 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
25885
25886         * libio/fileops.c: Fix typos in comments.
25887         * libio/oldfileops.c: Likewise.
25888         * libio/wfileops.c: Likewise.
25889
25890 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
25891
25892         [BZ #1349]
25893         * malloc/Makefile (tests): Add tst-malloc-usable test case.
25894         (tst-malloc-usable-ENV): Set environment for test case.
25895         * malloc/hooks.c (malloc_check_get_size): New function to get
25896         requested size.
25897         * malloc/malloc.c (musable): Use malloc_check_get_size.
25898         * malloc/tst-malloc-usable.c: New test case.
25899
25900 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
25901
25902         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
25903
25904 2012-09-05  Allan McRae  <allan@archlinux.org>
25905
25906         [BZ #13966]
25907         * configure.in (CXX_SYSINCLUDES): Use compiler output to
25908         determine header location.
25909         * configure: Regenerated.
25910
25911 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
25912
25913         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
25914         float format.
25915         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
25916         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
25917         format.
25918         (test): Regenerate.
25919
25920 2012-09-04  David S. Miller  <davem@davemloft.net>
25921
25922         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
25923         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
25924         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
25925
25926 2012-09-04  Florian Weimer  <fweimer@redhat.com>
25927
25928         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
25929         failures.
25930
25931         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
25932
25933 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
25934
25935         [BZ #9914]
25936         * libio/iogetdelim.c: Include <limits.h>.
25937         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
25938         + len + 1 would overflow.
25939
25940 2012-09-03  Andreas Jaeger  <aj@suse.de>
25941
25942         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25943         * sysdeps/i386/fpu/libm-test-ulps: Update.
25944
25945 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25946
25947         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
25948         Add s_sinf-sse2, s_conf-sse2.
25949
25950         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
25951         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
25952         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
25953         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
25954
25955         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
25956         for using routine as __sinf_ia32.
25957         Use macro for function declaration and weak_alias.
25958         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
25959         for using routine as __cosf_ia32.
25960         Use macro for function declaration and weak_alias.
25961
25962         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
25963         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
25964
25965         * sysdeps/x86_64/fpu/s_sinf.S: New file.
25966         * sysdeps/x86_64/fpu/s_cosf.S: New file.
25967         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25968
25969         * math/libm-test.inc (cos_test): Add more test cases.
25970         (sin_test): Likewise.
25971         (sincos_test): Likewise.
25972
25973 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25974
25975         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
25976         (IFUNC_RESOLVE): Make pointers to the specialized implementations
25977         hidden.
25978         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
25979
25980 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
25981
25982         [BZ #14538]
25983         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
25984         first element of the GOT.
25985         (elf_machine_load_address): Return the difference between
25986         the runtime address of _DYNAMIC and elf_machine_dynamic ().
25987
25988 2012-09-01  Allan McRae  <allan@archlinux.org>
25989
25990         [BZ #13412]
25991         * configure.in (AWK): Require gawk version 3.0 or later.
25992         * configure: Regenerated.
25993
25994 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
25995
25996         * sysdeps/unix/sysv/linux/kernel-features.h
25997         (__ASSUME_POSIX_CPU_TIMERS): Remove.
25998         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
25999         [__NR_clock_getres]: Make code unconditional.
26000         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
26001         (clock_getcpuclockid): Remove code left unreachable by removal of
26002         conditionals.
26003         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
26004         code unconditional.
26005         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
26006         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
26007         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
26008         Make code unconditional.
26009         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
26010         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
26011         * sysdeps/unix/sysv/linux/clock_settime.c
26012         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
26013         conditional code.
26014         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
26015         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
26016
26017 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
26018
26019         [BZ #14476]
26020         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
26021         scripts/test-installation.pl.
26022
26023         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
26024         and $ld_so_version if it is set.
26025
26026 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
26027
26028         [BZ #14516]
26029         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
26030         failure if reading from procfs failed.
26031         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
26032
26033 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
26034
26035         * sysdeps/unix/sysv/linux/kernel-features.h
26036         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
26037         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
26038         Remove conditional code.
26039         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26040         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
26041         Remove conditional code.
26042         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26043         * sysdeps/unix/sysv/linux/i386/fxstat.c
26044         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
26045         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26046         * sysdeps/unix/sysv/linux/i386/fxstatat.c
26047         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
26048         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26049         * sysdeps/unix/sysv/linux/i386/lxstat.c
26050         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
26051         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26052         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
26053         Remove conditional code.
26054         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26055         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
26056         Remove conditional code.
26057         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26058         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
26059         <kernel-features.h>.
26060         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
26061         Remove.
26062         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
26063         Remove conditional code.
26064         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26065         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
26066         Remove conditional.
26067
26068 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
26069
26070         [BZ #5400]
26071         * NEWS: Add fixed bug number.
26072
26073 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
26074
26075         [BZ #14519]
26076         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
26077         underflowing exponent in case of negative sign.
26078         * stdlib/tst-strtod-round-data: Add more tests.
26079         * stdlib/tst-strtod-round.c (tests): Regenerated.
26080
26081         [BZ #3479]
26082         * stdlib/strtod_l.c (NDIG): Remove.
26083         (HEXNDIG): Likewise.
26084         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
26085         smallest representable value.
26086         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
26087         lie within an exact representation of 1/2 ulp of the result.
26088         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
26089         unconditionally.
26090         (TENS_P9_IDX): Define unconditionally.
26091         (TENS_P9_SIZE): Likewise.
26092         (TENS_P10_IDX): Likewise.
26093         (TENS_P10_SIZE): Likewise.
26094         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
26095         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
26096         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
26097         entries for 10^2^13 and 10^2^14.
26098         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
26099         (TENS_P13_IDX): Define.
26100         (TENS_P13_SIZE): Likewise.
26101         (TENS_P14_IDX): Likewise.
26102         (TENS_P14_SIZE): Likewise.
26103         (_fpioconst_pow10): Change array size to
26104         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
26105         unconditional.
26106         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
26107         1024]: Add entries for 10^2^13 and 10^2^14.
26108         [LAST_POW10 > _LAST_POW10]: Remove #error.
26109         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
26110         (_fpioconst_pow10): Change array size to
26111         FPIOCONST_POW10_ARRAY_SIZE.
26112         * stdlib/gen-fpioconst.c: New file.
26113         * stdlib/gen-tst-strtod-round.c: Likewise.
26114         * stdlib/tst-strtod-round-data: Likewise.
26115         * stdlib/tst-strtod-round.c: Likewise.
26116         * stdlib/Makefile (tests): Add tst-strtod-round.
26117
26118         [BZ #14459]
26119         * stdlib/strtod_l.c: Include <stdint.h>.
26120         (NDEBUG): Do not define.
26121         (round_and_return): Change EXPONENT parameter to type intmax_t.
26122         Rearrange calculations to avoid internal overflow possibilities.
26123         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
26124         Rearrange calculations to avoid internal overflow possibilities.
26125         Assert that number fits inside MPNSIZE limbs.
26126         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
26127         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
26128         calculations and add assertions to avoid internal overflow
26129         possibilities.  Add casts to avoid signed/unsigned operations.
26130         * stdlib/tst-strtod-overflow.c: New file.
26131         * stdlib/Makefile (tests): Add tst-strtod-overflow.
26132
26133 2012-08-25  Marek Polacek  <polacek@redhat.com>
26134
26135         * time/time.h: Fix some typos in comments.
26136
26137 2012-08-23  Roland McGrath  <roland@hack.frob.com>
26138
26139         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
26140         * posix/tst-rfc3484-2.c: Likewise.
26141         * posix/tst-rfc3484-3.c: Likewise.
26142
26143 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
26144
26145         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
26146         (EF_ARM_ABI_FLOAT_HARD): Likewise.
26147
26148 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
26149
26150         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
26151         #include of fxstatat64.c.
26152
26153 2012-08-22  Roland McGrath  <roland@hack.frob.com>
26154
26155         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
26156         * shadow/getspent_r.c: Likewise.
26157         * shadow/getspnam.c: Likewise.
26158         * shadow/getspnam_r.c: Likewise.
26159         * gshadow/getsgent.c: Likewise.
26160         * gshadow/getsgent_r.c: Likewise.
26161         * gshadow/getsgnam.c: Likewise.
26162         * gshadow/getsgnam_r.c: Likewise.
26163         * inet/getnetbyad.c: Likewise.
26164         * inet/getnetbyad_r.c: Likewise.
26165         * inet/getnetbynm.c: Likewise.
26166         * inet/getnetbynm_r.c: Likewise.
26167         * inet/getnetent.c: Likewise.
26168         * inet/getnetent_r.c: Likewise.
26169         * inet/getproto.c: Likewise.
26170         * inet/getproto_r.c: Likewise.
26171         * inet/getprtent.c: Likewise.
26172         * inet/getprtent_r.c: Likewise.
26173         * inet/getprtname.c: Likewise.
26174         * inet/getprtname_r.c: Likewise.
26175         * inet/getrpcbyname.c: Likewise.
26176         * inet/getrpcbyname_r.c: Likewise.
26177         * inet/getrpcbynumber.c: Likewise.
26178         * inet/getrpcbynumber_r.c: Likewise.
26179         * inet/getrpcent.c: Likewise.
26180         * inet/getrpcent_r.c: Likewise.
26181         * inet/getaliasent.c: Likewise.
26182         * inet/getaliasent_r.c: Likewise.
26183         * inet/getaliasname.c: Likewise.
26184         * inet/getaliasname_r.c: Likewise.
26185         * nscd/getgrgid_r.c: Likewise.
26186         * nscd/getgrnam_r.c: Likewise.
26187         * nscd/gethstbyad_r.c: Likewise.
26188         * nscd/gethstbynm3_r.c: Likewise.
26189         * nscd/getpwnam_r.c: Likewise.
26190         * nscd/getpwuid_r.c: Likewise.
26191         * nscd/getsrvbynm_r.c: Likewise.
26192         * nscd/getsrvbypt_r.c: Likewise.
26193         * nscd/gai.c: Likewise.
26194
26195         * configure.in (build_nscd): New substituted variable, set
26196         by --disable-build-nscd and defaults to $use_nscd.
26197         * configure: Regenerated.
26198         * config.make.in (build-nscd): New substituted variable.
26199         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
26200         Change conditional to require [$(build-nscd) = yes] as well.
26201         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
26202
26203         [BZ# 13696]
26204         * configure.in (use_nscd): New substituted variable, set by
26205         --disable-nscd.  If enabled, define USE_NSCD.
26206         * configure: Regenerated.
26207         * config.h.in: Add USE_NSCD.
26208         * config.make.in (use-nscd): New substituted variable.
26209         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
26210         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
26211         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
26212         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
26213         (CFLAGS-getgrnam_r.c): Likewise.
26214         (CFLAGS-initgroups.c): Likewise.
26215         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
26216         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
26217         Variables removed.
26218         * inet/getnetgrent_r.c
26219         (nscd_setnetgrent): New function, broken out of ...
26220         (setnetgrent): ... here.  Call it.
26221         (innetgr): Conditionalize nscd bits on [USE_NSCD].
26222         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
26223         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
26224         * nscd/Makefile (routines, aux): Move definitions after include of
26225         Makeconfig.  Conditionalize on [$(use-nscd) != no].
26226         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
26227         Conditionalize on [USE_NSCD].
26228         (is_nscd, nscd_init_cb): Likewise.
26229         (nss_load_library): Conditionalize init callback on [USE_NSCD].
26230         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
26231         * nss/nss_db/db-init.c: Likewise.
26232         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
26233         [USE_NSCD].
26234         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
26235         (make_request): Use it.
26236         (cache_valid_p): New function.
26237         (__check_pf): Use it.
26238         * NEWS: Add item for --disable-nscd.
26239
26240 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
26241
26242         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
26243         to support sed >= 4.2.1-20-ga9bf076.
26244         * configure: Regenerated.
26245
26246 2012-08-22  Roland McGrath  <roland@hack.frob.com>
26247
26248         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
26249         Conditionalize whole body on [IREL].
26250
26251 2012-08-22  Jeff Law <law@redhat.com>
26252
26253         [BZ #14505]
26254         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
26255         if the family is PF_UNSPEC.
26256
26257 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
26258
26259         * Makerules (lib-version): Rename from V.
26260         (install-lib-nosubdir): Change V to lib-version.
26261
26262 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
26263
26264         [BZ #14252]
26265         * powerpc32/power6/wcschr.c: New file.
26266         * powerpc32/power6/wcscpy.c: New file.
26267         * powerpc32/power6/wcsrchr.c: New file.
26268         * powerpc64/power6/wcschr.c: New file.
26269         * powerpc64/power6/wcscpy.c: New file.
26270         * powerpc64/power6/wcsrchr.c: New file.
26271
26272 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
26273
26274         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
26275         (two_way_short_needle): Use it.
26276         * string/strstr.c (AVAILABLE1_USES_J): Define.
26277         * string/strcasestr.c: Likewise.
26278
26279         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
26280         array references.
26281         * string/strcasestr.c (TOLOWER): Make side-effect safe.
26282
26283         [BZ #11607]
26284         * NEWS: Add an entry.
26285         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
26286         define their defaults.
26287         (two_way_short_needle): Detect end-of-string on-the-fly.
26288         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
26289         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
26290         * string/bug-strcasestr1.c: New test.
26291         * string/Makefile: Run it.
26292
26293 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
26294
26295         [BZ #11607]
26296         * string/str-two-way.h (two_way_short_needle): Optimize matching of
26297         the first character.
26298
26299 2012-08-21  Roland McGrath  <roland@hack.frob.com>
26300
26301         * csu/elf-init.c (__libc_csu_irel): Function removed.
26302         * csu/libc-start.c (apply_irel): New function.
26303         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
26304
26305 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
26306
26307         * sysdeps/unix/sysv/linux/kernel-features.h
26308         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
26309         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
26310         <kernel-features.h>.
26311         [__NR_fadvise64_64]: Make code unconditional.
26312         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
26313         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
26314         !__NR_fadvise64_64)]: Likewise.
26315         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
26316         !__NR_fadvise64_64))]: Likewise.
26317         [__NR_fadvise64]: Make code unconditional.
26318         [!__NR_fadvise64]: Remove conditional code.
26319         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
26320         <kernel-features.h>.
26321         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
26322         unconditional.
26323         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
26324         conditional code.
26325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
26326         not include <kernel-features.h>.
26327         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
26328         unconditional.
26329         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
26330         conditional code.
26331         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
26332         include <kernel-features.h>.
26333         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
26334         unconditional.
26335         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
26336         conditional code.
26337
26338 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
26339
26340         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
26341         slight instruction rearrangements per scrollpipe analysis.
26342         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
26343
26344 2012-08-20  Roland McGrath  <roland@hack.frob.com>
26345
26346         * manual/syslog.texi (syslog; vsyslog, closelog):
26347         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
26348         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
26349
26350         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
26351         DSOCAPS to match condition on defining it.
26352
26353 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
26354
26355         * sysdeps/unix/sysv/linux/kernel-features.h
26356         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
26357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
26358         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
26359         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
26360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
26361         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
26362         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
26363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
26364         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
26365         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
26366
26367         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
26368         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
26369
26370         * sysdeps/unix/sysv/linux/kernel-features.h
26371         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
26372         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
26373         unconditional.
26374         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26375         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
26376         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
26377         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26378         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
26379         Make code unconditional.
26380         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26381         (__mmap64) [!__NR_mmap2]: Likewise.
26382         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
26383         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
26384         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26385         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
26386         [__NR_mmap2]: Make code unconditional.
26387         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26388         (__mmap64) [!__NR_mmap2]: Likewise.
26389
26390 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26391
26392         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
26393
26394 2012-08-18  Andreas Jaeger  <aj@suse.de>
26395
26396         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
26397
26398 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
26399
26400         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
26401         * include/unistd.h (__have_sock_cloexec): Likewise.
26402         (__have_pipe2): Likewise.
26403         (__have_dup3): Likewise.
26404
26405 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
26406
26407         [BZ #9685]
26408         * include/unistd.h (__have_pipe2): Change define into an extern int.
26409         (__have_dup3): Likewise.
26410         * socket/have_sock_cloexec.c: Include fcntl.h.
26411         (__have_pipe2): New variable.
26412         (__have_dup3): Likewise.
26413
26414 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
26415
26416         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
26417
26418 2012-08-17  Marek Polacek  <polacek@redhat.com>
26419
26420         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
26421         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
26422
26423 2012-08-17  Roland McGrath  <roland@hack.frob.com>
26424
26425         * configure.in: Add AC_SUBST for sysheaders.
26426         * configure: Regenerated.
26427         * config.make.in (sysheaders): New substituted variable.
26428
26429         * sysdeps/unix/mkfifo.c: Moved ...
26430         * sysdeps/posix/mkfifo.c: ... here.
26431         * sysdeps/unix/mkfifoat.c: Moved ...
26432         * sysdeps/posix/mkfifoat.c: ... here.
26433
26434         * sysdeps/unix/utime.c: Moved ...
26435         * sysdeps/posix/utime.c: ... here.
26436
26437         * sysdeps/unix/time.c: Moved ...
26438         * sysdeps/posix/time.c: ... here.
26439         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
26440         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
26441
26442         * sysdeps/unix/nice.c: Moved ...
26443         * sysdeps/posix/nice.c: ... here.
26444
26445         * sysdeps/unix/alarm.c: Moved ...
26446         * sysdeps/posix/alarm.c: ... here.
26447
26448         * intl/Makefile ($(codeset_mo)): Depend on the input file.
26449
26450 2012-08-17  Jeff Law <law@redhat.com>
26451
26452         * intl/Makefile (codeset_mo): New variable.
26453         ($(codeset_mo)): New target.
26454         (tst-codeset.out): Depend on that.  Remove explicit rule.
26455         (tst-gettext3.out, tst-gettext5.out): Likewise.
26456         (LOCPATH-ENV, tst-codeset-ENV): New variables.
26457         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
26458         * intl/tst-codeset.sh: Remove.
26459         * intl/tst-gettext3.sh: Likewise.
26460         * intl/tst-gettext5.sh: Likewise.
26461
26462 2012-08-17  Roland McGrath  <roland@hack.frob.com>
26463
26464         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
26465         * sysdeps/unix/syscalls.list: ... here.
26466
26467         * sysdeps/posix/getaddrinfo.c
26468         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
26469         (gaiconf_init, gaiconf_reload): Use them.
26470         [!_STATBUF_ST_NSEC]
26471         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
26472         Define using time_t rather than struct timespec.
26473
26474         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
26475         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
26476         Macros removed.
26477         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
26478         [!NO_THREADS].
26479         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
26480         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
26481         Likewise.
26482
26483         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
26484         __libc_cleanup_push argument.
26485
26486         * bits/param.h: New file.
26487         * misc/sys/param.h: New file.
26488         * include/sys/param.h: New file.
26489         * misc/Makefile (headers): Add bits/param.h.
26490         * sysdeps/generic/sys/param.h: File removed.
26491         * sysdeps/unix/sysv/linux/bits/param.h: New file.
26492         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
26493         * sysdeps/mach/hurd/bits/param.h: New file.
26494         * sysdeps/mach/hurd/sys/param.h: File removed.
26495
26496         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
26497         last change.
26498
26499         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
26500         [_IO_MTSAFE_IO].
26501         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
26502         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
26503         New macros.
26504
26505         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
26506         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
26507         rather than -D_IO_MTSAFE_IO conditionally.
26508         * stdio-common/Makefile (CPPFLAGS): Likewise.
26509         * wcsmbs/Makefile (CPPFLAGS): Likewise.
26510         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
26511         Use $(libio-mtsafe).
26512         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
26513         of -D_IO_MTSAFE_IO.
26514         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
26515         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
26516         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
26517         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
26518         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
26519         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
26520         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
26521         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
26522         (CFLAGS-fread_u_chk.c): Likewise.
26523         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
26524         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
26525         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
26526         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
26527         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
26528         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
26529         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
26530         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
26531         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
26532
26533         * libio/Makefile: Test [$(libc-reentrant) = yes]
26534         instead of [$(filter %REENTRANT, $(defines)) nonempty].
26535
26536         * Makeconfig
26537         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
26538         * sysdeps/pthread/configure: File removed.
26539         * sysdeps/pthread/Makeconfig: New file.
26540         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
26541         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
26542
26543 2012-08-16  Gary Benson  <gbenson@redhat.com>
26544
26545         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
26546         unmapping the first object in a namespace.
26547
26548 2012-08-16  Roland McGrath  <roland@hack.frob.com>
26549
26550         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
26551         (__internal_setnetgrent): ... this.  Add internal_function to
26552         definition.  Add libc_hidden_def.
26553         (setnetgrent): Update caller.
26554         (internal_endnetgrent): Renamed to ...
26555         (__internal_endnetgrent): ... this.  Add internal_function to
26556         definition.  Add libc_hidden_def.
26557         (endnetgrent): Update caller.
26558         (internal_getnetgrent_r): Renamed to ...
26559         (__internal_getnetgrent_r): ... this.  Add internal_function to
26560         definition.  Add libc_hidden_def.
26561         (__getnetgrent_r): Update caller.
26562         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
26563
26564 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
26565
26566         * stdlib/longlong.h: Update from GCC.
26567
26568 2012-08-16  Roland McGrath  <roland@hack.frob.com>
26569
26570         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
26571         on _QL, which is set by umul_ppmm but never used.
26572         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
26573         variables, which are set by GMP macros but never used.
26574         * stdio-common/_itowa.c (_itowa): Likewise.
26575         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
26576         * stdlib/mod_1.c (mpn_mod_1): Likewise.
26577
26578 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
26579
26580         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
26581         struct La_sh_regs is not constant.
26582         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
26583         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
26584         and struct La_sparc64_regs are not constant.
26585
26586 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
26587
26588         * sysdeps/unix/sysv/linux/kernel-features.h
26589         (__ASSUME_POSIX_TIMERS): Remove.
26590         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
26591         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
26592         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
26593         Make code unconditional.
26594         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
26595         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
26596         Make code unconditional.
26597         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
26598         * sysdeps/unix/sysv/linux/clock_nanosleep.c
26599         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
26600         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
26601         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
26602         Make code unconditional.
26603         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
26604         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
26605         (__libc_missing_posix_timers): Remove.
26606
26607 2012-08-15  Roland McGrath  <roland@hack.frob.com>
26608
26609         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
26610         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
26611
26612         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
26613
26614         * elf/dl-sym.c: Include <stdlib.h>.
26615
26616         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
26617         constants, which avoids warnings in 32-bit builds.
26618
26619         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
26620         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
26621
26622         * misc/lseek.c: File moved to ...
26623         * io/lseek.c: ... here.
26624
26625         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
26626
26627         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
26628         shifting LEN more than 31 bits at once.
26629
26630 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26631
26632         [BZ #14195]
26633         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
26634         segmentation fault for a case of two empty input strings.
26635         * string/test-strncasecmp.c (check1): Renamed to...
26636         (bz12205): ...this.
26637         (bz14195): Add new testcase for two empty input strings and N > 0.
26638         (test_main): Call new testcase, adapt for renamed function.
26639
26640 2012-08-15  Andreas Jaeger  <aj@suse.de>
26641
26642         [BZ #14090]
26643         * crypt/md5test2.c: New test, based on test supplied by Serge
26644         Belyshev <belyshev@depni.sinp.msu.ru>.
26645         * crypt/Makefile (xtests): Add md5test-giant..
26646         * crypt/Makefile ($(objpfx)md5test-giant): Add.
26647
26648 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
26649
26650         [BZ #14090]
26651         * crypt/md5.c (md5_process_block): Don't assume the buffer
26652         length is less than 2**32.
26653         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
26654         length is less than 2**64.
26655
26656 2012-08-15  Roland McGrath  <roland@hack.frob.com>
26657
26658         * string/str-two-way.h: Include <sys/param.h>.
26659         (MAX): Macro removed.
26660
26661         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
26662         Move #define and #undef of memmove to just before and after
26663         including <string.h>.
26664
26665         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
26666         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
26667         and after including <string.h>.  Move declarations of
26668         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
26669         to before #include "string/memmove.c".
26670
26671         * include/dirent.h: Declare __getdirentries.
26672
26673         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
26674         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
26675
26676 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
26677
26678         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
26679         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
26680         * sysdeps/i386/configure: Regenerated.
26681         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
26682         STABS_CURRENT_FILE, and STABS_FUN.
26683         (END): Remove call to STABS_FUN_END.
26684         (STABS_CURRENT_FILE1): Delete.
26685         (STABS_CURRENT_FILE): Likewise.
26686         (STABS_FUN): Likewise.
26687         (STABS_FUN_END): Likewise.
26688         (STABS_FUN2): Likewise.
26689         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
26690         * sysdeps/x86_64/configure: Regenerated.
26691
26692 2012-08-14  Roland McGrath  <roland@hack.frob.com>
26693
26694         * elf/dl-open.c: Include <atomic.h>.
26695         * elf/dl-lookup.c: Likewise.
26696
26697 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
26698
26699         * sysdeps/unix/sysv/linux/kernel-features.h
26700         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
26701         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
26702         unconditionally.
26703         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
26704         unconditionally.
26705         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
26706         condition on __ASSUME_CLONE_THREAD_FLAGS.
26707
26708 2012-08-14  Andreas Jaeger  <aj@suse.de>
26709
26710         * sysdeps/i386/fpu/libm-test-ulps: Update.
26711
26712 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
26713
26714         * include/atomic.h (atomic_exchange_and_add): Split into ...
26715         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
26716         New atomic macros.
26717
26718 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
26719
26720         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26721
26722 2012-08-13  Jeff Law <law@redhat.com>
26723
26724         * manual/stdio.texi (snprintf): Clarify handling of the trailing
26725         null byte in the output string.
26726
26727 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
26728
26729         * sysdeps/unix/sysv/linux/kernel-features.h
26730         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
26731         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
26732         (__ASSUME_ARG_MAX_STACK_BASED): Define.
26733         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
26734         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
26735         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
26736         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
26737
26738 2012-08-09  Jeff Law <law@redhat.com>
26739
26740         [BZ #13939]
26741         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
26742         When avoid_arena is set, don't retry in the that arena.  Pick the
26743         next one, whatever it might be.
26744         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
26745         (arena_lock): Pass in new parameter to arena_get2.
26746         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
26747         arena_get2.
26748         (__libc_malloc): Unify retrying after main arena failure with
26749         __libc_memalign version.
26750         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
26751
26752 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
26753
26754         [BZ #14166]
26755         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
26756         to __redirect_strstr.
26757         (__strstr_sse42): Use typeof __redirect_strstr.
26758         (__strstr_ia32): Likewise.
26759         (__libc_strstr): New prototype.
26760         (strstr): Renamed to ...
26761         (__libc_strstr): This.
26762         (strstr): New strong alias of __libc_strstr.
26763         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
26764         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
26765         __redirect_time.
26766         Include <time.h>.
26767         (__libc_time): New prototype.
26768         (time_ifunc): Replace time with __libc_time.
26769         (time): New strong alias and hidden definition of __libc_time.
26770         (__GI_time): Remove strong alias.
26771         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
26772         Include <stddef.h>.
26773         (memmove): Redefined to __redirect_memmove.
26774         (__memmove_sse2): Use typeof __redirect_memmove.
26775         (__memmove_ssse3): Likewise.
26776         (__memmove_ssse3_back): Likewise.
26777         (__libc_memmove): New prototype.
26778         (memmove): Renamed to ...
26779         (__libc_memmove): This.
26780         (memmove): New strong alias of __libc_memmove.
26781
26782 2012-08-08  Mark Salter  <msalter@redhat.com>
26783
26784         * elf/elf.h
26785         (R_MN10300_TLS_GD): Define.
26786         (R_MN10300_TLS_LD): Likewise.
26787         (R_MN10300_TLS_LDO): Likewise.
26788         (R_MN10300_TLS_GOTIE): Likewise.
26789         (R_MN10300_TLS_IE): Likewise.
26790         (R_MN10300_TLS_LE): Likewise.
26791         (R_MN10300_TLS_DTPMOD): Likewise.
26792         (R_MN10300_TLS_DTPOFF): Likewise.
26793         (R_MN10300_TLS_TPOFF): Likewise.
26794         (R_MN10300_SYM_DIFF): Likewise.
26795         (R_MN10300_ALIGN): Likewise.
26796         (R_MN10300_NUM): Update.
26797
26798 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
26799
26800         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
26801         Remove.
26802
26803 2012-08-08  Roland McGrath  <roland@hack.frob.com>
26804
26805         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
26806
26807         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
26808         sysdeps/unix -> sysdeps/posix move.
26809         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
26810
26811 2012-08-07      Allan McRae     <allan@archlinux.org>
26812
26813         [BZ #14303]
26814         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
26815         (SUNOS_CPP): Likewise.
26816         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
26817         not found.
26818         (open_input): Call CPP using execvp.
26819
26820 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
26821
26822         * sysdeps/unix/sysv/linux/kernel-features.h
26823         (__ASSUME_PROT_GROWSUPDOWN): Remove.
26824         (__ASSUME_NO_CLONE_DETACHED): Likewise.
26825         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
26826         (__ASSUME_WAITID_SYSCALL): Likewise.
26827         * sysdeps/unix/sysv/linux/dl-execstack.c
26828         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
26829         code unconditional.
26830         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
26831         conditional code.
26832         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
26833         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
26834         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
26835         code.
26836         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
26837         unconditional.
26838         [__ASSUME_WAITID_SYSCALL]: Likewise.
26839         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
26840
26841 2012-08-07  Roland McGrath  <roland@hack.frob.com>
26842
26843         * sysdeps/unix/closedir.c: Renamed to ...
26844         * sysdeps/posix/closedir.c: ... here.
26845         * sysdeps/unix/dirfd.c: Renamed to ...
26846         * sysdeps/posix/dirfd.c: ... here.
26847         * sysdeps/unix/dirstream.h: Renamed to ...
26848         * sysdeps/posix/dirstream.h: ... here.
26849         * sysdeps/unix/fdopendir.c: Renamed to ...
26850         * sysdeps/posix/fdopendir.c: ... here.
26851         * sysdeps/unix/opendir.c: Renamed to ...
26852         * sysdeps/posix/opendir.c: ... here.
26853         * sysdeps/unix/readdir.c: Renamed to ...
26854         * sysdeps/posix/readdir.c: ... here.
26855         * sysdeps/unix/readdir_r.c: Renamed to ...
26856         * sysdeps/posix/readdir_r.c: ... here.
26857         * sysdeps/unix/rewinddir.c: Renamed to ...
26858         * sysdeps/posix/rewinddir.c: ... here.
26859         * sysdeps/unix/seekdir.c: Renamed to ...
26860         * sysdeps/posix/seekdir.c: ... here.
26861         * sysdeps/unix/telldir.c: Renamed to ...
26862         * sysdeps/posix/telldir.c: ... here.
26863         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
26864         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
26865         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
26866         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
26867
26868         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
26869         * bits/fcntl.h: ... here.
26870
26871         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
26872         not 0.
26873         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
26874         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
26875         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
26876         (struct flock): Move l_start, l_len to the beginning.
26877         Use __pid_t for l_pid.
26878         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
26879         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
26880         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
26881         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
26882         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
26883         [__USE_LARGEFILE64] (struct flock64): New type.
26884         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
26885
26886         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
26887         * bits/dirent.h: ... here.
26888
26889         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
26890         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
26891
26892 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
26893
26894         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
26895         Change from 2.6.0 to 2.6.16.
26896         * sysdeps/unix/sysv/linux/configure: Regenerated.
26897         * sysdeps/unix/sysv/linux/kernel-features.h
26898         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
26899         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
26900         version.
26901         (__ASSUME_UTIMES): Likewise.
26902         (__ASSUME_CLONE_STOPPED): Remove.
26903         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
26904         architectures, not kernel version.
26905         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
26906         (__ASSUME_NO_CLONE_DETACHED): Likewise.
26907         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
26908         (__ASSUME_WAITID_SYSCALL): Likewise.
26909         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
26910         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
26911         * README: State 2.6.16 as minimum Linux kernel version.  Do not
26912         refer to older versions.
26913
26914 2012-08-06  Roland McGrath  <roland@hack.frob.com>
26915
26916         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
26917         Define alphasort64 as an alias.
26918         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
26919         Define versionsort64 as an alias.
26920         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
26921         Define scandir64 as an alias.
26922         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
26923         Define scandirat64 as an alias.
26924         * dirent/alphasort64.c (alphasort64):
26925         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
26926         * dirent/versionsort64.c: Likewise.
26927         * dirent/scandir64.c: Likewise.
26928         * dirent/scandirat64.c: Likewise.
26929         * sysdeps/wordsize-64/alphasort.c: File removed.
26930         * sysdeps/wordsize-64/alphasort64.c: File removed.
26931         * sysdeps/wordsize-64/scandir.c: File removed.
26932         * sysdeps/wordsize-64/scandir64.c: File removed.
26933         * sysdeps/wordsize-64/scandirat.c: File removed.
26934         * sysdeps/wordsize-64/scandirat64.c: File removed.
26935         * sysdeps/wordsize-64/versionsort.c: File removed.
26936         * sysdeps/wordsize-64/versionsort64.c: File removed.
26937         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
26938         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
26939         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
26940         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
26941         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
26942         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
26943         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
26944         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
26945
26946         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
26947         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
26948         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
26949         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
26950         [defined __arch64__ || defined __sparcv9]
26951         (__INO_T_MATCHES_INO64_T): New macro.
26952         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
26953         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
26954         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
26955         * sysdeps/unix/sysv/linux/bits/dirent.h
26956         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
26957         (_DIRENT_MATCHES_DIRENT64): New macro.
26958
26959         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
26960         Define lockf64 as an alias.
26961         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
26962         Define fseeko64 as an alias.
26963         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
26964         Define ftello64 as an alias.
26965         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
26966         Define _IO_fgetpos64 and fgetpos64 as aliases.
26967         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
26968         Define _IO_fsetpos64 and fsetpos64 as aliases.
26969         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
26970         Conditionalize body on this.
26971         * libio/fseeko64.c: Likewise.
26972         * libio/ftello64.c: Likewise.
26973         * libio/iofgetpos64.c: Likewise.
26974         * libio/iofsetpos64.c: Likewise.
26975         * sysdeps/wordsize-64/lockf.c: File removed.
26976         * sysdeps/wordsize-64/lockf64.c: File removed.
26977         * sysdeps/wordsize-64/fseeko.c: File removed.
26978         * sysdeps/wordsize-64/fseeko64.c: File removed.
26979         * sysdeps/wordsize-64/ftello.c: File removed.
26980         * sysdeps/wordsize-64/ftello64.c: File removed.
26981         * sysdeps/wordsize-64/iofgetpos.c: File removed.
26982         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
26983         * sysdeps/wordsize-64/iofsetpos.c: File removed.
26984         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
26985         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
26986         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
26987         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
26988         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
26989         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
26990         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
26991         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
26992         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
26993         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
26994         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
26995
26996         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
26997         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
26998         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
26999         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27000         [defined __arch64__ || defined __sparcv9]
27001         (__OFF_T_MATCHES_OFF64_T): New macro.
27002         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
27003         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
27004         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27005         (__OFF_T_MATCHES_OFF64_T): New macro.
27006
27007 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
27008
27009         * stdlib/secure-getenv.c (__secure_getenv): Replace
27010         GLIBC_2_16 with GLIBC_2_17.
27011
27012 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
27013
27014         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
27015         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
27016
27017 2012-08-03  David S. Miller  <davem@davemloft.net>
27018
27019         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27020
27021 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
27022
27023         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
27024         Remove.
27025         (__ASSUME_CORRECT_SI_PID): Likewise.
27026         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
27027         (__ASSUME_TMPFS_NAME): Likewise.
27028         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
27029         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
27030         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
27031         (HAVE_AUX_SECURE): Make definition unconditional.
27032         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
27033         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
27034
27035 2012-08-03  Roland McGrath  <roland@hack.frob.com>
27036
27037         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
27038         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
27039         * sysdeps/mach/hurd/eloop-threshold.h: New file.
27040         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
27041         __eloop_threshold instead of SYMLOOP_MAX.
27042
27043         * sysdeps/generic/eloop-threshold.h: New file.
27044         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
27045         of MAXSYMLINKS.
27046         * elf/chroot_canon.c (chroot_canon): Likewise.
27047
27048 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
27049
27050         [BZ #13717]
27051         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
27052         Change to 2.6.0 everywhere.
27053         * sysdeps/unix/sysv/linux/configure: Regenerated.
27054         * sysdeps/unix/sysv/linux/kernel-features.h
27055         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
27056         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
27057         kernel versions.
27058         (__ASSUME_POSIX_TIMERS): Define unconditionally.
27059         (__ASSUME_FUTEX_REQUEUE): Remove.
27060         (__ASSUME_STATFS64): Define unconditionally.
27061         (__ASSUME_AT_SECURE): Likewise.
27062         (__ASSUME_CORRECT_SI_PID): Likewise.
27063         (__ASSUME_TGKILL): Define without depending on kernel version for
27064         i386.
27065         (__ASSUME_UTIMES): Likewise.
27066         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
27067         kernel version.
27068         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
27069         (__ASSUME_TMPFS_NAME): Likewise.
27070         * README: Update reference to Linux kernel versions.
27071
27072 2012-08-02  Marek Polacek  <polacek@redhat.com>
27073
27074         [BZ# 14150]
27075         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
27076         libc_cv_asm_type_prefix with %.
27077         * configure: Regenerated.
27078         * include/libc-symbols.h: Remove comment about
27079         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
27080         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
27081         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
27082         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
27083         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
27084         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
27085         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
27086         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
27087         * elf/tst-unique2mod1.c: Likewise.
27088         * elf/tst-unique1mod2.c: Likewise.
27089         * elf/tst-unique1mod1.c: Likewise.
27090         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
27091         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
27092         Replace ASM_TYPE_DIRECTIVE with .type.
27093         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27094         * sysdeps/i386/sysdep.h: Likewise.
27095         * sysdeps/x86_64/sysdep.h: Likewise.
27096         * sysdeps/sh/sysdep.h: Likewise.
27097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
27098         Do not define ASM_TYPE_DIRECTIVE.
27099         * sysdeps/powerpc/sysdep.h: Likewise.
27100         * sysdeps/powerpc/powerpc32/sysdep.h:
27101         Replace ASM_TYPE_DIRECTIVE with .type.
27102         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
27103         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
27104         * sysdeps/i386/fpu/e_powf.S: Likewise.
27105         * sysdeps/i386/fpu/e_expl.S: Likewise.
27106         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
27107         * sysdeps/i386/fpu/e_acosh.S: Likewise.
27108         * sysdeps/i386/fpu/e_pow.S: Likewise.
27109         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
27110         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
27111         * sysdeps/i386/fpu/s_expm1.S: Likewise.
27112         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
27113         * sysdeps/i386/fpu/e_log2.S: Likewise.
27114         * sysdeps/i386/fpu/e_log2l.S: Likewise.
27115         * sysdeps/i386/fpu/e_scalb.S: Likewise.
27116         * sysdeps/i386/fpu/e_powl.S: Likewise.
27117         * sysdeps/i386/fpu/e_log10f.S: Likewise.
27118         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
27119         * sysdeps/i386/fpu/e_logl.S: Likewise.
27120         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
27121         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
27122         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
27123         * sysdeps/i386/fpu/e_log2f.S: Likewise.
27124         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
27125         * sysdeps/i386/fpu/e_log.S: Likewise.
27126         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
27127         * sysdeps/i386/fpu/e_logf.S: Likewise.
27128         * sysdeps/i386/fpu/e_log10l.S: Likewise.
27129         * sysdeps/i386/fpu/e_atanh.S: Likewise.
27130         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
27131         * sysdeps/i386/fpu/e_log10.S: Likewise.
27132         * sysdeps/i386/fpu/s_frexp.S: Likewise.
27133         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
27134         * sysdeps/i386/fpu/s_asinh.S: Likewise.
27135         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
27136         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
27137         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
27138         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
27139         * sysdeps/i386/i686/strtok.S: Likewise.
27140         * sysdeps/i386/i386-mcount.S: Likewise.
27141         * sysdeps/i386/strtok.S: Likewise.
27142         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
27143         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
27144         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27145         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
27146         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
27147         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
27148         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
27149         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
27150         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
27151         * sysdeps/x86_64/_mcount.S: Likewise.
27152         * sysdeps/x86_64/strtok.S: Likewise.
27153         * sysdeps/sh/_mcount.S: Likewise.
27154
27155 2012-08-01  Roland McGrath  <roland@hack.frob.com>
27156
27157         * libio/iofopen.c: Include <fcntl.h>.
27158         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
27159         (_IO_fopen64, fopen64): Define as aliases.
27160         * libio/iofopen64.c: Include <fcntl.h>.
27161         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
27162         Conditionalize body on this.
27163         * sysdeps/wordsize-64/iofopen.c: File removed.
27164         * sysdeps/wordsize-64/iofopen64.c: File removed.
27165
27166 2012-08-01  Marek Polacek  <polacek@redhat.com>
27167
27168         * libc/Makeconfig: Use elf in place of binfmt-subdir.
27169         Use dlfcn directly instead of a variable.
27170         (binfmt-subdir): Do not define.
27171         (dlfcn): Likewise.
27172
27173 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
27174
27175         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
27176         Remove all definitions.
27177         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
27178         <kernel-features.h>.
27179         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
27180         (miss_F_GETOWN_EX): Remove all definitions.
27181         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
27182         macro definition.
27183         [!__ASSUME_FCNTL64]: Remove conditional code.
27184         [__ASSUME_FCNTL64]: Make code unconditional.
27185         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
27186         <kernel-features.h>.
27187         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
27188         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
27189         (lockf64) [__NR_fcntl64]: Make code unconditional.
27190         (lockf64) [__ASSUME_FCNTL64]: Likewise.
27191
27192         * sysdeps/unix/sysv/linux/kernel-features.h
27193         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
27194         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
27195         Make code unconditional.
27196         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
27197         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
27198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
27199         [__NR_vfork]: Make code unconditional.
27200         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
27201         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
27202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
27203         [__NR_vfork]: Make code unconditional.
27204         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
27205         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
27206
27207 2012-08-01  Roland McGrath  <roland@hack.frob.com>
27208
27209         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
27210         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
27211
27212         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
27213         Define mkstemp64 as an alias.
27214         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
27215         Define mkstemps64 as an alias.
27216         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
27217         Define mkostemp64 as an alias.
27218         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
27219         Define mkostemps64 as an alias.
27220         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
27221         Conditionalize body on this.
27222         * misc/mkostemp64.c: Likewise.
27223         * misc/mkostemps64.c: Likewise.
27224         * misc/mkstemps64.c: Likewise.
27225         * sysdeps/wordsize-64/mkstemp64.c: File removed.
27226         * sysdeps/wordsize-64/mkostemp64.c: File removed.
27227         * sysdeps/wordsize-64/mkostemp.c: File removed.
27228         * sysdeps/wordsize-64/mkstemp.c: File removed.
27229         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
27230         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
27231         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
27232         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
27233
27234         [BZ #14138]
27235         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
27236         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
27237         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
27238         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
27239
27240         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
27241         compat_symbol macros from <shlib-compat.h> rather than the underlying
27242         default_symbol_version and symbol_version macros, so that DEFAULT
27243         lines in shlib-versions are respected.
27244         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
27245
27246 2012-08-01  Florian Weimer  <fweimer@redhat.com>
27247
27248         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
27249         Declare with warn_unused_result.
27250         (setgid, setregid, setegid, setresgid): Likewise.
27251         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
27252         Likewise.
27253         * WUR-REPORT: Remove set*id functions.
27254
27255 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
27256
27257         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
27258
27259 2012-07-31  Roland McGrath  <roland@hack.frob.com>
27260
27261         [BZ #10191]
27262         * include/sys/socket.h (__libc_accept, __libc_accept4):
27263         Add attribute_hidden.
27264         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
27265
27266         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
27267         use of PTR_MANGLE.
27268         * inet/getnetgrent_r.c (setup): Likewise.
27269
27270         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
27271
27272 2012-07-31  David S. Miller  <davem@davemloft.net>
27273
27274         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27275
27276 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
27277
27278         [BZ #13629]
27279         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
27280         value between 1.0 and 2.0 and smaller part has absolute value less
27281         than 1.0.
27282         * math/s_clog10.c (__clog10): Likewise.
27283         * math/s_clog10f.c (__clog10f): Likewise.
27284         * math/s_clog10l.c (__clog10l): Likewise.
27285         * math/s_clogf.c (__clogf): Likewise.
27286         * math/s_clogl.c (__clogl): Likewise.
27287         * math/libm-test.inc (clog_test): Add more tests.
27288         (clog10_test): Likewise.
27289         * sysdeps/i386/fpu/libm-test-ulps: Update.
27290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27291
27292 2012-07-31  Florian Weimer  <fweimer@redhat.com>
27293
27294         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
27295         Exit with zero in case no suitable GID is found, and write a
27296         message to standard error.
27297
27298 2012-07-30  Roland McGrath  <roland@hack.frob.com>
27299
27300         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
27301         rather than to 1.
27302         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
27303         (MAXPATHLEN): Removed.
27304         (NOGROUP, NODEV): New macros.
27305         (setbit, clrbit, isset, isclr): New macros.
27306         (howmany, roundup, powerof2): New macros.
27307         (DEV_BSIZE): New macro.
27308
27309         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
27310         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
27311
27312         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
27313         definition on [!__NO_LONG_DOUBLE_MATH].
27314
27315         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
27316         PTR_MANGLE and PTR_DEMANGLE.
27317
27318         * socket/accept4.c (accept4): Rename to __libc_accept4.
27319         Define accept4 as a weak alias.
27320
27321         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
27322         on [_DIRENT_HAVE_D_TYPE].
27323         * io/ftw.c (ftw_dir): Likewise.
27324
27325         * io/xmknod.c (__xmknod): Don't check PATH for being null.
27326
27327         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
27328
27329         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
27330         Use the BSD numbers rather than the arbitrary ones we had.
27331         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
27332         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
27333         (SIGXCPU, SIGXFSZ): New macros.
27334         (_NSIG): Now 32.
27335
27336         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
27337         initializer on [_LIBC_REENTRANT].
27338
27339         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
27340         definitions inside [_POSIX_MAPPED_FILES].
27341
27342         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
27343
27344         * dirent/opendir.c: Include <fcntl.h>.
27345
27346         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
27347         (__libc_getspecific): Likewise.
27348         (__libc_key_create): Likewise.
27349
27350         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
27351         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
27352         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
27353         (tmpfile64): Define as alias.
27354         * sysdeps/wordsize-64/tmpfile.c: File removed.
27355         * sysdeps/wordsize-64/tmpfile64.c: File removed.
27356         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
27357         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
27358
27359         * stdio-common/vfscanf.c: Include <stdbool.h>.
27360         * nss/makedb.c: Likewise.
27361         * stdio-common/_i18n_number.h: Likewise.
27362         * argp/argp-help.c: Likewise.
27363         * posix/wordexp.c: Likewise.
27364         * sysdeps/posix/spawni.c: Likewise.
27365         * nss/nss_files/files-initgroups.c: Likewise.
27366         * stdio-common/reg-modifier.c: Include <stdlib.h>.
27367         * nss/nss_files/files-initgroups.c: Likewise.
27368         * nss/nss_db/db-netgrp.c: Likewise.
27369         * nss/nss_db/db-initgroups.c: Likewise.
27370         * io/fchmodat.c: Include <sys/stat.h>.
27371
27372         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
27373         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
27374
27375         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
27376         [HAVE_MMAP].
27377
27378         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
27379         Add multiple inclusion protection.
27380
27381 2012-07-27  David S. Miller  <davem@davemloft.net>
27382
27383         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27384
27385 2012-07-27  Gary Benson  <gbenson@redhat.com>
27386
27387         [BZ #14298]
27388         * elf/rtld.c: Include <stap-probe.h>.
27389         (dl_main): Added static probes "init_start" and "init_complete".
27390         * elf/dl-load.c: Include <stap-probe.h>.
27391         (lose): Take new parameter "nsid".
27392         Added static probe "map_failed".
27393         (_dl_map_object_from_fd): Pass namespace id to lose.
27394         Added static probe "map_start".
27395         (open_verify): Pass namespace id to lose.
27396         * elf/dl-open.c: Include <stap-probe.h>.
27397         (dl_open_worker) Added static probes "map_complete", "reloc_start"
27398         and "reloc_complete".
27399         * elf/dl-close.c: Include <stap-probe.h>.
27400         (_dl_close_worker): Added static probes "unmap_start" and
27401         "unmap_complete".
27402         * elf/rtld-debugger-interface.txt: New file documenting the above.
27403
27404 2012-07-26  Roland McGrath  <roland@hack.frob.com>
27405
27406         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
27407         rather than a string variable.
27408         * sunrpc/rpc_main.c (h_output): Likewise.
27409         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
27410
27411 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
27412
27413         * inet/check_native.c: New file.
27414
27415 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
27416
27417         [BZ #13629]
27418         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
27419         if larger part has absolute value 1.0.
27420         * math/s_clog10.c (__clog10): Likewise.
27421         * math/s_clog10f.c (__clog10f): Likewise.
27422         * math/s_clog10l.c (__clog10l): Likewise.
27423         * math/s_clogf.c (__clogf): Likewise.
27424         * math/s_clogl.c (__clogl): Likewise.
27425         * math/libm-test.inc (clog_test): Add more tests.
27426         (clog10_test): Likewise.
27427         * sysdeps/i386/fpu/libm-test-ulps: Update.
27428         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27429
27430         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
27431         (pltexit): Likewise.
27432         (La_regs): Likewise.
27433         (La_retval): Likewise.
27434         (int_retval): Likewise.
27435         Update #error for removed macros to refer only to definitions in
27436         tst-audit.h.
27437         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
27438         macro.
27439         (pltexit): Likewise.
27440         (La_regs): Likewise.
27441         (La_retval): Likewise.
27442         (int_retval): Likewise.
27443         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
27444         macro.
27445         (pltexit): Likewise.
27446         (La_regs): Likewise.
27447         (La_retval): Likewise.
27448         (int_retval): Likewise.
27449         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
27450         macro.
27451         (pltexit): Likewise.
27452         (La_regs): Likewise.
27453         (La_retval): Likewise.
27454         (int_retval): Likewise.
27455         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
27456         macro.
27457         (pltexit): Likewise.
27458         (La_regs): Likewise.
27459         (La_retval): Likewise.
27460         (int_retval): Likewise.
27461         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
27462         macro.
27463         (pltexit): Likewise.
27464         (La_regs): Likewise.
27465         (La_retval): Likewise.
27466         (int_retval): Likewise.
27467         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
27468         macro.
27469         (pltexit): Likewise.
27470         (La_regs): Likewise.
27471         (La_retval): Likewise.
27472         (int_retval): Likewise.
27473         * sysdeps/generic/tst-audit.h: Update comment to refer only to
27474         macro definitions in tst-audit.h.
27475         * sysdeps/i386/tst-audit.h: New file.
27476         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
27477         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
27478         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
27479         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
27480         * sysdeps/sh/tst-audit.h: Likewise.
27481         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
27482         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
27483         * sysdeps/x86_64/tst-audit.h: Likewise.
27484
27485 2012-07-26  Andreas Jaeger  <aj@suse.de>
27486
27487         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
27488         ptrace.
27489
27490         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
27491         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
27492         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
27493         PTRACE_O_MASK.
27494         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
27495         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
27496         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
27497
27498         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
27499         value.
27500
27501         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
27502         _sigsys.
27503         (si_call_addr, si_syscall, si_arch): Define new macro.
27504         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
27505         _sigsys.
27506         (si_call_addr, si_syscall, si_arch): Define new marcro.
27507         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
27508         _sigsys.
27509         (si_call_addr, si_syscall, si_arch): Define new macro.
27510         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
27511         _sigsys.
27512         (si_call_addr, si_syscall, si_arch): Define new macro.
27513
27514 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
27515
27516         [BZ #13717]
27517         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
27518         Change to 2.4.21 where previously 2.4.1.
27519         * sysdeps/unix/sysv/linux/configure: Regenerated.
27520         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
27521         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
27522         Linux kernel version.
27523         (__ASSUME_STD_AUXV): Remove.
27524         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
27525         kernel version.
27526         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
27527         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
27528         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
27529         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
27530         (__ASSUME_NETLINK_SUPPORT): Likewise.
27531         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
27532         (__no_netlink_support): Remove conditional definition.
27533         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
27534         Remove.
27535         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
27536         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
27537         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
27538         (if_nameindex_ioctl): Remove.
27539         (if_nameindex_netlink): Do not handle __no_netlink_support.
27540         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
27541         code.
27542         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
27543         Remove conditional code.
27544         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
27545         code.
27546         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
27547         unconditional.
27548         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
27549         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
27550         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
27551         Remove.
27552         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
27553         [!__ASSUME_STD_AUXV]: Remove conditional code.
27554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
27555         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
27556         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
27557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
27558         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
27559         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
27560         code.
27561         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
27562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
27563         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
27564         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
27565         conditional code.
27566         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
27567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
27568         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
27569         code.
27570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
27571         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
27572         conditional code.
27573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
27574         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
27575         code unconditional.
27576         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27577         conditional code.
27578         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
27579         unconditional.
27580         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27581         conditional code.
27582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
27583         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
27584         unconditional.
27585         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27586         conditional code.
27587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
27588         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
27589         code unconditional.
27590         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27591         conditional code.
27592         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
27593         unconditional.
27594         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27595         conditional code.
27596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
27597         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
27598         code unconditional.
27599         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27600         conditional code.
27601         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
27602         unconditional.
27603         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27604         conditional code.
27605
27606 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
27607
27608         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
27609         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
27610         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
27611         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
27612         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
27613         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
27614         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
27615         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
27616         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
27617         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
27618         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
27619         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
27620         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
27621         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
27622         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
27623         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
27624         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
27625         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
27626         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
27627         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
27628         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
27629         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
27630         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
27631
27632 2012-07-25  Florian Weimer  <fweimer@redhat.com>
27633
27634         * Versions.def: Add GLIBC_2.17.
27635         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
27636         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
27637         Introduce __libc_secure_getenv.
27638         * stdlib/Versions (2.17): Add secure_getenv
27639         (GLIBC_PRIVATE): Add __libc_secure_getenv.
27640         * stdlib/secure-getenv.c: Rename __secure_getenv to
27641         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
27642         symbol __secure_getenv for GLIBC_2.0.
27643         * stdlib/tst-secure-getenv.c: New.
27644         * stdlib/Makefile (tests): Add testcase.
27645         * manual/startup.texi (Environment Access): Document
27646         secure_getenv.
27647         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
27648         __libc_secure_getenv.
27649         * inet/ruserpass.c (ruserpass): Likewise.
27650         * malloc/mtrace.c (mtrace): Likewise.
27651         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
27652         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
27653         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
27654         * sysdeps/posix/tempname.c: Likewise.  Evaluate
27655         HAVE_SECURE_GETENV.
27656         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
27657         __secure_getenv to __libc_secure_getenv.
27658         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
27659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
27660         Likewise.
27661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
27662         Likewise.
27663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
27664         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
27665         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
27666         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
27667         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
27668         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
27669         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
27670
27671 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
27672
27673         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
27674         (struct La_i86_retval): Likewise.
27675         (struct La_x86_64_regs): Likewise.
27676         (struct La_x86_64_retval): Likewise.
27677         (struct La_x32_regs): Likewise.
27678         (struct La_x32_retval): Likewise.
27679         (struct La_ppc32_regs): Likewise.
27680         (struct La_ppc32_retval): Likewise.
27681         (struct La_ppc64_regs): Likewise.
27682         (struct La_ppc64_retval): Likewise.
27683         (struct La_sh_regs): Likewise.
27684         (struct La_sh_retval): Likewise.
27685         (struct La_s390_32_regs): Likewise.
27686         (struct La_s390_32_retval): Likewise.
27687         (struct La_s390_64_regs): Likewise.
27688         (struct La_s390_64_retval): Likewise.
27689         (struct La_sparc32_regs): Likewise.
27690         (struct La_sparc32_retval): Likewise.
27691         (struct La_sparc64_regs): Likewise.
27692         (struct La_sparc64_retval): Likewise.
27693         (struct audit_ifaces): Remove architecture-specific pltenter and
27694         pltexit members.
27695         * sysdeps/i386/ldsodefs.h: New file.
27696         * sysdeps/powerpc/ldsodefs.h: Likewise.
27697         * sysdeps/s390/ldsodefs.h: Likewise.
27698         * sysdeps/sh/ldsodefs.h: Likewise.
27699         * sysdeps/sparc/ldsodefs.h: Likewise.
27700         * sysdeps/x86_64/ldsodefs.h: Likewise.
27701
27702 2012-07-25  Marek Polacek  <polacek@redhat.com>
27703
27704         [BZ #6808]
27705         * math/libm-test.inc (yn_test): Add another test.
27706         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
27707         to ERANGE when the result is +-Inf.
27708         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
27709         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27710         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
27711         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
27712
27713 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
27714
27715         * conform/data/time.h-data (NULL): Use macro-constant.  Require
27716         equal to 0.
27717         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
27718         clock_t.
27719         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
27720
27721 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
27722
27723         * configure.in <sysdeps resolving>: Correct printing
27724         Implies_before.
27725         * configure: Regenerate.
27726
27727 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
27728
27729         * math/w_ilogb.c: Include <limits.h>.
27730         * math/w_ilogbl.c: Likewise.
27731
27732 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
27733
27734         * manual/lang.texi (__va_copy): Document primarily as ISO C99
27735         va_copy.  Document allowing for unavailable va_copy only as
27736         pre-C99 compatibility.
27737         * manual/string.texi (Copying and Concatenation): Use va_copy
27738         instead of __va_copy in concat example.
27739
27740 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
27741
27742         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
27743         (__sendto): Use create_address_port.  Initialize APORT and deallocate
27744         it if not null.
27745
27746         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
27747         with O_NOLINK passed to __file_name_lookup.
27748
27749         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
27750         with O_NOLINK passed to __file_name_lookup.
27751
27752         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
27753         negative N or less than NGIDS.
27754
27755         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
27756         type to string_t.  Set ERANGE as errno and return it if NAME is not big
27757         enough.  Use memcpy instead of strncpy.
27758
27759 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
27760
27761         * elf/Makefile (check-data): Remove.
27762         (localplt.data): New vpath directive.
27763         ($(objpfx)check-localplt.out): Use localplt.data from vpath
27764         instead of $(check-data).
27765         * scripts/data/localplt-generic.data: Move to ...
27766         * sysdeps/generic/localplt.data: ... here.
27767         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
27768         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
27769         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
27770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
27771         ... here.
27772         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
27773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
27774         ... here.
27775         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
27776         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
27777         ... here.
27778         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
27779         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
27780         ... here.
27781         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
27782         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
27783         ... here.
27784         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
27785         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
27786         ... here.
27787
27788 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27789
27790         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
27791         PPC32 and PPC64 files.
27792         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
27793         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
27794
27795 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27796
27797         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
27798         __makecontext_ret to ...
27799         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
27800         ... here and call exit if uc_link is NULL.  New file.
27801         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
27802         __makecontext_ret.S.
27803         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
27804         __makecontext_ret to ...
27805         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
27806         ... here and call exit if uc_link is NULL.  New file.
27807         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
27808         __makecontext_ret.S.
27809
27810 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27811
27812         * elf/elf.h (R_390_IRELATIVE): New definition.
27813         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
27814         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
27815         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
27816         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
27817         (elf_machine_lazy_rel): Likewise.
27818         * sysdeps/s390/dl-irel.h: New file.
27819         * sysdeps/s390/s390-64/memcpy.S: New asm code.
27820         * sysdeps/s390/s390-64/memset.S: New asm code.
27821         * sysdeps/s390/s390-64/memcmp.S: New asm code.
27822         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
27823         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
27824         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
27825         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
27826         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
27827         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
27828         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
27829         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
27830         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
27831         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
27832         * sysdeps/s390/s390-32/memcpy.S: New asm code.
27833         * sysdeps/s390/s390-32/memset.S: New asm code.
27834         * sysdeps/s390/s390-32/memcmp.S: New asm code.
27835
27836 2012-07-17  Marek Polacek  <polacek@redhat.com>
27837
27838         [BZ #14349]
27839         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
27840         * sysdeps/s390/s390-64/configure.in: Likewise.
27841         * sysdeps/sparc/configure.in: Likewise.
27842         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
27843         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
27844         * sysdeps/i386/configure.in: Likewise.
27845         * sysdeps/x86_64/configure.in: Likewise.
27846         * sysdeps/sh/configure.in: Likewise.
27847         * sysdeps/s390/s390-32/configure: Regenerated.
27848         * sysdeps/s390/s390-64/configure: Likewise.
27849         * sysdeps/x86_64/configure: Likewise.
27850         * sysdeps/sh/configure: Likewise.
27851         * sysdeps/powerpc/powerpc64/configure: Likewise.
27852         * sysdeps/powerpc/powerpc32/configure: Likewise.
27853         * sysdeps/sparc/configure: Likwise.
27854         * sysdeps/i386/configure: Likewise.
27855
27856         * elf/dl-open.c: Comment fixes.
27857
27858 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
27859
27860         * Makefile [CXX] (check-data): Remove.
27861         [CXX] (c++-types.data): New vpath directive.
27862         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
27863         vpath.  Do not allow for C++ type data being missing.
27864         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
27865         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
27866         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
27867         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
27868         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
27869         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
27870         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
27871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
27872         ... here.
27873         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
27874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
27875         ... here.
27876         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
27877         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
27878         ... here.
27879         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
27880         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
27881         ... here.
27882         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
27883         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
27884         ... here.
27885         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
27886         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
27887         ... here.
27888         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
27889         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
27890         ... here.
27891         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
27892         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
27893
27894         * elf/tls-macros.h (TLS_LE): Move architecture-specific
27895         definitions to architecture-specific files.
27896         (TLS_IE): Likewise.
27897         (TLS_LD): Likewise.
27898         (TLS_GD): Likewise.
27899         * sysdeps/i386/tls-macros.h: New file.
27900         * sysdeps/powerpc/tls-macros.h: Likewise.
27901         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
27902         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
27903         * sysdeps/sh/tls-macros.h: Likewise.
27904         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
27905         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
27906         * sysdeps/x86_64/tls-macros.h: Likewise.
27907
27908 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
27909
27910         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
27911         zero value for regular exit case.
27912
27913         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
27914         (__start_context): Preserve zero value for regular exit case.
27915
27916 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
27917             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27918
27919         * manual/setjmp.texi (setcontext): Clarify normal process
27920         termination when uc_link is the null pointer.
27921         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
27922         exit call.
27923
27924 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
27925
27926         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
27927         preprocessor.  Test for each exception mask separately.
27928
27929 2012-07-16  Andreas Jaeger  <aj@suse.de>
27930
27931         * po/ru.po: Update from translation team.
27932
27933 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
27934
27935         * conform/data/string.h-data (NULL): Use macro-constant.  Require
27936         equal to 0.
27937         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
27938         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
27939         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
27940         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
27941         [ISO || ISO99 || ISO11] (*_t): Do not allow.
27942
27943 2012-07-13  Andreas Jaeger  <aj@suse.de>
27944
27945         * po/fr.po: Update from translation team.
27946
27947 2012-07-12  Marek Polacek  <polacek@redhat.com>
27948
27949         [BZ #14173]
27950         * math/libm-test.inc (yn_test): Add test for BZ #14173.
27951         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
27952         loop condition.
27953
27954 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
27955
27956         [BZ #13717]
27957         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
27958         Change to 2.4.1 where previously 2.4.0.
27959         * sysdeps/unix/sysv/linux/configure: Regenerated.
27960         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
27961         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
27962         version.
27963         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
27964         (__ASSUME_AT_CLKTCK): Remove.
27965         (__ASSUME_AT_PAGESIZE): Likewise.
27966         (__ASSUME_AT_XID): Likewise.
27967         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
27968         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
27969         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
27970         unconditionally.
27971         (HAVE_AUX_PAGESIZE): Likewise.
27972         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
27973         [__ASSUME_AT_CLKTCK]: Make code unconditional.
27974         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
27975
27976 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
27977
27978         [BZ #14307]
27979         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
27980         the temporary buffer used to invoke __gethostbyname2_r,
27981         __gethostbyaddr_r and gethostbyname4_r to make room for struct
27982         host_data / struct gaih_addrtuple.
27983         * resolv/nss_dns/dns-host.c (global scope): Move definition of
27984         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
27985         header file nss/nsswitch.h.
27986         * nss/nsswitch.h (global scope): Add definition of implementation
27987         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
27988         resolv/nss_dns/dns-host.c).
27989
27990 2012-07-11  Andreas Jaeger  <aj@suse.de>
27991
27992         * po/fr.po: Update from translation team.
27993
27994         * po/sv.po: Update from translation team
27995         * po/fr.po: Another update from translation team.
27996
27997 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27998
27999         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
28000         for subnormals or multiply small sinh result by itself.
28001         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
28002         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28003
28004 2012-07-11  David S. Miller  <davem@davemloft.net>
28005
28006         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28007
28008 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
28009
28010         [BZ #14347]
28011         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
28012         (INTERNAL_MARK): Shift it here.
28013
28014 2012-07-10  Marek Polacek  <polacek@redhat.com>
28015
28016         [BZ #14151]
28017         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
28018         libc_cv_asm_global_directive with .globl.
28019         * configure: Regenerated.
28020         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
28021         with .globl.
28022         * sysdeps/i386/configure: Regenerated.
28023         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
28024         with .globl.
28025         * sysdeps/x86_64/configure: Regenerated.
28026         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
28027         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
28028         * elf/tst-unique2mod2.c: Likewise.
28029         * elf/tst-unique2mod1.c: Likewise.
28030         * elf/tst-unique1mod2.c: Likewise.
28031         * elf/tst-unique1mod1.c: Likewise.
28032         * sysdeps/s390/s390-32/sysdep.h: Likewise.
28033         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
28034         * sysdeps/s390/s390-64/sysdep.h: Likewise.
28035         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
28036         * sysdeps/mach/sysdep.h: Likewise.
28037         * sysdeps/i386/sysdep.h: Likewise.
28038         * sysdeps/i386/i386-mcount.S: Likewise.
28039         * sysdeps/x86_64/_mcount.S: Likewise.
28040         * sysdeps/x86_64/sysdep.h: Likewise.
28041         * sysdeps/sh/_mcount.S: Likewise.
28042         * sysdeps/sh/sysdep.h: Likewise.
28043         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
28044         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
28045         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
28046         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
28047         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
28048         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
28049         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
28050         * locale/localeinfo.h: Likewise.
28051         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
28052         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
28053
28054 2012-07-09  Roland McGrath  <roland@hack.frob.com>
28055
28056         [BZ #14336]
28057         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
28058         system".
28059         * manual/message.texi (The Uniforum approach): Likewise.
28060         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
28061         (glibc iconv Implementation): Likewise.
28062
28063 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
28064
28065         [BZ #14337]
28066         * math/s_clog.c (__clog): Avoid scaling a value down where that
28067         could result in underflow.
28068         * math/s_clog10.c (__clog10): Likewise.
28069         * math/s_clog10f.c (__clog10f): Likewise.
28070         * math/s_clog10l.c (__clog10l): Likewise.
28071         * math/s_clogf.c (__clogf): Likewise.
28072         * math/s_clogl.c (__clogl): Likewise.
28073         * math/libm-test.inc (clog_test): Add more tests.
28074         (clog10_test): Likewise.
28075         * sysdeps/i386/fpu/libm-test-ulps: Update.
28076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28077
28078 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
28079
28080         [BZ #14283]
28081         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
28082         by 7 not 8 to examine high bit of fractional part.
28083
28084         [BZ #14042]
28085         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
28086         for call to __mcount_internal.
28087         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
28088         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
28089         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
28090
28091 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
28092
28093         [BZ #14154]
28094         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
28095         approximation for values within 0x1p-13f of an odd multiple of
28096         pi/4.
28097         * math/libm-test.inc (tan_test): Do not allow spurious underflow
28098         exception.  Add more tests.
28099         * sysdeps/i386/fpu/libm-test-ulps: Update.
28100
28101         [BZ #6778]
28102         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
28103         inputs and return -1 for them.  Do not check for +Inf in case not
28104         reachable for +Inf.
28105         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
28106         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
28107         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
28108         and return -1 for them.  Do not check for +Inf in case not
28109         reachable for +Inf.
28110         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
28111         define.
28112         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
28113         and return -1 for them.  Do not check for +Inf in case not
28114         reachable for +Inf.
28115         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
28116         spurious underflow.
28117         * sysdeps/i386/fpu/libm-test-ulps: Update.
28118         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28119
28120 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
28121
28122         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
28123
28124 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
28125
28126         [BZ #14157]
28127         [BZ #14331]
28128         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
28129         could result in spurious underflow.  Scale down values above
28130         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
28131         * math/s_csqrtf.c (__csqrtf): Likewise.
28132         * math/s_csqrtl.c (__csqrtl): Likewise.
28133         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
28134         spurious underflow.
28135         * sysdeps/i386/fpu/libm-test-ulps: Update.
28136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28137
28138 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
28139
28140         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
28141         xopen-msg.sed.
28142         * catgets/xopen-msg.awk: New file.
28143         * catgets/xopen-msg.sed: Removed.
28144
28145         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
28146         po2text.sed.
28147         * intl/po2test.awk: New file.
28148         * intl/po2test.sed: Removed.
28149
28150 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
28151
28152         [BZ #14328]
28153         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
28154         or multiply small sinh result by itself.
28155         * math/s_ctanf.c (__ctanf): Likewise.
28156         * math/s_ctanh.c (__ctanh): Likewise.
28157         * math/s_ctanhf.c (__ctanhf): Likewise.
28158         * math/s_ctanhl.c (__ctanhl): Likewise.
28159         * math/s_ctanl.c (__ctanl): Likewise.
28160         * math/libm-test.inc (ctan_test_tonearest): New function.
28161         (ctan_test_towardzero): Likewise.
28162         (ctan_test_downward): Likewise.
28163         (ctan_test_upward): Likewise.
28164         (ctanh_test_tonearest): Likewise.
28165         (ctanh_test_towardzero): Likewise.
28166         (ctanh_test_downward): Likewise.
28167         (ctanh_test_upward): Likewise.
28168         (main): Call these new functions.
28169         * sysdeps/i386/fpu/libm-test-ulps: Update.
28170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28171
28172 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
28173
28174         * .gitignore: Delete /ports entry.
28175
28176 2012-07-03  Andreas Jaeger  <aj@suse.de>
28177
28178         * po/bg.po: Update from translation team.
28179         * po/cs.po: Likewise.
28180         * po/de.po: Likewise.
28181         * po/hr.po: Likewise.
28182         * po/nl.pl: Likewise.
28183         * po/pl.po: Likewise.
28184         * po/vi.po: Likewise.
28185
28186 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
28187
28188         * Makeconfig [!+link] (+link-before-libc): New variable.
28189         [!+link] (+link-after-libc): Likewise.
28190         [!+link] (+link-tests): Likewise.
28191         [!+link] (+link): Define in terms of $(+link-before-libc) and
28192         $(+link-after-libc).
28193         [!+link-static] (+link-static-before-libc): New variable.
28194         [!+link-static] (+link-static-after-libc): Likewise.
28195         [!+link-static] (+link-static-tests): Likewise.
28196         [!+link-static] (+link-static): Define in terms of
28197         $(+link-static-before-libc) and $(+link-static-after-libc).
28198         [build-shared] (link-libc-before-gnulib): New variable.
28199         [build-shared] (link-libc-tests): Likewise.
28200         [build-shared] (link-libc): Define in terms of
28201         $(link-libc-before-gnulib).
28202         [!build-shared] (link-libc-tests): New variable.
28203         (link-libc-static-tests): New variable.
28204         [!gnulib] (gnulib-arch): New variable.
28205         [!gnulib] (gnulib-tests): Likewise.
28206         [!gnulib] (static-gnulib-arch): Likewise.
28207         [!gnulib] (static-gnulib-tests): Likewise.
28208         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
28209         Define with "=" instead of ":=".
28210         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
28211         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
28212         * Rules (binaries-all-notests): New variable.
28213         (binaries-all-tests): Likewise.
28214         (binaries-static-notests): Likewise.
28215         (binaries-static-tests): Likewise.
28216         (binaries-all): Define using $(binaries-all-notests) and
28217         $(binaries-all-tests).
28218         (binaries-static): Define using $(binaries-static-notests) and
28219         $(binaries-static-tests).
28220         (binaries-shared-tests): New variable.
28221         (binaries-shared-notests): Likewise.
28222         (binaries-shared): Remove variable.
28223         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
28224         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
28225         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
28226         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
28227         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
28228         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
28229         * elf/Makefile (sln-modules): New variable.
28230         (extra-objs): Add $(sln-modules:=.o).
28231         (ldconfig-modules): Add static-stubs.
28232         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
28233         * elf/static-stubs.c: New file.
28234
28235         [BZ #14283]
28236         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
28237         by 7 not 8 to examine high bit of fractional part.  Use volatile
28238         variables when splitting into final array of floats if
28239         __FLT_EVAL_METHOD__ != 0.
28240         * math/libm-test.inc (cos_test): Add another test.
28241         (sin_test): Likewise.
28242         * sysdeps/i386/fpu/libm-test-ulps: Update.
28243
28244         [BZ #14273]
28245         * math/libm-test.inc (cosh_test): Add more tests.
28246
28247         * version.h (RELEASE): Set to "development".
28248         (VERSION): Set to "2.16.90".
28249
28250 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
28251
28252         * NEWS: Update copyright. Remove last-updated date.
28253         Mention math library bug fixes and timezone data changes.
28254         * README: Mention GNU/Hurd, x32, and HPPA support status.
28255
28256 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
28257
28258         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
28259
28260 2012-06-27  Andreas Jaeger  <aj@suse.de>
28261
28262         * manual/contrib.texi (Contributors): Add Samuel Thibault.
28263
28264 2012-06-25  Andreas Jaeger  <aj@suse.de>
28265
28266         * sysdeps/s390/fpu/libm-test-ulps: Update.
28267
28268 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
28269             Thomas Schwinge  <thomas@codesourcery.com>
28270
28271         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
28272         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
28273         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
28274         fanotify_mark.
28275
28276 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
28277
28278         * sysdeps/mach/start.c: Remove file.
28279         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
28280         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
28281         * sysdeps/sh/init-first.c: Likewise.
28282
28283         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
28284         registers for frame unwinding purposes, add CFI directives.
28285         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
28286         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
28287         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
28288         Likewise.
28289
28290         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
28291         __fortify_fail returning.
28292         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
28293
28294         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
28295         sysdeps/sh/____longjmp_chk.S.
28296         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
28297         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
28298         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
28299         (gen-as-const-headers): Append sigaltstack-offsets.sym.
28300
28301         * sysdeps/sh/abort-instr.h: New file.
28302         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
28303         process in case exit returns.
28304
28305         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
28306         initialize the GOT register before use.
28307
28308         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
28309         calculation of ARGC > 4.
28310
28311         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
28312         meaningful names to some local labels.
28313
28314 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28315             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
28316
28317         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
28318         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
28319         (__arch_compare_and_exchange_val_16_acq): Likewise.
28320         (__arch_compare_and_exchange_val_32_acq): Likewise.
28321         (atomic_exchange_and_add): Fix gUSA sequence.
28322         (atomic_add): Likewise.
28323         (atomic_add_negative): Likewise.
28324         (atomic_add_zero): Likewise.
28325         (atomic_bit_test_set): Likewise.
28326
28327 2012-06-22  Andreas Schwab  <schwab@redhat.com>
28328
28329         [BZ #13579]
28330         * include/link.h (struct link_map): Add l_free_initfini.
28331         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
28332         l_initfini.
28333         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
28334         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
28335         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
28336         set.
28337
28338 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
28339
28340         * configure.in: Use AC_LANG_SOURCE.
28341         * configure: Regenerate.
28342
28343 2012-06-22  Roland McGrath  <roland@hack.frob.com>
28344
28345         * configure.in (libc_cv_localstatedir): New substituted variable.
28346         * configure: Regenerated.
28347         * config.make.in (localstatedir): New variable, substituted from
28348         libc_cv_localstatedir.
28349         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
28350         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
28351         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
28352         * sysdeps/gnu/configure: Regenerated.
28353
28354 2012-06-21  Jeff Law  <law@redhat.com>
28355
28356         [BZ #14277]
28357         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
28358         free.  Simplify list management for _LIBC case.
28359
28360 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
28361
28362         [BZ #14273]
28363         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
28364         Clear sign bit of 64-bit integer value before comparing against
28365         overflow value.
28366
28367         * sysdeps/mach/configure: Regenerated.
28368
28369 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
28370
28371         [BZ #14278]
28372         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
28373
28374 2012-06-21  Jeff Law  <law@redhat.com>
28375
28376         [BZ #13882]
28377         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
28378         uint16_t for elements in the "seen" array to avoid char overflows.
28379         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28380         * elf/dl-open.c (dl_open_worker): Likewise.
28381
28382 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
28383
28384         * scripts/list-sources.sh: Scan PORTS for translations.
28385         * po/libc.pot: Regenerated.
28386
28387 2012-06-21  Andreas Jaeger  <aj@suse.de>
28388
28389         [BZ #12194]
28390         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
28391         warning.
28392         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
28393         * bits/byteswap-16.h (__bswap_16): Likewise.
28394         * bits/byteswap.h (__bswap_constant_16): Likewise.
28395
28396 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
28397
28398         [BZ #14117]
28399         * sysdeps/i386/fpu_control.h: Removed.
28400         * sysdeps/x86_64/fpu_control.h: Moved to ...
28401         * sysdeps/x86/fpu_control.h: Here.
28402
28403         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
28404         (_FPU_SETCW): Likewise.
28405
28406 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
28407
28408         [BZ #14117]
28409         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
28410         * sysdeps/x86/fpu/bits/mathinline.h: This.
28411         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
28412
28413         [BZ #14050]
28414         [BZ #14117]
28415         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
28416         functions if __x86_64__ is defined.
28417
28418 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
28419
28420         * string/endian.h: Add !__ASSEMBLER__ condition for including
28421         conversion interfaces.
28422
28423 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
28424
28425         [BZ #14241]
28426         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
28427         of ABS(x) in calculating zero to negative powers other than odd
28428         integers.
28429         * math/libm-test.inc (pow_test): Add more tests.
28430
28431 2012-06-15  Andreas Jaeger  <aj@suse.de>
28432
28433         * manual/contrib.texi (Contributors): Update entry of Liubov
28434         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
28435         Machado Filho.
28436
28437 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
28438
28439         * string/string.h: Add __wur to GNU version of strerror_r.
28440
28441 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
28442
28443         [BZ #14229]
28444         * string/Makefile (tests): Add tst-strtok_r.
28445         * string/tst-strtok_r.c: New file.
28446         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
28447         RAX_LP/RDX_LP on SAVE_PTR.
28448
28449 2012-06-14  Roland McGrath  <roland@hack.frob.com>
28450
28451         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
28452
28453 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
28454
28455         * libm_test.inc (csqrt_test): Allow more spurious underflow
28456         exceptions.
28457         (j0_test): Likewise.
28458         (j1_test): Likewise.
28459         (y0_test): Likewise.
28460         (y1_test): Likewise.
28461
28462 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
28463
28464         * po/Makefile (libc.pot): Use UTF-8 charset.
28465
28466 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
28467
28468         [BZ #14210]
28469         Suppress sign-conversion warning from FD_SET.
28470         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
28471         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
28472         not unsigned long int.
28473         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
28474
28475 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
28476
28477         [BZ #14050]
28478         [BZ #14117]
28479         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
28480         __extern_always_inline instead of __extern_inline.
28481         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
28482         (__signbit): Likewise.
28483         (__signbitl): Support C++ namespace.
28484         (lrintf): New inline function.
28485         (lrint): Likewise.
28486         (llrintf): Likewise.
28487         (llrint): Likewise.
28488         (fmaxf): Likewise.
28489         (fmax): Likewise.
28490         (fminf): Likewise.
28491         (fmin): Likewise.
28492         (rint): Likewise.
28493         (rintf): Likewise.
28494         (ceil): Likewise.
28495         (ceilf): Likewise.
28496         (floor): Likewise.
28497         (floorf): Likewise.
28498         (nearbyint): Likewise.
28499         (nearbyintf): Likewise.
28500
28501 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
28502
28503         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
28504         non-default versions.
28505
28506 2012-06-11  Roland McGrath  <roland@hack.frob.com>
28507
28508         [BZ #14218]
28509         * manual/argp.texi (Argp): Reword argp_parse description slightly.
28510
28511 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
28512
28513         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
28514         (FE_UPWARD, FE_DOWNWARD): Don't define.
28515         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
28516         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
28517
28518         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
28519         reading it.
28520         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
28521         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28522
28523 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
28524
28525         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
28526         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
28527         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
28528         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
28529
28530 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
28531
28532         [BZ #14117]
28533         * sysdeps/i386/fpu/bits/fenv.h: Removed.
28534         * sysdeps/i386/fpu/Implies: New file.
28535         * sysdeps/x86_64/fpu/Implies: Likewise.
28536         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
28537         * sysdeps/x86/fpu/bits/fenv.h: This.
28538
28539         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
28540         __SSE_MATH__.
28541
28542 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
28543
28544         [BZ #14134]
28545         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
28546         character 0xffff that matches the last element of the
28547         conversion table.
28548
28549 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28550
28551         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
28552         fmodl commit.
28553
28554 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28555
28556         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
28557         values higher than 25.6283.
28558
28559 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28560
28561         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
28562         subnormal exponent extraction and add some __builtin_expect.
28563         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
28564         Fix for subnormal mantissa calculation.
28565
28566 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
28567
28568         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
28569         cpu2 is -1 and errno is not ENOSYS.
28570
28571 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
28572
28573         [BZ #14117]
28574         * sysdeps/i386/i486/bits/string.h: Renamed to ...
28575         * sysdeps/x86/bits/string.h: This.
28576         * sysdeps/x86_64/bits/string.h: Removed.
28577
28578         * sysdeps/i386/i486/bits/string.h: Define inline functions only
28579         if not compiling for x86-64, but compiling for >= i486.
28580
28581         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
28582         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
28583
28584         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
28585         New macro from Linux kernel 3.4.0.
28586         (FP_XSTATE_MAGIC2): Likewise.
28587         (FP_XSTATE_MAGIC2_SIZE): Likewise.
28588         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
28589         (struct _fpx_sw_bytes): New struct.
28590         (struct _xsave_hdr): Likewise.
28591         (struct _ymmh_state): Likewise.
28592         (struct _xstate): Likewise.
28593
28594         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
28595         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
28596         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
28597         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
28598         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
28599         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
28600
28601         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
28602         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
28603         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
28604         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
28605         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
28606         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
28607
28608 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
28609
28610         [BZ #13743]
28611         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
28612         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
28613         (sysdep_headers): Include sys/platform/ppc.h.
28614         * sysdeps/powerpc/test-gettimebase.c: Test for
28615         __ppc_get_timebase() to catch future ISA opcode/insn changes.
28616         * manual/Makefile (appendices): Include platform.texi.
28617         * manual/contrib.texi (Contributors): Update @node pointers.
28618         * manual/maint.texi (Maintenance): Likewise.
28619         (Platform): New node.
28620         * manual/platform.texi: New file.  Document the new features.
28621
28622 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28623             Jakub Jelinek  <jakub@redhat.com>
28624
28625         [BZ #14188]
28626         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
28627         where __builtin_expect is unavailable.
28628
28629 2012-06-03  David S. Miller  <davem@davemloft.net>
28630
28631         * stdlib/longlong.h: Updated from GCC.
28632
28633 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
28634
28635         [BZ #14042]
28636         * sysdeps/powerpc/powerpc32/mcount.c: New file.
28637         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
28638         __mcount_internal.
28639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
28640         (GLIBC_2.16): Likewise.
28641
28642 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
28643
28644         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
28645
28646 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
28647
28648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
28649         (default-abi): New variable.
28650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
28651         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
28652         variable.
28653         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
28654         Likewise.
28655         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
28656         Likewise.
28657         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
28658         Likewise.
28659
28660         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
28661         definition.  Document in comment.
28662
28663 2012-06-01  David S. Miller  <davem@davemloft.net>
28664
28665         * stdlib/longlong.h: Updated from GCC.
28666
28667 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
28668
28669         [BZ #14117]
28670         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
28671         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
28672         sys/debugreg.h sys/io.h here.
28673         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
28674         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
28675         sys/io.h.
28676         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
28677         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
28678         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
28679         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
28680         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
28681         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
28682
28683         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
28684         Define only if __x86_64__ is defined.
28685
28686 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
28687
28688         [BZ #14048]
28689         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
28690         Use int64_t for variable i.
28691         * math/libm-test.inc (fmod_test): Add more tests.
28692
28693         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
28694         z computation is not scheduled after fetestexcept.
28695         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
28696         Use math_force_eval instead of asm to ensure calculation scheduled
28697         before exception test.
28698         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
28699         Ensure a1 + u.d computation is not scheduled after fetestexcept.
28700
28701 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
28702
28703         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
28704         computation is not scheduled after fetestexcept.
28705
28706 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
28707
28708         [BZ #14117]
28709         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
28710         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
28711
28712 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28713
28714         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
28715         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
28716
28717 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
28718
28719         [BZ #14117]
28720         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
28721         <bits/wordsize.h>.
28722         (__WCHAR_MIN): Support __WORDSIZE == 64.
28723         (__WCHAR_MAX): Likewise.
28724
28725         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
28726         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
28727
28728         [BZ #14183]
28729         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
28730         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
28731
28732         [BZ #14117]
28733         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
28734         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
28735
28736         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
28737         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
28738
28739         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
28740         Defined to 1 if __x86_64__ isn't defined.
28741         (_STAT_VER_LINUX_OLD): New.
28742         (st_atime): Remove duplicate.
28743         (st_mtime): Likewise.
28744         (st_ctime): Likewise.
28745
28746 2012-05-31  David S. Miller  <davem@davemloft.net>
28747
28748         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
28749         entries.
28750
28751 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
28752
28753         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
28754         gen-libm-test.pl.
28755
28756         [BZ #14132]
28757         * elf/dl-reloc.c: Include <_itoa.h>.
28758         (_dl_reloc_bad_type): Remove use of INTUSE.
28759         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
28760         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
28761         * stdio-common/psiginfo.c (psiginfo): Likewise.
28762         * stdio-common/psignal.c (psignal): Likewise.
28763         * string/strsignal.c (strsignal): Likewise.
28764         * include/signal.h (_sys_siglist): Declare hidden proto.
28765         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
28766         INTVARDEF with libc_hidden_data_def.
28767         * stdio-common/itoa-udigits.c: Likewise.
28768         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
28769         (_itoa_lower_digits_internal): Remove declaration.
28770         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
28771         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
28772         (_sys_sigabbrev_internal): Remove aliases.
28773         (_sys_siglist): Define hidden alias.
28774
28775 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
28776
28777         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28778         bits/sysctl.h.
28779
28780 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
28781
28782         [BZ #14117]
28783         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
28784         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
28785
28786         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
28787         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
28788         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
28789         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
28790         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
28791         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
28792
28793         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
28794         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
28795         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
28796
28797         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
28798         with __addr.
28799         (insw): Likewise.
28800         (insl): Likewise.
28801         (outsb): Likewise.
28802         (outsw): Likewise.
28803         (outsl): Likewise.
28804
28805         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
28806         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
28807         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
28808
28809         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
28810         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
28811         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
28812         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
28813         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
28814         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
28815
28816         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
28817         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
28818
28819         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
28820         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
28821
28822         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
28823         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
28824         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
28825
28826         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
28827         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
28828         to ...
28829         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
28830
28831         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
28832         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
28833         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
28834
28835         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
28836         for x86-64.
28837         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
28838
28839 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
28840
28841         * math/math.h (M_El): Use two more decimal places.
28842         (M_LOG2El): Likewise.
28843         (M_LOG10El): Likewise.
28844         (M_LN2l): Likewise.
28845         (M_LN10l): Likewise.
28846         (M_PIl): Likewise.
28847         (M_PI_2l): Likewise.
28848         (M_PI_4l): Likewise.
28849         (M_1_PIl): Likewise.
28850         (M_2_PIl): Likewise.
28851         (M_2_SQRTPIl): Likewise.
28852         (M_SQRT2l): Likewise.
28853         (M_SQRT1_2l): Likewise.
28854
28855 2012-05-31  David S. Miller  <davem@davemloft.net>
28856
28857         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
28858         values between float registers.
28859         * sysdeps/sparc/sparc64/memset.S: Likewise.
28860         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
28861
28862 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
28863
28864         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
28865         -D_FORTIFY_SOURCE=1.
28866         (CPPFLAGS-tst-longjmp_chk.c): Define.
28867         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
28868         (CPPFLAGS-tst-longjmp_chk2.c): Define.
28869         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
28870         CFLAGS-tst-wchar-h.c.
28871
28872 2012-05-31  Marek Polacek  <polacek@redhat.com>
28873
28874         [BZ #14132]
28875         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
28876         __endmntent_internal): Remove declaration.
28877         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
28878         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
28879         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
28880
28881 2012-05-30  David S. Miller  <davem@davemloft.net>
28882
28883         * sysdeps/sparc/sparc32/soft-fp/q_util.c
28884         (___Q_simulate_exceptions): Use real FP ops rather than writing
28885         into the %fsr.
28886         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
28887         Likewise.
28888
28889 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
28890
28891         [BZ #14117]
28892         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
28893         * sysdeps/x86/bits/xtitypes.h: This.
28894
28895         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
28896         * sysdeps/x86/bits/wordsize.h: This.
28897
28898         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
28899         * sysdeps/x86/bits/huge_vall.h: This.
28900
28901         * sysdeps/i386/bits/select.h: Removed.
28902         * sysdeps/x86_64/bits/select.h: Renamed to ...
28903         * sysdeps/x86/bits/select.h: This.
28904
28905         * sysdeps/i386/bits/setjmp.h: Removed.
28906         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
28907         * sysdeps/x86/bits/setjmp.h: This.
28908
28909         * sysdeps/i386/bits/mathdef.h: Removed.
28910         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
28911         * sysdeps/x86/bits/mathdef.h: This.
28912
28913 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
28914
28915         [BZ #14132]
28916         * include/sys/socket.h (__connect_internal)
28917         (__libc_sa_len_internal): Remove declaration.
28918         (__connect, __libc_sa_len): Declare hidden_proto.
28919         (SA_LEN): Remove use of INTUSE.
28920         * socket/connect.c: Add libc_hidden_def.
28921         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
28922         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
28923         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
28924         alias.
28925         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
28926         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
28927         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
28928         of adding _internal alias.
28929
28930 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
28931
28932         [BZ #14117]
28933         * sysdeps/i386/bits/link.h: Removed.
28934         * sysdeps/i386/bits/linkmap.h: Likewise.
28935         * sysdeps/x86_64/bits/link.h: Renamed to ...
28936         * sysdeps/x86/bits/link.h: This.
28937         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
28938         * sysdeps/x86/bits/linkmap.h: This.
28939
28940         * sysdeps/i386/bits/endian.h: Removed.
28941         * sysdeps/x86_64/bits/endian.h: Renamed to ...
28942         * sysdeps/x86/bits/endian.h: This.
28943
28944         * sysdeps/i386/bits/byteswap.h: Removed.
28945         * sysdeps/i386/bits/byteswap-16.h: Likewise.
28946         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
28947         * sysdeps/x86/bits/byteswap.h: This.
28948         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
28949         * sysdeps/x86/bits/byteswap-16.h: This.
28950         * sysdeps/i386/Implies: Add x86.
28951         * sysdeps/x86_64/Implies: Likewise.
28952
28953 2012-05-30  David S. Miller  <davem@davemloft.net>
28954
28955         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
28956         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
28957         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
28958         (FP_TRAPPING_EXCEPTIONS): Define.
28959         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
28960         (FP_TRAPPING_EXCEPTIONS): Define.
28961         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
28962         subnormals only when inexact has been signalled or underflow
28963         exceptions are enabled.
28964         (_FP_PACK_CANONICAL): Likewise.
28965
28966 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
28967
28968         [BZ #14183]
28969         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
28970         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
28971
28972 2012-05-30  Richard Henderson  <rth@twiddle.net>
28973
28974         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
28975         with #ifndef NOT_IN_libc.
28976
28977         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
28978         marked to avoid plt entry.
28979
28980 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
28981
28982         [BZ #14112]
28983         * Makeconfig (default-abi): New macro.
28984         (abi-includes): Likewise.
28985         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
28986         $(abi-$(default-abi)-lib-soname) for soname if defined.
28987         ($(common-objpfx)gnu/lib-names.stmp): Generate from
28988         abi-variants.
28989         * Makefile (installed-stubs): Likewise.
28990         * include/stubs-biarch.h: Removed.
28991         * scripts/lib-names.awk: Only handle one library at a time.
28992         * scripts/soversions.awk: Remove WORDSIZE support.
28993         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
28994         entries.
28995         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
28996         Removed.
28997         (syscall-list-default-condition): Likewise.
28998         (syscall-list-default-condition): Likewise.
28999         (syscall-list-includes): Likewise.
29000         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
29001         syscall-list-* with abi-*.  Handle undefined abi-variants.
29002         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
29003         * sysdeps/unix/sysv/linux/i386/Implies: New file.
29004         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
29005         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
29006         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
29007         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
29008         Removed.
29009         (syscall-list-32-options): Likewise.
29010         (syscall-list-32-condition): Likewise.
29011         (syscall-list-64-options): Likewise.
29012         (syscall-list-64-condition): Likewise.
29013         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
29014         macro.
29015         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
29016         Renamed to ...
29017         (abi-*): This.
29018         (abi-64-ld-soname): New macro.
29019         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
29020         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
29021         Renamed to ...
29022         (abi-*): This.
29023         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
29024         * sysdeps/x86_64/x32/shlib-versions: Likewise.
29025
29026 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
29027
29028         * sysdeps/unix/sysv/linux/kernel-features.h
29029         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
29030         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
29031         include <kernel-features.h>.
29032         [!__NR_ftruncate64]: Remove conditional code.
29033         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29034         [__NR_ftruncate64]: Make code unconditional.
29035         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29036         * sysdeps/unix/sysv/linux/truncate64.c: Do not
29037         include <kernel-features.h>.
29038         [!__NR_ftruncate64]: Remove conditional code.
29039         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29040         [__NR_ftruncate64]: Make code unconditional.
29041         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
29043         include <kernel-features.h>.
29044         [!__NR_ftruncate64]: Remove conditional code.
29045         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29046         [__NR_ftruncate64]: Make code unconditional.
29047         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
29049         include <kernel-features.h>.
29050         [!__NR_ftruncate64]: Remove conditional code.
29051         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29052         [__NR_ftruncate64]: Make code unconditional.
29053         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29054
29055         * configure.in (libc_cv_fpie): Weaken to a compile test using
29056         LIBC_TRY_CC_OPTION.
29057         * configure: Regenerated.
29058
29059 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29060
29061         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
29062         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
29063         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
29064         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29065         Refreshed.
29066         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
29067         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
29068         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
29069         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
29070         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
29071         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29072         Refreshed.
29073
29074 2012-05-27  David S. Miller  <davem@davemloft.net>
29075
29076         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
29077         (___Q_zero): New.
29078         (__Q_simulate_exceptions): Return void.  Change to simulate
29079         exceptions by writing into the %fsr.
29080         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
29081         (__Qp_handle_exceptions): Likewise.
29082         (numbers): Delete.
29083         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
29084         __Qp_handle_exceptions.
29085         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
29086         __Qp_handle_exceptions.
29087         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
29088         as unused and give dummy FP_RND_NEAREST initializer.
29089         (FP_INHIBIT_RESULTS): Define.
29090         (___Q_simulate_exceptions): Update declaration.
29091         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
29092         formatting.
29093         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
29094         as unused and give dummy FP_RND_NEAREST initializer.
29095         (__Qp_handle_exceptions): Update declaration.
29096         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
29097         formatting.
29098
29099 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
29100
29101         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
29102         the temporary FPU control word.
29103         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
29104         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
29105         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
29106         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
29107         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
29108         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
29109         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
29110         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
29111         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
29112         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
29113         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
29114
29115 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29116
29117         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
29118         fields.
29119
29120 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
29121
29122         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
29123         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
29124         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
29125         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
29126         Likewise.
29127         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
29128         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
29129         Likewise.
29130
29131 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
29132
29133         * po/h.po: Update from translation team.
29134
29135 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
29136
29137         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
29138
29139         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
29140         handling of denormals.
29141         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
29142         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
29143         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
29144         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
29145         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
29146         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
29147         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
29148         Likewise.
29149
29150 2012-05-26  Marek Polacek  <polacek@redhat.com>
29151
29152         [BZ #14152]
29153         * math/libm-test.inc (fma_test): Don't always expect underflow
29154         exception.
29155
29156 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29157
29158         [BZ #12416]
29159         * elf/tst-execstack.c: Include stackinfo.h.
29160         (do_test): Adjust test case to ensure that pthread_getattr_np
29161         behaviour remains the same after marking stack executable.
29162
29163 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
29164
29165         * sysdeps/unix/sysv/linux/kernel-features.h
29166         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
29167         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
29168         kernel-features.h.
29169         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
29170         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
29171         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
29172         kernel-features.h.
29173         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
29174         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
29175
29176 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
29177
29178         * configure.in: Define the default includes to being none.
29179         * configure: Regenerated.
29180
29181 2012-05-25  Roland McGrath  <roland@hack.frob.com>
29182
29183         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
29184         * sysdeps/x86_64/setjmp.S: Likewise.
29185         * sysdeps/i386/bsd-setjmp.S: Likewise.
29186         * sysdeps/i386/bsd-_setjmp.S: Likewise.
29187         * sysdeps/i386/setjmp.S: Likewise.
29188         * sysdeps/i386/__longjmp.S: Likewise.
29189         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
29190         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
29191
29192         * include/stap-probe.h: New file.
29193         * configure.in: Handle --enable-systemtap.
29194         * configure: Regenerated.
29195         * config.h.in (USE_STAP_PROBE): New #undef.
29196         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
29197         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
29198         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
29199
29200 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
29201
29202         [BZ #13717]
29203         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
29204         to 2.4.0 where earlier.
29205         * sysdeps/unix/sysv/linux/configure: Regenerated.
29206         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
29207         <kernel-features.h>.
29208         [__ASSUME_32BITUIDS]: Make code unconditional.
29209         [!__ASSUME_32BITUIDS]: Remove conditional code.
29210         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
29211         <kernel-features.h>.
29212         [__ASSUME_32BITUIDS]: Make code unconditional.
29213         [!__ASSUME_32BITUIDS]: Remove conditional code.
29214         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
29215         [__ASSUME_32BITUIDS]: Make code unconditional.
29216         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
29217         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
29218         <kernel-features.h>.
29219         [__ASSUME_32BITUIDS]: Make code unconditional.
29220         [!__ASSUME_32BITUIDS]: Remove conditional code.
29221         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
29222         <kernel-features.h>.
29223         [__ASSUME_32BITUIDS]: Make code unconditional.
29224         [!__ASSUME_32BITUIDS]: Remove conditional code.
29225         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
29226         <kernel-features.h>.
29227         [__ASSUME_32BITUIDS]: Make code unconditional.
29228         [!__ASSUME_32BITUIDS]: Remove conditional code.
29229         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
29230         <kernel-features.h>.
29231         [__ASSUME_32BITUIDS]: Make code unconditional.
29232         [!__ASSUME_32BITUIDS]: Remove conditional code.
29233         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
29234         <kernel-features.h>.
29235         [__ASSUME_32BITUIDS]: Make code unconditional.
29236         [!__ASSUME_32BITUIDS]: Remove conditional code.
29237         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
29238         <kernel-features.h>.
29239         [__ASSUME_32BITUIDS]: Make code unconditional.
29240         [!__ASSUME_32BITUIDS]: Remove conditional code.
29241         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
29242         <kernel-features.h>.
29243         [__ASSUME_32BITUIDS]: Make code unconditional.
29244         [!__ASSUME_32BITUIDS]: Remove conditional code.
29245         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
29246         <kernel-features.h>.
29247         [__ASSUME_32BITUIDS]: Make code unconditional.
29248         [!__ASSUME_32BITUIDS]: Remove conditional code.
29249         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
29250         <kernel-features.h>.
29251         [__ASSUME_32BITUIDS]: Make code unconditional.
29252         [!__ASSUME_32BITUIDS]: Remove conditional code.
29253         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
29254         <kernel-features.h>.
29255         [__ASSUME_32BITUIDS]: Make code unconditional.
29256         [!__ASSUME_32BITUIDS]: Remove conditional code.
29257         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
29258         <kernel-features.h>.
29259         [__NR_setresgid] (__setresgid): Do not declare.
29260         [__ASSUME_32BITUIDS]: Make code unconditional.
29261         [!__ASSUME_32BITUIDS]: Remove conditional code.
29262         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
29263         <kernel-features.h>.
29264         [__NR_setresuid] (__setresuid): Do not declare.
29265         [__ASSUME_32BITUIDS]: Make code unconditional.
29266         [!__ASSUME_32BITUIDS]: Remove conditional code.
29267         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
29268         <kernel-features.h>.
29269         [__ASSUME_32BITUIDS]: Make code unconditional.
29270         [!__ASSUME_32BITUIDS]: Remove conditional code.
29271         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
29272         <kernel-features.h>.
29273         [__ASSUME_32BITUIDS]: Make code unconditional.
29274         [!__ASSUME_32BITUIDS]: Remove conditional code.
29275         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
29276         <kernel-features.h>.
29277         [__ASSUME_32BITUIDS]: Make code unconditional.
29278         [!__ASSUME_32BITUIDS]: Remove conditional code.
29279         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
29280         <kernel-features.h>.
29281         [__ASSUME_32BITUIDS]: Make code unconditional.
29282         [!__ASSUME_32BITUIDS]: Remove conditional code.
29283         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
29284         <kernel-features.h>.
29285         [__ASSUME_32BITUIDS]: Make code unconditional.
29286         [!__ASSUME_32BITUIDS]: Remove conditional code.
29287         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
29288         <kernel-features.h>.
29289         [__ASSUME_32BITUIDS]: Make code unconditional.
29290         [!__ASSUME_32BITUIDS]: Remove conditional code.
29291         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
29292         <kernel-features.h>.
29293         [__ASSUME_32BITUIDS]: Make code unconditional.
29294         [!__ASSUME_32BITUIDS]: Remove conditional code.
29295         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
29296         <kernel-features.h>.
29297         [__ASSUME_32BITUIDS]: Make code unconditional.
29298         [!__ASSUME_32BITUIDS]: Remove conditional code.
29299         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
29300         <kernel-features.h>.
29301         [__ASSUME_32BITUIDS]: Make code unconditional.
29302         [!__ASSUME_32BITUIDS]: Remove conditional code.
29303         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
29304         <kernel-features.h>.
29305         [__ASSUME_32BITUIDS]: Make code unconditional.
29306         [!__ASSUME_32BITUIDS]: Remove conditional code.
29307         * sysdeps/unix/sysv/linux/kernel-features.h
29308         (__ASSUME_SETRESUID_SYSCALL): Remove.
29309         (__ASSUME_SETRESGID_SYSCALL): Likewise.
29310         (__ASSUME_32BITUIDS): Likewise.
29311         (__ASSUME_LDT_WORKS): Likewise.
29312         (__ASSUME_O_DIRECTORY): Likewise.
29313         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
29314         architecture but not kernel version.
29315         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
29316         (__ASSUME_MMAP2_SYSCALL): Likewise.
29317         (__ASSUME_STAT64_SYSCALL): Likewise.
29318         (__ASSUME_IPC64): Likewise.
29319         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
29320         <kernel-features.h>.
29321         [__ASSUME_32BITUIDS]: Make code unconditional.
29322         [!__ASSUME_32BITUIDS]: Remove conditional code.
29323         * sysdeps/unix/sysv/linux/opendir.c: Do not include
29324         <kernel-features.h>.
29325         [__ASSUME_O_DIRECTORY]: Make code unconditional.
29326         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
29327         132096]: Remove conditional code.
29328         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
29329         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
29330         <kernel-features.h>.
29331         [__ASSUME_32BITUIDS]: Make code unconditional.
29332         [!__ASSUME_32BITUIDS]: Remove conditional code.
29333         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
29334         <kernel-features.h>.
29335         [__ASSUME_32BITUIDS]: Make code unconditional.
29336         [!__ASSUME_32BITUIDS]: Remove conditional code.
29337         * sysdeps/unix/sysv/linux/setegid.c: Do not include
29338         <kernel-features.h>.
29339         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
29340         unconditional.
29341         (__setresgid): Do not declare.
29342         [__ASSUME_32BITUIDS]: Make code unconditional.
29343         [!__ASSUME_32BITUIDS]: Remove conditional code.
29344         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
29345         <kernel-features.h>.
29346         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
29347         unconditional.
29348         (__setresuid): Do not declare.
29349         [__ASSUME_32BITUIDS]: Make code unconditional.
29350         [!__ASSUME_32BITUIDS]: Remove conditional code.
29351         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
29352         <kernel-features.h>.
29353         [__ASSUME_32BITUIDS]: Make code unconditional.
29354         [!__ASSUME_32BITUIDS]: Remove conditional code.
29355         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
29356         <kernel-features.h>.
29357         [__ASSUME_32BITUIDS]: Make code unconditional.
29358         [!__ASSUME_32BITUIDS]: Remove conditional code.
29359
29360 2012-05-25  Richard Henderson  <rth@twiddle.net>
29361
29362         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
29363         dl_hwcap to ifunc resolver.
29364         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
29365         elf_ifunc_invoke.
29366         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
29367         dl_hwcap to ifunc resolver.
29368         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
29369
29370 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
29371
29372         [BZ #14153]
29373         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
29374         for |x| <= 2**-26, not 2**-57.
29375         * math/libm-test.inc (acos_test): Do not allow spurious underflow
29376         exception.
29377
29378 2012-05-24  Jeff Law  <law@redhat.com>
29379
29380         * stdio-common/Makefile (tests): Add bug25.
29381         * stdio-common/bug25.c: New test.
29382
29383 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
29384
29385         [BZ #13576]
29386         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
29387         multiple of MALLOC_ALIGNMENT in size.
29388         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
29389
29390 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
29391
29392         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
29393         Require >= 256.
29394         (FILENAME_MAX): Use macro-int-constant.
29395         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
29396         (_IOFBF): Use macro-int-constant.
29397         (_IOLBF): Likewise.
29398         (_IONBF): Likewise.
29399         (SEEK_CUR): Likewise.
29400         (SEEK_END): Likewise.
29401         (SEEK_SET): Likewise.
29402         (TMP_MAX): Likewise.
29403         (EOF): Use macro-int-constant.  Require < 0.
29404         (NULL): Use macro-constant.  Require == 0.
29405         (stdin): Require type to be FILE *.
29406         (stdout): Likewise.
29407         (stderr): Likewise.
29408         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
29409         macro-int-constant.
29410         (EXIT_SUCCESS): Likewise.
29411         (NULL): Use macro-constant.  Require == 0.
29412         (RAND_MAX): Use macro-int-constant.
29413         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
29414         [C99-based standards] (strtof): Require function.
29415         [C99-based standards] (strtold): Likewise.
29416         [C99-based standards] (strtoll): Likewise.
29417         [C99-based standards] (strtoull): Likewise.
29418         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
29419         [ISO || ISO99 || ISO11] (limits.h): Likewise.
29420         [ISO || ISO99 || ISO11] (math.h): Likewise.
29421         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
29422         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
29423         [ISO || ISO99 || ISO11] (*_t): Do not allow.
29424
29425 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
29426
29427         [BZ #14132]
29428         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
29429         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
29430         * intl/dgettext.c (DCGETTEXT): Likewise.
29431         * intl/gettext.c (DCGETTEXT): Likewise.
29432         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
29433         * posix/regex_internal.h (gettext): Likewise.
29434         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
29435         Remove declaration.
29436         * include/argz.h (__argz_count_internal)
29437         (__argz_stringify_internal): Remove declaration.
29438         (__argz_count, __argz_stringify): Declare hidden proto.
29439         * intl/dcgettext.c: Remove use of INTDEF.
29440         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
29441         * string/argz-stringify.c: Likewise.
29442         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
29443         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
29444         Declare hidden proto.
29445         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
29446         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
29447         Declare hidden proto.
29448         * include/stdio.h (__asprintf_internal): Don't declare.
29449         (__asprintf): Don't define as macro.  Declare hidden proto.
29450         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
29451         (__fsetlocking): Declare hidden proto.
29452         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
29453         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
29454         hidden proto.
29455         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
29456         (_IO_setlinebuf): Remove use of INTUSE.
29457         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
29458         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
29459         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
29460         Remove declaration.
29461         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
29462         (_IO_do_flush): Remove use of INTUSE.
29463         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
29464         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
29465         (_IO_adjust_column, _IO_least_wmarker)
29466         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
29467         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
29468         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
29469         (_IO_default_doallocate, _IO_wdefault_doallocate)
29470         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
29471         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
29472         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
29473         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
29474         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
29475         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
29476         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
29477         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
29478         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
29479         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
29480         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
29481         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
29482         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
29483         proto.
29484         (_IO_flush_all_internal, _IO_adjust_column_internal)
29485         (_IO_default_uflow_internal, _IO_default_finish_internal)
29486         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
29487         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
29488         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
29489         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
29490         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
29491         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
29492         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
29493         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
29494         (_IO_file_close_internal, _IO_file_close_it_internal)
29495         (_IO_file_underflow_internal, _IO_file_overflow_internal)
29496         (_IO_file_init_internal, _IO_file_attach_internal)
29497         (_IO_file_fopen_internal, _IO_file_read_internal)
29498         (_IO_file_sync_internal, _IO_file_seek_internal)
29499         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
29500         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
29501         (_IO_str_underflow_internal, _IO_str_overflow_internal)
29502         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
29503         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
29504         (_IO_list_all_internal, _IO_link_in_internal)
29505         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
29506         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
29507         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
29508         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
29509         (_IO_do_write_internal, _IO_padn_internal)
29510         (_IO_getline_info_internal, _IO_getline_internal)
29511         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
29512         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
29513         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
29514         (_IO_vfscanf_internal, _IO_vfprintf_internal)
29515         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
29516         (_IO_init_internal, _IO_un_link_internal): Don't declare.
29517         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
29518         with libc_hidden_ver, remove use of INTUSE.
29519         * libio/genops.c: Likewise.
29520         * libio/freopen.c: Likewise.
29521         * libio/freopen64.c: Likewise.
29522         * libio/iofclose.c: Likewise.
29523         * libio/iofdopen.c: Likewise.
29524         * libio/iofflush.c: Likewise.
29525         * libio/iofflush_u.c: Likewise.
29526         * libio/iofgets.c: Likewise.
29527         * libio/iofgets_u.c: Likewise.
29528         * libio/iofopen.c: Likewise.
29529         * libio/iofopncook.c: Likewise.
29530         * libio/iofread.c: Likewise.
29531         * libio/iofread_u.c: Likewise.
29532         * libio/ioftell.c: Likewise.
29533         * libio/iofwrite.c: Likewise.
29534         * libio/iogetline.c: Likewise.
29535         * libio/iogets.c: Likewise.
29536         * libio/iogetwline.c: Likewise.
29537         * libio/iopadn.c: Likewise.
29538         * libio/iopopen.c: Likewise.
29539         * libio/ioseekoff.c: Likewise.
29540         * libio/ioseekpos.c: Likewise.
29541         * libio/iosetbuffer.c: Likewise.
29542         * libio/iosetvbuf.c: Likewise.
29543         * libio/ioungetc.c: Likewise.
29544         * libio/ioungetwc.c: Likewise.
29545         * libio/iovdprintf.c: Likewise.
29546         * libio/iovsprintf.c: Likewise.
29547         * libio/iovsscanf.c: Likewise.
29548         * libio/memstream.c: Likewise.
29549         * libio/obprintf.c: Likewise.
29550         * libio/oldfileops.c: Likewise.
29551         * libio/oldiofclose.c: Likewise.
29552         * libio/oldiofdopen.c: Likewise.
29553         * libio/oldiofopen.c: Likewise.
29554         * libio/oldiopopen.c: Likewise.
29555         * libio/oldstdfiles.c: Likewise.
29556         * libio/putc.c: Likewise.
29557         * libio/setbuf.c: Likewise.
29558         * libio/setlinebuf.c: Likewise.
29559         * libio/stdfiles.c: Likewise.
29560         * libio/strops.c: Likewise.
29561         * libio/vasprintf.c: Likewise.
29562         * libio/vscanf.c: Likewise.
29563         * libio/vsnprintf.c: Likewise.
29564         * libio/vswprintf.c: Likewise.
29565         * libio/wfiledoalloc.c: Likewise.
29566         * libio/wfileops.c: Likewise.
29567         * libio/wgenops.c: Likewise.
29568         * libio/wmemstream.c: Likewise.
29569         * libio/wstrops.c: Likewise.
29570         * libio/__fpurge.c: Likewise.
29571         * libio/__fsetlocking.c: Likewise.
29572         * assert/assert.c: Likewise.
29573         * debug/fgets_chk.c: Likewise.
29574         * debug/fgets_u_chk.c: Likewise.
29575         * debug/fread_chk.c: Likewise.
29576         * debug/fread_u_chk.c: Likewise.
29577         * debug/gets_chk.c: Likewise.
29578         * debug/obprintf_chk.c: Likewise.
29579         * debug/vasprintf_chk.c: Likewise.
29580         * debug/vdprintf_chk.c: Likewise.
29581         * debug/vsnprintf_chk.c: Likewise.
29582         * debug/vsprintf_chk.c: Likewise.
29583         * malloc/mtrace.c: Likewise.
29584         * misc/error.c: Likewise.
29585         * misc/syslog.c: Likewise.
29586         * stdio-common/asprintf.c: Likewise.
29587         * stdio-common/fxprintf.c: Likewise.
29588         * stdio-common/getw.c: Likewise.
29589         * stdio-common/isoc99_fscanf.c: Likewise.
29590         * stdio-common/isoc99_scanf.c: Likewise.
29591         * stdio-common/isoc99_vfscanf.c: Likewise.
29592         * stdio-common/isoc99_vscanf.c: Likewise.
29593         * stdio-common/isoc99_vsscanf.c: Likewise.
29594         * stdio-common/printf-prs.c: Likewise.
29595         * stdio-common/printf_fp.c: Likewise.
29596         * stdio-common/printf_fphex.c: Likewise.
29597         * stdio-common/printf_size.c: Likewise.
29598         * stdio-common/putw.c: Likewise.
29599         * stdio-common/scanf.c: Likewise.
29600         * stdio-common/sprintf.c: Likewise.
29601         * stdio-common/tmpfile.c: Likewise.
29602         * stdio-common/vfprintf.c: Likewise.
29603         * stdio-common/vfscanf.c: Likewise.
29604         * stdlib/strfmon_l.c: Likewise.
29605         * sunrpc/openchild.c: Likewise.
29606         * sunrpc/xdr_stdio.c: Likewise.
29607         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
29608         * sysdeps/mach/hurd/tmpfile.c: Likewise.
29609
29610 2012-05-24  Roland McGrath  <roland@hack.frob.com>
29611
29612         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
29613
29614         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
29615         in the third column, to generate for the shared library an IFUNC
29616         that uses _dl_vdso_vsym.
29617         * Makerules (COMPILE.c, compile-stdin.c): New variables.
29618         * Makeconfig (object-suffixes-noshared): New variable.
29619
29620         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
29621         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
29622         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
29623         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
29624
29625         [BZ #14132]
29626         * include/sys/time.h (__gettimeofday): Remove macro.
29627         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
29628         * time/gettimeofday.c (__gettimeofday): Remove #undef.
29629         Remove INTDEF.
29630         (__gettimeofday): Add libc_hidden_def.
29631         (gettimeofday): Add libc_hidden_weak.
29632         * sysdeps/mach/gettimeofday.c: Likewise.
29633         * sysdeps/posix/gettimeofday.c: Likewise.
29634         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
29635         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
29636         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
29637         (__gettimeofday_internal): Remove strong_alias.
29638         (__gettimeofday): Add libc_hidden_def.
29639         (gettimeofday): Add libc_hidden_weak.
29640         * sysdeps/unix/syscalls.list (gettimeofday):
29641         Remove __gettimeofday_internal alias.
29642
29643 2012-05-24  Daniel Jacobowitz  <drow@false.org>
29644             H.J. Lu  <hongjiu.lu@intel.com>
29645
29646         [BZ #12495]
29647         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
29648         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
29649         (largebin_index_32_big): New.
29650         (largebin_index): Use it for 16-byte alignment.
29651         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
29652         correction with front_misalign.
29653
29654 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
29655
29656         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
29657         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
29658         Likewise.
29659         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
29660         Likewise.
29661         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
29662         Likewise.
29663         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
29664         Likewise.
29665         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
29666         Likewise.
29667         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
29668         Likewise.
29669         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
29670         Likewise.
29671         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
29672         Likewise.
29673         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
29674         Likewise.
29675         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
29676         Likewise.
29677         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
29678         Likewise.
29679         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
29680         Likewise.
29681
29682         * scripts/data/c++-types-x32-linux-gnu.data: New file.
29683         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
29684
29685 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
29686
29687         [BZ #10846]
29688         [BZ #14036]
29689         * math/libm-test.inc (exp_test): Add test from bug 14036.
29690         (pow_test): Add test from bug 10846.
29691
29692         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
29693         and other flags.
29694         (special_function): Do not include flags in test name.
29695         (parse_args): Likewise.
29696         * sysdeps/i386/fpu/libm-test-ulps: Update.
29697         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29698         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29699         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29700         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29701
29702         * math/gen-libm-test.pl (%beautify): Add entries for underflow
29703         exceptions.
29704         * math/libm-test.inc ("Philosophy"): Update comment about
29705         exception testing.
29706         (UNDERFLOW_EXCEPTION): New macro.
29707         (UNDERFLOW_EXCEPTION_OK): Likewise.
29708         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
29709         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
29710         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
29711         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
29712         (INVALID_EXCEPTION_OK): Update value.
29713         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
29714         (OVERFLOW_EXCEPTION_OK): Likewise.
29715         (IGNORE_ZERO_INF_SIGN): Likewise.
29716         (test_exceptions): Handle underflow exceptions.
29717         (acos_test): Update for underflow exception expectations.
29718         (cexp_test): Likewise.
29719         (clog_test): Likewise.
29720         (clog10_test): Likewise.
29721         (csqrt_test): Likewise.
29722         (ctan_test): Likewise.
29723         (ctanh_test): Likewise.
29724         (exp_test): Likewise.
29725         (exp10_test): Likewise.
29726         (exp2_test): Likewise.
29727         (expm1_test): Likewise.
29728         (fma_test): Likewise.
29729         (j0_test): Likewise.
29730         (jn_test): Likewise.
29731         (nexttoward_test): Likewise.
29732         (pow_test): Likewise.
29733         (scalbn_test): Likewise.
29734         (scalbln_test): Likewise.
29735         (tan_test): Likewise.
29736         (y1_test): Likewise.
29737         * sysdeps/i386/fpu/libm-test-ulps: Update.
29738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29739
29740 2012-05-23  David S. Miller  <davem@davemloft.net>
29741
29742         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
29743         (__libc_sigaction): Remove unused local variables.
29744
29745 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
29746
29747         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
29748
29749 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
29750
29751         mktime: avoid signed integer overflow
29752         * time/mktime.c (__mktime_internal): Do not mishandle the case
29753         where diff == INT_MIN.
29754
29755         mktime: simplify computation of average
29756         * time/mktime.c (ranged_convert): Use new time_t_avg function
29757         instead of rolling our own (probably-slower) code.
29758
29759         mktime: do not assume signed right shift propagates sign bit
29760         * time/mktime.c (isdst_differ): New static function.
29761         (__mktime_internal): No need to normalize tm_isdst now.
29762         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
29763         tm_isdst values.
29764
29765         mktime: merge another wrapv change from gnulib
29766         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
29767         from some compilers.
29768
29769         mktime: remove incorrect attempt at unusual arithmetics
29770         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
29771         The code didn't really work on such machines anyway.
29772         (TYPE_MINIMUM): Assume two's complement.
29773         (twos_complement_arithmetic): Verify that long_int and time_t
29774         are two's complement (or unsigned, in the latter case).
29775
29776         mktime: check signed shifts on long_int and time_t, too
29777         * time/mktime.c (SHR): Check that shifts work as desired
29778         on the types long_int and time_t too, as SHR is used on
29779         such types.
29780
29781         mktime: do not assume 'long' is wide enough
29782         * time/mktime.c (verify): Move decl up.
29783         (long_int): New type.
29784         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
29785         to remove assumption in the code that 'long' is wide enough to
29786         store year values.  This assumption is not true on x32 and on
29787         some non-glibc platforms.
29788
29789         mktime: merge wrapv change from gnulib
29790         * time/mktime.c (WRAPV): New macro.
29791         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
29792         (guess_time_tm, __mktime_internal): Do not assume that signed
29793         integer overflow wraps around; modern compilers generate code
29794         where this assumption is no longer valid.
29795
29796 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
29797
29798         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
29799         Replace "jmp L(pseudo_end)" with "ret".
29800         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
29801         Likewise.
29802
29803 2012-05-23  Andreas Jaeger  <aj@suse.de>
29804
29805         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
29806         * sysdeps/unix/sysv/linux/poll.c: Remove file.
29807
29808 2012-05-23  Andreas Jaeger  <aj@suse.de>
29809             Maximilian Attems  <max@stro.at>
29810
29811         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
29812         New macros.
29813
29814 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
29815
29816         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
29817         code so that pseudo_end is just ret and the stack pointer is
29818         correct also for static library in error case.
29819
29820 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
29821
29822         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
29823         move to syscalls.list.
29824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29828
29829         * manual/install.texi (Running make install): Do not mention Linux
29830         kernel version for which pt_chown is not needed.
29831         (Linux): Do not mention problems with nscd with 2.0 kernels.
29832         * INSTALL: Regenerated.
29833
29834 2012-05-23  Andreas Jaeger  <aj@suse.de>
29835
29836         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
29837         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
29838         macro.
29839         * sysdeps/unix/sysv/linux/s390/bits/mman.h
29840         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
29841         * sysdeps/unix/sysv/linux/sh/bits/mman.h
29842         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
29843         * sysdeps/unix/sysv/linux/i386/bits/mman.h
29844         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
29845         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
29846         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
29847         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
29848         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
29849         * sysdeps/unix/sysv/linux/bits/in.h
29850         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
29851
29852 2012-05-22  Roland McGrath  <roland@hack.frob.com>
29853
29854         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
29855         (PREPARE_VERSION): Just use assert instead, it will be elided
29856         under [NDEBUG] anyway.
29857
29858 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
29859
29860         * sysdeps/unix/sysv/linux/Makefile: Include
29861         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
29862         (sysdep_routines): Remove sysctl.
29863         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
29864         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
29865         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
29866         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
29867         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
29868
29869 2012-05-22  Andreas Jaeger  <aj@suse.de>
29870
29871         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
29872         that pseudo_end is just ret and the stack pointer is correct also
29873         for static library in error case.
29874
29875 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
29876
29877         [BZ #14122]
29878         * nss/nsswitch.c (defconfig_entries): New variable.
29879         (__nss_database_lookup): Don't leak defconfig entries.
29880         (nss_parse_service_list): Don't leak on error paths.
29881         (free_database_entries): New function.
29882         (free_defconfig): New function.
29883         (free_mem): Move common code to free_database_entries.
29884
29885 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
29886
29887         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
29888         Add arch_prctl.
29889         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
29890
29891         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
29892         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
29893         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
29894         New macro.
29895         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
29896         (INTERNAL_SYSCALL_TYPES): Likewise.
29897         (LOAD_ARGS_TYPES_[1-6]): Likewise.
29898         (LOAD_REGS_TYPES_[1-6]): Likewise.
29899         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
29900         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
29901
29902 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29903
29904         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
29905         copysignl for GLIBC_2_0.
29906         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
29907         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
29908         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
29909         logbl for GLIBC_2_0.
29910         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
29911         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
29912
29913 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
29914
29915         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
29916         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
29917
29918         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
29919         Use "neg %eax".
29920
29921         * time/mktime.c: Update copyright years.
29922
29923 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
29924
29925         mktime: merge comment-quoting-style change from gnulib
29926         * time/mktime.c: Quote 'like this' in comments.
29927         The GNU coding standards suggest that we no longer quote `like this',
29928         as "`" and "'" are typically rendered asymmetrically nowadays.
29929         The typical gnulib style is to quote 'like this' when quoting
29930         code, and "like this" when quoting English.
29931
29932         * time/mktime.c (compile-command): Add "-I.".
29933
29934         mktime: merge mktime-internal.h change from gnulib
29935         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
29936
29937         mktime: merge time_r change from gnulib
29938         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
29939
29940         mktime: merge DEBUG change from gnulib
29941         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
29942         case system <time.h> has a #define.
29943
29944         mktime: merge <sys/types.h> change from gnulib
29945         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
29946         since <time.t> is now guaranteed to define time_t.
29947
29948         mktime: merge HAVE_CONFIG_H change from gnulib
29949         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
29950
29951 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
29952
29953         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
29954         Use "neg %eax".
29955
29956         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
29957         __rlim_t cast.
29958         (struct rusage): Use anonymous union to pad each field to
29959         __syscall_slong_t.
29960
29961 2012-05-21  David S. Miller  <davem@davemloft.net>
29962
29963         * Makefules (o-iterator): Remove .s cases.
29964         (compile-command.s): Delete.
29965         (COMPILE.s): Delete.
29966         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
29967
29968 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
29969
29970         * configure.in (libc_cv_predef_stack_protector): Only consider
29971         "foobar" and "__stack_chk_fail" lines in libc_undefs.
29972         * configure: Regenerated.
29973
29974 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
29975
29976         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
29977         New macro.  Use R*LP on int and pointer.
29978         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
29979         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
29980         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
29981         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
29982
29983         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
29984         [__WORDSIZE_TIME64_COMPAT32] instead of
29985         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
29986         (struct utmp): Likewise.
29987         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
29988         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
29989         Renamed to ...
29990         (__WORDSIZE_TIME64_COMPAT32): This.
29991         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
29992         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
29993         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
29994         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
29995         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
29996         (__WORDSIZE_TIME64_COMPAT32): New macro.
29997
29998 2012-05-21  Andreas Jaeger  <aj@suse.de>
29999
30000         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
30001         only if [SHARED]. Add prototype for __wcschr_ia32.
30002
30003 2012-05-21  Roland McGrath  <roland@hack.frob.com>
30004
30005         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
30006         of %rbp unmolested in the jmp_buf while mangling the low bits.
30007         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
30008         unmolested high bits of %rbp while demangling the low bits.
30009         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
30010
30011 2012-05-21  Andreas Jaeger  <aj@suse.de>
30012
30013         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
30014         * sunrpc/svc_simple.c: Use it for registerrpc.
30015         * sunrpc/xcrypt.c: Use it for passwd2des.
30016
30017         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
30018
30019 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
30020
30021         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
30022         Don't define if [__SYSCALL_WORDSIZE != 32].
30023         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
30024         New macro.
30025
30026 2012-05-21  Bruno Haible  <bruno@clisp.org>
30027             Andreas Jaeger  <aj@suse.de>
30028
30029         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
30030         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
30031         inptr and inend for must_buffer_ch.
30032         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
30033         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
30034         * stdio-common/Makefile (tests): Remove bug15.
30035         (bug15-ENV): Remove macro.
30036         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
30037         anymore.
30038
30039 2012-05-19  Andreas Jaeger  <aj@suse.de>
30040             Roland McGrath  <roland@hack.frob.com>
30041
30042         * manual/contrib.texi: Completely rewritten. It contains now an
30043         alphabetical list of contributors and their contributions.
30044
30045 2012-05-21  Richard Henderson  <rth@twiddle.net>
30046
30047         * misc/getauxval.c (__getauxval): Use unsigned long int.
30048         * misc/sys/auxv.h: Include <sys/cdefs.h>.
30049         (getauxval): Use unsigned long int.
30050
30051 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
30052
30053         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
30054
30055 2012-05-21  Roland McGrath  <roland@hack.frob.com>
30056
30057         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
30058         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
30059         __alignof__ (long double).
30060
30061 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30062
30063         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30064
30065 2012-05-20  Richard Henderson  <rth@twiddle.net>
30066
30067         * misc/getauxval.c: New file.
30068         * misc/sys/auxv.h: New file.
30069         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
30070         (routines): Add getauxval.
30071         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
30072         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
30073         * elf/dl-sysdep.c (_dl_auxv): Remove.
30074         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
30075         * elf/dl-support.c (_dl_auxv): New variable.
30076         (_dl_aux_init): Initialize it.
30077         * manual/startup.texi (Auxiliary Vector): New node.
30078         * sysdeps/generic/bits/hwcap.h: New file.
30079         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
30080         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
30081         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
30082         * sysdeps/sparc/sysdep.h: ... here.  Include it.
30083         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
30084         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
30085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30086         Update.
30087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
30088         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
30089         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
30090         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
30091         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
30092         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
30093         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
30094         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
30095
30096 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30097
30098         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30099
30100 2012-05-19  David S. Miller  <davem@davemloft.net>
30101
30102         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30103
30104 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
30105
30106         [BZ #14123]
30107         * math/s_ccosh.c: Include <float.h>
30108         (__ccosh): Avoid internal overflow calculating sinh and cosh
30109         values before multiplying by sin and cos values.
30110         * math/s_ccoshf.c: Likewise.
30111         * math/s_ccoshl.c: Likewise.
30112         * math/s_csin.c: Likewise.
30113         * math/s_csinf.c: Likewise.
30114         * math/s_csinl.c: Likewise.
30115         * math/s_csinh.c: Likewise.
30116         * math/s_csinhf.c: Likewise.
30117         * math/s_csinhl.c: Likewise.
30118         * math/libm-test.inc (ccos_test): Add more tests.
30119         (ccosh_test): Likewise.
30120         (csin_test): Likewise.
30121         (csinh_test): Likewise.
30122         * sysdeps/i386/fpu/libm-test-ulps: Update.
30123         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30124
30125 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
30126
30127         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
30128         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
30129
30130         * sysdeps/x86_64/x32/_itoa.h: Add comment.
30131
30132 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
30133
30134         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
30135         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
30136         * sysdeps/powerpc/soft-fp/Versions: Likewise.
30137         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
30138         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
30139         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
30140         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
30141         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
30142         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
30143         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
30144         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
30145         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
30146         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
30147         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
30148         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
30149         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
30150         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
30151         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
30152         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
30153         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
30154         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
30155         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
30156         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
30157         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
30158         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
30159         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
30160         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
30161         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
30162         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
30163         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
30164         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
30165
30166 2012-05-18  Andreas Jaeger  <aj@suse.de>
30167
30168         * csu/.gitignore: Delete.
30169
30170 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
30171
30172         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
30173         (timex): Use __syscall_slong_t.
30174
30175 2012-05-18  Andreas Jaeger  <aj@suse.de>
30176             Carlos O'Donell  <carlos_odonell@mentor.com>
30177
30178         * manual/install.texi (Configuring and compiling): Update
30179         description about files modified in the source directory.
30180         * INSTALL: Regenerated.
30181
30182 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
30183
30184         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
30185         value.  Use "or" to set return value to -1.
30186         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
30187         negate return value.
30188
30189 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30190
30191         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
30192         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
30193         failure if the compiler has Graphite support disabled.
30194         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
30195         Likewise.
30196         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
30197         (CFLAGS-memmove.c): Likewise.
30198         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
30199         Likewise.
30200
30201 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
30202
30203         * sysdeps/x86_64/x32/_itoa.h: New file.
30204
30205         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
30206         getdents system call only if kernel and user dirents have the
30207         same d_ino and d_off.
30208
30209         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
30210         LLONG_MAX != LONG_MAX.
30211         (_itoa_word): Use _ITOA_WORD_TYPE on value.
30212         (_fitoa_word): Likewise.
30213
30214         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
30215         years.
30216         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
30217         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
30218         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
30219
30220         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
30221         include <bits/wordsize.h>.  Check __x86_64__ instead of
30222         __WORDSIZE.
30223         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
30224         if __x86_64__ is defined.  Use anonymous union on fpstate.
30225
30226         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
30227         anonymous union.
30228
30229 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
30230
30231         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
30232         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
30233         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
30234         Refer to _rtld_local_ro instead of _rtld_global_ro.
30235         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
30236         Likewise.
30237         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
30238         Likewise.
30239         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
30240         Likewise.
30241         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
30242         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
30243         of _rtld_global, and rtld_progname instead of _dl_argv[0].
30244
30245         * sysdeps/powerpc/powerpc32/dl-machine.c
30246         (__elf_machine_runtime_setup) [PROF]: Don't reference
30247         _dl_prof_resolve.
30248
30249 2012-05-18  Andreas Jaeger  <aj@suse.de>
30250
30251         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
30252         function only available for GCCs before 3.4 since GCC 3.4
30253         introduced a builtin.
30254         (lrint): Likewise.
30255         (llrintf): Likewise.
30256         (llrint): Likewise.
30257         (fmaxf): Likewise.
30258         (fmax): Likewise.
30259         (fminf): Likewise.
30260         (fmin): Likewise.
30261         (rint): Likewise.
30262         (rintf): Likewise.
30263         (nearbyint): Likewise.
30264         (nearbyintf): Likewise.
30265         (ceil): Likewise.
30266         (ceilf): Likewise.
30267         (floor): Likewise.
30268         (floorf): Likewise.
30269
30270 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
30271
30272         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
30273         on both fields and cast pointer to __syscall_ulong_t.
30274
30275         * bits/types.h (__fsword_t): New type.
30276         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
30277         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
30278         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
30279         (__FSWORD_T_TYPE): Likewise.
30280         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
30281         (__FSWORD_T_TYPE): Likewise.
30282         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
30283         (__FSWORD_T_TYPE): Likewise.
30284         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
30285         (__FSWORD_T_TYPE): Likewise.
30286         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
30287         __SWORD_TYPE with __fsword_t.
30288         (statfs64): Likewise.
30289
30290 2012-05-17  David S. Miller  <davem@davemloft.net>
30291
30292         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
30293
30294 2012-05-17  Andreas Jaeger  <aj@suse.de>
30295
30296         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
30297         warning.
30298
30299 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
30300
30301         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
30302
30303 2012-05-17  Andreas Jaeger  <aj@suse.de>
30304
30305         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
30306         when it is used.
30307
30308 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
30309
30310         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
30311
30312 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
30313
30314         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
30315         * sysdeps/x86_64/tst-mallocalign1.c: New file.
30316
30317 2012-05-17  Andreas Jaeger  <aj@suse.de>
30318             Carlos O'Donell  <carlos_odonell@mentor.com>
30319
30320         [BZ #14059]
30321         * sysdeps/x86_64/multiarch/init-arch.h
30322         (bit_YMM_Usable): Rename to...
30323         (bit_AVX_Usable): ... this.
30324         (bit_FMA4_Usable): New macro.
30325         (bit_XMM_state): New macro.
30326         (bit_YMM_state): New macro.
30327         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
30328         [__ASSEMBLER__] (index_AVX_Usable): ... this.
30329         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
30330         (CPUID_OSXSAVE): New macro.
30331         (CPUID_AVX): New macro.
30332         (CPUID_FMA4): New macro.
30333         (index_YMM_Usable): Rename to...
30334         (index_AVX_Usable): ... this.
30335         (HAS_AVX): Use HAS_ARCH_FEATURE.
30336         (HAS_FMA4): Likewise.
30337         (HAS_YMM_USABLE): Remove.
30338         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30339         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
30340         are present.
30341         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
30342         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
30343         * sysdeps/x86_64/multiarch/Makefile: Likewise.
30344         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
30345         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
30346
30347 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
30348
30349         * math/libm-test.c: Support platforms without multiple rounding modes.
30350         * math/bug-nextafter.c: Support platforms without FP exceptions.
30351         * math/bug-nexttoward.c: Likewise.
30352         * math/test-fenv.c: Likewise.
30353         * math/test-misc.c: Likewise.
30354         * stdlib/bug-getcontext.c: Likewise.
30355
30356 2012-05-17  Andreas Jaeger  <aj@suse.de>
30357
30358         * manual/examples/search.c (critter_cmp): Change signature to
30359         avoid warnings.
30360         * manual/string.texi (Collation Functions): Likewise.
30361
30362 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30363
30364         * bits/types.h: Fold copyright years.
30365         * bits/typesizes.h: Likewise.
30366         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
30367         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
30368         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
30369         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
30370         * time/time.h: Likewise.
30371
30372 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
30373
30374         [BZ #208]
30375         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
30376         in instead of returning them.  Return void.
30377         (__libc_mallinfo): Accumulate over all arenas.
30378         (__malloc_stats): Adjust for change in int_mallinfo interface.
30379
30380 2012-05-16  Roland McGrath  <roland@hack.frob.com>
30381
30382         [BZ #10375]
30383         * configure.in (NM): Add AC_CHECK_TOOL for it.
30384         (libc_extra_cflags): New substituted variable.
30385         Check for -fstack-protector being used implicitly.
30386         * configure: Regenerated.
30387         * config.make.in (config-extra-cflags): New variable,
30388         gets @libc_extra_cflags@.
30389         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
30390
30391         [BZ #10375]
30392         * configure.in: Check for _FORTIFY_SOURCE being predefined.
30393         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
30394         * configure: Regenerated.
30395         * config.make.in (CPPUNDEFS): New substituted variable.
30396         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
30397         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
30398         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
30399
30400 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30401
30402         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
30403         (mq_attr): Use __syscall_slong_t.
30404
30405 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30406
30407         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
30408         Check __x86_64__ instead of __WORDSIZE.
30409         (_STAT_VER_LINUX): Likewise.
30410         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
30411         __syscall_ulong_t and __syscall_slong_t.
30412         (stat64): Likewise.
30413
30414 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30415
30416         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
30417
30418 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30419
30420         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
30421
30422 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30423
30424         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
30425         __syscall_ulong_t.
30426
30427         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
30428         include <bits/wordsize.h>.  Check __x86_64__ instead of
30429         __WORDSIZE.
30430         (greg_t): Use "__extension__ long long int" if __x86_64__ is
30431         defined.
30432         (mcontext_t): Replace "unsigned long" with "unsigned long long".
30433
30434         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
30435         include <bits/wordsize.h>.  Check __x86_64__ instead of
30436         __WORDSIZE.
30437         (user_regs_struct): Use "__extension__ unsigned long long"
30438         instead of "unsigned long" if __x86_64__ is defined.
30439         (user): Likewise.  Pad after pointer field if __ILP32__ is
30440         defined.
30441
30442 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
30443
30444         * configure.in (makeinfo): Require version 4.5 or later.  Allow
30445         versions 5 to 9.
30446         * configure: Regenerated.
30447         * manual/install.texi (texinfo): Increase version requirement to
30448         4.5 or later.
30449         * INSTALL: Regenerated.
30450
30451         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
30452
30453 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30454
30455         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
30456
30457         * sysdeps/x86_64/x32/ffs.c: New file.
30458
30459         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
30460         __syscall_ulong_t.
30461         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
30462         defined.  Use __syscall_ulong_t.
30463         (shminfo): Use __syscall_ulong_t.
30464         (shm_info): Likewise.
30465
30466         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
30467         __syscall_ulong_t.
30468
30469         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
30470         <bits/wordsize.h>.
30471         (msgqnum_t): Use __syscall_ulong_t.
30472         (msglen_t): Likewise.
30473         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
30474         __syscall_ulong_t.
30475
30476         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
30477         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
30478
30479         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
30480
30481         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
30482         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
30483
30484         * sysvipc/sys/msg.h (msgbuf): Replace long int with
30485         __syscall_slong_t.
30486
30487         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
30488         include <bits/wordsize.h>.  Check __x86_64__ instead of
30489         __WORDSIZE.
30490
30491         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
30492         "unsigned long long int" if __x86_64__ is defined.
30493         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
30494
30495         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
30496         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
30497         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
30498
30499         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
30500         <stdint.h>.
30501         (GET_PC): Cast to uintptr_t first.
30502         (GET_FRAME): Likewise.
30503         (GET_STACK): Likewise.
30504
30505         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
30506         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
30507         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
30508         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
30509         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
30510         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
30511         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
30512         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
30513         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30514         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
30515         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
30516         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
30517         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
30518         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
30519         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
30520         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
30521         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
30522         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
30523         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
30524         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
30525         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
30526         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
30527         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
30528         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
30529         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
30530         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
30531         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
30532         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
30533         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
30534
30535 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
30536
30537         * Makerules (+depfiles): Also collect depfiles from .oS in
30538         $(extra-objs).
30539         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
30540         .oS, $(libnldbl-routines)).
30541
30542         * Makerules (native-compile-mkdep-flags): Define.
30543         * sunrpc/Makefile (extra-objs): Add $(addprefix
30544         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
30545         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
30546         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
30547         calling $(make-target-directory).
30548
30549 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30550
30551         * bits/types.h (__snseconds_t): Removed.
30552         * time/time.h (struct timespec): Replace __snseconds_t with
30553         __syscall_slong_t.
30554         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
30555         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
30556         Likewise.
30557         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
30558         (__SNSECONDS_T_TYPE): Likewise.
30559         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
30560         (__SNSECONDS_T_TYPE): Likewise.
30561         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
30562         (__SNSECONDS_T_TYPE): Likewise.
30563
30564 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30565
30566         * sysdeps/mach/hurd/bits/typesizes.h
30567         (__SYSCALL_SLONG_TYPE): New macro.
30568         (__SYSCALL_ULONG_TYPE): Likewise.
30569
30570 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30571
30572         * bits/types.h (__syscall_slong_t): New type.
30573         (__syscall_ulong_t): Likewise.
30574
30575         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
30576         (__SYSCALL_ULONG_TYPE): Likewise.
30577         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
30578         (__SYSCALL_SLONG_TYPE): Likewise.
30579         (__SYSCALL_ULONG_TYPE): Likewise.
30580         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
30581         (__SYSCALL_SLONG_TYPE): Likewise.
30582         (__SYSCALL_ULONG_TYPE): Likewise.
30583         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
30584         (__SYSCALL_SLONG_TYPE): Likewise.
30585         (__SYSCALL_ULONG_TYPE): Likewise.
30586
30587 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30588
30589         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
30590         Add sigaltstack-offsets.sym.
30591         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
30592         <sigaltstack-offsets.h>.
30593         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
30594         longjmp_msg pointer.
30595         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
30596         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
30597         signal stack.
30598         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
30599
30600 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
30601
30602         * elf/stackguard-macros.h: Remove file.
30603         * sysdeps/generic/stackguard-macros.h: New file.
30604         * sysdeps/i386/stackguard-macros.h: Likewise.
30605         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
30606         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
30607         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
30608         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
30609         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
30610         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
30611         * sysdeps/x86_64/stackguard-macros.h: Likewise.
30612         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
30613         <elf/stackguard-macros.h>.
30614
30615         [BZ #14109]
30616         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
30617         __aligned__ in attribute.
30618         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
30619         (gregset_t): Likewise.
30620
30621 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30622
30623         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
30624         * sysdeps/x86_64/64/Implies-after: Here.  New file.
30625         * sysdeps/x86_64/x32/Implies-after: New file.
30626
30627 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30628
30629         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
30630         and access return value for _dl_profile_fixup.  Use R10_LP to
30631         load frame size.
30632
30633 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30634
30635         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
30636
30637 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30638
30639         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
30640         * sysdeps/x86_64/x32/sysdep.h: New file.
30641
30642 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30643
30644         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
30645         * sysdeps/x86_64/setjmp.S: Likewise.
30646
30647 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30648
30649         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
30650         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
30651         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
30652         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
30653         remove unused global constant.
30654
30655 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
30656
30657         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
30658         include of <not-cancel.h>.
30659
30660 2012-05-15  Roland McGrath  <roland@hack.frob.com>
30661
30662         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
30663
30664 2012-05-15  Jeff Law  <law@redhat.com>
30665             Andreas Jaeger  <aj@suse.de>
30666
30667         [BZ #13594]
30668         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
30669         out from...
30670         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
30671         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
30672         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
30673         code changing __hst_map_handle.map.
30674
30675 2012-05-15  Roland McGrath  <roland@hack.frob.com>
30676
30677         * configure.in (sysnames): Look for Implies-before and Implies-after
30678         files.
30679         * configure: Regenerated.
30680
30681 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30682
30683         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
30684         8-byte data alignment with LP_SIZE alignment.
30685
30686 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30687
30688         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
30689         into R10_LP.
30690
30691 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30692
30693         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
30694
30695 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30696
30697         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
30698         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
30699         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
30700         Likewise.
30701         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
30702
30703 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30704
30705         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
30706         (stackinfo_sub_sp): Likewise.
30707
30708 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30709
30710         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
30711         RAX_LP.
30712
30713 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30714
30715         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
30716         into R*_LP.
30717
30718 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30719
30720         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
30721         sizes into R*_LP.
30722
30723 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30724
30725         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
30726
30727 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30728
30729         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
30730         into R11_LP and load __x86_64_shared_cache_size_half into
30731         R8_LP.
30732
30733 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30734
30735         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
30736         R8_LP.
30737
30738 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30739
30740         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
30741         logb for POWER7.
30742         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
30743         logbf for POWER7.
30744         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
30745         logbl for POWER7.
30746         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
30747         powerpc32/power7/fpu/s_logb.c via #include.
30748         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
30749         powerpc32/power7/fpu/s_logbf.c via #include.
30750         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
30751         powerpc32/power7/fpu/s_logbl.c via #include.
30752
30753 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
30754
30755         * README.libm: Remove file.
30756
30757 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30758
30759         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
30760         count for x32.  Use R*_LP and omit operand-size suffix.
30761
30762 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30763
30764         * shlib-versions: Move x86_64-.*-linux.* entries to ...
30765         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
30766         * sysdeps/x86_64/x32/shlib-versions: New file.
30767
30768 2012-05-14  Roland McGrath  <roland@hack.frob.com>
30769
30770         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
30771         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
30772         Use _dl_fatal_printf instead.
30773
30774 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
30775
30776         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
30777         set if not set by the user.  Do not allow for being unset.
30778         * sysdeps/unix/sysv/linux/configure: Regenerated.
30779
30780 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30781
30782         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
30783         the `q' suffix from lea and replace .quad with ASM_ADDR.
30784
30785 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30786
30787         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
30788         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
30789         instead of $17.
30790         (PTR_DEMANGLE): Likewise.
30791
30792 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30793
30794         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
30795         (LP_OP): Likewise.
30796         (ASM_ADDR): Likewise.
30797         (RAX_LP): Likewise.
30798         (RBP_LP): Likewise.
30799         (RBX_LP): Likewise.
30800         (RCX_LP): Likewise.
30801         (RDI_LP): Likewise.
30802         (RSI_LP): Likewise.
30803         (RSP_LP): Likewise.
30804         (R8_LP): Likewise.
30805         (R9_LP): Likewise.
30806         (R10_LP): Likewise.
30807         (R10_LP): Likewise.
30808         (R11_LP): Likewise.
30809         (R12_LP): Likewise.
30810         (R13_LP): Likewise.
30811         (R14_LP): Likewise.
30812         (R15_LP): Likewise.
30813
30814 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30815
30816         * sysdeps/x86_64/x32/dl-machine.h: New file.
30817
30818 2012-05-14  Andreas Jaeger  <aj@suse.de>
30819
30820         * manual/Makefile (subdir): Remove export of subdir.
30821         (all): Remove target.
30822         (.PHONY): Remove all from list.
30823         (mkinstalldirs): Remove.
30824         (.PHONY): Remove installdirs from list.
30825         ($(inst_infodir)/libc.info): Use make-target-directory.
30826         (installdirs): Remove.
30827         (subdir_%): Remove.
30828         (glibc-targets): Remove.
30829         (lib): Remove.
30830         (stubs): Remove.
30831         ($(objpfx)stubs ../po/manual.pot): Remove.
30832         ($(objpfx)stamp%): Remove.
30833         (make-target-directory): Remove.
30834         (subdir_install): Remove.
30835         (routines): Remove.
30836         (aux): Remove.
30837         (sources): Remove.
30838         (objects): Remove.
30839         (headers): Remove.
30840
30841         [BZ #13750]
30842         * manual/.gitignore: Remove, it's not needed anymore.
30843         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
30844         all files in it.
30845         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
30846         directory.
30847         (texis): Renamed to $(objpfx)texis.
30848         (texis-path): New, contains path to generated files.
30849         (chapters.%): Use texis-path for complete path, add extra argument
30850         libc-texinfo.sh.
30851         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
30852         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
30853         (summary,texi, stamp-summary): Use complete path of
30854         files. Generate files in build dir.
30855         (dir-add.texi): Build in build dir.
30856         (libm-err.texi,stamp-libm-err): Likewise.
30857         (version.texi, stamp-version): Likewise.
30858         (.%c.texi): Likewise.
30859         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
30860         (mostlyclean): Remove target.
30861         (realclean): Remove target.
30862         (generated): Add new variable with contents from mostlyclean and
30863         realclean, remove entries duplicated in common-mostlyclean, add
30864         stamp-libm-err and stamp-version.
30865         (generated-dirs): Add libc directory.
30866         ($(inst_infodir)/libc.info): Install files from build dir.
30867
30868         * manual/install.texi (Configuring and compiling): Adjust since
30869         the info files are not part of the tar ball anymore.
30870
30871 2012-05-14  Andreas Jaeger  <aj@suse.de>
30872
30873         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
30874         variable.
30875
30876 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
30877
30878         [BZ #13717]
30879         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
30880         to 2.2.0 where earlier.
30881         * sysdeps/unix/sysv/linux/configure: Regenerated.
30882         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
30883         Remove conditional code.
30884         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
30885         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
30886         Remove conditional code.
30887         [!__NR_lchown]: Likewise.
30888         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
30889         [__NR_lchown]: Likewise.
30890         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
30891         comment referencing __ASSUME_LCHOWN_SYSCALL.
30892         * sysdeps/unix/sysv/linux/i386/sigaction.c
30893         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
30894         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
30895         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
30896         Remove conditional code.
30897         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
30898         (__protocol_available): Remove #if 0 code.
30899         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
30900         conditional code.
30901         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
30902         * sysdeps/unix/sysv/linux/kernel-features.h
30903         (__ASSUME_GETCWD_SYSCALL): Don't define.
30904         (__ASSUME_REALTIME_SIGNALS): Likewise.
30905         (__ASSUME_PREAD_SYSCALL): Likewise.
30906         (__ASSUME_PWRITE_SYSCALL): Likewise.
30907         (__ASSUME_POLL_SYSCALL): Likewise.
30908         (__ASSUME_LCHOWN_SYSCALL): Likewise.
30909         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
30910         non-SPARC.
30911         (__ASSUME_SIOCGIFNAME): Don't define.
30912         (__ASSUME_MSG_NOSIGNAL): Likewise.
30913         (__ASSUME_SENDFILE): Define unconditionally.
30914         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
30915         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
30916         conditional code.
30917         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
30918         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
30919         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
30920         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
30921         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
30922         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
30923         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
30924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
30925         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
30926         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
30928         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
30929         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
30931         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
30932         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
30934         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
30935         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
30937         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
30938         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
30940         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
30941         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
30943         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
30944         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
30946         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
30947         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30948         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
30949         Remove conditional code.
30950         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30951         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
30952         Remove conditional code.
30953         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30954         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
30955         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
30956         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
30957         Remove conditional code.
30958         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30959         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
30960         Remove conditional code.
30961         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30962         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
30963         Remove conditional code.
30964         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30965         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
30966         Remove conditional code.
30967         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
30968         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
30969         Remove conditional code.
30970         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30971         * sysdeps/unix/sysv/linux/sh/pwrite64.c
30972         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
30973         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
30974         * sysdeps/unix/sysv/linux/sigaction.c
30975         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
30976         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
30977         * sysdeps/unix/sysv/linux/sigpending.c
30978         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
30979         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
30980         * sysdeps/unix/sysv/linux/sigprocmask.c
30981         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
30982         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
30983         * sysdeps/unix/sysv/linux/sigsuspend.c
30984         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
30985         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
30986         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
30987         (__libc_missing_rt_sigs): Remove.
30988         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
30989         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
30990         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
30991         Remove conditional code.
30992         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
30993         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
30994         return 1.
30995         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
30996         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
30997         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
30998         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
30999
31000 2012-05-14  Andreas Jaeger  <aj@suse.de>
31001
31002         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
31003         it's not used in glibc.
31004         (__coshm1): Likewise.
31005         (__acosh1p): Likewise.
31006         (__sgn): Likewise.
31007
31008         * manual/string.texi (Copying and Concatenation): Add missing
31009         variable in concat example.
31010         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
31011
31012 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
31013
31014         [BZ #14103]
31015         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
31016         __builtin_clzl with __builtin_clzll.
31017
31018 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
31019
31020         [BZ #14104]
31021         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
31022         libc_freeres_ptr.
31023
31024 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31025
31026         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
31027         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
31028         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
31029         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
31030
31031 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
31032
31033         * NEWS: Update ia64 info.
31034
31035 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
31036
31037         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
31038         used as bcopy.
31039
31040 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
31041
31042         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
31043         * sysdeps/unix/syscalls.list (dup3): Likewise.
31044         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
31045         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
31046
31047 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
31048
31049         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
31050         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
31051
31052 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
31053
31054         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
31055         thread pointer.
31056         (TLS_IE): Use mov/add instead of movq/addq to load thread
31057         pointer.
31058         (TLS_GD_PREFIX): New.
31059         (TLS_GD): Use it.
31060
31061 2012-05-11  David S. Miller  <davem@davemloft.net>
31062
31063         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
31064         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
31065         (_FPU_SETCW): Likewise.
31066
31067 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
31068
31069         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
31070         is 32-byte aligned.
31071
31072 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
31073
31074         [BZ #11837]
31075         * iconvdata/gb18030.c: Update tables.
31076         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
31077         characters specially.
31078         (BODY for TO_LOOP): Add encoding of missing ranges.
31079
31080 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
31081
31082         [BZ #13673]
31083         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
31084         * sysdeps/mach/hurd/dup3.c: Likewise.
31085         * sysdeps/mach/hurd/readlinkat.c: Likewise.
31086         * sysdeps/powerpc/memmove.c:: Likewise.
31087
31088 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
31089
31090         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
31091         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
31092
31093 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
31094
31095         * elf/elf.h (R_X86_64_RELATIVE64): New.
31096         (R_X86_64_NUM): Updated.
31097         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
31098         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
31099         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
31100         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
31101         tst-quad1pie tst-quad2pie
31102         (modules-names): Add tst-quadmod1 tst-quadmod2.
31103         ($(objpfx)tst-quad1): New dependency.
31104         ($(objpfx)tst-quad2): Likewise.
31105         ($(objpfx)tst-quad1pie): Likewise.
31106         ($(objpfx)tst-quad2pie): Likewise.
31107         * sysdeps/x86_64/tst-quad1.c: New file.
31108         * sysdeps/x86_64/tst-quad1pie.c: New file.
31109         * sysdeps/x86_64/tst-quad2.c: Likewise.
31110         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
31111         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
31112         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
31113         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
31114         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
31115
31116 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31117
31118         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
31119         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
31120         * streams/stropts.h (t_scalar_t): Define type.
31121
31122         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
31123         (_PATH_PRESERVE): Set to "/var/lib".
31124         (_PATH_RWHODIR): Set to "/var/spool/rwho".
31125
31126         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
31127         instead of int.
31128
31129         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
31130         if __dir_mkfile succeeded.
31131
31132         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
31133         checking for _hurd_dtablesize.  Unlock it right after having
31134         finished _hurd_dtable allocation.
31135
31136 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31137
31138         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
31139         * sysdeps/mach/hurd/configure: Regenerated.
31140         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
31141         special-casing to...
31142         * sysdeps/gnu/configure.in: ... this new file.
31143         * sysdeps/unix/sysv/linux/configure: Regenerated.
31144         * sysdeps/gnu/configure: New generated file.
31145
31146         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
31147         for Linux: use nsec instead of usec, as well as:
31148         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
31149         members of type struct timespec.
31150         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
31151         New macros.
31152         (struct stat64): Likewise.
31153         (_STATBUF_ST_NSEC): New macro.
31154         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
31155
31156         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
31157         __strtoul_internal rather than strtoul.
31158
31159 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
31160
31161         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
31162         and reject them.
31163
31164 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31165
31166         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
31167         which preserves existing values.
31168         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
31169
31170 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
31171
31172         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
31173         TIMEOUT values.  Return EINVAL for NFDS values either negative or
31174         greater than FD_SETSIZE.
31175
31176 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31177
31178         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
31179         allocated, call __vm_protect to finish enabling the existing space, and
31180         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
31181         allocate the remainder.
31182
31183 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
31184
31185         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
31186         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
31187
31188 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31189
31190         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
31191         sysdeps/mach/hurd/readlink.c.
31192
31193         * posix/tst-sysconf.c (posix_options): Only use
31194         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
31195         _POSIX_SYNCHRONIZED_IO when they are defined
31196         * sysdeps/mach/hurd/bits/posix_opt.h:
31197         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
31198         (_XOPEN_REALTIME): Undefine macro.
31199         (_XOPEN_REALTIME_THREADS): Undefine macro.
31200         (_XOPEN_SHM): Undefine macro.
31201         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
31202         macro to -1.
31203         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
31204         macro to -1.
31205         (_POSIX_ASYNC_IO): Undefine macro.
31206         (_POSIX_PRIORITIZED_IO): Undefine macro.
31207         (_POSIX_SPIN_LOCKS): Define macro to -1.
31208
31209         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
31210         SA_NODEFER, SA_RESETHAND.
31211         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
31212         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
31213         F_DUPFD_CLOEXEC.
31214
31215 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31216
31217         * elf/Makefile (pldd-modules): Define unconditionally.
31218
31219 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31220
31221         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
31222
31223 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31224
31225         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
31226         Return ENOENT when name is empty.
31227         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
31228
31229 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31230
31231         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
31232
31233         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
31234
31235 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31236
31237         Fix mlock in all cases except non-readable pages.
31238         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
31239         instead of VM_PROT_ALL as parameter to __vm_wire function.
31240
31241         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
31242         (__mkdir): When path is `/', just fail with EEXIST.
31243         * sysdeps/mach/hurd/mkdirat.c: Likewise.
31244
31245 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31246
31247         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
31248         <sys/uio.h> (for writev).
31249         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
31250         and <sys/param.h> (for MIN).
31251
31252 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
31253
31254         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
31255         REQUESTED_TIME.  Properly set the remaining time and return EINTR
31256         if interrupted.
31257
31258 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31259
31260         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
31261         Depend on against $(link-rpcuserlibs).
31262
31263 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31264
31265         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
31266         (__libc_stack_end): Do not use attribute_relro.
31267         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
31268         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
31269         to libthread-provided value.
31270         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
31271         attribute_relro.
31272
31273 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31274
31275         [BZ #3748]
31276         * bits/libc-lock.h (__libc_once_get): New macro.
31277         * sysdeps/mach/bits/libc-lock.h: Likewise.
31278         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
31279         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
31280         instead of using implementation details.
31281
31282         * libio/fileops.c: Unconditionally include <kernel-features.h>.
31283         * libio/freopen.c: Likewise.
31284         * libio/freopen64.c: Likewise.
31285         * misc/syslog.c: Likewise.
31286         * nscd/connections.c: Likewise.
31287         * nscd/netgroupcache.c: Likewise.
31288         * sysdeps/posix/getcwd.c: Likewise.
31289
31290 2012-05-10  Roland McGrath  <roland@hack.frob.com>
31291
31292         * math/w_ilogbf.c: Add #include <limits.h>.
31293
31294 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31295
31296         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
31297         path instead of returning without unlocking.
31298
31299         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
31300         immediate-write ioctls.
31301         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
31302
31303 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31304
31305         * sysdeps/mach/hurd/i386/init-first.c (init): Use
31306         __builtin_frame_address instead of making assumptions about the
31307         location of the return address relative to DATA.  Force early load of
31308         the return address.
31309         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
31310         __builtin_frame_address.
31311
31312         dup3 for GNU Hurd.
31313         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
31314         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
31315         implement dup3 and do some further code clean-ups.
31316         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
31317         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
31318
31319 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31320
31321         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
31322
31323         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
31324         HURD_CRITICAL_END around holding _hurd_dtable_lock.
31325         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
31326         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
31327         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
31328         d->port.lock.
31329
31330         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
31331         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
31332         when handler == SIG_ERR, not when handler != SIG_ERR.
31333
31334 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31335
31336         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
31337         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
31338         definitions.
31339
31340         accept4 for GNU Hurd.
31341         * include/sys/socket.h (__libc_accept4): New prototype.
31342         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
31343         to implement __libc_accept4.
31344         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
31345         __libc_accept4.
31346         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
31347
31348         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
31349         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
31350         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
31351         signal-defines.sym.
31352
31353 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31354
31355         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
31356
31357 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31358
31359         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
31360         assertion on O_CLOEXEC flag.
31361         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
31362         * hurd/intern-fd.c: Likewise.
31363         * hurd/port2fd.c: Likewise.
31364
31365 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31366
31367         [BZ #3906]
31368         * bits/in.h (IPV6_PKTINFO): Define new macro.
31369         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
31370
31371 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31372
31373         [BZ #13954]
31374         [BZ #13955]
31375         [BZ #13956]
31376         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
31377         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
31378         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
31379         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
31380         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
31381         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
31382         * math/libm-test.inc (logb_test) : Additional logb tests.
31383
31384 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
31385             Andreas Jaeger  <aj@suse.de>
31386
31387         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
31388         * configure: Regenerated.
31389         * config.h.in (LINK_OBSOLETE_RPC): New macro.
31390         * config.make.in (link-obsolete-rpc): New substituted variable.
31391         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
31392         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
31393         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
31394         (shared-only-routines): Don't set it under [link-obsolete-rpc],
31395         so that libc.a contains the symbols.
31396         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
31397         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
31398         * sunrpc/auth_none.c: Likewise.
31399         * sunrpc/auth_unix.c: Likewise.
31400         * sunrpc/authdes_prot.c: Likewise.
31401         * sunrpc/authuxprot.c: Likewise.
31402         * sunrpc/clnt_gen.c: Likewise.
31403         * sunrpc/clnt_perr.c: Likewise.
31404         * sunrpc/clnt_raw.c: Likewise.
31405         * sunrpc/clnt_simp.c: Likewise.
31406         * sunrpc/clnt_tcp.c: Likewise.
31407         * sunrpc/clnt_udp.c: Likewise.
31408         * sunrpc/clnt_unix.c: Likewise.
31409         * sunrpc/des_crypt.c: Likewise.
31410         * sunrpc/des_soft.c: Likewise.
31411         * sunrpc/get_myaddr.c: Likewise.
31412         * sunrpc/key_call.c: Likewise.
31413         * sunrpc/key_prot.c: Likewise.
31414         * sunrpc/netname.c: Likewise.
31415         * sunrpc/pm_getmaps.c: Likewise.
31416         * sunrpc/pm_getport.c: Likewise.
31417         * sunrpc/pmap_clnt.c: Likewise.
31418         * sunrpc/pmap_prot.c: Likewise.
31419         * sunrpc/pmap_prot2.c: Likewise.
31420         * sunrpc/pmap_rmt.c: Likewise.
31421         * sunrpc/publickey.c: Likewise.
31422         * sunrpc/rpc_cmsg.c: Likewise.
31423         * sunrpc/rpc_common.c: Likewise.
31424         * sunrpc/rpc_dtable.c: Likewise.
31425         * sunrpc/rpc_prot.c: Likewise.
31426         * sunrpc/rpc_thread.c: Likewise.
31427         * sunrpc/rtime.c: Likewise.
31428         * sunrpc/svc.c: Likewise.
31429         * sunrpc/svc_auth.c: Likewise.
31430         * sunrpc/svc_raw.c: Likewise.
31431         * sunrpc/svc_run.c: Likewise.
31432         * sunrpc/svc_tcp.c: Likewise.
31433         * sunrpc/svc_udp.c: Likewise.
31434         * sunrpc/svc_unix.c: Likewise.
31435         * sunrpc/svcauth_des.c: Likewise.
31436         * sunrpc/xcrypt.c: Likewise.
31437         * sunrpc/xdr.c: Likewise.
31438         * sunrpc/xdr_array.c: Likewise.
31439         * sunrpc/xdr_float.c: Likewise.
31440         * sunrpc/xdr_intXX_t.c: Likewise.
31441         * sunrpc/xdr_mem.c: Likewise.
31442         * sunrpc/xdr_rec.c: Likewise.
31443         * sunrpc/xdr_ref.c: Likewise.
31444         * sunrpc/xdr_sizeof.c: Likewise.
31445         * sunrpc/xdr_stdio.c: Likewise.
31446
31447 2012-05-10  Roland McGrath  <roland@hack.frob.com>
31448
31449         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
31450         change.  Update copyright years.
31451
31452 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
31453
31454         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
31455
31456 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
31457             Joseph Myers  <joseph@codesourcery.com>
31458             Paul Pluzhnikov  <ppluzhnikov@google.com>
31459
31460         [BZ #14012]
31461         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
31462         requiring rpcgen.
31463         [cross-compiling] (extra-libs): Likewise.
31464         [cross-compiling] (extra-libs-others): Likewise.
31465         [cross-compiling] (librpcsvc-routines): Likewise.
31466         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
31467         [cross-compiling] (omit-deps): Likewise.
31468         (sunrpc-CPPFLAGS): New variable.
31469         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
31470         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
31471         (cross-rpcgen-objs): New variable.
31472         (extra-objs): Append $(cross-rpcgen-objs).
31473         ($(cross-rpcgen-objs)): New rule.
31474         ($(objpfx)cross-rpcgen): Likewise.
31475         (rpcgen-cmd): Define to use $(built-program-file).  Expand
31476         comment.
31477         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
31478         ($(objpfx)x%.stmp): Likewise.
31479         * sunrpc/proto.h [IS_IN_build] (_): Define.
31480         [IS_IN_build] (_libc_intl_domainname): Likewise.
31481
31482 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
31483
31484         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
31485         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
31486         and R_X86_64_TPOFF64.
31487
31488 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
31489
31490         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
31491         sysdeps/unix/sysv/syscalls.list.
31492         (stime): Likewise.
31493         (utime): Likewise.
31494         * sysdeps/unix/sysv/syscalls.list: Remove file.
31495
31496 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
31497
31498         [BZ #3440]
31499         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
31500         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
31501         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
31502         (__LC_IDENTIFICATION): Make these macros useful in #if
31503         expressions, as required by C99.
31504
31505 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
31506
31507         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
31508         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
31509         after this.
31510
31511 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
31512
31513         * stdlib/longlong.h: Updated from GCC.
31514
31515 2012-05-09  Andreas Jaeger  <aj@suse.de>
31516
31517         * nscd/nscd.c (run_modes): Make named enum, reorder so that
31518         default is first entry.
31519         (run_mode): Set type.
31520         (main): Remove informal message about syslog.
31521         (options): Fix typo.
31522
31523         [BZ #14053]
31524         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
31525         to asm.
31526         (lrint): Likewise.
31527         (llrintf): Likewise.
31528         (llrint): Likewise.
31529         (rint): Likewise.
31530         (rintf): Likewise.
31531         (nearbyint): Likewise.
31532         (nearbyintf): Likewise.
31533
31534 2012-05-09  Andreas Jaeger  <aj@suse.de>
31535             Pedro Alves  <palves@redhat.com>
31536
31537         * nscd/nscd.c (run_mode): Use enum.
31538         (main): Cleanup coding style issue.
31539
31540 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
31541             Andreas Jaeger  <aj@suse.de>
31542
31543         * nscd/nscd.c (go_background): Replaced with...
31544         (run_mode): ... this.
31545         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
31546         (options): Add -F --foreground.
31547         (main): Implement it.
31548         (parse_opt): Parse it.
31549
31550 2012-05-09  Andreas Jaeger  <aj@suse.de>
31551
31552         [BZ #14083]
31553         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
31554         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
31555         -Wconversion warning.
31556         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
31557         Likewise.
31558
31559 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
31560
31561         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
31562         == 0.
31563         (LC_ALL): Use macro-int-constant.
31564         (LC_COLLATE): Likewise.
31565         (LC_CTYPE): Likewise.
31566         (LC_MESSAGES): Likewise.
31567         (LC_MONETARY): Likewise.
31568         (LC_NUMERIC): Likewise.
31569         (LC_TIME): Likewise.
31570         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
31571         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
31572         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31573         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
31574         Specify type.
31575         [C99-based standards] (float_t): Expect type.
31576         [C99-based standards] (double_t): Expect type.
31577         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
31578         type.
31579         [C99-based standards] (HUGE_VALL): Likewise.
31580         [C99-based standards] (INFINITY): Likewise.
31581         [C99-based standards] (NAN): Likewise.
31582         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
31583         [C99-based standards] (FP_NAN): Likewise.
31584         [C99-based standards] (FP_NORMAL): Likewise.
31585         [C99-based standards] (FP_SUBNORMAL): Likewise.
31586         [C99-based standards] (FP_ZERO): Likewise.
31587         [C99-based standards] (FP_FAST_FMA): Use
31588         optional-macro-int-constant.  Specify type.  Require == 1.
31589         [C99-based standards] (FP_FAST_FMAF): Likewise.
31590         [C99-based standards] (FP_FAST_FMAL): Likewise.
31591         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
31592         [C99-based standards] (FP_ILOGBNAN): Likewise.
31593         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
31594         Specify type.
31595         [C99-based standards] (MATH_ERREXCEPT): Likewise.
31596         [C99-based standards] (math_errhandling): Specify type.
31597         [ISO99 || ISO11] (signgam): Do not allow.
31598         [non-C99-based standards] (copysignf): Do not allow.
31599         [non-C99-based standards] (exp2f): Likewise.
31600         [non-C99-based standards] (log2f): Likewise.
31601         [non-C99-based standards] (modff): Allow.
31602         [non-C99-based standards] (erff): Do not allow.
31603         [non-C99-based standards] (erfcf): Likewise.
31604         [non-C99-based standards] (gammaf): Likewise.
31605         [non-C99-based standards] (hypotf): Likewise.
31606         [non-C99-based standards] (j0f): Likewise.
31607         [non-C99-based standards] (j1f): Likewise.
31608         [non-C99-based standards] (jnf): Likewise.
31609         [non-C99-based standards] (lgammaf): Likewise.
31610         [non-C99-based standards] (tgammaf): Likewise.
31611         [non-C99-based standards] (y0f): Likewise.
31612         [non-C99-based standards] (y1f): Likewise.
31613         [non-C99-based standards] (ynf): Likewise.
31614         [non-C99-based standards] (isnanf): Likewise.
31615         [non-C99-based standards] (acoshf): Likewise.
31616         [non-C99-based standards] (asinhf): Likewise.
31617         [non-C99-based standards] (atanhf): Likewise.
31618         [non-C99-based standards] (cbrtf): Likewise.
31619         [non-C99-based standards] (expm1f): Likewise.
31620         [non-C99-based standards] (ilogbf): Likewise.
31621         [non-C99-based standards] (log1pf): Likewise.
31622         [non-C99-based standards] (logbf): Likewise.
31623         [non-C99-based standards] (nextafterf): Likewise.
31624         [non-C99-based standards] (remainderf): Likewise.
31625         [non-C99-based standards] (rintf): Likewise.
31626         [non-C99-based standards] (scalbf): Likewise.
31627         [non-C99-based standards] (copysignl): Likewise.
31628         [non-C99-based standards] (exp2l): Likewise.
31629         [non-C99-based standards] (log2l): Likewise.
31630         [non-C99-based standards] (modfl): Allow.
31631         [non-C99-based standards] (erfl): Do not allow.
31632         [non-C99-based standards] (erfcl): Likewise.
31633         [non-C99-based standards] (gammal): Likewise.
31634         [non-C99-based standards] (hypotl): Likewise.
31635         [non-C99-based standards] (j0l): Likewise.
31636         [non-C99-based standards] (j1l): Likewise.
31637         [non-C99-based standards] (jnl): Likewise.
31638         [non-C99-based standards] (lgammal): Likewise.
31639         [non-C99-based standards] (tgammal): Likewise.
31640         [non-C99-based standards] (y0l): Likewise.
31641         [non-C99-based standards] (y1l): Likewise.
31642         [non-C99-based standards] (ynl): Likewise.
31643         [non-C99-based standards] (isnanl): Likewise.
31644         [non-C99-based standards] (acoshl): Likewise.
31645         [non-C99-based standards] (asinhl): Likewise.
31646         [non-C99-based standards] (atanhl): Likewise.
31647         [non-C99-based standards] (cbrtl): Likewise.
31648         [non-C99-based standards] (expm1l): Likewise.
31649         [non-C99-based standards] (ilogbl): Likewise.
31650         [non-C99-based standards] (log1pl): Likewise.
31651         [non-C99-based standards] (logbl): Likewise.
31652         [non-C99-based standards] (nextafterl): Likewise.
31653         [non-C99-based standards] (remainderl): Likewise.
31654         [non-C99-based standards] (rintl): Likewise.
31655         [non-C99-based standards] (scalbl): Likewise.
31656         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31657         [non-C99-based standards] (FP_*): Do not allow.
31658         [C99-based standards] (FP_*): Change to
31659         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
31660         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
31661         allow.
31662         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
31663         (SIG_ERR): Likewise.
31664         [X/Open-based standards] (SIG_HOLD): Likewise.
31665         (SIG_IGN): Likewise.
31666         (SIGABRT): Use macro-int-constant.  Specify type.  Require
31667         positive value.
31668         (SIGFPE): Likewise.
31669         (SIGILL): Likewise.
31670         (SIGINT): Likewise.
31671         (SIGSEGV): Likewise.
31672         (SIGTER): Likewise.
31673         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
31674         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
31675         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
31676         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
31677         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
31678         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
31679         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
31680         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
31681         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
31682         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
31683         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
31684         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
31685         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
31686         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
31687         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
31688         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
31689         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
31690         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
31691         [X/Open-based standards] (SIGTRAP): Likewise.
31692         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
31693         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
31694         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
31695         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
31696         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
31697         allow.
31698
31699 2012-05-08  Ian Wienand  <ianw@vmware.com>
31700
31701         [BZ #14080]
31702         * time/tzset.c (__tzset_parse_tz): Update default rules for
31703         daylight time changes in the Energy Policy Act of 2005.
31704
31705 2012-05-09  Andreas Jaeger  <aj@suse.de>
31706
31707         [BZ #13983]
31708         * elf/ldconfig.c (parse_conf): Change string to make clear that
31709         ldconfig only issued a warning if ld.so.conf does not exist.
31710
31711 2012-05-08  David S. Miller  <davem@davemloft.net>
31712
31713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
31714         movxtod instead of popping the value on the stack.
31715
31716         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31717
31718 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
31719
31720         * config.h.in: Add HAVE_ARM_PCS_VFP.
31721
31722 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
31723
31724         [BZ #13979]
31725         * include/features.h: Warn if user requests __FORTIFY_SOURCE
31726         checking but the checks are disabled for any reason.
31727
31728 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
31729
31730         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
31731         and ELF64_R_TYPE with ELFW(R_TYPE).
31732
31733 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
31734
31735         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
31736         (ulimit): Likewise.
31737
31738         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
31739         (settimeofday): Likewise.
31740
31741 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
31742
31743         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
31744         a struct th_u2 inside the union, and move tu_block/tu_code into
31745         a new th_u3 union of tu_block/tu_code inside of that.  Move
31746         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
31747         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
31748         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
31749         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
31750         (th_stuff): Change to th_u1.tu_stuff.
31751         (th_data): Define.
31752         (th_msg): Change to th_u1.th_u2.tu_data.
31753
31754 2012-05-07  David S. Miller  <davem@davemloft.net>
31755
31756         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31757
31758         [BZ #14074]
31759         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
31760         (SETUP_PIC_REG): Use it.
31761         (SETUP_PIC_REG_LEAF): Use it.
31762
31763 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
31764
31765         [BZ #13885]
31766         [BZ #13923]
31767         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
31768         USE_AS_EXPM1L.
31769         (EXPL_FINITE): Likewise.
31770         (FLDLOG): Likewise.
31771         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
31772         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
31773         e_expl.S.
31774         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
31775         USE_AS_EXPM1L.
31776         (EXPL_FINITE): Likewise.
31777         (FLDLOG): Likewise.
31778         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
31779         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
31780         e_expl.S.
31781         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
31782         test of -max_value argument for long double.
31783         * sysdeps/i386/fpu/libm-test-ulps: Update.
31784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31785
31786 2012-05-06  David S. Miller  <davem@davemloft.net>
31787
31788         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
31789         quad soft-float symbols whose references which are compiler
31790         generated.
31791         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
31792
31793 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
31794
31795         [BZ #13884]
31796         [BZ #13914]
31797         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
31798         USE_AS_EXP10L.
31799         (EXPL_FINITE): Likewise.
31800         (FLDLOG): Likewise.
31801         (c0): Likewise.
31802         (c1): Likewise.
31803         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
31804         Adjust comments for base varying.
31805         (__expl_finite): Change alias to EXPL_FINITE.
31806         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
31807         e_expl.S.
31808         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
31809         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
31810         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
31811         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
31812         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
31813         USE_AS_EXP10L.
31814         (EXPL_FINITE): Likewise.
31815         (FLDLOG): Likewise.
31816         (c0): Likewise.
31817         (c1): Likewise.
31818         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
31819         Adjust comments for base varying.
31820         (__expl_finite): Change alias to EXPL_FINITE.
31821         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
31822         tests for bugs.
31823         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
31824
31825         [BZ #14064]
31826         * math/libm-test.inc (check_float_internal): Correct ulp
31827         calculation for subnormal expected results.
31828
31829 2012-05-06  Andreas Jaeger  <aj@suse.de>
31830
31831         * Makeconfig (+math-flags): New, set to -frounding-math.
31832         (+cflags): Add +math-flags so that all of glibc gets compiled with
31833         it.
31834
31835         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
31836
31837 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
31838
31839         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
31840         Disable one test.
31841
31842         [BZ #13787]
31843         [BZ #13922]
31844         [BZ #14036]
31845         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
31846         (__ieee754_expl): Allow for and saturate large arguments.
31847         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
31848         (u_threshold): Likewise.
31849         (__exp): Call __ieee754_exp before checking for overflow and
31850         underflow.
31851         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
31852         (u_threshold): Likewise.
31853         (__expf): Call __ieee754_expf before checking for overflow and
31854         underflow.
31855         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
31856         (u_threshold): Likewise.
31857         (__expl): Call __ieee754_expl before checking for overflow and
31858         underflow.
31859         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
31860         (__ieee754_expl): Allow for and saturate large arguments.
31861         * math/libm-test.inc (exp_test): Add another test.  Do not allow
31862         missing overflow exception on overflow.
31863         (expm1_test): Do not allow missing overflow exception on overflow.
31864
31865         * sysdeps/i386/fpu/e_expl.c: Move to ...
31866         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
31867         rather than using inline asm.
31868         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
31869         * sysdeps/x86_64/fpu/e_expl.S: Copy from
31870         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
31871
31872         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
31873         (nice): Likewise.
31874         (poll): Likewise.
31875         (signal): Likewise.
31876         (time): Likewise.
31877         (times): Likewise.
31878
31879 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
31880
31881         * sysdeps/unix/syscalls.list (adjtime): Add entry from
31882         sysdeps/unix/common/syscalls.list.
31883         (fchmod): Likewise.
31884         (fchown): Likewise.
31885         (ftruncate): Likewise.
31886         (getrusage): Likewise.
31887         (gettimeofday): Likewise.
31888         (setpgid): Likewise.
31889         (setregid): Likewise.
31890         (setreuid): Likewise.
31891         (sigaction): Likewise.
31892         (truncate): Likewise.
31893         (vhangup): Likewise.
31894         * sysdeps/unix/common/syscalls.list: Remove file.
31895         * sysdeps/unix/bsd/Implies: Don't include unix/common.
31896         * sysdeps/unix/sysv/linux/Implies: Likewise.
31897
31898 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
31899
31900         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
31901         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
31902         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
31903         Moved to ...
31904         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
31905         Here.
31906         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
31907         to ...
31908         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
31909         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
31910         to ...
31911         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
31912         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
31913         to ...
31914         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
31915         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
31916         to ...
31917         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
31918         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
31919         to ...
31920         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
31921         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
31922         to ...
31923         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
31924         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
31925         to ...
31926         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
31927         Here.
31928         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
31929         to ...
31930         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
31931         Here.
31932         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
31933         to ...
31934         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
31935         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
31936         Moved to ...
31937         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
31938         Here.
31939         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
31940         to ...
31941         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
31942
31943 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
31944
31945         * sysdeps/unix/common/bits/dirent.h: Remove file.
31946         * sysdeps/unix/common/bits/fcntl.h: Likewise.
31947
31948         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
31949         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
31950         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
31951         * sysdeps/unix/bsd/isatty.c: Likewise.
31952         * sysdeps/unix/bsd/tcdrain.c: Likewise.
31953         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
31954         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
31955
31956 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31957
31958         [BZ #13563]
31959         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
31960         long double comparison inaccuracies.
31961         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
31962         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31963
31964 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
31965
31966         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
31967         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
31968
31969 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
31970
31971         [BZ #14049]
31972         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
31973         nonzero digits before rounding a hex value.
31974         * stdlib/tst-strtod.c (tests): Add another test.
31975
31976 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31977
31978         * sysdeps/s390/fpu/libm-test-ulps: Update.
31979
31980 2012-05-03  Andreas Jaeger  <aj@suse.de>
31981
31982         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
31983         does not get optimized out.
31984         (malloc_opt_barrier): New.
31985
31986 2012-05-03  Andreas Jaeger  <aj@suse.de>
31987             Roland McGrath  <roland@hack.frob.com>
31988
31989         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
31990         intermediate file deletion.
31991         (generated): Add .symlist files.
31992
31993 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
31994
31995         [BZ #13775]
31996         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
31997         Redirect under this condition.
31998         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
31999         [__USE_GNU] (__dprintf_chk): Not under this condition.
32000         [__USE_GNU] (__vdprintf_chk): Likewise.
32001         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
32002         under this condition.
32003         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
32004         [__USE_XOPEN2K8] (dprintf): Define under this condition.
32005         [__USE_XOPEN2K8] (vdprintf): Likewise.
32006         [__USE_GNU] (__dprintf_chk): Not under this condition.
32007         [__USE_GNU] (__vdprintf_chk): Likewise.
32008         [__USE_GNU] (dprintf): Likewise.
32009         [__USE_GNU] (vdprintf): Likewise.
32010
32011 2012-05-03  Roland McGrath  <roland@hack.frob.com>
32012
32013         * elf/Makefile (common-generated): Set this instead of generated for
32014         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
32015         $(all-built-dso)-derived lists.
32016
32017 2012-05-03  Andreas Jaeger  <aj@suse.de>
32018
32019         * sysdeps/i386/fpu/libm-test-ulps: Update.
32020
32021         * FAQ: Removed.
32022         * FAQ.in: Likewise.
32023         * scripts/gen-FAQ.pl: Likewise.
32024         * manual/install.texi (Installation): Point to online location of
32025         FAQ.
32026         * Makefile (files-for-dist): Remove FAQ.
32027         (FAQ): Remove.
32028
32029 2012-05-02  Allan McRae  <allan@archlinux.org>
32030
32031         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
32032         (LDFLAGS-reldepmod5.so): Likewise.
32033         (LDFLAGS-reldep6mod1.so): Likewise.
32034         (LDFLAGS-reldep6mod4.so): Likewise.
32035         (LDFLAGS-reldep8mod3.so): Likewise.
32036         (LDFLAGS-unload4mod1.so): Likewise.
32037         (LDFLAGS-unload4mod2.so): Likewise.
32038         (LDFLAGS-tst-initorder): Likewise.
32039         (LDFLAGS-tst-initordera2.so): Likewise.
32040         (LDFLAGS-tst-initordera3.so): Likewise.
32041         (LDFLAGS-tst-initordera4.so): Likewise.
32042         (LDFLAGS-tst-initorderb2.so): Likewise.
32043         (LDFLAGS-noload): Likewise.
32044         (LDFLAGS-next): Likewise.
32045         (LDFLAGS-order2mod1.so): Likewise.
32046         (LDFLAGS-order2mod2.so): Likewise.
32047         (LDFLAGS-tst-initorder2): Likewise.
32048         (LDFLAGS-tst-initorder2a.so): Likewise.
32049         (LDFLAGS-tst-initorder2b.so): Likewise.
32050         (LDFLAGS-tst-initorder2c.so): Likewise.
32051         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
32052
32053 2012-05-02  David S. Miller  <davem@davemloft.net>
32054
32055         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32056
32057 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
32058
32059         [BZ #14055]
32060         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
32061
32062 2012-05-02  Andreas Jaeger  <aj@suse.de>
32063
32064         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
32065         since we manipulate rounding mode.
32066         (CPPFLAGS-test-idouble.c): Likewise.
32067         (CPPFLAGS-test-ifloat.c): Likewise.
32068         (CFLAGS-test-ldouble.c): Likewise.
32069         (CFLAGS-test-double.c): Likewise.
32070         (CFLAGS-test-float.c): Likewise.
32071         (CFLAGS-test-misc.c): Likewise.
32072         (CFLAGS-test-test-fenv.c): Likewise.
32073
32074 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32075
32076         [BZ #2550]
32077         [BZ #2570]
32078         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
32079         comparisons to determine direction to adjust input.
32080
32081 2012-05-01  Roland McGrath  <roland@hack.frob.com>
32082
32083         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
32084         output to the target.
32085
32086         * scripts/localplt.awk: New file.
32087         * elf/Makefile ($(objpfx)check-localplt): Target removed.
32088         (check-localplt-CFLAGS): Variable removed.
32089         ($(all-built-dso:=.jmprel)): New static pattern rule.
32090         (generated): Add those targets.
32091         (localplt-built-dso): New variable.
32092         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
32093
32094         * elf/check-localplt.c: File removed.
32095
32096         * scripts/check-execstack.awk: New file.
32097         * elf/Makefile ($(objpfx)check-execstack): Target removed.
32098         (check-execstack-CFLAGS): Variable removed.
32099         ($(objpfx)check-execstack.h): Target removed.
32100         ($(objpfx)execstack-default): New target.
32101         (generated): Add that instead of check-execstack.h.
32102         ($(all-built-dso:=.phdr)): New static pattern rule.
32103         (generated): Add those targets.
32104         * elf/check-execstack.c: File removed.
32105
32106         * scripts/check-textrel.awk: New file.
32107         * elf/Makefile ($(objpfx)check-textrel): Target removed.
32108         (check-textrel-CFLAGS): Variable removed.
32109         (all-built-dso): Use := to define.o
32110         ($(all-built-dso:=.dyn)): New static pattern rule.
32111         (generated): Add those targets.
32112         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
32113         * config.make.in (READELF): New substituted variable.
32114         * elf/check-textrel.c: File removed.
32115
32116 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
32117
32118         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
32119         allow.
32120         * conform/data/ctype.h-data [C99-based standards] (isblank):
32121         Expect function.
32122         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
32123         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
32124         [ISO || ISO99 || ISO11] (*_t): Do not allow.
32125         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
32126         Specify type.  Require positive value.
32127         (EILSEQ): Likewise.
32128         (ERANGE): Likewise.
32129         [ISO || POSIX] (EILSEQ): Do not expect.
32130         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
32131         Specify type.  Require positive value.
32132         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
32133         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
32134         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
32135         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
32136         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
32137         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
32138         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
32139         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
32140         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
32141         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
32142         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
32143         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
32144         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
32145         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
32146         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
32147         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
32148         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
32149         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
32150         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
32151         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
32152         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
32153         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
32154         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
32155         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
32156         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
32157         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
32158         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
32159         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
32160         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
32161         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
32162         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
32163         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
32164         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
32165         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
32166         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
32167         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
32168         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
32169         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
32170         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
32171         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
32172         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
32173         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
32174         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
32175         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
32176         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
32177         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
32178         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
32179         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
32180         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
32181         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
32182         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
32183         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
32184         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
32185         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
32186         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
32187         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
32188         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
32189         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
32190         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
32191         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
32192         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
32193         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
32194         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
32195         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
32196         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
32197         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
32198         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
32199         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
32200         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
32201         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
32202         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
32203         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
32204         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
32205         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
32206         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
32207         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
32208         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
32209         Require >= 2.
32210         (FLT_ROUNDS): Expect as macro, not constant.
32211         (FLT_MANT_DIG): Use macro-int-constant.
32212         (DBL_MANT_DIG): Likewise.
32213         (LDBL_MANT_DIG): Likewise.
32214         (FLT_DIG): Likewise.
32215         (DBL_DIG): Likewise.
32216         (LDBL_DIG): Likewise.
32217         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
32218         (DBL_MIN_EXP): Likewise.
32219         (LDBL_MIN_EXP): Likewise.
32220         (FLT_MAX_EXP): Use macro-int-constant.
32221         (DBL_MAX_EXP): Likewise.
32222         (LDBL_MAX_EXP): Likewise.
32223         (FLT_MAX_10_EXP): Likewise.
32224         (DBL_MAX_10_EXP): Likewise.
32225         (LDBL_MAX_10_EXP): Likewise.
32226         (FLT_MAX): Use macro-constant.
32227         (DBL_MAX): Likewise.
32228         (LDBL_MAX): Likewise.
32229         (FLT_EPSILON): Use macro-constant.  Give upper bound.
32230         (DBL_EPSILON): Likewise.
32231         (LDBL_EPSILON): Likewise.
32232         (FLT_MIN): Likewise.
32233         (DBL_MIN): Likewise.
32234         (LDBL_MIN): Likewise.
32235         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
32236         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
32237         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
32238         [ISO11] (FLT_HAS_SUBNORM): Likewise.
32239         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
32240         [ISO11] (DBL_DECIMAL_DIG): Likewise.
32241         [ISO11] (FLT_DECIMAL_DIG): Likewise.
32242         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
32243         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
32244         [ISO11] (FLT_TRUE_MIN): Likewise.
32245         [ISO11] (LDBL_TRUE_MIN): Likewise.
32246         [ISO || ISO99 || ISO11] (*_t): Do not allow.
32247         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
32248         (SCHAR_MIN): Use macro-int-constant.  Specify type.
32249         (SCHAR_MAX): Likewise.
32250         (UCHAR_MAX): Likewise.
32251         (CHAR_MIN): Likewise.
32252         (CHAR_MAX): Likewise.
32253         (MB_LEN_MAX): Use macro-int-constant.
32254         (SHRT_MIN): Use macro-int-constant.  Specify type.
32255         (SHRT_MAX): Likewise.
32256         (USHRT_MAX): Likewise.
32257         (INT_MAX): Likewise.
32258         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
32259         bound negative.
32260         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
32261         bound with "U".
32262         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
32263         bound with "L".
32264         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
32265         bound negative.  Suffix upper bound with "L".
32266         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
32267         bound with "UL".
32268         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
32269         Specify type.
32270         [C99-based standards] (LLONG_MAX): Likewise.
32271         [C99-based standards] (ULLONG_MAX): Likewise.
32272         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
32273         == 0.
32274         [ISO11] (max_align_t): Require type.
32275         [ISO || ISO99 || ISO11] (*_t): Do not allow.
32276
32277         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
32278         from $CFLAGS, without defining away __attribute__ calls.
32279         (checknamespace): Use $CFLAGS_namespace.
32280
32281         * conform/conformtest.pl (@keywords): Only include C99 keywords
32282         for standards based on C99 or C11.
32283
32284         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
32285         Disable tests.
32286         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
32287         UNIX98]: Likewise.
32288
32289         * conform/conformtest.pl: Handle "macro-int-constant" and test for
32290         usability of symbols in #if.
32291
32292         * conform/conformtest.pl: If macro or constant types start
32293         "promoted:", expect the symbol to be of the following type
32294         promoted by the integer promotions.
32295
32296         * conform/conformtest.pl: Parse all "constant" and "macro" lines
32297         in one place.  Also handle "macro-constant".
32298
32299         * conform/conformtest.pl: Only accept expected macro values with
32300         "==".  Parse all "macro" lines in one place.
32301         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
32302
32303         * conform/conformtest.pl: Handle braced types on "constant" lines
32304         instead of handling "typed-constant".
32305         * conform/data/signal.h-data: Use "constant" instead of
32306         "typed-constant".
32307
32308         * conform/conformtest.pl: Handle "optional-" at start of lines in
32309         one place rather than duplicating several cases.  Handle each
32310         format of "macro" line with initial "optional-".
32311
32312         * conform/conformtest.pl: Only accept expected constant or
32313         optional-constant values with "==".  Parse all "constant" lines in
32314         one place.  Parse all "optional-constant" lines in one place.
32315         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
32316         * conform/data/fmtmsg.h-data: Likewise.
32317         * conform/data/netinet/in.h-data: Likewise.
32318         * conform/data/tar.h-data: Likewise.
32319         * conform/data/limits.h-data: Use "==" form on "constant" and
32320         "optional-constant" lines.
32321
32322         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
32323         Use -std=c99 for XOPEN2K.
32324         (@knownproblems): Remove.
32325         (newtoken): Don't check %isknown.
32326
32327         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
32328         Do not expect macro.
32329         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
32330         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
32331         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
32332         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
32333         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
32334         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
32335         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
32336         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
32337         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
32338         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
32339         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
32340         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
32341         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
32342         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
32343         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
32344         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
32345         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
32346         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
32347         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
32348         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
32349         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
32350         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
32351         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
32352         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
32353         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
32354         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
32355         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
32356         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
32357         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
32358         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
32359         [XPG3] (acosh): Likewise.
32360         [XPG3] (asinh): Likewise.
32361         [XPG3] (atanh): Likewise.
32362         [XPG3] (cbrt): Likewise.
32363         [XPG3] (expm1): Likewise.
32364         [XPG3] (ilogb): Likewise.
32365         [XPG3] (log1p): Likewise.
32366         [XPG3] (logb): Likewise.
32367         [XPG3] (nextafter): Likewise.
32368         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
32369         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
32370         [XPG3] (remainder): Likewise.
32371         [XPG3] (rint): Likewise.
32372         [XPG3 || XPG4 || UNIX98] (round): Likewise.
32373         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
32374         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
32375         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
32376         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
32377         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
32378         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
32379         [UNIX98 || XOPEN2K] (scalb): Expect.
32380         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
32381         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
32382         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
32383         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
32384         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
32385         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
32386         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
32387         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
32388         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
32389         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
32390         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
32391         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
32392         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
32393         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
32394         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
32395         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
32396         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
32397         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
32398         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
32399         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
32400         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
32401         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
32402         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
32403         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
32404         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
32405         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
32406         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
32407         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
32408         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
32409         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
32410         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
32411         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
32412         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
32413         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
32414         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
32415         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
32416         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
32417         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
32418         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
32419         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
32420         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
32421         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
32422         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
32423         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
32424         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
32425         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
32426         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
32427         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
32428         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
32429         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
32430         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
32431         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
32432         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
32433         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
32434         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
32435         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
32436         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
32437         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
32438         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
32439         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
32440         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
32441         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
32442         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
32443         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
32444         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
32445         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
32446         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
32447         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
32448         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
32449         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
32450         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
32451         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
32452         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
32453         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
32454         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
32455         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
32456         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
32457         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
32458         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
32459         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
32460         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
32461         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
32462         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
32463         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
32464         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
32465         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
32466         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
32467         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
32468         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
32469         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
32470         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
32471         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
32472         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
32473         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
32474         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
32475         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
32476         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
32477         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
32478         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
32479         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
32480         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
32481         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
32482         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
32483         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
32484         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
32485         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
32486         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
32487         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
32488         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
32489         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
32490         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
32491         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
32492         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
32493         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
32494         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
32495         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
32496         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
32497         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
32498         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
32499         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
32500         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
32501         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
32502         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
32503         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
32504         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
32505         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
32506         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
32507         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
32508         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
32509         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
32510         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
32511         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
32512         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
32513         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
32514         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
32515         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
32516         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
32517
32518         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
32519         _XOPEN_SOURCE_EXTENDED for XPG4.
32520
32521         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
32522
32523         * Makeconfig (localtime): Remove variable.
32524         (inst_localtime-file): Likewise.
32525
32526 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
32527
32528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
32529         Update.
32530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
32531         Update.
32532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
32533         Update.
32534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
32535         Update.
32536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
32537         Update.
32538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
32539         Update.
32540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
32541         Update.
32542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
32543         Update.
32544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
32545         Update.
32546
32547 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
32548
32549         [BZ #2550]
32550         [BZ #2570]
32551         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
32552         comparisons to determine direction to adjust input.
32553         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32554         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
32555         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32556         Likewise.
32557         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32558         Likewise.
32559         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32560         Likewise.
32561         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32562         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32563         Likewise.
32564         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32565         Likewise.
32566         * math/libm-test.inc (nexttoward_test): Add more tests.
32567
32568 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
32569
32570         [BZ #14040]
32571         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
32572         in version GLIBC_2.1, not GLIBC_2.0.
32573         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
32574         Likewise.
32575
32576 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
32577
32578         [BZ #13942]
32579         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
32580         (1 - x) * (1 + x).
32581         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
32582         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
32583         * math/libm-test.inc (acos_test): Add more tests.
32584         (asin_test): Likewise.
32585         * sysdeps/i386/fpu/libm-test-ulps: Update.
32586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32587
32588         [BZ #14034]
32589         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
32590         of square root.
32591         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
32592         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
32593         * math/libm-test.inc (acos_test_tonearest): New function.
32594         (acos_test_towardzero): Likewise.
32595         (acos_test_downward): Likewise.
32596         (acos_test_upward): Likewise.
32597         (asin_test_tonearest): Likewise.
32598         (asin_test_towardzero): Likewise.
32599         (asin_test_downward): Likewise.
32600         (asin_test_upward): Likewise.
32601         (main): Call the new functions.
32602         * sysdeps/i386/fpu/libm-test-ulps: Update.
32603         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32604
32605         [BZ #13884]
32606         [BZ #13924]
32607         * math/e_exp10.c: Include <float.h>.
32608         (__ieee754_exp10): Handle underflow here rather than multiplying
32609         large negative argument by M_LN10.
32610         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
32611         of __ieee754_expf.
32612         * math/e_exp10l.c: Include <float.h>.
32613         (__ieee754_exp10l): Handle underflow here rather than multiplying
32614         large negative argument by M_LN10l.
32615         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
32616         spurious overflow exception on underflow.
32617
32618 2012-04-29  Marek Polacek  <polacek@redhat.com>
32619
32620         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
32621         (__fortify_function): New macro.
32622         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
32623         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
32624         __extern_always_inline.
32625         * libio/bits/stdio2.h: Likewise.
32626         * libio/bits/stdio.h: Likewise.
32627         * string/string.h: Likewise.
32628         * string/bits/string3.h: Likewise.
32629         * include/stdio.h: Likewise.
32630         * stdlib/bits/stdlib.h: Likewise.
32631         * stdlib/stdlib.h: Likewise.
32632         * rt/bits/mqueue2.h: Likewise.
32633         * rt/mqueue.h: Likewise.
32634         * posix/bits/unistd.h: Likewise.
32635         * posix/unistd.h: Likewise.
32636         * io/bits/poll2.h: Likewise.
32637         * io/bits/fcntl2.h: Likewise.
32638         * io/fcntl.h: Likewise.
32639         * io/sys/poll.h: Likewise.
32640         * misc/bits/syslog.h: Likewise.
32641         * misc/bits/syslog-ldbl.h: Likewise.
32642         * misc/sys/syslog.h: Likewise.
32643         * socket/bits/socket2.h: Likewise.
32644         * socket/sys/socket.h: Likewise.
32645         * debug/tst-chk1.c: Likewise.
32646         * wcsmbs/bits/wchar2.h: Likewise.
32647         * wcsmbs/bits/wchar-ldbl.h: Likewise.
32648         * wcsmbs/wchar.h: Likewise.
32649
32650 2012-04-29  Andreas Jaeger  <aj@suse.de>
32651
32652         * Makerules (tests): Remove enable-check-abi protection.
32653         (check-abi-warn): Remove.
32654         (check-abi-%): Remove check-abi-warn usage.
32655
32656         * configure.in: Remove check-abi configure option.
32657         * configure: Regenerated.
32658         * config.make.in (enable-check-abi): Remove.
32659
32660 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
32661
32662         [BZ #14033]
32663         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
32664         double functions to double *_finite functions.
32665
32666         [BZ #13941]
32667         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
32668         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
32669         LDBL_MIN_EXP.
32670         * stdio-common/Makefile (tests): Add tst-sprintf3.
32671         * stdio-common/tst-sprintf3.c: New file.
32672
32673         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
32674         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
32675
32676 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
32677
32678         * conform/conformtest.pl: Remove duplicate typed-constant
32679         handling.
32680
32681 2012-04-28  David S. Miller  <davem@davemloft.net>
32682
32683         * Makerules (%.abilist): Add vpath on sysdep_dirs.
32684         (check-abi-%): Remove AWK script prerequisite and explicit
32685         abilist directory.
32686         (check-abi): Rewrite to just diff the symlist with the abilist.
32687         (config-tls, config-abi-config): Delete, no longer used.
32688         (update-abi-%): Remove AWK script and explicit abilist directory.
32689         (update-abi): Rewrite to simply compare and conditionally copy the
32690         symlist and the sysdep abilist file.  Remove update-abi-config
32691         checks.
32692         * abilist/ld.abilist: Remove.
32693         * abilist/libBrokenLocale.abilist: Remove.
32694         * abilist/libanl.abilist: Remove.
32695         * abilist/libcrypt.abilist: Remove.
32696         * abilist/libdl.abilist: Remove.
32697         * abilist/librt.abilist: Remove.
32698         * abilist/libthread_db.abilist: Remove.
32699         * abilist/libutil.abilist: Remove.
32700         * scripts/extract-abilist.awk: Remove.
32701         * scripts/merge-abilist.awk: Remove.
32702         * sysdeps/generic/libcidn.abilist: New file.
32703         * sysdeps/generic/libnss_compat.abilist: New file.
32704         * sysdeps/generic/libnss_db.abilist: New file.
32705         * sysdeps/generic/libnss_dns.abilist: New file.
32706         * sysdeps/generic/libnss_files.abilist: New file.
32707         * sysdeps/generic/libnss_hesiod.abilist: New file.
32708         * sysdeps/generic/libnss_nis.abilist: New file.
32709         * sysdeps/generic/libnss_nisplus.abilist: New file.
32710         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
32711         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
32712         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
32713         file.
32714         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
32715         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
32716         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
32717         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
32718         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
32719         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
32720         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
32721         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
32722         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
32723         file.
32724         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
32725         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
32726         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
32727         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
32728         file.
32729         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
32730         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
32731         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
32732         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
32733         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
32734         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
32735         file.
32736         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
32737         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
32738         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
32739         file.
32740         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
32741         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
32742         New file.
32743         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
32744         New file.
32745         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
32746         New file.
32747         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
32748         New file.
32749         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
32750         New file.
32751         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
32752         New file.
32753         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
32754         New file.
32755         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
32756         New file.
32757         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
32758         New file.
32759         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
32760         New file.
32761         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
32762         New file.
32763         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
32764         New file.
32765         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
32766         New file.
32767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
32768         file.
32769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
32770         New file.
32771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
32772         New file.
32773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
32774         file.
32775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
32776         New file.
32777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
32778         New file.
32779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
32780         file.
32781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
32782         New file.
32783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
32784         New file.
32785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
32786         New file.
32787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
32788         New file.
32789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
32790         New file.
32791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
32792         New file.
32793         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
32794         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
32795         file.
32796         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
32797         New file.
32798         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
32799         file.
32800         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
32801         file.
32802         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
32803         file.
32804         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
32805         file.
32806         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
32807         file.
32808         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
32809         New file.
32810         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
32811         file.
32812         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
32813         file.
32814         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
32815         New file.
32816         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
32817         file.
32818         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
32819         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
32820         file.
32821         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
32822         New file.
32823         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
32824         file.
32825         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
32826         file.
32827         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
32828         file.
32829         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
32830         file.
32831         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
32832         file.
32833         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
32834         New file.
32835         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
32836         file.
32837         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
32838         file.
32839         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
32840         New file.
32841         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
32842         file.
32843         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
32844         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
32845         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
32846         file.
32847         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
32848         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
32849         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
32850         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
32851         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
32852         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
32853         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
32854         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
32855         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
32856         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
32857         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
32858         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
32859         file.
32860         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
32861         New file.
32862         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
32863         file.
32864         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
32865         file.
32866         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
32867         file.
32868         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
32869         file.
32870         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
32871         file.
32872         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
32873         New file.
32874         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
32875         New file.
32876         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
32877         file.
32878         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
32879         New file.
32880         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
32881         file.
32882         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
32883         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
32884         file.
32885         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
32886         New file.
32887         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
32888         file.
32889         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
32890         file.
32891         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
32892         file.
32893         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
32894         file.
32895         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
32896         file.
32897         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
32898         New file.
32899         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
32900         New file.
32901         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
32902         file.
32903         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
32904         New file.
32905         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
32906         file.
32907
32908 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
32909
32910         * conform/conformtest.pl: Fix typo in handling typed-constant from
32911         allow-header.
32912
32913 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
32914
32915         * README: Cut down references to pre-2.6 Linux kernels and
32916         Linuxthreads.  Update lists of configurations in libc and ports
32917         and sort alphabetically.  Say "or newer" with Linux kernel version
32918         requirements.
32919
32920         * config.h.in [IS_IN_build]: Allow compiling without optimization.
32921
32922 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
32923
32924         [BZ #887]
32925         * math/libm-test.inc (logb_test_downward): New test to expose
32926         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
32927         rounding mode.
32928
32929 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
32930
32931         [BZ #14027]
32932         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
32933         to be done.
32934         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
32935         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
32936
32937 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
32938
32939         * sysdeps/unix/i386/brk.S: Remove file.
32940         * sysdeps/unix/i386/dl-brk.S: Likewise.
32941         * sysdeps/unix/i386/pipe.S: Likewise.
32942         * sysdeps/unix/i386/sigreturn.S: Likewise.
32943         * sysdeps/unix/i386/syscall.S: Likewise.
32944         * sysdeps/unix/i386/vfork.S: Likewise.
32945         * sysdeps/unix/i386/wait.S: Likewise.
32946
32947         * sysdeps/unix/common/tcsendbrk.c: Move to ...
32948         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
32949
32950         * configure.in (arm*-none*): Do not allow without
32951         --enable-hacker-mode.
32952         (netbsd*): Remove case setting base_os.
32953         (386bsd*): Likewise.
32954         (freebsd*): Likewise.
32955         (bsdi*): Likewise.
32956         (osf*): Likewise.
32957         (sunos*): Likewise.
32958         (ultrix*): Likewise.
32959         (newsos*): Likewise.
32960         (dynix*): Likewise.
32961         (*bsd*): Likewise.
32962         (sysv*): Likewise.
32963         (isc*): Likewise.
32964         (esix*): Likewise.
32965         (sco*): Likewise.
32966         (minix*): Likewise.
32967         (irix4*): Likewise.
32968         (irix6*): Likewise.
32969         (solaris[2-9]*): Likewise.
32970         (none): Likewise.
32971         * configure: Regenerated.
32972
32973 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32974
32975         [BZ #11521]
32976         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
32977         overflow or cancellation in calculating denominator.
32978         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
32979         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
32980         down expression to avoid unexpected rounding in newer GCCs.
32981         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
32982
32983 2012-04-26  David S. Miller  <davem@davemloft.net>
32984
32985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
32986         long-double compat symbols.
32987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
32988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
32989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
32990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
32991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
32992         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
32993         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
32994         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
32995         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
32996         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
32997         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
32998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
32999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
33000
33001 2012-04-25  David S. Miller  <davem@davemloft.net>
33002
33003         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
33004         HWCAP_* values only after the memory barriers have been defined.
33005         (atomic_full_barrier): Define.
33006         (atomic_read_barrier): Define.
33007         (atomic_write_barrier): Define.
33008
33009 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
33010
33011         * shlib-versions: Add libgcc_s version information.
33012         * sysdeps/generic/libgcc_s.h: Remove.
33013         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
33014         libgcc_s.h.
33015         * sysdeps/gnu/unwind-resume.c: Likewise.
33016         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
33017
33018 2012-04-25  David S. Miller  <davem@davemloft.net>
33019
33020         * sysdeps/unix/sparc/brk.S: Delete.
33021         * sysdeps/unix/sparc/dl-brk.S: Delete.
33022         * sysdeps/unix/sparc/pipe.S: Delete.
33023         * sysdeps/unix/sparc/sysdep.S: Delete.
33024         * sysdeps/unix/sparc/sysdep.h: Delete.
33025         * sysdeps/unix/sparc/vfork.S: Delete.
33026         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
33027         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
33028         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
33029         (ret_ERRVAL, r0, r1, MOVE): Define.
33030         (JUMPTARGET): Remove.
33031         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
33032         sysdeps/unix/sparc/sysdep.h
33033         (ENTRY, END): Remove.
33034         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33035
33036 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
33037
33038         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
33039         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
33040         -DIS_IN_build.
33041
33042         * timezone/README: Update upstream location and email address for
33043         tzcode and tzdata.
33044         * timezone/zdump.c: Update from tzcode 2012b.
33045         * timezone/zic.c: Likewise.
33046
33047         * configure.in (libc_cv_as_needed): Remove test.
33048         * configure: Regenerated.
33049         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
33050         conditional definition.
33051         [$(have-as-needed) != yes] (no-as-needed): Likewise.
33052         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
33053         * config.make.in (have-as-needed): Remove variable.
33054
33055 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
33056             Paul Pluzhnikov  <ppluzhnikov@google.com>
33057
33058         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
33059         strings correctly.
33060
33061 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
33062
33063         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
33064         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
33065         * sysdeps/sh/strlen.S: Likewise.
33066
33067 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
33068
33069         * sysdeps/unix/fork.S: Remove file.
33070         * sysdeps/unix/i386/fork.S: Likewise.
33071         * sysdeps/unix/sparc/fork.S: Likewise.
33072
33073         * sysdeps/unix/system.c: Remove file.
33074         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
33075
33076         * sysdeps/unix/getegid.S: Remove file.
33077         * sysdeps/unix/geteuid.S: Likewise.
33078
33079 2012-04-24  Roland McGrath  <roland@hack.frob.com>
33080
33081         * scripts/check-localplt.awk: New file.
33082         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
33083         of diff.
33084         * scripts/data/localplt-generic.data: Add a comment.
33085
33086         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
33087         NODE when __dir_mkfile failed.
33088         * sysdeps/mach/hurd/symlinkat.c: Likewise.
33089         Reported by Ludovic Courtès <ludo@gnu.org>.
33090
33091 2012-04-24  Andreas Jaeger  <aj@suse.de>
33092
33093         * Makerules (common-clean): Also remove gen-as-const-headers
33094         files.
33095
33096 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
33097
33098         * Makerules (native-compile): Do not change working directory for
33099         build.  Use $(OUTPUT_OPTION) in command.
33100         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
33101
33102 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33103
33104         [BZ #13886]
33105         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
33106         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
33107         * math/libm-test.inc (floor_test): Add more tests.
33108         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
33109
33110 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
33111
33112         * sysdeps/unix/getdents.c: Remove file.
33113         * sysdeps/unix/sysv/getdents.c: Likewise.
33114         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
33115
33116         * sysdeps/unix/syscalls.list (madvise): Add syscall from
33117         sysdeps/unix/mman/syscalls.list.
33118         (mmap): Likewise.
33119         (mprotect): Likewise.
33120         (msync): Likewise.
33121         (munmap): Likewise.
33122         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
33123         * sysdeps/unix/mman/syscalls.list: Remove.
33124         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
33125
33126         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
33127         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
33128         * configure: Regenerated.
33129         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
33130         $(libgcc_s_suffix).
33131         * config.make.in (libgcc_s_suffix): Remove variable.
33132
33133 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
33134
33135         * sysdeps/unix/sysv/gethostname.c: Move to ...
33136         * sysdeps/posix/gethostname.c: ... here.
33137
33138         * sysdeps/unix/execve.S: Remove file.
33139
33140         * sysdeps/unix/_exit.S: Remove file.
33141
33142 2012-04-23  Andreas Jaeger  <aj@suse.de>
33143
33144         [BZ #13739]
33145         * manual/Makefile: Remove make dist support, there's no
33146         need for a stand-alone documentation tar ball.
33147         (TEXI2DVI): Define always, it's not in Makeconfig.
33148         (dist): Removed.
33149         (tar-it): Removed.
33150         (edition): Removed.
33151         (glibc-doc-$(edition).tar): Removed
33152         (%.Z): Removed.
33153         (%.gz): Removed.
33154         (%.uu): Removed.
33155         (ETAGS): Remove, it's in Makeconfig.
33156         (move-if-change): Remove, it's in Makeconfig.
33157
33158 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
33159
33160         [BZ #13970]
33161         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
33162         (strtod, strtof, strtold, strtol, strtoul, strtoq)
33163         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
33164         (strtod_l, strtof_l, strtold_l): Remove __wur.
33165         It is not necessarily an error to ignore strtol's return value.
33166         One can reliably look at the stored endptr to decide whether
33167         the number had valid syntax.
33168
33169 2012-04-21  Andreas Jaeger  <aj@suse.de>
33170
33171         [BZ #13739]
33172         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
33173
33174 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
33175
33176         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
33177         * sysdeps/unix/sysv/Versions: Remove file.
33178
33179 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
33180
33181         [BZ #13927]
33182         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33183
33184 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
33185
33186         [BZ #7064]
33187         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
33188         version from __vm86.
33189
33190 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
33191
33192         * sysdeps/unix/common/lxstat.c: Remove file.
33193         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
33194
33195         * sysdeps/unix/sysv/Makefile: Remove file.
33196
33197         * sysdeps/unix/sysv/direct.h: Remove file.
33198
33199         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
33200         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
33201         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
33202         * sysdeps/unix/sysv/bits/signum.h: Likewise.
33203         * sysdeps/unix/sysv/bits/stat.h: Likewise.
33204         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
33205         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
33206
33207         * sysdeps/unix/sysv/setrlimit.c: Remove file.
33208
33209         * sysdeps/unix/xmknod.c: Remove file.
33210         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
33211
33212         * sysdeps/unix/sysv/settimeofday.c: Remove file.
33213
33214         * sysdeps/unix/sysv/i386/time.S: Remove file.
33215
33216         * sysdeps/unix/fxstat.c: Remove file.
33217         * sysdeps/unix/xstat.c: Likewise.
33218         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
33219
33220         * sysdeps/unix/sysv/sigaction.c: Remove file.
33221
33222         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
33223         (sysdep_headers): Remove variable.
33224         [termio.h not in sysdep_headers] (generated): Likewise.
33225         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
33226         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
33227         * sysdeps/unix/sysv/tcdrain.c: Likewise.
33228         * sysdeps/unix/sysv/tcflow.c: Likewise.
33229         * sysdeps/unix/sysv/tcflush.c: Likewise.
33230         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
33231         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
33232         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
33233         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
33234         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
33235
33236         * sysdeps/unix/siglist.c: Remove file.
33237
33238         * sysdeps/unix/getppid.S: Remove file.
33239
33240         * sysdeps/unix/mkdir.c: Remove file.
33241         * sysdeps/unix/rmdir.c: Likewise.
33242
33243 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
33244
33245         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
33246         ERR_MAX value.
33247         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
33248         errlist-compat value.
33249
33250 2012-04-18  David S. Miller  <davem@davemloft.net>
33251
33252         * sysdeps/generic/memcopy.h (reg_char): Delete.
33253         * debug/strcat_chk.c: Use char, not reg_char.
33254         * debug/strcpy_chk.c: Likewise.
33255         * debug/strncat_chk.c: Likewise.
33256         * debug/strncpy_chk.c: Likewise.
33257         * string/memchr.c: Likewise.
33258         * string/memrchr.c: Likewise.
33259         * string/rawmemchr.c: Likewise.
33260         * string/strcat.c: Likewise.
33261         * string/strchr.c: Likewise.
33262         * string/strchrnul.c: Likewise.
33263         * string/strcmp.c: Likewise.
33264         * string/strcpy.c: Likewise.
33265         * string/strncat.c: Likewise.
33266         * string/strncmp.c: Likewise.
33267         * string/strncpy.c: Likewise.
33268
33269 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
33270
33271         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
33272         __builtin_memcopy is called when src and dest ranges are known to not
33273         overlap.
33274
33275 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
33276
33277         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
33278         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
33279         fwd_align_merge macro call.
33280         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
33281         bwd_align_merge macro call.
33282         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
33283
33284 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
33285
33286         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
33287         bwd_align_merge macros.
33288         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
33289         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
33290         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
33291
33292 2012-04-18  David S. Miller  <davem@davemloft.net>
33293
33294         * sysdeps/sparc/sparc64/memcopy.h: Delete.
33295
33296 2012-04-18  Andreas Jaeger  <aj@suse.de>
33297
33298         [BZ# 6794]
33299         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
33300         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
33301         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
33302
33303         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
33304         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
33305         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
33306
33307         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
33308         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
33309         Adjust for changed ldbl-128 files.
33310
33311         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
33312         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
33313         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
33314
33315 2012-04-17  David S. Miller  <davem@davemloft.net>
33316
33317         * sysdeps/sparc/sparc32/memcopy.h: Delete.
33318
33319 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
33320
33321         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
33322         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
33323         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
33324         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
33325         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
33326         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
33327
33328 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33329
33330         [BZ #6794]
33331         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
33332         * math/libm-test.inc: Add ilogb errno and exception tests.
33333         * math/w_ilogb.c: New file: ilogb wrapper.
33334         * math/w_ilogbf.c: New file: ilogbf wrapper.
33335         * math/w_ilogbl.c: New file: ilogbl wrapper.
33336         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
33337         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
33338         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
33339         exception being thrown with 0.0 as argument.
33340         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
33341         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
33342         exception being thrown with 0.0 as argument.
33343         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
33344         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
33345         exception being thrown with 0.0 as argument.
33346         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
33347         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
33348         exception being thrown with 0.0 as argument.
33349         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
33350         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
33351         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
33352         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
33353         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
33354         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
33355         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
33356         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
33357         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
33358
33359 2012-04-17  Petr Baudis  <pasky@ucw.cz>
33360
33361         * include/sys/uio.h: Change __vector to __iovec to avoid clash
33362         with altivec.
33363
33364 2012-04-16  Marek Polacek  <polacek@redhat.com>
33365
33366         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
33367
33368 2012-04-16  Marek Polacek  <polacek@redhat.com>
33369
33370         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
33371         operands of fdivp instruction.
33372
33373 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
33374
33375         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
33376         * elf/tst-auditmod3b.c: Likewise.
33377         * elf/tst-auditmod4b.c: Likewise.
33378         * elf/tst-auditmod5b.c: Likewise.
33379         * elf/tst-auditmod6b.c: Likewise.
33380         * elf/tst-auditmod6c.c: Likewise.
33381         * elf/tst-auditmod7b.c: Likewise.
33382         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
33383         * sysdeps/x86_64/preconfigure.in: Likewise.
33384         * sysdeps/x86_64/preconfigure: Regenerated.
33385
33386 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
33387
33388         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
33389         __ILP32__.
33390
33391 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
33392
33393         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
33394         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
33395
33396 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
33397
33398         [BZ #13973]
33399         * locale/iso-639.def: Fix gl language name. Spotted by
33400         Yaron Shahrabani.
33401
33402 2012-04-12  Roland McGrath  <roland@hack.frob.com>
33403
33404         [BZ #2074]
33405         * libio/libio.h (__io_write_fn): Update comment.
33406
33407 2012-04-12  Petr Baudis  <pasky@ucw.cz>
33408
33409         [BZ #2074]
33410         * stdio.texi (Hook Functions): The user provided writer function
33411         is not allowed to return -1.
33412
33413 2012-04-11  David S. Miller  <davem@davemloft.net>
33414
33415         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33416
33417 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
33418
33419         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
33420         Add a leading slash to rtkaio.
33421
33422 2012-04-11  Jim Meyering  <meyering@redhat.com>
33423
33424         [BZ #11959]
33425         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
33426         It is not necessarily an error to ignore fwrite's return
33427         value.  One can reliably use ferror to test for errors after
33428         the fact.
33429
33430 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
33431
33432         * bits/types.h (__snseconds_t): New type.
33433         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
33434
33435         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
33436         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33437         (__SNSECONDS_T_TYPE): Likewise.
33438         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
33439         (__SNSECONDS_T_TYPE): Likewise.
33440         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
33441         (__SNSECONDS_T_TYPE): Likewise.
33442
33443 2012-04-10  Andreas Jaeger  <aj@suse.de>
33444
33445         [BZ #2636]
33446         * manual/time.texi (Processor Time): Return type of times is
33447         elapsed real time since an arbitrary point in the past.
33448         (CPU Time): Move CLK_TCK from here...
33449         (Processor Time): ...to here.  Correct description.
33450         * manual/conf.texi (Constants for Sysconf): Correct description of
33451         _SC_CLK_TCK.
33452
33453 2012-04-10  David S. Miller  <davem@davemloft.net>
33454
33455         [BZ #13967]
33456         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
33457         where the is a gap between DT_REL(A) and DT_JMPREL.
33458
33459 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
33460
33461         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
33462         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
33463         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
33464
33465 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33466
33467         * elf/dl-support.c (_dl_inhibit_cache): New variable.
33468         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
33469         (dl_main): Handle --inhibit-cache.
33470         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
33471         _dl_inhibit_cache.
33472         * elf/dl-load.c (_dl_map_object): Use it.
33473         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
33474
33475 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
33476
33477         [BZ #13872]
33478         * sysdeps/i386/fpu/e_powl.S (p78): New object.
33479         (__ieee754_powl): Saturate large exponents rather than testing for
33480         overflow of y*log2(x).
33481         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33482         * math/libm-test.inc (pow_test): Do not permit spurious overflow
33483         exceptions.
33484
33485         [BZ #11521]
33486         * math/s_ctan.c: Include <float.h>.
33487         (__ctan): Avoid internal overflow or cancellation in calculating
33488         denominator.
33489         * math/s_ctanf.c: Likewise.
33490         * math/s_ctanl.c: Likewise.
33491         * math/s_ctanh.c: Likewise.
33492         * math/s_ctanhf.c: Likewise.
33493         * math/s_ctanhl.c: Likewise.
33494         * math/libm-test.inc (ctan_test): Add more tests.
33495         (ctanh_test): Likewise.
33496         * sysdeps/i386/fpu/libm-test-ulps: Update.
33497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33498
33499 2012-04-09  Andreas Jaeger  <aj@suse.de>
33500
33501         [BZ #6894]
33502         * manual/filesys.texi (Directory Entries): Mention that d_namlen
33503         is an optional BSD extension.
33504
33505         [BZ #10254]
33506         * manual/stdio.texi (Opening Streams): Document additional fopen
33507         parameters.
33508
33509 2012-04-09  Roland McGrath  <roland@hack.frob.com>
33510
33511         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
33512         %eax without telling the compiler.
33513
33514 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
33515
33516         [BZ # 13963]
33517         * manual/install.texi: Use sourceware.org.
33518
33519 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
33520
33521         [BZ #13873]
33522         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
33523         (__ieee754_pow): Generate overflow and underflow using huge*huge
33524         and tiny*tiny rather than just returning constant infinity or zero
33525         for large exponents.
33526         * math/libm-test.inc (pow_test): Require overflow exceptions for
33527         applicable cases of large exponents.
33528
33529         [BZ #706]
33530         * sysdeps/i386/fpu/e_pow.S (p10): New object.
33531         (__ieee754_pow): Use iterative multiplication algorithm only for
33532         integer exponents with absolute value below 1024.  Check for odd
33533         integer exponents when using algorithm for real exponents.
33534         * math/libm-test.inc (pow_test): Add more tests.
33535         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33536
33537 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
33538
33539         [BZ #13705]
33540         * math/libm-test.inc (exp_test): Do not allow overflow exception
33541         on underflow test.
33542
33543 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
33544
33545         [BZ #13705]
33546         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
33547         instead of __kernel_standard_f.
33548
33549 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
33550
33551         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
33552         * sysdeps/x86_64/memset_chk.S: Likewise.
33553
33554 2012-04-08  Andreas Jaeger  <aj@suse.de>
33555
33556         [BZ #10153]
33557         * manual/startup.texi (Environment Access): Describe return value
33558         for putenv and setenv.
33559
33560         [BZ #6895]
33561         * manual/filesys.texi (Directory Entries): Add description for
33562         DT_LNK.
33563
33564         [BZ #6890]
33565         * manual/filesys.texi (Directory Entries): Clarify that it's file
33566         system not operating system in the description of DT_UNKNOWN.
33567
33568         [BZ #6578]
33569         * manual/syslog.texi (closelog): Fix reference, it's openlog.
33570
33571 2012-04-08  Stephen Compall  <s11@member.fsf.org>
33572
33573         [BZ #6649]
33574         * manual/llio.texi (Opening and Closing Files): Add cross
33575         reference to explain mode argument.
33576
33577 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
33578
33579         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
33580         * sysdeps/x86_64/memset_chk.S: Likewise.
33581
33582 2012-04-07  David S. Miller  <davem@davemloft.net>
33583
33584         * elf/elf.h (R_SPARC_WDISP10): Define.
33585         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
33586         R_SPARC_SIZE32.
33587         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
33588         R_SPARC_SIZE64 and R_SPARC_H34.
33589
33590 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
33591
33592         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
33593         conditions and remove no longer applicable assertion.
33594
33595 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
33596
33597         * bits/byteswap.h: Include <features.h>.
33598         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
33599         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
33600
33601 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
33602
33603         * bits/byteswap.h (__bswap_16): Removed.
33604         Include <bits/byteswap-16.h> to get __bswap_16.
33605         * sysdeps/i386/bits/byteswap.h: Likewise.
33606         * sysdeps/s390/bits/byteswap.h: Likewise.
33607         * sysdeps/x86_64/bits/byteswap.h: Likewise.
33608         * bits/byteswap-16.h: New file.
33609         * sysdeps/i386/bits/byteswap-16.h: Likewise.
33610         * sysdeps/s390/bits/byteswap-16.h: Likewise.
33611         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
33612         * string/Makefile (headers): Add bits/byteswap-16.h.
33613
33614 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
33615
33616         [BZ #13895]
33617         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
33618         extra indirection.
33619         * nss/Makefile (tests-static, tests): Add tst-nss-static.
33620         * nss/tst-nss-static.c: New.
33621
33622 2012-04-06  Robert Millan  <rmh@gnu.org>
33623
33624         [BZ #6486]
33625         * manual/llio.texi (File Position Primitive): lseek
33626         refers to WHENCE when it really means OFFSET.
33627
33628 2012-04-06  Andreas Jaeger  <aj@suse.de>
33629
33630         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
33631         strncmp declarations.
33632
33633         * abilist/libc.abilist: Add __poll and __ppoll.
33634
33635 2012-04-05  David S. Miller  <davem@davemloft.net>
33636
33637         * scripts/check-local-headers.sh: Accept a host triplet in the
33638         path matched by the exclude regexp.
33639
33640         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
33641         definition.
33642         * sysdeps/powerpc/powerpc32/dl-machine.h
33643         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
33644         * sysdeps/s390/s390-32/dl-machine.h
33645         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
33646         * sysdeps/sparc/sparc32/dl-machine.h
33647         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
33648         * sysdeps/sparc/sparc64/dl-machine.h
33649         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
33650
33651         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
33652         lazy binding.
33653         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
33654         undefined symbol errors.
33655
33656         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
33657         DT_NEEDED entries.
33658
33659 2012-04-05  Michael Matz  <matz@suse.de>
33660
33661         [BZ #13592]
33662         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
33663
33664 2012-04-05  Andreas Jaeger  <aj@suse.de>
33665
33666         [BZ #13908]
33667         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
33668         comment.
33669
33670 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33671
33672         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
33673         which ROUND is no valid rounding mode.
33674
33675 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33676
33677         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
33678         read again.
33679         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
33680
33681 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33682
33683         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
33684         an exception using FPU order intentionally.
33685
33686 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33687
33688         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
33689         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
33690         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
33691         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
33692
33693 2012-04-05  Simon Josefsson  <simon@josefsson.org>
33694
33695         [BZ #12340]
33696         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
33697         EINVAL when BUFLEN is too smal.
33698
33699 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
33700
33701         [BZ #13553]
33702         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
33703         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
33704
33705 2012-04-03  Andreas Jaeger  <aj@suse.de>
33706
33707         [BZ #13938]
33708         * manual/setjmp.texi (System V contexts): Fix sentence.
33709
33710         [BZ #13926]
33711         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
33712         New macro for this case.
33713         [!__GNUC__] (__bswap_64): New inline function for this case.
33714         * sysdeps/x86_64/bits/byteswap.h: Likewise.
33715         * bits/byteswap.h: Likewise.
33716         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
33717         ull, guard with __GLIBC_HAVE_LONG_LONG.
33718
33719         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
33720         __GLIBC_HAVE_LONG_LONG.
33721
33722         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
33723         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
33724
33725 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33726
33727         [BZ #13691]
33728         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
33729         inptr and inend, rather than using last_ch.
33730
33731 2012-04-02  David S. Miller  <davem@davemloft.net>
33732
33733         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
33734         * stdio-common/printf-parse.h (read_int): Change return type to
33735         'int', return -1 on INT_MAX overflow.
33736         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
33737         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
33738         overflows INT_MAX.  Check for overflow of in-format-string precision
33739         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
33740         SIZE_MAX not INT_MAX for integer overflow test.
33741         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
33742         skip the construct in the format string but do not record anything.
33743         * stdio-common/bug22.c: Adjust to test both width/prevision
33744         INT_MAX overflow as well as total length INT_MAX overflow.  Check
33745         explicitly for proper errno values.
33746
33747 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
33748
33749         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
33750         CHAR_MAX.
33751         * string/test-strcmp.c [! WIDE]: Likewise.
33752         * time/tst-mktime2.c: Likewise for INT_MAX.
33753         * string/test-string.h: #include <sys/param.h> for MIN.
33754
33755         * csu/init-first.c (__libc_init_first): Call __ctype_init.
33756         * sysdeps/i386/init-first.c (init): Likewise.
33757         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
33758         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
33759         * sysdeps/sh/init-first.c (init): Likewise.
33760
33761 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
33762
33763         * po/ru.po: Update from translation team.
33764         * po/vi.po: Likewise.
33765
33766 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
33767
33768         * resolv/nss_dns/dns-host.c: Merge copyright years.
33769
33770 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33771
33772         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
33773         Optimize memcpy with prefetch if
33774         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
33775         src, dst pointers have unequal 16 byte alignments.
33776
33777 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33778
33779         [BZ #13928]
33780         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
33781         from a CNAME entry and return the minimum ttl for the query.
33782         (gaih_getanswer_slice): Likewise.
33783
33784 2012-03-30  Jeff Law  <law@redhat.com>
33785
33786         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
33787         due to long keys.
33788         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
33789         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
33790
33791         * resolv/nss_dns/dns-host.c: Update copyright year.
33792
33793 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
33794
33795         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
33796         requests to save a system call.  Fix check that all bytes are sent.
33797
33798         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
33799         comments for sendmmsg.
33800
33801 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
33802
33803         [BZ #13691]
33804         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
33805         with only 1 character between 0x0041 and 0x01b0.
33806         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
33807         * wcsmbs/tst-mbsnrtowcs.c: New file.
33808
33809 2012-03-29  David S. Miller  <davem@davemloft.net>
33810
33811         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
33812         small copies by hand.
33813
33814 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
33815
33816         [BZ #13761]
33817         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
33818         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
33819         group memberships.
33820
33821 2012-03-28  David S. Miller  <davem@davemloft.net>
33822
33823         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
33824         that branches into memcpy.
33825         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
33826         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
33827         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
33828         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
33829         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
33830         bits.
33831         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
33832         implementation too.
33833         * sysdeps/sparc/mempcpy.S: New file.
33834
33835         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
33836         the IFUNC routine in the libc case.
33837         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
33838
33839         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
33840         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
33841         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
33842         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
33843         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
33844         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
33845         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
33846         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
33847
33848         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
33849         loop to 256 bytes instead of 64 bytes and fix test signedness.
33850
33851         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
33852         * sysdeps/sparc/sparc32/Makefile: rather than here...
33853         * sysdeps/sparc/sparc64/Makefile: and here.
33854
33855 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
33856
33857         * malloc/mallocbug.c: Avoid warnings about unused variables.
33858
33859 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33860
33861         [BZ #13760]
33862         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
33863         in the right place. Discard and retry query if response is
33864         larger than input buffer size.
33865
33866 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
33867
33868         [BZ #369]
33869         [BZ #2678]
33870         [BZ #3866]
33871         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
33872         x for large integer exponent.
33873         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
33874         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
33875         sign of result as needed afterwards.
33876         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
33877         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
33878         result for underflowing pow the same as for overflow.
33879         (__kernel_standard_l): Handle powl overflow and underflow here
33880         rather than calling __kernel_standard.
33881         * math/libm-test.inc (pow_test): Add more tests.
33882
33883         [BZ #3868]
33884         [BZ #13879]
33885         [BZ #13910]
33886         [BZ #13911]
33887         [BZ #13912]
33888         [BZ #13913]
33889         [BZ #13915]
33890         [BZ #13916]
33891         [BZ #13917]
33892         [BZ #13918]
33893         [BZ #13919]
33894         [BZ #13920]
33895         [BZ #13921]
33896         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
33897         * sysdeps/ieee754/k_standard.c: Include <float.h>.
33898         (__kernel_standard_l): New function.
33899         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
33900         __kernel_standard.
33901         * math/w_acosl.c (__acosl): Likewise.
33902         * math/w_asinl.c (__asinl): Likewise.
33903         * math/w_atan2l.c (__atan2l): Likewise.
33904         * math/w_atanhl.c (__atanhl): Likewise.
33905         * math/w_coshl.c (__coshl): Likewise.
33906         * math/w_exp10l.c (__exp10l): Likewise.
33907         * math/w_exp2l.c (__exp2l): Likewise.
33908         * math/w_fmodl.c (__fmodl): Likewise.
33909         * math/w_hypotl.c (__hypotl): Likewise.
33910         * math/w_j0l.c (__j0l, __y0l): Likewise.
33911         * math/w_j1l.c (__j1l, __y1l): Likewise.
33912         * math/w_jnl.c (__jnl, __ynl): Likewise.
33913         * math/w_lgammal.c (__lgammal): Likewise.
33914         * math/w_log10l.c (__log10l): Likewise.
33915         * math/w_log2l.c (__log2l): Likewise.
33916         * math/w_logl.c (__logl): Likewise.
33917         * math/w_powl.c (__powl): Likewise.
33918         * math/w_remainderl.c (__remainderl): Likewise.
33919         * math/w_scalbl.c (sysv_scalbl): Likewise.
33920         * math/w_sinhl.c (__sinhl): Likewise.
33921         * math/w_sqrtl.c (__sqrtl): Likewise.
33922         * math/w_tgammal.c (__tgammal): Likewise.
33923         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
33924         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
33925         * math/libm-test.inc (acos_test): Add more tests.
33926         (acosh_test): Likewise.
33927         (asin_test): Likewise.
33928         (atanh_test): Likewise.
33929         (exp_test): Likewise.
33930         (exp10_test): Likewise.
33931         (exp2_test): Likewise.
33932         (expm1_test): Likewise.
33933         (lgamma_test): Likewise.
33934         (log_test): Likewise.
33935         (log10_test): Likewise.
33936         (log1p_test): Likewise.
33937         (log2_test): Likewise.
33938         (pow_test): Do not allow some spurious overflow exceptions.
33939         (sqrt_test): Add more tests.
33940         (tgamma_test): Likewise.
33941         (y0_test): Likewise.
33942         (y1_test): Likewise.
33943         (yn_test): Likewise.
33944
33945 2012-03-27  Anton Blanchard  <anton@samba.org>
33946
33947         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
33948         MAP_HUGETLB.
33949         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
33950         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
33951         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
33952
33953 2012-03-27  David S. Miller  <davem@davemloft.net>
33954
33955         * conform/Makefile: Run run-conformtest.sh using $(BASH).
33956
33957         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
33958         have-as-vis3 check.
33959
33960 2012-03-27  Andreas Jaeger  <aj@suse.de>
33961
33962         * sysdeps/x86_64/elf/configure.in: Moved to ...
33963         * sysdeps/x86_64/configure.in: ... here.
33964         * sysdeps/x86_64/elf/start.S: Moved to ...
33965         * sysdeps/x86_64/start.S: ... here.
33966         * sysdeps/x86_64/elf/configure: Delete.
33967
33968         * sysdeps/x86_64/configure.in: Merge contents from
33969         sysdeps/i386/configure.in (without i686 check).
33970
33971         * sysdeps/i386/elf/Versions: Merge into ...
33972         * sysdeps/i386/Versions: ... this.
33973         * sysdeps/i386/elf/Versions: Delete file.
33974         * sysdeps/i386/elf/start.S: Moved to ...
33975         * sysdeps/i386/start.S: ...here.
33976         * sysdeps/i386/elf/configure.in: Merge into...
33977         * sysdeps/i386/configure.in: ...here.
33978         * sysdeps/i386/elf/configure.in: Delete file.
33979         * sysdeps/i386/elf/configure: Delete file.
33980
33981         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
33982         * debug/backtracesyms.c: ... here.
33983         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
33984         * debug/backtracesymsfd.c: ... here.
33985         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
33986         * sysdeps/generic/ifunc-sel.h: ... here.
33987
33988         * sysdeps/unix/i386/start.c: Delete file.
33989         * sysdeps/unix/sparc/start.c: Delete file.
33990         * sysdeps/unix/start.c: Delete file.
33991
33992         * sysdeps/sh/elf/configure.in: Moved to ...
33993         * sysdeps/sh/configure.in: ... here.
33994         * sysdeps/sh/elf/start.S: Moved to ...
33995         * sysdeps/sh/start.S: ... here.
33996         * sysdeps/sh/elf/configure: Delete file.
33997
33998         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
33999         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
34000         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
34001         * sysdeps/powerpc/powerpc64/entry.h: ... here.
34002         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
34003         * sysdeps/powerpc/powerpc64/start.S: here.
34004         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
34005         * sysdeps/powerpc/powerpc64/Makefile: ... this.
34006         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
34007         * sysdeps/powerpc/powerpc64/configure.in: ... this.
34008         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
34009
34010         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
34011         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
34012         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
34013         * sysdeps/powerpc/powerpc32/start.S: ... here.
34014         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
34015         * sysdeps/powerpc/powerpc32/configure.in: ... this.
34016         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
34017
34018         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
34019         * sysdeps/powerpc/ifunc-sel.h: ... here.
34020         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
34021         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
34022
34023         * sysdeps/sparc/elf/configure.in: Moved to ...
34024         * sysdeps/sparc/configure.in: ... here.
34025         * sysdeps/sparc/elf/configure: Delete file.
34026         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
34027         * sysdeps/sparc/sparc32/start.S: ... here.
34028         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
34029         * sysdeps/sparc/sparc64/start.S: ... here.
34030         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
34031         * sysdeps/sparc/sparc32/Makefile: ... this.
34032         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
34033         * sysdeps/sparc/sparc64/Makefile: ... this.
34034
34035         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
34036         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
34037         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
34038         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
34039         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
34040         * sysdeps/s390/s390-32/setjmp.S: ... here.
34041         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
34042         * sysdeps/s390/s390-32/configure.in: ... here.
34043         * sysdeps/s390/s390-32/elf/configure: Delete file.
34044         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
34045         * sysdeps/s390/s390-32/start.S: ... here.
34046
34047         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
34048         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
34049         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
34050         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
34051         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
34052         * sysdeps/s390/s390-64/setjmp.S: ... here.
34053         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
34054         * sysdeps/s390/s390-64/configure.in: ... here
34055         * sysdeps/s390/s390-64/elf/configure: Delete file.
34056         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
34057         * sysdeps/s390/s390-64/start.S: ... here.
34058         * sysdeps/s390/s390-64/elf/configure: Delete.
34059
34060         * configure.in: Remove support for elf directories in sysdeps.
34061
34062         * configure: Regenerated.
34063         * sysdeps/i386/configure: Regenerated.
34064         * sysdeps/powerpc/powerpc32/configure: Regenerated.
34065         * sysdeps/powerpc/powerpc64/configure: Regenerated.
34066         * sysdeps/s390/s390-32/configure: Regenerated.
34067         * sysdeps/s390/s390-64/configure: Regenerated.
34068         * sysdeps/sh/configure: Regenerated.
34069         * sysdeps/sparc/configure: Regenerated.
34070         * sysdeps/x86_64/configure: Regenerated.
34071
34072 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
34073
34074         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34075
34076         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
34077         denormal result into account.
34078
34079 2012-03-25  Roland McGrath  <roland@hack.frob.com>
34080
34081         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
34082         Reported by Allan McRae <allan@archlinux.org>.
34083
34084 2012-03-23  Jeff Law  <law@redhat.com>
34085
34086         * nss/getnssent.c (__nss_getent): Fix typo.
34087
34088 2012-03-23  David S. Miller  <davem@davemloft.net>
34089
34090         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34091
34092 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
34093
34094         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
34095         to pad to uint64_t for each field.
34096         (dl_tls_index): Replace unsigned long with uint64_t.
34097
34098 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
34099         Paul Pluzhnikov  <ppluzhnikov@google.com>
34100
34101         [BZ #6528]
34102         * grp/Makefile (otherlibs): Don't set it.
34103         * inet/Makefile (otherlibs): Likewise.
34104         * login/Makefile (otherlibs): Likewise.
34105         * nscd/Makefile (otherlibs): Likewise.
34106         * posix/Makefile (otherlibs): Likewise.
34107         * pwd/Makefile (otherlibs): Likewise.
34108         * rt/Makefile (otherlibs): Likewise.
34109         * sunrpc/Makefile (otherlibs): Likewise.
34110         * nss/Makefile (otherlibs): Likewise.
34111         Add libnss_files to routines and static-only-routines.
34112         ($(objpfx)getent): Remove rule.
34113         * resolv/Makefile: Add libnss_dns and libresolv to routines and
34114         static-only-routines.
34115
34116 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
34117
34118         [BZ #13892]
34119         * math/s_cexp.c: Include <float.h>.
34120         (__cexp): Handle exp result overflowing not necessarily
34121         overflowing both real and imaginary parts of result.
34122         * math/s_cexpf.c: Likewise.
34123         * math/s_cexpl.c: Likewise.
34124         * math/libm-test.inc (cexp_test): Add more tests.
34125         * sysdeps/i386/fpu/libm-test-ulps: Update.
34126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34127
34128 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34129
34130         * include/link.h (ELFW): New macro.
34131         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
34132         Replace ELF64_R_TYPE with ELFW(R_TYPE).
34133
34134 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34135
34136         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
34137         with uint64_t.
34138
34139 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34140
34141         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
34142         declaration.
34143         (struct La_x32_retval): Likewise.
34144
34145 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34146
34147         * sysdeps/x86_64/preconfigure.in: New file.
34148         * sysdeps/x86_64/preconfigure: New generated file.
34149
34150 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
34151
34152         [BZ #13824]
34153         * math/e_exp2l.c: Include <float.h>.
34154         (__ieee754_exp2l): Handle overflow and underflow cases
34155         separately.  Only pass fractional part of argument to
34156         __ieee754_expl.
34157         * math/libm-test.inc (exp2_test): Add more tests.
34158
34159         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
34160         negating x to take absolute value.
34161         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34162         Likewise.
34163         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34164         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
34165         Likewise.
34166         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
34167         computing low part if x was negated.
34168         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34169
34170 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
34171
34172         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
34173         la_x32_gnu_pltexit.
34174         (pltexit): Cast int_retval to ptrdiff_t.
34175         * elf/tst-auditmod3b.c: Likewise.
34176         * elf/tst-auditmod4b.c: Likewise.
34177         * elf/tst-auditmod5b.c: Likewise.
34178         * elf/tst-auditmod6b.c: Likewise.
34179         * elf/tst-auditmod6c.c: Likewise.
34180         * elf/tst-auditmod7b.c: Likewise.
34181
34182         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
34183         and x32_gnu_pltexit.
34184
34185         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
34186         __ELF_NATIVE_CLASS.
34187         (La_x32_regs): New macro.
34188         (La_x32_retval): Likewise.
34189         (la_x32_gnu_pltenter): New function prototype.
34190         (la_x32_gnu_pltexit): Likewise.
34191
34192 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
34193
34194         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
34195         exponent.
34196
34197         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34198
34199         * configure.in (libc_cv_cc_nofma): Check for option to disable
34200         generation of FMA instructions.
34201         * configure: Regenerate.
34202         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
34203         * sysdeps/ieee754/dbl-64/Makefile: New file.
34204         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34205         Remove brandred-fma4.
34206         (CFLAGS-brandred-fma4.c): Remove.
34207         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
34208         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
34209         define.
34210         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
34211         define.
34212
34213 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
34214
34215         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
34216         LLONG_MAX != LONG_MAX.
34217         (_itoa_word): Use _ITOA_WORD_TYPE on value.
34218         (_fitoa_word): Likewise.
34219         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
34220         LLONG_MAX != LONG_MAX.
34221         * stdio-common/_itowa.h: Include <_itoa.h>.
34222         (_itowa_word): Use _ITOA_WORD_TYPE on value.
34223         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
34224         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
34225         only if not defined.
34226         (_ITOA_WORD_TYPE): Likewise.
34227         (_itoa_word): Use _ITOA_WORD_TYPE on value.
34228         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
34229
34230 2012-03-21  David S. Miller  <davem@davemloft.net>
34231
34232         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34233
34234 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
34235
34236         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
34237         of x86_64 when setting libc_cv_slibdir, libdir and
34238         libc_cv_localedir.
34239         * sysdeps/unix/sysv/linux/configure: Regenerated.
34240
34241 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
34242
34243         * manual/lang.texi (Old Varargs): Remove section.
34244         (How Variadic): Update menu.
34245         (va_start): Do not mention varargs.h.
34246
34247 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
34248             Joseph Myers  <joseph@codesourcery.com>
34249
34250         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
34251         link test.
34252         * configure: Regenerated.
34253
34254 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
34255
34256         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
34257         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
34258         conformtest.pl
34259
34260 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
34261
34262         * NOTES: Remove.
34263         * Makefile (files-for-dist): Remove NOTES.
34264         (NOTES): Remove rule.
34265         * README: Don't refer to NOTES.
34266         * manual/creature.texi: Don't include macros.texi.
34267         * manual/intro.texi (creature.texi): Remove comment referring to
34268         NOTES.
34269
34270         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
34271         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
34272         * configure: Regenerated.
34273         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
34274         LIBC_TRY_CC_OPTION.
34275         (libc_cv_as_i686): Likewise.
34276         (libc_cv_cc_avx): Likewise.
34277         (libc_cv_cc_sse2avx): Likewise.
34278         (libc_cv_cc_fma4): Likewise.
34279         (libc_cv_cc_novzeroupper): Likewise.
34280         * sysdeps/i386/configure: Regenerated.
34281
34282         [BZ #13883]
34283         * sysdeps/i386/fpu/s_cexp.S: Remove.
34284         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
34285         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
34286         * math/libm-test.inc (cexp_test): Add more tests.
34287         * sysdeps/i386/fpu/libm-test-ulps: Update.
34288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34289
34290 2012-03-21  Allan McRae  <allan@archlinux.org>
34291
34292         * timezone/Makefile: Do not install iso3166.tab and zone.tab
34293
34294 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
34295
34296         [BZ #13871]
34297         * math/w_exp2.c: Do not include <float.h>.
34298         (o_threshold, u_threshold): Remove.
34299         (__exp2): Calculate result before checking finiteness and calling
34300         __kernel_standard.
34301         * math/w_exp2f.c: Likewise.
34302         * math/w_exp2l.c: Likewise.
34303         * math/libm-test.inc (exp2_test): Require overflow exception for
34304         1e6 input.
34305
34306         [BZ #3866]
34307         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
34308         range of signed 64-bit integers before using fistpll.  Remove
34309         checks for whether integers fit in mantissa bits.
34310         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
34311         the range of signed 32-bit integers before using fistpl.  Remove
34312         checks for whether integers fit in mantissa bits.
34313         * sysdeps/i386/fpu/e_powl.S (p64): New object.
34314         (__ieee754_powl): Test for y outside the range of signed 64-bit
34315         integers before using fistpll.  Reduce 64-bit values to 63-bit
34316         ones as needed.
34317         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
34318         divide-by-zero is raised for zero to large negative powers.
34319         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
34320         (__ieee754_powl): Test for y outside the range of signed 64-bit
34321         integers before using fistpll.  Reduce 64-bit values to 63-bit
34322         ones as needed.
34323         * math/libm-test.inc (pow_test): Add more tests.
34324
34325 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
34326
34327         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
34328         <stdio-common/_itoa.h>.
34329         * debug/segfault.c: Likewise.
34330         * elf/dl-cache.c: Likewise.
34331         * elf/dl-minimal.c: Likewise.
34332         * elf/dl-misc.c: Likewise.
34333         * elf/dl-sysdep.c: Likewise.
34334         * elf/dl-version.c: Likewise.
34335         * elf/rtld.c: Likewise.
34336         * hurd/hurdsock.c: Likewise.
34337         * hurd/lookup-retry.c: Likewise.
34338         * malloc/malloc.c: Likewise.
34339         * malloc/mtrace.c: Likewise.
34340         * nscd/nscd_getgr_r.c: Likewise.
34341         * nscd/nscd_getpw_r.c: Likewise.
34342         * nscd/nscd_getserv_r.c: Likewise.
34343         * posix/getopt_init.c: Likewise.
34344         * posix/wordexp.c: Likewise.
34345         * stdio-common/_itoa.c: Likewise.
34346         * stdio-common/printf_fphex.c: Likewise.
34347         * stdio-common/vfprintf.c: Likewise.
34348         * string/_strerror.c: Likewise.
34349         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
34350         * sysdeps/i386/i686/hp-timing.h: Likewise.
34351         * sysdeps/mach/_strerror.c: Likewise.
34352         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
34353         * sysdeps/mach/hurd/sethostid.c: Likewise.
34354         * sysdeps/mach/hurd/xmknodat.c: Likewise.
34355         * sysdeps/mach/xpg-strerror.c: Likewise.
34356         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
34357         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
34358         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
34359         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
34360         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
34361         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
34362         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
34363         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
34364         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
34365         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
34366         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
34367         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
34368         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
34369         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
34370         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
34371         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
34372         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
34373         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
34374         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
34375         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
34376         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
34377
34378         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
34379
34380         * stdio-common/_itoa.h: Moved to ...
34381         * sysdeps/generic/_itoa.h: Here.
34382
34383         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
34384
34385         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
34386         instead of "_itoa.h" and "_itowa.h".
34387         * stdio-common/vfprintf.: Likewise.
34388
34389 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
34390
34391         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
34392         <bits/wordsize.h>.
34393         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
34394         (__signbit): Likwise.
34395         (llrintf): Likwise.
34396         (llrint): Likwise.
34397
34398 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
34399
34400         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
34401         __WORDSIZE != 64.
34402
34403 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
34404
34405         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
34406         OVERFLOW_EXCEPTION_OK.
34407         * math/libm-test.inc ("Philosophy"): Update comment about
34408         exception testing.
34409         (OVERFLOW_EXCEPTION): Define.
34410         (OVERFLOW_EXCEPTION_OK): Likewise.
34411         (INVALID_EXCEPTION_OK): Renumber.
34412         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
34413         (IGNORE_ZERO_INF_SIGN): Likewise.
34414         (test_exceptions): Handle FE_OVERFLOW.
34415         (exp10_test): Expect overflow exceptions.
34416         (exp2_test): Likewise.
34417         (expm1_test): Likewise.
34418         (nextafter_test): Likewise.
34419         (pow_test): Likewise.
34420         (scalbn_test): Likewise.
34421         (scalbln_test): Likewise.
34422
34423 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34424
34425         * sysdeps/x86_64/bits/atomic.h
34426         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
34427         64bit integer.
34428         (atomic_exchange_acq): Likewise.
34429         (__arch_exchange_and_add_body): Likewise.
34430         (__arch_add_body): Likewise.
34431         (atomic_add_negative): Likewise.
34432         (atomic_add_zero): Likewise.
34433
34434 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34435
34436         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
34437         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
34438
34439 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34440
34441         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
34442         Check __x86_64__ instead of __WORDSIZE.
34443
34444 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34445
34446         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
34447
34448 2012-03-19  David S. Miller  <davem@davemloft.net>
34449
34450         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34451
34452         * sysdeps/sparc/fpu/fenv_private.h: New file.
34453         * sysdeps/sparc/fpu/math_private.h: Use it.
34454         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
34455         Remove.
34456         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
34457         (libc_feholdexcept_setroundl): Remove.
34458         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
34459         Remove.
34460         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
34461         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
34462
34463 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34464
34465         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
34466         int64_t instead of long int.
34467         (INSERT_WORDS64): Likwise.
34468
34469 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34470
34471         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
34472         _Unwind_GetCFA return to _Unwind_Ptr first.
34473
34474 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
34475
34476         [BZ #13629]
34477         * math/s_clog.c: Include <float.h>.
34478         (__clog): Scale large or subnormal inputs.
34479         * math/s_clogf.c: Likewise.
34480         * math/s_clogl.c: Likewise.
34481         * math/s_clog10.c: Include <float.h>.
34482         (M_LOG10_2): Define.
34483         (__clog10): Scale large or subnormal inputs.
34484         * math/s_clog10f.c: Likewise.
34485         * math/s_clog10l.c: Likewise.
34486         * math/libm-test.inc (clog_test): Add more tests.
34487         (clog10_test): Likewise.
34488         * sysdeps/i386/fpu/libm-test-ulps: Update.
34489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34490
34491         [BZ #11451]
34492         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
34493         x and y.
34494         * math/libm-test.inc (atan2_test): Add another test.
34495
34496         * Makerules (common-objdir-compile): Remove.
34497         * sysdeps/unix/Makefile (config-generated): Do not add
34498         $(unix-generated) to variable.
34499         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
34500         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
34501         Remove rule.
34502         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
34503         Likewise.
34504         [generic bits/local_lim.h] (before-compile): Do not append to
34505         variable.
34506         [generic bits/local_lim.h] (common-generated): Likewise.
34507         [generic sys/param.h] (before-compile): Do not append to variable.
34508         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
34509         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
34510         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
34511         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
34512         include.
34513         [generic sys/param.h] (sys/param.h-includes): Remove variable.
34514         [generic sys/param.h] (sys/param.h-includes): Remove rule.
34515         [generic sys/param.h] ($(addprefix
34516         $(common-objpfx),$(sys/param.h-includes))): Likewise.
34517         [generic sys/param.h] (common-generated): Do not append to
34518         variable.
34519         [generic sys/param.h] (sysdep_headers): Likewise.
34520         [generic bits/errno.h] (before-compile): Do not append to
34521         variable.
34522         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
34523         rule.
34524         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
34525         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
34526         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
34527         [generic bits/errno.h] (common-generated): Do not append to
34528         variable.
34529         [generic bits/ioctls.h] (before-compile): Do not append to
34530         variable.
34531         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
34532         rule.
34533         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
34534         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
34535         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
34536         rule.
34537         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
34538         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
34539         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
34540         [generic bits/ioctls.h] (common-generated): Do not append to
34541         variable.
34542         [generic sys/syscall.h] (syscall.h): Remove variable.
34543         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
34544         rule.
34545         [generic sys/syscall.h] (before-compile): Do not append to
34546         variable.
34547         [generic sys/syscall.h] (common-generated): Likewise.
34548         * sysdeps/unix/errnos-tmpl.c: Remove file.
34549         * sysdeps/unix/errnos.awk: Likewise.
34550         * sysdeps/unix/ioctls-tmpl.c: Likewise.
34551         * sysdeps/unix/ioctls.awk: Likewise.
34552         * sysdeps/unix/mk-local_lim.c: Likewise.
34553         * sysdeps/unix/snarf-ioctls: Likewise.
34554
34555 2012-03-19  Richard Henderson  <rth@twiddle.net>
34556
34557         * sysdeps/i386/fpu/fenv_private.h: New file.
34558         * sysdeps/i386/fpu/math_private.h: Use it.
34559         (math_opt_barrier, math_force_eval): Remove.
34560         (libc_feholdexcept_setround_53bit): Remove.
34561         (libc_feupdateenv_53bit): Remove.
34562         * sysdeps/x86_64/fpu/math_private.h: Likewise.
34563         (math_opt_barrier, math_force_eval): Remove.
34564         (libc_feholdexcept): Remove.
34565         (libc_feholdexcept_setround): Remove.
34566         (libc_fetestexcept, libc_fesetenv): Remove.
34567         (libc_feupdateenv_test): Remove.
34568         (libc_feupdateenv, libc_feholdsetround): Remove.
34569         (libc_feresetround): Remove.
34570
34571         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
34572         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
34573
34574         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
34575         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
34576         (libc_feupdateenv_testl): New.
34577         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
34578         (libc_feupdateenv_testf): New.
34579         (libc_feupdateenv): Use libc_feupdateenv_test.
34580         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
34581         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
34582
34583         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
34584         (libc_feholdsetroundf, libc_feholdsetroundl): New.
34585         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
34586         (libc_feresetround_noex): New.
34587         (libc_feresetround_noexf): New.
34588         (libc_feresetround_noexl): New.
34589         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
34590         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
34591         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
34592         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
34593         SET_RESTORE_ROUND.
34594         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
34595         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
34596         (__cos): Likewise.
34597         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
34598         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
34599         SET_RESTORE_ROUND_NOEX.
34600         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
34601         SET_RESTORE_ROUND_NOEXF.
34602         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
34603         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
34604         (libc_feholdsetroundf): New.
34605         (libc_feresetround, libc_feresetroundf): New.
34606
34607         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
34608         (libc_feholdexcept_setround_53bit): Convert from macro to function.
34609         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
34610
34611         * sysdeps/generic/math_private.h: Include <fenv.h>.
34612         (default_libc_feholdexcept): New.
34613         (default_libc_feholdexcept_setround): New.
34614         (default_libc_fesetenv, default_libc_feupdateenv): New.
34615         (libc_feholdexcept): Only define if undefined.
34616         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
34617         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
34618         (libc_feholdexcept_setroundl): Likewise.
34619         (libc_feholdexcept_setround_53bit): Likewise.
34620         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
34621         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
34622         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
34623         (libc_feupdateenv_53bit): Likewise.
34624         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
34625         (libc_feholdexcept): Convert from macro to inline function.
34626         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
34627         (libc_fesetenv, libc_feupdateenv): Likewise.
34628
34629         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
34630         not previously defined.
34631         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
34632         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
34633         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
34634         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
34635         * sysdeps/ieee754/flt-32/math_private.h: New file.
34636         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
34637         math_private.h below SET_FLOAT_WORD.
34638         (__isnan, __isinf_ns, __finite): Remove.
34639         (__isnanf, __isinf_nsf, __finitef): Remove.
34640
34641 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
34642
34643         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34644
34645 2012-03-17  David S. Miller  <davem@davemloft.net>
34646
34647         [BZ #6471]
34648         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
34649         for 2.16.
34650
34651 2012-03-16  David S. Miller  <davem@davemloft.net>
34652
34653         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
34654         warnings.
34655
34656         [BZ #6471]
34657         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
34658         properly.
34659         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
34660         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
34661         sysdep_routines when subdir is sysvipc.
34662         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
34663         __getshmlba helper.
34664
34665         * sysdeps/sparc/fpu/libm-test/ulps: Update.
34666
34667 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
34668
34669         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
34670         [__LP64__].
34671
34672 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
34673
34674         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
34675         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
34676         (__lround): Renamed to ...
34677         (__llround): This.  Replace long int with long long int.
34678         Define lround functions as aliases of llround functions.
34679         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
34680
34681 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
34682
34683         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
34684         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
34685         adresses to uintptr_t.  Replace "long int" and "unsigned long
34686         int" with "greg_t" on va_arg.
34687
34688 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
34689
34690         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
34691         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
34692
34693         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
34694         Move e_machine check before EI_CLASS check.  Handle x32
34695         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
34696         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
34697         SKIP_EM_IA_64 and include
34698         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
34699
34700         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
34701         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
34702         (add_system_dir): New macro.
34703
34704         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
34705         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
34706
34707 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
34708
34709         [BZ #2551]
34710         [BZ #2552]
34711         [BZ #2553]
34712         [BZ #2554]
34713         [BZ #2562]
34714         [BZ #2563]
34715         [BZ #2565]
34716         [BZ #2566]
34717         [BZ #2576]
34718         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
34719         (y0): Likewise.
34720         * math/w_j0f.c (j0f): Likewise.
34721         (y0f): Likewise.
34722         * math/w_j0l.c (__j0l): Likewise.
34723         (__y0l): Likewise.
34724         * math/w_j1.c (j1): Likewise.
34725         (y1): Likewise.
34726         * math/w_j1f.c (j1f): Likewise.
34727         (y1f): Likewise.
34728         * math/w_j1l.c (__j1l): Likewise.
34729         (__y1l): Likewise.
34730         * math/w_jn.c (jn): Likewise.
34731         (yn): Likewise.
34732         * math/w_jnf.c (jnf): Likewise.
34733         (ynf): Likewise.
34734         * math/w_jnl.c (__jnl): Likewise.
34735         (__ynl): Likewise.
34736         * math/libm-test.inc (j0_test): Add more tests.
34737         (j1_test): Likewise.
34738         (jn_test): Likewise.  Add trailing semicolon to existing test.
34739         (y0_test): Likewise.
34740         (y1_test): Likewise.
34741         * sysdeps/i386/fpu/libm-test-ulps: Update.
34742         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34743
34744         [BZ #13851]
34745         [BZ #13854]
34746         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
34747         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
34748         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
34749         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
34750         (__tanl): Set errno for infinite argument.
34751         * sysdeps/i386/fpu/mptan.c: Remove.
34752         * sysdeps/i386/fpu/s_tan.S: Likewise.
34753         * sysdeps/i386/fpu/s_tanl.S: Likewise.
34754         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
34755         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
34756         * math/libm-test.inc (tan_test): Add more tests and enable more
34757         tests for double and long double.
34758         * sysdeps/i386/fpu/libm-test-ulps: Update.
34759         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34760
34761 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
34762
34763         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
34764         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
34765
34766 2012-03-16  Roland McGrath  <roland@hack.frob.com>
34767
34768         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
34769         * configure.in: Use it for both main tree and add-ons.
34770         * configure: Regenerated.
34771
34772 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
34773
34774         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
34775
34776 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
34777
34778         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
34779         in comment.
34780
34781         [BZ #13851]
34782         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
34783         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
34784         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
34785         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
34786         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
34787         infinite argument.
34788         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
34789         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
34790         != 0 for prec == 2.
34791         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
34792         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
34793         * sysdeps/i386/fpu/s_cosl.S: Likewise.
34794         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
34795         * sysdeps/i386/fpu/s_sinl.S: Likewise.
34796         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
34797         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
34798         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
34799         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
34800         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
34801         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
34802         * math/libm-test.inc (cos_test): Add more tests and enable more
34803         tests for long double.
34804         (sin_test): Likewise.
34805         (sincos_test): Likewise.
34806         * sysdeps/i386/fpu/libm-test-ulps: Update.
34807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34808
34809 2012-03-16  David S. Miller  <davem@davemloft.net>
34810
34811         * sysdeps/sparc/fpu/math_private.h: New file.
34812
34813 2012-03-15  David S. Miller  <davem@davemloft.net>
34814
34815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
34816         file.
34817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
34818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
34819         file.
34820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
34821         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
34822         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
34823         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
34824         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
34825         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
34826         sysdep routines.
34827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
34828
34829         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
34830         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
34831
34832         * sysdeps/sparc/sparc-ifunc.h: New file.
34833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
34834         sparc-ifunc.h
34835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
34836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
34837         Likewise.
34838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
34839         Likewise.
34840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
34841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
34842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
34843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
34844         Likewise.
34845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
34846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
34847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
34848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
34849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
34850         Likewise.
34851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
34852         Likewise.
34853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
34854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
34855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
34856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
34857         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
34858         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
34859         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
34860         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
34861         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
34862         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
34863         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
34864         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
34865         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
34866         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
34867         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
34868         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
34869         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
34870         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
34871         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
34872         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
34873         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
34874         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
34875         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
34876         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
34877
34878 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
34879
34880         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
34881         scaling.
34882         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34883
34884 2012-03-15  Andreas Jaeger  <aj@suse.de>
34885
34886         [BZ #13852]
34887         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
34888         ieee754/flt-32 implementation for sin, cos and sincos.
34889         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
34890         * sysdeps/i386/fpu/s_cosf.S: Likewise.
34891         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
34892         * sysdeps/i386/fpu/s_sinf.S: Likewise.
34893         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
34894         ieee754/flt-32 implementation for tan.
34895
34896         * math/libm-test.inc (cos_test): Enable some large input tests for
34897         float as well
34898         (sin_test): Likewise.
34899         (sincos_test): Likewise.
34900         (tan_test): Add tests for large input.
34901
34902         * sysdeps/i386/fpu/libm-test-ulps: Update.
34903
34904 2012-03-15  Andreas Jaeger  <aj@suse.de>
34905
34906         [BZ #13658]
34907         * math/libm-test.inc (cos_test): Add more test cases.
34908         (sin_test): Likewise.
34909         (sincos_test): Likewise.
34910
34911 2012-03-15  Andreas Jaeger  <aj@suse.de>
34912
34913         [BZ #13837]
34914         * math/libm-test.inc (cos_test): Add a test case for large input
34915         value.
34916         (sin_test): Likewise.
34917         (sincos_test): Likewise.
34918
34919 2012-03-15  Andreas Jaeger  <aj@suse.de>
34920             Joseph Myers  <joseph@codesourcery.com>
34921
34922         [BZ #13658]
34923         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
34924         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
34925         * sysdeps/i386/fpu/branred.c: Likewise.
34926         * sysdeps/i386/fpu/dosincos.c: Likewise.
34927         * sysdeps/i386/fpu/mpa.c: Likewise.
34928         * sysdeps/i386/fpu/s_cos.S: Likewise.
34929         * sysdeps/i386/fpu/s_sin.S: Likewise.
34930         * sysdeps/i386/fpu/s_sincos.S: Likewise.
34931         * sysdeps/i386/fpu/sincos32.c: Likewise.
34932
34933         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
34934         Define.
34935         (libc_feupdateenv_53bit): Define.
34936         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
34937         Define.
34938         (libc_feupdateenv_53bit): Define.
34939
34940         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
34941         53 bit (without extend i386 double precision).
34942
34943         * math/libm-test.inc (sincos_test): Add tests for large input.
34944         (sin): Likewise.
34945         (cos): Likewise.
34946
34947         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
34948
34949 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
34950
34951         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34952
34953 2012-03-15  David S. Miller  <davem@davemloft.net>
34954
34955         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
34956         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
34957         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
34958         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
34959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
34960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
34961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
34962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
34963         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
34964         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
34965         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
34966         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
34967         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
34968         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
34969         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
34970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
34971         file.
34972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
34973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
34974         file.
34975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
34976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
34977         file.
34978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
34979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
34980         file.
34981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
34982         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
34983         fmin/fmax sysdep routines.
34984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
34985
34986 2012-03-14  David S. Miller  <davem@davemloft.net>
34987
34988         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
34989         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
34990         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
34991         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
34992         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
34993         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
34994         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
34995         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
34996         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
34997         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
34998         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
34999         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
35000         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
35001         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
35002         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
35003         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
35004         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
35005         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
35006         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
35007         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
35008         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
35009         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
35010         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
35011         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
35012         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
35013         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
35014         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
35015         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
35016         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
35017         routines.
35018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
35019         file.
35020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
35021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
35022         file.
35023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
35024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
35025         file.
35026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
35027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
35028         file.
35029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
35030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
35031         file.
35032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
35033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
35034         file.
35035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
35036         file.
35037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
35038         file.
35039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
35040         file.
35041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
35042         New file.
35043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
35044         file.
35045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
35046         file.
35047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
35048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
35049         file.
35050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
35051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
35052         file.
35053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
35054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
35055         file.
35056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
35057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
35058         VIS3 routines.
35059
35060         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
35061         New file.
35062
35063         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35064
35065         * sysdeps/sparc/configure.in: New file.
35066         * sysdeps/sparc/configure: Generate.
35067         * configure.in (libc_cv_sparc_as_vis3): Substitute.
35068         * configure: Regenerate.
35069         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
35070         * config.make.in (have-as-vis3): New.
35071         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
35072         available use -Av9d instead of -Av9a.
35073         * sysdeps/sparc/sparc64/Makefile: Likewise.
35074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
35075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
35076         New file.
35077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
35078         file.
35079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
35080         New file.
35081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
35082         file.
35083         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
35084         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
35085         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
35086         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
35087         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
35088
35089         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
35090         fzeros/fnegs to load 0x80000000 into a float register instead of
35091         using the stack.
35092         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
35093
35094 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
35095
35096         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
35097         bits/syscall.h.
35098         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
35099         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
35100         ($(inst_includedir)/bits/syscall.h): Remove rule.
35101         ($(objpfx)bits/syscall.d): Include instead of
35102         $(objpfx)syscall-list.d.
35103         (generated): Change syscall-list.h and syscall-list.d to
35104         bits/syscall.h and bits/syscall.d.
35105
35106 2012-03-14  Roland McGrath  <roland@hack.frob.com>
35107
35108         [BZ #13846]
35109         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
35110
35111 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
35112
35113         [BZ #13841]
35114         * math/s_csqrt.c: Include <float.h>.
35115         (__csqrt): Scale large or subnormal inputs.
35116         * math/s_csqrtf.c: Likewise.
35117         * math/s_csqrtl.c: Likewise.
35118         * math/libm-test.inc (csqrt_test): Add more tests.
35119         * sysdeps/i386/fpu/libm-test-ulps: Update.
35120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35121
35122         [BZ #13840]
35123         * math/libm-test.inc (hypot_test): Add more tests.
35124
35125 2012-03-13  David S. Miller  <davem@davemloft.net>
35126
35127         [BZ #13840]
35128         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
35129         double-precision for the calculation instead of scaling.
35130
35131 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
35132
35133         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
35134         manipulate bits before adding and subtracting TWO52[sx].
35135         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
35136         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
35137         Likewise.
35138         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
35139
35140 2012-03-13  David S. Miller  <davem@davemloft.net>
35141
35142         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
35143         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
35144         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
35145         rtld-global-offsets.h
35146         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
35147
35148         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
35149         large parameters.
35150
35151         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
35152
35153         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
35154         'err' in the ifdef scope in which it is actually used.
35155
35156         * nss/nss_db/db-init.c: Include string.h
35157
35158 2012-03-12  David S. Miller  <davem@davemloft.net>
35159
35160         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
35161         masking out of the most significant byte of random value used.
35162         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35163         Fix coding style in previous change.
35164
35165         * sysdeps/unix/sysv/linux/kernel-features.h
35166         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
35167         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
35168         expression.
35169         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
35170         later.
35171
35172 2012-03-11  David S. Miller  <davem@davemloft.net>
35173
35174         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
35175         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
35176         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
35177         for 'resultvar' otherwise things get truncated on 64-bit.
35178
35179         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35180         Fix masking out of the most significant byte of random value used.
35181
35182         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35183
35184 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
35185
35186         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35187
35188 2012-03-09  David S. Miller  <davem@davemloft.net>
35189
35190         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
35191         variables with appropriate CPP guards.
35192         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
35193         from the frame pointer, not the stack pointer.  Correct layout
35194         comments.  Fix test on resulting framesize and the management of
35195         the outregs buffer for pltexit.  Preserve floating point return
35196         values across _dl_call_pltexit call.
35197         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
35198         framesize and the management of the outregs buffer for pltexit.
35199         Preserve floating point return values across _dl_call_pltexit
35200         call.
35201         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
35202         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
35203         (la_sparc64_gnu_pltexit): New functions.
35204         (print_exit): Fix format string for return register value.
35205
35206 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
35207
35208         * sunrpc/Makefile (others): Add rpcgen.
35209         ($(objpfx)rpcgen): Remove special build rule and dependency on
35210         libc.
35211         * sunrpc/rpcgen.c: New file.
35212
35213 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
35214
35215         [BZ #13673]
35216         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
35217         * stdio-common/bug-vfprintf-nargs.c: Likewise.
35218         * sysdeps/i386/crti.S: Likewise.
35219         * sysdeps/i386/crtn.S: Likewise.
35220         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
35221         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
35222         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
35223         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
35224         * sysdeps/sh/crti.S: Likewise.
35225         * sysdeps/sh/crtn.S: Likewise.
35226         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
35227
35228         [BZ #13673]
35229         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
35230         with URL.
35231         * locale/programs/locfile-kw.gperf: Likewise.
35232         * locale/programs/charmap-kw.h: Regenerated.
35233         * locale/programs/locfile-kw.h: Likewise.
35234
35235         [BZ #13673]
35236         * intl/plural.y: Replace FSF snail mail address with URL.
35237         * intl/plural.c: Regenerated.
35238
35239 2012-03-09  Richard Henderson  <rth@twiddle.net>
35240
35241         * include/math_private.h: Remove file.
35242         * math/math_private.h: Move file ...
35243         * sysdeps/generic/math_private.h: ... here.
35244
35245         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
35246         * sysdeps/powerpc/fpu/math_private.h: Likewise.
35247         * sysdeps/x86_64/fpu/math_private.h: Likewise.
35248
35249         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
35250         and <math_private.h>.
35251         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
35252         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
35253         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
35254         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
35255         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
35256         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
35257         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
35258         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
35259         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
35260         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
35261         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
35262         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
35263         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
35264         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
35265         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
35266         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
35267         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
35268         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
35269         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
35270         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
35271         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
35272         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
35273         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
35274         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
35275         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
35276         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
35277         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
35278         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
35279         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
35280         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
35281         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
35282         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
35283         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
35284         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
35285         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
35286         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
35287         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
35288         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
35289         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
35290         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
35291         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
35292         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
35293         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
35294         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
35295         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
35296         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
35297         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
35298         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
35299         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
35300         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
35301         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
35302         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
35303         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
35304         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
35305         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
35306         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
35307         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
35308         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
35309         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
35310         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
35311         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
35312         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
35313         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
35314         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
35315         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
35316         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
35317         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
35318         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
35319         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
35320         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
35321         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
35322         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
35323         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
35324         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
35325         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
35326         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
35327         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
35328         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
35329         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
35330         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
35331         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
35332         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
35333         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
35334         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
35335         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
35336         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
35337         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
35338         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
35339         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
35340         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
35341         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
35342         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
35343         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
35344         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
35345         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
35346         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
35347         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
35348         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
35349         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
35350         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
35351         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
35352         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
35353         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
35354         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
35355         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
35356         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
35357         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
35358         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
35359         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
35360         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
35361         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
35362         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
35363         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
35364         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
35365         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
35366         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
35367         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
35368         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
35369         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
35370         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
35371         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
35372         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
35373         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
35374         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
35375         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
35376         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
35377         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
35378         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
35379         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
35380         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
35381         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
35382         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
35383         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
35384         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
35385         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
35386         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
35387         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
35388         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
35389         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
35390         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
35391         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
35392         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
35393         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
35394         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
35395         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
35396         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
35397         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
35398         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
35399         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
35400         * sysdeps/ieee754/k_standard.c: Likewise.
35401         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
35402         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
35403         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
35404         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
35405         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
35406         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
35407         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
35408         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
35409         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
35410         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
35411         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
35412         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
35413         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
35414         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
35415         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
35416         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
35417         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
35418         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
35419         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
35420         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
35421         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
35422         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
35423         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
35424         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
35425         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
35426         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
35427         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
35428         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
35429         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
35430         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
35431         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
35432         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
35433         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
35434         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
35435         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
35436         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
35437         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
35438         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
35439         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
35440         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
35441         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
35442         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
35443         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
35444         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
35445         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
35446         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
35447         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
35448         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
35449         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
35450         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
35451         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
35452         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
35453         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
35454         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
35455         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
35456         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
35457         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
35458         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
35459         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
35460         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
35461         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
35462         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
35463         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
35464         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
35465         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
35466         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
35467         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
35468         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
35469         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
35470         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
35471         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
35472         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
35473         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
35474         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
35475         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
35476         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
35477         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
35478         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
35479         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
35480         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
35481         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
35482         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
35483         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
35484         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
35485         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
35486         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
35487         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
35488         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
35489         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
35490         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
35491         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
35492         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
35493         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
35494         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
35495         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
35496         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
35497         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
35498         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
35499         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
35500         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
35501         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
35502         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
35503         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
35504         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
35505         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
35506         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
35507         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
35508         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
35509         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
35510         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
35511         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
35512         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
35513         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
35514         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
35515         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
35516         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
35517         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
35518         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
35519         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
35520         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
35521         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
35522         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
35523         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
35524         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
35525         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
35526         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
35527         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
35528         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
35529         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
35530         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
35531         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
35532         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
35533         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
35534         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
35535         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
35536         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
35537         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
35538         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
35539         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
35540         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
35541         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
35542         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
35543         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
35544         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
35545         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
35546         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
35547         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
35548         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
35549         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
35550         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
35551         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
35552         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
35553         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
35554         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
35555         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
35556         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
35557         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
35558         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
35559         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
35560         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
35561         * sysdeps/ieee754/s_lib_version.c: Likewise.
35562         * sysdeps/ieee754/s_matherr.c: Likewise.
35563         * sysdeps/ieee754/s_signgam.c: Likewise.
35564         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
35565         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
35566         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
35567         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
35568         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
35569         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
35570         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
35571         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
35572         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
35573         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
35574         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
35575         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
35576         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
35577         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
35578         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
35579         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
35580         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
35581         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
35582         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
35583         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
35584         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
35585
35586 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
35587
35588         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
35589         * sunrpc/rpc_main.c: Likewise.
35590         * sunrpc/rpc_svcout.c: Likewise.
35591
35592 2012-03-09  David S. Miller  <davem@davemloft.net>
35593
35594         * include/math_private.h: New file.
35595
35596 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
35597
35598         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
35599         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
35600         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
35601         from <bits/socket_type.h>.
35602         (enum __socket_type): Don't define here.
35603         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
35604         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
35605         bits/socket_type.h.
35606
35607         [BZ #13566]
35608         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
35609         checking __USE_GNU.
35610
35611         * Makerules ($(inst_includedir)/%.h): New rule.
35612         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
35613         (install-others): Remove variable setting.
35614         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
35615
35616 2012-03-08  Richard Henderson  <rth@twiddle.net>
35617
35618         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
35619         from macro to inline function; merge with the
35620         !__LIBC_INTERNAL_MATH_INLINES version.
35621         (__ieee754_sqrtf): Likewise.
35622
35623         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
35624         to inline function.
35625         (__rintf, __floor, __floorf): Likewise.
35626
35627         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
35628         macro to inline function.
35629         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
35630
35631         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
35632         not <math/math_private.h>.
35633
35634 2012-03-08  David S. Miller  <davem@davemloft.net>
35635
35636         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
35637         copyright year.
35638         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
35639
35640 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
35641
35642         * resolv/gai_misc.c (handle_requests): Fix struct timespec
35643         normalization.
35644         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
35645         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
35646
35647 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
35648
35649         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
35650         be defined individually, they must be defined as a block.  Define
35651         S for printing a string instead of hidint the different by using a
35652         macro for adding the 'l'.
35653         * stdio-common/tst-fphex-wide.c: Adjust.
35654
35655 2012-03-07  Marek Polacek  <polacek@redhat.com>
35656
35657         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
35658
35659 2012-03-08  Marek Polacek  <polacek@redhat.com>
35660
35661         [BZ #13806]
35662         * stdio-common/Makefile (tests): Add tst-fphex-wide.
35663         * stdio-common/tst-fphex.c: Define a few macros to make the
35664         test reusable.  Use them.
35665         * stdio-common/tst-fphex-wide.c: New file.
35666
35667 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
35668
35669         [BZ #6911]
35670         * manual/macros.texi (gnusystems): New macro.
35671         (nongnusystems): Likewise.
35672         (gnulinuxhurdsystems): Likewise.
35673         (gnuhurdsystems): Likewise..
35674         (gnulinuxsystems): Likewise.
35675         * manual/charset.texi: Use new macros or @theglibc{} to refer to
35676         variants of the GNU system, not "GNU system".
35677         * manual/conf.texi: Likewise.
35678         * manual/errno.texi: Likewise.  Update example of errno macro
35679         expansion.
35680         * manual/filesys.texi: Likewise.
35681         (getumask): Document as specific to GNU/Hurd.
35682         * manual/install.texi: Likewise.  Reword some references to
35683         GNU/Linux.
35684         * manual/intro.texi: Likewise.
35685         * manual/io.texi: Likewise.
35686         (File Name Portability): Detail which constraints are inapplicable
35687         to all GNU systems and which are only inapplicable to GNU/Hurd.
35688         * manual/job.texi: Likewise.
35689         * manual/llio.texi: Likewise.
35690         (O_NOCTTY): Document as present on GNU/Linux.
35691         * manual/maint.texi: Likewise.
35692         * manual/memory.texi: Likewise.
35693         * manual/pattern.texi: Likewise.
35694         * manual/pipe.texi: Likewise.
35695         * manual/process.texi: Likewise.
35696         * manual/resource.texi: Likewise.
35697         (RUSAGE_CHILDREN): Remove statement about specifying a particular
35698         child on GNU/Hurd.
35699         * manual/setjmp.texi: Likewise.
35700         * manual/signal.texi: Likewise.
35701         * manual/startup.texi: Likewise.
35702         * manual/stdio.texi: Likewise.
35703         * manual/terminal.texi: Likewise.
35704         (ONLCR): Document as POSIX.
35705         (OXTABS): Document availability on GNU/Linux as XTABS.
35706         (ONOEOT): Document availability separately from other bits.
35707         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
35708         * manual/time.texi: Likewise.
35709         * manual/users.texi: Likewise.
35710         * INSTALL: Regenerated.
35711         * sysdeps/gnu/errlist.c: Regenerated.
35712
35713         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
35714         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
35715         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
35716         puts.
35717         * configure: Regenerated.
35718
35719 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
35720
35721         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
35722         default includes instead of AC_HEADER_CHECK.
35723         * sysdeps/i386/configure: Regenerated.
35724
35725         [BZ #10716]
35726         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
35727         * math/s_cacoshf.c (__cacoshf): Likewise.
35728         * math/s_cacoshl.c (__cacoshl): Likewise.
35729         * math/s_casinh.c (__casinh): Set signs of result from argument.
35730         * math/s_casinhf.c (__casinhf): Likewise.
35731         * math/s_casinhl.c (__casinhl): Likewise.
35732         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
35733         (casinh_test): Add more tests.
35734         * sysdeps/i386/fpu/libm-test-ulps: Update.
35735         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35736
35737 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
35738
35739         * po/zh_TW.po: Update from translation team.
35740
35741         * login/Makefile (distribute): Remove variable.
35742         * catgets/Makefile: Likewise.
35743         * mach/Makefile: Likewise.
35744         * malloc/Makefile: Likewise.
35745         * misc/Makefile: Likewise.
35746         * iconv/Makefile: Likewise.
35747         * nscd/Makefile: Likewise.
35748         * hurd/Makefile: Likewise.
35749         * manual/Makefile: Likewise.
35750         * locale/Makefile: Likewise.
35751         * intl/Makefile: Likewise.
35752         * conform/Makefile: Likewise.
35753         * nss/Makefile: Likewise.
35754         * time/Makefile: Likewise.
35755         * soft-fp/Makefile: Likewise.
35756         * dirent/Makefile: Likewise.
35757         * gmon/Makefile: Likewise.
35758         * po/Makefile: Likewise.
35759         * rt/Makefile: Likewise.
35760         * socket/Makefile: Likewise.
35761         * math/Makefile: Likewise.
35762         * signal/Makefile: Likewise.
35763         * debug/Makefile: Likewise.
35764         * elf/Makefile: Likewise.
35765         * timezone/Makefile: Likewise.
35766         * stdlib/Makefile: Likewise.
35767         * iconvdata/Makefile: Likewise.
35768         * sunrpc/Makefile: Likewise.
35769         * io/Makefile: Likewise.
35770         * argp/Makefile: Likewise.
35771         * inet/Makefile: Likewise.
35772         * hesiod/Makefile: Likewise.
35773         * grp/Makefile: Likewise.
35774         * csu/Makefile: Likewise.
35775         * wctype/Makefile: Likewise.
35776         * crypt/Makefile: Likewise.
35777         * libio/Makefile: Likewise.
35778         * string/Makefile: Likewise.
35779         * nis/Makefile: Likewise.
35780         * resolv/Makefile: Likewise.
35781         * stdio-common/Makefile: Likewise.
35782         * wcsmbs/Makefile: Likewise.
35783         * dlfcn/Makefile: Likewise.
35784         * posix/Makefile: Likewise.
35785
35786         [BZ #6959]
35787         * timezone/Makefile: Don't install timezone files, just the programs
35788         and scripts.
35789
35790 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
35791
35792         * nss/databases.def: Add missing gshadow entry.
35793
35794         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
35795
35796 2012-03-06  Marek Polacek  <polacek@redhat.com>
35797
35798         [BZ #13726]
35799         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
35800         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
35801         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
35802         * stdio-common/tst-long-dbl-fphex.c: New file.
35803
35804 2012-03-06  David S. Miller  <davem@davemloft.net>
35805
35806         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
35807         (set_obp_int): New function.
35808         (get_obp_int): New function.
35809         (__get_clockfreq_via_dev_openprom): Likewise.
35810         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
35811         Avoid unused variable warnings on 'val' and use builtin_expect.
35812         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
35813         __builtin_expect.
35814         (INLINE_CLONE_SYSCALL): Likewise.
35815
35816 2012-03-05  David S. Miller  <davem@davemloft.net>
35817
35818         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35819
35820 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
35821
35822         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35823
35824         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
35825         only for |x| >= 40.
35826         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
35827
35828 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
35829
35830         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
35831         Replace gettimeofday with __vdso_gettimeofday.
35832
35833         * sysdeps/unix/sysv/linux/x86_64/init-first.c
35834         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
35835         __vdso_clock_gettime and __vdso_getcpu.
35836
35837         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
35838         time with __vdso_time.
35839
35840 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
35841
35842         * manual/lang.texi (size_t): Note types to which size_t may be
35843         equivalent with the GNU C Library, but do not describe when
35844         differences between them are significant.
35845
35846 2012-03-05  Andreas Jaeger  <aj@suse.de>
35847
35848         * sysdeps/i386/fpu/libm-test-ulps: Update.
35849
35850 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
35851
35852         [BZ #3976]
35853         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
35854         (__ieee754_pow): Save and restore rounding mode and use
35855         round-to-nearest for main computations.
35856         * math/libm-test.inc (pow_test_tonearest): New function.
35857         (pow_test_towardzero): Likewise.
35858         (pow_test_downward): Likewise.
35859         (pow_test_upward): Likewise.
35860         (main): Call the new functions.
35861         * sysdeps/i386/fpu/libm-test-ulps: Update.
35862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35863
35864         [BZ #3976]
35865         * math/libm-test.inc (cosh_test_tonearest): New function.
35866         (cosh_test_towardzero): Likewise.
35867         (cosh_test_downward): Likewise.
35868         (cosh_test_upward): Likewise.
35869         (sinh_test_tonearest): Likewise.
35870         (sinh_test_towardzero): Likewise.
35871         (sinh_test_downward): Likewise.
35872         (sinh_test_upward): Likewise.
35873         (main): Call the new functions.
35874         * sysdeps/i386/fpu/libm-test-ulps: Update.
35875         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35876
35877 2012-03-05  Tom de Vries  <tom@codesourcery.com>
35878
35879         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
35880         default stack guard is set in last bytes.
35881         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
35882
35883 2012-03-05  Kees Cook  <keescook@chromium.org>
35884
35885         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
35886
35887         [BZ #13656]
35888         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
35889         possibly allocate from heap instead of stack.
35890         * stdio-common/bug-vfprintf-nargs.c: New file.
35891         * stdio-common/Makefile (tests): Add nargs overflow test.
35892
35893 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
35894
35895         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35896
35897 2012-03-03  Marek Polacek  <polacek@redhat.com>
35898
35899         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
35900         * math/math_private.h: Likewise.
35901         * stdlib/tst-strtod.c: Likewise.
35902         * sysdeps/i386/i486/bits/atomic.h: Likewise.
35903         * sysdeps/x86_64/bits/atomic.h: Likewise.
35904
35905 2012-03-02  David S. Miller  <davem@davemloft.net>
35906
35907         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
35908         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
35909         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
35910         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
35911         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
35912         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
35913         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
35914         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
35915
35916 2012-03-02  Roland McGrath  <roland@hack.frob.com>
35917
35918         [BZ #13792]
35919         * manual/examples/README: New file, says the example source files
35920         can be used under GPL>=2.
35921         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
35922         line containing just "*/".
35923         * manual/examples/add.c: Add copyright header (GPL>=2).
35924         * manual/examples/argp-ex1.c: Likewise.
35925         * manual/examples/argp-ex2.c: Likewise.
35926         * manual/examples/argp-ex3.c: Likewise.
35927         * manual/examples/argp-ex4.c: Likewise.
35928         * manual/examples/atexit.c: Likewise.
35929         * manual/examples/db.c: Likewise.
35930         * manual/examples/dir.c: Likewise.
35931         * manual/examples/dir2.c: Likewise.
35932         * manual/examples/execinfo.c: Likewise.
35933         * manual/examples/filecli.c: Likewise.
35934         * manual/examples/filesrv.c: Likewise.
35935         * manual/examples/fmtmsgexpl.c: Likewise.
35936         * manual/examples/genpass.c: Likewise.
35937         * manual/examples/inetcli.c: Likewise.
35938         * manual/examples/inetsrv.c: Likewise.
35939         * manual/examples/isockad.c: Likewise.
35940         * manual/examples/longopt.c: Likewise.
35941         * manual/examples/memopen.c: Likewise.
35942         * manual/examples/memstrm.c: Likewise.
35943         * manual/examples/mkfsock.c: Likewise.
35944         * manual/examples/mkisock.c: Likewise.
35945         * manual/examples/mygetpass.c: Likewise.
35946         * manual/examples/pipe.c: Likewise.
35947         * manual/examples/popen.c: Likewise.
35948         * manual/examples/rprintf.c: Likewise.
35949         * manual/examples/search.c: Likewise.
35950         * manual/examples/select.c: Likewise.
35951         * manual/examples/setjmp.c: Likewise.
35952         * manual/examples/sigh1.c: Likewise.
35953         * manual/examples/sigusr.c: Likewise.
35954         * manual/examples/stpcpy.c: Likewise.
35955         * manual/examples/strdupa.c: Likewise.
35956         * manual/examples/strftim.c: Likewise.
35957         * manual/examples/strncat.c: Likewise.
35958         * manual/examples/subopt.c: Likewise.
35959         * manual/examples/swapcontext.c: Likewise.
35960         * manual/examples/termios.c: Likewise.
35961         * manual/examples/testopt.c: Likewise.
35962         * manual/examples/testpass.c: Likewise.
35963         * manual/examples/timeval_subtract.c: Likewise.
35964
35965         [BZ #13792]
35966         * manual/time.texi (Elapsed Time): Move timeval_subtract example
35967         function to ...
35968         * manual/timeval_subtract.c.texi: ... here, new file.
35969
35970 2012-03-02  David S. Miller  <davem@davemloft.net>
35971
35972         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
35973
35974 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
35975
35976         [BZ #3976]
35977         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
35978         (__sin): Save and restore rounding mode and use round-to-nearest
35979         for all computations.
35980         (__cos): Save and restore rounding mode and use round-to-nearest
35981         for all computations.
35982         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
35983         <fenv.h>.
35984         (tan): Save and restore rounding mode and use round-to-nearest for
35985         all computations.
35986         * math/libm-test.inc (cos_test_tonearest): New function.
35987         (cos_test_towardzero): Likewise.
35988         (cos_test_downward): Likewise.
35989         (cos_test_upward): Likewise.
35990         (sin_test_tonearest): Likewise.
35991         (sin_test_towardzero): Likewise.
35992         (sin_test_downward): Likewise.
35993         (sin_test_upward): Likewise.
35994         (tan_test_tonearest): Likewise.
35995         (tan_test_towardzero): Likewise.
35996         (tan_test_downward): Likewise.
35997         (tan_test_upward): Likewise.
35998         (main): Call the new functions.
35999         * sysdeps/i386/fpu/libm-test-ulps: Update.
36000         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36001
36002         [BZ #10135]
36003         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
36004         small n, then large n, before computing and testing k+n.
36005         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
36006         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
36007         Likewise.
36008         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
36009         Likewise.
36010         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
36011         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
36012         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
36013         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
36014         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
36015         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
36016         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
36017         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
36018         * math/libm-test.inc (scalbn_test): Add more tests.
36019         (scalbln_test): Likewise.
36020
36021         * manual/filesys.texi (mode_t): Describe constraints on size and
36022         signedness, not exact equivalence to a particular type.
36023         (ino_t): Likewise.
36024         (ino64_t): Likewise.
36025         (dev_t): Likewise.
36026         (nlink_t): Likewise.
36027         (blkcnt_t): Likewise.
36028         (blkcnt64_t): Likewise.
36029         * manual/llio.texi (off_t): Likewise.
36030
36031         [BZ #3976]
36032         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
36033         (__ieee754_exp): Save and restore rounding mode and use
36034         round-to-nearest for all computations.
36035         * math/libm-test.inc (exp_test_tonearest): New function.
36036         (exp_test_towardzero): Likewise.
36037         (exp_test_downward): Likewise.
36038         (exp_test_upward): Likewise.
36039         (main): Call the new functions.
36040         * sysdeps/i386/fpu/libm-test-ulps: Update.
36041         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36042
36043 2012-03-01  Chris Demetriou  <cgd@google.com>
36044
36045         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
36046         have predictable order.
36047
36048 2012-03-01  David S. Miller  <davem@davemloft.net>
36049
36050         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
36051
36052         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
36053         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
36054         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
36055         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
36056
36057         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
36058         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
36059         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
36060         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
36061         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
36062         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
36063         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
36064         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
36065         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
36066
36067         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36068
36069         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
36070         * sysdeps/sparc/fpu/libm-test-ulps: to here.
36071         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
36072
36073         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
36074         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
36075         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
36076         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
36077         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
36078         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
36079         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
36080         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
36081         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
36082         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
36083         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
36084         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
36085         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
36086         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
36087         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
36088         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
36089         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
36090         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
36091         * sysdeps/sparc/elf/configure: Regenerated.
36092
36093 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
36094
36095         * configure.in (AS, LD): Require binutils 2.20 or later.
36096         * configure: Regenerated.
36097         * manual/install.texi (Tools for Compilation): Give binutils 2.20
36098         as required minimum version.
36099         * INSTALL: Regenerated.
36100
36101         [BZ #2541]
36102         [BZ #4108]
36103         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
36104         before squaring exponent.
36105         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
36106         bottom long double and 27 bits of top long double before squaring
36107         exponent.
36108         * math/libm-test.inc (erfc_test): Add more tests.
36109         * sysdeps/i386/fpu/libm-test-ulps: Update.
36110         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36112
36113 2012-03-01  Kai Tietz  <ktietz@redhat.com>
36114
36115         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
36116         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
36117         containing bit-fields.
36118         * soft-fp/extended.h (_FP_UNION_E): Likewise.
36119         * soft-fp/single.h (_FP_UNION_S): Likewise.
36120         * soft-fp/double.h (_FP_UNION_D): Likewise.
36121
36122 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
36123
36124         [BZ #13786]
36125         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
36126         not include ../strcmp.S.
36127         [USE_AS_STRNCASECMP_L]: Likewise.
36128         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
36129         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
36130         * sysdeps/i386/i686/multiarch/strncase_l-c.c
36131         (__strncasecmp_l_ia32): Define as alias to
36132         __strncasecmp_l_nonascii.
36133
36134         [BZ #5794]
36135         * math/libm-test.inc (expm1_test): Add test for bug 5794.
36136         * sysdeps/i386/fpu/libm-test-ulps: Update.
36137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36138
36139         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
36140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36141
36142 2012-02-29  Jeff Law  <law@redhat.com>
36143
36144         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
36145         out of bounds read.
36146
36147 2012-02-29  Marek Polacek  <polacek@redhat.com>
36148
36149         [BZ #13706]
36150         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
36151         * elf/Makefile: Add rules to run tst-unused-dep.out.
36152
36153 2012-02-28  David S. Miller  <davem@davemloft.net>
36154
36155         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
36156         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
36157         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
36158         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
36159         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
36160         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
36161
36162 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
36163
36164         * math/libm-test.inc (llround_test): Move one test from
36165         lround_test.  Use TEST_f_L in moved test.
36166         (lround_test): Move misplaced test to llround_test.  Add testcase
36167         from bug 2561.
36168
36169 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
36170
36171         * sysdeps/x86_64/fpu/e_expf.S: New file.
36172         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
36173
36174 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
36175
36176         [BZ #13637]
36177         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
36178         of remain_len that may cause incomplete multi-byte character and
36179         false match.
36180         * posix/bug-regex33.c: New file.
36181         * posix/Makefile (tests): Add bug-regex33.
36182
36183 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
36184
36185         * manual/macros.texi: New file.
36186         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
36187         * manual/libc.texinfo: Include macros.texi.
36188         * manual/creatute.texi: Likewise.
36189         * manual/install.texi: Likewise.
36190         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
36191         @glibcadj{} in references to the GNU C Library.
36192         * manual/charset.texi: Likewise.
36193         * manual/conf.texi: Likewise.
36194         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
36195         when not using those macros.
36196         * manual/creature.texi: Likewise.
36197         * manual/crypt.texi: Likewise.
36198         * manual/errno.texi: Likewise.
36199         * manual/filesys.texi: Likewise.
36200         * manual/header.texi: Likewise.
36201         * manual/install.texi: Likewise.
36202         * manual/intro.texi: Likewise.
36203         * manual/io.texi: Likewise.
36204         * manual/job.texi: Likewise.
36205         * manual/lang.texi: Likewise.
36206         * manual/libc.texiinfo: Likewise.
36207         * manual/llio.texi: Likewise.
36208         * manual/locale.texi: Likewise.
36209         * manual/maint.texi: Likewise.
36210         * manual/math.texi: Likewise.
36211         * manual/memory.texi: Likewise.
36212         * manual/message.texi: Likewise.
36213         * manual/nss.texi: Likewise.
36214         * manual/pattern.texi: Likewise.
36215         * manual/process.texi: Likewise.
36216         * manual/resource.texi: Likewise.
36217         * manual/search.texi: Likewise.
36218         * manual/setjmp.texi: Likewise.
36219         * manual/signal.texi: Likewise.
36220         * manual/socket.texi: Likewise.
36221         * manual/startup.texi: Likewise.
36222         * manual/stdio.texi: Likewise.
36223         * manual/string.texi: Likewise.
36224         * manual/sysinfo.texi: Likewise.
36225         * manual/syslog.texi: Likewise.
36226         * manual/terminal.texi: Likewise.
36227         * manual/time.texi: Likewise.
36228         * manual/users.texi: Likewise.
36229         * INSTALL: Regenerated.
36230         * NOTES: Regenerated.
36231         * sysdeps/gnu/errlist.c: Regenerated.
36232
36233 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
36234
36235         * include/dirent.h: Include <dirstream.h> before
36236         <dirent/dirent.h>.
36237
36238 2012-02-28  David S. Miller  <davem@davemloft.net>
36239
36240         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
36241         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
36242         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
36243         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
36244
36245 2012-02-27  David S. Miller  <davem@davemloft.net>
36246
36247         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
36248         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
36249         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
36250         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
36251
36252         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
36253         frame pointer instead of stack pointer relative arg slot.
36254         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
36255         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
36256         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
36257
36258 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
36259
36260         [BZ #3992]
36261         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
36262
36263 2012-02-27  David S. Miller  <davem@davemloft.net>
36264
36265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
36266         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
36267         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
36268         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
36269         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
36270         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
36271         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
36272         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
36273
36274 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
36275
36276         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
36277         later.  Allow versions 5-9.
36278         * configure: Regenerated.
36279         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
36280         required minimum version and 4.6 as recommended version.  Do not
36281         mention bugs in GCC 2.7 and 2.8.
36282         * INSTALL: Regenerated.
36283
36284 2012-02-27  David S. Miller  <davem@davemloft.net>
36285
36286         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
36287         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
36288         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
36289         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
36290         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
36291         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
36292         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
36293         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
36294
36295         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
36296         manipulate bits before adding and subtracting TWO112[sx].
36297         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
36298
36299 2012-02-27  Roland McGrath  <roland@hack.frob.com>
36300
36301         [BZ #13775]
36302         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
36303         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
36304         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
36305         being in POSIX, because they are in 1003.1-2008.
36306
36307         * rt/tst-aio.c: Include <fcntl.h>.
36308         * rt/tst-aio7.c: Likewise.
36309         * rt/tst-aio64.c: Likewise.
36310
36311         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
36312
36313 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
36314
36315         * manual/install.texi (--with-headers): Describe headers as
36316         interface headers, not private headers.
36317         (Specific advice for GNU/Linux systems): Describe use of headers
36318         from "make headers_install", not private headers from older
36319         kernels.
36320         * INSTALL: Regenerated.
36321         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
36322         Change to 2.6.19.
36323         * sysdeps/unix/sysv/linux/configure: Regenerated.
36324
36325         * manual/llio.texi (fclean): Remove documentation.
36326
36327         * manual/Makefile (libc-texi-generated): New variable.  Include
36328         version.texi.
36329         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
36330         $(libc-texi-generated), not duplicated list of files.
36331         (version.texi, stamp-version): New rules.
36332         (realclean): Remove $(libc-texi-generated), not individual files
36333         from that list.  Do not remove dir-add.texinfo.
36334         * manual/libc.texinfo: Comment out uses of edition numbers and
36335         references to printed manual.  Remove last-updated dates.
36336         (EDITION): Comment out.
36337         (ISBN): Likewise.
36338         (VERSION, UPDATED): Remove.
36339         (version.texi): Include.
36340
36341 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
36342
36343         * sysdeps/posix/spawni.c: Include <signal.h>.
36344         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
36345         * sysdeps/pthread/aio_fsync.c: Likewise.
36346
36347 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
36348
36349         * conform/Makefile (tests): Run only when not cross-compiling and
36350         when fast-check is not defined.
36351
36352         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
36353         * conform/data/limits.h-data: Fixes for POSIX2008.
36354         * conform/run-conformtest.sh: Run all tests.
36355         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
36356         headers.
36357         * include/bits/dlfcn.h: Likewise.
36358         * include/langinfo.h: Likewise.
36359         * include/monetary.h: Likewise.
36360         * include/sys/poll.h: Likewise.
36361
36362         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
36363         for __USE_GNU.
36364         * posix/spawn.h: Define __need_sigset_t.
36365         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
36366         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
36367         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
36368         to get sigevent_t only.
36369         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
36370         only for __USE_GNU.
36371         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
36372         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
36373         process_vm_writev only for __USE_GNU.
36374         * termios/termios.h: Declare tcgetsid also for POSIX2008.
36375
36376         * conform/Makefile: For now ignore errors from run-conformtest.
36377         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
36378         POSIX to avoid namespace pollution.  Don't prepend headers.
36379         * conform/data/aio.h-data: Fixes for POSIX testing.
36380         * conform/data/fcntl.h-data: Likewise.
36381         * conform/data/glob.h-data: Likewise.
36382         * conform/data/grp.h-data: Likewise.
36383         * conform/data/pthread.h-data: Likewise.
36384         * conform/data/pwd.h-data: Likewise.
36385         * conform/data/signal.h-data: Likewise.
36386         * conform/data/spawn.h-data: Likewise.
36387         * conform/data/stdio.h-data: Likewise.
36388         * conform/data/stdlib.h-data: Likewise.
36389         * conform/data/stropts.h-data: Likewise.
36390         * conform/data/sys/mman.h-data: Likewise.
36391         * conform/data/sys/stat.h-data: Likewise.
36392         * conform/data/sys/types.h-data: Likewise.
36393         * conform/data/sys/wait.h-data: Likewise.
36394         * conform/data/time.h-data: Likewise.
36395         * conform/data/unistd.h-data: Likewise.
36396         * conform/data/utime.h-data: Likewise.
36397
36398         * io/sys/stat.h: fchmod was always in POSIX.
36399         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
36400         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
36401         * rt/aio.h: Define __need_timespec before including <time.h>.
36402         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
36403         struct.  Add forward declaration of pthread_attr_t and use it in
36404         sigevent.
36405         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
36406         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
36407         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
36408         always remove CLK_TCK definition.
36409
36410 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
36411
36412         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
36413
36414 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
36415
36416         * conform/run-conformtest.sh: New file.
36417         * conform/Makefile: Run run-conformtest for tests.
36418         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
36419         support.
36420
36421         * conform/data/uchar.h-data: New file.
36422         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
36423         * conform/data/arpa/inet.h-data: Likewise.
36424         * conform/data/assert.h-data: Likewise.
36425         * conform/data/complex.h-data: Likewise.
36426         * conform/data/cpio.h-data: Likewise.
36427         * conform/data/ctype.h-data: Likewise.
36428         * conform/data/dirent.h-data: Likewise.
36429         * conform/data/dlfcn.h-data: Likewise.
36430         * conform/data/errno.h-data: Likewise.
36431         * conform/data/fcntl.h-data: Likewise.
36432         * conform/data/float.h-data: Likewise.
36433         * conform/data/fmtmsg.h-data: Likewise.
36434         * conform/data/fnmatch.h-data: Likewise.
36435         * conform/data/ftw.h-data: Likewise.
36436         * conform/data/glob.h-data: Likewise.
36437         * conform/data/grp.h-data: Likewise.
36438         * conform/data/iconv.h-data: Likewise.
36439         * conform/data/inttypes.h-data: Likewise.
36440         * conform/data/langinfo.h-data: Likewise.
36441         * conform/data/libgen.h-data: Likewise.
36442         * conform/data/limits.h-data: Likewise.
36443         * conform/data/locale.h-data: Likewise.
36444         * conform/data/math.h-data: Likewise.
36445         * conform/data/monetary.h-data: Likewise.
36446         * conform/data/mqueue.h-data: Likewise.
36447         * conform/data/ndbm.h-data: Likewise.
36448         * conform/data/net/if.h-data: Likewise.
36449         * conform/data/netdb.h-data: Likewise.
36450         * conform/data/netinet/in.h-data: Likewise.
36451         * conform/data/nl_types.h-data: Likewise.
36452         * conform/data/poll.h-data: Likewise.
36453         * conform/data/pthread.h-data: Likewise.
36454         * conform/data/pwd.h-data: Likewise.
36455         * conform/data/regex.h-data: Likewise.
36456         * conform/data/sched.h-data: Likewise.
36457         * conform/data/search.h-data: Likewise.
36458         * conform/data/semaphore.h-data: Likewise.
36459         * conform/data/setjmp.h-data: Likewise.
36460         * conform/data/signal.h-data: Likewise.
36461         * conform/data/spawn.h-data: Likewise.
36462         * conform/data/stdarg.h-data: Likewise.
36463         * conform/data/stdio.h-data: Likewise.
36464         * conform/data/stdlib.h-data: Likewise.
36465         * conform/data/string.h-data: Likewise.
36466         * conform/data/strings.h-data: Likewise.
36467         * conform/data/stropts.h-data: Likewise.
36468         * conform/data/sys/ipc.h-data: Likewise.
36469         * conform/data/sys/mman.h-data: Likewise.
36470         * conform/data/sys/msg.h-data: Likewise.
36471         * conform/data/sys/resource.h-data: Likewise.
36472         * conform/data/sys/select.h-data: Likewise.
36473         * conform/data/sys/sem.h-data: Likewise.
36474         * conform/data/sys/shm.h-data: Likewise.
36475         * conform/data/sys/socket.h-data: Likewise.
36476         * conform/data/sys/stat.h-data: Likewise.
36477         * conform/data/sys/statvfs.h-data: Likewise.
36478         * conform/data/sys/time.h-data: Likewise.
36479         * conform/data/sys/timeb.h-data: Likewise.
36480         * conform/data/sys/times.h-data: Likewise.
36481         * conform/data/sys/types.h-data: Likewise.
36482         * conform/data/sys/uio.h-data: Likewise.
36483         * conform/data/sys/un.h-data: Likewise.
36484         * conform/data/sys/utsname.h-data: Likewise.
36485         * conform/data/sys/wait.h-data: Likewise.
36486         * conform/data/syslog.h-data: Likewise.
36487         * conform/data/tar.h-data: Likewise.
36488         * conform/data/termios.h-data: Likewise.
36489         * conform/data/utime.h-data: Likewise.
36490         * conform/data/utmpx.h-data: Likewise.
36491         * conform/data/varargs.h-data: Likewise.
36492         * conform/data/wchar.h-data: Likewise.
36493         * conform/data/wctype.h-data: Likewise.
36494         * conform/data/wordexp.h-data: Likewise.
36495
36496         * include/stropts.h: New file.
36497         * include/uchar.h: New file.
36498         * include/aio.h: Changes to allow conformtest.pl to use the headers.
36499         * include/assert.h: Likewise.
36500         * include/ctype.h: Likewise.
36501         * include/dirent.h: Likewise.
36502         * include/dlfcn.h: Likewise.
36503         * include/fcntl.h: Likewise.
36504         * include/fnmatch.h: Likewise.
36505         * include/glob.h: Likewise.
36506         * include/grp.h: Likewise.
36507         * include/libio.h: Likewise.
36508         * include/locale.h: Likewise.
36509         * include/math.h: Likewise.
36510         * include/net/if.h: Likewise.
36511         * include/netdb.h: Likewise.
36512         * include/netinet/in.h: Likewise.
36513         * include/pthread.h: Likewise.
36514         * include/pwd.h: Likewise.
36515         * include/regex.h: Likewise.
36516         * include/sched.h: Likewise.
36517         * include/search.h: Likewise.
36518         * include/setjmp.h: Likewise.
36519         * include/signal.h: Likewise.
36520         * include/stdio.h: Likewise.
36521         * include/stdlib.h: Likewise.
36522         * include/string.h: Likewise.
36523         * include/sys/cdefs.h: Likewise.
36524         * include/sys/mman.h: Likewise.
36525         * include/sys/msg.h: Likewise.
36526         * include/sys/resource.h: Likewise.
36527         * include/sys/select.h: Likewise.
36528         * include/sys/socket.h: Likewise.
36529         * include/sys/stat.h: Likewise.
36530         * include/sys/statvfs.h: Likewise.
36531         * include/sys/time.h: Likewise.
36532         * include/sys/times.h: Likewise.
36533         * include/sys/uio.h: Likewise.
36534         * include/sys/utsname.h: Likewise.
36535         * include/sys/wait.h: Likewise.
36536         * include/termios.h: Likewise.
36537         * include/time.h: Likewise.
36538         * include/ulimit.h: Likewise.
36539         * include/unistd.h: Likewise.
36540         * include/utime.h: Likewise.
36541         * include/wchar.h: Likewise.
36542         * include/wctype.h: Likewise.
36543         * include/wordexp.h: Likewise.
36544
36545         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
36546
36547         * time/time.h: TIME_UTC must be a macro.
36548         Make timespec_get available for ISO C11 only as well.
36549
36550 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
36551
36552         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
36553         Reported by Peng Haitao <penght@cn.fujitsu.com>.
36554
36555 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
36556
36557         * configure.in: Use -o not -a in test for unsupported multi-arch.
36558
36559 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
36560
36561         * manual/texinfo.tex: Update to version 2012-01-19.16.
36562
36563 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
36564
36565         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
36566
36567 2012-02-24  Roland McGrath  <roland@hack.frob.com>
36568
36569         [BZ #13738]
36570         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
36571         * manual/fdl-1.3.texi: New file.
36572         * manual/fdl-1.1.texi: File removed.
36573
36574         [BZ #13738]
36575         * manual/libc.texinfo (FDL_VERSION): New @set.
36576         Use it for mention of FDL in cover text.
36577         (Documentation License): Use it in @include file name.
36578
36579 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
36580             Roland McGrath  <roland@hack.frob.com>
36581
36582         [BZ #5461]
36583         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
36584         (not LONG_LONG_MAX and LONG_LONG_MIN.
36585         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
36586         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
36587         name.
36588         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
36589
36590 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
36591
36592         [BZ #2547]
36593         [BZ #11365]
36594         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
36595         manipulate bits before adding and subtracting TWO23[sx].
36596         * math/libm-test.inc (nearbyint_test): Add more tests.
36597
36598 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
36599
36600         [BZ #2548]
36601         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
36602         bits before adding and subtracting TWO23[sx].
36603         * math/libm-test.inc (rint_test): Add more tests.
36604         (rint_test_tonearest): Likewise.
36605         (rint_test_towardzero): Likewise.
36606         (rint_test_downward): Likewise.
36607         (rint_test_upward: Likewise.
36608
36609 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
36610
36611         [BZ #10110]
36612         * include/stdc-predef.h: New file.  Extracted from features.h.
36613         * include/features.h: Include stdc-predef.h.
36614         * Makefile (headers): Add stdc-predef.h.
36615         * CONFORMANCE (Compiler limitations): Update.
36616
36617 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
36618
36619         * manual/libc.texinfo (VERSION, UPDATED): Revert.
36620
36621 2012-02-21  David S. Miller  <davem@davemloft.net>
36622
36623         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
36624         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
36625
36626 2012-02-20  David S. Miller  <davem@davemloft.net>
36627
36628         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
36629         using a normal save/restore sequence, rather than allocating a
36630         dummy stack frame just to store a frame pointer and restore.
36631         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
36632
36633 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
36634
36635         * manual/install.texi: Fix stray word in line-wrapped comment.
36636
36637 2012-02-20  David S. Miller  <davem@davemloft.net>
36638
36639         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
36640         both binutils and gcc support GOTDATA.
36641
36642         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
36643         "rd %pc" in the PIC register setup sequences.
36644
36645         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
36646         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
36647         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
36648         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
36649         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
36650         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
36651         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
36652         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
36653         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
36654         (SYSCALL_ERROR_HANDLER): Likewise.
36655         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
36656         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
36657         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
36658         (SYSCALL_ERROR_HANDLER): Likewise.
36659
36660         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
36661         (HAVE_GCC_GOTDATA): New.
36662         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
36663         relocation support in both binutils and gcc.
36664         * sysdeps/sparc/elf/configure: Regenerate.
36665
36666         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
36667         * sysdeps/sparc/sparc32/elf/configure: Delete.
36668         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
36669         * sysdeps/sparc/sparc64/elf/configure: Delete.
36670         * sysdeps/sparc/elf/configure.in: New file.
36671         * sysdeps/sparc/elf/configure: Generate.
36672
36673         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
36674         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
36675         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
36676         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
36677         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
36678
36679 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
36680
36681         * manual/install.texi: Do not mention specific glibc version
36682         numbers.
36683         * manual/libc.texinfo (VERSION, UPDATED): Update.
36684         (@copying): Use @copyright{} and range of years.
36685
36686 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
36687
36688         [BZ #13695]
36689         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
36690         [crti.S not in sysdirs] (generated): Do not append.
36691         [crti.S not in sysdirs] (omit-deps): Likewise.
36692         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
36693         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
36694         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
36695         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
36696         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
36697         Likewise.
36698         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
36699         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
36700         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
36701         * csu/defs.awk: Remove file.
36702         * sysdeps/generic/initfini.c: Likewise.
36703         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
36704         variable.
36705         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
36706         Likewise.
36707
36708 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
36709
36710         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
36711         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
36712         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
36713         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
36714         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
36715         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
36716         <bits/epoll.h>.
36717         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
36718         (__EPOLL_PACKED): Define to empty if not defined by
36719         <bits/epoll.h>.
36720         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
36721         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36722         bits/epoll.h.
36723
36724 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
36725
36726         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
36727         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
36728         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
36729         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
36730         <bits/timerfd.h>.
36731         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
36732         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36733         bits/timerfd.h.
36734
36735 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
36736
36737         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
36738         in C locale.
36739         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36740         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
36741         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
36742         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36743
36744 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
36745
36746         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
36747         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
36748
36749 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
36750
36751         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
36752         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
36753         defined.
36754         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
36755         Likewise.
36756         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
36757         entry for 2.16.
36758
36759 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
36760
36761         * math/w_acos.c: Use non-signaling floating-point comparisons.
36762         * math/w_acosf.c: Likewise.
36763         * math/w_acosh.c: Likewise.
36764         * math/w_acoshf.c: Likewise.
36765         * math/w_acoshl.c: Likewise.
36766         * math/w_acosl.c: Likewise.
36767         * math/w_asin.c: Likewise.
36768         * math/w_asinf.c: Likewise.
36769         * math/w_asinl.c: Likewise.
36770         * math/w_atanh.c: Likewise.
36771         * math/w_atanhf.c: Likewise.
36772         * math/w_atanhl.c: Likewise.
36773         * math/w_exp2.c: Likewise.
36774         * math/w_exp2f.c: Likewise.
36775         * math/w_exp2l.c: Likewise.
36776         * math/w_j0.c: Likewise.
36777         * math/w_j0f.c: Likewise.
36778         * math/w_j0l.c: Likewise.
36779         * math/w_j1.c: Likewise.
36780         * math/w_j1f.c: Likewise.
36781         * math/w_j1l.c: Likewise.
36782         * math/w_jn.c: Likewise.
36783         * math/w_jnf.c: Likewise.
36784         * math/w_log.c: Likewise.
36785         * math/w_log10.c: Likewise.
36786         * math/w_log10f.c: Likewise.
36787         * math/w_log10l.c: Likewise.
36788         * math/w_log2.c: Likewise.
36789         * math/w_log2f.c: Likewise.
36790         * math/w_log2l.c: Likewise.
36791         * math/w_logf.c: Likewise.
36792         * math/w_logl.c: Likewise.
36793         * math/w_sqrt.c: Likewise.
36794         * math/w_sqrtf.c: Likewise.
36795         * math/w_sqrtl.c: Likewise.
36796         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
36797         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
36798         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
36799         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
36800         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
36801
36802 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
36803
36804         [BZ #9739]
36805         * manual/string.texi (strnlen): Use correct parameter name in
36806         equivalent expression.
36807
36808 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
36809
36810         [BZ #11174]
36811         * manual/users.texi (seteuid): Consistently use neweuid for
36812         argument name.
36813
36814 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
36815
36816         [BZ #13704]
36817         * manual/nss.texi (Services in the NSS configuration): Correct
36818         list of services in example configuration file.
36819
36820 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
36821
36822         [BZ #11322]
36823         * manual/arith.texi: Remove statements about negative zero
36824         behaving identically to zero.
36825
36826 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
36827
36828         [BZ #5993]
36829         * manual/install.texi: Do not document upgrading from libc5.
36830
36831 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
36832
36833         [BZ #4596]
36834         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
36835
36836 2012-02-18  David S. Miller  <davem@davemloft.net>
36837
36838         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
36839         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
36840         %o7 across the call.
36841         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
36842         instead.
36843         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
36844         SETUP_PIC_REG_LEAF.
36845         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
36846         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
36847         * sysdeps/sparc/crtn.S: Likewise.
36848
36849 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
36850
36851         * aout/Makefile: Remove.
36852
36853 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
36854
36855         [BZ #13058]
36856         * manual/examples/argp-ex1.c (main): Format definition in GNU
36857         style.
36858         * manual/examples/argp-ex2.c (main): Likewise.
36859         * manual/examples/argp-ex3.c (main): Likewise.
36860         * manual/examples/argp-ex4.c (main): Likewise.
36861         * manual/examples/longopt.c (main): Use new-style prototype
36862         definition.
36863         * manual/examples/strncat.c (main): Specify return type and use
36864         (void) for arguments.
36865         * manual/examples/subopt.c (main): Use char **argv argument.
36866
36867 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
36868
36869         [BZ #5077]
36870         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
36871         rounding modes.
36872
36873 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
36874
36875         [BZ #6907]
36876         * manual/string.texi (strchr): Change when strchrnul is
36877         recommended.
36878
36879 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
36880
36881         [BZ #174]
36882         * manual/locale.texi (setlocale): Document LOCPATH.
36883
36884 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
36885
36886         [BZ #10210]
36887         * manual/process.texi (execle): Move @dots{} before last argument.
36888
36889 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
36890
36891         [BZ #12047]
36892         * manual/charset.texi (Generic Charset Conversion): Fix typo
36893         (LC_TYPE -> LC_CTYPE).
36894
36895 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
36896
36897         [BZ #5805]
36898         * manual/arith.texi (scalbn): Use @var{} on parameter names.
36899         (scalbnf): Likewise.
36900         (scalbnl): Likewise.
36901         (scalbln): Likewise.
36902         (scalblnf): Likewise.
36903         (scalblnl): Likewise.
36904         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
36905         (vwarnx): Likewise.
36906         (verr): Likewise.
36907         (verrx): Likewise.
36908         * manual/filesys.texi (telldir): Use braces around return type.
36909         * manual/llio.texi (mmap): Add space after comma.
36910         (mmap64): Likewise.
36911         * manual/math.texi (jn): Use @var{} on parameter names.
36912         (jnf): Likewise.
36913         (jnl): Likewise.
36914         (yn): Likewise.
36915         (ynf): Likewise.
36916         (ynl): Likewise.
36917         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
36918         line.
36919         * manual/resource.texi (ulimit): Use @dots{} instead of literal
36920         "...".
36921         (sched_get_priority_min): Remove semicolon on @deftypefun line.
36922         (sched_get_priority_max): Likewise.
36923         * manual/signal.texi (sigvec): Add space after comma.
36924         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
36925         names.
36926         (if_indextoname): Likewise.
36927         (if_freenameindex): Likewise.
36928         (sendto): Use ',' instead of '.' in prototype.
36929         * manual/startup.texi (syscall): Use @dots{} instead of literal
36930         "...".
36931         * manual/stdio.texi (__fpending): Separate initial words of
36932         paragraph from @deftypefun line.
36933         * manual/syslog.texi (syslog): Use @dots{} instead of literal
36934         "...".
36935         (vsyslog): Use @var{} on parameter names.
36936         * manual/terminal.texi (stty): Use @var{} on parameter names.
36937         * manual/users.texi (getutmp): Use @var{} on parameter names.
36938         (getutmpx): Likewise.
36939
36940 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
36941
36942         [BZ #6884]
36943         * manual/stdio.texi (fopen): Fix typos in description of
36944         ",ccs=STRING".
36945
36946 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
36947
36948         [BZ #4026]
36949         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
36950         get clock_id definition.
36951
36952 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
36953
36954         [BZ #4822]
36955         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
36956         (madvise): Cast every argument to void on its own.
36957
36958 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
36959
36960         [BZ #9902]
36961         * manual/startup.texi (Exit Status): Fix typo.
36962
36963 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
36964
36965         [BZ #10140]
36966         * manual/examples/argp-ex1.c: Include <stdlib.h>.
36967         * manual/examples/argp-ex2.c: Likewise.
36968         * manual/examples/argp-ex3.c: Likewise.
36969
36970 2012-02-16  Richard Henderson  <rth@redhat.com>
36971
36972         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
36973         * sysdeps/s390/s390-32/initfini.c: Remove.
36974         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
36975         * sysdeps/s390/s390-64/initfini.c: Remove.
36976
36977 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
36978
36979         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
36980         compiler output for sysdeps/generic/initfini.c.
36981         * sysdeps/sh/elf/initfini.c: Remove file.
36982
36983 2012-02-16  David S. Miller  <davem@davemloft.net>
36984
36985         [BZ #11494]
36986         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
36987
36988         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
36989         * sysdeps/sparc/crti.S: New file.
36990         * sysdeps/sparc/crtn.S: New file.
36991         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
36992         * sysdeps/sparc/sparc64/Makefile: Likewise.
36993
36994 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
36995
36996         [BZ #3335]
36997         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
36998
36999 2012-02-15  Roland McGrath  <roland@hack.frob.com>
37000
37001         [BZ #4822]
37002         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
37003
37004         * mach/devstream.c (cookie_io_functions_t): Macro removed.
37005         (write, read, close): Likewise.
37006         Patch by Aurelien Jarno <aurelien@aurel32.net>.
37007
37008 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
37009
37010         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
37011         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
37012         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
37013         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
37014         <bits/signalfd.h>.
37015         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
37016         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37017         bits/signalfd.h.
37018
37019 2012-02-14  Marek Polacek  <polacek@redhat.com>
37020
37021         * sysdeps/x86_64/crti.S: New file.
37022         * sysdeps/x86_64/crtn.S: New file.
37023         * sysdeps/x86_64/elf/initfini.c: Remove file.
37024
37025 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
37026
37027         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
37028         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
37029         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
37030         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
37031         <bits/inotify.h>.
37032         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
37033         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37034         bits/inotify.h.
37035
37036 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
37037
37038         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
37039         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
37040         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
37041         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
37042         <bits/eventfd.h>.
37043         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
37044         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37045         bits/eventfd.h.
37046
37047 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
37048
37049         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
37050         __feraiseexcept instead of feraiseexcept.
37051
37052         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
37053         nanosleep invocations.
37054         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
37055         strings, and add error checking for a nanosleep invocations.
37056
37057 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
37058
37059         Replace FSF snail mail address with URLs, as per GNU coding standards.
37060         Most of the snail mail addresses were wrong anyway, and omitting
37061         them makes the source code easier to maintain.  Almost all of the
37062         changes are to license notices and to locale LC_IDENTIFICATION
37063         addresses, except for this one:
37064         * manual/libc.texinfo: In "Published by", give the FSF's URL,
37065         not its snail mail address.
37066
37067 2012-02-09  Richard Henderson  <rth@twiddle.net>
37068
37069         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
37070         of kernel-features.h.
37071
37072         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
37073
37074 2012-02-08  Marek Polacek  <polacek@redhat.com>
37075
37076         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
37077         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
37078         * sysdeps/gnu/_G_config.h: Likewise.
37079         * sysdeps/generic/_G_config.h: Likewise.
37080
37081 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
37082
37083         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
37084         tests.
37085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37086
37087         * sysdeps/powerpc/powerpc32/crti.S: New file.
37088         * sysdeps/powerpc/powerpc32/crtn.S: New file.
37089         * sysdeps/powerpc/powerpc64/crti.S: New file.
37090         * sysdeps/powerpc/powerpc64/crtn.S: New file.
37091
37092         * Makeconfig (have-initfini): Don't set.
37093         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
37094         * configure.in (nopic_initfini): Don't substitute.
37095         * config.h.in (HAVE_INITFINI): Don't #undef.
37096         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
37097         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
37098
37099 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
37100
37101         Support crti.S and crtn.S provided directly by architectures.
37102         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
37103         [crti.S in sysdirs] (omit-deps): Likewise.
37104         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
37105         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
37106         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
37107         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
37108         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
37109         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
37110         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
37111         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
37112         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
37113         compiler output for sysdeps/generic/initfini.c.
37114         * sysdeps/i386/elf/Makefile: Remove file.
37115         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
37116
37117 2012-02-07  Marek Polacek  <polacek@redhat.com>
37118
37119         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
37120         * sysdeps/gnu/_G_config.h: Likewise.
37121         * sysdeps/mach/hurd/_G_config.h: Likewise.
37122
37123 2012-02-07  Marek Polacek  <polacek@redhat.com>
37124
37125         * math/Makefile (tests): Add tst-CMPLX2.
37126         * math/tst-CMPLX2.c: New file.
37127
37128 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
37129
37130         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
37131
37132         * math/libm-test.inc (jn_test): Add missing L suffix.
37133
37134 2012-02-06  Marek Polacek  <polacek@redhat.com>
37135
37136         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
37137         * sysdeps/i386/fpu/e_powf.S: Likewise.
37138         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
37139         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
37140         * sysdeps/i386/fpu/e_acosh.S: Likewise.
37141         * sysdeps/i386/fpu/e_pow.S: Likewise.
37142         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
37143         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
37144         * sysdeps/i386/fpu/s_expm1.S: Likewise.
37145         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
37146         * sysdeps/i386/fpu/e_log2.S: Likewise.
37147         * sysdeps/i386/fpu/e_log2l.S: Likewise.
37148         * sysdeps/i386/fpu/e_scalb.S: Likewise.
37149         * sysdeps/i386/fpu/e_powl.S: Likewise.
37150         * sysdeps/i386/fpu/s_log1p.S: Likewise.
37151         * sysdeps/i386/fpu/e_log10f.S: Likewise.
37152         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
37153         * sysdeps/i386/fpu/e_logl.S: Likewise.
37154         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
37155         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
37156         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
37157         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
37158         * sysdeps/i386/fpu/e_log2f.S: Likewise.
37159         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
37160         * sysdeps/i386/fpu/e_log.S: Likewise.
37161         * sysdeps/i386/fpu/s_cexp.S: Likewise.
37162         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
37163         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
37164         * sysdeps/i386/fpu/e_logf.S: Likewise.
37165         * sysdeps/i386/fpu/e_log10l.S: Likewise.
37166         * sysdeps/i386/fpu/e_atanh.S: Likewise.
37167         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
37168         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
37169         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
37170         * sysdeps/i386/fpu/e_log10.S: Likewise.
37171         * sysdeps/i386/fpu/s_frexp.S: Likewise.
37172         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
37173         * sysdeps/i386/fpu/s_asinh.S: Likewise.
37174         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
37175         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
37176         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
37177         * sysdeps/i386/asm-syntax.h: Likewise.
37178         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
37179         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
37180         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
37181         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
37182         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
37183         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
37184         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
37185         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
37186         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
37187         * sysdeps/powerpc/sysdep.h: Likewise.
37188         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
37189         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
37190
37191 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
37192
37193         [BZ #411]
37194         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
37195
37196 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
37197
37198         * sysdeps/i386/sysdep.h: Include <features.h>.
37199         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
37200         version.
37201
37202 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
37203
37204         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
37205         Define.
37206         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
37207         LOAD_PIC_REG_STR.
37208
37209 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
37210
37211         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
37212         (SETUP_PIC_REG): Use GET_PC_THUNK.
37213         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
37214         macro.
37215
37216 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
37217
37218         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
37219         for non-PIC compilation.
37220         (SETUP_PIC_REG): Add .p2align directive.
37221         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
37222         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
37223         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37224         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37225         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
37226         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37227         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
37228         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
37229         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37230         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37231         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37232         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37233         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37234         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37235         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37236         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
37237         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
37238         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37239         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37240         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37241         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37242         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
37243         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37244         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
37245         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
37246         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
37247         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37248         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
37249         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37250         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37251         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37252         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37253         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37254         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37255         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37256         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37257         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37258         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37259         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37260         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37261         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37262
37263 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
37264
37265         * math/tst-CMPLX.c: Include <stdio.h>.
37266
37267 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
37268
37269         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
37270         float.
37271         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
37272         * sysdeps/sparc/bits/mathdef.h: Likewise.
37273
37274 2012-01-31  Marek Polacek  <polacek@redhat.com>
37275
37276         * libio/libio.h: Don't define _PARAMS.
37277         * locale/programs/config.h: Don't define PARAMS.
37278         * stdlib/strtol_l.c: Likewise.
37279         (__strtol_l): Remove PARAMS from the prototype.
37280
37281 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
37282
37283         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
37284         names.  Just use the correct names.  Remove unnecessary wrapper
37285         functions.
37286         * malloc/arena.c: Likewise.
37287         * malloc/hooks.c: Likewise.
37288
37289         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
37290         ARENA_TEST says not to.  Simplify test for creation of a new arena.
37291         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
37292
37293 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
37294
37295         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
37296         into tail calls.
37297         (update_get_addr): New function.
37298         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
37299         GET_ADDR_MODULE parameter.
37300
37301 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
37302
37303         * crypt/cert.c: Remove __STDC__ conditionals.
37304         * crypt/crypt-entry.c: Likewise.
37305         * crypt/crypt_util.c: Likewise.
37306         * libio/filedoalloc.c: Likewise.
37307         * libio/fileops.c: Likewise.
37308         * libio/genops.c: Likewise.
37309         * libio/iofclose.c: Likewise.
37310         * libio/iofdopen.c: Likewise.
37311         * libio/iofopen.c: Likewise.
37312         * libio/iofopen64.c: Likewise.
37313         * libio/iogetdelim.c: Likewise.
37314         * libio/iopopen.c: Likewise.
37315         * libio/obprintf.c: Likewise.
37316         * libio/oldfileops.c: Likewise.
37317         * libio/oldiofclose.c: Likewise.
37318         * libio/oldiofdopen.c: Likewise.
37319         * libio/oldiofopen.c: Likewise.
37320         * libio/oldiopopen.c: Likewise.
37321         * libio/wfiledoalloc.c: Likewise.
37322         * libio/wgenops.c: Likewise.
37323         * locale/programs/xmalloc.c: Likewise.
37324         * misc/syslog.c: Likewise.
37325         * stdio-common/xbug.c: Likewise.
37326         * string/memchr.c: Likewise.
37327         * string/memcmp.c: Likewise.
37328         * string/memrchr.c: Likewise.
37329         * string/rawmemchr.c: Likewise.
37330         * sysdeps/posix/getcwd.c: Likewise.
37331         * time/strftime_l.c: Likewise.
37332
37333 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
37334
37335         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
37336         * config.make.in (config-cflags-sse2avx): Define.
37337         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
37338         Fix typo.
37339
37340 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
37341
37342         * scripts/config.guess: Update from upstream config git repository.
37343         * scripts/config.sub: Likewise.
37344
37345 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
37346
37347         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
37348         (EM_NUM): Update.
37349         (R_TILEPRO_*, R_TILEGX_*): New macros.
37350
37351         * scripts/firstversions.awk: Fix bug in version range handling.
37352
37353         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
37354
37355         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
37356
37357         * include/sys/epoll.h: New file.
37358         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
37359         libc_hidden_def.
37360
37361 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
37362
37363         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
37364         Avoid unnecessary __WORDSIZE == 64 test.
37365         (fmaxf): Use VEX format if possible.
37366         (fmax): Likewise.
37367         (fminf): Likewise.
37368         (fmin): Likewise.
37369
37370         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
37371         * math/math_private.h: Remove libc_fegetround* and
37372         libc_fesetround*.
37373         * sysdeps/i386/configure.in: Check for -msse2avx.
37374         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
37375         also if SSE2AVX is defined.
37376         Remove libc_fegetround* and libc_fesetround*.
37377         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
37378         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
37379         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
37380         of HAS_YMM_USABLE.
37381         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37382         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37383         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37384         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37385         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37386
37387         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
37388
37389 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37390
37391         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
37392         size is not set.
37393         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37394
37395 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
37396
37397         [BZ #13618]
37398         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
37399         relocation.
37400         * Makeconfig (libm): Define.
37401         * elf/Makefile: Add rules to build and run tst-relsort1.
37402         * elf/tst-relsort1.c: New file.
37403         * elf/tst-relsort1mod1.c: New file.
37404         * elf/tst-relsort1mod2.c: New file.
37405
37406 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
37407
37408         * math/s_ldexp.c: Remove __STDC__ conditionals.
37409         * math/s_ldexpf.c: Likewise.
37410         * math/s_ldexpl.c: Likewise.
37411         * math/s_nextafter.c: Likewise.
37412         * math/s_nexttowardf.c: Likewise.
37413         * math/s_significand.c: Likewise.
37414         * math/s_significandf.c: Likewise.
37415         * math/s_significandl.c: Likewise.
37416         * math/w_jnl.c: Likewise.
37417         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
37418         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
37419         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
37420         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
37421         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
37422         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
37423         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
37424         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
37425         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
37426         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
37427         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
37428         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
37429         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
37430         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
37431         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
37432         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
37433         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
37434         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
37435         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
37436         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
37437         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
37438         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
37439         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
37440         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
37441         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
37442         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
37443         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
37444         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
37445         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
37446         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
37447         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
37448         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
37449         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
37450         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
37451         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
37452         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
37453         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
37454         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37455         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37456         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37457         * sysdeps/ieee754/k_standard.c: Likewise.
37458         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37459         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37460         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37461         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37462         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37463         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37464         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37465         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37466         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37467         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37468         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37469         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37470         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37471         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37472         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37473         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37474         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37475         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37476         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37477         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37478         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37479         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37480         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37481         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37482         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37483         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37484         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37485         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37486         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37487         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37488         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37489         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
37490         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37491         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37492         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37493         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37494         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
37495         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37496         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37497         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
37498         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
37499         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37500         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
37501         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
37502         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37503         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
37504         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
37505         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37506         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37507         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
37508         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
37509         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37510         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37511         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37512         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37513         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37514         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
37515         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37516         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37517         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37518         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37519         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37520         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37521         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37522         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37523         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37524         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37525         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37526         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37527         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37528         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37529         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37530         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37531         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37532         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37533         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37534         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37535         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37536         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37537         * sysdeps/ieee754/s_matherr.c: Likewise.
37538         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37539         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37540         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37541         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37542
37543 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
37544
37545         * crypt/md5.h: Remove __STDC__ conditionals.
37546         * libio/libioP.h: Likewise.
37547         * locale/programs/config.h: Likewise.
37548         * sysdeps/generic/sysdep.h: Likewise.
37549         * sysdeps/i386/asm-syntax.h: Likewise.
37550         * sysdeps/s390/asm-syntax.h: Likewise.
37551         * sysdeps/unix/sysdep.h: Likewise.
37552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
37553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
37554
37555 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
37556
37557         * libio/libio.h: Remove __STDC__ conditionals.
37558         * malloc/obstack.h: Likewise.
37559         * math/complex.h: Likewise.
37560         * math/math.h: Likewise.
37561         * sysdeps/generic/_G_config.h: Likewise.
37562         * sysdeps/gnu/_G_config.h: Likewise.
37563         * sysdeps/mach/hurd/_G_config.h: Likewise.
37564         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37565         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
37566         * sysdeps/sparc/bits/mathdef.h: Likewise.
37567
37568 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
37569
37570         [BZ #13583]
37571         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
37572         Clean up HAS_* macros.
37573         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
37574         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
37575         possible.
37576         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
37577         HAS_AVX.
37578         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37579         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37580         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37581         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37582         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37583
37584 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
37585
37586         * elf/tst-unique3.cc (gets): Remove declaration.
37587         * elf/tst-unique3lib.cc (gets): Likewise.
37588         * elf/tst-unique3lib2.cc (gets): Likewise.
37589         * elf/tst-unique4.cc (gets): Likewise.
37590
37591 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
37592
37593         * include/stdio.h: Add C++ protection.  Add gets declarations and
37594         definitions.
37595         * debug/tst-chk1.c: Don't declare gets here.
37596         * stdio-common/tst-gets.c: Likewise.
37597
37598 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
37599
37600         * posix/glob: Remove directory.
37601
37602 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
37603
37604         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
37605
37606 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
37607
37608         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
37609         of the non-standard EPFNOSUPPORT.
37610
37611 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37612
37613         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
37614         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
37615         ANYWHERE set to 1 only on KERN_NO_SPACE error.
37616
37617 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
37618
37619         * wcsmbs/uchar.h: Test __STDC_VERSION__.
37620
37621 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
37622
37623         * nscd/aicache.c (addhstaiX): Do not cache negative results of
37624         transient errors.
37625         * nscd/grpcache.c (cache_addgr): Likewise.
37626         * nscd/hstcache.c (cache_addhst): Likewise.
37627         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37628         * nscd/pwdcache.c (cache_addpw): Likewise.
37629         * nscd/servicescache.c (cache_addserv): Likewise.
37630
37631 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
37632
37633         * malloc/malloc.c: Various cleanups.
37634         * malloc/hooks.c: Likewise.
37635
37636         * stdlib/Makefile (tests): Add bug-fmtmsg1.
37637         * stdlib/bug-fmtmsg1.c: New file.
37638
37639         * stdlib/fmtmsg.c (init): Add missing unlock.
37640         Patch by Peng Haitao <penght@cn.fujitsu.com>.
37641
37642 2012-01-12  Marek Polacek  <polacek@redhat.com>
37643
37644         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
37645         and _GNU_SOURCE.
37646
37647 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
37648
37649         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
37650         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
37651         macro to ensure uniqueness of label name.
37652         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
37653         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
37654
37655 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
37656
37657         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
37658
37659         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
37660         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
37661         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37662         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
37663
37664 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
37665
37666         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
37667
37668         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
37669         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
37670         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37671
37672         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
37673
37674         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
37675         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
37676         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37677         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
37678
37679         * math/bits/math-finite.h: Add ldexp support.
37680
37681 2012-01-10  Marek Polacek  <polacek@redhat.com>
37682
37683         * locale/programs/localedef.h (show_archive_content): Add noreturn
37684         attribute.
37685
37686 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
37687
37688         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
37689
37690 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
37691
37692         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
37693
37694         * io/Makefile (headers): Add bits/poll2.h.
37695
37696 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
37697
37698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
37699         typo #include statement.
37700
37701 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
37702
37703         * include/sys/cdefs.h: Define __attribute_alloc_size.
37704         * catgets/gencat.c: Add alloc_size attribute and apply consistently
37705         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
37706         * elf/pldd.c: Likewise.
37707         * iconv/iconv_charmap.c: Likewise.
37708         * iconv/iconvconfig.c: Likewise.
37709         * iconv/strtab.c: Likewise.
37710         * locale/programs/locale.c: Likewise.
37711         * locale/programs/localedef.h: Likewise.
37712         * locale/programs/simple-hash.c: Likewise.
37713         * nscd/nscd.h: Likewise.
37714         * nss/makedb.c: Likewise.
37715         * sysdeps/generic/ldconfig.h: Likewise.
37716         * locale/programs/localedef.c: Remove xmalloc prototype.
37717         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
37718
37719 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
37720
37721         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
37722         appropriate.
37723
37724 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
37725
37726         * math/Makefile (tests): Add tst-CMPLX.
37727         * math/tst-CMPLX.c: New file.
37728
37729         * math/complex.h (CMPLXL): Fix typo.
37730
37731         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
37732         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
37733         GLIBC_2.16.
37734         * debug/tst-chk1.c: Add poll and ppoll tests.
37735         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
37736         * include/sys/poll.h: Add hidden proto for ppoll.
37737         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
37738         * sysdeps/mach/hurd/ppoll.c: Likewise.
37739         * io/ppoll.c: Likewise.
37740         * debug/poll_chk.c: New file.
37741         * debug/ppoll_chk.c: New file.
37742         * include/bits/poll2.h: New file.
37743         * io/bits/poll2.h: New file.
37744
37745         [BZ #1350]
37746         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
37747
37748         * configure.in: static is always set to yes.  Remove.
37749         * config.make.in: Don't set build-static.
37750         * Makeconfig: Remove use of build-static.
37751         * dlfcn/Makefile: Likewise.
37752         * elf/Makefile: Likewise.
37753         * math/Makefile: Likewise.
37754         * misc/Makefile: Likewise.
37755         * nptl/Makefile: Likewise.
37756         * sysdeps/mach/hurd/Makefile: Likewise.
37757
37758         * configure.in: PWD_P is not used anymore.
37759         * config.make.in: Remove PWD_P entry.
37760
37761         * configure.in: Remove last remnants of RANLIB.
37762         No need to check for signed size_t anymore.
37763         Don't set libc_commonpagesize and libc_relro_required here for Alpha
37764         and IA-64.
37765         Remove __builtin_expect test because we require at least gcc 3.4.
37766         * aclocal.m4: Likewise.
37767
37768         * wcsmbs/mbrtoc16.c: Implement using towc function.
37769         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
37770         * wcsmbs/wcsmbsload.c: Likewise.
37771         * iconv/gconv_simple.c: Likewise.
37772         * iconv/gconv_int.h: Likewise.
37773         * iconv/gconv_builtin.h: Likewise.
37774         * iconv/iconv_prog.c: Remove CHAR16 handling.
37775
37776         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
37777
37778         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
37779
37780         * configure.in: Remove --with-elf and --enable-bounded options.
37781         Dont set base_machine for ia64.  More non-ELF conditions removed.
37782         Remove testing and setting of leading underscore information.
37783         * config.make.in (build-bounded): Set to no.
37784         * config.h.in: Remove NO_UNDERSCORES entry.
37785         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
37786         them.
37787         * csu/start.c: Remove !NO_UNDERSCORE code.
37788         * locale/localeinfo.h: Likewise.
37789         * sysdeps/generic/machine-gmon.h: Likewise.
37790         * sysdeps/generic/sysdep.h: Likewise.
37791         * sysdeps/i386/sysdep.h: Likewise.
37792         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
37793         * sysdeps/mach/sysdep.h: Likewise.
37794         * sysdeps/s390/s390-32/sysdep.h: Likewise.
37795         * sysdeps/s390/s390-64/sysdep.h: Likewise.
37796         * sysdeps/sh/sysdep.h: Likewise.
37797         * sysdeps/sparc/sparc32/alloca.S: Likewise.
37798         * sysdeps/unix/i386/sysdep.S: Likewise.
37799         * sysdeps/unix/sparc/start.c: Likewise.
37800         * sysdeps/unix/sparc/sysdep.S: Likewise.
37801         * sysdeps/unix/sparc/sysdep.h: Likewise.
37802         * sysdeps/unix/start.c: Likewise.
37803         * sysdeps/unix/x86_64/sysdep.S: Likewise.
37804         * sysdeps/x86_64/sysdep.h: Likewise.
37805
37806 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
37807
37808         [BZ #13553]
37809         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
37810         for non-gcc.
37811         * argp/argp-fmtstream.h: Use const instead __const.
37812         * argp/argp.h: Likewise.
37813         * assert/assert.h: Likewise.
37814         * bits/fenv.h: Likewise.
37815         * bits/sched.h: Likewise.
37816         * bits/sigset.h: Likewise.
37817         * bits/sigthread.h: Likewise.
37818         * catgets/nl_types.h: Likewise.
37819         * conform/data/pthread.h-data: Likewise.
37820         * crypt/crypt-private.h: Likewise.
37821         * crypt/crypt.h: Likewise.
37822         * crypt/crypt_util.c: Likewise.
37823         * ctype/ctype.h: Likewise.
37824         * debug/execinfo.h: Likewise.
37825         * debug/mbsnrtowcs_chk.c: Likewise.
37826         * debug/mbsrtowcs_chk.c: Likewise.
37827         * debug/wcsnrtombs_chk.c: Likewise.
37828         * debug/wcsrtombs_chk.c: Likewise.
37829         * debug/wcstombs_chk.c: Likewise.
37830         * dirent/dirent.h: Likewise.
37831         * dlfcn/dlfcn.h: Likewise.
37832         * elf/neededtest4.c: Likewise.
37833         * grp/grp.h: Likewise.
37834         * gshadow/gshadow.h: Likewise.
37835         * iconv/gconv.h: Likewise.
37836         * iconv/gconv_int.h: Likewise.
37837         * iconv/gconv_simple.c: Likewise.
37838         * iconv/iconv.h: Likewise.
37839         * iconv/loop.c: Likewise.
37840         * iconv/skeleton.c: Likewise.
37841         * include/aio.h: Likewise.
37842         * include/aliases.h: Likewise.
37843         * include/argz.h: Likewise.
37844         * include/arpa/inet.h: Likewise.
37845         * include/assert.h: Likewise.
37846         * include/dirent.h: Likewise.
37847         * include/dlfcn.h: Likewise.
37848         * include/execinfo.h: Likewise.
37849         * include/fcntl.h: Likewise.
37850         * include/fenv.h: Likewise.
37851         * include/glob.h: Likewise.
37852         * include/grp.h: Likewise.
37853         * include/libintl.h: Likewise.
37854         * include/mntent.h: Likewise.
37855         * include/netdb.h: Likewise.
37856         * include/pwd.h: Likewise.
37857         * include/rpc/netdb.h: Likewise.
37858         * include/sched.h: Likewise.
37859         * include/search.h: Likewise.
37860         * include/shadow.h: Likewise.
37861         * include/signal.h: Likewise.
37862         * include/stdio.h: Likewise.
37863         * include/stdlib.h: Likewise.
37864         * include/string.h: Likewise.
37865         * include/sys/socket.h: Likewise.
37866         * include/sys/stat.h: Likewise.
37867         * include/sys/statfs.h: Likewise.
37868         * include/sys/statvfs.h: Likewise.
37869         * include/sys/syslog.h: Likewise.
37870         * include/sys/time.h: Likewise.
37871         * include/sys/uio.h: Likewise.
37872         * include/time.h: Likewise.
37873         * include/unistd.h: Likewise.
37874         * include/utmp.h: Likewise.
37875         * include/wchar.h: Likewise.
37876         * include/wctype.h: Likewise.
37877         * inet/aliases.h: Likewise.
37878         * inet/arpa/inet.h: Likewise.
37879         * inet/netinet/ether.h: Likewise.
37880         * inet/netinet/in.h: Likewise.
37881         * intl/libintl.h: Likewise.
37882         * io/bits/fcntl2.h: Likewise.
37883         * io/fcntl.h: Likewise.
37884         * io/ftw.h: Likewise.
37885         * io/sys/poll.h: Likewise.
37886         * io/sys/stat.h: Likewise.
37887         * io/sys/statfs.h: Likewise.
37888         * io/sys/statvfs.h: Likewise.
37889         * io/utime.h: Likewise.
37890         * libio/bits/stdio.h: Likewise.
37891         * libio/bits/stdio2.h: Likewise.
37892         * libio/libio.h: Likewise.
37893         * libio/libioP.h: Likewise.
37894         * libio/stdio.h: Likewise.
37895         * locale/lc-ctype.c: Likewise.
37896         * locale/locale.h: Likewise.
37897         * login/utmp.h: Likewise.
37898         * malloc/arena.c: Likewise.
37899         * malloc/malloc.c: Likewise.
37900         * malloc/malloc.h: Likewise.
37901         * malloc/mcheck.c: Likewise.
37902         * malloc/mtrace.c: Likewise.
37903         * math/bits/mathcalls.h: Likewise.
37904         * math/fenv.h: Likewise.
37905         * math/math_private.h: Likewise.
37906         * misc/bits/error.h: Likewise.
37907         * misc/bits/syslog.h: Likewise.
37908         * misc/err.h: Likewise.
37909         * misc/error.h: Likewise.
37910         * misc/fstab.h: Likewise.
37911         * misc/mntent.h: Likewise.
37912         * misc/regexp.h: Likewise.
37913         * misc/search.h: Likewise.
37914         * misc/sgtty.h: Likewise.
37915         * misc/sys/mman.h: Likewise.
37916         * misc/sys/syslog.h: Likewise.
37917         * misc/sys/uio.h: Likewise.
37918         * misc/sys/xattr.h: Likewise.
37919         * misc/ttyent.h: Likewise.
37920         * nis/rpcsvc/ypclnt.h: Likewise.
37921         * nss/nss.h: Likewise.
37922         * posix/bits/unistd.h: Likewise.
37923         * posix/fnmatch.h: Likewise.
37924         * posix/glob.h: Likewise.
37925         * posix/sched.h: Likewise.
37926         * posix/spawn.h: Likewise.
37927         * posix/sys/wait.h: Likewise.
37928         * posix/unistd.h: Likewise.
37929         * posix/wordexp.h: Likewise.
37930         * pwd/pwd.h: Likewise.
37931         * resolv/netdb.h: Likewise.
37932         * resource/sys/resource.h: Likewise.
37933         * rt/aio.h: Likewise.
37934         * rt/bits/mqueue2.h: Likewise.
37935         * rt/mqueue.h: Likewise.
37936         * shadow/shadow.h: Likewise.
37937         * signal/signal.h: Likewise.
37938         * socket/send.c: Likewise.
37939         * socket/sendto.c: Likewise.
37940         * socket/sys/socket.h: Likewise.
37941         * stdio-common/printf.h: Likewise.
37942         * stdlib/bits/stdlib.h: Likewise.
37943         * stdlib/fmtmsg.h: Likewise.
37944         * stdlib/monetary.h: Likewise.
37945         * stdlib/stdlib.h: Likewise.
37946         * stdlib/ucontext.h: Likewise.
37947         * streams/stropts.h: Likewise.
37948         * string/argz.h: Likewise.
37949         * string/bits/string2.h: Likewise.
37950         * string/string.h: Likewise.
37951         * string/strings.h: Likewise.
37952         * sunrpc/rpc/auth.h: Likewise.
37953         * sunrpc/rpc/auth_des.h: Likewise.
37954         * sunrpc/rpc/clnt.h: Likewise.
37955         * sunrpc/rpc/netdb.h: Likewise.
37956         * sunrpc/rpc/pmap_clnt.h: Likewise.
37957         * sunrpc/rpc/xdr.h: Likewise.
37958         * sysdeps/generic/inttypes.h: Likewise.
37959         * sysdeps/generic/net/if.h: Likewise.
37960         * sysdeps/generic/sys/swap.h: Likewise.
37961         * sysdeps/gnu/net/if.h: Likewise.
37962         * sysdeps/gnu/utmpx.h: Likewise.
37963         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
37964         * sysdeps/i386/i486/bits/string.h: Likewise.
37965         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
37966         * sysdeps/s390/bits/string.h: Likewise.
37967         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
37968         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
37969         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
37970         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
37971         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
37972         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
37973         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
37974         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
37975         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
37976         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
37977         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
37978         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
37979         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
37980         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
37981         * sysdeps/unix/sysv/linux/readv.c: Likewise.
37982         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
37983         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
37984         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37985         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
37986         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
37987         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
37988         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
37989         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
37990         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
37991         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
37992         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
37993         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
37994         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
37995         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
37996         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
37997         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
37998         * sysvipc/sys/ipc.h: Likewise.
37999         * sysvipc/sys/msg.h: Likewise.
38000         * sysvipc/sys/sem.h: Likewise.
38001         * sysvipc/sys/shm.h: Likewise.
38002         * termios/termios.h: Likewise.
38003         * time/sys/time.h: Likewise.
38004         * time/time.h: Likewise.
38005         * wcsmbs/bits/wchar2.h: Likewise.
38006         * wcsmbs/uchar.h: Likewise.
38007         * wcsmbs/wchar.h: Likewise.
38008         * wctype/wctype.h: Likewise.
38009
38010         [BZ #13551]
38011         * Makeconfig: Remove all but ELF support including AIX support.
38012         * Makerules: Likewise.
38013         * config.h.in: Likewise.
38014         * config.make.in: Likewise.
38015         * configure: Likewise.
38016         * configure.in: Likewise.
38017         * csu/Makefile: Likewise.
38018         * csu/version.c: Likewise.
38019         * debug/Makefile: Likewise.
38020         * dlfcn/Makefile: Likewise.
38021         * elf/Makefile: Likewise.
38022         * extra-lib.mk: Likewise.
38023         * iconv/Makefile: Likewise.
38024         * include/libc-symbols.h: Likewise.
38025         * include/shlib-compat.h: Likewise.
38026         * resolv/Makefile: Likewise.
38027         * resolv/res_libc.c: Likewise.
38028         * rt/Makefile: Likewise.
38029         * sysdeps/i386/asm-syntax.h: Likewise.
38030         * sysdeps/i386/sysdep.h: Likewise.
38031         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
38032         * sysdeps/mach/sysdep.h: Likewise.
38033         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
38034         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
38035         * sysdeps/s390/asm-syntax.h: Likewise.
38036         * sysdeps/s390/s390-32/sysdep.h: Likewise.
38037         * sysdeps/s390/s390-64/sysdep.h: Likewise.
38038         * sysdeps/sh/sysdep.h: Likewise.
38039         * sysdeps/unix/sparc/sysdep.h: Likewise.
38040         * sysdeps/wordsize-32/divdi3.c: Likewise.
38041         * sysdeps/x86_64/sysdep.h: Likewise.
38042
38043         * argp/Versions: Remove _argp_unlock_xxx.
38044
38045         [BZ #13559]
38046         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
38047         * abilist/libBrokenLocale.abilist: Likewise.
38048         * abilist/libanl.abilist: Likewise.
38049         * abilist/libc.abilist: Likewise.
38050         * abilist/libcrypt.abilist: Likewise.
38051         * abilist/libdl.abilist: Likewise.
38052         * abilist/libm.abilist: Likewise.
38053         * abilist/libnsl.abilist: Likewise.
38054         * abilist/libpthread.abilist: Likewise.
38055         * abilist/libresolv.abilist: Likewise.
38056         * abilist/librt.abilist: Likewise.
38057         * abilist/libthread_db.abilist: Likewise.
38058         * abilist/libutil.abilist: Likewise.
38059         * abilist/libnss_db.abilist: New file.
38060
38061         * scripts/abilist.awk: Add support for indirect functions.
38062
38063         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
38064
38065         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
38066
38067         * shlib-versions: Remove entries for ports architectures.
38068
38069         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
38070         files in ports.
38071         * elf/stackguard-macros.h: Remove support for IA-64.
38072         * elf/tst-auditmod1.c: Likewise.
38073         * sysdeps/generic/ldsodefs.h: Likewise.
38074
38075         * sysdeps/unix/sysv/linux/configure.in: Ports should define
38076         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
38077         configure files.
38078
38079         [BZ #13552]
38080         * configure.in: Remove --enable-omitfp support.
38081         * FAQ.in: Adjust.
38082         * config.make.in: Likewise.
38083         * Makeconfig: Likewise.
38084         * manual/install.texi: Likewise.
38085
38086         In case anyone cares, the IA-64 architecture could move to ports.
38087         * sysdeps/ia64/*: Removed.
38088         * sysdeps/unix/sysv/linux/ia64/*: Removed.
38089         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
38090
38091         [BZ #13555]
38092         * configure.in: Remove entries for unsupported architectures.
38093
38094         [BZ #13533]
38095         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
38096         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
38097         routines.
38098         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
38099         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
38100         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
38101         fall back to using wcrtomb.
38102         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
38103         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
38104         renaming.
38105         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
38106         * wcsmbs/tst-c16c32-1.c: New file.
38107
38108         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
38109         local variable.
38110
38111         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
38112
38113         * elf/tst-unique3.cc: Add explicit declaration of gets.
38114         * elf/tst-unique3lib.cc: Likewise.
38115         * elf/tst-unique3lib2.cc: Likewise.
38116         * elf/tst-unique4.cc: Likewise.
38117
38118         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
38119
38120 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
38121
38122         [BZ #13566]
38123         * assert/assert.h (static_assert): Don't define for C++.
38124         * libio/stdio.h (gets): Do declare for C++ <= C++11.
38125         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
38126
38127 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
38128
38129         * iconv/loop.c (single loop): Fix assertion in storing of
38130         remaining bytes.
38131
38132         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
38133
38134 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
38135
38136         * posix/getconf.c: Update copyright year.
38137         * nss/getent.c: Likewise.
38138         * nss/makedb.c: Likewise.
38139         * iconv/iconvconfig.c: Likewise.
38140         * iconv/iconv_prog.c: Likewise.
38141         * elf/ldconfig.c: Likewise.
38142         * elf/pldd.c: Likewise.
38143         * elf/sotruss.ksh: Likewise.
38144         * catgets/gencat.c: Likewise.
38145         * csu/version.c: Likewise.
38146         * elf/ldd.bash.in: Likewise.
38147         * elf/sprof.c (print_version): Likewise.
38148         * locale/programs/locale.c: Likewise.
38149         * locale/programs/localedef.c: Likewise.
38150         * login/programs/pt_chown.c: Likewise.
38151         * nscd/nscd.c (print_version): Likewise.
38152         * debug/xtrace.sh: Likewise.
38153         * malloc/memusage.sh: Likewise.
38154         * malloc/mtrace.pl: Likewise.
38155         * debug/catchsegv.sh: Likewise.
38156
38157 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
38158
38159         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
38160         pure attribute.
38161
38162 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
38163
38164         [BZ #13533]
38165         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
38166         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
38167         transformations.
38168         * iconv/gconv_int.h: Likewise.
38169         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
38170         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
38171         from libc for GLIBC_2.16.
38172         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
38173         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
38174         * wcsmbs/uchar.h: Really define mbstate_t.
38175         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
38176         * wcsmbs/c16rtomb.c: New file.
38177         * wcsmbs/mbrtoc16.c: New file.
38178         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
38179         for C/POSIX locale.
38180         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
38181         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
38182
38183         * wcsmbs/wchar.h: Add missing __restrict.
38184
38185 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
38186
38187         [BZ #13532]
38188         * time/Makefile (routines): Add timespec_get.
38189         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
38190         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
38191         timespec for ISO C11.
38192         * time/timespec_get.c: New file.
38193         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
38194         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
38195
38196         [BZ #13531]
38197         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
38198         * stdlib/stdlib.h: Declare aligned_alloc.
38199         * Versions.def: Add GLIBC_2.16 for libc.
38200         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
38201
38202         [BZ 13527]
38203         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
38204         ISO C11.
38205
38206         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
38207         code.
38208
38209         [BZ #13528]
38210         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
38211
38212         [BZ #13529]
38213         * assert/assert.h (static_assert): Define.
38214
38215         * version.h: Update for 2.16 development version.
38216
38217         [BZ #13526]
38218         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
38219         _ISOC11_SOURCE.
38220
38221         * version.h (RELEASE): Bump for 2.15 release.
38222         * include/features.h (__GLIBC_MINOR__): Bump to 15.
38223
38224         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
38225         Patch by Marek Polacek <mpolacek@redhat.com>.
38226
38227         * bits/byteswap.h: Protect long long constants with __extension__.
38228         * sysdeps/i386/bits/byteswap.h: Likewise.
38229         * sysdeps/ia64/bits/byteswap.h: Likewise.
38230         * sysdeps/s390/bits/byteswap.h: Likewise.
38231         * sysdeps/x86_64/bits/byteswap.h: Likewise.
38232
38233 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38234
38235         [BZ #13540]
38236         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
38237         destination buffer.
38238         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
38239
38240 2011-12-23  Marek Polacek  <polacek@redhat.com>
38241
38242         * elf/dl-addr.c (determine_info): Add inline keyword.
38243         * elf/tst-auditmod4b.c (check_avx): Likewise.
38244         * elf/tst-auditmod6b.c (check_avx): Likewise.
38245         * elf/tst-auditmod6c.c (check_avx): Likewise.
38246         * elf/tst-auditmod7b.c (check_avx): Likewise.
38247
38248 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
38249
38250         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
38251         !__SSE_MATH__.
38252
38253 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38254
38255         [BZ #13540]
38256         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
38257         processing for last bytes.
38258
38259 2011-08-06  Bruno Haible  <bruno@clisp.org>
38260
38261         [BZ #13061]
38262         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
38263         U+0385, not to U+1FEE.
38264
38265         [BZ #13062]
38266         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
38267         entry for U+00A5 U+0301.
38268
38269 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
38270
38271         [BZ #13166]
38272         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
38273         buffer for the output is too small.
38274
38275         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
38276         optimization.
38277
38278         [BZ #13185]
38279         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
38280         SSE flags if possible.
38281
38282 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38283
38284         [BZ #13540]
38285         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
38286         processing for last bytes.
38287
38288 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
38289
38290         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
38291         (syscall-list-default-options, syscall-list-default-condition)
38292         (syscall-list-includes): Define.
38293         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
38294         list of ABIs and options and #if conditions for each ABI.  Do not
38295         handle common syscalls between ABIs specially.
38296         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
38297         Remove.
38298         (syscall-list-variants, syscall-list-32bit-options)
38299         (syscall-list-32bit-condition, syscall-list-64bit-options)
38300         (syscall-list-64bit-condition): Define.
38301         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
38302         (syscall-list-variants, syscall-list-32bit-options)
38303         (syscall-list-32bit-condition, syscall-list-64bit-options)
38304         (syscall-list-64bit-condition): Define.
38305         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
38306         Remove.
38307         (syscall-list-variants, syscall-list-32bit-options)
38308         (syscall-list-32bit-condition, syscall-list-64bit-options)
38309         (syscall-list-64bit-condition): Define.
38310         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
38311         Remove.
38312         (syscall-list-variants, syscall-list-32bit-options)
38313         (syscall-list-32bit-condition, syscall-list-64bit-options)
38314         (syscall-list-64bit-condition): Define.
38315
38316 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
38317
38318         * locale/iso-639.def: Add brx entry.
38319
38320         [BZ #13328]
38321         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
38322         Proposed by Mariusz_Cukr <marcukr@op.pl>.
38323
38324         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
38325         __feraiseexcept_renamed.
38326
38327 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
38328
38329         [BZ #13538]
38330         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
38331         EPOLLET with unsigned values.
38332         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38333         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
38334
38335         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
38336         to large cancellation.
38337         * math/s_cacoshf.c: Likewise.
38338         * math/s_cacoshl.c: Likewise.
38339
38340 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
38341
38342         [BZ #13305]
38343         [BZ #12786]
38344         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
38345         * math/s_cacoshf.c: Likewise.
38346         * math/s_cacoshl.c: Likewise.
38347
38348 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
38349
38350         [BZ #13439]
38351         * iconv/gconv.h: Define __GCONV_SWAP.
38352         * iconvdata/unicode.c: The swap bit must be stored in __flags.
38353         * iconvdata/utf-16.c: Likewise.
38354         * iconvdata/utf-32.c: Likewise.
38355
38356 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
38357
38358         [BZ #13524]
38359         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
38360         numerator after shifting it by one limb.
38361
38362 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
38363
38364         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
38365         under [__USE_EXTERN_INLINES].
38366
38367 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
38368
38369         [BZ #13446]
38370         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
38371
38372 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38373
38374         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
38375         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
38376         optimized code.
38377         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
38378         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
38379         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
38380         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
38381         for strncasecmp/strncasecmp_l compilation.
38382         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
38383         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
38384
38385 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
38386
38387         [BZ #13484]
38388         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
38389         of __asm__.
38390
38391 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
38392
38393         [BZ #13506]
38394         * time/tzfile.c (__tzfile_read): Check values from file header.
38395
38396 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
38397
38398         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
38399         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
38400         * powerpc/powerpc32/dl-start.S: Likewise.
38401         * powerpc/powerpc32/elf/start.S: Likewise.
38402         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
38403         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
38404         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
38405         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
38406         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
38407         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
38408         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
38409         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
38410         * powerpc/powerpc32/fpu/s_round.S: Likewise.
38411         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
38412         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
38413         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
38414         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
38415         * powerpc/powerpc32/memset.S: Likewise.
38416         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
38417         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
38418         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
38419         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
38420         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
38421         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
38422         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
38423         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
38424         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
38425         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
38426         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
38427         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
38428         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
38429
38430 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38431
38432         * math/libm-test.inc: Added more nearbyint tests.
38433         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
38434         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
38435         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
38436         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
38437
38438 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
38439
38440         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
38441         FD_CLOEXEC.
38442
38443 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38444
38445         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
38446         Add wcscpy-ssse3 wcscpy-c.
38447         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
38448         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
38449         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
38450         * sysdeps/x86_64/wcschr.S: New file.
38451         * sysdeps/x86_64/wcsrchr.S: New file.
38452         * string/test-strcmp.c: Remove checking of wcscmp function for
38453         wrong alignments.
38454         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
38455         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
38456         wcsrchr-sse2 wcsrchr-c.
38457         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
38458         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
38459         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
38460         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
38461         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
38462         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
38463         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
38464         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
38465         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
38466         * wcsmbc/wcschr.c (WCSCHR): New macro.
38467
38468 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38469
38470         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
38471         * wcsmbs/test-wcsrchr.c: New file.
38472         * string/test-strrchr.c: Add wcsrchr support.
38473         (WIDE): New macro.
38474         * wcsmbs/test-wcscpy.c: New file.
38475         * string/test-strcpy.c: Add wcscpy support.
38476         (WIDE): New macro.
38477
38478 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
38479
38480         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
38481         the inner loop.
38482
38483 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
38484
38485         [BZ #13472]
38486         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
38487
38488 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
38489
38490         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
38491         Minor optimizations.
38492
38493         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
38494         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
38495         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
38496
38497 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
38498
38499         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
38500         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
38501         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
38502         for gcc to avoid warnings.
38503         * inet/Makefile (tests): Add tst-checks.
38504         * inet/tst-checks.c: New file.
38505
38506         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
38507         warning.
38508
38509         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
38510         __wmemcmp_sse2.
38511
38512         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
38513         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
38514
38515         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
38516
38517 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
38518
38519         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
38520         problem.
38521
38522         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
38523
38524 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
38525
38526         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
38527         conditional on GCC version.
38528         (__arch_compare_and_exchange_val_8_acq)
38529         (__arch_compare_and_exchange_val_16_acq)
38530         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
38531         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
38532         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
38533
38534 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
38535
38536         * sysdeps/sh/backtrace.c: New file.
38537
38538 2011-12-02  Andreas Schwab  <schwab@redhat.com>
38539
38540         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
38541         parenthesis.
38542
38543 2011-12-01  Andreas Schwab  <schwab@redhat.com>
38544
38545         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
38546         falling back to utime.
38547
38548 2011-11-30  Andreas Schwab  <schwab@redhat.com>
38549
38550         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
38551         expectations for float.
38552
38553 2011-11-29  Andreas Schwab  <schwab@redhat.com>
38554
38555         * locale/weight.h (findidx): Add parameter len.
38556         * locale/weightwc.h (findidx): Likewise.
38557         * posix/fnmatch_loop.c (FCT): Adjust caller.
38558         * posix/regcomp.c (build_equiv_class): Likewise.
38559         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
38560         * posix/regexec.c (check_node_accept_bytes): Likewise.
38561         * string/strcoll_l.c (STRCOLL): Likewise.
38562         * string/strxfrm_l.c (STRXFRM): Likewise.
38563
38564 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
38565
38566         * Makefile.in: Remove CVSOPT handling.
38567         * configure.in: Remove use of AC_REVISION.
38568         * iconvdata/Makefile (distribute): No need to filter out CVS.
38569         * scripts/list-sources.sh: Remove CVS, subversion and monotone
38570         handling.
38571
38572 2011-11-16  Andreas Schwab  <schwab@redhat.com>
38573
38574         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
38575         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
38576         [USE_AS_STRNCASECMP_L]: Likewise.
38577         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
38578         NO_TLS_DIRECT_SEG_REFS.
38579         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
38580         Fix argument offsets for non-PIC.
38581         [USE_AS_STRNCASECMP_L]: Likewise.
38582         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
38583         NO_TLS_DIRECT_SEG_REFS.
38584
38585 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
38586
38587         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
38588         O_CLOEXEC.
38589         * locale/loadlocale.c (_nl_load_locale): Likewise.
38590
38591 2011-11-15  Andreas Schwab  <schwab@redhat.com>
38592
38593         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
38594         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
38595         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
38596         (SYSCALL_GETTIME): Set errno on error.
38597
38598         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
38599         count references to noai6ai_cached.
38600
38601 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
38602
38603         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
38604
38605         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
38606         FD_CLOEXEC for /proc/self/maps.
38607
38608         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
38609         FD_CLOEXEC for /proc/meminfo.
38610
38611         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
38612         gai.conf.
38613
38614         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
38615         FD_CLOEXEC for given file.
38616
38617         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
38618
38619         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
38620         FD_CLOEXEC for /etc/hosts.
38621         (_gethtent): Likewise.
38622
38623         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
38624
38625         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
38626         cancellation and set FD_CLOEXEC for /etc/netgroup.
38627
38628         * nss/nss_files/files-key.c (search): Don't allow cancellation when
38629         reading /etc/publickey.
38630
38631         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
38632         allow cancellation when reading /etc/group.
38633
38634         * nss/nss_files/files-alias.c (internal_setent): Don't allow
38635         cancellation.
38636         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
38637
38638         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
38639         when using data file.
38640
38641         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
38642
38643         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
38644         (write_nis_obj): Use "c" and "e" in fopen.
38645
38646         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
38647
38648         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
38649
38650         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
38651
38652         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
38653
38654         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
38655         locale.alias.
38656
38657         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
38658
38659         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
38660
38661         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
38662
38663         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
38664         file parsing and set FD_CLOEXEC.
38665
38666 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
38667
38668         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
38669
38670 2011-11-14  Andreas Schwab  <schwab@redhat.com>
38671
38672         * malloc/arena.c (arena_get2): Don't call reused_arena when
38673         _int_new_arena failed.
38674
38675 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
38676
38677         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
38678         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
38679         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
38680         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
38681         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
38682         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
38683         to compile strcasecmp and strncasecmp.
38684         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
38685         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
38686
38687         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
38688
38689 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
38690
38691         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
38692         locale-defines.sym to gen-as-const-headers.
38693         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
38694         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
38695         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
38696         to compile strcasecmp and strncasecmp.
38697         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
38698         strcasecmp_l and strncasecmp_l.
38699         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
38700         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
38701         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
38702         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
38703         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
38704         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
38705         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
38706         * sysdeps/i386/i686/multiarch/strncase.S: New file.
38707         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
38708         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
38709         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
38710
38711 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
38712
38713         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
38714         result of SYSDEP_GETTIME_CPU to retval.
38715         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
38716         parameter list to macro.  Remove trailing semicolon.  Adjust users.
38717
38718         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
38719         variable.
38720
38721         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
38722         mantissa words.
38723         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38724
38725         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
38726         from unused variable.
38727
38728         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
38729         DWARF definitions.
38730         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
38731         for assembling.
38732
38733         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
38734         over namespaces.
38735
38736         * sunrpc/rpc_prot.c (rejected): Fix case value.
38737
38738         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
38739         unsigned long long int to avoid warnings in shift.
38740
38741         * posix/regex_internal.c (re_string_reconstruct): Actually use result
38742         of use of trans.
38743         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
38744         variable tmp.
38745
38746         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
38747         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
38748         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
38749
38750         * nis/nis_table.c (nis_list): Use variable of correct type for
38751         result of __follow_path call.
38752
38753 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38754
38755         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
38756         of math functions ceil, trunc, floor, round, and sqrt, when
38757         avaliable on the platform.
38758         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
38759         name clash.
38760         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
38761         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
38762         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
38763
38764 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
38765
38766         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
38767         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
38768
38769 2011-11-11  Roland McGrath  <roland@hack.frob.com>
38770
38771         * include/unistd.h: Fix __readlink return type.
38772         Reported by Chris Metcalf <cmetcalf@tilera.com>.
38773
38774 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
38775
38776         * stdlib/ucontext.h: Undo last change for makecontext.
38777
38778 2011-11-11  Andreas Schwab  <schwab@redhat.com>
38779
38780         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
38781
38782         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
38783         * setjmp/setjmp.h: Mark functions as non-leaf.
38784         * setjmp/bits/setjmp2.h: Likewise.
38785         * stdlib/ucontext.h: Likewise.
38786
38787 2011-11-10  Andreas Schwab  <schwab@redhat.com>
38788
38789         * malloc/arena.c (_int_new_arena): Don't increment narenas.
38790         (reused_arena): Don't check arena limit.
38791         (arena_get2): Atomically check arena limit.
38792
38793 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
38794
38795         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
38796         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
38797
38798         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
38799         instructions.
38800
38801 2011-11-07  Andreas Schwab  <schwab@redhat.com>
38802
38803         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
38804         handler when locking.
38805
38806         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
38807         Fix size of allocated buffer.
38808
38809 2011-11-04  Andreas Schwab  <schwab@redhat.com>
38810
38811         [BZ #10103]
38812         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
38813         declarations for long double functions.
38814         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
38815
38816         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
38817
38818 2011-11-03  Andreas Schwab  <schwab@redhat.com>
38819
38820         * nscd/nscd.c (main): Don't start AVC thread until credentials are
38821         installed.
38822
38823         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
38824         is disabled.
38825
38826 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38827
38828         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
38829
38830 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
38831
38832         * include/alloca.h (stackinfo_alloca_round): Define.
38833         (extend_alloca): Use it.
38834         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
38835         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
38836         here.
38837
38838         * scripts/check-local-headers.sh: Ignore libaudit.h.
38839
38840         * nscd/Makefile (extra-objs): Make recursively expanded.
38841
38842 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
38843
38844         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
38845         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
38846
38847         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
38848         * posix/tst-rfc3484-2.c: Likewise.
38849         * posix/tst-rfc3484-3.c: Likewise.
38850
38851         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
38852         process_vm_writev.
38853         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
38854         process_vm_writev.
38855         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
38856         process_vm_writev from libc using GLIBC_2.15 version.
38857
38858         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
38859
38860 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
38861
38862         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
38863         stack usage.
38864
38865 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
38866
38867         [BZ #13367]
38868         * nss/getent.c (initgroups_keys): Show error message in case no group
38869         names are given.
38870
38871         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
38872         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
38873         __bump_nl_timestamp.
38874         * nscd/connections (nscd_init): When host database is served open
38875         netlink socket and request notification about configuration changes.
38876         (main_loop_poll): Track netlink file descriptor and bump timestamp
38877         in case data becomes available.
38878         (main_loop_epoll): Likewise.
38879         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
38880         (database_pers_head): Add extra_data fileds.
38881         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
38882         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
38883         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
38884         Adjust caller.
38885         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
38886         in6ai data, call __free_in6ai.
38887         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
38888         Add -DHAVE_NETLINK.
38889         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
38890         interface information.  Reuse previous data if netlink timestamp
38891         is not changed.
38892         (__bump_nl_timestamp): New function.
38893         (__free_in6ai): New function.
38894
38895 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
38896
38897         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
38898         close_not_cancel_no_status here.
38899         (__check_pf): Reorganize code a bit to not call close twice if OOM.
38900
38901 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
38902
38903         [BZ #13276]
38904         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
38905         return value.
38906
38907         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
38908         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
38909         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
38910
38911 2011-07-03  Andreas Jaeger  <aj@suse.de>
38912
38913         [BZ #10709]
38914         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
38915         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
38916         * math/libm-test.inc (sin_test): Add test case.
38917
38918 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
38919
38920         [BZ #13337]
38921         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
38922         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
38923
38924         * elf/chroot_canon.c (chroot_canon): Cleanups.
38925
38926         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
38927
38928         [BZ #13335]
38929         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
38930         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
38931
38932         * string/test-strchr.c: Make usable for strchrnul testing.
38933         * string/test-strchrnul.c: New file.
38934         * string/Makefile (strop-tests): Add strchrnul.
38935
38936         * po/it.po: Update from translation team.
38937         * po/es.po: Likewise.
38938
38939 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
38940
38941         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
38942         the three constants needed as parameters.  Drop the others.
38943         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
38944         __m128i_strloadu_tolower.
38945         Create and initialize variable zero and use it in all the places
38946         where _mm_setzero_si128 was used.
38947
38948         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
38949         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
38950         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
38951         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
38952         anymore.
38953         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
38954         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
38955         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
38956         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
38957         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
38958         __mpranred, __mptan.
38959         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
38960         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
38961         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
38962         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
38963         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
38964         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
38965         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
38966         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
38967         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
38968
38969 2011-10-28  Andreas Schwab  <schwab@redhat.com>
38970
38971         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
38972         redefine if SHARED.
38973         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
38974
38975         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
38976         wide char related routines to wcsmbs subdir.
38977
38978 2011-10-27  Andreas Schwab  <schwab@redhat.com>
38979
38980         [BZ #13344]
38981         * misc/sys/cdefs.h (__THROWNL): Define.
38982         * posix/unistd.h: Use __THREADNL instead of __THREAD
38983         for memory synchronization functions.
38984
38985 2011-10-26  Roland McGrath  <roland@hack.frob.com>
38986
38987         [BZ #13349]
38988         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
38989         doesn't exist.
38990         * manual/stdio.texi (Obstack Streams): Node removed.
38991
38992 2011-10-26  Andreas Schwab  <schwab@redhat.com>
38993
38994         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
38995         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
38996         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
38997
38998         * math/math_private.h (math_force_eval): Allow non-addressable
38999         arguments.
39000         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
39001
39002 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
39003
39004         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
39005         file is not needed.
39006
39007         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
39008         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
39009         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39010         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39011         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39012         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39013         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39014         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
39015         Add AVX variants.
39016         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
39017         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
39018         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
39019         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
39020         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
39021         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
39022         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
39023         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
39024         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
39025         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
39026         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
39027         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
39028         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
39029         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
39030         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
39031         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
39032         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
39033         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
39034         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
39035
39036         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
39037         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
39038
39039         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
39040         place.  Use VEX encoding when compiling for AVX.
39041
39042 2011-10-25  Andreas Schwab  <schwab@redhat.com>
39043
39044         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
39045         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
39046
39047         * string/test-strchr.c (do_test): Don't generate NUL bytes.
39048
39049 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
39050
39051         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
39052         useless if() expression.
39053         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
39054         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
39055         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
39056         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39057         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
39058         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
39059         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
39060         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
39061         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
39062         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39063         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
39064         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
39065         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
39066         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
39067         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
39068         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
39069         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
39070         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
39071         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
39072
39073         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
39074
39075 2011-10-25  Andreas Schwab  <schwab@redhat.com>
39076
39077         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
39078         condition.
39079         * elf/dl-fini.c (_dl_sort_fini): Likewise.
39080
39081 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
39082
39083         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
39084         .text section.  Avoid duplicate constants.
39085         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
39086         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
39087         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
39088         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
39089         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
39090         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39091         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39092         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
39093         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
39094         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
39095         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
39096         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
39097         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
39098         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
39099         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
39100         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
39101         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
39102         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
39103         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
39104         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
39105         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
39106         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
39107         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
39108         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
39109         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
39110         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
39111         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
39112         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
39113         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
39114         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
39115         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
39116         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
39117         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
39118         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
39119         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
39120         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
39121         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
39122         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
39123         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
39124         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
39125         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
39126         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
39127         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
39128         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
39129         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
39130
39131 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
39132
39133         * sysdeps/x86_64/dla.h: Move to ...
39134         * sysdeps/x86_64/fpu/dla.h: ...here.
39135         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
39136         situations.  Use __builtin_fma only for gcc 4.6 and up.
39137
39138         * config.make.in: Add have-mfma4 entry.
39139         * configure.in: Substitute libc_cv_cc_fma4.
39140         * math/Makefile (dbl-only-routines): Add sincostab.
39141         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
39142         Use __sincostab not sincos.
39143         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
39144         name is a macro.
39145         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
39146         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39147         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39148         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
39149         using __copysign.
39150         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
39151         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
39152         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
39153         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
39154         and __inv.
39155         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
39156         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
39157         __copysign.
39158         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
39159         define aliases when function name is a macro.
39160         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
39161         sysdeps/ieee754/dbl-64/sincos.tbl.
39162         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
39163         fma4-enabled routines.
39164         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
39165         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
39166         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
39167         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
39168         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
39169         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
39170         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
39171         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
39172         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
39173         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
39174         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
39175         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
39176         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
39177         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
39178         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
39179         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
39180         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
39181         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
39182         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
39183         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
39184         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
39185         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
39186         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
39187         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
39188         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
39189         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
39190         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
39191         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
39192         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
39193         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
39194
39195         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
39196         rename.
39197         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
39198         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
39199         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
39200         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39201         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39202         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
39203         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
39204         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
39205
39206 2011-10-24  Andreas Schwab  <schwab@redhat.com>
39207
39208         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
39209
39210 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
39211
39212         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
39213
39214         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
39215         prediction.
39216         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
39217
39218         * string/strnlen.c: Don't define STRNLEN, reverse logic.
39219         Remove unused variable magic_bits.
39220         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
39221
39222         * string/strnlen.c: Define and use STRNLEN macro.
39223         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
39224         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
39225         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
39226         * wcsmbs/wcslen.c: Define and use WCSLEN.
39227         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
39228         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
39229         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
39230         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
39231         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
39232         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
39233         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
39234
39235 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39236
39237         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
39238         strnlen-sse2-no-bsf.
39239         Rename strlen-no-bsf to strlen-sse2-no-bsf.
39240         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
39241         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
39242         Add strnlen support.
39243         (USE_AS_STRNLEN): New macro.
39244         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
39245         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
39246         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
39247         * sysdeps/x86_64/wcslen.S: New file.
39248
39249 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
39250
39251         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
39252         XMM-moves are used for copying on small sizes.
39253
39254 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39255
39256         * wcsmbs/Makefile (strop-tests): Add wcschr.
39257         * wcsmbs/test-wcschr.c: New file.
39258         * string/test-strchr.c: Update.
39259         Add wcschr support.
39260         (WIDE): New macro.
39261
39262 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39263
39264         * wcsmbs/Makefile (strop-tests): Add wcslen.
39265         * wcsmbs/test-wcslen.c: New file.
39266         * string/test-strlen.c: Update.
39267         Add wcslen support.
39268         (WIDE): New macro.
39269
39270 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
39271
39272         * po/it.po: Update from translation team.
39273
39274 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39275
39276         * sysdeps/x86_64/wcscmp.S: Update.
39277         Fix wrong comparison semantics.
39278         wcscmp shall use signed comparison not unsigned.
39279         Don't use substraction to avoid overflow bug.
39280         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
39281         * wcsmbc/wcscmp.c: Likewise.
39282         * string/test-strcmp.c: Likewise.
39283         Add new tests to check cases with negative values.
39284
39285 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
39286
39287         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
39288         * sysdeps/x86_64/dla.h: ...here.  New file.
39289         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
39290         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
39291         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
39292         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39293         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39294         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
39295         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
39296         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
39297         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
39298
39299 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
39300
39301         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
39302         __ynl_finite aliases.
39303
39304 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
39305
39306         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
39307
39308         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
39309         define DLA_FMA.
39310         [DLA_FMA] (EMULV): Use DLA_FMA.
39311         [DLA_FMA] (MUL12): Use EMULV.
39312         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
39313         that are not needed.
39314         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
39315         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
39316         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39317         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39318         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
39319         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
39320         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
39321
39322 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
39323
39324         * math/s_nan.c: Undef __nan.
39325         * math/s_nanf.c: Undef __nanf.
39326         * math/s_nanl.c: Undef __nanl.
39327         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
39328         "math_private.h".
39329
39330 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
39331
39332         * math/s_catan.c: Add branch predictions.
39333         * math/s_catanf.c: Likewise.
39334         * math/s_catanh.c: Likewise.
39335         * math/s_catanhf.c: Likewise.
39336         * math/s_catanhl.c: Likewise.
39337         * math/s_catanl.c: Likewise.
39338         * math/s_cexp.c: Likewise.
39339         * math/s_cexpf.c: Likewise.
39340         * math/s_cexpl.c: Likewise.
39341         * math/s_clog.c: Likewise.
39342         * math/s_clog10.c: Likewise.
39343         * math/s_clog10f.c: Likewise.
39344         * math/s_clog10l.c: Likewise.
39345         * math/s_clogf.c: Likewise.
39346         * math/s_clogl.c: Likewise.
39347         * math/s_csqrt.c: Likewise.
39348         * math/s_csqrtf.c: Likewise.
39349         * math/s_csqrtl.c: Likewise.
39350         * math/s_ctanf.c: Likewise.
39351         * math/s_ctanh.c: Likewise.
39352         * math/s_ctanhf.c: Likewise.
39353         * math/s_ctanhl.c: Likewise.
39354         * math/s_ctanl.c: Likewise.
39355
39356         * math/math_private.h: Define __nan, __nanf, __nanl.
39357         * math/s_cacosh.c: Include <math_private.h>.
39358         * math/s_cacoshl.c: Likewise.
39359         * math/s_casinh.c: Likewise.
39360         * math/s_casinhf.c: Likewise.
39361         * math/s_casinhl.c: Likewise.
39362         * math/s_ccos.c: Rely entire on ccosh.
39363         * math/s_ccosf.c: Rely entire on ccoshf.
39364         * math/s_ccosl.c: Rely entirely on ccoshl.
39365         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
39366         Remove tests for FE_INVALID.
39367         * math/s_ccoshf.c: Likewise.
39368         * math/s_ccoshl.c: Likewise.
39369         * math/s_csin.c: Likewise.
39370         * math/s_csinf.c: Likewise.
39371         * math/s_csinh.c Likewise.
39372         * math/s_csinhf.c: Likewise.
39373         * math/s_csinhl.c: Likewise.
39374         * math/s_csinl.c: Likewise.
39375         * math/s_ctan.c: Likewise.
39376         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
39377         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
39378         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
39379
39380 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
39381
39382         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
39383         compilation problems.
39384
39385         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
39386         __builtin_expect.
39387
39388 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
39389
39390         * sysdeps/i386/configure.in: Test for -mfma4 option.
39391         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
39392         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
39393         COMMON_CPUID_INDEX_80000001.
39394         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
39395         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
39396         use it if FMA3 is not supported.
39397         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
39398
39399         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
39400         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
39401
39402 2011-10-20  Andreas Schwab  <schwab@redhat.com>
39403
39404         [BZ #12892]
39405         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
39406         it would create a cycle with a link time dependency.
39407
39408 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
39409
39410         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
39411         instruction.
39412         * string/Makefile (strop-tests): Add rawmemchr.
39413         * string/test-rawmemchr.c: New file.
39414
39415         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
39416         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
39417         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
39418         when compiling str{,n}casecmp and when AVX is available.  Hook up
39419         new optimized code in initializers.
39420
39421 2011-10-19  Andreas Schwab  <schwab@redhat.com>
39422
39423         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
39424         __feraiseexcept instead of feraiseexcept.
39425
39426 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
39427
39428         * math/math_private.h: Define defaults for libc_fetestexcept and
39429         libc_feupdateenv.
39430         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
39431         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
39432         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
39433         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
39434         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
39435         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
39436         libc_fetestexcept and libc_feupdateenv.
39437
39438         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
39439         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
39440         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
39441         * sysdeps/x86_64/fpu/math_private.h: Define special version of
39442         libc_feholdexcept_setround.
39443
39444         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
39445         Add s_nearbyint-c and s_nearbyintf-c.
39446         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
39447         nearbyintf inlines.
39448         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
39449         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
39450         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
39451         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
39452
39453         * math/math_private.h: Define defaults for libc_fegetround,
39454         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
39455         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
39456         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
39457         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
39458         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
39459         standard functions.
39460         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
39461         Remove comments and hacks for old compiler versions.
39462         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
39463         libc_fegetround, libc_fesetround, libc_feholdexcept, and
39464         libc_feholdexceptl.
39465
39466 2011-10-18  Andreas Schwab  <schwab@redhat.com>
39467
39468         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
39469         (__feraiseexcept_renamed): Add __NTH.
39470         (feraiseexcept): Add __NTH.  Rename local variables to fix
39471         namespace violations.
39472
39473 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
39474
39475         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
39476
39477         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
39478
39479         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
39480         recently added interfaces.
39481         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
39482
39483         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
39484         about macro parameter expansion.
39485
39486         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
39487         __NO_MATH_INLINES is defined.  Cleanups.
39488
39489         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
39490         and __floorf is target has SSE4.1.
39491         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
39492         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
39493         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
39494         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
39495
39496         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
39497         name.
39498         (floorf): Likewise.
39499
39500         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
39501
39502 2011-10-17  Andreas Schwab  <schwab@redhat.com>
39503
39504         * misc/sys/cdefs.h: Fix last change.
39505
39506         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
39507         database lookup.
39508
39509 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
39510
39511         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
39512
39513         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
39514         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39515         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
39516         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
39517         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
39518         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
39519         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
39520         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
39521         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
39522         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
39523         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
39524         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
39525         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
39526         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
39527         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
39528         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
39529         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
39530         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
39531         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
39532         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
39533         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
39534         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
39535
39536         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
39537         ceil, ceilf, floor, floorf.
39538
39539         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
39540         Perform IRELATIVE relocations last.
39541
39542         * elf/do-rel.h: Add another parameter nrelative, replacing the
39543         local variable with the same name.  Change name of the function
39544         to end in Rel or Rela (uppercase).
39545         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
39546         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
39547         elf_dynamic_do_##reloc function.
39548
39549 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
39550
39551         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
39552         is sufficient, at least on modern CPUs.
39553
39554         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
39555
39556         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
39557         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
39558
39559         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
39560         __expl_finite.
39561         * math/bits/math-finite.h: Add entries for exp.
39562         * math/e_expl.c: Add __*_finite alias.
39563         * sysdeps/i386/fpu/e_exp.S: Likewise.
39564         * sysdeps/i386/fpu/e_expf.S: Likewise.
39565         * sysdeps/i386/fpu/e_expl.c: Likewise.
39566         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
39567         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
39568         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
39569         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
39570         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
39571         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
39572         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
39573
39574         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
39575         is sufficient, at least on modern CPUs.
39576
39577         * ctype/ctype-info.c (__ctype_init): Define.
39578         * include/ctype.h (__ctype_init): Declare.
39579         (__ctype_b_loc): The variable is always initialized.
39580         (__ctype_toupper_loc): Likewise.
39581         (__ctype_tolower_loc): Likewise.
39582         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
39583         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
39584
39585 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
39586
39587         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
39588
39589         * configure.in: Also look in $cxxmachine/include for C++ system
39590         headers.
39591
39592 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39593
39594         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
39595         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
39596         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
39597         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
39598         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
39599         (USE_AS_WMEMCMP): New macro.
39600         Fixing indents.
39601         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
39602         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
39603         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
39604         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
39605         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
39606         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
39607         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
39608         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
39609         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
39610         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
39611         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
39612         (USE_AS_WMEMCMP): New macro.
39613         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
39614         * sysdeps/string/test-memcmp.c: Update.
39615         Fix simple_wmemcmp.
39616         Add new tests.
39617         * wcsmbs/wmemcmp.c: Update.
39618         (WMEMCMP): New macro.
39619         Fix overflow bug.
39620
39621 2011-10-12  Andreas Jaeger  <aj@suse.de>
39622
39623         [BZ #13268]
39624         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
39625
39626 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
39627
39628         * libio/iofwide.c (do_length): Avoid warning.
39629
39630         * ctype/ctype.h (__isctype_f): Add missing __THROW.
39631
39632 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
39633
39634         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
39635
39636         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
39637         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
39638         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
39639         * sysdeps/i386/i686/fpu/e_log.S: New file.
39640         * sysdeps/i386/i686/fpu/e_logf.S: New file.
39641         * sysdeps/i386/i686/fpu/e_logl.S: New file.
39642
39643         * ctype/ctype.h: Add support for inlined isXXX functions when
39644         compiling C++ code.
39645
39646 2011-10-14  Andreas Schwab  <schwab@redhat.com>
39647
39648         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39649
39650         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
39651
39652 2011-10-13  Roland McGrath  <roland@hack.frob.com>
39653
39654         [BZ #13291]
39655         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
39656
39657 2011-10-13  Andreas Schwab  <schwab@redhat.com>
39658
39659         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
39660         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
39661         feraiseexcept.
39662
39663         * sysdeps/x86_64/memrchr.S: Check for zero size.
39664
39665         * string/stratcliff.c: Add memrchr tests.
39666
39667 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39668
39669         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
39670         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
39671         rawmemchr-sse2 rawmemchr-sse2-bsf.
39672         * sysdeps/i386/i686/multiarch/memchr.S: New file.
39673         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
39674         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
39675         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
39676         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
39677         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
39678         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
39679         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
39680         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
39681         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
39682         * string/memrchr.c (MEMRCHR): New macro.
39683
39684 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
39685
39686         Add integration with gcc's -ffinite-math-only and optimize wrapper
39687         functions in libm.
39688         * Versions.def: Define GLIBC_2.15 version for libm.
39689         * math/Makefile (headers): Add bits/math-finite.h.
39690         * math/bits/math-finite.h: New file.
39691         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
39692         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
39693         * math/e_acoshl.c: Add __*_finite alias.
39694         * math/e_acosl.c: Likewise.
39695         * math/e_asinl.c: Likewise.
39696         * math/e_atan2l.c: Likewise.
39697         * math/e_atanhl.c: Likewise.
39698         * math/e_coshl.c: Likewise.
39699         * math/e_exp10.c: Likewise.
39700         * math/e_exp10f.c: Likewise.
39701         * math/e_exp10l.c: Likewise.
39702         * math/e_exp2l.c: Likewise.
39703         * math/e_fmodl.c: Likewise.
39704         * math/e_gammal_r.c: Likewise.
39705         * math/e_hypotl.c: Likewise.
39706         * math/e_j0l.c: Likewise.
39707         * math/e_j1l.c: Likewise.
39708         * math/e_jnl.c: Likewise.
39709         * math/e_lgammal_r.c: Likewise.
39710         * math/e_log10l.c: Likewise.
39711         * math/e_log2l.c: Likewise.
39712         * math/e_logl.c: Likewise.
39713         * math/e_powl.c: Likewise.
39714         * math/e_sinhl.c: Likewise.
39715         * math/e_sqrtl.c: Likewise.
39716         * math/e_scalb.c: Completely rewritten and optimized.
39717         * math/e_scalbf.c: Likewise.
39718         * math/e_scalbl.c: Likewise.
39719         * math/w_acos.c: Likewise.
39720         * math/w_acosf.c: Likewise.
39721         * math/w_acosl.c: Likewise.
39722         * math/w_acosh.c: Likewise.
39723         * math/w_acoshf.c: Likewise.
39724         * math/w_acoshl.c: Likewise.
39725         * math/w_asin.c: Likewise.
39726         * math/w_asinf.c: Likewise.
39727         * math/w_asinl.c: Likewise.
39728         * math/w_atan2.c: Likewise.
39729         * math/w_atan2f.c: Likewise.
39730         * math/w_atan2l.c: Likewise.
39731         * math/w_atanh.c: Likewise.
39732         * math/w_atanhf.c: Likewise.
39733         * math/w_atanhl.c: Likewise.
39734         * math/w_exp10.c: Likewise.
39735         * math/w_exp10f.c: Likewise.
39736         * math/w_exp10l.c: Likewise.
39737         * math/w_fmod.c: Likewise.
39738         * math/w_fmodf.c: Likewise.
39739         * math/w_fmodl.c: Likewise.
39740         * math/w_j0.c: Likewise.
39741         * math/w_j0f.c: Likewise.
39742         * math/w_j0l.c: Likewise.
39743         * math/w_j1.c: Likewise.
39744         * math/w_j1f.c: Likewise.
39745         * math/w_j1l.c: Likewise.
39746         * math/w_jn.c: Likewise.
39747         * math/w_jnf.c: Likewise.
39748         * math/w_log.c: Likewise.
39749         * math/w_logf.c: Likewise.
39750         * math/w_logl.c: Likewise.
39751         * math/w_log10.c: Likewise.
39752         * math/w_log10f.c: Likewise.
39753         * math/w_log10l.c: Likewise.
39754         * math/w_log2.c: Likewise.
39755         * math/w_log2f.c: Likewise.
39756         * math/w_log2l.c: Likewise.
39757         * math/w_pow.c: Likewise.
39758         * math/w_powf.c: Likewise.
39759         * math/w_powl.c: Likewise.
39760         * math/w_remainder.c: Likewise.
39761         * math/w_remainderf.c: Likewise.
39762         * math/w_remainderl.c: Likewise.
39763         * math/w_scalb.c: Likewise.
39764         * math/w_scalbf.c: Likewise.
39765         * math/w_scalbl.c: Likewise.
39766         * math/w_sqrt.c: Likewise.
39767         * math/w_sqrtf.c: Likewise.
39768         * math/w_sqrtl.c: Likewise.
39769         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
39770         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
39771         used.
39772         * math/math_private.h: Declare __kernel_standard_f.
39773         * math/w_cosh.c: Remove cruft and optimize a bit.
39774         * math/w_coshf.c: Likewise.
39775         * math/w_coshl.c: Likewise.
39776         * math/w_exp2.c: Likewise.
39777         * math/w_exp2f.c: Likewise.
39778         * math/w_exp2l.c: Likewise.
39779         * math/w_hypot.c: Likewise.
39780         * math/w_hypotf.c: Likewise.
39781         * math/w_hypotl.c: Likewise.
39782         * math/w_lgamma.c: Likewise.
39783         * math/w_lgamma_r.c: Likewise.
39784         * math/w_lgammaf.c: Likewise.
39785         * math/w_lgammaf_r.c: Likewise.
39786         * math/w_lgammal.c: Likewise.
39787         * math/w_lgammal_r.c: Likewise.
39788         * math/w_sinh.c: Likewise.
39789         * math/w_sinhf.c: Likewise.
39790         * math/w_sinhl.c: Likewise.
39791         * math/w_tgamma.c: Likewise.
39792         * math/w_tgammaf.c: Likewise.
39793         * math/w_tgammal.c: Likewise.
39794         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
39795         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39796         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
39797         Minor optimizations.  Pretty printing.  Remove cruft.
39798         * sysdeps/i386/fpu/e_acosf.S: Likewise.
39799         * sysdeps/i386/fpu/e_acosh.S: Likewise.
39800         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
39801         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
39802         * sysdeps/i386/fpu/e_acosl.c: Likewise.
39803         * sysdeps/i386/fpu/e_asin.S: Likewise.
39804         * sysdeps/i386/fpu/e_asinf.S: Likewise.
39805         * sysdeps/i386/fpu/e_atan2.S: Likewise.
39806         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
39807         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
39808         * sysdeps/i386/fpu/e_atanh.S: Likewise.
39809         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
39810         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
39811         * sysdeps/i386/fpu/e_exp10.S: Likewise.
39812         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
39813         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
39814         * sysdeps/i386/fpu/e_exp2.S: Likewise.
39815         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
39816         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
39817         * sysdeps/i386/fpu/e_fmod.S: Likewise.
39818         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
39819         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
39820         * sysdeps/i386/fpu/e_hypot.S: Likewise.
39821         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
39822         * sysdeps/i386/fpu/e_log.S: Likewise.
39823         * sysdeps/i386/fpu/e_log10.S: Likewise.
39824         * sysdeps/i386/fpu/e_log10f.S: Likewise.
39825         * sysdeps/i386/fpu/e_log10l.S: Likewise.
39826         * sysdeps/i386/fpu/e_log2.S: Likewise.
39827         * sysdeps/i386/fpu/e_log2f.S: Likewise.
39828         * sysdeps/i386/fpu/e_log2l.S: Likewise.
39829         * sysdeps/i386/fpu/e_logf.S: Likewise.
39830         * sysdeps/i386/fpu/e_logl.S: Likewise.
39831         * sysdeps/i386/fpu/e_pow.S: Likewise.
39832         * sysdeps/i386/fpu/e_powf.S: Likewise.
39833         * sysdeps/i386/fpu/e_powl.S: Likewise.
39834         * sysdeps/i386/fpu/e_remainder.S: Likewise.
39835         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
39836         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
39837         * sysdeps/i386/fpu/e_scalb.S: Likewise.
39838         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
39839         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
39840         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
39841         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
39842         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
39843         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
39844         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
39845         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
39846         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
39847         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
39848         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
39849         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
39850         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
39851         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
39852         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
39853         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
39854         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
39855         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39856         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
39857         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
39858         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39859         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
39860         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
39861         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
39862         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
39863         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
39864         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
39865         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39866         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39867         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
39868         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
39869         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
39870         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
39871         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
39872         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
39873         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
39874         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
39875         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
39876         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
39877         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
39878         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
39879         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
39880         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
39881         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
39882         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
39883         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
39884         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
39885         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
39886         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
39887         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39888         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
39889         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
39890         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
39891         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
39892         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
39893         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
39894         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
39895         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
39896         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
39897         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
39898         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
39899         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
39900         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
39901         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
39902         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
39903         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
39904         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
39905         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39906         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39907         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
39908         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
39909         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
39910         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
39911         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
39912         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
39913         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
39914         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
39915         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
39916         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
39917         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
39918         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
39919         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
39920         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
39921         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39922         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
39923         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
39924         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
39925         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
39926         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39927         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
39928         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
39929         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
39930         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
39931         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
39932         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
39933         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39934         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
39935         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
39936         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
39937         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
39938         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
39939         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
39940         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
39941         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
39942         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
39943         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
39944         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
39945         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
39946         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
39947         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
39948         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
39949         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
39950         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
39951         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
39952         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
39953         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
39954         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
39955         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
39956         (__isnanf): Likewise.
39957         (__isinf_ns): Likewise.
39958         (__isinf_nsf): Likewise.
39959         (__finite): Likewise.
39960         (__finitef): Likewise.
39961         (__ieee754_sqrt): Define as macro.
39962         (__ieee754_sqrtf): Define as macro.
39963         (__ieee754_sqrtl): Define as macro.
39964         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
39965         inlined copy.
39966         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
39967         __FINITE_MATH_ONLY__ consistent.
39968         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
39969
39970 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
39971
39972         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
39973         of rawmemchr.
39974
39975         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
39976
39977 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
39978
39979         * po/ja.po: Update from translation team.
39980
39981 2011-10-08  Roland McGrath  <roland@hack.frob.com>
39982
39983         * locale/programs/locarchive.c (prepare_address_space): New function.
39984         (create_archive, enlarge_archive, open_archive): Use it.
39985
39986         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
39987         inside [SHARED], where it is used.
39988
39989         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
39990
39991         * nss/getent.c (netgroup_keys): Remove unused variable.
39992         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
39993
39994 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
39995
39996         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
39997         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
39998         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
39999         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
40000         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
40001         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
40002         * math/Makefile (libm-calls): Add s_isinf_ns.
40003         * math/divtc3.c: Use __isinf_nsl instead of isinf.
40004         * math/multc3.c: Likewise.
40005         * math/s_casin.c: Likewise.
40006         * math/s_casinf.c: Likewise.
40007         * math/s_casinl.c: Likewise.
40008         * math/s_ccos.c: Likewise.
40009         * math/s_ccosf.c: Likewise.
40010         * math/s_ccosl.c: Likewise.
40011         * math/s_ctan.c: Likewise.
40012         * math/s_ctanf.c: Likewise.
40013         * math/s_ctanh.c: Likewise.
40014         * math/s_ctanhf.c: Likewise.
40015         * math/s_ctanhl.c: Likewise.
40016         * math/s_ctanl.c: Likewise.
40017         * math/w_fmod.c: Likewise.
40018         * math/w_fmodf.c: Likewise.
40019         * math/w_fmodl.c: Likewise.
40020         * math/w_remainder.c: Likewise.
40021         * math/w_remainderf.c: Likewise.
40022         * math/w_remainderl.c: Likewise.
40023         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
40024         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
40025         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
40026         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
40027         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
40028         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
40029         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
40030         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
40031
40032         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
40033         of the number.
40034         * stdio-common/printf_fphex.c: Likewise.
40035         * stdio-common/printf_size.c: Likewise.
40036
40037         * math/e_exp10.c: Include math_private.h using <...> not "...".
40038         * math/e_exp10f.c: Likewise.
40039         * math/e_exp10l.c: Likewise.
40040         * math/e_exp2l.c: Likewise.
40041         * math/e_j0l.c: Likewise.
40042         * math/e_j1l.c: Likewise.
40043         * math/e_jnl.c: Likewise.
40044         * math/e_lgammal_r.c: Likewise.
40045         * math/e_rem_pio2l.c: Likewise.
40046         * math/e_scalb.c: Likewise.
40047         * math/e_scalbf.c: Likewise.
40048         * math/e_scalbl.c: Likewise.
40049         * math/k_cosl.c: Likewise.
40050         * math/k_sinl.c: Likewise.
40051         * math/k_tanl.c: Likewise.
40052         * math/s_cacoshf.c: Likewise.
40053         * math/s_catan.c: Likewise.
40054         * math/s_catanf.c: Likewise.
40055         * math/s_catanh.c: Likewise.
40056         * math/s_catanhf.c: Likewise.
40057         * math/s_catanhl.c: Likewise.
40058         * math/s_catanl.c: Likewise.
40059         * math/s_ccosh.c: Likewise.
40060         * math/s_ccoshf.c: Likewise.
40061         * math/s_ccoshl.c: Likewise.
40062         * math/s_cexp.c: Likewise.
40063         * math/s_cexpf.c: Likewise.
40064         * math/s_cexpl.c: Likewise.
40065         * math/s_clog.c: Likewise.
40066         * math/s_clog10.c: Likewise.
40067         * math/s_clog10f.c: Likewise.
40068         * math/s_clog10l.c: Likewise.
40069         * math/s_clogf.c: Likewise.
40070         * math/s_clogl.c: Likewise.
40071         * math/s_csin.c: Likewise.
40072         * math/s_csinf.c: Likewise.
40073         * math/s_csinh.c: Likewise.
40074         * math/s_csinhf.c: Likewise.
40075         * math/s_csinhl.c: Likewise.
40076         * math/s_csinl.c: Likewise.
40077         * math/s_csqrt.c: Likewise.
40078         * math/s_csqrtf.c: Likewise.
40079         * math/s_csqrtl.c: Likewise.
40080         * math/s_ctan.c: Likewise.
40081         * math/s_ctanf.c: Likewise.
40082         * math/s_ctanh.c: Likewise.
40083         * math/s_ctanhf.c: Likewise.
40084         * math/s_ctanhl.c: Likewise.
40085         * math/s_ctanl.c: Likewise.
40086         * math/s_ldexp.c: Likewise.
40087         * math/s_ldexpf.c: Likewise.
40088         * math/s_ldexpl.c: Likewise.
40089         * math/s_significand.c: Likewise.
40090         * math/s_significandf.c: Likewise.
40091         * math/s_significandl.c: Likewise.
40092         * math/w_acos.c: Likewise.
40093         * math/w_acosf.c: Likewise.
40094         * math/w_acosh.c: Likewise.
40095         * math/w_acoshf.c: Likewise.
40096         * math/w_acoshl.c: Likewise.
40097         * math/w_acosl.c: Likewise.
40098         * math/w_asin.c: Likewise.
40099         * math/w_asinf.c: Likewise.
40100         * math/w_asinl.c: Likewise.
40101         * math/w_atan2.c: Likewise.
40102         * math/w_atan2f.c: Likewise.
40103         * math/w_atan2l.c: Likewise.
40104         * math/w_atanh.c: Likewise.
40105         * math/w_atanhf.c: Likewise.
40106         * math/w_atanhl.c: Likewise.
40107         * math/w_cosh.c: Likewise.
40108         * math/w_coshf.c: Likewise.
40109         * math/w_coshl.c: Likewise.
40110         * math/w_dremf.c: Likewise.
40111         * math/w_exp10.c: Likewise.
40112         * math/w_exp10f.c: Likewise.
40113         * math/w_exp10l.c: Likewise.
40114         * math/w_exp2.c: Likewise.
40115         * math/w_exp2f.c: Likewise.
40116         * math/w_fmod.c: Likewise.
40117         * math/w_fmodf.c: Likewise.
40118         * math/w_fmodl.c: Likewise.
40119         * math/w_hypot.c: Likewise.
40120         * math/w_hypotf.c: Likewise.
40121         * math/w_hypotl.c: Likewise.
40122         * math/w_j0.c: Likewise.
40123         * math/w_j0f.c: Likewise.
40124         * math/w_j0l.c: Likewise.
40125         * math/w_j1.c: Likewise.
40126         * math/w_j1f.c: Likewise.
40127         * math/w_j1l.c: Likewise.
40128         * math/w_jn.c: Likewise.
40129         * math/w_jnf.c: Likewise.
40130         * math/w_jnl.c: Likewise.
40131         * math/w_lgamma.c: Likewise.
40132         * math/w_lgamma_r.c: Likewise.
40133         * math/w_lgammaf.c: Likewise.
40134         * math/w_lgammaf_r.c: Likewise.
40135         * math/w_lgammal.c: Likewise.
40136         * math/w_lgammal_r.c: Likewise.
40137         * math/w_log.c: Likewise.
40138         * math/w_log10.c: Likewise.
40139         * math/w_log10f.c: Likewise.
40140         * math/w_log10l.c: Likewise.
40141         * math/w_log2.c: Likewise.
40142         * math/w_log2f.c: Likewise.
40143         * math/w_log2l.c: Likewise.
40144         * math/w_logf.c: Likewise.
40145         * math/w_logl.c: Likewise.
40146         * math/w_pow.c: Likewise.
40147         * math/w_powf.c: Likewise.
40148         * math/w_powl.c: Likewise.
40149         * math/w_remainder.c: Likewise.
40150         * math/w_remainderf.c: Likewise.
40151         * math/w_remainderl.c: Likewise.
40152         * math/w_scalb.c: Likewise.
40153         * math/w_scalbf.c: Likewise.
40154         * math/w_scalbl.c: Likewise.
40155         * math/w_sinh.c: Likewise.
40156         * math/w_sinhf.c: Likewise.
40157         * math/w_sinhl.c: Likewise.
40158         * math/w_sqrt.c: Likewise.
40159         * math/w_sqrtf.c: Likewise.
40160         * math/w_sqrtl.c: Likewise.
40161         * math/w_tgamma.c: Likewise.
40162         * math/w_tgammaf.c: Likewise.
40163         * math/w_tgammal.c: Likewise.
40164
40165         * po/ja.po: Update from translation team.
40166
40167 2011-09-29  Andreas Jaeger  <aj@suse.de>
40168
40169         [BZ #13179]
40170         * sunrpc/netname.c (netname2host): Fix logic.
40171
40172         [BZ #6779]
40173         [BZ #6783]
40174         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
40175         correctly.
40176         * math/w_remainder.c (__remainder): Likewise.
40177         * math/w_remainderf.c (__remainderf): Likewise.
40178         * math/libm-test.inc (remainder_test): Add test cases.
40179
40180 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40181
40182         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
40183         sdiv_qrnnd.
40184
40185 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
40186
40187         * string/test-memcmp.c: Avoid unncessary #defines.
40188         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
40189
40190 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40191
40192         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
40193         Use new sse2 version for core i3 - i7 as it's faster
40194         than sse42 version.
40195         (bit_Prefer_PMINUB_for_stringop): New.
40196         * sysdeps/x86_64/rawmemchr.S: Update.
40197         Replace with faster SSE2 version.
40198         * sysdeps/x86_64/memrchr.S: New file.
40199         * sysdeps/x86_64/memchr.S: Update.
40200         Replace with faster SSE2 version.
40201
40202 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
40203
40204         * elf/dl-load.c (lose): Add cast to avoid warning.
40205
40206 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
40207
40208         * po/ca.po: Update from translation team.
40209
40210         * inet/getnetgrent_r.c: Hook up nscd.
40211         * nscd/Makefile (routines): Add nscd_netgroup.
40212         (nscd-modules): Add netgroupcache.
40213         (CFLAGS-netgroupcache.c): Define.
40214         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
40215         (cache_search): Add const to second parameter.
40216         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
40217         INNETGR.
40218         (dbs): Add netgrdb entry.
40219         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
40220         (verify_persistent_db): Handle netgrdb.
40221         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
40222         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
40223         GETFDNETGR.
40224         (netgroup_response_header): Define.
40225         (innetgroup_response_header): Define.
40226         (datahead): Add netgroup_response_header and innetgroup_response_header
40227         elements.
40228         * nscd/nscd.conf: Add entries for netgroup cache.
40229         * nscd/nscd.h (dbtype): Add netgrdb.
40230         (_PATH_NSCD_NETGROUP_DB): Define.
40231         (netgroup_iov_disabled): Declare.
40232         (xmalloc, xcalloc, xrealloc): Move declarations here.
40233         (cache_search): Adjust prototype.
40234         Add netgroup-related prototypes.
40235         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
40236         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
40237         (__nscd_innetgr): Declare.
40238         * nscd/selinux.c (perms): Use access_vector_t as element type and
40239         add netgroup-related initializers.
40240         * nscd/netgroupcache.c: New file.
40241         * nscd/nscd_netgroup.c: New file.
40242         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
40243         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
40244         For four parameters use innetgr.
40245         * nss/nss_files/files-init.c: Add definition and callback for netgr.
40246         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
40247         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
40248         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
40249
40250         * nscd/connections.c (register_traced_file): Don't register file
40251         for disabled databases.
40252
40253 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
40254
40255         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
40256
40257         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
40258         from tree and freeing node.
40259
40260 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
40261
40262         * nss/nsswitch.c (__nss_database_lookup): Handle
40263         nss_parse_service_list out of memory case.
40264
40265 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
40266
40267         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
40268         out of memory case.
40269
40270 2011-10-04  Andreas Schwab  <schwab@redhat.com>
40271
40272         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
40273         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
40274         pass it down.
40275         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
40276         elf_machine_rela, elf_machine_lazy_rel.
40277         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
40278         (ELF_DYNAMIC_DO_REL): Likewise.
40279         (ELF_DYNAMIC_DO_RELA): Likewise.
40280         (ELF_DYNAMIC_RELOCATE): Likewise.
40281         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
40282         to ELF_DYNAMIC_DO_REL.
40283         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
40284         (dl_main): In trace mode always set __RTLD_NOIFUNC.
40285         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
40286         elf_machine_rela.
40287         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
40288         skip_ifunc, don't call ifunc function if non-zero.
40289         (elf_machine_rela): Likewise.
40290         (elf_machine_lazy_rel): Likewise.
40291         (elf_machine_lazy_rela): Likewise.
40292         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
40293         (elf_machine_lazy_rel): Likewise.
40294         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
40295         Likewise.
40296         (elf_machine_lazy_rel): Likewise.
40297         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
40298         Likewise.
40299         (elf_machine_lazy_rel): Likewise.
40300         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
40301         (elf_machine_lazy_rel): Likewise.
40302         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
40303         (elf_machine_lazy_rel): Likewise.
40304         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
40305         (elf_machine_lazy_rel): Likewise.
40306         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
40307         (elf_machine_lazy_rel): Likewise.
40308         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
40309         (elf_machine_lazy_rel): Likewise.
40310         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
40311         (elf_machine_lazy_rel): Likewise.
40312
40313 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
40314
40315         * nss/nss_files/files-init.c (_nss_files_init): Use static
40316         initialization for all the *_traced_file variables.
40317
40318 2011-09-28  Andreas Schwab  <schwab@redhat.com>
40319
40320         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
40321
40322 2011-09-27  Roland McGrath  <roland@hack.frob.com>
40323
40324         [BZ #13226]
40325         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
40326
40327 2011-09-27  Andreas Schwab  <schwab@redhat.com>
40328
40329         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
40330         Reread the line before reparsing it.
40331
40332 2011-09-26  Andreas Schwab  <schwab@redhat.com>
40333
40334         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
40335
40336 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
40337             Maxim Kuvyrkov  <maxim@codesourcery.com>
40338             Joseph Myers  <joseph@codesourcery.com>
40339
40340         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
40341         if needed for __stack_chk_guard.
40342
40343 2011-09-19  Roland McGrath  <roland@hack.frob.com>
40344
40345         * sysdeps/posix/spawni.c (script_execute): Always define it.
40346         It will be optimized away if unused.
40347         (maybe_script_execute): New function.
40348         (__spawni): Call it.
40349
40350         * Makerules: Don't include tls.make.
40351         (config-tls): Always set to thread.
40352         * tls.make.c: File removed.
40353
40354 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
40355
40356         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
40357         * config.make.in (CPPFLAGS-config): New substituted variable.
40358
40359 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
40360
40361         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
40362
40363         [BZ #13192]
40364         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
40365         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
40366
40367 2011-09-15  Roland McGrath  <roland@hack.frob.com>
40368
40369         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
40370         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
40371         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
40372         (CALL_FAIL): Likewise.
40373         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
40374         (CALL_FAIL): Macro removed.
40375         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
40376
40377 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
40378
40379         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
40380         for __FINITE_MATH_ONLY__ == 1.
40381
40382 2011-09-15  Andreas Schwab  <schwab@redhat.com>
40383
40384         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
40385         __ieee754_sqrt instead of sqrt.
40386         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
40387         __ieee754_sqrtf instead of sqrtf.
40388         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
40389         __floorf instead of floorf.
40390         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
40391         __floorf, __truncf instead of floorf, truncf.
40392
40393 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
40394
40395         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
40396
40397         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
40398         __extern_always_inline.
40399         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
40400         32-bit.
40401
40402 2011-09-14  Andreas Schwab  <schwab@redhat.com>
40403
40404         * elf/rtld.c (dl_main): Also relocate in dependency order when
40405         doing symbol dependency testing.
40406
40407 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
40408
40409         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
40410         Always define `refsym'.
40411
40412 2011-09-13  Andreas Schwab  <schwab@redhat.com>
40413
40414         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
40415         (__FD_ELT): Renamed from __FDELT.
40416         * misc/bits/select2.h (__FD_ELT): Likewise.
40417         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
40418         __FD_MASK instead of __FDELT, __FDMASK.
40419         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
40420         Likewise.
40421         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
40422         Likewise.
40423
40424         * elf/Makefile (gen-ldd): Fix pattern.
40425
40426         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
40427         (init_tls): Likewise.
40428
40429 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
40430
40431         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
40432
40433 2011-09-12  Andreas Schwab  <schwab@redhat.com>
40434
40435         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
40436         `struct cmsghdr *' instead of `void *'.
40437         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
40438         Likewise.
40439
40440 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
40441
40442         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
40443         if non-absolute.
40444         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
40445         ldd_rewrite_script.
40446
40447 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
40448
40449         * configure.in: Remove --with-tls option.
40450         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
40451         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
40452         out in case it is missing.
40453         * sysdeps/ia64/elf/configure.in: Likewise.
40454         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
40455         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
40456         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
40457         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
40458         * sysdeps/sh/elf/configure.in: Likewise.
40459         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
40460         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
40461         * sysdeps/x86_64/elf/configure.in: Likewise.
40462         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
40463         * sysdeps/mach/hurd/tls.h: Likewise.
40464
40465         [BZ #13067]
40466         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
40467
40468         [BZ #13090]
40469         * configure.in: Fix use of AC_INIT.
40470
40471         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
40472
40473 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
40474
40475         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
40476         __set_errno.
40477         * malloc/hooks.c: Likewise.
40478
40479         [BZ #11929]
40480         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
40481         variables statically.
40482         (narenas): Initialize.
40483         (list_lock): Initialize.
40484         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
40485         initializtion of main_arena and list_lock.  Small cleanups.
40486         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
40487         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
40488         Add initializers to main_arena and mp_.
40489         (malloc_state): Remove pagesize member.  Change all users to use
40490         GLRO(dl_pagesize).
40491
40492         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
40493         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
40494         is always initialized.
40495
40496         * malloc/malloc.c: Removed unused configurations and dead code.
40497         * malloc/arena.c: Likewise.
40498         * malloc/hooks.c: Likewise.
40499         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
40500
40501         * include/tls.h: Removed.  USE___THREAD must always be defined.
40502         * bits/libc-tsd.h: Don't handle !USE___THREAD.
40503         * elf/dl-libc.c: Likewise.
40504         * elf/dl-tsd.c: Likewise.
40505         * include/errno.h: Likewise.
40506         * include/netdb.h: Likewise.
40507         * include/resolv.h: Likewise.
40508         * inet/herrno-loc.c: Likewise.
40509         * inet/herrno.c: Likewise.
40510         * malloc/arena.c: Likewise.
40511         * malloc/hooks.c: Likewise.
40512         * malloc/malloc.c: Likewise.
40513         * resolv/res-state.c: Likewise.
40514         * resolv/res_libc.c: Likewise.
40515         * sysdeps/i386/dl-machine.h: Likewise.
40516         * sysdeps/ia64/dl-machine.h: Likewise.
40517         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
40518         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
40519         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
40520         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
40521         * sysdeps/sh/dl-machine.h: Likewise.
40522         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
40523         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
40524         * sysdeps/unix/i386/sysdep.S: Likewise.
40525         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
40526         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
40527         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
40528         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
40529         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
40530         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
40531         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
40532         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
40533         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
40534         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
40535         * sysdeps/unix/x86_64/sysdep.S: Likewise.
40536         * sysdeps/x86_64/dl-machine.h: Likewise.
40537         * tls.make.c: Likewise.
40538
40539         * configure.in: Remove --with-__thread option.  Make tests for
40540         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
40541         tls_model attribute fail if no support is available.  Remove
40542         USE_IN_LIBIO.
40543         * Makeconfig: Adjust for dropped configure option.  All features are
40544         now mandatory.
40545         * Makerules: Likewise.
40546         * Versions.def: Likewise.
40547         * argp/argp-fmtstream.c: Likewise.
40548         * argp/argp-fmtstream.h: Likewise.
40549         * argp/argp-help.c: Likewise.
40550         * assert/assert.c: Likewise.
40551         * config.h.in: Likewise.
40552         * config.make.in: Likewise.
40553         * configure: Likewise.
40554         * configure.in: Likewise.
40555         * csu/Versions: Likewise.
40556         * csu/init.c: Likewise.
40557         * elf/tst-audit2.c: Likewise.
40558         * elf/tst-tls10.c: Likewise.
40559         * elf/tst-tls10.h: Likewise.
40560         * elf/tst-tls11.c: Likewise.
40561         * elf/tst-tls12.c: Likewise.
40562         * elf/tst-tls14.c: Likewise.
40563         * elf/tst-tlsmod11.c: Likewise.
40564         * elf/tst-tlsmod12.c: Likewise.
40565         * elf/tst-tlsmod13.c: Likewise.
40566         * elf/tst-tlsmod13a.c: Likewise.
40567         * elf/tst-tlsmod14a.c: Likewise.
40568         * elf/tst-tlsmod15b.c: Likewise.
40569         * elf/tst-tlsmod16a.c: Likewise.
40570         * elf/tst-tlsmod16b.c: Likewise.
40571         * elf/tst-tlsmod7.c: Likewise.
40572         * elf/tst-tlsmod8.c: Likewise.
40573         * elf/tst-tlsmod9.c: Likewise.
40574         * gmon/gmon.c: Likewise.
40575         * grp/fgetgrent_r.c: Likewise.
40576         * grp/putgrent.c: Likewise.
40577         * hurd/fopenport.c: Likewise.
40578         * include/libc-symbols.h: Likewise.
40579         * include/tls.h: Likewise.
40580         * intl/gettextP.h: Likewise.
40581         * intl/loadinfo.h: Likewise.
40582         * locale/global-locale.c: Likewise.
40583         * locale/localeinfo.h: Likewise.
40584         * mach/devstream.c: Likewise.
40585         * malloc/arena.c: Likewise.
40586         * malloc/set-freeres.c: Likewise.
40587         * misc/err.c: Likewise.
40588         * misc/getttyent.c: Likewise.
40589         * misc/mntent_r.c: Likewise.
40590         * posix/getopt.c: Likewise.
40591         * posix/wordexp.c: Likewise.
40592         * pwd/fgetpwent_r.c: Likewise.
40593         * resolv/Versions: Likewise.
40594         * resolv/res_hconf.c: Likewise.
40595         * shadow/fgetspent_r.c: Likewise.
40596         * shadow/putspent.c: Likewise.
40597         * stdio-common/printf_fphex.c: Likewise.
40598         * stdio-common/tmpfile.c: Likewise.
40599         * stdlib/abort.c: Likewise.
40600         * stdlib/fmtmsg.c: Likewise.
40601         * sunrpc/auth_unix.c: Likewise.
40602         * sunrpc/clnt_perr.c: Likewise.
40603         * sunrpc/clnt_tcp.c: Likewise.
40604         * sunrpc/clnt_udp.c: Likewise.
40605         * sunrpc/clnt_unix.c: Likewise.
40606         * sunrpc/openchild.c: Likewise.
40607         * sunrpc/svc_simple.c: Likewise.
40608         * sunrpc/svc_tcp.c: Likewise.
40609         * sunrpc/svc_udp.c: Likewise.
40610         * sunrpc/svc_unix.c: Likewise.
40611         * sunrpc/xdr.c: Likewise.
40612         * sunrpc/xdr_array.c: Likewise.
40613         * sunrpc/xdr_rec.c: Likewise.
40614         * sunrpc/xdr_ref.c: Likewise.
40615         * sunrpc/xdr_stdio.c: Likewise.
40616
40617 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
40618
40619         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
40620
40621 2011-07-03  Andreas Jaeger  <aj@suse.de>
40622
40623         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
40624         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
40625         regenerate with gen-libm-tests.pl.
40626
40627 2010-05-12  Petr Baudis  <pasky@suse.cz>
40628
40629         [BZ #11589]
40630         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
40631         around j0() zero points by switching to j1().
40632         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
40633         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
40634         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
40635         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
40636
40637 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
40638
40639         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
40640         instead of 0.
40641         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
40642         instead of 0.
40643         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
40644         Patch in part by Pavel Roskin <proski@gnu.org>.
40645
40646         [BZ #13138]
40647         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
40648         realloc.
40649         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
40650         Free memory block if necessary.
40651
40652         [BZ #12847]
40653         * libio/genops.c (INTDEF): For string streams the _lock pointer can
40654         be NULL.  Don't lock in this case.
40655
40656 2011-09-09  Roland McGrath  <roland@hack.frob.com>
40657
40658         * elf/elf.h (ELFOSABI_GNU): New macro.
40659         (ELFOSABI_LINUX): Define to that.
40660
40661 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
40662
40663         * string/strncat.c (strncat): Undef the symbol in case it has been
40664         defined in bits/string.h.
40665
40666 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
40667
40668         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
40669
40670         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
40671         link map.
40672
40673 2011-08-17  Andreas Jaeger  <aj@suse.de>
40674
40675         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
40676
40677 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
40678             Ian Lance Taylor  <iant@google.com>
40679
40680         * math/libm-test.inc (lround_test): New testcase.
40681         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
40682
40683 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
40684
40685         * Makefile: Remove support for automatic cvs check-ins.
40686         * Makerules: Likewise.
40687         * config.make.in: Likewise.
40688         * configure.in: Likewise.
40689         * intl/Makefile: Likewise.
40690         * locale/Makefile: Likewise.
40691         * po/Makefile: Likewise.
40692         * posix/Makefile: Likewise.
40693         * sysdeps/gnu/Makefile: Likewise.
40694         * sysdeps/mach/hurd/Makefile: Likewise.
40695         * sysdeps/sparc/sparc32/Makefile: Likewise.
40696
40697         [BZ #13118]
40698         * posix/Makefile (bug-regex32-ENV): Define.
40699         Patch by John Stanley <jpsinthemix@verizon.net>.
40700
40701         * misc/Makefile (headers): Add bits/select2.h.
40702         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
40703         * misc/bits/select2.h: New file.
40704         * include/bits/select2.h: New file.
40705         * debug/Makefile (routines): Add fdelt_chk.
40706         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
40707         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
40708         FD_ISSET.
40709         * debug/fdelt_chk.c: New file.
40710
40711         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
40712         * wcsmbs/test-wmemcmp.c: Likewise.
40713         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
40714         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
40715
40716 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40717
40718         * string/Makefile (strop-tests): Add memcmp.
40719         * string/test-wmemcmp.c: New file.
40720         * string/test-memcmp.c: Add wmemcmp support.
40721
40722 2011-09-08  Roland McGrath  <roland@hack.frob.com>
40723
40724         [BZ #13153]
40725         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
40726         2011-07-19 change.
40727
40728         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
40729         garbage value in a __mach_port_mod_refs call in the cases of the
40730         task-self and thread-self ports.
40731
40732 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40733
40734         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
40735
40736 2011-09-08  Andreas Schwab  <schwab@redhat.com>
40737
40738         * elf/dl-load.c (lose): Check for non-null L.
40739
40740 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
40741
40742         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
40743
40744         * elf/dl-libc.c (dlerror_run): Pass back error code from
40745         dl_catch_error.
40746
40747         [BZ #13123]
40748         * elf/dl-load.c (lose): Free l_origin if it is valid.
40749
40750         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
40751         names.
40752         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
40753         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
40754         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
40755         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
40756         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
40757         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
40758
40759 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40760
40761         * sysdeps/powerpc/fpu/e_hypot.c: New file.
40762         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
40763         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
40764         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
40765         * sysdeps/powerpc/fpu/k_cosf.c: New file.
40766         * sysdeps/powerpc/fpu/k_sinf.c: New file.
40767         * sysdeps/powerpc/fpu/s_cosf.c: New file.
40768         * sysdeps/powerpc/fpu/s_sinf.c: New file.
40769         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
40770         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
40771
40772 2011-08-15  Alan Modra  <amodra@gmail.com>
40773
40774         [BZ #13092]
40775         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
40776         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
40777         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
40778         ppc_mcount to static-only-routines.
40779         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
40780         __mcount_internal.
40781         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
40782         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
40783
40784 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
40785
40786         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
40787         for finite and infinity parameters.
40788
40789 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
40790
40791         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
40792         and add nop instructions for throughput optimization.
40793         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
40794
40795 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
40796
40797         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
40798         aligned copy for power7 with vector-scalar instructions.
40799         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
40800
40801 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
40802
40803         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
40804         AVX check.
40805
40806 2011-09-07  Andreas Schwab  <schwab@redhat.com>
40807
40808         [BZ #13144]
40809         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
40810         last change.
40811
40812 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
40813
40814         * sysdeps/unix/sysv/linux/x86_64/init-first.c
40815         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
40816         syscall wrapper around clock_gettime in __vdso_clock_gettime.
40817         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
40818         clock_gettime.
40819
40820 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
40821
40822         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
40823         Forgot to demangle the pointer.
40824
40825         * sysdeps/i386/sysdep.h: Define atom_text_section.
40826         * sysdeps/x86_64/sysdep.h: Likewise.
40827         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
40828         section with atom_text_section.
40829         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
40830         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
40831         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
40832         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
40833         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
40834
40835         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
40836         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
40837         already be defined.  Change to take two parameters and don't assign
40838         result to variable.  Adjust all users.
40839         Define INTERNAL_GETTIME if not already defined.
40840         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
40841         call.
40842         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
40843         HAVE_CLOCK_GETTIME_VSYSCALL.
40844         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
40845
40846         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
40847         gettimeofday vsyscall, just use time.
40848
40849 2011-09-06  Andreas Schwab  <schwab@redhat.com>
40850
40851         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
40852         <errno.h>.
40853
40854 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
40855
40856         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
40857         syscall on x86-64.
40858         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
40859         syscall.
40860         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
40861         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
40862         syscall if possible.
40863
40864 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
40865
40866         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
40867         e_ident.  Don't pass to find_mapsXX.
40868         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
40869
40870 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
40871
40872         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
40873         strchr-sse2-no-bsf strrchr-sse2-no-bsf
40874         * sysdeps/x86_64/multiarch/strchr.S: Update.
40875         Check bit_slow_BSF bit.
40876         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
40877         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
40878         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
40879
40880 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
40881
40882         [BZ #13134]
40883         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
40884         before glibc 2.15.
40885         (tryshell): Define.
40886         (__spawni): Change last parameter to be flag.  Test
40887         SPAWN_XFLAGS_USE_PATH flag to use path or not.
40888         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
40889         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
40890         * posix/spawni.c: Likewise.
40891         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
40892         * posix/spawnp.c: Likewise.  Change normal version to use
40893         SPAWN_XFLAGS_USE_PATH.
40894         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
40895         SPAWN_XFLAGS_TRY_SHELL.
40896
40897         [BZ #13150]
40898         * posix/glob.h: Remove gcc 1.x support.
40899
40900         [BZ #13068]
40901         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
40902
40903 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
40904
40905         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
40906         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
40907         strrchr-sse2-bsf
40908         * sysdeps/i386/i686/multiarch/strchr.S: New file.
40909         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
40910         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
40911         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
40912         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
40913         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
40914
40915 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40916
40917         * sysdeps/x86_64/wcscmp.S: New file.
40918
40919         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
40920         wcscmp-c wcscmp-sse2
40921         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
40922         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
40923         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
40924         * wcsmbs/wcscmp.c: Allow renaming.
40925
40926 2011-09-05  David S. Miller  <davem@davemloft.net>
40927
40928         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
40929         stack slot, rather than the struct return pointer slot.
40930         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
40931         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
40932         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
40933         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
40934
40935 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
40936
40937         * po/ja.po: Update from translation team.
40938
40939         [BZ #13144]
40940         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
40941         kernel in 64-bit binaries.
40942
40943 2011-09-01  David S. Miller  <davem@davemloft.net>
40944
40945         * elf/elf.h (HWCAP_SPARC_*): Move to..
40946         * sysdeps/sparc/sysdep.h: this new file and add new values.
40947         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
40948         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
40949         _DL_HWCAP_COUNT to 24.
40950         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
40951         entries.
40952         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
40953         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
40954         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
40955         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
40956         instead of magic constants.
40957         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
40958
40959 2011-08-31  David S. Miller  <davem@davemloft.net>
40960
40961         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
40962         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
40963         Reimplement to do errno handling inline.
40964         (SYSCALL_ERROR_HANDLER): New macro.
40965         (__SYSCALL_STRING): Do not do errno handling in asm.
40966         (__CLONE_SYSCALL_STRING): Delete.
40967         (__INTERNAL_SYSCALL_STRING): Delete.
40968         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
40969         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
40970         (PSEUDO): Reimplement to do errno handling inline.
40971         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
40972         (SYSCALL_ERROR_HANDLER): New macro.
40973         (__SYSCALL_STRING): Do not do errno handling in asm.
40974         (__CLONE_SYSCALL_STRING): Delete.
40975         (__INTERNAL_SYSCALL_STRING): Delete.
40976         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
40977         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
40978         i386.
40979         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
40980         (inline_syscall*): Add 'err' argument.
40981         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
40982         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
40983         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
40984         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
40985
40986         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
40987         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
40988
40989 2011-08-30  Andreas Schwab  <schwab@redhat.com>
40990
40991         * elf/rtld.c (dl_main): Relocate objects in dependency order.
40992
40993 2011-08-29  Jiri Olsa <jolsa@redhat.com>
40994
40995         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
40996         directive.
40997
40998 2011-08-24  David S. Miller  <davem@davemloft.net>
40999
41000         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
41001
41002 2011-08-24  Andreas Schwab  <schwab@redhat.com>
41003
41004         * elf/Makefile: Add rules to build and run unload8 test.
41005         * elf/unload8.c: New file.
41006         * elf/unload8mod1.c: New file.
41007         * elf/unload8mod1x.c: New file.
41008         * elf/unload8mod2.c: New file.
41009         * elf/unload8mod3.c: New file.
41010
41011         * elf/dl-close.c (_dl_close_worker): Reset private search list if
41012         it wasn't used.
41013
41014 2011-08-23  David S. Miller  <davem@davemloft.net>
41015
41016         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
41017         subtract stack bias.
41018         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
41019         %sp not %fp in calculations.
41020         (_JMPBUF_UNWINDS_ADJ): Likewise.
41021
41022         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
41023         (aio_suspend): Call it to force an exception region around the
41024         AIO_MISC_WAIT() invocation.
41025
41026 2011-08-23  Andreas Schwab  <schwab@redhat.com>
41027
41028         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
41029         backslash.
41030
41031 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
41032
41033         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
41034         protection macro.
41035         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
41036         and <dl-machine.h>.
41037         (Elf64_FuncDesc): Remove.
41038
41039 2011-08-22  David S. Miller  <davem@davemloft.net>
41040
41041         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
41042         sigaltstack check, add missing cfi directives.
41043         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
41044         missing cfi directives, and sigaltstack handling.
41045
41046 2011-08-16  Andreas Schwab  <schwab@redhat.com>
41047
41048         [BZ #11724]
41049         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
41050         object is seen twice.
41051         * elf/dl-fini.c (_dl_sort_fini): Likewise.
41052
41053         * elf/Makefile (distribute): Add tst-initorder2.c.
41054         (tests): Add tst-initorder2.
41055         (modules-names): Add tst-initorder2a tst-initorder2b
41056         tst-initorder2c tst-initorder2d.  Add rules to build them.
41057         ($(objpfx)tst-initorder2.out): New rule.
41058         * elf/tst-initorder2.c: New file.
41059         * elf/tst-initorder2.exp: New file.
41060
41061 2011-08-22  Andreas Schwab  <schwab@redhat.com>
41062
41063         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
41064
41065         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
41066         dependencies back to end of function.
41067
41068         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
41069         $(elfobjdir)/ld.so.
41070
41071 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
41072
41073         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
41074         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
41075         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
41076         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
41077         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
41078         of __vdso_gettimeofday.
41079         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
41080         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
41081         attribute_hidden.
41082         (_libc_vdso_platform_setup): Remove initialization of
41083         __vdso_gettimeofday and __vdso_time.
41084
41085 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
41086
41087         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
41088         and fgetc_unlocked.
41089         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
41090         getc_unlocked.
41091
41092         * elf/dl-open.c (add_to_global): Report additions to the global scope
41093         for LD_DEBUG=scopes.
41094         (dl_open_worker): Also print scope of newly loaded dependencies.
41095         (_dl_show_scope): Indicate if there is no scope.
41096
41097         [BZ #13114]
41098         * stdio-common/Makefile (tests): Add bug24.
41099         * stdio-common/bug24.c: New file.
41100
41101 2011-08-19  Andreas Jaeger  <aj@suse.de>
41102
41103         [BZ #13114]
41104         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
41105         non-existant file when using close-on-exec mode.
41106
41107 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
41108
41109         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
41110         the very first instruction.
41111
41112         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
41113         the CFI state in the end.
41114         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
41115         inclusion of dl-trampoline.h.
41116         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
41117
41118 2011-08-19  Andreas Schwab  <schwab@redhat.com>
41119
41120         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
41121         expectations for long double.
41122
41123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
41124         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
41125
41126 2011-08-14  David S. Miller  <davem@davemloft.net>
41127
41128         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
41129         artificual limit depends upon the system page size.
41130
41131 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
41132
41133         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
41134         * resolv/Makefile: Define CFLAGS-libresolv.
41135
41136 2011-08-17  Andreas Schwab  <schwab@redhat.com>
41137
41138         * nss/makedb.c (compute_tables): Make variables used in nested
41139         function static.
41140
41141 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
41142
41143         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
41144         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
41145         if buffer was too small.
41146
41147         * elf/pldd.c (main): Attach to all threads in the process.
41148         Rewrite /proc handling to use *at functions.
41149
41150 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
41151
41152         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
41153         specifies first scope to show.
41154         (dl_open_worker): Update callers.  Move printing scope of new
41155         object to before the relocation.
41156         * elf/rtld.c (dl_main): Update _dl_show_scope call.
41157         * sysdeps/generic/ldsodefs.h: Update declaration.
41158
41159         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
41160         string for the scope number.
41161
41162 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
41163
41164         * nscd/servicescache.c (cache_addserv): Make sure written is always
41165         initialized.
41166
41167 2011-08-14  Roland McGrath  <roland@hack.frob.com>
41168
41169         * sysdeps/i386/i486/bits/atomic.h
41170         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
41171         statement expression, so as to suppress "set but not used" warning.
41172         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
41173
41174         * string/strncat.c (STRNCAT): Use prototype definition.
41175
41176         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
41177         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
41178         -Iprograms here.
41179         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
41180         (localedef-modules): Add localedef.
41181         (locale-modules): Add locale.
41182
41183         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
41184         * elf/rtld.c (dl_main): Invert order of assignment in last change,
41185         to avoid a warning.
41186
41187 2011-08-14  David S. Miller  <davem@davemloft.net>
41188
41189         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
41190         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
41191
41192 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
41193
41194         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
41195         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
41196         * elf/rtld.c (dl_main): Set l_name of vDSO.
41197         Call _dl_show_scope when DL_DEBUG_SCOPES.
41198         (process_dl_debug): Recognize scopes flag and also set it for all.
41199         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
41200         Declare _dl_show_scope.
41201
41202         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
41203         (do_dlopen): Pass caller_dlopen to dl_open.
41204         (__libc_dlopen_mode): Initialize caller_dlopen.
41205
41206         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
41207         of libc.  Make tolower call locale-independent.  Optimize a bit by
41208         using isdigit instead of isalnum.
41209         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
41210
41211 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
41212
41213         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
41214         was a dependency or dynamically loaded.
41215
41216 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
41217
41218         * intl/l10nflist.c: Allow architecture-specific pop function.
41219         * sysdeps/x86_64/l10nflist.c: New file.
41220
41221         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
41222         classification.
41223
41224 2011-08-10  Andreas Schwab  <schwab@redhat.com>
41225
41226         * include/dirent.h: Add libc_hidden_proto for scandirat and
41227         scandirat64.  Don't declare __scandirat64.
41228         * dirent/scandirat.c: Add libc_hidden_def.
41229         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
41230         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
41231
41232 2011-08-10  David S. Miller  <davem@davemloft.net>
41233
41234         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
41235         enum.
41236         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
41237         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
41238         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
41239
41240 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
41241
41242         * Versions.def [libc]: Add GLIBC_2.15.
41243         * dirent/Makefile (routines): Add scandirat and scandirat64.
41244         * dirent/Versions [libc]: Export scandirat and scandirat64 for
41245         GLIBC_2.15.
41246         * dirent/dirent.h: Declare scandirat and scandirat64.
41247         * dirent/scandirat.c: New file.
41248         * dirent/scandirat64.c: New file.
41249         * sysdeps/wordsize-64/scandirat.c: New file.
41250         * sysdeps/wordsize-64/scandirat64.c: New file.
41251         * dirent/opendir.c: Define opendirat.
41252         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
41253         using scandirat.
41254         * dirent/scandir64.c: Adjust for scandir.c change.
41255         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
41256         __scandirat64, and __scandir_cancel_handler.
41257         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
41258         additional parameter and use openat instead of open (outside of ld.so).
41259         Add new __opendir as wrapper around __opendirat.
41260         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
41261         here without requiring old scandirat implementation.
41262
41263 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
41264
41265         * dirent/scandir.c (cancel_handler): Renamed to
41266         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
41267         defined.  Adjust users.
41268         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
41269         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
41270
41271 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
41272
41273         * string/test-string.h (IMPL): Use __STRING to expand name and then
41274         stringify it.
41275
41276         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
41277         of cleanups.
41278
41279 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41280
41281         * string/Makefile: Update.
41282         (strop-tests): Append strncat.
41283         * string/test-wcscmp.c: New file.
41284         New comprehensive test for wcscmp.
41285         * string/test-strcmp.c: Update.
41286         (WIDE): New define.
41287
41288 2011-07-22  Andreas Schwab  <schwab@redhat.com>
41289
41290         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
41291         line.
41292
41293 2011-07-26  Andreas Schwab  <schwab@redhat.com>
41294
41295         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
41296         encoding to ACE if AI_IDN.
41297
41298 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
41299
41300         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
41301         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
41302
41303 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
41304
41305         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
41306         Fix overflow bug in strncat.
41307         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
41308
41309         * string/test-strncat.c: Update.
41310         Add new tests for checking overflow bugs.
41311
41312 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
41313
41314         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41315         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
41316         * sysdeps/i386/i686/multiarch/strcat.S: New file.
41317         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
41318         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
41319         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
41320         * sysdeps/i386/i686/multiarch/strncat.S: New file.
41321         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
41322         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
41323
41324         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
41325         (USE_AS_STRCAT): Define.
41326         Add strcat and strncat support.
41327         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
41328
41329 2011-07-25  Andreas Schwab  <schwab@redhat.com>
41330
41331         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
41332         __n bigger than INT_MAX+1.
41333         (__strncmp_g): Likewise.
41334
41335 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
41336
41337         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
41338         * libio/stido.h: Likewise.
41339
41340         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
41341         (AF_NFC): Define.
41342         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
41343         (AF_NFC): Define.
41344
41345         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
41346         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
41347         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
41348         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
41349         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
41350
41351         [BZ #13021]
41352         * scripts/test-installation.pl: Don't expect libnss_test1 to be
41353         installed.
41354
41355         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
41356         typo.
41357         (_dl_x86_64_save_sse): Likewise.
41358
41359 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
41360
41361         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
41362         OSXSAVE.
41363         (_dl_x86_64_save_sse): Likewise.
41364
41365         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
41366
41367         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
41368
41369 2011-07-21  Andreas Schwab  <schwab@redhat.com>
41370
41371         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
41372         change.
41373         (_dl_x86_64_save_sse): Use correct AVX check.
41374
41375 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41376
41377         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
41378         bug in strncpy/strncat.
41379         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
41380
41381 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
41382
41383         * string/tester.c (test_strcat): Add tests for different alignments
41384         of source and destination.
41385         (test_strncat): Likewise.
41386
41387 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
41388
41389         [BZ #12852]
41390         * posix/glob.c (glob): Check passed in values before using them in
41391         expressions to avoid some overflows.
41392         (glob_in_dir): Likewise.
41393
41394         [BZ #13007]
41395         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
41396         check for AVX enablement so that we don't crash with old kernels and
41397         new hardware.
41398         * elf/tst-audit4.c: Add same checks here.
41399         * elf/tst-audit6.c: Likewise.
41400
41401         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
41402
41403 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
41404
41405         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
41406
41407 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
41408
41409         * po/cs.po: Update from translation team.
41410         * po/bg.po: Likewise.
41411
41412 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
41413
41414         * misc/sys/cdefs.h: Add support for const attribute.
41415         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
41416         to gnu_dev_{major,minor,makedev} functions.
41417
41418 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
41419
41420         * intl/dcigettext.c (get_output_charset): Add missing bracket.
41421
41422 2011-07-20  Andreas Schwab  <schwab@redhat.com>
41423
41424         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
41425         strlen results.
41426
41427 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41428
41429         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
41430         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
41431         register in order to avoid conflicts with the soft frame pointer
41432         being held in r11 when necessary.
41433         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
41434         (INTERNAL_VSYSCALL_NCS): Likewise.
41435
41436 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
41437
41438         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
41439         * elf/dl-fini.c (_dl_fini): Adjust caller.
41440         * elf/dl-close.c (_dl_close_worker): Likewise.
41441         * sysdeps/generic/ldsodefs.h: Adjust declaration.
41442
41443 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
41444
41445         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
41446         "aux_cache->nlibs < 0".
41447
41448         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
41449         in the reload-count case.
41450
41451 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
41452
41453         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41454         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
41455         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
41456         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
41457         * sysdeps/x86_64/multiarch/strcat.S: New file.
41458         * sysdeps/x86_64/multiarch/strncat.S: New file.
41459         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
41460         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
41461         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
41462         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
41463         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
41464         (USE_AS_STRCAT): Define.
41465         Add strcat and strncat support.
41466         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
41467         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
41468         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
41469         * string/strncat.c: Update.
41470         (USE_AS_STRNCAT): Define.
41471         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
41472         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
41473         and i7.
41474         * sysdeps/x86_64/multiarch/init-arch.h
41475         (bit_Prefer_PMINUB_for_stringop): New.
41476         (index_Prefer_PMINUB_for_stringop): Likewise.
41477         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
41478         bit_Prefer_PMINUB_for_stringop.
41479
41480 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
41481
41482         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
41483         buffer64.
41484         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
41485         of casting of buffer.
41486         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
41487         buffer32 and buffer64.
41488         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
41489         writes instead of casting of buffer.
41490         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
41491         buffer32.
41492         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
41493         casting of buffer.
41494
41495 2011-07-19  Andreas Schwab  <schwab@redhat.com>
41496
41497         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
41498
41499 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
41500
41501         * nscd/nscd.c (termination_handler): Don't do anything for a database
41502         if it has not yet been initialized.
41503
41504 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
41505
41506         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
41507
41508 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
41509
41510         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
41511
41512 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
41513
41514         * po/nl.po: Update from translation team.
41515         * po/sv.po: Likewise.
41516
41517 2011-07-16  Roland McGrath  <roland@hack.frob.com>
41518
41519         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
41520         now disallowed by GCC.
41521
41522         * configure.in (use-default-link): Default to yes if a test -shared
41523         link meets our qualifications.
41524         * configure: Regenerated.
41525
41526         * config.make.in (output-format): New variable.
41527         * configure.in: Check for ld --print-output-format support.
41528         * configure: Regenerated.
41529         * Makerules ($(common-objpfx)format.lds)
41530         [$(output-format) != unknown]: Just use $(output-format),
41531         instead of the linker-script munging.
41532
41533 2011-07-14  Roland McGrath  <roland@hack.frob.com>
41534
41535         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
41536         of $(common-objpfx)shlib.lds.
41537         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
41538
41539         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
41540         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
41541
41542         * configure.in (-z relro check): Adjust test code to add a large
41543         writable data section after it.
41544         * configure: Regenerated.
41545
41546 2011-07-11  Roland McGrath  <roland@hack.frob.com>
41547
41548         * configure.in (-z relro check): Fix test code to make the variable
41549         truly const.
41550         * configure: Regenerated.
41551
41552 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
41553
41554         * nscd/nscd.h (struct traced_file): Define.
41555         (struct database_dyn): Remove inotify_descr, reset_res, and filename
41556         elements.  Add traced_files.
41557         (inotify_fd): Declare.
41558         (register_traced_file): Declare.
41559         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
41560         (inotify_fd): Export.
41561         (resolv_conf_descr): Remove.
41562         (nscd_init): Move inotify descriptor creation to main.
41563         Don't register files for notification here.
41564         (register_traced_file): New function.
41565         (invalidate_cache): Don't use reset_res to determine whether to call
41566         res_init, go through the list of registered files.
41567         (main_loop_poll): The inotify descriptors are now stored in the
41568         structures for the traced files.
41569         (main_loop_epoll): Likewise
41570         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
41571         to __nss_disable_nscd.
41572         * nscd/cache.c (prune_cache): There is no single inotify descriptor
41573         for a database anymore.  Check the records for all the registered
41574         files instead.
41575         * nss/Makefile (libnss_files-routines): Add files-init.
41576         (libnss_db-routines): Add db-init.
41577         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
41578         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
41579         * nss/nss_db/db-init.c: New file.
41580         * nss/nss_files/files-init.c: New file.
41581         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
41582         __nss_lookup_function.
41583         (__nss_lookup_function): Call nss_load_library.
41584         (nss_load_all_libraries): New function.
41585         (__nss_disable_nscd): Take parameter with callback function for files
41586         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
41587         used for the cached services.
41588         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
41589         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
41590         options for features to all the files in nscd.
41591
41592         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
41593
41594 2011-07-10  Roland McGrath  <roland@hack.frob.com>
41595
41596         * csu/elf-init.c (__libc_csu_init): Comment typo.
41597
41598 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
41599
41600         * po/pl.po: Update from translation team.
41601         * po/ja.po: Likewise.
41602         * po/ru.po: Likewise.
41603         * po/ko.po: Likewise.
41604         * po/fr.po: Likewise.
41605
41606 2011-07-09  Roland McGrath  <roland@hack.frob.com>
41607
41608         * configure.in (.ctors/.dtors header and trailer check):
41609         Use an empirical test on a built program.
41610         * configure: Regenerated.
41611
41612         * configure.in (-z relro check): Use an empirical test on a built DSO.
41613         Detect, but do not require, on ia64.
41614         * configure: Regenerated.
41615
41616         * configure.in (READELF): Find it with AC_CHECK_TOOL.
41617         Update tests that use readelf to use $READELF instead.
41618         * configure: Regenerated.
41619
41620 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
41621
41622         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
41623         if the result is not used.
41624
41625 2011-07-05  Andreas Jaeger  <aj@suse.de>
41626
41627         [BZ#9696]
41628         * stdlib/tst-strtod.c: Add testcase.
41629
41630 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
41631
41632         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
41633         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
41634         The latter has a higher limit.  Take additional parameter to pass to
41635         the new function.
41636         (__pathconf): Pass file to __statfs_link_max.
41637         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
41638         __statfs_link_max.
41639         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
41640         __statfs_link_max.
41641
41642         [BZ #12868]
41643         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
41644         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
41645         Handle Lustre.
41646         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
41647         (__statfs_filesize_max): Likewise.
41648         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
41649
41650 2011-07-05  Andreas Jaeger  <aj@suse.de>
41651
41652         * resolv/res_comp.c (dn_skipname): Remove unused variable.
41653
41654 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
41655
41656         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
41657         `status' variable.
41658         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
41659         Likewise.
41660
41661 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
41662
41663         * Makefile (strop-tests): Add strncat.
41664         * string/test-strncat.c: New file.
41665
41666 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
41667
41668         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
41669
41670 2011-06-21  Andreas Jaeger  <aj@suse.de>
41671
41672         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
41673         Copy rule from iconvdata/Makefile.
41674
41675 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
41676
41677         [BZ #12922]
41678         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
41679         but no long options are defined, just return 'W'.
41680
41681 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
41682
41683         [BZ #9696]
41684         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
41685
41686 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
41687
41688         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
41689         netgroups to read.
41690         (innetgr): Likewise.
41691
41692 2011-07-05  Roland McGrath  <roland@hack.frob.com>
41693
41694         * config.make.in (install_root): Default to $(DESTDIR).
41695
41696 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
41697
41698         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
41699
41700 2011-07-02  Roland McGrath  <roland@hack.frob.com>
41701
41702         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
41703
41704         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
41705         containing directory rather than embedding absolute directory names.
41706
41707         * scripts/check-local-headers.sh: Rewritten using awk.
41708         Match by word, not by line.  Print error messages for matches.
41709         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
41710
41711         * Makerules [shlib-lds-flags empty]:
41712         ($(common-objpfx)libc_pic.opts): New target.
41713         ($(common-objpfx)libc_pic.os.clean): New target.
41714         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
41715
41716         * config.make.in (OBJCOPY): New variable.
41717         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
41718         * configure: Regenerated.
41719
41720         * config.make.in (use-default-link): New variable.
41721         * configure.in (use_default_link): Grok --with-default-link to set it.
41722         * configure: Regenerated.
41723         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
41724         (shlib-lds, shlib-lds-flags): Define to empty.
41725
41726         * Makerules (shlib-lds): New variable.
41727         (shlib-lds-flags): New variable.
41728         (build-shlib, build-moduile, build-module-asneeded): Use it.
41729         ($(common-objpfx)libc.so): Use $(shlib-lds).
41730         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
41731         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
41732
41733         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
41734         DT_FLAGS/DT_FLAGS_1 with zero flags.
41735
41736         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
41737         linker script munging.
41738
41739 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
41740
41741         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
41742         as 128-bit value.
41743         * crypt/sha512.c (sha512_process_block): Perform total addition using
41744         128-bit if possible.
41745         (__sha512_finish_ctx): Likewise.
41746         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
41747         as 64-bit value.
41748         * crypt/sha256.c (SWAP64): Define.
41749         (sha256_process_block): Perform total addition using 64-bit if
41750         possible.
41751         (__sha256_finish_ctx): Likewise.
41752
41753 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
41754
41755         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
41756         * nscd/initgrcache.c (addinitgroupsX): Likewise.
41757         * nscd/hstcache.c (cache_addhst): Likewise.
41758         * nscd/grpcache.c (cache_addgr): Likewise.
41759         * nscd/aicache.c (addhstaiX): Likewise
41760         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
41761
41762 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
41763
41764         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
41765         * nscd/initgrcache.c (addinitgroupsX): Likewise.
41766         * nscd/hstcache.c (cache_addhst): Likewise.
41767         * nscd/grpcache.c (cache_addgr): Likewise.
41768         * nscd/aicache.c (addhstaiX): Likewise
41769
41770 2011-07-01  Andreas Schwab  <schwab@redhat.com>
41771
41772         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
41773         domain only when needed.
41774
41775 2011-06-30  Andreas Schwab  <schwab@redhat.com>
41776
41777         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
41778         is always restored.
41779
41780 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
41781
41782         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
41783         are re-adding the entry.
41784         * nscd/servicescache.c (cache_addserv): Likewise.
41785
41786 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
41787
41788         * sysdeps/generic/dl-irel.h: fix protection against multiple
41789         inclusions.
41790         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
41791
41792 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
41793
41794         [BZ #12935]
41795         * malloc/memusage.sh: Fix quoting in message.
41796         * debug/xtrace.sh: Likewise.
41797
41798         * configure.in: Remove support for --experimental-malloc option, make
41799         it the default.
41800         * config.make.in: Likewise.
41801         * malloc/Makefile: Likewise.
41802
41803 2011-06-27  Andreas Schwab  <schwab@redhat.com>
41804
41805         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
41806         two-byte characters.
41807
41808 2011-06-27  Roland McGrath  <roland@hack.frob.com>
41809
41810         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
41811         AC_CACHE_CHECK invocation.
41812         * configure: Regenerated.
41813
41814         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
41815
41816 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
41817
41818         [BZ #12350]
41819         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
41820         bit from old_res_options.
41821
41822         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
41823
41824         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
41825         value type for setfct.
41826
41827 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
41828
41829         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
41830         __gettimeofday instead of gettimeofday.
41831
41832 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
41833
41834         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
41835
41836 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
41837
41838         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
41839
41840         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
41841         info.
41842
41843 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
41844
41845         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41846         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
41847         strcpy-sse2-unaligned strncpy-sse2-unaligned
41848         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
41849         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
41850         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
41851         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
41852         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
41853         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
41854         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
41855         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
41856         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
41857         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
41858         (STRCPY): Support SSE2 and SSSE3 versions.
41859
41860 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
41861
41862         [BZ #12874]
41863         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
41864         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
41865         kernels which artificially limit size of requests.
41866
41867 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
41868
41869         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41870         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
41871         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
41872         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
41873         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
41874         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
41875         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
41876         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
41877         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
41878         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
41879         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
41880         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
41881         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
41882         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
41883         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
41884         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
41885         Enable unaligned load optimization for Intel Core i3, i5 and i7
41886         processors.
41887         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
41888         Define.
41889         (index_Fast_Unaligned_Load): Define.
41890         (HAS_FAST_UNALIGNED_LOAD): Define.
41891
41892 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
41893
41894         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
41895
41896 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
41897
41898         [BZ #12907]
41899         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
41900         until it is clear that the information is realy needed.
41901         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
41902
41903 2011-06-22  Andreas Schwab  <schwab@redhat.com>
41904
41905         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
41906
41907 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
41908
41909         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
41910         /sys/devices/system/cpu/online if it is usable.
41911
41912         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
41913         reading the information from the /proc filesystem to once a second.
41914
41915 2011-06-21  Andreas Jaeger  <aj@suse.de>
41916
41917         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
41918         NULL after inclusion of kernel headers.
41919
41920 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
41921
41922         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
41923         calls to internal_setent.
41924
41925         [BZ #12885]
41926         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
41927         addresses using gethostbyname4_r ignore IPv4 addresses.
41928
41929         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
41930         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
41931
41932         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
41933
41934 2011-06-20  David S. Miller  <davem@davemloft.net>
41935
41936         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
41937         inclusions.
41938         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
41939
41940         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
41941         (elf_irel): Use it.
41942         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
41943         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
41944         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
41945         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
41946         * sysdeps/x86_64/dl-irel.h: Likewise.
41947
41948         * elf/dl-runtime.c: Use elf_ifunc_invoke.
41949         * elf/dl-sym.c: Likewise.
41950
41951 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
41952
41953         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
41954         need to dereference resplen2.
41955
41956 2011-06-14  Andreas Schwab  <schwab@redhat.com>
41957
41958         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
41959
41960 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
41961
41962         * Makeconfig: Define vardbdir and inst_vardbdir.
41963         * nss/Makefile: Add rules to install db-Makefile.
41964
41965         * nss/nss_db/db-XXX.c: Cleanup.
41966
41967         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
41968         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
41969         GLIBC_PRIVATE.
41970         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
41971         * nss/makedb.c: Implement -g option to specify that value strings
41972         are generated and should not be added to table iterated over for
41973         get*ent calls.
41974         * nss/nss_db/db-initgroups.c: New file.
41975
41976         * nss/getent.c: Add support for initgroups lookups through getgrouplist
41977         interface.
41978
41979         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
41980         (internal_getgrouplist): Adjust to name change.
41981         Update use_initgroups_entry if this is not the first call.
41982         * nss/databases.def: Add initgroups entry.
41983
41984         * nss/makedb.c (compute_tables): Check result of multiple hash table
41985         sizes to minimize maximum chain length.
41986
41987 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
41988
41989         * Versions.def: Add entry for libnss_db.
41990         * shlib-versions: Likewise.
41991         * nss/Makefile: Add rules to build libnss_db.
41992         * nss/Versions: Add libnss_db information.  Organize libnss_files
41993         entries better.
41994         * nss/db-Makefile: Add gshadow support.  Change rules for the new
41995         makedb progra.  Some minor improvements to generate smaller files.
41996         * nss/nss_db/nss_db.h: Move NSS database header data structures to
41997         here from...
41998         * nss/makedb.c: ...here.
41999         Improve database format to be smaller and require less memory at
42000         runtime.
42001         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
42002         db anymore.
42003         * nss/nss_db/db-netgrp.c: Likewise.
42004         * nss/nss_db/db-open.c: Likewise.
42005         * nss/nss_files/flies-XXX.x: Adjust comments.
42006         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
42007         * nss/nss_files/files-grp.c: Likewise.
42008         * nss/nss_files/files-hosts.c: Likewise.
42009         * nss/nss_files/files-network.c: Likewise.
42010         * nss/nss_files/files-proto.c: Likewise.
42011         * nss/nss_files/files-pwd.c: Likewise.
42012         * nss/nss_files/files-rpc.c: Likewise.
42013         * nss/nss_files/files-service.c: Likewise.
42014         * nss/nss_files/files-sgrp.c: Likewise.
42015         * nss/nss_files/files-spwd.c: Likewise.
42016         * nss/nss_db/db-alias.c: Removed.
42017         * nss/nss_db/dummy-db.h: Removed.
42018
42019 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
42020
42021         * nss/makedb.c: Rewritten to not use database library.
42022         * nss/Makefile: Update to build new makedb program.
42023
42024 2011-06-14  Andreas Jaeger  <aj@suse.de>
42025
42026         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
42027         memset declaration.
42028
42029 2011-06-10  Andreas Schwab  <schwab@redhat.com>
42030
42031         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
42032         tmpbuf.
42033
42034 2011-06-10  Roland McGrath  <roland@hack.frob.com>
42035
42036         * Makerules (shlib.lds): Fail if the linker script comes out empty.
42037         * elf/Makefile ($(objpfx)ld.so): Likewise.
42038
42039         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
42040         Don't list ld.so twice in dependencies.
42041
42042         * posix/bug-regex31.c: Include <stdlib.h>.
42043
42044         * nscd/hstcache.c (cache_addhst): Remove unused variable.
42045
42046         * nis/nss_compat/compat-spwd.c
42047         (getspent_next_nss_netgr): Remove unused variable.
42048         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
42049
42050         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
42051         nonmembers" output to use the right array.
42052
42053         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
42054
42055         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
42056
42057         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
42058         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
42059         * catgets/gencat.c (read_input_file): Likewise.
42060         * locale/programs/locarchive.c (enlarge_archive): Likewise.
42061
42062         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
42063         variable definition inside #if's controlling its use.
42064
42065         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
42066
42067         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
42068
42069         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
42070
42071         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
42072         unreachable code.
42073
42074         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
42075
42076         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
42077         * configure: Regenerated.
42078
42079         * Makerules: Revert last change.
42080         * elf/Makefile: Likewise.
42081
42082 2011-06-09  Roland McGrath  <roland@hack.frob.com>
42083
42084         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
42085         * elf/Makefile ($(objpfx)librtld.os): Likewise.
42086         (reloc-link): Likewise.
42087
42088 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
42089
42090         * elf/Makefile: Add rules to build pldd.
42091         * elf/pldd.c: New file.
42092         * elf/pldd-xx.c: New file.
42093
42094 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
42095
42096         * version.h: Update for 2.15 development version.
42097
42098 2011-06-07  David S. Miller  <davem@davemloft.net>
42099
42100         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
42101         ifuncs.
42102         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
42103         elf_machine_lazy_rel): Likewise.
42104         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
42105         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
42106         elf_machine_lazy_rel): Likewise.
42107         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
42108         dl_hwcap via passed in argument.
42109         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
42110         Likewise.
42111
42112 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42113
42114         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
42115
42116 2011-06-06  Roland McGrath  <roland@hack.frob.com>
42117
42118         [BZ #12849]
42119         * manual/fdl-1.1.texi: New file, verbatim from:
42120         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
42121         * manual/lgpl-2.1.texi: New file, verbatim from:
42122         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
42123         * manual/Makefile (licenses): New variable, list those new file names.
42124         (texis): Use it.
42125         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
42126
42127         * manual/fdl.texi: File removed.
42128         * manual/lesser.texi: File removed.
42129         * manual/libc.texinfo (Copying, Documentation License):
42130         Use new @include file names, put @appendix directive before @include.
42131
42132 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
42133
42134         [BZ #12841]
42135         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
42136         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
42137         (mq_open): Add __NTH.
42138
42139 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
42140
42141         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
42142         Assume Intel Core i3/i5/i7 processor if AVX is available.
42143
42144 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
42145
42146         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
42147         typo.
42148
42149 2011-05-31  Andreas Schwab  <schwab@redhat.com>
42150
42151         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
42152         memory.  Use alloca_account.  Fix memory leak when retrying.
42153
42154 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
42155
42156         * version.h (RELEASE): Bump for 2.14 release.
42157         * include/features.h (__GLIBC_MINOR__): Bump to 14.
42158
42159         * config.make.in (RANLIB): Remove entry.
42160
42161 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
42162
42163         * po/Makefile (po-sed-cmd): Add ksh to extensions.
42164         (libc.pot): Work around missing support for .ksh extension in xgettext.
42165
42166         [BZ #12684]
42167         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
42168         if both request failed.
42169         (send_dg): In case of server errors clear resplen or *resplen2.
42170
42171         [BZ #12454]
42172         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
42173         when there are multiple maps.
42174         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
42175         (_dl_fini): Remove test here.
42176
42177         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
42178
42179 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
42180
42181         [BZ #12350]
42182         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
42183         bit from old_res_options.
42184         (gaih_inet): Likewise.
42185
42186         [BZ #11099]
42187         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
42188         as signed.
42189
42190         * resolv/res_init.c (res_setoptions): Make the code more compact.
42191
42192         [BZ #11558]
42193         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
42194         set RES_USEVC.
42195
42196         [BZ #11634]
42197         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
42198
42199         * malloc/malloc.h: Mark malloc hook variables as deprecated.
42200
42201         [BZ #11781]
42202         * malloc/malloc.h: Declare malloc hook variables as volatile.
42203
42204         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
42205         in last patch.
42206
42207         [BZ #11799]
42208         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
42209         raise in the comment.
42210         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
42211         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
42212         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
42213
42214 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
42215
42216         [BZ #12811]
42217         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
42218         grow the buffers more if it already has to be sufficient.
42219         (build_wcs_upper_buffer): Likewise.
42220         * posix/regexec.c (check_matching): Likewise.
42221         (clean_state_log_if_needed): Likewise.
42222         (extend_buffers): Don't enlarge buffers beyond size of the input
42223         buffer.
42224         Patches mostly by Emil Wojak <emil@wojak.eu>.
42225         * posix/bug-regex32.c: New file.
42226         * posix/Makefile (tests): Add bug-regex32.
42227
42228         * locale/findlocale.c (_nl_find_locale): Return right away if
42229         _nl_explode_name failed.
42230         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
42231
42232         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
42233
42234         * debug/xtrace.sh: Unify messages.
42235         * malloc/memusage.sh: Likewise.
42236
42237         [BZ #12813]
42238         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
42239         time symbol from vDSO.  Substitute with vsyscall if not available.
42240         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
42241         __vdso_time.
42242
42243         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
42244         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
42245         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
42246         Add sendmmsg and internal_sendmmsg.
42247         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
42248         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
42249         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
42250
42251         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
42252         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
42253         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
42254
42255 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
42256
42257         [BZ #12813]
42258         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
42259         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
42260         available.
42261         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
42262         __vdso_getcpu.
42263
42264         [BZ #12814]
42265         * iconvdata/Makefile (tests): Add bug-iconv9.
42266         * iconvdata/bug-iconv9.c: New file.
42267
42268 2011-05-27  Andreas Schwab  <schwab@redhat.com>
42269
42270         [BZ #12814]
42271         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
42272
42273 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
42274
42275         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
42276         (struct user_regs_struct): Change intcs field back to cs.
42277
42278 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
42279
42280         * po/ja.po: Update from translation team.
42281
42282 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
42283
42284         [BZ #12795]
42285         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
42286         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
42287
42288 2011-05-20  Andreas Schwab  <schwab@redhat.com>
42289
42290         * stdlib/longlong.h: Update from GCC.
42291
42292 2011-05-23  Andreas Schwab  <schwab@redhat.com>
42293
42294         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
42295         parameter name.
42296         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
42297         Add parameter name.
42298         (__sysconf): Pass it down.
42299
42300 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
42301
42302         [BZ #12671]
42303         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
42304         some situations.
42305         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
42306         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
42307         add in in __libc_use_alloca calls.  Adjust callers.
42308         (glob): Use malloc in some situations.
42309
42310         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
42311         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
42312         pltexit.
42313
42314 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
42315
42316         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
42317         and CLOCK_BOOTTIME_ALARM.
42318
42319         [BZ #12782]
42320         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
42321         is returned.
42322
42323         * string/_strerror.c (__strerror_r): Print negative errors as signed
42324         numbers.
42325
42326         [BZ #12777]
42327         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
42328         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
42329         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
42330
42331         * configure.in: Fix typo in redirection and correct removal of test
42332         files in two cases.
42333
42334         [BZ #12788]
42335         * locale/setlocale.c (new_composite_name): Fix test to check for
42336         identical name of all categories.
42337
42338         [BZ #12792]
42339         * libio/filedoalloc.c (local_isatty): New function.
42340         (_IO_file_doallocate): Use local_isatty.
42341         * stdio-common/perror.c (perror): In case a new stream is used
42342         forward the stream error.
42343         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
42344         error flag.
42345
42346 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
42347
42348         [BZ #11869]
42349         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
42350         alloca.
42351         * include/alloca.h (extend_alloca_account): Define.
42352
42353         [BZ #11857]
42354         * posix/regex.h: Fix comments with documentation of user-accessible
42355         fields after compilation and describe correct free'ing of pattern
42356         after re_compile_pattern.
42357         Patch by Reuben Thomas <rrt@sc3d.org>.
42358
42359 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
42360
42361         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
42362         and -mno-altivec to prevent the compiler from using Altivec and/or
42363         VSX instructions when the corresponding registers are not available.
42364
42365 2011-05-19  Andreas Schwab  <schwab@redhat.com>
42366
42367         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
42368
42369 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
42370
42371         * libio/freopen.c (freopen): Use __dup2, not dup2.
42372         * libio/freopen64.c (freopen64): Likewise.
42373
42374 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
42375
42376         [BZ #12775]
42377         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
42378         * math/Makefile (tests): Add test-powl.
42379         (CFLAGS-test-powl.c): Define.
42380         * math/test-powl.c: New file.
42381
42382 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
42383
42384         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
42385
42386 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
42387
42388         [BZ #11837]
42389         * iconvdata/gb18030.c: Update to GB18020-2005.
42390
42391 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
42392
42393         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
42394         RE_SYNTAX_POSIX_AWK): Update to match recent development.
42395         Patch by Aharon Robbins <arnold@skeeve.com>.
42396
42397         [BZ #11892]
42398         * stdlib/putenv.c (putenv): Don't always create copy of the variable
42399         on the stack.
42400
42401         [BZ #11895]
42402         * misc/pselect.c (__pselect): Handle timeout value errors hidden
42403         through underflows.
42404
42405         [BZ #12766]
42406         * misc/error.c (error_at_line): Ensure file_name and old_file_name
42407         point to strings before performing equality test for error_one_per_line
42408         mode.
42409
42410         [BZ #11697]
42411         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
42412
42413         [BZ #11820]
42414         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
42415         (struct user_fpregs_struct): Avoid __uint*_t types.
42416
42417         [BZ #6420]
42418         * malloc/mtrace.c (tr_where): Add additional parameter to point to
42419         symbol info.  Use it instead of calling _dl_addr locally.
42420         (lock_and_info): New function.
42421         (tr_freehook): Call lock_and_info and pass symbol info as additional
42422         parameter to tr_where.
42423         (tr_mallochook): Likewise.
42424         (tr_reallochook): Likewise.
42425         (tr_memalignhook): Likewise.
42426
42427         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
42428         used and couldn't be at all thread-safe.
42429
42430 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
42431
42432         * libio/freopen.c (freopen): Don't close old file descriptor
42433         before the new one is opened.  Instead dup the new file descriptor
42434         to the old one after the new stream is created.
42435         * libio/freopen64.c (freopen64): Likewise.
42436         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
42437         * libio/fileops.c (_IO_new_file_close_it): Handle new
42438         _IO_FLAGS2_NOCLOSE flag.
42439         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
42440         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
42441         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
42442         _IO_FLAGS2_NOCLOSE flag.
42443         * include/unistd.h: Add hidden_proto for dup3.
42444         Define __have_dup3.
42445         * io/dup3.c: Define hidden symbol.
42446         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
42447
42448         [BZ #7101]
42449         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
42450         when an incomplete long option is used.
42451         * posix/tst-getopt_long1.c: New file.
42452         * posix/Makefile (tests): Add tst-getopt_long1.
42453
42454         [BZ #10138]
42455         * scripts/config.guess: Update from autoconf-2.68.
42456         * scripts/config.sub: Likewise.
42457
42458         [BZ #10157]
42459         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
42460         tests into ...
42461         (has_cpuclock): ...this.  New function.
42462         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
42463         macro here based on has_cpuclock code.
42464
42465         [BZ #10149]
42466         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
42467         First byte (not low byte) is now always NUL.
42468         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
42469
42470         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
42471         Use non-cancelable interfaces.
42472
42473         [BZ #9809]
42474         * locale/iso-639.def: Add entry for Sorani.
42475
42476         [BZ #11901]
42477         * include/stdlib.h: Move include protection to the right place.
42478         Define abort_msg_s.  Declare __abort_msg with it.
42479         * stdlib/abort.c (__abort_msg): Adjust type.
42480         * assert/assert.c (__assert_fail_base): New function.  Majority
42481         of code from __assert_fail.  Allocate memory for __abort_msg with
42482         mmap.
42483         (__assert_fail): Now call __assert_fail_base.
42484         * assert/assert-perr.c: Remove bulk of implementation.  Use
42485         __assert_fail_base.
42486         * include/assert.hL Declare __assert_fail_base.
42487         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
42488         mmap.
42489         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
42490
42491 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
42492
42493         [BZ #11952]
42494         [BZ #12453]
42495         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
42496         until all modules are registered in the DTV.
42497         * elf/Makefile: Add rules to build and run tst-tls19.
42498         * elf/tst-tls19.c: New file.
42499         * elf/tst-tls19mod1.c: New file.
42500         * elf/tst-tls19mod2.c: New file.
42501         * elf/tst-tls19mod3.c: New file.
42502         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
42503
42504         [BZ #12083]
42505         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
42506         correctly.
42507
42508         [BZ #12601]
42509         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
42510         two-byte sequence errors.
42511         * iconvdata/Makefile (tests): Add bug-iconv8.
42512         * iconvdata/bug-iconv8.c: New file.
42513
42514         [BZ #12626]
42515         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
42516         buf2 definition.
42517
42518         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
42519
42520         [BZ #12432]
42521         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
42522         (dummy_getcfa): New function.
42523         (init): Get _Unwind_GetCFA address, use dummy if not found.
42524         (backtrace_helper): In recursion check, also check whether CFA changes.
42525         (__backtrace): Completely initialize arg.
42526
42527         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
42528         storing incomplete byte sequence in state object.  Avoid testing for
42529         guaranteed too small input if we know there is enough data available.
42530
42531 2011-05-11  Andreas Schwab  <schwab@redhat.com>
42532
42533         * Makeconfig (+link-pie): Indent.
42534         * Rules (binaries-pie): Define if $(have-fpie) and
42535         $(build-shared).
42536         (binaries-shared): Also filter out $(binaries-pie).
42537         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
42538         * nscd/Makefile (others-pie): Add nscd.
42539         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
42540         ($(objpfx)nscd): Remove command override.
42541         * login/Makefile (others-pie): Add pt_chown.
42542         ($(objpfx)pt_chown): Remove command override.
42543         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
42544         remove command overrides.
42545
42546 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
42547
42548         * libio/tst_putwc.c: Fix error messages.
42549
42550         [BZ #12724]
42551         * libio/fileops.c (_IO_new_file_close_it): Always flush when
42552         currently writing and seek to current position when not.
42553         * libio/Makefile (tests): Add bug-fclose1.
42554         * libio/bug-fclose1.c: New file.
42555
42556 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
42557
42558         [BZ #12511]
42559         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
42560         don't set DF_1_NODELETE here.
42561         (do_lookup_x): When entering new entry test for copy relocation
42562         and if necessary set DF_1_NODELETE flag.
42563         * elf/tst-unique4.cc: New file.
42564         * elf/tst-unique4.h: New file.
42565         * elf/tst-unique4lib.cc: New file.
42566         * elf/Makefile: Add rules to build and run tst-unique4.
42567         Patch by Piotr Bury <pbury@goahead.com>.
42568
42569 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
42570
42571         [BZ #12052]
42572         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
42573
42574         [BZ #12625]
42575         * misc/mntent_r.c (addmntent): Flush the stream after the output
42576
42577         [BZ #12393]
42578         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
42579         (is_trusted_path_normalize): Skip initial colon.  Append slash
42580         to empty buffer.  Duplicate is_trusted_path code but allow
42581         constructed patch to be prefix.
42582         (is_dst): Allow $ORIGIN followed by /.
42583         (_dl_dst_substitute): Correct clearing of check_for_trusted.
42584         Correct testing of result of is_trusted_path_normalize
42585         (decompose_rpath): Fix warning.
42586
42587 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
42588
42589         [BZ #11257]
42590         * grp/initgroups.c (internal_getgrouplist): When we found the service
42591         list through the initgroups entry in nsswitch.conf do not always
42592         continue on a successful lookup.  Don't always use the
42593         __nss_group_database value if it is set.
42594         * nss/nsswitch.conf (initgroups): Change action for successful db
42595         lookup to continue for compatibility.
42596
42597 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
42598
42599         [BZ #11532]
42600         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
42601         and CP774 modules.
42602         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
42603         and CP774 modules.
42604         * iconvdata/tst-tables.sh: Likewise.
42605         * iconvdata/cp770.c: New file.
42606         * iconvdata/cp771.c: New file.
42607         * iconvdata/cp772.c: New file.
42608         * iconvdata/cp773.c: New file.
42609         * iconvdata/cp774.c: New file.
42610         * iconvdata/testdata/CP770: New file.
42611         * iconvdata/testdata/CP770..UTF8: New file.
42612         * iconvdata/testdata/CP771: New file.
42613         * iconvdata/testdata/CP771..UTF8: New file.
42614         * iconvdata/testdata/CP772: New file.
42615         * iconvdata/testdata/CP772..UTF8: New file.
42616         * iconvdata/testdata/CP773: New file.
42617         * iconvdata/testdata/CP773..UTF8: New file.
42618         * iconvdata/testdata/CP774: New file.
42619         * iconvdata/testdata/CP774..UTF8: New file.
42620
42621         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
42622         END CHARMAP line.
42623         * iconvdata/gen-8bit-gap.sh: Likewise.
42624         * iconvdata/gen-8bit.sh: Likewise.
42625
42626         * locale/iso-639.def: Add ary entry.
42627
42628         [BZ #11258]
42629         * locale/C-translit.h.in: Add U20A1 transliteration.
42630
42631         [BZ #12178]
42632         * locale/iso-639.def: Add wae entry.
42633         Patch by Kevin Bortis <bortis@translate-wae.ch>.
42634
42635         [BZ #12545]
42636         * locale/programs/localedef.c (construct_output_path): Use ssize_t
42637         for n.
42638
42639         [BZ #12711]
42640         * locale/C-translit.h.in: Add entry for U20B9.
42641         Patch by pravin.d.s@gmail.com.
42642
42643 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
42644
42645         [BZ #12713]
42646         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
42647         ENAMETOOLONG use generic getcwd.
42648         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
42649         in rtld.  Use *stat64.
42650         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
42651         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
42652         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
42653         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
42654         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
42655         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
42656         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
42657         __fstatat64 macros.
42658         * include/dirent.h: Add libc_hidden_proto for rewinddir.
42659         * dirent/rewinddir.c: Add libc_hidden_def.
42660         * sysdeps/mach/hurd/rewinddir.c: Likewise.
42661         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
42662
42663         * include/dirent.h (__alloc_dir): Add flags parameter.
42664         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
42665         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
42666         __alloc_dir.
42667         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
42668         from fdopendir if O_CLOEXEC is already set.
42669
42670 2011-03-15  Alan Modra  <amodra@gmail.com>
42671
42672         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
42673         l_tls_firstbyte_offset non-zero.  Save padding offset in
42674         l_tls_firstbyte_offset for later use.
42675         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
42676         freeing static tls block.
42677
42678 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
42679
42680         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
42681         where #ifdef was intended.  The intent is to prevent ARG_MAX from
42682         being defined by the kernel headers.
42683
42684 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
42685
42686         [BZ #12734]
42687         * resolv/resolv.h: Define RES_NOTLDQUERY.
42688         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
42689         no-tld-query and set RES_NOTLDQUERY.
42690         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
42691         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
42692         modern BIND to search name as TLD unless forbidden.
42693
42694 2011-05-07  Petr Baudis  <pasky@suse.cz>
42695             Ulrich Drepper  <drepper@gmail.com>
42696
42697         [BZ #12393]
42698         * elf/dl-load.c (fillin_rpath): Move trusted path check...
42699         (is_trusted_path): ...to here.
42700         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
42701         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
42702         using is_trusted_path_normalize() in setuid scripts.
42703
42704 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
42705
42706         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
42707         __BEGIN/__END_DECLS.
42708
42709 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
42710
42711         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
42712         NSS_STATUS_NOTFOUND if no record was found.
42713
42714 2011-05-05  Andreas Schwab  <schwab@redhat.com>
42715
42716         * sunrpc/Makefile (headers): Add rpc/netdb.h.
42717         (headers-not-in-tirpc): Remove rpc/netdb.h
42718         * resolv/netdb.h: Revert last change.
42719
42720 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
42721
42722         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
42723         circular dependency between libgcc.a and libc.a.
42724
42725 2011-05-05  Andreas Schwab  <schwab@redhat.com>
42726
42727         * resolv/netdb.h: Don't include <rpc/netdb.h>.
42728         * nis/Makefile: Don't install rpcsvc/*.
42729         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
42730         instead of <rpc/types.h>.
42731         (MAXHOSTNAMELEN): Define.
42732
42733 2011-05-03  Andreas Schwab  <schwab@redhat.com>
42734
42735         * elf/ldconfig.c (add_dir): Don't crash on empty path.
42736
42737 2011-04-28  Maciej Babinski  <mbabinski@google.com>
42738
42739         [BZ #12714]
42740         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
42741         gethostbyname4_r when IPv6 results are possible.
42742
42743 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
42744
42745         [BZ #12723]
42746         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
42747         _PC_PIPE_BUF handling.
42748
42749 2011-04-30  Bruno Haible  <bruno@clisp.org>
42750
42751         [BZ #12717]
42752         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
42753         * resolv/netdb.h (getnameinfo): Change type of flags parameter
42754         to 'int'.
42755         * inet/getnameinfo.c (getnameinfo): Likewise.
42756
42757 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
42758
42759         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
42760         to groups setting in database lookup.
42761         * nss/nsswitch.conf: Add initgroups entry.
42762
42763 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
42764
42765         [BZ #12685]
42766         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
42767         mode string.
42768         Patch by Eric Blake <eblake@redhat.com>.
42769
42770 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
42771
42772         * sunrpc/Makefile (need-export-routines): Add svc_run.
42773         (routines): Remove svc_run.
42774         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
42775         * sunrpc/clnt_perr.c (clnt_perrno): Export.
42776         * sunrpc/svc_run.c (svc_run): Likewise.
42777         * sunrpc/svc_udp.c (svcudp_create): Likewise.
42778
42779 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
42780
42781         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
42782         problem in reallocation in last patch.
42783
42784 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
42785
42786         * sunrpc/Makefile: Move inclusion of Rules.
42787
42788 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
42789
42790         * nss/nss_files/files-initgroups.c: New file.
42791         * nss/Makefile (libnss_files-routines): Add files-initgroups.
42792         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
42793         _nss_files_initgroups_dyn.
42794
42795 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
42796
42797         * elf/elf.h (R_ARM_IRELATIVE): Define.
42798
42799 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
42800
42801         * po/ru.po: Update from translation team.
42802
42803 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
42804
42805         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
42806         dependencies.
42807
42808 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
42809
42810         [BZ #12653]
42811         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
42812         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
42813         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
42814         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42815         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42816
42817 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
42818
42819         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
42820         differing bytes.
42821         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
42822         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
42823         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
42824
42825 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
42826
42827         [BZ #12420]
42828         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
42829         storing it.
42830         * stdlib/bug-getcontext.c: New file.
42831         * stdlib/Makefile: Add rules to build and run bug-getcontext.
42832
42833 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42834
42835         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
42836         instructions into .machine "z9-109".
42837         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
42838         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
42839
42840 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42841
42842         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
42843         between environment variables and auxiliary vector.
42844
42845 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
42846
42847         * Makefile: Add rules to build linkobj/libc.so.
42848         * include/libc-symbols.h: Define libc_hidden_nolink.
42849         * include/rpc/auth.h: Mark functions which are to be hidden.
42850         * include/rpc/auth_des.h: Likewise.
42851         * include/rpc/auth_unix.h: Likewise.
42852         * include/rpc/clnt.h: Likewise.
42853         * include/rpc/des_crypt.h: Likewise.
42854         * include/rpc/key_prot.h: Likewise.
42855         * include/rpc/pmap_clnt.h: Likewise.
42856         * include/rpc/pmap_prot.h: Likewise.
42857         * include/rpc/pmap_rmt.h: Likewise.
42858         * include/rpc/rpc_msg.h: Likewise.
42859         * include/rpc/svc.h: Likewise.
42860         * include/rpc/svc_auth.h: Likewise.
42861         * include/rpc/xdr.h: Likewise.
42862         * nis/Makefile: Link all DSOs against linkobj/libc.so.
42863         * nss/Makefile: Likewise.
42864         * sunrpc/Makefile: Don't install headers.  Build library with normal
42865         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
42866         * sunrpc/auth_des.c: Hide exported symbols by default, export some
42867         for the compat linking library.  Remove use of INTDEF/INTUSE.
42868         * sunrpc/auth_none.c: Likewise.
42869         * sunrpc/auth_unix.c: Likewise.
42870         * sunrpc/authdes_prot.c: Likewise.
42871         * sunrpc/authuxprot.c: Likewise.
42872         * sunrpc/clnt_gen.c: Likewise.
42873         * sunrpc/clnt_perr.c: Likewise.
42874         * sunrpc/clnt_raw.c: Likewise.
42875         * sunrpc/clnt_simp.c: Likewise.
42876         * sunrpc/clnt_tcp.c: Likewise.
42877         * sunrpc/clnt_udp.c: Likewise.
42878         * sunrpc/clnt_unix.c: Likewise.
42879         * sunrpc/des_crypt.c: Likewise.
42880         * sunrpc/des_soft.c: Likewise.
42881         * sunrpc/get_myaddr.c: Likewise.
42882         * sunrpc/key_call.c: Likewise.
42883         * sunrpc/key_prot.c: Likewise.
42884         * sunrpc/netname.c: Likewise.
42885         * sunrpc/pm_getmaps.c: Likewise.
42886         * sunrpc/pm_getport.c: Likewise.
42887         * sunrpc/pmap_clnt.c: Likewise.
42888         * sunrpc/pmap_prot.c: Likewise.
42889         * sunrpc/pmap_prot2.c: Likewise.
42890         * sunrpc/pmap_rmt.c: Likewise.
42891         * sunrpc/publickey.c: Likewise.
42892         * sunrpc/rpc_cmsg.c: Likewise.
42893         * sunrpc/rpc_common.c: Likewise.
42894         * sunrpc/rpc_dtable.c: Likewise.
42895         * sunrpc/rpc_prot.c: Likewise.
42896         * sunrpc/rpc_thread.c: Likewise.
42897         * sunrpc/rtime.c: Likewise.
42898         * sunrpc/svc.c: Likewise.
42899         * sunrpc/svc_auth.c: Likewise.
42900         * sunrpc/svc_authux.c: Likewise.
42901         * sunrpc/svc_raw.c: Likewise.
42902         * sunrpc/svc_run.c: Likewise.
42903         * sunrpc/svc_simple.c: Likewise.
42904         * sunrpc/svc_tcp.c: Likewise.
42905         * sunrpc/svc_udp.c: Likewise.
42906         * sunrpc/svc_unix.c: Likewise.
42907         * sunrpc/svcauth_des.c: Likewise.
42908         * sunrpc/xcrypt.c: Likewise.
42909         * sunrpc/xdr.c: Likewise.
42910         * sunrpc/xdr_array.c: Likewise.
42911         * sunrpc/xdr_float.c: Likewise.
42912         * sunrpc/xdr_intXX_t.c: Likewise.
42913         * sunrpc/xdr_mem.c: Likewise.
42914         * sunrpc/xdr_rec.c: Likewise.
42915         * sunrpc/xdr_ref.c: Likewise.
42916         * sunrpc/xdr_sizeof.c: Likewise.
42917         * sunrpc/xdr_stdio.c: Likewise.
42918
42919 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
42920
42921         [BZ #12650]
42922         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
42923         * sysdeps/ia64/dl-tls.h: Likewise.
42924         * sysdeps/powerpc/dl-tls.h: Likewise.
42925         * sysdeps/s390/dl-tls.h: Likewise.
42926         * sysdeps/sh/dl-tls.h: Likewise.
42927         * sysdeps/sparc/dl-tls.h: Likewise.
42928         * sysdeps/x86_64/dl-tls.h: Likewise.
42929         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
42930
42931 2011-03-14  Andreas Schwab  <schwab@redhat.com>
42932
42933         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
42934         rpath element also skip the following colon.
42935         (expand_dynamic_string_token): Add is_path parameter and pass
42936         down to DL_DST_REQUIRED and _dl_dst_substitute.
42937         (decompose_rpath): Call expand_dynamic_string_token with
42938         non-zero is_path.  Ignore empty rpaths.
42939         (_dl_map_object_from_fd): Call expand_dynamic_string_token
42940         with zero is_path.
42941
42942 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
42943
42944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
42945         Make cancelable.
42946
42947 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
42948
42949         [BZ #12655]
42950         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
42951         Patch by Filipe David Manana <fdmanana@apache.org>.
42952
42953 2011-04-07  Andreas Schwab  <schwab@redhat.com>
42954
42955         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
42956         Maintain aligned stack.
42957         (CHECK_RSP): Remove unused macro.
42958
42959 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
42960
42961         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
42962         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
42963
42964 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
42965
42966         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
42967
42968         * include/features.h: Mention __USE_XOPEN2K8 in comment.
42969
42970 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
42971
42972         [BZ #12518]
42973         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
42974         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
42975         * sysdeps/x86_64/memmove.c: New file.
42976         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
42977         (memcpy): Renamed to ...
42978         (__new_memcpy): This.
42979         (memcpy): Provide GLIBC_2_14 memcpy.
42980         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
42981         (memcpy): Provide GLIBC_2_2_5 memcpy.
42982
42983 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
42984
42985         [BZ #12631]
42986         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
42987
42988 2011-03-30  Andreas Schwab  <schwab@redhat.com>
42989
42990         * misc/syncfs.c: New file.
42991         * misc/Makefile (routines): Add syncfs.
42992         * posix/unistd.h: Declare syncfs.
42993         * sysdeps/unix/syscalls.list: Add syncfs.
42994
42995 2011-04-01  Andreas Schwab  <schwab@redhat.com>
42996
42997         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
42998         open_by_handle_at.
42999         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
43000         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
43001         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
43002         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
43003         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
43004         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
43005         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
43006
43007 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
43008
43009         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
43010         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
43011         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
43012         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
43013         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
43014         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
43015         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
43016
43017         * io/Makefile: Compile fallocate.c, fallocate64.c, and
43018         sync_file_range.c with -fexceptions.
43019         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
43020         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
43021         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
43022         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
43023         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
43024         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
43025         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
43026         sync_file_range as cancellation point
43027         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
43028         now a wrapper around __call_sync_file_range with cancellation handling.
43029         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
43030         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
43031         function name to __call_sync_file_range.
43032         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
43033         Add call_sync_file_range.
43034
43035 2011-04-01  Andreas Schwab  <schwab@redhat.com>
43036
43037         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
43038         bits/timex.h.
43039
43040 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
43041
43042         * iconv/iconv.h: Fix typo in comment.
43043         * io/fcntl.h: Likewise.
43044         * libio/stdio.h: Likewise.
43045         * posix/spawn.h: Likewise.
43046         * posix/unistd.h: Likewise.
43047         * stdlib/stdlib.h: Likewise.
43048         * time/time.h: Likewise.
43049         * wcsmbs/wchar.h: Likewise.
43050
43051         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
43052         open_by_handle): Add.
43053         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
43054         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
43055         Augment a few comments.
43056         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
43057         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
43058         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
43059         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
43060         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
43061         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
43062         open_by_handle.
43063
43064         * io/fcntl.h (AT_EMPTY_PATH): Define.
43065
43066 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
43067
43068         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
43069         * sysdeps/unix/sysv/linux/bits/time.h: New file.
43070         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
43071         to...
43072         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
43073         * Versions.def: Add GLIBC_2.14.
43074         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
43075         Export.
43076
43077 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
43078
43079         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
43080         round counter.
43081         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
43082
43083 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
43084
43085         [BZ #12597]
43086         * string/test-strncmp.c (do_page_test): New function.
43087         (check2): Likewise.
43088         (test_main): Call check2.
43089         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
43090
43091 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
43092
43093         [BZ #12587]
43094         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
43095         Handle cache information in CPU leaf 4.
43096         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
43097
43098 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
43099
43100         [BZ #12583]
43101         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
43102         character representation.
43103         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
43104
43105 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
43106
43107         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
43108         END(__isnan) to END(__isnanf) to match function entry point/label
43109         EALIGN(__isnanf,...).
43110
43111 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
43112
43113         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
43114
43115 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
43116
43117         [BZ #12510]
43118         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
43119         copy from the symbol referenced in the relocation to initialize the
43120         used variable.
43121         Patch by Piotr Bury <pbury@goahead.com>.
43122         * elf/Makefile: Add rules to build and tst-unique3.
43123         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
43124         * elf/tst-unique3.cc: New file.
43125         * elf/tst-unique3.h: New file.
43126         * elf/tst-unique3lib.cc: New file.
43127         * elf/tst-unique3lib2.cc: New file.
43128
43129         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
43130
43131 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
43132
43133         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
43134         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
43135         to _start.
43136
43137 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
43138
43139         * elf/dl-load.c (_dl_map_object): If we are looking for the first
43140         to-be-loaded object along a path to loader is ld.so.
43141
43142 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
43143             Ulrich Drepper  <drepper@gmail.com>
43144
43145         * sysdeps/x86_64/memset.S: After aligning destination, code
43146         branches to different locations depending on the value of
43147         misalignment, when multiarch is enabled. Fix this.
43148
43149 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
43150
43151         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
43152         Set _x86_64_preferred_memory_instruction for AMD processsors.
43153         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43154         Set bit_Prefer_SSE_for_memop for AMD processors.
43155
43156 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
43157
43158         * libio/fmemopen.c (fmemopen): Optimize a bit.
43159
43160 2011-03-03  Andreas Schwab  <schwab@redhat.com>
43161
43162         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
43163
43164 2011-03-03  Roland McGrath  <roland@redhat.com>
43165
43166         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
43167
43168 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
43169
43170         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
43171         __bzero_ultra1 instead of __memset_ultra1.
43172
43173 2011-02-23  Andreas Schwab  <schwab@redhat.com>
43174             Ulrich Drepper  <drepper@gmail.com>
43175
43176         [BZ #12509]
43177         * include/link.h (struct link_map): Add l_orig_initfini.
43178         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
43179         returning unsuccessfully.
43180         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
43181         close of a file loaded at startup, restore the original l_initfini
43182         list.
43183         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
43184         list, store the pointer.
43185         * elf/Makefile ($(objpfx)noload-mem): New rule.
43186         (noload-ENV): Define.
43187         (tests): Add $(objpfx)noload-mem.
43188         * elf/noload.c: Include <memcheck.h>.
43189         (main): Call mtrace.  Close all opened handles.
43190
43191 2011-02-17  Andreas Schwab  <schwab@redhat.com>
43192
43193         [BZ #12454]
43194         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
43195         dependencies are missing.
43196
43197 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43198
43199         Fix __if_freereq crash: Unlike the generic version which uses free,
43200         Hurd needs munmap.
43201         * sysdeps/mach/hurd/ifreq.h: New file.
43202
43203 2011-01-27  Petr Baudis  <pasky@suse.cz>
43204             Ulrich Drepper  <drepper@gmail.com>
43205
43206         [BZ 12445]#
43207         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
43208         to extend_alloca().
43209         * stdio-common/bug23.c: New file.
43210         * stdio-common/Makefile (tests): Add bug23.
43211
43212 2010-09-28  Andreas Schwab  <schwab@redhat.com>
43213             Ulrich Drepper  <drepper@gmail.com>
43214
43215         [BZ #12489]
43216         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
43217         before performing relro protection.  At old place add assertion
43218         to make sure nothing changed.
43219
43220 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
43221             Glauber de Oliveira Costa  <glommer@gmail.com>
43222
43223         * elf/elf.h: Add new ARM TLS relocs.
43224
43225 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
43226
43227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
43228         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
43229         cast from r3.
43230         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
43231         'tests' variable.
43232         * sysdeps/wordsize-64/tst-writev.c: New file.
43233
43234 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
43235
43236         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
43237         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
43238         insns in _dl_start to prevent a TOC reference before relocs are
43239         resolved.
43240
43241 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
43242
43243         [BZ #12469]
43244         * Makeconfig: Remove RANLIB definition.
43245         * Makerules: Don't use RANLIB.
43246         * aclocal.m4: Remove ranlib test.
43247         * configure.in: No need to check for ranlib.
43248         * elf/rtld-Rules: Don't use RANLIB.
43249
43250 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43251
43252         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
43253         protection macro.
43254         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
43255         inclusion protection macro.
43256
43257         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
43258         SIGRTMIN and SIGRTMAX and print information in that case only when
43259         SIGRTMIN is defined.
43260
43261 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
43262
43263         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
43264         arginfo fn returning -1.
43265
43266         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
43267         and thousands string is zero terminated.
43268
43269 2011-02-03  Andreas Schwab  <schwab@redhat.com>
43270
43271         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
43272         sysdeps/unix/sysv/linux/bits/socket.h.
43273
43274 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43275
43276         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
43277         (__CPU_COUNT): Remove old macros.
43278         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
43279         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
43280         (__CPU_ALLOC, __CPU_FREE): Add macros.
43281         (__sched_cpualloc, __sched_cpufree): Add declarations.
43282
43283 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
43284
43285         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
43286         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
43287         * nscd/aicache.c (addhstaiX): Return timeout of added value.
43288         (readdhstai): Return value of addhstaiX call.
43289         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
43290         (addgrbyX): Return value returned by cache_addgr.
43291         (readdgrbyname): Return value returned by addgrbyX.
43292         (readdgrbygid): Likewise.
43293         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
43294         (addpwbyX): Return value returned by cache_addpw.
43295         (readdpwbyname): Return value returned by addhstbyX.
43296         (readdpwbyuid): Likewise.
43297         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
43298         (addservbyX): Return value returned by cache_addserv.
43299         (readdservbyname): Return value returned by addservbyX:
43300         (readdservbyport): Likewise.
43301         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
43302         (addhstbyX): Return value returned by cache_addhst.
43303         (readdhstbyname): Return value returned by addhstbyX.
43304         (readdhstbyaddr): Likewise.
43305         (readdhstbynamev6): Likewise.
43306         (readdhstbyaddrv6): Likewise.
43307         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
43308         (readdinitgroups): Return value returned by addinitgroupsX.
43309         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
43310         (prune_cache): Keep track of timeout value of re-added entries.
43311         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
43312         * nscd/nscd.h: Adjust prototypes of readd* functions.
43313
43314 2011-02-04  Roland McGrath  <roland@redhat.com>
43315
43316         * nis/nis_server.c (nis_servstate): Use the right name for 0.
43317         (nis_stats): Likewise.
43318         * nis/nis_modify.c (nis_modify): Likewise.
43319         * nis/nis_remove.c (nis_remove): Likewise.
43320         * nis/nis_add.c (nis_add): Likewise.
43321
43322         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
43323
43324         * posix/fnmatch_loop.c: Add some consts.
43325
43326         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
43327
43328 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
43329
43330         [BZ #12460]
43331         * config.make.in (config-cflags-novzeroupper): Define.
43332         * configure.in: Substitute libc_cv_cc_novzeroupper.
43333         * elf/Makefile (AVX-CFLAGS): Define.
43334         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
43335         (CFLAGS-tst-auditmod4a.c): Likewise.
43336         (CFLAGS-tst-auditmod4b.c): Likewise.
43337         (CFLAGS-tst-auditmod6b.c): Likewise.
43338         (CFLAGS-tst-auditmod6c.c): Likewise.
43339         (CFLAGS-tst-auditmod7b.c): Likewise.
43340         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
43341
43342 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
43343
43344         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
43345         function to the callback.
43346         Patch partly by Jiri Olsa <jolsa@redhat.com>.
43347
43348 2011-02-02  Andreas Schwab  <schwab@redhat.com>
43349
43350         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
43351         of errno.
43352
43353 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
43354
43355         [BZ #11724]
43356         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
43357         of constructors.
43358         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
43359         of destructors.
43360         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
43361
43362         [BZ #11724]
43363         * elf/Makefile: Add rules to build and run new test.
43364         * elf/tst-initorder.c: New file.
43365         * elf/tst-initorder.exp: New file.
43366         * elf/tst-initordera1.c: New file.
43367         * elf/tst-initordera2.c: New file.
43368         * elf/tst-initordera3.c: New file.
43369         * elf/tst-initordera4.c: New file.
43370         * elf/tst-initorderb1.c: New file.
43371         * elf/tst-initorderb2.c: New file.
43372         * elf/tst-order-a1.c: New file.
43373         * elf/tst-order-a2.c: New file.
43374         * elf/tst-order-a3.c: New file.
43375         * elf/tst-order-a4.c: New file.
43376         * elf/tst-order-b1.c: New file.
43377         * elf/tst-order-b2.c: New file.
43378         * elf/tst-order-main.c: New file.
43379         New test case by George Gensure <werkt0@gmail.com>.
43380
43381 2010-10-01  Andreas Schwab  <schwab@redhat.com>
43382
43383         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
43384         decoding ACE if AI_CANONIDN.
43385
43386 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
43387
43388         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
43389
43390 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
43391
43392         * version.h (RELEASE): Bump for 2.13 release.
43393         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
43394
43395         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
43396
43397         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
43398         MADV_NOHUGEPAGE.
43399         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
43400         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
43401         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
43402         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
43403         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
43404         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
43405
43406         * posix/getconf.c: Update copyright year.
43407         * catgets/gencat.c: Likewise.
43408         * csu/version.c: Likewise.
43409         * debug/catchsegv.sh: Likewise.
43410         * debug/xtrace.sh: Likewise.
43411         * elf/ldconfig.c: Likewise.
43412         * elf/ldd.bash.in: Likewise.
43413         * elf/sprof.c (print_version): Likewise.
43414         * iconv/iconv_prog.c: Likewise.
43415         * iconv/iconvconfig.c: Likewise.
43416         * locale/programs/locale.c: Likewise.
43417         * locale/programs/localedef.c: Likewise.
43418         * malloc/memusage.sh: Likewise.
43419         * malloc/mtrace.pl: Likewise.
43420         * nscd/nscd.c (print_version): Likewise.
43421         * nss/getent.c: Likewise.
43422
43423         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
43424         PF_CAIF, and PF_ALG.
43425         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
43426
43427 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
43428
43429         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
43430         (modules-names): Use them.
43431         (ifunc-test-modules, ifunc-pie-tests): Define.
43432         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
43433         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
43434         (test-extras): Likewise.
43435         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
43436         $(compile-command.c).
43437         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
43438         (all-built-dso): Define.
43439         (check-textrel.out, check-execstack.out): Depend on it.
43440
43441         * configure.in: Don't override --enable-multi-arch.
43442
43443 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
43444
43445         [BZ #6812]
43446         * nscd/hstcache.c (tryagain): Define.
43447         (cache_addhst): Return tryagain not notfound for temporary errors.
43448         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
43449         failed.
43450
43451 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
43452
43453         [BZ #10563]
43454         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
43455         to make the syscall.
43456         * sysdeps/unix/sysv/linux/setgroups.c: New file.
43457
43458         [BZ #12378]
43459         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
43460         and fall back to matching as normal character if the string ends before
43461         the matching ']' is found.  This is what POSIX requires.
43462         * posix/testfnm.c: Adjust test result.
43463         * posix/globtest.sh: Adjust test result.  Add new test.
43464         * posix/tst-fnmatch.input: Likewise.
43465         * posix/tst-fnmatch2.c: Add new test.
43466
43467 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
43468
43469         * elf/Makefile (check-execstack): Revert last change.  Depend on
43470         check-execstack.h.
43471         (check-execstack.h): New target.
43472         (generated): Add check-execstack.h.
43473         * elf/check-execstack.c: Include "check-execstack.h".
43474         (main): Revert last change.
43475         (handle_file): Return zero if GNU_STACK is absent and
43476         DEFAULT_STACK_PERMS doesn't include PF_X.
43477
43478 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
43479
43480         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
43481         in child fails because the descriptor is already closed.
43482         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
43483         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
43484         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
43485
43486         [BZ #12397]
43487         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
43488         syscall.
43489
43490         [BZ #10484]
43491         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
43492         temporary buffer used to handle multi lookups locally.
43493         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
43494
43495 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
43496
43497         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
43498         loader is ld.so.
43499
43500 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
43501
43502         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
43503         alignment for SSE2.
43504
43505 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
43506
43507         [BZ #12394]
43508         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
43509         characters.  When rounding increased number of integer digits recompute
43510         number of groups.
43511         * stdio-common/tst-grouping.c: New file.
43512         * stdio-common/Makefile: Add rules to build and run tst-grouping.
43513
43514 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
43515
43516         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
43517         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
43518
43519         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
43520         void.
43521         * bits/select.h: Likewise.
43522
43523 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
43524
43525         * po/ja.po: Update from translation team.
43526
43527 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
43528
43529         [BZ #11155]
43530         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
43531         implementation just like for lxstat, fxstatat, et al.
43532
43533 2010-12-27  Jim Meyering  <meyering@redhat.com>
43534
43535         [BZ #12348]
43536         * posix/regexec.c (build_trtable): Return failure indication upon
43537         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
43538
43539 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
43540
43541         [BZ #12201]
43542         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
43543         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
43544         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
43545         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
43546
43547         [BZ #12207]
43548         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
43549
43550         [BZ #12204]
43551         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
43552         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
43553
43554 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
43555
43556         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
43557         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
43558         script has SORT_BY_INIT_PRIORITY.
43559         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
43560         NO_CTORS_DTORS_SECTIONS is defined.
43561         * elf/soinit.c: Likewise.
43562         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
43563         NO_CTORS_DTORS_SECTIONS is defined.
43564         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
43565         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
43566         * sysdeps/sh/init-first.c: Likewise.
43567         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
43568
43569 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
43570
43571         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
43572         always use the slow path.
43573
43574 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
43575
43576         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
43577         similar rule which adds the sysdep directories to the header search in
43578         order to pick up the correct platform stackinfo.h.
43579         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
43580         perform test if it is, otherwise return successfully without testing.
43581         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
43582         DEFAULT_STACK_PERMS define in stackinfo.h.
43583         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
43584         defined in stackinfo.h.
43585         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
43586         DEFAULT_STACK_PERMS defined in stackinfo.h.
43587         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
43588         * sysdeps/ia64/stackinfo.h: Likewise.
43589         * sysdeps/s390/stackinfo.h: Likewise.
43590         * sysdeps/sh/stackinfo.h: Likewise.
43591         * sysdeps/sparc/stackinfo.h: Likewise.
43592         * sysdeps/x86_64/stackinfo.h: Likewise.
43593         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
43594         PF_X for powerpc64.  Retain PF_X for powerpc32.
43595
43596 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
43597
43598         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
43599         accurately.
43600         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
43601         GETDENTS_64BIT_ALIGNED.
43602
43603 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
43604
43605         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
43606
43607 2010-12-10  Andreas Schwab  <schwab@redhat.com>
43608
43609         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
43610         _GNU_SOURCE.
43611
43612         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
43613         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
43614         Remove __restrict.
43615         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
43616         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
43617
43618 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
43619
43620         [BZ #11655]
43621         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
43622         are initialized.
43623
43624 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
43625
43626         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
43627
43628 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
43629
43630         * po/it.po: Update from translation team.
43631
43632 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
43633
43634         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
43635         unused codes.
43636
43637 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
43638
43639         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
43640
43641 2010-11-24  Andreas Schwab  <schwab@redhat.com>
43642
43643         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
43644         specially.
43645         (gaih_getanswer_slice): Likewise.
43646
43647 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
43648
43649         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
43650
43651 2010-05-31  Petr Baudis  <pasky@suse.cz>
43652
43653         [BZ #11149]
43654         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
43655         silently even in the chroot mode.
43656
43657 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
43658
43659         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
43660         last patch a bit.  Pretty printing
43661
43662 2010-05-31  Petr Baudis <pasky@suse.cz>
43663
43664         [BZ #10085]
43665         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
43666         initialization of skip_initgroups_dyn.
43667
43668 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
43669
43670         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
43671         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
43672
43673 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
43674
43675         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
43676
43677 2010-11-11  Andreas Schwab  <schwab@redhat.com>
43678
43679         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
43680         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
43681         (tst-fnmatch-ENV): Set MALLOC_TRACE.
43682         ($(objpfx)tst-fnmatch-mem): New rule.
43683         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
43684         * posix/tst-fnmatch.c (main): Call mtrace.
43685
43686 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
43687
43688         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43689         Support Intel processor model 6 and model 0x2c.
43690
43691 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
43692
43693         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
43694           signed comparison.
43695
43696 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
43697
43698         [BZ #12205]
43699         * string/test-strncasecmp.c (check_result): New function.
43700         (do_one_test): Use it.
43701         (check1): New function.
43702         (test_main): Use it.
43703         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
43704         Support strcasecmp and strncasecmp.
43705
43706 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
43707
43708         [BZ #12194]
43709         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
43710         * sysdeps/x86_64/bits/byteswap.h: Likewise.
43711
43712 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
43713
43714         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
43715         IFUNC support.
43716         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43717         memset-x86-64.
43718         * sysdeps/x86_64/multiarch/bzero.S: New file.
43719         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
43720         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
43721         * sysdeps/x86_64/multiarch/memset.S: New file.
43722         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
43723         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43724         Set bit_Prefer_SSE_for_memop for Intel processors.
43725         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
43726         Define.
43727         (index_Prefer_SSE_for_memop): Define.
43728         (HAS_PREFER_SSE_FOR_MEMOP): Define.
43729
43730 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
43731
43732         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
43733         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
43734
43735 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
43736
43737         [BZ #12191]
43738         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
43739         (__x86_64_raw_data_cache_size_half): Likewise.
43740         (__x86_64_raw_shared_cache_size): Likewise.
43741         (__x86_64_raw_shared_cache_size_half): Likewise.
43742
43743         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
43744         (__x86_64_raw_data_cache_size_half): Likewise.
43745         (__x86_64_raw_shared_cache_size): Likewise.
43746         (__x86_64_raw_shared_cache_size_half): Likewise.
43747         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
43748         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
43749         and __x86_64_raw_shared_cache_size_half.  Round
43750         __x86_64_data_cache_size_half, __x86_64_data_cache_size
43751         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
43752         to multiple of 256 bytes.
43753
43754 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
43755
43756         [BZ #12167]
43757         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
43758         of inacessible symlinks.  Verify result of symlink before returning it.
43759         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
43760         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
43761
43762 2010-10-28  Erich Ritz  <erichritz@gmail.com>
43763
43764         * math/math.h (isinf): Fix typo in comment.
43765
43766 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
43767
43768         * po/da.po: Update from translation team.
43769
43770 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
43771
43772         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
43773         is added to the list.
43774
43775 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43776             Ulrich Drepper  <drepper@gmail.com>
43777
43778         * elf/dl-object.c (_dl_new_object): Don't append the new object to
43779         the global list here.  Move code to...
43780         (_dl_add_to_namespace_list): ...here.  New function.
43781         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
43782         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
43783         * elf/dl-load.c (lose): Don't remove the element from the list.
43784         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
43785         (_dl_map_object): Likewise.
43786
43787 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
43788
43789         [BZ #12159]
43790         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
43791         into all bytes of SSE register.
43792         Patch by Richard Li <richardpku@gmail.com>.
43793
43794 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
43795
43796         [BZ #12140]
43797         * malloc/malloc.c (_int_free): Fill correct number of bytes when
43798         perturbing.
43799
43800 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
43801
43802         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
43803         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
43804         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
43805         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
43806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
43807         submachine.
43808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
43809
43810 2010-10-22  Andreas Schwab  <schwab@redhat.com>
43811
43812         * include/dlfcn.h (__RTLD_SECURE): Define.
43813         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
43814         mode & __RTLD_SECURE instead.
43815         (open_path): Rename preloaded parameter to secure.
43816         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
43817         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
43818         * elf/dl-deps.c (openaux): Likewise.
43819         * elf/rtld.c (struct map_args): Remove is_preloaded.
43820         (map_doit): Don't use it.
43821         (dl_main): Likewise.
43822         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
43823         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
43824
43825 2010-09-09  Andreas Schwab  <schwab@redhat.com>
43826
43827         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
43828         (sysd-rules-targets): Remove duplicates.
43829         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
43830         rtld-%.$o dependency.
43831
43832 2010-10-18  Andreas Schwab  <schwab@redhat.com>
43833
43834         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
43835         _dl_map_object do it.
43836
43837 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
43838
43839         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
43840         fast fma builtins, define the macros in the C99 standard.
43841         (FP_FAST_FMAF): Likewise.
43842         (FP_FAST_FMAL): Likewise.
43843         * sysdeps/x86_64/bits/mathdef.h: Likewise.
43844
43845         * bits/mathdef.h: Update copyright year.
43846         * sysdeps/powerpc/bits/mathdef.h: Likewise.
43847
43848 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
43849
43850         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
43851         builtins, define the macros in the C99 standard.
43852         (FP_FAST_FMAF): Likewise.
43853         (FP_FAST_FMAL): Likewise.
43854         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
43855         multiply/add.
43856         (FP_FAST_FMAF): Likewise.
43857
43858 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
43859
43860         [BZ #3268]
43861         * math/libm-test.inc (fma_test): Some new testcases.
43862         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
43863         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
43864         y and infinite z.  Do multiplication by C already in long double.
43865         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
43866         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
43867         y and infinite z.  Do bitwise or of inexact bit into u.d.
43868         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
43869         * sysdeps/i386/fpu/s_fmaf.S: Removed.
43870         * sysdeps/i386/fpu/s_fma.S: Removed.
43871         * sysdeps/i386/fpu/s_fmal.S: Removed.
43872
43873 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
43874
43875         [BZ #3268]
43876         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
43877         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
43878         computation is not scheduled after fetestexcept.  Fix value
43879         of minimum denormal long double.
43880
43881 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
43882
43883         [BZ #3268]
43884         * math/libm-test.inc (fma_test): Add some more tests.
43885         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
43886         correctly.
43887
43888 2010-10-15  Andreas Schwab  <schwab@redhat.com>
43889
43890         * scripts/data/localplt-s390-linux-gnu.data: New file.
43891         * scripts/data/localplt-s390x-linux-gnu.data: New file.
43892
43893 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
43894
43895         [BZ #3268]
43896         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
43897         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
43898         instead of dbl-64.
43899         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
43900         inlines.
43901         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
43902         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
43903         if one of x and y is very large and the other is subnormal.
43904         * sysdeps/s390/fpu/s_fmaf.c: New file.
43905         * sysdeps/s390/fpu/s_fma.c: New file.
43906         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
43907         * sysdeps/powerpc/fpu/s_fma.S: New file.
43908         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
43909         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
43910         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
43911
43912 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
43913
43914         [BZ #3268]
43915         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
43916         fma tests.
43917         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
43918         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
43919         * sysdeps/i386/i686/multiarch/s_fma.c: Include
43920         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
43921         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
43922         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
43923         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
43924
43925 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
43926
43927         [BZ #12078]
43928         * posix/regcomp.c (parse_branch): One more memory leak plugged.
43929         * posix/bug-regex31.input: Add test case.
43930
43931 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
43932
43933         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
43934         * posix/bug-regex31.input: New file.
43935
43936         [BZ #12078]
43937         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
43938         (parse_sub_exp): Fix last change, use postorder.
43939
43940         * posix/bug-regex31.c: New file.
43941         * posix/Makefile: Add rules to build and run bug-regex31.
43942
43943         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
43944
43945         [BZ #12078]
43946         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
43947
43948         [BZ #12108]
43949         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
43950         to have entries in sys_siglist.
43951
43952         [BZ #12093]
43953         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
43954         be NULL.
43955
43956 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
43957
43958         [BZ #3268]
43959         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
43960         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
43961         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
43962         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
43963         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
43964         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
43965         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
43966         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
43967         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
43968         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
43969         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
43970         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
43971         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
43972         * math/ftestexcept.c (fetestexcept): Likewise.
43973         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
43974         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
43975         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
43976         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
43977         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
43978         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
43979         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
43980
43981 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
43982
43983         [BZ #12107]
43984         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
43985         newline.
43986
43987 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
43988
43989         * string/bug-strstr1.c: New file.
43990         * string/Makefile: Add rules to build and run bug-strstr1.
43991
43992 2010-10-05  Eric Blake  <eblake@redhat.com>
43993
43994         [BZ #12092]
43995         * string/str-two-way.h (two_way_long_needle): Always clear memory
43996         when skipping input due to the shift table.
43997
43998 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
43999
44000         [BZ #12005]
44001         * malloc/mcheck.c: Handle large requests.
44002
44003         [BZ #12077]
44004         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
44005         for strncmp and strncasecmp.
44006         * string/stratcliff.c: Add tests for strcmp and strncmp.
44007         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
44008
44009 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
44010
44011         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
44012         __set_fpscr.
44013
44014 2010-09-30  Andreas Jaeger  <aj@suse.de>
44015
44016         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
44017         (CGROUP_SUPER_MAGIC): Define.
44018         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
44019         Handle btrfs and cgroup file systems.
44020         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
44021         Likewise.
44022
44023 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
44024
44025         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
44026         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
44027
44028 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44029
44030         [BZ #12067]
44031         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
44032         trying to locate the ELF header.
44033
44034 2010-09-27  Andreas Schwab  <schwab@redhat.com>
44035
44036         [BZ #11611]
44037         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
44038         Mask out sign-bit copies when constructing f_fsid.
44039
44040 2010-09-24  Petr Baudis <pasky@suse.cz>
44041
44042         * debug/stack_chk_fail_local.c: Add missing licence exception.
44043         * debug/warning-nop.c: Likewise.
44044
44045 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
44046
44047         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
44048         implementing getdents64 using getdents syscall, set d_type if
44049         __ASSUME_GETDENTS32_D_TYPE.
44050
44051 2010-09-16  Andreas Schwab  <schwab@redhat.com>
44052
44053         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
44054         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
44055
44056 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
44057
44058         [BZ #12037]
44059         * posix/unistd.h: Undo change of feature selection for ftruncate from
44060         2010-01-11.
44061
44062 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
44063
44064         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
44065         detection.
44066
44067 2010-09-20  Andreas Schwab  <schwab@redhat.com>
44068
44069         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
44070         fanotify_mark.
44071         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
44072
44073 2010-09-14  Andreas Schwab  <schwab@redhat.com>
44074
44075         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
44076         variables after CHECK_SP call.
44077         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
44078
44079 2010-09-13  Andreas Schwab  <schwab@redhat.com>
44080             Ulrich Drepper  <drepper@redhat.com>
44081
44082         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
44083         re-relocationg ld.so.
44084         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
44085         _dl_init_paths call.
44086         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
44087         here anymore.
44088
44089 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
44090
44091         * resolv/res_init.c (__res_vinit): Count the default server we added.
44092
44093 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
44094             Ulrich Drepper  <drepper@redhat.com>
44095
44096         [BZ #11968]
44097         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
44098         (____longjmp_chk): Use %ebx for saving value across system call.
44099         Add unwind info.
44100
44101 2010-09-06  Andreas Schwab  <schwab@redhat.com>
44102
44103         * manual/Makefile: Don't mix pattern rules with normal rules.
44104
44105 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
44106
44107         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
44108         operation.
44109         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
44110         * libio/iofopncook.c (_IO_cookie_init): Likewise.
44111         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
44112         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
44113         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
44114         Likewise.
44115
44116 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
44117
44118         [BZ #11979]
44119         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
44120         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
44121
44122 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
44123
44124         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
44125         * sysdeps/x86_64/addmul_1.S: Likewise.
44126         * sysdeps/x86_64/lshift.S: Likewise.
44127         * sysdeps/x86_64/mul_1.S: Likewise.
44128         * sysdeps/x86_64/rshift.S: Likewise.
44129         * sysdeps/x86_64/sub_n.S: Likewise.
44130         * sysdeps/x86_64/submul_1.S: Likewise.
44131
44132 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44133
44134         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
44135         Define __sched_param instead of SCHED_* and sched_param when
44136         <bits/sched.h> is included with __need_schedparam defined.
44137         * bits/sched.h [__need_schedparam]
44138         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
44139         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
44140         (__defined_schedparam): Define to 1.
44141         (__sched_param): New structure, identical to sched_param.
44142         (__need_schedparam): Undefine.
44143
44144 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
44145
44146         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
44147         (epoll_create1): Declare.
44148
44149         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
44150
44151 2010-08-31  Andreas Schwab  <schwab@redhat.com>
44152
44153         [BZ #7066]
44154         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
44155         shifting retval into place.
44156
44157 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
44158
44159         * nis/rpcsvc/nis.h: Update copyright notice.
44160         * nis/rpcsvc/nis.x: Likewise.
44161         * nis/rpcsvc/nis_callback.h: Likewise.
44162         * nis/rpcsvc/nis_callback.x: Likewise.
44163         * nis/rpcsvc/nis_object.x: Likewise.
44164         * nis/rpcsvc/nis_tags.h: Likewise.
44165         * nis/rpcsvc/yp.h: Likewise.
44166         * nis/rpcsvc/yp.x: Likewise.
44167         * nis/rpcsvc/ypupd.h: Likewise.
44168         * nis/yp_xdr.c: Likewise.
44169         * nis/ypupdate_xdr.c: Likewise.
44170
44171         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
44172         mainly the body of pmap_getport.  Add parameters to specify timeouts.
44173         (pmap_getport): Use __libc_rpc_getport.
44174         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
44175         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
44176         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
44177
44178 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
44179
44180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
44181         fanotify_mark.
44182
44183 2010-08-27  Roland McGrath  <roland@redhat.com>
44184
44185         * sysdeps/i386/i686/multiarch/Makefile
44186         (CFLAGS-varshift.c): New variable.
44187
44188 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
44189
44190         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
44191         * sysdeps/i386/i686/multiarch/varshift.c: New file.
44192
44193         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
44194
44195         * sysdeps/x86_64/strlen.S: Minimal code improvement.
44196
44197 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
44198
44199         * sysdeps/x86_64/strlen.S: Unroll the loop.
44200         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44201         strlen-sse2 strlen-sse2-bsf.
44202         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
44203         __strlen_no_bsf if bit_Slow_BSF is set.
44204         (__strlen_sse42): Removed.
44205         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
44206         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
44207
44208 2010-08-25  Roland McGrath  <roland@redhat.com>
44209
44210         * sysdeps/x86_64/multiarch/varshift.S: File removed.
44211         * sysdeps/x86_64/multiarch/varshift.c: New file.
44212         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
44213         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
44214         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
44215         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
44216
44217 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
44218
44219         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44220         strlen-sse2 strlen-sse2-bsf.
44221         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
44222         __strlen_sse2_bsf if bit_Slow_BSF is unset.
44223         (__strlen_sse2): Removed.
44224         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
44225         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
44226         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
44227         bit_Slow_BSF for Atom.
44228         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
44229         (index_Slow_BSF): Define.
44230         (HAS_SLOW_BSF): Define.
44231
44232 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
44233
44234         [BZ #10851]
44235         * resolv/res_init.c (__res_vinit): When no server address at all
44236         is given default to loopback.
44237
44238 2010-08-24  Roland McGrath  <roland@redhat.com>
44239
44240         * configure.in: Remove config-name.h generation.
44241         * configure: Regenerated.
44242         * config-name.in: File removed.
44243         * scripts/config-uname.sh: New file.
44244         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
44245         ($(objdir)config-name.h): New target.
44246
44247         * sunrpc/rpc_parse.h: Avoid nested comment.
44248
44249 2010-08-24  Richard Henderson  <rth@redhat.com>
44250             Ulrich Drepper  <drepper@redhat.com>
44251             H.J. Lu  <hongjiu.lu@intel.com>
44252
44253         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
44254         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
44255         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
44256         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
44257         _mm_alignr_epi8 with _mm_loadu_si128.
44258         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
44259         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
44260         (__m128i_shift_right): Removed.
44261         * sysdeps/i386/i686/multiarch/varshift.h: New file.
44262         * sysdeps/i386/i686/multiarch/varshift.S: New file.
44263         * sysdeps/x86_64/multiarch/varshift.h: New file.
44264         * sysdeps/x86_64/multiarch/varshift.S: New file.
44265
44266 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
44267
44268         * configure.in: Move assembler checks to before sysdep dir checking.
44269
44270 2010-08-20  Petr Baudis  <pasky@suse.cz>
44271
44272         * LICENSES: Sync the sunrpc license.
44273
44274 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
44275
44276         * sunrpc/auth_des.c: Update copyright notice once again.
44277         * sunrpc/auth_none.c: Likewise.
44278         * sunrpc/auth_unix.c: Likewise.
44279         * sunrpc/authdes_prot.c: Likewise.
44280         * sunrpc/authuxprot.c: Likewise.
44281         * sunrpc/bindrsvprt.c: Likewise.
44282         * sunrpc/clnt_gen.c: Likewise.
44283         * sunrpc/clnt_perr.c: Likewise.
44284         * sunrpc/clnt_raw.c: Likewise.
44285         * sunrpc/clnt_simp.c: Likewise.
44286         * sunrpc/clnt_tcp.c: Likewise.
44287         * sunrpc/clnt_udp.c: Likewise.
44288         * sunrpc/clnt_unix.c: Likewise.
44289         * sunrpc/des_crypt.c: Likewise.
44290         * sunrpc/des_soft.c: Likewise.
44291         * sunrpc/get_myaddr.c: Likewise.
44292         * sunrpc/getrpcport.c: Likewise.
44293         * sunrpc/key_call.c: Likewise.
44294         * sunrpc/key_prot.c: Likewise.
44295         * sunrpc/openchild.c: Likewise.
44296         * sunrpc/pm_getmaps.c: Likewise.
44297         * sunrpc/pm_getport.c: Likewise.
44298         * sunrpc/pmap_clnt.c: Likewise.
44299         * sunrpc/pmap_prot.c: Likewise.
44300         * sunrpc/pmap_prot2.c: Likewise.
44301         * sunrpc/pmap_rmt.c: Likewise.
44302         * sunrpc/rpc/auth.h: Likewise.
44303         * sunrpc/rpc/auth_unix.h: Likewise.
44304         * sunrpc/rpc/clnt.h: Likewise.
44305         * sunrpc/rpc/des_crypt.h: Likewise.
44306         * sunrpc/rpc/key_prot.h: Likewise.
44307         * sunrpc/rpc/netdb.h: Likewise.
44308         * sunrpc/rpc/pmap_clnt.h: Likewise.
44309         * sunrpc/rpc/pmap_prot.h: Likewise.
44310         * sunrpc/rpc/pmap_rmt.h: Likewise.
44311         * sunrpc/rpc/rpc.h: Likewise.
44312         * sunrpc/rpc/rpc_des.h: Likewise.
44313         * sunrpc/rpc/rpc_msg.h: Likewise.
44314         * sunrpc/rpc/svc.h: Likewise.
44315         * sunrpc/rpc/svc_auth.h: Likewise.
44316         * sunrpc/rpc/types.h: Likewise.
44317         * sunrpc/rpc/xdr.h: Likewise.
44318         * sunrpc/rpc_clntout.c: Likewise.
44319         * sunrpc/rpc_cmsg.c: Likewise.
44320         * sunrpc/rpc_common.c: Likewise.
44321         * sunrpc/rpc_cout.c: Likewise.
44322         * sunrpc/rpc_dtable.c: Likewise.
44323         * sunrpc/rpc_hout.c: Likewise.
44324         * sunrpc/rpc_main.c: Likewise.
44325         * sunrpc/rpc_parse.c: Likewise.
44326         * sunrpc/rpc_parse.h: Likewise.
44327         * sunrpc/rpc_prot.c: Likewise.
44328         * sunrpc/rpc_sample.c: Likewise.
44329         * sunrpc/rpc_scan.c: Likewise.
44330         * sunrpc/rpc_scan.h: Likewise.
44331         * sunrpc/rpc_svcout.c: Likewise.
44332         * sunrpc/rpc_tblout.c: Likewise.
44333         * sunrpc/rpc_util.c: Likewise.
44334         * sunrpc/rpc_util.h: Likewise.
44335         * sunrpc/rpcinfo.c: Likewise.
44336         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
44337         * sunrpc/rpcsvc/key_prot.x: Likewise.
44338         * sunrpc/rpcsvc/klm_prot.x: Likewise.
44339         * sunrpc/rpcsvc/mount.x: Likewise.
44340         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
44341         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
44342         * sunrpc/rpcsvc/rex.x: Likewise.
44343         * sunrpc/rpcsvc/rstat.x: Likewise.
44344         * sunrpc/rpcsvc/rusers.x: Likewise.
44345         * sunrpc/rpcsvc/sm_inter.x: Likewise.
44346         * sunrpc/rpcsvc/spray.x: Likewise.
44347         * sunrpc/rpcsvc/yppasswd.x: Likewise.
44348         * sunrpc/rtime.c: Likewise.
44349         * sunrpc/svc.c: Likewise.
44350         * sunrpc/svc_auth.c: Likewise.
44351         * sunrpc/svc_authux.c: Likewise.
44352         * sunrpc/svc_raw.c: Likewise.
44353         * sunrpc/svc_run.c: Likewise.
44354         * sunrpc/svc_simple.c: Likewise.
44355         * sunrpc/svc_tcp.c: Likewise.
44356         * sunrpc/svc_udp.c: Likewise.
44357         * sunrpc/svc_unix.c: Likewise.
44358         * sunrpc/svcauth_des.c: Likewise.
44359         * sunrpc/xcrypt.c: Likewise.
44360         * sunrpc/xdr.c: Likewise.
44361         * sunrpc/xdr_array.c: Likewise.
44362         * sunrpc/xdr_float.c: Likewise.
44363         * sunrpc/xdr_mem.c: Likewise.
44364         * sunrpc/xdr_rec.c: Likewise.
44365         * sunrpc/xdr_ref.c: Likewise.
44366         * sunrpc/xdr_sizeof.c: Likewise.
44367         * sunrpc/xdr_stdio.c: Likewise.
44368
44369         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
44370         handling.
44371
44372 2010-08-19  Andreas Schwab  <schwab@redhat.com>
44373
44374         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
44375
44376 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
44377
44378         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
44379         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
44380         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
44381         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
44382         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
44383         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
44384         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
44385         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
44386         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
44387         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
44388         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
44389         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
44390         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
44391         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
44392
44393 2010-07-26  Anton Blanchard  <anton@samba.org>
44394
44395         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
44396         * malloc/arena.c (heap_trim): Likewise.
44397
44398 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
44399
44400         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
44401         here.  Not...
44402         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
44403         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
44404
44405 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
44406
44407         * sysdeps/i386/elf/Makefile: New file.
44408
44409 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
44410
44411         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
44412         from fanotify_init.
44413         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
44414         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
44415
44416 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
44417
44418         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
44419         of strncasecmp_l.
44420         * sysdeps/multiarch/strcmp.S: Likewise.
44421
44422 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
44423
44424         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
44425         strncase_l-nonascii.
44426         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
44427         Add strncase_l-ssse3.
44428         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
44429         * sysdeps/x86_64/strcmp.S: Likewise.
44430         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
44431         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
44432         * sysdeps/x86_64/strncase.S: New file.
44433         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
44434         * sysdeps/x86_64/strncase_l.S: New file.
44435         * string/Makefile (strop-tests): Add strncasecmp.
44436         * string/test-strncasecmp.c: New file.
44437
44438         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
44439         warning.
44440
44441         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
44442         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
44443
44444 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
44445
44446         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
44447
44448 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
44449
44450         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
44451         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
44452         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
44453
44454 2010-05-01  Alan Modra  <amodra@gmail.com>
44455
44456         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
44457         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
44458         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
44459         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
44460         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
44461         tidying.  Don't tail-call __sigjmp_save for static lib.
44462         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
44463         save location.
44464         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
44465         (CALL_MCOUNT): Add eh info, and nop after bl.
44466         (TAIL_CALL_SYSCALL_ERROR): New macro.
44467         (PSEUDO_RET): Use it.
44468         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
44469         Correct save location of integer regs and cr.
44470         (_dl_profile_resolve): Correct cr save location.  Delete nops
44471         after bl when SHARED.  Reduce cfi size a little by better
44472         placement of cfi directives.
44473         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
44474         make a stack frame.  Instead use parm save area as a temp.
44475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
44476         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
44477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
44478         Don't make a stack frame for parent, use parm save area.
44479         Increase child stack frame to 112 bytes.  Don't save unused reg,
44480         and adjust reg usage.  Set up cfi on error recovery and
44481         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
44482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
44483         (__makecontext): Add dummy nop after jump to exit.
44484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
44485         Use correct parm save area and cr save, reduce stack frame.
44486         Correct cfi for possible PSEUDO_RET frame setup.
44487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
44488         Branch to local label emitted by PSEUDO_RET rather than
44489         __syscall_error.
44490
44491 2010-08-12  Andreas Schwab  <schwab@redhat.com>
44492
44493         [BZ #11904]
44494         * locale/programs/locale.c (print_assignment): New function.
44495         (show_locale_vars): Use it.
44496
44497 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
44498
44499         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
44500         field.
44501         (struct statfs64): Likewise.
44502         (_STATFS_F_FLAGS): Define.
44503         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
44504         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
44505         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
44506         (ST_VALID): Define locally.
44507         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
44508         __statvfs_getflags, use the provided value.
44509         * sysdeps/unix/sysv/linux/kernel-features.h: Define
44510         __ASSUME_STATFS_F_FLAGS.
44511
44512         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
44513
44514         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
44515         Add sys/fanotify.h.
44516         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
44517         fanotify_mask for GLIBC_2.13.
44518         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
44519         fanotify_init and fanotify_mark.
44520         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
44521         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
44522
44523         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
44524         Add prlimit.
44525         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
44526         prlimit64 for GLIBC_2.13.
44527         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
44528         prlimit64.
44529         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
44530         syscall.
44531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
44532         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
44533         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
44534         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
44535         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
44536         add prlimit alias.
44537         * sysdeps/unix/sysv/linux/prlimit.c: New file.
44538
44539         [BZ #11903]
44540         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
44541         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
44542
44543         * nss/Makefile: Add rules to build and run tst-nss-test1.
44544         * shlib-versions: Add entry for libnss_test1.
44545         * nss/nss_test1.c: New file.
44546         * nss/tst-nss-test1.c: New file.
44547
44548         * nss/nsswitch.c (__nss_database_custom): Define new variable.
44549         (__nss_configure_lookup): Set appropriate entry in
44550         __nss_configure_lookup to true.
44551         * nss/nsswitch.h: Define enum with indeces of databases in
44552         databases and __nss_database_custom arrays.  Declare
44553         __nss_database_custom.
44554         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
44555         to avoid using nscd when custom rules are installed.
44556         * nss/getXXbyYY_r.c: Likewise.
44557         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44558
44559         * nss/nss_files/files-parse.c: Whitespace fixes.
44560
44561 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
44562
44563         [BZ #11883]
44564         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
44565         * posix/fnmatch_loop.c: Likewise.
44566
44567 2010-07-17  Andi Kleen  <ak@linux.intel.com>
44568
44569         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
44570         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
44571         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
44572         * Versions.def [GLIBC_2.13]: Add.
44573
44574 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
44575
44576         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
44577         Also fail if tpwd after pwuid call is NULL.
44578
44579 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44580
44581         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
44582         when converting to ms.
44583
44584 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44585
44586         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
44587         EOPNOTSUPP errors with ENOTTY.
44588         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
44589         EOPNOTSUPP errors with ENOTTY.
44590
44591 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
44592
44593         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
44594         Add strcasecmp_l-ssse3.
44595         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
44596         strcasecmp.
44597         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
44598         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
44599         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
44600
44601 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
44602
44603         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
44604
44605         * string/Makefile (strop-tests): Add strcasecmp.
44606         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
44607         strcasecmp_l-nonascii.
44608         (gen-as-const-headers): Add locale-defines.sym.
44609         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
44610         * sysdeps/x86_64/strcasecmp.S: New file.
44611         * sysdeps/x86_64/strcasecmp_l.S: New file.
44612         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
44613         * sysdeps/x86_64/locale-defines.sym: New file.
44614         * string/test-strcasecmp.c: New file.
44615
44616         * string/test-strcasestr.c: Test both ends of the range of characters.
44617         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
44618
44619 2010-07-29  Roland McGrath  <roland@redhat.com>
44620
44621         [BZ #11856]
44622         * manual/locale.texi (Yes-or-No Questions): Fix example code.
44623
44624 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
44625
44626         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
44627         for ld.so.
44628
44629 2010-07-27  Andreas Schwab  <schwab@redhat.com>
44630
44631         * manual/memory.texi (Malloc Tunable Parameters): Document
44632         M_PERTURB.
44633
44634 2010-07-26  Roland McGrath  <roland@redhat.com>
44635
44636         [BZ #11840]
44637         * configure.in (-fgnu89-inline check): Set and substitute
44638         gnu89_inline, not libc_cv_gnu89_inline.
44639         * configure: Regenerated.
44640         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
44641
44642 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
44643
44644         * string/test-strnlen.c: New file.
44645         * string/Makefile (strop-tests): Add strnlen.
44646         * string/tester.c (test_strnlen): Add a few more test cases.
44647         * string/tst-strlen.c: Better error reporting.
44648
44649         * sysdeps/x86_64/strnlen.S: New file.
44650
44651 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
44652
44653         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
44654         lower-latency instructions.
44655
44656 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
44657
44658         * string/test-strcasestr.c: New file.
44659         * string/test-strstr.c: New file.
44660         * string/Makefile (strop-tests): Add strstr and strcasestr.
44661         * string/str-two-way.h: Don't undefine MAX.
44662         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
44663
44664 2010-07-21  Andreas Schwab  <schwab@redhat.com>
44665
44666         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44667         strcasestr-nonascii.
44668         (CFLAGS-strcasestr-nonascii.c): Define.
44669         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
44670         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
44671         Remove unused attribute.
44672
44673 2010-07-20  Roland McGrath  <roland@redhat.com>
44674
44675         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
44676         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
44677         ld.so.cache was broken.  With it, there is no way to disable dsocaps
44678         like LD_HWCAP_MASK can disable hwcaps.
44679
44680 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
44681
44682         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
44683
44684 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
44685
44686         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
44687         call in strcasestr.
44688         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
44689         __strcasestr_sse42_nonascii.
44690         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
44691         strcasestr-nonascii.c.
44692         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
44693
44694 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
44695
44696         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
44697         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
44698         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
44699         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
44700
44701 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
44702
44703         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
44704         fcntl.
44705
44706 2010-07-06  Andreas Schwab  <schwab@redhat.com>
44707
44708         [BZ #11577]
44709         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
44710         dl_signal_cerror.
44711
44712 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
44713
44714         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
44715         _PC_PIPE_BUF using F_GETPIPE_SZ.
44716
44717 2010-07-05  Roland McGrath  <roland@redhat.com>
44718
44719         * manual/arith.texi (Rounding Functions): Fix rint description
44720         implicit in round description.
44721
44722 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
44723
44724         * elf/Makefile: Fix linking for a few tests to make recent linker
44725         happy.
44726
44727 2010-06-30  Andreas Schwab  <schwab@redhat.com>
44728
44729         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
44730         $(common-objpfx)libc_nonshared.a.
44731
44732 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
44733
44734         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
44735         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
44736         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
44737         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
44738         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
44739         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
44740         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
44741         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
44742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
44743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
44744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
44745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
44746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
44747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
44748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
44749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
44750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
44751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
44752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
44753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
44754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
44755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
44756         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
44757         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
44758         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
44759         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
44760         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
44761         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
44762         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
44763         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
44764         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
44765         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
44766         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
44767         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
44768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
44769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
44770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
44771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
44772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
44773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
44774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
44775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
44776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
44777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
44778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
44779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
44780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
44781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
44782
44783 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
44784
44785         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
44786         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
44787         * string/memmove.c (memmove): Renamed to ...
44788         (MEMMOVE): ...this.  Default to memmove.
44789         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
44790         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
44791         (END_CHK): Define.
44792         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44793         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
44794         mempcpy-ssse3-back memmove-ssse3-back.
44795         * sysdeps/x86_64/multiarch/bcopy.S: New file .
44796         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
44797         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
44798         * sysdeps/x86_64/multiarch/memcpy.S: New file.
44799         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
44800         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
44801         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
44802         * sysdeps/x86_64/multiarch/memmove.c: New file.
44803         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
44804         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
44805         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
44806         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
44807         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
44808         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
44809         Define.
44810         (index_Fast_Copy_Backward): Define.
44811         (HAS_ARCH_FEATURE): Define.
44812         (HAS_FAST_REP_STRING): Define.
44813         (HAS_FAST_COPY_BACKWARD): Define.
44814
44815 2010-06-21  Andreas Schwab  <schwab@redhat.com>
44816
44817         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
44818         Restore proper fallback handling.
44819
44820 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
44821
44822         [BZ #11701]
44823         * posix/group_member.c (__group_member): Correct checking loop.
44824
44825         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
44826         OOM in getpwuid_r correctly.  Return error number when the caller
44827         should return, otherwise -1.
44828         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
44829         call returning > 0 value.
44830         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
44831
44832 2010-06-07  Andreas Schwab  <schwab@redhat.com>
44833
44834         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
44835         libc_nonshared.a from targets in modules-names.
44836
44837 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
44838
44839         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
44840         requires it.
44841
44842 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
44843
44844         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
44845         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
44846         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
44847         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
44848
44849 2010-06-02  Andreas Schwab  <schwab@redhat.com>
44850
44851         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
44852
44853 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
44854
44855         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
44856         and F_GETPIPE_SZ.
44857         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
44858         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44859         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44860         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44861         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44862         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
44863
44864 2010-06-14  Roland McGrath  <roland@redhat.com>
44865
44866         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
44867
44868 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
44869
44870         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
44871         __REDIRECT followed by __THROW.
44872         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
44873         * posix/getopt.h (getopt): Likewise.
44874
44875 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
44876
44877         * hurd/lookup-at.c (__file_name_lookup_at): Accept
44878         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
44879         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
44880         in AT_FLAGS.
44881         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
44882         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
44883
44884 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
44885
44886         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
44887
44888 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
44889
44890         [BZ #11640]
44891         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44892         Properly check family and model.
44893
44894 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
44895
44896         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
44897
44898 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
44899
44900         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
44901
44902 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
44903
44904         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
44905         symbol reference.
44906
44907 2010-05-19  Andreas Schwab  <schwab@redhat.com>
44908
44909         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
44910         symbol reference.
44911
44912 2010-05-21  Andreas Schwab  <schwab@redhat.com>
44913
44914         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
44915         and internal_recvmmsg.
44916         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
44917         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
44918         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
44919         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
44920
44921         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
44922         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
44923         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
44924
44925 2010-05-20  Andreas Schwab  <schwab@redhat.com>
44926
44927         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
44928
44929 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
44930
44931         POWER7 optimizations.
44932         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
44933         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
44934
44935 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
44936
44937         * version.h: Update for 2.13 development version.
44938
44939 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
44940
44941         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
44942         exceptions.  Return 0.
44943
44944 2010-05-07  Roland McGrath  <roland@redhat.com>
44945
44946         * elf/ldconfig.c (main): Add a const.
44947
44948 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
44949
44950         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
44951         (args_options): Add no-idn option.
44952         (ahosts_keys_int): Add idn_flags to ai_flags.
44953         (parse_option): Handle 'i' option to clear idn_flags.
44954
44955         * malloc/malloc.c (_int_free): Possible race in the most recently
44956         added check.  Only act on the data if no current modification
44957         happened.
44958
44959 See ChangeLog.17 for earlier changes.