Clean up stub accept4 definition.
[glibc.git] / ChangeLog
blob30b9a9e42047d379f856e2e7b7c9d52375c32151
1 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3         * include/sys/socket.h (__libc_accept, __libc_accept4):
4         Add attribute_hidden.
5         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
7         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
8         use of PTR_MANGLE.
9         * inet/getnetgrent_r.c (setup): Likewise.
11         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
13 2012-07-31  David S. Miller  <davem@davemloft.net>
15         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
19         [BZ #13629]
20         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
21         value between 1.0 and 2.0 and smaller part has absolute value less
22         than 1.0.
23         * math/s_clog10.c (__clog10): Likewise.
24         * math/s_clog10f.c (__clog10f): Likewise.
25         * math/s_clog10l.c (__clog10l): Likewise.
26         * math/s_clogf.c (__clogf): Likewise.
27         * math/s_clogl.c (__clogl): Likewise.
28         * math/libm-test.inc (clog_test): Add more tests.
29         (clog10_test): Likewise.
30         * sysdeps/i386/fpu/libm-test-ulps: Update.
31         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33 2012-07-31  Florian Weimer  <fweimer@redhat.com>
35         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
36         Exit with zero in case no suitable GID is found, and write a
37         message to standard error.
39 2012-07-30  Roland McGrath  <roland@hack.frob.com>
41         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
42         rather than to 1.
43         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
44         (MAXPATHLEN): Removed.
45         (NOGROUP, NODEV): New macros.
46         (setbit, clrbit, isset, isclr): New macros.
47         (howmany, roundup, powerof2): New macros.
48         (DEV_BSIZE): New macro.
50         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
51         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
53         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
54         definition on [!__NO_LONG_DOUBLE_MATH].
56         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
57         PTR_MANGLE and PTR_DEMANGLE.
59         * socket/accept4.c (accept4): Rename to __libc_accept4.
60         Define accept4 as a weak alias.
62         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
63         on [_DIRENT_HAVE_D_TYPE].
64         * io/ftw.c (ftw_dir): Likewise.
66         * io/xmknod.c (__xmknod): Don't check PATH for being null.
68         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
70         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
71         Use the BSD numbers rather than the arbitrary ones we had.
72         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
73         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
74         (SIGXCPU, SIGXFSZ): New macros.
75         (_NSIG): Now 32.
77         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
78         initializer on [_LIBC_REENTRANT].
80         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
81         definitions inside [_POSIX_MAPPED_FILES].
83         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
85         * dirent/opendir.c: Include <fcntl.h>.
87         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
88         (__libc_getspecific): Likewise.
89         (__libc_key_create): Likewise.
91         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
92         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
93         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
94         (tmpfile64): Define as alias.
95         * sysdeps/wordsize-64/tmpfile.c: File removed.
96         * sysdeps/wordsize-64/tmpfile64.c: File removed.
97         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
98         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
100         * stdio-common/vfscanf.c: Include <stdbool.h>.
101         * nss/makedb.c: Likewise.
102         * stdio-common/_i18n_number.h: Likewise.
103         * argp/argp-help.c: Likewise.
104         * posix/wordexp.c: Likewise.
105         * sysdeps/posix/spawni.c: Likewise.
106         * nss/nss_files/files-initgroups.c: Likewise.
107         * stdio-common/reg-modifier.c: Include <stdlib.h>.
108         * nss/nss_files/files-initgroups.c: Likewise.
109         * nss/nss_db/db-netgrp.c: Likewise.
110         * nss/nss_db/db-initgroups.c: Likewise.
111         * io/fchmodat.c: Include <sys/stat.h>.
113         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
114         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
116         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
117         [HAVE_MMAP].
119         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
120         Add multiple inclusion protection.
122 2012-07-27  David S. Miller  <davem@davemloft.net>
124         * sysdeps/sparc/fpu/libm-test-ulps: Update.
126 2012-07-27  Gary Benson  <gbenson@redhat.com>
128         [BZ #14298]
129         * elf/rtld.c: Include <stap-probe.h>.
130         (dl_main): Added static probes "init_start" and "init_complete".
131         * elf/dl-load.c: Include <stap-probe.h>.
132         (lose): Take new parameter "nsid".
133         Added static probe "map_failed".
134         (_dl_map_object_from_fd): Pass namespace id to lose.
135         Added static probe "map_start".
136         (open_verify): Pass namespace id to lose.
137         * elf/dl-open.c: Include <stap-probe.h>.
138         (dl_open_worker) Added static probes "map_complete", "reloc_start"
139         and "reloc_complete".
140         * elf/dl-close.c: Include <stap-probe.h>.
141         (_dl_close_worker): Added static probes "unmap_start" and
142         "unmap_complete".
143         * elf/rtld-debugger-interface.txt: New file documenting the above.
145 2012-07-26  Roland McGrath  <roland@hack.frob.com>
147         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
148         rather than a string variable.
149         * sunrpc/rpc_main.c (h_output): Likewise.
150         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
152 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
154         * inet/check_native.c: New file.
156 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
158         [BZ #13629]
159         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
160         if larger part has absolute value 1.0.
161         * math/s_clog10.c (__clog10): Likewise.
162         * math/s_clog10f.c (__clog10f): Likewise.
163         * math/s_clog10l.c (__clog10l): Likewise.
164         * math/s_clogf.c (__clogf): Likewise.
165         * math/s_clogl.c (__clogl): Likewise.
166         * math/libm-test.inc (clog_test): Add more tests.
167         (clog10_test): Likewise.
168         * sysdeps/i386/fpu/libm-test-ulps: Update.
169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
171         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
172         (pltexit): Likewise.
173         (La_regs): Likewise.
174         (La_retval): Likewise.
175         (int_retval): Likewise.
176         Update #error for removed macros to refer only to definitions in
177         tst-audit.h.
178         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
179         macro.
180         (pltexit): Likewise.
181         (La_regs): Likewise.
182         (La_retval): Likewise.
183         (int_retval): Likewise.
184         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
185         macro.
186         (pltexit): Likewise.
187         (La_regs): Likewise.
188         (La_retval): Likewise.
189         (int_retval): Likewise.
190         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
191         macro.
192         (pltexit): Likewise.
193         (La_regs): Likewise.
194         (La_retval): Likewise.
195         (int_retval): Likewise.
196         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
197         macro.
198         (pltexit): Likewise.
199         (La_regs): Likewise.
200         (La_retval): Likewise.
201         (int_retval): Likewise.
202         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
203         macro.
204         (pltexit): Likewise.
205         (La_regs): Likewise.
206         (La_retval): Likewise.
207         (int_retval): Likewise.
208         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
209         macro.
210         (pltexit): Likewise.
211         (La_regs): Likewise.
212         (La_retval): Likewise.
213         (int_retval): Likewise.
214         * sysdeps/generic/tst-audit.h: Update comment to refer only to
215         macro definitions in tst-audit.h.
216         * sysdeps/i386/tst-audit.h: New file.
217         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
218         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
219         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
220         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
221         * sysdeps/sh/tst-audit.h: Likewise.
222         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
223         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
224         * sysdeps/x86_64/tst-audit.h: Likewise.
226 2012-07-26  Andreas Jaeger  <aj@suse.de>
228         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
229         ptrace.
231         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
232         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
233         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
234         PTRACE_O_MASK.
235         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
236         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
237         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
239         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
240         value.
242         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
243         _sigsys.
244         (si_call_addr, si_syscall, si_arch): Define new macro.
245         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
246         _sigsys.
247         (si_call_addr, si_syscall, si_arch): Define new marcro.
248         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
249         _sigsys.
250         (si_call_addr, si_syscall, si_arch): Define new macro.
251         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
252         _sigsys.
253         (si_call_addr, si_syscall, si_arch): Define new macro.
255 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
257         [BZ #13717]
258         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
259         Change to 2.4.21 where previously 2.4.1.
260         * sysdeps/unix/sysv/linux/configure: Regenerated.
261         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
262         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
263         Linux kernel version.
264         (__ASSUME_STD_AUXV): Remove.
265         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
266         kernel version.
267         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
268         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
269         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
270         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
271         (__ASSUME_NETLINK_SUPPORT): Likewise.
272         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
273         (__no_netlink_support): Remove conditional definition.
274         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
275         Remove.
276         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
277         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
278         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
279         (if_nameindex_ioctl): Remove.
280         (if_nameindex_netlink): Do not handle __no_netlink_support.
281         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
282         code.
283         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
284         Remove conditional code.
285         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
286         code.
287         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
288         unconditional.
289         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
290         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
291         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
292         Remove.
293         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
294         [!__ASSUME_STD_AUXV]: Remove conditional code.
295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
296         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
297         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
299         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
300         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
301         code.
302         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
304         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
305         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
306         conditional code.
307         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
309         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
310         code.
311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
312         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
313         conditional code.
314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
315         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
316         code unconditional.
317         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
318         conditional code.
319         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
320         unconditional.
321         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
322         conditional code.
323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
324         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
325         unconditional.
326         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
327         conditional code.
328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
329         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
330         code unconditional.
331         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
332         conditional code.
333         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
334         unconditional.
335         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
336         conditional code.
337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
338         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
339         code unconditional.
340         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
341         conditional code.
342         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
343         unconditional.
344         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
345         conditional code.
347 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
349         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
350         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
351         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
352         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
353         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
354         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
355         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
356         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
357         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
358         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
359         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
360         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
361         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
362         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
363         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
364         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
365         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
366         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
367         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
368         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
369         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
370         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
371         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
373 2012-07-25  Florian Weimer  <fweimer@redhat.com>
375         * Versions.def: Add GLIBC_2.17.
376         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
377         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
378         Introduce __libc_secure_getenv.
379         * stdlib/Versions (2.17): Add secure_getenv
380         (GLIBC_PRIVATE): Add __libc_secure_getenv.
381         * stdlib/secure-getenv.c: Rename __secure_getenv to
382         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
383         symbol __secure_getenv for GLIBC_2.0.
384         * stdlib/tst-secure-getenv.c: New.
385         * stdlib/Makefile (tests): Add testcase.
386         * manual/startup.texi (Environment Access): Document
387         secure_getenv.
388         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
389         __libc_secure_getenv.
390         * inet/ruserpass.c (ruserpass): Likewise.
391         * malloc/mtrace.c (mtrace): Likewise.
392         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
393         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
394         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
395         * sysdeps/posix/tempname.c: Likewise.  Evaluate
396         HAVE_SECURE_GETENV.
397         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
398         __secure_getenv to __libc_secure_getenv.
399         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
401         Likewise.
402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
403         Likewise.
404         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
405         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
406         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
407         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
408         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
409         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
410         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
412 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
414         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
415         (struct La_i86_retval): Likewise.
416         (struct La_x86_64_regs): Likewise.
417         (struct La_x86_64_retval): Likewise.
418         (struct La_x32_regs): Likewise.
419         (struct La_x32_retval): Likewise.
420         (struct La_ppc32_regs): Likewise.
421         (struct La_ppc32_retval): Likewise.
422         (struct La_ppc64_regs): Likewise.
423         (struct La_ppc64_retval): Likewise.
424         (struct La_sh_regs): Likewise.
425         (struct La_sh_retval): Likewise.
426         (struct La_s390_32_regs): Likewise.
427         (struct La_s390_32_retval): Likewise.
428         (struct La_s390_64_regs): Likewise.
429         (struct La_s390_64_retval): Likewise.
430         (struct La_sparc32_regs): Likewise.
431         (struct La_sparc32_retval): Likewise.
432         (struct La_sparc64_regs): Likewise.
433         (struct La_sparc64_retval): Likewise.
434         (struct audit_ifaces): Remove architecture-specific pltenter and
435         pltexit members.
436         * sysdeps/i386/ldsodefs.h: New file.
437         * sysdeps/powerpc/ldsodefs.h: Likewise.
438         * sysdeps/s390/ldsodefs.h: Likewise.
439         * sysdeps/sh/ldsodefs.h: Likewise.
440         * sysdeps/sparc/ldsodefs.h: Likewise.
441         * sysdeps/x86_64/ldsodefs.h: Likewise.
443 2012-07-25  Marek Polacek  <polacek@redhat.com>
445         [BZ #6808]
446         * math/libm-test.inc (yn_test): Add another test.
447         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
448         to ERANGE when the result is +-Inf.
449         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
450         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
451         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
452         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
454 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
456         * conform/data/time.h-data (NULL): Use macro-constant.  Require
457         equal to 0.
458         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
459         clock_t.
460         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
462 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
464         * configure.in <sysdeps resolving>: Correct printing
465         Implies_before.
466         * configure: Regenerate.
468 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
470         * math/w_ilogb.c: Include <limits.h>.
471         * math/w_ilogbl.c: Likewise.
473 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
475         * manual/lang.texi (__va_copy): Document primarily as ISO C99
476         va_copy.  Document allowing for unavailable va_copy only as
477         pre-C99 compatibility.
478         * manual/string.texi (Copying and Concatenation): Use va_copy
479         instead of __va_copy in concat example.
481 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
483         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
484         (__sendto): Use create_address_port.  Initialize APORT and deallocate
485         it if not null.
487         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
488         with O_NOLINK passed to __file_name_lookup.
490         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
491         with O_NOLINK passed to __file_name_lookup.
493         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
494         negative N or less than NGIDS.
496         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
497         type to string_t.  Set ERANGE as errno and return it if NAME is not big
498         enough.  Use memcpy instead of strncpy.
500 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
502         * elf/Makefile (check-data): Remove.
503         (localplt.data): New vpath directive.
504         ($(objpfx)check-localplt.out): Use localplt.data from vpath
505         instead of $(check-data).
506         * scripts/data/localplt-generic.data: Move to ...
507         * sysdeps/generic/localplt.data: ... here.
508         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
509         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
510         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
512         ... here.
513         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
515         ... here.
516         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
517         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
518         ... here.
519         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
520         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
521         ... here.
522         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
523         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
524         ... here.
525         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
526         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
527         ... here.
529 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
531         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
532         PPC32 and PPC64 files.
533         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
534         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
536 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
538         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
539         __makecontext_ret to ...
540         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
541         ... here and call exit if uc_link is NULL.  New file.
542         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
543         __makecontext_ret.S.
544         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
545         __makecontext_ret to ...
546         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
547         ... here and call exit if uc_link is NULL.  New file.
548         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
549         __makecontext_ret.S.
551 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
553         * elf/elf.h (R_390_IRELATIVE): New definition.
554         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
555         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
556         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
557         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
558         (elf_machine_lazy_rel): Likewise.
559         * sysdeps/s390/dl-irel.h: New file.
560         * sysdeps/s390/s390-64/memcpy.S: New asm code.
561         * sysdeps/s390/s390-64/memset.S: New asm code.
562         * sysdeps/s390/s390-64/memcmp.S: New asm code.
563         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
564         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
565         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
566         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
567         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
568         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
569         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
570         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
571         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
572         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
573         * sysdeps/s390/s390-32/memcpy.S: New asm code.
574         * sysdeps/s390/s390-32/memset.S: New asm code.
575         * sysdeps/s390/s390-32/memcmp.S: New asm code.
577 2012-07-17  Marek Polacek  <polacek@redhat.com>
579         [BZ #14349]
580         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
581         * sysdeps/s390/s390-64/configure.in: Likewise.
582         * sysdeps/sparc/configure.in: Likewise.
583         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
584         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
585         * sysdeps/i386/configure.in: Likewise.
586         * sysdeps/x86_64/configure.in: Likewise.
587         * sysdeps/sh/configure.in: Likewise.
588         * sysdeps/s390/s390-32/configure: Regenerated.
589         * sysdeps/s390/s390-64/configure: Likewise.
590         * sysdeps/x86_64/configure: Likewise.
591         * sysdeps/sh/configure: Likewise.
592         * sysdeps/powerpc/powerpc64/configure: Likewise.
593         * sysdeps/powerpc/powerpc32/configure: Likewise.
594         * sysdeps/sparc/configure: Likwise.
595         * sysdeps/i386/configure: Likewise.
597         * elf/dl-open.c: Comment fixes.
599 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
601         * Makefile [CXX] (check-data): Remove.
602         [CXX] (c++-types.data): New vpath directive.
603         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
604         vpath.  Do not allow for C++ type data being missing.
605         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
606         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
607         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
608         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
609         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
610         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
611         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
613         ... here.
614         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
616         ... here.
617         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
618         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
619         ... here.
620         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
621         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
622         ... here.
623         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
624         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
625         ... here.
626         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
627         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
628         ... here.
629         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
630         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
631         ... here.
632         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
633         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
635         * elf/tls-macros.h (TLS_LE): Move architecture-specific
636         definitions to architecture-specific files.
637         (TLS_IE): Likewise.
638         (TLS_LD): Likewise.
639         (TLS_GD): Likewise.
640         * sysdeps/i386/tls-macros.h: New file.
641         * sysdeps/powerpc/tls-macros.h: Likewise.
642         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
643         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
644         * sysdeps/sh/tls-macros.h: Likewise.
645         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
646         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
647         * sysdeps/x86_64/tls-macros.h: Likewise.
649 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
651         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
652         zero value for regular exit case.
654         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
655         (__start_context): Preserve zero value for regular exit case.
657 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
658             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
660         * manual/setjmp.texi (setcontext): Clarify normal process
661         termination when uc_link is the null pointer.
662         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
663         exit call.
665 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
667         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
668         preprocessor.  Test for each exception mask separately.
670 2012-07-16  Andreas Jaeger  <aj@suse.de>
672         * po/ru.po: Update from translation team.
674 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
676         * conform/data/string.h-data (NULL): Use macro-constant.  Require
677         equal to 0.
678         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
679         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
680         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
681         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
682         [ISO || ISO99 || ISO11] (*_t): Do not allow.
684 2012-07-13  Andreas Jaeger  <aj@suse.de>
686         * po/fr.po: Update from translation team.
688 2012-07-12  Marek Polacek  <polacek@redhat.com>
690         [BZ #14173]
691         * math/libm-test.inc (yn_test): Add test for BZ #14173.
692         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
693         loop condition.
695 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
697         [BZ #13717]
698         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
699         Change to 2.4.1 where previously 2.4.0.
700         * sysdeps/unix/sysv/linux/configure: Regenerated.
701         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
702         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
703         version.
704         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
705         (__ASSUME_AT_CLKTCK): Remove.
706         (__ASSUME_AT_PAGESIZE): Likewise.
707         (__ASSUME_AT_XID): Likewise.
708         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
709         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
710         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
711         unconditionally.
712         (HAVE_AUX_PAGESIZE): Likewise.
713         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
714         [__ASSUME_AT_CLKTCK]: Make code unconditional.
715         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
717 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
719         [BZ #14307]
720         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
721         the temporary buffer used to invoke __gethostbyname2_r,
722         __gethostbyaddr_r and gethostbyname4_r to make room for struct
723         host_data / struct gaih_addrtuple.
724         * resolv/nss_dns/dns-host.c (global scope): Move definition of
725         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
726         header file nss/nsswitch.h.
727         * nss/nsswitch.h (global scope): Add definition of implementation
728         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
729         resolv/nss_dns/dns-host.c).
731 2012-07-11  Andreas Jaeger  <aj@suse.de>
733         * po/fr.po: Update from translation team.
735         * po/sv.po: Update from translation team
736         * po/fr.po: Another update from translation team.
738 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
740         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
741         for subnormals or multiply small sinh result by itself.
742         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
743         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
745 2012-07-11  David S. Miller  <davem@davemloft.net>
747         * sysdeps/sparc/fpu/libm-test-ulps: Update.
749 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
751         [BZ #14347]
752         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
753         (INTERNAL_MARK): Shift it here.
755 2012-07-10  Marek Polacek  <polacek@redhat.com>
757         [BZ #14151]
758         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
759         libc_cv_asm_global_directive with .globl.
760         * configure: Regenerated.
761         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
762         with .globl.
763         * sysdeps/i386/configure: Regenerated.
764         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
765         with .globl.
766         * sysdeps/x86_64/configure: Regenerated.
767         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
768         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
769         * elf/tst-unique2mod2.c: Likewise.
770         * elf/tst-unique2mod1.c: Likewise.
771         * elf/tst-unique1mod2.c: Likewise.
772         * elf/tst-unique1mod1.c: Likewise.
773         * sysdeps/s390/s390-32/sysdep.h: Likewise.
774         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
775         * sysdeps/s390/s390-64/sysdep.h: Likewise.
776         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
777         * sysdeps/mach/sysdep.h: Likewise.
778         * sysdeps/i386/sysdep.h: Likewise.
779         * sysdeps/i386/i386-mcount.S: Likewise.
780         * sysdeps/x86_64/_mcount.S: Likewise.
781         * sysdeps/x86_64/sysdep.h: Likewise.
782         * sysdeps/sh/_mcount.S: Likewise.
783         * sysdeps/sh/sysdep.h: Likewise.
784         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
785         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
786         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
787         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
788         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
789         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
790         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
791         * locale/localeinfo.h: Likewise.
792         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
793         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
795 2012-07-09  Roland McGrath  <roland@hack.frob.com>
797         [BZ #14336]
798         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
799         system".
800         * manual/message.texi (The Uniforum approach): Likewise.
801         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
802         (glibc iconv Implementation): Likewise.
804 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
806         [BZ #14337]
807         * math/s_clog.c (__clog): Avoid scaling a value down where that
808         could result in underflow.
809         * math/s_clog10.c (__clog10): Likewise.
810         * math/s_clog10f.c (__clog10f): Likewise.
811         * math/s_clog10l.c (__clog10l): Likewise.
812         * math/s_clogf.c (__clogf): Likewise.
813         * math/s_clogl.c (__clogl): Likewise.
814         * math/libm-test.inc (clog_test): Add more tests.
815         (clog10_test): Likewise.
816         * sysdeps/i386/fpu/libm-test-ulps: Update.
817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
819 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
821         [BZ #14283]
822         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
823         by 7 not 8 to examine high bit of fractional part.
825         [BZ #14042]
826         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
827         for call to __mcount_internal.
828         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
829         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
830         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
832 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
834         [BZ #14154]
835         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
836         approximation for values within 0x1p-13f of an odd multiple of
837         pi/4.
838         * math/libm-test.inc (tan_test): Do not allow spurious underflow
839         exception.  Add more tests.
840         * sysdeps/i386/fpu/libm-test-ulps: Update.
842         [BZ #6778]
843         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
844         inputs and return -1 for them.  Do not check for +Inf in case not
845         reachable for +Inf.
846         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
847         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
848         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
849         and return -1 for them.  Do not check for +Inf in case not
850         reachable for +Inf.
851         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
852         define.
853         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
854         and return -1 for them.  Do not check for +Inf in case not
855         reachable for +Inf.
856         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
857         spurious underflow.
858         * sysdeps/i386/fpu/libm-test-ulps: Update.
859         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
861 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
863         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
865 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
867         [BZ #14157]
868         [BZ #14331]
869         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
870         could result in spurious underflow.  Scale down values above
871         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
872         * math/s_csqrtf.c (__csqrtf): Likewise.
873         * math/s_csqrtl.c (__csqrtl): Likewise.
874         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
875         spurious underflow.
876         * sysdeps/i386/fpu/libm-test-ulps: Update.
877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
879 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
881         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
882         xopen-msg.sed.
883         * catgets/xopen-msg.awk: New file.
884         * catgets/xopen-msg.sed: Removed.
886         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
887         po2text.sed.
888         * intl/po2test.awk: New file.
889         * intl/po2test.sed: Removed.
891 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
893         [BZ #14328]
894         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
895         or multiply small sinh result by itself.
896         * math/s_ctanf.c (__ctanf): Likewise.
897         * math/s_ctanh.c (__ctanh): Likewise.
898         * math/s_ctanhf.c (__ctanhf): Likewise.
899         * math/s_ctanhl.c (__ctanhl): Likewise.
900         * math/s_ctanl.c (__ctanl): Likewise.
901         * math/libm-test.inc (ctan_test_tonearest): New function.
902         (ctan_test_towardzero): Likewise.
903         (ctan_test_downward): Likewise.
904         (ctan_test_upward): Likewise.
905         (ctanh_test_tonearest): Likewise.
906         (ctanh_test_towardzero): Likewise.
907         (ctanh_test_downward): Likewise.
908         (ctanh_test_upward): Likewise.
909         (main): Call these new functions.
910         * sysdeps/i386/fpu/libm-test-ulps: Update.
911         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
913 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
915         * .gitignore: Delete /ports entry.
917 2012-07-03  Andreas Jaeger  <aj@suse.de>
919         * po/bg.po: Update from translation team.
920         * po/cs.po: Likewise.
921         * po/de.po: Likewise.
922         * po/hr.po: Likewise.
923         * po/nl.pl: Likewise.
924         * po/pl.po: Likewise.
925         * po/vi.po: Likewise.
927 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
929         * Makeconfig [!+link] (+link-before-libc): New variable.
930         [!+link] (+link-after-libc): Likewise.
931         [!+link] (+link-tests): Likewise.
932         [!+link] (+link): Define in terms of $(+link-before-libc) and
933         $(+link-after-libc).
934         [!+link-static] (+link-static-before-libc): New variable.
935         [!+link-static] (+link-static-after-libc): Likewise.
936         [!+link-static] (+link-static-tests): Likewise.
937         [!+link-static] (+link-static): Define in terms of
938         $(+link-static-before-libc) and $(+link-static-after-libc).
939         [build-shared] (link-libc-before-gnulib): New variable.
940         [build-shared] (link-libc-tests): Likewise.
941         [build-shared] (link-libc): Define in terms of
942         $(link-libc-before-gnulib).
943         [!build-shared] (link-libc-tests): New variable.
944         (link-libc-static-tests): New variable.
945         [!gnulib] (gnulib-arch): New variable.
946         [!gnulib] (gnulib-tests): Likewise.
947         [!gnulib] (static-gnulib-arch): Likewise.
948         [!gnulib] (static-gnulib-tests): Likewise.
949         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
950         Define with "=" instead of ":=".
951         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
952         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
953         * Rules (binaries-all-notests): New variable.
954         (binaries-all-tests): Likewise.
955         (binaries-static-notests): Likewise.
956         (binaries-static-tests): Likewise.
957         (binaries-all): Define using $(binaries-all-notests) and
958         $(binaries-all-tests).
959         (binaries-static): Define using $(binaries-static-notests) and
960         $(binaries-static-tests).
961         (binaries-shared-tests): New variable.
962         (binaries-shared-notests): Likewise.
963         (binaries-shared): Remove variable.
964         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
965         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
966         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
967         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
968         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
969         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
970         * elf/Makefile (sln-modules): New variable.
971         (extra-objs): Add $(sln-modules:=.o).
972         (ldconfig-modules): Add static-stubs.
973         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
974         * elf/static-stubs.c: New file.
976         [BZ #14283]
977         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
978         by 7 not 8 to examine high bit of fractional part.  Use volatile
979         variables when splitting into final array of floats if
980         __FLT_EVAL_METHOD__ != 0.
981         * math/libm-test.inc (cos_test): Add another test.
982         (sin_test): Likewise.
983         * sysdeps/i386/fpu/libm-test-ulps: Update.
985         [BZ #14273]
986         * math/libm-test.inc (cosh_test): Add more tests.
988         * version.h (RELEASE): Set to "development".
989         (VERSION): Set to "2.16.90".
991 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
993         * NEWS: Update copyright. Remove last-updated date.
994         Mention math library bug fixes and timezone data changes.
995         * README: Mention GNU/Hurd, x32, and HPPA support status.
997 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
999         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
1001 2012-06-27  Andreas Jaeger  <aj@suse.de>
1003         * manual/contrib.texi (Contributors): Add Samuel Thibault.
1005 2012-06-25  Andreas Jaeger  <aj@suse.de>
1007         * sysdeps/s390/fpu/libm-test-ulps: Update.
1009 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
1010             Thomas Schwinge  <thomas@codesourcery.com>
1012         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
1013         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
1014         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
1015         fanotify_mark.
1017 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
1019         * sysdeps/mach/start.c: Remove file.
1020         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
1021         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
1022         * sysdeps/sh/init-first.c: Likewise.
1024         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
1025         registers for frame unwinding purposes, add CFI directives.
1026         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1027         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
1028         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1029         Likewise.
1031         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
1032         __fortify_fail returning.
1033         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1035         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
1036         sysdeps/sh/____longjmp_chk.S.
1037         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
1038         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
1039         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
1040         (gen-as-const-headers): Append sigaltstack-offsets.sym.
1042         * sysdeps/sh/abort-instr.h: New file.
1043         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
1044         process in case exit returns.
1046         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
1047         initialize the GOT register before use.
1049         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
1050         calculation of ARGC > 4.
1052         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
1053         meaningful names to some local labels.
1055 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1056             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1058         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1059         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
1060         (__arch_compare_and_exchange_val_16_acq): Likewise.
1061         (__arch_compare_and_exchange_val_32_acq): Likewise.
1062         (atomic_exchange_and_add): Fix gUSA sequence.
1063         (atomic_add): Likewise.
1064         (atomic_add_negative): Likewise.
1065         (atomic_add_zero): Likewise.
1066         (atomic_bit_test_set): Likewise.
1068 2012-06-22  Andreas Schwab  <schwab@redhat.com>
1070         [BZ #13579]
1071         * include/link.h (struct link_map): Add l_free_initfini.
1072         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
1073         l_initfini.
1074         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
1075         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
1076         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
1077         set.
1079 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
1081         * configure.in: Use AC_LANG_SOURCE.
1082         * configure: Regenerate.
1084 2012-06-22  Roland McGrath  <roland@hack.frob.com>
1086         * configure.in (libc_cv_localstatedir): New substituted variable.
1087         * configure: Regenerated.
1088         * config.make.in (localstatedir): New variable, substituted from
1089         libc_cv_localstatedir.
1090         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
1091         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
1092         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
1093         * sysdeps/gnu/configure: Regenerated.
1095 2012-06-21  Jeff Law  <law@redhat.com>
1097         [BZ #14277]
1098         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
1099         free.  Simplify list management for _LIBC case.
1101 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
1103         [BZ #14273]
1104         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
1105         Clear sign bit of 64-bit integer value before comparing against
1106         overflow value.
1108         * sysdeps/mach/configure: Regenerated.
1110 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1112         [BZ #14278]
1113         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
1115 2012-06-21  Jeff Law  <law@redhat.com>
1117         [BZ #13882]
1118         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
1119         uint16_t for elements in the "seen" array to avoid char overflows.
1120         * elf/dl-fini.c (_dl_sort_fini): Likewise.
1121         * elf/dl-open.c (dl_open_worker): Likewise.
1123 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
1125         * scripts/list-sources.sh: Scan PORTS for translations.
1126         * po/libc.pot: Regenerated.
1128 2012-06-21  Andreas Jaeger  <aj@suse.de>
1130         [BZ #12194]
1131         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
1132         warning.
1133         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
1134         * bits/byteswap-16.h (__bswap_16): Likewise.
1135         * bits/byteswap.h (__bswap_constant_16): Likewise.
1137 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1139         [BZ #14117]
1140         * sysdeps/i386/fpu_control.h: Removed.
1141         * sysdeps/x86_64/fpu_control.h: Moved to ...
1142         * sysdeps/x86/fpu_control.h: Here.
1144         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
1145         (_FPU_SETCW): Likewise.
1147 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
1149         [BZ #14117]
1150         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
1151         * sysdeps/x86/fpu/bits/mathinline.h: This.
1152         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
1154         [BZ #14050]
1155         [BZ #14117]
1156         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
1157         functions if __x86_64__ is defined.
1159 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
1161         * string/endian.h: Add !__ASSEMBLER__ condition for including
1162         conversion interfaces.
1164 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
1166         [BZ #14241]
1167         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
1168         of ABS(x) in calculating zero to negative powers other than odd
1169         integers.
1170         * math/libm-test.inc (pow_test): Add more tests.
1172 2012-06-15  Andreas Jaeger  <aj@suse.de>
1174         * manual/contrib.texi (Contributors): Update entry of Liubov
1175         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
1176         Machado Filho.
1178 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
1180         * string/string.h: Add __wur to GNU version of strerror_r.
1182 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1184         [BZ #14229]
1185         * string/Makefile (tests): Add tst-strtok_r.
1186         * string/tst-strtok_r.c: New file.
1187         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
1188         RAX_LP/RDX_LP on SAVE_PTR.
1190 2012-06-14  Roland McGrath  <roland@hack.frob.com>
1192         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
1194 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
1196         * libm_test.inc (csqrt_test): Allow more spurious underflow
1197         exceptions.
1198         (j0_test): Likewise.
1199         (j1_test): Likewise.
1200         (y0_test): Likewise.
1201         (y1_test): Likewise.
1203 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
1205         * po/Makefile (libc.pot): Use UTF-8 charset.
1207 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
1209         [BZ #14210]
1210         Suppress sign-conversion warning from FD_SET.
1211         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
1212         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
1213         not unsigned long int.
1214         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
1216 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
1218         [BZ #14050]
1219         [BZ #14117]
1220         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
1221         __extern_always_inline instead of __extern_inline.
1222         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
1223         (__signbit): Likewise.
1224         (__signbitl): Support C++ namespace.
1225         (lrintf): New inline function.
1226         (lrint): Likewise.
1227         (llrintf): Likewise.
1228         (llrint): Likewise.
1229         (fmaxf): Likewise.
1230         (fmax): Likewise.
1231         (fminf): Likewise.
1232         (fmin): Likewise.
1233         (rint): Likewise.
1234         (rintf): Likewise.
1235         (ceil): Likewise.
1236         (ceilf): Likewise.
1237         (floor): Likewise.
1238         (floorf): Likewise.
1239         (nearbyint): Likewise.
1240         (nearbyintf): Likewise.
1242 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
1244         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
1245         non-default versions.
1247 2012-06-11  Roland McGrath  <roland@hack.frob.com>
1249         [BZ #14218]
1250         * manual/argp.texi (Argp): Reword argp_parse description slightly.
1252 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
1254         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
1255         (FE_UPWARD, FE_DOWNWARD): Don't define.
1256         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
1257         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
1259         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
1260         reading it.
1261         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
1262         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
1264 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1266         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
1267         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
1268         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
1269         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
1271 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1273         [BZ #14117]
1274         * sysdeps/i386/fpu/bits/fenv.h: Removed.
1275         * sysdeps/i386/fpu/Implies: New file.
1276         * sysdeps/x86_64/fpu/Implies: Likewise.
1277         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
1278         * sysdeps/x86/fpu/bits/fenv.h: This.
1280         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
1281         __SSE_MATH__.
1283 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
1285         [BZ #14134]
1286         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
1287         character 0xffff that matches the last element of the
1288         conversion table.
1290 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1292         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
1293         fmodl commit.
1295 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1297         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
1298         values higher than 25.6283.
1300 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1302         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
1303         subnormal exponent extraction and add some __builtin_expect.
1304         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
1305         Fix for subnormal mantissa calculation.
1307 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
1309         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
1310         cpu2 is -1 and errno is not ENOSYS.
1312 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
1314         [BZ #14117]
1315         * sysdeps/i386/i486/bits/string.h: Renamed to ...
1316         * sysdeps/x86/bits/string.h: This.
1317         * sysdeps/x86_64/bits/string.h: Removed.
1319         * sysdeps/i386/i486/bits/string.h: Define inline functions only
1320         if not compiling for x86-64, but compiling for >= i486.
1322         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
1323         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
1325         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
1326         New macro from Linux kernel 3.4.0.
1327         (FP_XSTATE_MAGIC2): Likewise.
1328         (FP_XSTATE_MAGIC2_SIZE): Likewise.
1329         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
1330         (struct _fpx_sw_bytes): New struct.
1331         (struct _xsave_hdr): Likewise.
1332         (struct _ymmh_state): Likewise.
1333         (struct _xstate): Likewise.
1335         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
1336         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
1337         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
1338         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
1339         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
1340         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
1342         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
1343         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
1344         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
1345         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
1346         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
1347         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
1349 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1351         [BZ #13743]
1352         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
1353         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
1354         (sysdep_headers): Include sys/platform/ppc.h.
1355         * sysdeps/powerpc/test-gettimebase.c: Test for
1356         __ppc_get_timebase() to catch future ISA opcode/insn changes.
1357         * manual/Makefile (appendices): Include platform.texi.
1358         * manual/contrib.texi (Contributors): Update @node pointers.
1359         * manual/maint.texi (Maintenance): Likewise.
1360         (Platform): New node.
1361         * manual/platform.texi: New file.  Document the new features.
1363 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1364             Jakub Jelinek  <jakub@redhat.com>
1366         [BZ #14188]
1367         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
1368         where __builtin_expect is unavailable.
1370 2012-06-03  David S. Miller  <davem@davemloft.net>
1372         * stdlib/longlong.h: Updated from GCC.
1374 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
1376         [BZ #14042]
1377         * sysdeps/powerpc/powerpc32/mcount.c: New file.
1378         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
1379         __mcount_internal.
1380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1381         (GLIBC_2.16): Likewise.
1383 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1385         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
1387 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
1389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1390         (default-abi): New variable.
1391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
1392         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
1393         variable.
1394         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
1395         Likewise.
1396         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
1397         Likewise.
1398         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
1399         Likewise.
1401         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
1402         definition.  Document in comment.
1404 2012-06-01  David S. Miller  <davem@davemloft.net>
1406         * stdlib/longlong.h: Updated from GCC.
1408 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1410         [BZ #14117]
1411         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
1412         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
1413         sys/debugreg.h sys/io.h here.
1414         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
1415         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
1416         sys/io.h.
1417         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
1418         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
1419         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
1420         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
1421         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
1422         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
1424         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
1425         Define only if __x86_64__ is defined.
1427 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
1429         [BZ #14048]
1430         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
1431         Use int64_t for variable i.
1432         * math/libm-test.inc (fmod_test): Add more tests.
1434         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
1435         z computation is not scheduled after fetestexcept.
1436         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
1437         Use math_force_eval instead of asm to ensure calculation scheduled
1438         before exception test.
1439         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
1440         Ensure a1 + u.d computation is not scheduled after fetestexcept.
1442 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
1444         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
1445         computation is not scheduled after fetestexcept.
1447 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1449         [BZ #14117]
1450         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
1451         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
1453 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1455         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
1456         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
1458 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
1460         [BZ #14117]
1461         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
1462         <bits/wordsize.h>.
1463         (__WCHAR_MIN): Support __WORDSIZE == 64.
1464         (__WCHAR_MAX): Likewise.
1466         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
1467         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
1469         [BZ #14183]
1470         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
1471         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
1473         [BZ #14117]
1474         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
1475         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
1477         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
1478         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
1480         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
1481         Defined to 1 if __x86_64__ isn't defined.
1482         (_STAT_VER_LINUX_OLD): New.
1483         (st_atime): Remove duplicate.
1484         (st_mtime): Likewise.
1485         (st_ctime): Likewise.
1487 2012-05-31  David S. Miller  <davem@davemloft.net>
1489         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
1490         entries.
1492 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
1494         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
1495         gen-libm-test.pl.
1497         [BZ #14132]
1498         * elf/dl-reloc.c: Include <_itoa.h>.
1499         (_dl_reloc_bad_type): Remove use of INTUSE.
1500         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
1501         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
1502         * stdio-common/psiginfo.c (psiginfo): Likewise.
1503         * stdio-common/psignal.c (psignal): Likewise.
1504         * string/strsignal.c (strsignal): Likewise.
1505         * include/signal.h (_sys_siglist): Declare hidden proto.
1506         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
1507         INTVARDEF with libc_hidden_data_def.
1508         * stdio-common/itoa-udigits.c: Likewise.
1509         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
1510         (_itoa_lower_digits_internal): Remove declaration.
1511         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
1512         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
1513         (_sys_sigabbrev_internal): Remove aliases.
1514         (_sys_siglist): Define hidden alias.
1516 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
1518         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1519         bits/sysctl.h.
1521 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
1523         [BZ #14117]
1524         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
1525         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
1527         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
1528         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
1529         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
1530         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
1531         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
1532         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
1534         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
1535         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
1536         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
1538         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
1539         with __addr.
1540         (insw): Likewise.
1541         (insl): Likewise.
1542         (outsb): Likewise.
1543         (outsw): Likewise.
1544         (outsl): Likewise.
1546         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
1547         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
1548         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
1550         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
1551         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
1552         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
1553         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
1554         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
1555         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
1557         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
1558         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
1560         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
1561         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
1563         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
1564         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
1565         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
1567         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
1568         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
1569         to ...
1570         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
1572         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
1573         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
1574         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
1576         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
1577         for x86-64.
1578         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
1580 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
1582         * math/math.h (M_El): Use two more decimal places.
1583         (M_LOG2El): Likewise.
1584         (M_LOG10El): Likewise.
1585         (M_LN2l): Likewise.
1586         (M_LN10l): Likewise.
1587         (M_PIl): Likewise.
1588         (M_PI_2l): Likewise.
1589         (M_PI_4l): Likewise.
1590         (M_1_PIl): Likewise.
1591         (M_2_PIl): Likewise.
1592         (M_2_SQRTPIl): Likewise.
1593         (M_SQRT2l): Likewise.
1594         (M_SQRT1_2l): Likewise.
1596 2012-05-31  David S. Miller  <davem@davemloft.net>
1598         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
1599         values between float registers.
1600         * sysdeps/sparc/sparc64/memset.S: Likewise.
1601         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
1603 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
1605         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
1606         -D_FORTIFY_SOURCE=1.
1607         (CPPFLAGS-tst-longjmp_chk.c): Define.
1608         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
1609         (CPPFLAGS-tst-longjmp_chk2.c): Define.
1610         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
1611         CFLAGS-tst-wchar-h.c.
1613 2012-05-31  Marek Polacek  <polacek@redhat.com>
1615         [BZ #14132]
1616         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
1617         __endmntent_internal): Remove declaration.
1618         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
1619         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
1620         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
1622 2012-05-30  David S. Miller  <davem@davemloft.net>
1624         * sysdeps/sparc/sparc32/soft-fp/q_util.c
1625         (___Q_simulate_exceptions): Use real FP ops rather than writing
1626         into the %fsr.
1627         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
1628         Likewise.
1630 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1632         [BZ #14117]
1633         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
1634         * sysdeps/x86/bits/xtitypes.h: This.
1636         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
1637         * sysdeps/x86/bits/wordsize.h: This.
1639         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
1640         * sysdeps/x86/bits/huge_vall.h: This.
1642         * sysdeps/i386/bits/select.h: Removed.
1643         * sysdeps/x86_64/bits/select.h: Renamed to ...
1644         * sysdeps/x86/bits/select.h: This.
1646         * sysdeps/i386/bits/setjmp.h: Removed.
1647         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
1648         * sysdeps/x86/bits/setjmp.h: This.
1650         * sysdeps/i386/bits/mathdef.h: Removed.
1651         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
1652         * sysdeps/x86/bits/mathdef.h: This.
1654 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1656         [BZ #14132]
1657         * include/sys/socket.h (__connect_internal)
1658         (__libc_sa_len_internal): Remove declaration.
1659         (__connect, __libc_sa_len): Declare hidden_proto.
1660         (SA_LEN): Remove use of INTUSE.
1661         * socket/connect.c: Add libc_hidden_def.
1662         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
1663         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
1664         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
1665         alias.
1666         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1667         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1668         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
1669         of adding _internal alias.
1671 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1673         [BZ #14117]
1674         * sysdeps/i386/bits/link.h: Removed.
1675         * sysdeps/i386/bits/linkmap.h: Likewise.
1676         * sysdeps/x86_64/bits/link.h: Renamed to ...
1677         * sysdeps/x86/bits/link.h: This.
1678         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
1679         * sysdeps/x86/bits/linkmap.h: This.
1681         * sysdeps/i386/bits/endian.h: Removed.
1682         * sysdeps/x86_64/bits/endian.h: Renamed to ...
1683         * sysdeps/x86/bits/endian.h: This.
1685         * sysdeps/i386/bits/byteswap.h: Removed.
1686         * sysdeps/i386/bits/byteswap-16.h: Likewise.
1687         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
1688         * sysdeps/x86/bits/byteswap.h: This.
1689         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
1690         * sysdeps/x86/bits/byteswap-16.h: This.
1691         * sysdeps/i386/Implies: Add x86.
1692         * sysdeps/x86_64/Implies: Likewise.
1694 2012-05-30  David S. Miller  <davem@davemloft.net>
1696         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
1697         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
1698         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
1699         (FP_TRAPPING_EXCEPTIONS): Define.
1700         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
1701         (FP_TRAPPING_EXCEPTIONS): Define.
1702         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
1703         subnormals only when inexact has been signalled or underflow
1704         exceptions are enabled.
1705         (_FP_PACK_CANONICAL): Likewise.
1707 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1709         [BZ #14183]
1710         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
1711         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
1713 2012-05-30  Richard Henderson  <rth@twiddle.net>
1715         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
1716         with #ifndef NOT_IN_libc.
1718         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
1719         marked to avoid plt entry.
1721 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1723         [BZ #14112]
1724         * Makeconfig (default-abi): New macro.
1725         (abi-includes): Likewise.
1726         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
1727         $(abi-$(default-abi)-lib-soname) for soname if defined.
1728         ($(common-objpfx)gnu/lib-names.stmp): Generate from
1729         abi-variants.
1730         * Makefile (installed-stubs): Likewise.
1731         * include/stubs-biarch.h: Removed.
1732         * scripts/lib-names.awk: Only handle one library at a time.
1733         * scripts/soversions.awk: Remove WORDSIZE support.
1734         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
1735         entries.
1736         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
1737         Removed.
1738         (syscall-list-default-condition): Likewise.
1739         (syscall-list-default-condition): Likewise.
1740         (syscall-list-includes): Likewise.
1741         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
1742         syscall-list-* with abi-*.  Handle undefined abi-variants.
1743         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
1744         * sysdeps/unix/sysv/linux/i386/Implies: New file.
1745         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
1746         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
1747         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
1748         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
1749         Removed.
1750         (syscall-list-32-options): Likewise.
1751         (syscall-list-32-condition): Likewise.
1752         (syscall-list-64-options): Likewise.
1753         (syscall-list-64-condition): Likewise.
1754         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
1755         macro.
1756         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
1757         Renamed to ...
1758         (abi-*): This.
1759         (abi-64-ld-soname): New macro.
1760         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
1761         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
1762         Renamed to ...
1763         (abi-*): This.
1764         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
1765         * sysdeps/x86_64/x32/shlib-versions: Likewise.
1767 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
1769         * sysdeps/unix/sysv/linux/kernel-features.h
1770         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
1771         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
1772         include <kernel-features.h>.
1773         [!__NR_ftruncate64]: Remove conditional code.
1774         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1775         [__NR_ftruncate64]: Make code unconditional.
1776         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1777         * sysdeps/unix/sysv/linux/truncate64.c: Do not
1778         include <kernel-features.h>.
1779         [!__NR_ftruncate64]: Remove conditional code.
1780         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1781         [__NR_ftruncate64]: Make code unconditional.
1782         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
1784         include <kernel-features.h>.
1785         [!__NR_ftruncate64]: Remove conditional code.
1786         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1787         [__NR_ftruncate64]: Make code unconditional.
1788         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
1790         include <kernel-features.h>.
1791         [!__NR_ftruncate64]: Remove conditional code.
1792         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1793         [__NR_ftruncate64]: Make code unconditional.
1794         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1796         * configure.in (libc_cv_fpie): Weaken to a compile test using
1797         LIBC_TRY_CC_OPTION.
1798         * configure: Regenerated.
1800 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1802         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
1803         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
1804         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
1805         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
1806         Refreshed.
1807         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
1808         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
1809         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
1810         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
1811         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
1812         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
1813         Refreshed.
1815 2012-05-27  David S. Miller  <davem@davemloft.net>
1817         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
1818         (___Q_zero): New.
1819         (__Q_simulate_exceptions): Return void.  Change to simulate
1820         exceptions by writing into the %fsr.
1821         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
1822         (__Qp_handle_exceptions): Likewise.
1823         (numbers): Delete.
1824         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
1825         __Qp_handle_exceptions.
1826         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
1827         __Qp_handle_exceptions.
1828         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
1829         as unused and give dummy FP_RND_NEAREST initializer.
1830         (FP_INHIBIT_RESULTS): Define.
1831         (___Q_simulate_exceptions): Update declaration.
1832         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
1833         formatting.
1834         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
1835         as unused and give dummy FP_RND_NEAREST initializer.
1836         (__Qp_handle_exceptions): Update declaration.
1837         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
1838         formatting.
1840 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
1842         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
1843         the temporary FPU control word.
1844         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1845         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
1846         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
1847         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
1848         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
1849         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
1850         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1851         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
1852         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
1853         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
1854         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
1856 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1858         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
1859         fields.
1861 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
1863         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
1864         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
1865         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
1866         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
1867         Likewise.
1868         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
1869         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
1870         Likewise.
1872 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
1874         * po/h.po: Update from translation team.
1876 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
1878         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
1880         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
1881         handling of denormals.
1882         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1883         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
1884         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1885         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1886         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1887         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
1888         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
1889         Likewise.
1891 2012-05-26  Marek Polacek  <polacek@redhat.com>
1893         [BZ #14152]
1894         * math/libm-test.inc (fma_test): Don't always expect underflow
1895         exception.
1897 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1899         [BZ #12416]
1900         * elf/tst-execstack.c: Include stackinfo.h.
1901         (do_test): Adjust test case to ensure that pthread_getattr_np
1902         behaviour remains the same after marking stack executable.
1904 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
1906         * sysdeps/unix/sysv/linux/kernel-features.h
1907         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
1908         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
1909         kernel-features.h.
1910         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
1911         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
1912         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
1913         kernel-features.h.
1914         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
1915         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
1917 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1919         * configure.in: Define the default includes to being none.
1920         * configure: Regenerated.
1922 2012-05-25  Roland McGrath  <roland@hack.frob.com>
1924         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
1925         * sysdeps/x86_64/setjmp.S: Likewise.
1926         * sysdeps/i386/bsd-setjmp.S: Likewise.
1927         * sysdeps/i386/bsd-_setjmp.S: Likewise.
1928         * sysdeps/i386/setjmp.S: Likewise.
1929         * sysdeps/i386/__longjmp.S: Likewise.
1930         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
1931         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1933         * include/stap-probe.h: New file.
1934         * configure.in: Handle --enable-systemtap.
1935         * configure: Regenerated.
1936         * config.h.in (USE_STAP_PROBE): New #undef.
1937         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
1938         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
1939         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
1941 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
1943         [BZ #13717]
1944         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
1945         to 2.4.0 where earlier.
1946         * sysdeps/unix/sysv/linux/configure: Regenerated.
1947         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
1948         <kernel-features.h>.
1949         [__ASSUME_32BITUIDS]: Make code unconditional.
1950         [!__ASSUME_32BITUIDS]: Remove conditional code.
1951         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
1952         <kernel-features.h>.
1953         [__ASSUME_32BITUIDS]: Make code unconditional.
1954         [!__ASSUME_32BITUIDS]: Remove conditional code.
1955         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
1956         [__ASSUME_32BITUIDS]: Make code unconditional.
1957         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
1958         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
1959         <kernel-features.h>.
1960         [__ASSUME_32BITUIDS]: Make code unconditional.
1961         [!__ASSUME_32BITUIDS]: Remove conditional code.
1962         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
1963         <kernel-features.h>.
1964         [__ASSUME_32BITUIDS]: Make code unconditional.
1965         [!__ASSUME_32BITUIDS]: Remove conditional code.
1966         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
1967         <kernel-features.h>.
1968         [__ASSUME_32BITUIDS]: Make code unconditional.
1969         [!__ASSUME_32BITUIDS]: Remove conditional code.
1970         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
1971         <kernel-features.h>.
1972         [__ASSUME_32BITUIDS]: Make code unconditional.
1973         [!__ASSUME_32BITUIDS]: Remove conditional code.
1974         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
1975         <kernel-features.h>.
1976         [__ASSUME_32BITUIDS]: Make code unconditional.
1977         [!__ASSUME_32BITUIDS]: Remove conditional code.
1978         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
1979         <kernel-features.h>.
1980         [__ASSUME_32BITUIDS]: Make code unconditional.
1981         [!__ASSUME_32BITUIDS]: Remove conditional code.
1982         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
1983         <kernel-features.h>.
1984         [__ASSUME_32BITUIDS]: Make code unconditional.
1985         [!__ASSUME_32BITUIDS]: Remove conditional code.
1986         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
1987         <kernel-features.h>.
1988         [__ASSUME_32BITUIDS]: Make code unconditional.
1989         [!__ASSUME_32BITUIDS]: Remove conditional code.
1990         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
1991         <kernel-features.h>.
1992         [__ASSUME_32BITUIDS]: Make code unconditional.
1993         [!__ASSUME_32BITUIDS]: Remove conditional code.
1994         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
1995         <kernel-features.h>.
1996         [__ASSUME_32BITUIDS]: Make code unconditional.
1997         [!__ASSUME_32BITUIDS]: Remove conditional code.
1998         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
1999         <kernel-features.h>.
2000         [__NR_setresgid] (__setresgid): Do not declare.
2001         [__ASSUME_32BITUIDS]: Make code unconditional.
2002         [!__ASSUME_32BITUIDS]: Remove conditional code.
2003         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
2004         <kernel-features.h>.
2005         [__NR_setresuid] (__setresuid): Do not declare.
2006         [__ASSUME_32BITUIDS]: Make code unconditional.
2007         [!__ASSUME_32BITUIDS]: Remove conditional code.
2008         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
2009         <kernel-features.h>.
2010         [__ASSUME_32BITUIDS]: Make code unconditional.
2011         [!__ASSUME_32BITUIDS]: Remove conditional code.
2012         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
2013         <kernel-features.h>.
2014         [__ASSUME_32BITUIDS]: Make code unconditional.
2015         [!__ASSUME_32BITUIDS]: Remove conditional code.
2016         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
2017         <kernel-features.h>.
2018         [__ASSUME_32BITUIDS]: Make code unconditional.
2019         [!__ASSUME_32BITUIDS]: Remove conditional code.
2020         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
2021         <kernel-features.h>.
2022         [__ASSUME_32BITUIDS]: Make code unconditional.
2023         [!__ASSUME_32BITUIDS]: Remove conditional code.
2024         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
2025         <kernel-features.h>.
2026         [__ASSUME_32BITUIDS]: Make code unconditional.
2027         [!__ASSUME_32BITUIDS]: Remove conditional code.
2028         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
2029         <kernel-features.h>.
2030         [__ASSUME_32BITUIDS]: Make code unconditional.
2031         [!__ASSUME_32BITUIDS]: Remove conditional code.
2032         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
2033         <kernel-features.h>.
2034         [__ASSUME_32BITUIDS]: Make code unconditional.
2035         [!__ASSUME_32BITUIDS]: Remove conditional code.
2036         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
2037         <kernel-features.h>.
2038         [__ASSUME_32BITUIDS]: Make code unconditional.
2039         [!__ASSUME_32BITUIDS]: Remove conditional code.
2040         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
2041         <kernel-features.h>.
2042         [__ASSUME_32BITUIDS]: Make code unconditional.
2043         [!__ASSUME_32BITUIDS]: Remove conditional code.
2044         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
2045         <kernel-features.h>.
2046         [__ASSUME_32BITUIDS]: Make code unconditional.
2047         [!__ASSUME_32BITUIDS]: Remove conditional code.
2048         * sysdeps/unix/sysv/linux/kernel-features.h
2049         (__ASSUME_SETRESUID_SYSCALL): Remove.
2050         (__ASSUME_SETRESGID_SYSCALL): Likewise.
2051         (__ASSUME_32BITUIDS): Likewise.
2052         (__ASSUME_LDT_WORKS): Likewise.
2053         (__ASSUME_O_DIRECTORY): Likewise.
2054         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
2055         architecture but not kernel version.
2056         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
2057         (__ASSUME_MMAP2_SYSCALL): Likewise.
2058         (__ASSUME_STAT64_SYSCALL): Likewise.
2059         (__ASSUME_IPC64): Likewise.
2060         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
2061         <kernel-features.h>.
2062         [__ASSUME_32BITUIDS]: Make code unconditional.
2063         [!__ASSUME_32BITUIDS]: Remove conditional code.
2064         * sysdeps/unix/sysv/linux/opendir.c: Do not include
2065         <kernel-features.h>.
2066         [__ASSUME_O_DIRECTORY]: Make code unconditional.
2067         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
2068         132096]: Remove conditional code.
2069         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
2070         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
2071         <kernel-features.h>.
2072         [__ASSUME_32BITUIDS]: Make code unconditional.
2073         [!__ASSUME_32BITUIDS]: Remove conditional code.
2074         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
2075         <kernel-features.h>.
2076         [__ASSUME_32BITUIDS]: Make code unconditional.
2077         [!__ASSUME_32BITUIDS]: Remove conditional code.
2078         * sysdeps/unix/sysv/linux/setegid.c: Do not include
2079         <kernel-features.h>.
2080         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
2081         unconditional.
2082         (__setresgid): Do not declare.
2083         [__ASSUME_32BITUIDS]: Make code unconditional.
2084         [!__ASSUME_32BITUIDS]: Remove conditional code.
2085         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
2086         <kernel-features.h>.
2087         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
2088         unconditional.
2089         (__setresuid): Do not declare.
2090         [__ASSUME_32BITUIDS]: Make code unconditional.
2091         [!__ASSUME_32BITUIDS]: Remove conditional code.
2092         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
2093         <kernel-features.h>.
2094         [__ASSUME_32BITUIDS]: Make code unconditional.
2095         [!__ASSUME_32BITUIDS]: Remove conditional code.
2096         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
2097         <kernel-features.h>.
2098         [__ASSUME_32BITUIDS]: Make code unconditional.
2099         [!__ASSUME_32BITUIDS]: Remove conditional code.
2101 2012-05-25  Richard Henderson  <rth@twiddle.net>
2103         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
2104         dl_hwcap to ifunc resolver.
2105         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
2106         elf_ifunc_invoke.
2107         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
2108         dl_hwcap to ifunc resolver.
2109         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
2111 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2113         [BZ #14153]
2114         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
2115         for |x| <= 2**-26, not 2**-57.
2116         * math/libm-test.inc (acos_test): Do not allow spurious underflow
2117         exception.
2119 2012-05-24  Jeff Law  <law@redhat.com>
2121         * stdio-common/Makefile (tests): Add bug25.
2122         * stdio-common/bug25.c: New test.
2124 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2126         [BZ #13576]
2127         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
2128         multiple of MALLOC_ALIGNMENT in size.
2129         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
2131 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2133         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
2134         Require >= 256.
2135         (FILENAME_MAX): Use macro-int-constant.
2136         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
2137         (_IOFBF): Use macro-int-constant.
2138         (_IOLBF): Likewise.
2139         (_IONBF): Likewise.
2140         (SEEK_CUR): Likewise.
2141         (SEEK_END): Likewise.
2142         (SEEK_SET): Likewise.
2143         (TMP_MAX): Likewise.
2144         (EOF): Use macro-int-constant.  Require < 0.
2145         (NULL): Use macro-constant.  Require == 0.
2146         (stdin): Require type to be FILE *.
2147         (stdout): Likewise.
2148         (stderr): Likewise.
2149         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
2150         macro-int-constant.
2151         (EXIT_SUCCESS): Likewise.
2152         (NULL): Use macro-constant.  Require == 0.
2153         (RAND_MAX): Use macro-int-constant.
2154         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
2155         [C99-based standards] (strtof): Require function.
2156         [C99-based standards] (strtold): Likewise.
2157         [C99-based standards] (strtoll): Likewise.
2158         [C99-based standards] (strtoull): Likewise.
2159         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2160         [ISO || ISO99 || ISO11] (limits.h): Likewise.
2161         [ISO || ISO99 || ISO11] (math.h): Likewise.
2162         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
2163         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2164         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2166 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
2168         [BZ #14132]
2169         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
2170         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
2171         * intl/dgettext.c (DCGETTEXT): Likewise.
2172         * intl/gettext.c (DCGETTEXT): Likewise.
2173         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
2174         * posix/regex_internal.h (gettext): Likewise.
2175         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
2176         Remove declaration.
2177         * include/argz.h (__argz_count_internal)
2178         (__argz_stringify_internal): Remove declaration.
2179         (__argz_count, __argz_stringify): Declare hidden proto.
2180         * intl/dcgettext.c: Remove use of INTDEF.
2181         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
2182         * string/argz-stringify.c: Likewise.
2183         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2184         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2185         Declare hidden proto.
2186         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2187         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2188         Declare hidden proto.
2189         * include/stdio.h (__asprintf_internal): Don't declare.
2190         (__asprintf): Don't define as macro.  Declare hidden proto.
2191         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
2192         (__fsetlocking): Declare hidden proto.
2193         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
2194         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
2195         hidden proto.
2196         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
2197         (_IO_setlinebuf): Remove use of INTUSE.
2198         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
2199         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
2200         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
2201         Remove declaration.
2202         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
2203         (_IO_do_flush): Remove use of INTUSE.
2204         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
2205         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
2206         (_IO_adjust_column, _IO_least_wmarker)
2207         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
2208         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
2209         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
2210         (_IO_default_doallocate, _IO_wdefault_doallocate)
2211         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
2212         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
2213         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
2214         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
2215         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
2216         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
2217         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
2218         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
2219         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
2220         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
2221         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
2222         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
2223         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
2224         proto.
2225         (_IO_flush_all_internal, _IO_adjust_column_internal)
2226         (_IO_default_uflow_internal, _IO_default_finish_internal)
2227         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
2228         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
2229         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
2230         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
2231         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
2232         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
2233         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
2234         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
2235         (_IO_file_close_internal, _IO_file_close_it_internal)
2236         (_IO_file_underflow_internal, _IO_file_overflow_internal)
2237         (_IO_file_init_internal, _IO_file_attach_internal)
2238         (_IO_file_fopen_internal, _IO_file_read_internal)
2239         (_IO_file_sync_internal, _IO_file_seek_internal)
2240         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
2241         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
2242         (_IO_str_underflow_internal, _IO_str_overflow_internal)
2243         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
2244         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
2245         (_IO_list_all_internal, _IO_link_in_internal)
2246         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
2247         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
2248         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
2249         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
2250         (_IO_do_write_internal, _IO_padn_internal)
2251         (_IO_getline_info_internal, _IO_getline_internal)
2252         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
2253         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
2254         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
2255         (_IO_vfscanf_internal, _IO_vfprintf_internal)
2256         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
2257         (_IO_init_internal, _IO_un_link_internal): Don't declare.
2258         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
2259         with libc_hidden_ver, remove use of INTUSE.
2260         * libio/genops.c: Likewise.
2261         * libio/freopen.c: Likewise.
2262         * libio/freopen64.c: Likewise.
2263         * libio/iofclose.c: Likewise.
2264         * libio/iofdopen.c: Likewise.
2265         * libio/iofflush.c: Likewise.
2266         * libio/iofflush_u.c: Likewise.
2267         * libio/iofgets.c: Likewise.
2268         * libio/iofgets_u.c: Likewise.
2269         * libio/iofopen.c: Likewise.
2270         * libio/iofopncook.c: Likewise.
2271         * libio/iofread.c: Likewise.
2272         * libio/iofread_u.c: Likewise.
2273         * libio/ioftell.c: Likewise.
2274         * libio/iofwrite.c: Likewise.
2275         * libio/iogetline.c: Likewise.
2276         * libio/iogets.c: Likewise.
2277         * libio/iogetwline.c: Likewise.
2278         * libio/iopadn.c: Likewise.
2279         * libio/iopopen.c: Likewise.
2280         * libio/ioseekoff.c: Likewise.
2281         * libio/ioseekpos.c: Likewise.
2282         * libio/iosetbuffer.c: Likewise.
2283         * libio/iosetvbuf.c: Likewise.
2284         * libio/ioungetc.c: Likewise.
2285         * libio/ioungetwc.c: Likewise.
2286         * libio/iovdprintf.c: Likewise.
2287         * libio/iovsprintf.c: Likewise.
2288         * libio/iovsscanf.c: Likewise.
2289         * libio/memstream.c: Likewise.
2290         * libio/obprintf.c: Likewise.
2291         * libio/oldfileops.c: Likewise.
2292         * libio/oldiofclose.c: Likewise.
2293         * libio/oldiofdopen.c: Likewise.
2294         * libio/oldiofopen.c: Likewise.
2295         * libio/oldiopopen.c: Likewise.
2296         * libio/oldstdfiles.c: Likewise.
2297         * libio/putc.c: Likewise.
2298         * libio/setbuf.c: Likewise.
2299         * libio/setlinebuf.c: Likewise.
2300         * libio/stdfiles.c: Likewise.
2301         * libio/strops.c: Likewise.
2302         * libio/vasprintf.c: Likewise.
2303         * libio/vscanf.c: Likewise.
2304         * libio/vsnprintf.c: Likewise.
2305         * libio/vswprintf.c: Likewise.
2306         * libio/wfiledoalloc.c: Likewise.
2307         * libio/wfileops.c: Likewise.
2308         * libio/wgenops.c: Likewise.
2309         * libio/wmemstream.c: Likewise.
2310         * libio/wstrops.c: Likewise.
2311         * libio/__fpurge.c: Likewise.
2312         * libio/__fsetlocking.c: Likewise.
2313         * assert/assert.c: Likewise.
2314         * debug/fgets_chk.c: Likewise.
2315         * debug/fgets_u_chk.c: Likewise.
2316         * debug/fread_chk.c: Likewise.
2317         * debug/fread_u_chk.c: Likewise.
2318         * debug/gets_chk.c: Likewise.
2319         * debug/obprintf_chk.c: Likewise.
2320         * debug/vasprintf_chk.c: Likewise.
2321         * debug/vdprintf_chk.c: Likewise.
2322         * debug/vsnprintf_chk.c: Likewise.
2323         * debug/vsprintf_chk.c: Likewise.
2324         * malloc/mtrace.c: Likewise.
2325         * misc/error.c: Likewise.
2326         * misc/syslog.c: Likewise.
2327         * stdio-common/asprintf.c: Likewise.
2328         * stdio-common/fxprintf.c: Likewise.
2329         * stdio-common/getw.c: Likewise.
2330         * stdio-common/isoc99_fscanf.c: Likewise.
2331         * stdio-common/isoc99_scanf.c: Likewise.
2332         * stdio-common/isoc99_vfscanf.c: Likewise.
2333         * stdio-common/isoc99_vscanf.c: Likewise.
2334         * stdio-common/isoc99_vsscanf.c: Likewise.
2335         * stdio-common/printf-prs.c: Likewise.
2336         * stdio-common/printf_fp.c: Likewise.
2337         * stdio-common/printf_fphex.c: Likewise.
2338         * stdio-common/printf_size.c: Likewise.
2339         * stdio-common/putw.c: Likewise.
2340         * stdio-common/scanf.c: Likewise.
2341         * stdio-common/sprintf.c: Likewise.
2342         * stdio-common/tmpfile.c: Likewise.
2343         * stdio-common/vfprintf.c: Likewise.
2344         * stdio-common/vfscanf.c: Likewise.
2345         * stdlib/strfmon_l.c: Likewise.
2346         * sunrpc/openchild.c: Likewise.
2347         * sunrpc/xdr_stdio.c: Likewise.
2348         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
2349         * sysdeps/mach/hurd/tmpfile.c: Likewise.
2351 2012-05-24  Roland McGrath  <roland@hack.frob.com>
2353         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
2355         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
2356         in the third column, to generate for the shared library an IFUNC
2357         that uses _dl_vdso_vsym.
2358         * Makerules (COMPILE.c, compile-stdin.c): New variables.
2359         * Makeconfig (object-suffixes-noshared): New variable.
2361         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
2362         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
2363         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
2364         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
2366         [BZ #14132]
2367         * include/sys/time.h (__gettimeofday): Remove macro.
2368         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
2369         * time/gettimeofday.c (__gettimeofday): Remove #undef.
2370         Remove INTDEF.
2371         (__gettimeofday): Add libc_hidden_def.
2372         (gettimeofday): Add libc_hidden_weak.
2373         * sysdeps/mach/gettimeofday.c: Likewise.
2374         * sysdeps/posix/gettimeofday.c: Likewise.
2375         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
2376         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
2377         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
2378         (__gettimeofday_internal): Remove strong_alias.
2379         (__gettimeofday): Add libc_hidden_def.
2380         (gettimeofday): Add libc_hidden_weak.
2381         * sysdeps/unix/syscalls.list (gettimeofday):
2382         Remove __gettimeofday_internal alias.
2384 2012-05-24  Daniel Jacobowitz  <drow@false.org>
2385             H.J. Lu  <hongjiu.lu@intel.com>
2387         [BZ #12495]
2388         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
2389         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
2390         (largebin_index_32_big): New.
2391         (largebin_index): Use it for 16-byte alignment.
2392         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
2393         correction with front_misalign.
2395 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2397         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
2398         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2399         Likewise.
2400         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
2401         Likewise.
2402         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
2403         Likewise.
2404         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
2405         Likewise.
2406         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
2407         Likewise.
2408         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
2409         Likewise.
2410         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
2411         Likewise.
2412         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
2413         Likewise.
2414         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
2415         Likewise.
2416         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
2417         Likewise.
2418         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2419         Likewise.
2420         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
2421         Likewise.
2423         * scripts/data/c++-types-x32-linux-gnu.data: New file.
2424         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
2426 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2428         [BZ #10846]
2429         [BZ #14036]
2430         * math/libm-test.inc (exp_test): Add test from bug 14036.
2431         (pow_test): Add test from bug 10846.
2433         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
2434         and other flags.
2435         (special_function): Do not include flags in test name.
2436         (parse_args): Likewise.
2437         * sysdeps/i386/fpu/libm-test-ulps: Update.
2438         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2439         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2440         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
2441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2443         * math/gen-libm-test.pl (%beautify): Add entries for underflow
2444         exceptions.
2445         * math/libm-test.inc ("Philosophy"): Update comment about
2446         exception testing.
2447         (UNDERFLOW_EXCEPTION): New macro.
2448         (UNDERFLOW_EXCEPTION_OK): Likewise.
2449         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
2450         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
2451         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
2452         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
2453         (INVALID_EXCEPTION_OK): Update value.
2454         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
2455         (OVERFLOW_EXCEPTION_OK): Likewise.
2456         (IGNORE_ZERO_INF_SIGN): Likewise.
2457         (test_exceptions): Handle underflow exceptions.
2458         (acos_test): Update for underflow exception expectations.
2459         (cexp_test): Likewise.
2460         (clog_test): Likewise.
2461         (clog10_test): Likewise.
2462         (csqrt_test): Likewise.
2463         (ctan_test): Likewise.
2464         (ctanh_test): Likewise.
2465         (exp_test): Likewise.
2466         (exp10_test): Likewise.
2467         (exp2_test): Likewise.
2468         (expm1_test): Likewise.
2469         (fma_test): Likewise.
2470         (j0_test): Likewise.
2471         (jn_test): Likewise.
2472         (nexttoward_test): Likewise.
2473         (pow_test): Likewise.
2474         (scalbn_test): Likewise.
2475         (scalbln_test): Likewise.
2476         (tan_test): Likewise.
2477         (y1_test): Likewise.
2478         * sysdeps/i386/fpu/libm-test-ulps: Update.
2479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2481 2012-05-23  David S. Miller  <davem@davemloft.net>
2483         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2484         (__libc_sigaction): Remove unused local variables.
2486 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2488         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
2490 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2492         mktime: avoid signed integer overflow
2493         * time/mktime.c (__mktime_internal): Do not mishandle the case
2494         where diff == INT_MIN.
2496         mktime: simplify computation of average
2497         * time/mktime.c (ranged_convert): Use new time_t_avg function
2498         instead of rolling our own (probably-slower) code.
2500         mktime: do not assume signed right shift propagates sign bit
2501         * time/mktime.c (isdst_differ): New static function.
2502         (__mktime_internal): No need to normalize tm_isdst now.
2503         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
2504         tm_isdst values.
2506         mktime: merge another wrapv change from gnulib
2507         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
2508         from some compilers.
2510         mktime: remove incorrect attempt at unusual arithmetics
2511         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
2512         The code didn't really work on such machines anyway.
2513         (TYPE_MINIMUM): Assume two's complement.
2514         (twos_complement_arithmetic): Verify that long_int and time_t
2515         are two's complement (or unsigned, in the latter case).
2517         mktime: check signed shifts on long_int and time_t, too
2518         * time/mktime.c (SHR): Check that shifts work as desired
2519         on the types long_int and time_t too, as SHR is used on
2520         such types.
2522         mktime: do not assume 'long' is wide enough
2523         * time/mktime.c (verify): Move decl up.
2524         (long_int): New type.
2525         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
2526         to remove assumption in the code that 'long' is wide enough to
2527         store year values.  This assumption is not true on x32 and on
2528         some non-glibc platforms.
2530         mktime: merge wrapv change from gnulib
2531         * time/mktime.c (WRAPV): New macro.
2532         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
2533         (guess_time_tm, __mktime_internal): Do not assume that signed
2534         integer overflow wraps around; modern compilers generate code
2535         where this assumption is no longer valid.
2537 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2539         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2540         Replace "jmp L(pseudo_end)" with "ret".
2541         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2542         Likewise.
2544 2012-05-23  Andreas Jaeger  <aj@suse.de>
2546         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
2547         * sysdeps/unix/sysv/linux/poll.c: Remove file.
2549 2012-05-23  Andreas Jaeger  <aj@suse.de>
2550             Maximilian Attems  <max@stro.at>
2552         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
2553         New macros.
2555 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2557         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
2558         code so that pseudo_end is just ret and the stack pointer is
2559         correct also for static library in error case.
2561 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
2563         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
2564         move to syscalls.list.
2565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
2566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
2567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
2568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
2570         * manual/install.texi (Running make install): Do not mention Linux
2571         kernel version for which pt_chown is not needed.
2572         (Linux): Do not mention problems with nscd with 2.0 kernels.
2573         * INSTALL: Regenerated.
2575 2012-05-23  Andreas Jaeger  <aj@suse.de>
2577         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
2578         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
2579         macro.
2580         * sysdeps/unix/sysv/linux/s390/bits/mman.h
2581         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2582         * sysdeps/unix/sysv/linux/sh/bits/mman.h
2583         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2584         * sysdeps/unix/sysv/linux/i386/bits/mman.h
2585         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2586         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
2587         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2588         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
2589         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2590         * sysdeps/unix/sysv/linux/bits/in.h
2591         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
2593 2012-05-22  Roland McGrath  <roland@hack.frob.com>
2595         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
2596         (PREPARE_VERSION): Just use assert instead, it will be elided
2597         under [NDEBUG] anyway.
2599 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2601         * sysdeps/unix/sysv/linux/Makefile: Include
2602         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
2603         (sysdep_routines): Remove sysctl.
2604         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
2605         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
2606         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
2607         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
2608         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
2610 2012-05-22  Andreas Jaeger  <aj@suse.de>
2612         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
2613         that pseudo_end is just ret and the stack pointer is correct also
2614         for static library in error case.
2616 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
2618         [BZ #14122]
2619         * nss/nsswitch.c (defconfig_entries): New variable.
2620         (__nss_database_lookup): Don't leak defconfig entries.
2621         (nss_parse_service_list): Don't leak on error paths.
2622         (free_database_entries): New function.
2623         (free_defconfig): New function.
2624         (free_mem): Move common code to free_database_entries.
2626 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2628         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
2629         Add arch_prctl.
2630         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
2632         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
2633         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
2634         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
2635         New macro.
2636         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
2637         (INTERNAL_SYSCALL_TYPES): Likewise.
2638         (LOAD_ARGS_TYPES_[1-6]): Likewise.
2639         (LOAD_REGS_TYPES_[1-6]): Likewise.
2640         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
2641         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
2643 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2645         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
2646         copysignl for GLIBC_2_0.
2647         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
2648         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
2649         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
2650         logbl for GLIBC_2_0.
2651         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
2652         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
2654 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2656         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
2657         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2659         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2660         Use "neg %eax".
2662         * time/mktime.c: Update copyright years.
2664 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2666         mktime: merge comment-quoting-style change from gnulib
2667         * time/mktime.c: Quote 'like this' in comments.
2668         The GNU coding standards suggest that we no longer quote `like this',
2669         as "`" and "'" are typically rendered asymmetrically nowadays.
2670         The typical gnulib style is to quote 'like this' when quoting
2671         code, and "like this" when quoting English.
2673         * time/mktime.c (compile-command): Add "-I.".
2675         mktime: merge mktime-internal.h change from gnulib
2676         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
2678         mktime: merge time_r change from gnulib
2679         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
2681         mktime: merge DEBUG change from gnulib
2682         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
2683         case system <time.h> has a #define.
2685         mktime: merge <sys/types.h> change from gnulib
2686         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
2687         since <time.t> is now guaranteed to define time_t.
2689         mktime: merge HAVE_CONFIG_H change from gnulib
2690         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
2692 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2694         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
2695         Use "neg %eax".
2697         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
2698         __rlim_t cast.
2699         (struct rusage): Use anonymous union to pad each field to
2700         __syscall_slong_t.
2702 2012-05-21  David S. Miller  <davem@davemloft.net>
2704         * Makefules (o-iterator): Remove .s cases.
2705         (compile-command.s): Delete.
2706         (COMPILE.s): Delete.
2707         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
2709 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
2711         * configure.in (libc_cv_predef_stack_protector): Only consider
2712         "foobar" and "__stack_chk_fail" lines in libc_undefs.
2713         * configure: Regenerated.
2715 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2717         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
2718         New macro.  Use R*LP on int and pointer.
2719         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
2720         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
2721         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
2722         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
2724         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
2725         [__WORDSIZE_TIME64_COMPAT32] instead of
2726         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
2727         (struct utmp): Likewise.
2728         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
2729         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
2730         Renamed to ...
2731         (__WORDSIZE_TIME64_COMPAT32): This.
2732         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
2733         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
2734         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
2735         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
2736         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
2737         (__WORDSIZE_TIME64_COMPAT32): New macro.
2739 2012-05-21  Andreas Jaeger  <aj@suse.de>
2741         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
2742         only if [SHARED]. Add prototype for __wcschr_ia32.
2744 2012-05-21  Roland McGrath  <roland@hack.frob.com>
2746         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
2747         of %rbp unmolested in the jmp_buf while mangling the low bits.
2748         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
2749         unmolested high bits of %rbp while demangling the low bits.
2750         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
2752 2012-05-21  Andreas Jaeger  <aj@suse.de>
2754         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
2755         * sunrpc/svc_simple.c: Use it for registerrpc.
2756         * sunrpc/xcrypt.c: Use it for passwd2des.
2758         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
2760 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2762         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
2763         Don't define if [__SYSCALL_WORDSIZE != 32].
2764         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
2765         New macro.
2767 2012-05-21  Bruno Haible  <bruno@clisp.org>
2768             Andreas Jaeger  <aj@suse.de>
2770         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
2771         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
2772         inptr and inend for must_buffer_ch.
2773         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
2774         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
2775         * stdio-common/Makefile (tests): Remove bug15.
2776         (bug15-ENV): Remove macro.
2777         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
2778         anymore.
2780 2012-05-19  Andreas Jaeger  <aj@suse.de>
2781             Roland McGrath  <roland@hack.frob.com>
2783         * manual/contrib.texi: Completely rewritten. It contains now an
2784         alphabetical list of contributors and their contributions.
2786 2012-05-21  Richard Henderson  <rth@twiddle.net>
2788         * misc/getauxval.c (__getauxval): Use unsigned long int.
2789         * misc/sys/auxv.h: Include <sys/cdefs.h>.
2790         (getauxval): Use unsigned long int.
2792 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2794         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
2796 2012-05-21  Roland McGrath  <roland@hack.frob.com>
2798         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
2799         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
2800         __alignof__ (long double).
2802 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2804         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2806 2012-05-20  Richard Henderson  <rth@twiddle.net>
2808         * misc/getauxval.c: New file.
2809         * misc/sys/auxv.h: New file.
2810         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
2811         (routines): Add getauxval.
2812         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
2813         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
2814         * elf/dl-sysdep.c (_dl_auxv): Remove.
2815         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
2816         * elf/dl-support.c (_dl_auxv): New variable.
2817         (_dl_aux_init): Initialize it.
2818         * manual/startup.texi (Auxiliary Vector): New node.
2819         * sysdeps/generic/bits/hwcap.h: New file.
2820         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
2821         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
2822         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
2823         * sysdeps/sparc/sysdep.h: ... here.  Include it.
2824         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
2825         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
2826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2827         Update.
2828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
2829         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
2830         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
2831         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
2832         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
2833         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
2834         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
2835         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
2837 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2839         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2841 2012-05-19  David S. Miller  <davem@davemloft.net>
2843         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2845 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
2847         [BZ #14123]
2848         * math/s_ccosh.c: Include <float.h>
2849         (__ccosh): Avoid internal overflow calculating sinh and cosh
2850         values before multiplying by sin and cos values.
2851         * math/s_ccoshf.c: Likewise.
2852         * math/s_ccoshl.c: Likewise.
2853         * math/s_csin.c: Likewise.
2854         * math/s_csinf.c: Likewise.
2855         * math/s_csinl.c: Likewise.
2856         * math/s_csinh.c: Likewise.
2857         * math/s_csinhf.c: Likewise.
2858         * math/s_csinhl.c: Likewise.
2859         * math/libm-test.inc (ccos_test): Add more tests.
2860         (ccosh_test): Likewise.
2861         (csin_test): Likewise.
2862         (csinh_test): Likewise.
2863         * sysdeps/i386/fpu/libm-test-ulps: Update.
2864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2866 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2868         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
2869         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
2871         * sysdeps/x86_64/x32/_itoa.h: Add comment.
2873 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
2875         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
2876         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
2877         * sysdeps/powerpc/soft-fp/Versions: Likewise.
2878         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
2879         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
2880         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
2881         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
2882         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
2883         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
2884         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
2885         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
2886         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
2887         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
2888         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
2889         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
2890         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
2891         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
2892         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
2893         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
2894         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
2895         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
2896         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
2897         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
2898         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
2899         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
2900         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
2901         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
2902         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
2903         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
2904         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
2905         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
2907 2012-05-18  Andreas Jaeger  <aj@suse.de>
2909         * csu/.gitignore: Delete.
2911 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2913         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
2914         (timex): Use __syscall_slong_t.
2916 2012-05-18  Andreas Jaeger  <aj@suse.de>
2917             Carlos O'Donell  <carlos_odonell@mentor.com>
2919         * manual/install.texi (Configuring and compiling): Update
2920         description about files modified in the source directory.
2921         * INSTALL: Regenerated.
2923 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2925         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
2926         value.  Use "or" to set return value to -1.
2927         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
2928         negate return value.
2930 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2932         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
2933         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
2934         failure if the compiler has Graphite support disabled.
2935         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
2936         Likewise.
2937         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
2938         CFLAGS-memmove.c): Likewise.
2939         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
2940         Likewise.
2942 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2944         * sysdeps/x86_64/x32/_itoa.h: New file.
2946         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
2947         getdents system call only if kernel and user dirents have the
2948         same d_ino and d_off.
2950         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
2951         LLONG_MAX != LONG_MAX.
2952         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2953         (_fitoa_word): Likewise.
2955         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
2956         years.
2957         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
2958         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
2959         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
2961         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
2962         include <bits/wordsize.h>.  Check __x86_64__ instead of
2963         __WORDSIZE.
2964         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
2965         if __x86_64__ is defined.  Use anonymous union on fpstate.
2967         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
2968         anonymous union.
2970 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
2972         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
2973         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
2974         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
2975         Refer to _rtld_local_ro instead of _rtld_global_ro.
2976         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
2977         Likewise.
2978         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
2979         Likewise.
2980         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
2981         Likewise.
2982         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
2983         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
2984         of _rtld_global, and rtld_progname instead of _dl_argv[0].
2986         * sysdeps/powerpc/powerpc32/dl-machine.c
2987         (__elf_machine_runtime_setup) [PROF]: Don't reference
2988         _dl_prof_resolve.
2990 2012-05-18  Andreas Jaeger  <aj@suse.de>
2992         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
2993         function only available for GCCs before 3.4 since GCC 3.4
2994         introduced a builtin.
2995         (lrint): Likewise.
2996         (llrintf): Likewise.
2997         (llrint): Likewise.
2998         (fmaxf): Likewise.
2999         (fmax): Likewise.
3000         (fminf): Likewise.
3001         (fmin): Likewise.
3002         (rint): Likewise.
3003         (rintf): Likewise.
3004         (nearbyint): Likewise.
3005         (nearbyintf): Likewise.
3006         (ceil): Likewise.
3007         (ceilf): Likewise.
3008         (floor): Likewise.
3009         (floorf): Likewise.
3011 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3013         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
3014         on both fields and cast pointer to __syscall_ulong_t.
3016         * bits/types.h (__fsword_t): New type.
3017         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
3018         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
3019         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3020         (__FSWORD_T_TYPE): Likewise.
3021         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3022         (__FSWORD_T_TYPE): Likewise.
3023         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3024         (__FSWORD_T_TYPE): Likewise.
3025         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
3026         (__FSWORD_T_TYPE): Likewise.
3027         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
3028         __SWORD_TYPE with __fsword_t.
3029         (statfs64): Likewise.
3031 2012-05-17  David S. Miller  <davem@davemloft.net>
3033         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
3035 2012-05-17  Andreas Jaeger  <aj@suse.de>
3037         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
3038         warning.
3040 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3042         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
3044 2012-05-17  Andreas Jaeger  <aj@suse.de>
3046         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
3047         when it is used.
3049 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
3051         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
3053 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3055         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
3056         * sysdeps/x86_64/tst-mallocalign1.c: New file.
3058 2012-05-17  Andreas Jaeger  <aj@suse.de>
3059             Carlos O'Donell  <carlos_odonell@mentor.com>
3061         [BZ #14059]
3062         * sysdeps/x86_64/multiarch/init-arch.h
3063         (bit_YMM_Usable): Rename to...
3064         (bit_AVX_Usable): ... this.
3065         (bit_FMA4_Usable): New macro.
3066         (bit_XMM_state): New macro.
3067         (bit_YMM_state): New macro.
3068         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
3069         [__ASSEMBLER__] (index_AVX_Usable): ... this.
3070         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
3071         (CPUID_OSXSAVE): New macro.
3072         (CPUID_AVX): New macro.
3073         (CPUID_FMA4): New macro.
3074         (index_YMM_Usable): Rename to...
3075         (index_AVX_Usable): ... this.
3076         (HAS_AVX): Use HAS_ARCH_FEATURE.
3077         (HAS_FMA4): Likewise.
3078         (HAS_YMM_USABLE): Remove.
3079         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3080         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
3081         are present.
3082         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
3083         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
3084         * sysdeps/x86_64/multiarch/Makefile: Likewise.
3085         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
3086         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
3088 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
3090         * math/libm-test.c: Support platforms without multiple rounding modes.
3091         * math/bug-nextafter.c: Support platforms without FP exceptions.
3092         * math/bug-nexttoward.c: Likewise.
3093         * math/test-fenv.c: Likewise.
3094         * math/test-misc.c: Likewise.
3095         * stdlib/bug-getcontext.c: Likewise.
3097 2012-05-17  Andreas Jaeger  <aj@suse.de>
3099         * manual/examples/search.c (critter_cmp): Change signature to
3100         avoid warnings.
3101         * manual/string.texi (Collation Functions): Likewise.
3103 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3105         * bits/types.h: Fold copyright years.
3106         * bits/typesizes.h: Likewise.
3107         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
3108         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
3109         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
3110         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
3111         * time/time.h: Likewise.
3113 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
3115         [BZ #208]
3116         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
3117         in instead of returning them.  Return void.
3118         (__libc_mallinfo): Accumulate over all arenas.
3119         (__malloc_stats): Adjust for change in int_mallinfo interface.
3121 2012-05-16  Roland McGrath  <roland@hack.frob.com>
3123         [BZ #10375]
3124         * configure.in (NM): Add AC_CHECK_TOOL for it.
3125         (libc_extra_cflags): New substituted variable.
3126         Check for -fstack-protector being used implicitly.
3127         * configure: Regenerated.
3128         * config.make.in (config-extra-cflags): New variable,
3129         gets @libc_extra_cflags@.
3130         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
3132         [BZ #10375]
3133         * configure.in: Check for _FORTIFY_SOURCE being predefined.
3134         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
3135         * configure: Regenerated.
3136         * config.make.in (CPPUNDEFS): New substituted variable.
3137         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
3138         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
3139         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
3141 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3143         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
3144         (mq_attr): Use __syscall_slong_t.
3146 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3148         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
3149         Check __x86_64__ instead of __WORDSIZE.
3150         (_STAT_VER_LINUX): Likewise.
3151         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
3152         __syscall_ulong_t and __syscall_slong_t.
3153         (stat64): Likewise.
3155 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3157         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
3159 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3161         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
3163 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3165         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
3166         __syscall_ulong_t.
3168         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
3169         include <bits/wordsize.h>.  Check __x86_64__ instead of
3170         __WORDSIZE.
3171         (greg_t): Use "__extension__ long long int" if __x86_64__ is
3172         defined.
3173         (mcontext_t): Replace "unsigned long" with "unsigned long long".
3175         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
3176         include <bits/wordsize.h>.  Check __x86_64__ instead of
3177         __WORDSIZE.
3178         (user_regs_struct): Use "__extension__ unsigned long long"
3179         instead of "unsigned long" if __x86_64__ is defined.
3180         (user): Likewise.  Pad after pointer field if __ILP32__ is
3181         defined.
3183 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
3185         * configure.in (makeinfo): Require version 4.5 or later.  Allow
3186         versions 5 to 9.
3187         * configure: Regenerated.
3188         * manual/install.texi (texinfo): Increase version requirement to
3189         4.5 or later.
3190         * INSTALL: Regenerated.
3192         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
3194 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3196         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
3198         * sysdeps/x86_64/x32/ffs.c: New file.
3200         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
3201         __syscall_ulong_t.
3202         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
3203         defined.  Use __syscall_ulong_t.
3204         (shminfo): Use __syscall_ulong_t.
3205         (shm_info): Likewise.
3207         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
3208         __syscall_ulong_t.
3210         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
3211         <bits/wordsize.h>.
3212         (msgqnum_t): Use __syscall_ulong_t.
3213         (msglen_t): Likewise.
3214         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
3215         __syscall_ulong_t.
3217         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
3218         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3220         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
3222         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
3223         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
3225         * sysvipc/sys/msg.h (msgbuf): Replace long int with
3226         __syscall_slong_t.
3228         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
3229         include <bits/wordsize.h>.  Check __x86_64__ instead of
3230         __WORDSIZE.
3232         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
3233         "unsigned long long int" if __x86_64__ is defined.
3234         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
3236         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
3237         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3238         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
3240         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
3241         <stdint.h>.
3242         (GET_PC): Cast to uintptr_t first.
3243         (GET_FRAME): Likewise.
3244         (GET_STACK): Likewise.
3246         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
3247         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
3248         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
3249         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
3250         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
3251         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
3252         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
3253         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
3254         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
3255         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
3256         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
3257         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
3258         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3259         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
3260         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
3261         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
3262         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
3263         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
3264         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
3265         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
3266         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
3267         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
3268         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
3269         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
3270         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
3271         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
3272         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
3273         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
3274         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
3276 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
3278         * Makerules (+depfiles): Also collect depfiles from .oS in
3279         $(extra-objs).
3280         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
3281         .oS, $(libnldbl-routines)).
3283         * Makerules (native-compile-mkdep-flags): Define.
3284         * sunrpc/Makefile (extra-objs): Add $(addprefix
3285         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
3286         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
3287         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
3288         calling $(make-target-directory).
3290 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3292         * bits/types.h (__snseconds_t): Removed.
3293         * time/time.h (struct timespec): Replace __snseconds_t with
3294         __syscall_slong_t.
3295         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
3296         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
3297         Likewise.
3298         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3299         (__SNSECONDS_T_TYPE): Likewise.
3300         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3301         (__SNSECONDS_T_TYPE): Likewise.
3302         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3303         (__SNSECONDS_T_TYPE): Likewise.
3305 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3307         * sysdeps/mach/hurd/bits/typesizes.h
3308         (__SYSCALL_SLONG_TYPE): New macro.
3309         (__SYSCALL_ULONG_TYPE): Likewise.
3311 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3313         * bits/types.h (__syscall_slong_t): New type.
3314         (__syscall_ulong_t): Likewise.
3316         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
3317         (__SYSCALL_ULONG_TYPE): Likewise.
3318         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3319         (__SYSCALL_SLONG_TYPE): Likewise.
3320         (__SYSCALL_ULONG_TYPE): Likewise.
3321         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3322         (__SYSCALL_SLONG_TYPE): Likewise.
3323         (__SYSCALL_ULONG_TYPE): Likewise.
3324         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3325         (__SYSCALL_SLONG_TYPE): Likewise.
3326         (__SYSCALL_ULONG_TYPE): Likewise.
3328 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3330         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
3331         Add sigaltstack-offsets.sym.
3332         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
3333         <sigaltstack-offsets.h>.
3334         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
3335         longjmp_msg pointer.
3336         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
3337         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
3338         signal stack.
3339         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
3341 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
3343         * elf/stackguard-macros.h: Remove file.
3344         * sysdeps/generic/stackguard-macros.h: New file.
3345         * sysdeps/i386/stackguard-macros.h: Likewise.
3346         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
3347         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
3348         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
3349         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
3350         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
3351         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
3352         * sysdeps/x86_64/stackguard-macros.h: Likewise.
3353         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
3354         <elf/stackguard-macros.h>.
3356         [BZ #14109]
3357         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
3358         __aligned__ in attribute.
3359         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
3360         (gregset_t): Likewise.
3362 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3364         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
3365         * sysdeps/x86_64/64/Implies-after: Here.  New file.
3366         * sysdeps/x86_64/x32/Implies-after: New file.
3368 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3370         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
3371         and access return value for _dl_profile_fixup.  Use R10_LP to
3372         load frame size.
3374 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3376         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
3378 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3380         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
3381         * sysdeps/x86_64/x32/sysdep.h: New file.
3383 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3385         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
3386         * sysdeps/x86_64/setjmp.S: Likewise.
3388 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3390         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
3391         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
3392         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
3393         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
3394         remove unused global constant.
3396 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
3398         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
3399         include of <not-cancel.h>.
3401 2012-05-15  Roland McGrath  <roland@hack.frob.com>
3403         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
3405 2012-05-15  Jeff Law  <law@redhat.com>
3406             Andreas Jaeger  <aj@suse.de>
3408         [BZ #13594]
3409         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
3410         out from...
3411         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
3412         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
3413         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
3414         code changing __hst_map_handle.map.
3416 2012-05-15  Roland McGrath  <roland@hack.frob.com>
3418         * configure.in (sysnames): Look for Implies-before and Implies-after
3419         files.
3420         * configure: Regenerated.
3422 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3424         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
3425         8-byte data alignment with LP_SIZE alignment.
3427 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3429         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
3430         into R10_LP.
3432 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3434         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
3436 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3438         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
3439         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
3440         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
3441         Likewise.
3442         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3444 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3446         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
3447         (stackinfo_sub_sp): Likewise.
3449 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3451         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
3452         RAX_LP.
3454 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3456         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
3457         into R*_LP.
3459 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3461         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
3462         sizes into R*_LP.
3464 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3466         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
3468 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3470         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
3471         into R11_LP and load __x86_64_shared_cache_size_half into
3472         R8_LP.
3474 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3476         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
3477         R8_LP.
3479 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3481         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
3482         logb for POWER7.
3483         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
3484         logbf for POWER7.
3485         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
3486         logbl for POWER7.
3487         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
3488         powerpc32/power7/fpu/s_logb.c via #include.
3489         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
3490         powerpc32/power7/fpu/s_logbf.c via #include.
3491         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
3492         powerpc32/power7/fpu/s_logbl.c via #include.
3494 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
3496         * README.libm: Remove file.
3498 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3500         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
3501         count for x32.  Use R*_LP and omit operand-size suffix.
3503 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3505         * shlib-versions: Move x86_64-.*-linux.* entries to ...
3506         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
3507         * sysdeps/x86_64/x32/shlib-versions: New file.
3509 2012-05-14  Roland McGrath  <roland@hack.frob.com>
3511         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
3512         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
3513         Use _dl_fatal_printf instead.
3515 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
3517         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
3518         set if not set by the user.  Do not allow for being unset.
3519         * sysdeps/unix/sysv/linux/configure: Regenerated.
3521 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3523         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
3524         the `q' suffix from lea and replace .quad with ASM_ADDR.
3526 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3528         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
3529         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
3530         instead of $17.
3531         (PTR_DEMANGLE): Likewise.
3533 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3535         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
3536         (LP_OP): Likewise.
3537         (ASM_ADDR): Likewise.
3538         (RAX_LP): Likewise.
3539         (RBP_LP): Likewise.
3540         (RBX_LP): Likewise.
3541         (RCX_LP): Likewise.
3542         (RDI_LP): Likewise.
3543         (RSI_LP): Likewise.
3544         (RSP_LP): Likewise.
3545         (R8_LP): Likewise.
3546         (R9_LP): Likewise.
3547         (R10_LP): Likewise.
3548         (R10_LP): Likewise.
3549         (R11_LP): Likewise.
3550         (R12_LP): Likewise.
3551         (R13_LP): Likewise.
3552         (R14_LP): Likewise.
3553         (R15_LP): Likewise.
3555 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3557         * sysdeps/x86_64/x32/dl-machine.h: New file.
3559 2012-05-14  Andreas Jaeger  <aj@suse.de>
3561         * manual/Makefile (subdir): Remove export of subdir.
3562         (all): Remove target.
3563         (.PHONY): Remove all from list.
3564         (mkinstalldirs): Remove.
3565         (.PHONY): Remove installdirs from list.
3566         ($(inst_infodir)/libc.info): Use make-target-directory.
3567         (installdirs): Remove.
3568         (subdir_%): Remove.
3569         (glibc-targets): Remove.
3570         (lib): Remove.
3571         (stubs): Remove.
3572         ($(objpfx)stubs ../po/manual.pot): Remove.
3573         ($(objpfx)stamp%): Remove.
3574         (make-target-directory): Remove.
3575         (subdir_install): Remove.
3576         (routines): Remove.
3577         (aux): Remove.
3578         (sources): Remove.
3579         (objects): Remove.
3580         (headers): Remove.
3582         [BZ #13750]
3583         * manual/.gitignore: Remove, it's not needed anymore.
3584         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
3585         all files in it.
3586         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
3587         directory.
3588         (texis): Renamed to $(objpfx)texis.
3589         (texis-path): New, contains path to generated files.
3590         (chapters.%): Use texis-path for complete path, add extra argument
3591         libc-texinfo.sh.
3592         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
3593         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
3594         (summary,texi, stamp-summary): Use complete path of
3595         files. Generate files in build dir.
3596         (dir-add.texi): Build in build dir.
3597         (libm-err.texi,stamp-libm-err): Likewise.
3598         (version.texi, stamp-version): Likewise.
3599         (.%c.texi): Likewise.
3600         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
3601         (mostlyclean): Remove target.
3602         (realclean): Remove target.
3603         (generated): Add new variable with contents from mostlyclean and
3604         realclean, remove entries duplicated in common-mostlyclean, add
3605         stamp-libm-err and stamp-version.
3606         (generated-dirs): Add libc directory.
3607         ($(inst_infodir)/libc.info): Install files from build dir.
3609         * manual/install.texi (Configuring and compiling): Adjust since
3610         the info files are not part of the tar ball anymore.
3612 2012-05-14  Andreas Jaeger  <aj@suse.de>
3614         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
3615         variable.
3617 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
3619         [BZ #13717]
3620         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3621         to 2.2.0 where earlier.
3622         * sysdeps/unix/sysv/linux/configure: Regenerated.
3623         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
3624         Remove conditional code.
3625         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
3626         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
3627         Remove conditional code.
3628         [!__NR_lchown]: Likewise.
3629         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
3630         [__NR_lchown]: Likewise.
3631         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
3632         comment referencing __ASSUME_LCHOWN_SYSCALL.
3633         * sysdeps/unix/sysv/linux/i386/sigaction.c
3634         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3635         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3636         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
3637         Remove conditional code.
3638         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
3639         (__protocol_available): Remove #if 0 code.
3640         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
3641         conditional code.
3642         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
3643         * sysdeps/unix/sysv/linux/kernel-features.h
3644         (__ASSUME_GETCWD_SYSCALL): Don't define.
3645         (__ASSUME_REALTIME_SIGNALS): Likewise.
3646         (__ASSUME_PREAD_SYSCALL): Likewise.
3647         (__ASSUME_PWRITE_SYSCALL): Likewise.
3648         (__ASSUME_POLL_SYSCALL): Likewise.
3649         (__ASSUME_LCHOWN_SYSCALL): Likewise.
3650         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
3651         non-SPARC.
3652         (__ASSUME_SIOCGIFNAME): Don't define.
3653         (__ASSUME_MSG_NOSIGNAL): Likewise.
3654         (__ASSUME_SENDFILE): Define unconditionally.
3655         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
3656         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
3657         conditional code.
3658         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
3659         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
3660         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
3661         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
3662         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
3663         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
3664         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
3665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
3666         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3667         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
3669         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3670         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
3672         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3673         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
3675         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3676         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
3678         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3679         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
3681         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3682         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
3684         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3685         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
3687         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3688         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3689         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
3690         Remove conditional code.
3691         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3692         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
3693         Remove conditional code.
3694         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3695         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
3696         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
3697         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
3698         Remove conditional code.
3699         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3700         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
3701         Remove conditional code.
3702         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3703         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
3704         Remove conditional code.
3705         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3706         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
3707         Remove conditional code.
3708         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3709         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
3710         Remove conditional code.
3711         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3712         * sysdeps/unix/sysv/linux/sh/pwrite64.c
3713         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3714         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3715         * sysdeps/unix/sysv/linux/sigaction.c
3716         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3717         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3718         * sysdeps/unix/sysv/linux/sigpending.c
3719         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3720         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3721         * sysdeps/unix/sysv/linux/sigprocmask.c
3722         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3723         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3724         * sysdeps/unix/sysv/linux/sigsuspend.c
3725         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3726         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3727         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3728         (__libc_missing_rt_sigs): Remove.
3729         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
3730         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
3731         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
3732         Remove conditional code.
3733         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
3734         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
3735         return 1.
3736         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
3737         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
3738         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
3739         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
3741 2012-05-14  Andreas Jaeger  <aj@suse.de>
3743         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
3744         it's not used in glibc.
3745         (__coshm1): Likewise.
3746         (__acosh1p): Likewise.
3747         (__sgn): Likewise.
3749         * manual/string.texi (Copying and Concatenation): Add missing
3750         variable in concat example.
3751         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
3753 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3755         [BZ #14103]
3756         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
3757         __builtin_clzl with __builtin_clzll.
3759 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3761         [BZ #14104]
3762         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
3763         libc_freeres_ptr.
3765 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3767         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
3768         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
3769         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
3770         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
3772 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
3774         * NEWS: Update ia64 info.
3776 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
3778         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
3779         used as bcopy.
3781 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3783         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
3784         * sysdeps/unix/syscalls.list (dup3): Likewise.
3785         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
3786         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
3788 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3790         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
3791         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
3793 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3795         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
3796         thread pointer.
3797         (TLS_IE): Use mov/add instead of movq/addq to load thread
3798         pointer.
3799         (TLS_GD_PREFIX): New.
3800         (TLS_GD): Use it.
3802 2012-05-11  David S. Miller  <davem@davemloft.net>
3804         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
3805         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
3806         (_FPU_SETCW): Likewise.
3808 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3810         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
3811         is 32-byte aligned.
3813 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
3815         [BZ #11837]
3816         * iconvdata/gb18030.c: Update tables.
3817         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
3818         characters specially.
3819         (BODY for TO_LOOP): Add encoding of missing ranges.
3821 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3823         [BZ #13673]
3824         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
3825         * sysdeps/mach/hurd/dup3.c: Likewise.
3826         * sysdeps/mach/hurd/readlinkat.c: Likewise.
3827         * sysdeps/powerpc/memmove.c:: Likewise.
3829 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3831         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
3832         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
3834 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3836         * elf/elf.h (R_X86_64_RELATIVE64): New.
3837         (R_X86_64_NUM): Updated.
3838         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3839         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
3840         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
3841         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
3842         tst-quad1pie tst-quad2pie
3843         (modules-names): Add tst-quadmod1 tst-quadmod2.
3844         ($(objpfx)tst-quad1): New dependency.
3845         ($(objpfx)tst-quad2): Likewise.
3846         ($(objpfx)tst-quad1pie): Likewise.
3847         ($(objpfx)tst-quad2pie): Likewise.
3848         * sysdeps/x86_64/tst-quad1.c: New file.
3849         * sysdeps/x86_64/tst-quad1pie.c: New file.
3850         * sysdeps/x86_64/tst-quad2.c: Likewise.
3851         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
3852         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
3853         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
3854         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
3855         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
3857 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3859         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
3860         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
3861         * streams/stropts.h (t_scalar_t): Define type.
3863         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
3864         (_PATH_PRESERVE): Set to "/var/lib".
3865         (_PATH_RWHODIR): Set to "/var/spool/rwho".
3867         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
3868         instead of int.
3870         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
3871         if __dir_mkfile succeeded.
3873         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
3874         checking for _hurd_dtablesize.  Unlock it right after having
3875         finished _hurd_dtable allocation.
3877 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3879         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
3880         * sysdeps/mach/hurd/configure: Regenerated.
3881         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
3882         special-casing to...
3883         * sysdeps/gnu/configure.in: ... this new file.
3884         * sysdeps/unix/sysv/linux/configure: Regenerated.
3885         * sysdeps/gnu/configure: New generated file.
3887         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
3888         for Linux: use nsec instead of usec, as well as:
3889         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
3890         members of type struct timespec.
3891         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
3892         New macros.
3893         (struct stat64): Likewise.
3894         (_STATBUF_ST_NSEC): New macro.
3895         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
3897         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3898         __strtoul_internal rather than strtoul.
3900 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3902         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
3903         and reject them.
3905 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3907         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
3908         which preserves existing values.
3909         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
3911 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3913         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
3914         TIMEOUT values.  Return EINVAL for NFDS values either negative or
3915         greater than FD_SETSIZE.
3917 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3919         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
3920         allocated, call __vm_protect to finish enabling the existing space, and
3921         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
3922         allocate the remainder.
3924 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3926         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
3927         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
3929 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3931         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
3932         sysdeps/mach/hurd/readlink.c.
3934         * posix/tst-sysconf.c (posix_options): Only use
3935         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
3936         _POSIX_SYNCHRONIZED_IO when they are defined
3937         * sysdeps/mach/hurd/bits/posix_opt.h:
3938         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
3939         (_XOPEN_REALTIME): Undefine macro.
3940         (_XOPEN_REALTIME_THREADS): Undefine macro.
3941         (_XOPEN_SHM): Undefine macro.
3942         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
3943         macro to -1.
3944         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
3945         macro to -1.
3946         (_POSIX_ASYNC_IO): Undefine macro.
3947         (_POSIX_PRIORITIZED_IO): Undefine macro.
3948         (_POSIX_SPIN_LOCKS): Define macro to -1.
3950         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
3951         SA_NODEFER, SA_RESETHAND.
3952         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
3953         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
3954         F_DUPFD_CLOEXEC.
3956 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3958         * elf/Makefile (pldd-modules): Define unconditionally.
3960 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3962         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
3964 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3966         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3967         Return ENOENT when name is empty.
3968         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
3970 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3972         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
3974         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
3976 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3978         Fix mlock in all cases except non-readable pages.
3979         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
3980         instead of VM_PROT_ALL as parameter to __vm_wire function.
3982         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
3983         (__mkdir): When path is `/', just fail with EEXIST.
3984         * sysdeps/mach/hurd/mkdirat.c: Likewise.
3986 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3988         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
3989         <sys/uio.h> (for writev).
3990         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
3991         and <sys/param.h> (for MIN).
3993 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3995         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
3996         REQUESTED_TIME.  Properly set the remaining time and return EINTR
3997         if interrupted.
3999 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4001         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
4002         Depend on against $(link-rpcuserlibs).
4004 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4006         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
4007         (__libc_stack_end): Do not use attribute_relro.
4008         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
4009         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
4010         to libthread-provided value.
4011         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
4012         attribute_relro.
4014 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4016         [BZ #3748]
4017         * bits/libc-lock.h (__libc_once_get): New macro.
4018         * sysdeps/mach/bits/libc-lock.h: Likewise.
4019         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
4020         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
4021         instead of using implementation details.
4023         * libio/fileops.c: Unconditionally include <kernel-features.h>.
4024         * libio/freopen.c: Likewise.
4025         * libio/freopen64.c: Likewise.
4026         * misc/syslog.c: Likewise.
4027         * nscd/connections.c: Likewise.
4028         * nscd/netgroupcache.c: Likewise.
4029         * sysdeps/posix/getcwd.c: Likewise.
4031 2012-05-10  Roland McGrath  <roland@hack.frob.com>
4033         * math/w_ilogbf.c: Add #include <limits.h>.
4035 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4037         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
4038         path instead of returning without unlocking.
4040         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
4041         immediate-write ioctls.
4042         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
4044 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4046         * sysdeps/mach/hurd/i386/init-first.c (init): Use
4047         __builtin_frame_address instead of making assumptions about the
4048         location of the return address relative to DATA.  Force early load of
4049         the return address.
4050         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
4051         __builtin_frame_address.
4053         dup3 for GNU Hurd.
4054         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
4055         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
4056         implement dup3 and do some further code clean-ups.
4057         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
4058         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
4060 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4062         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
4064         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
4065         HURD_CRITICAL_END around holding _hurd_dtable_lock.
4066         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
4067         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
4068         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
4069         d->port.lock.
4071         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
4072         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
4073         when handler == SIG_ERR, not when handler != SIG_ERR.
4075 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4077         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
4078         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
4079         definitions.
4081         accept4 for GNU Hurd.
4082         * include/sys/socket.h (__libc_accept4): New prototype.
4083         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
4084         to implement __libc_accept4.
4085         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
4086         __libc_accept4.
4087         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
4089         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
4090         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
4091         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
4092         signal-defines.sym.
4094 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4096         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
4098 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4100         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
4101         assertion on O_CLOEXEC flag.
4102         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
4103         * hurd/intern-fd.c: Likewise.
4104         * hurd/port2fd.c: Likewise.
4106 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4108         [BZ #3906]
4109         * bits/in.h (IPV6_PKTINFO): Define new macro.
4110         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
4112 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4114         [BZ #13954]
4115         [BZ #13955]
4116         [BZ #13956]
4117         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
4118         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4119         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
4120         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4121         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4122         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4123         * math/libm-test.inc (logb_test) : Additional logb tests.
4125 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
4126             Andreas Jaeger  <aj@suse.de>
4128         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
4129         * configure: Regenerated.
4130         * config.h.in (LINK_OBSOLETE_RPC): New macro.
4131         * config.make.in (link-obsolete-rpc): New substituted variable.
4132         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
4133         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
4134         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4135         (shared-only-routines): Don't set it under [link-obsolete-rpc],
4136         so that libc.a contains the symbols.
4137         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4138         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
4139         * sunrpc/auth_none.c: Likewise.
4140         * sunrpc/auth_unix.c: Likewise.
4141         * sunrpc/authdes_prot.c: Likewise.
4142         * sunrpc/authuxprot.c: Likewise.
4143         * sunrpc/clnt_gen.c: Likewise.
4144         * sunrpc/clnt_perr.c: Likewise.
4145         * sunrpc/clnt_raw.c: Likewise.
4146         * sunrpc/clnt_simp.c: Likewise.
4147         * sunrpc/clnt_tcp.c: Likewise.
4148         * sunrpc/clnt_udp.c: Likewise.
4149         * sunrpc/clnt_unix.c: Likewise.
4150         * sunrpc/des_crypt.c: Likewise.
4151         * sunrpc/des_soft.c: Likewise.
4152         * sunrpc/get_myaddr.c: Likewise.
4153         * sunrpc/key_call.c: Likewise.
4154         * sunrpc/key_prot.c: Likewise.
4155         * sunrpc/netname.c: Likewise.
4156         * sunrpc/pm_getmaps.c: Likewise.
4157         * sunrpc/pm_getport.c: Likewise.
4158         * sunrpc/pmap_clnt.c: Likewise.
4159         * sunrpc/pmap_prot.c: Likewise.
4160         * sunrpc/pmap_prot2.c: Likewise.
4161         * sunrpc/pmap_rmt.c: Likewise.
4162         * sunrpc/publickey.c: Likewise.
4163         * sunrpc/rpc_cmsg.c: Likewise.
4164         * sunrpc/rpc_common.c: Likewise.
4165         * sunrpc/rpc_dtable.c: Likewise.
4166         * sunrpc/rpc_prot.c: Likewise.
4167         * sunrpc/rpc_thread.c: Likewise.
4168         * sunrpc/rtime.c: Likewise.
4169         * sunrpc/svc.c: Likewise.
4170         * sunrpc/svc_auth.c: Likewise.
4171         * sunrpc/svc_raw.c: Likewise.
4172         * sunrpc/svc_run.c: Likewise.
4173         * sunrpc/svc_tcp.c: Likewise.
4174         * sunrpc/svc_udp.c: Likewise.
4175         * sunrpc/svc_unix.c: Likewise.
4176         * sunrpc/svcauth_des.c: Likewise.
4177         * sunrpc/xcrypt.c: Likewise.
4178         * sunrpc/xdr.c: Likewise.
4179         * sunrpc/xdr_array.c: Likewise.
4180         * sunrpc/xdr_float.c: Likewise.
4181         * sunrpc/xdr_intXX_t.c: Likewise.
4182         * sunrpc/xdr_mem.c: Likewise.
4183         * sunrpc/xdr_rec.c: Likewise.
4184         * sunrpc/xdr_ref.c: Likewise.
4185         * sunrpc/xdr_sizeof.c: Likewise.
4186         * sunrpc/xdr_stdio.c: Likewise.
4188 2012-05-10  Roland McGrath  <roland@hack.frob.com>
4190         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
4191         change.  Update copyright years.
4193 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
4195         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
4197 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
4198             Joseph Myers  <joseph@codesourcery.com>
4199             Paul Pluzhnikov  <ppluzhnikov@google.com>
4201         [BZ #14012]
4202         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
4203         requiring rpcgen.
4204         [cross-compiling] (extra-libs): Likewise.
4205         [cross-compiling] (extra-libs-others): Likewise.
4206         [cross-compiling] (librpcsvc-routines): Likewise.
4207         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
4208         [cross-compiling] (omit-deps): Likewise.
4209         (sunrpc-CPPFLAGS): New variable.
4210         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
4211         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
4212         (cross-rpcgen-objs): New variable.
4213         (extra-objs): Append $(cross-rpcgen-objs).
4214         ($(cross-rpcgen-objs)): New rule.
4215         ($(objpfx)cross-rpcgen): Likewise.
4216         (rpcgen-cmd): Define to use $(built-program-file).  Expand
4217         comment.
4218         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
4219         ($(objpfx)x%.stmp): Likewise.
4220         * sunrpc/proto.h [IS_IN_build] (_): Define.
4221         [IS_IN_build] (_libc_intl_domainname): Likewise.
4223 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4225         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
4226         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
4227         and R_X86_64_TPOFF64.
4229 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
4231         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
4232         sysdeps/unix/sysv/syscalls.list.
4233         (stime): Likewise.
4234         (utime): Likewise.
4235         * sysdeps/unix/sysv/syscalls.list: Remove file.
4237 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4239         [BZ #3440]
4240         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
4241         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
4242         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
4243         (__LC_IDENTIFICATION): Make these macros useful in #if
4244         expressions, as required by C99.
4246 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
4248         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
4249         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
4250         after this.
4252 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
4254         * stdlib/longlong.h: Updated from GCC.
4256 2012-05-09  Andreas Jaeger  <aj@suse.de>
4258         * nscd/nscd.c (run_modes): Make named enum, reorder so that
4259         default is first entry.
4260         (run_mode): Set type.
4261         (main): Remove informal message about syslog.
4262         (options): Fix typo.
4264         [BZ #14053]
4265         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
4266         to asm.
4267         (lrint): Likewise.
4268         (llrintf): Likewise.
4269         (llrint): Likewise.
4270         (rint): Likewise.
4271         (rintf): Likewise.
4272         (nearbyint): Likewise.
4273         (nearbyintf): Likewise.
4275 2012-05-09  Andreas Jaeger  <aj@suse.de>
4276             Pedro Alves  <palves@redhat.com>
4278         * nscd/nscd.c (run_mode): Use enum.
4279         (main): Cleanup coding style issue.
4281 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
4282             Andreas Jaeger  <aj@suse.de>
4284         * nscd/nscd.c (go_background): Replaced with...
4285         (run_mode): ... this.
4286         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
4287         (options): Add -F --foreground.
4288         (main): Implement it.
4289         (parse_opt): Parse it.
4291 2012-05-09  Andreas Jaeger  <aj@suse.de>
4293         [BZ #14083]
4294         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
4295         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
4296         -Wconversion warning.
4297         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
4298         Likewise.
4300 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
4302         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
4303         == 0.
4304         (LC_ALL): Use macro-int-constant.
4305         (LC_COLLATE): Likewise.
4306         (LC_CTYPE): Likewise.
4307         (LC_MESSAGES): Likewise.
4308         (LC_MONETARY): Likewise.
4309         (LC_NUMERIC): Likewise.
4310         (LC_TIME): Likewise.
4311         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
4312         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
4313         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4314         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
4315         Specify type.
4316         [C99-based standards] (float_t): Expect type.
4317         [C99-based standards] (double_t): Expect type.
4318         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
4319         type.
4320         [C99-based standards] (HUGE_VALL): Likewise.
4321         [C99-based standards] (INFINITY): Likewise.
4322         [C99-based standards] (NAN): Likewise.
4323         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
4324         [C99-based standards] (FP_NAN): Likewise.
4325         [C99-based standards] (FP_NORMAL): Likewise.
4326         [C99-based standards] (FP_SUBNORMAL): Likewise.
4327         [C99-based standards] (FP_ZERO): Likewise.
4328         [C99-based standards] (FP_FAST_FMA): Use
4329         optional-macro-int-constant.  Specify type.  Require == 1.
4330         [C99-based standards] (FP_FAST_FMAF): Likewise.
4331         [C99-based standards] (FP_FAST_FMAL): Likewise.
4332         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
4333         [C99-based standards] (FP_ILOGBNAN): Likewise.
4334         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
4335         Specify type.
4336         [C99-based standards] (MATH_ERREXCEPT): Likewise.
4337         [C99-based standards] (math_errhandling): Specify type.
4338         [ISO99 || ISO11] (signgam): Do not allow.
4339         [non-C99-based standards] (copysignf): Do not allow.
4340         [non-C99-based standards] (exp2f): Likewise.
4341         [non-C99-based standards] (log2f): Likewise.
4342         [non-C99-based standards] (modff): Allow.
4343         [non-C99-based standards] (erff): Do not allow.
4344         [non-C99-based standards] (erfcf): Likewise.
4345         [non-C99-based standards] (gammaf): Likewise.
4346         [non-C99-based standards] (hypotf): Likewise.
4347         [non-C99-based standards] (j0f): Likewise.
4348         [non-C99-based standards] (j1f): Likewise.
4349         [non-C99-based standards] (jnf): Likewise.
4350         [non-C99-based standards] (lgammaf): Likewise.
4351         [non-C99-based standards] (tgammaf): Likewise.
4352         [non-C99-based standards] (y0f): Likewise.
4353         [non-C99-based standards] (y1f): Likewise.
4354         [non-C99-based standards] (ynf): Likewise.
4355         [non-C99-based standards] (isnanf): Likewise.
4356         [non-C99-based standards] (acoshf): Likewise.
4357         [non-C99-based standards] (asinhf): Likewise.
4358         [non-C99-based standards] (atanhf): Likewise.
4359         [non-C99-based standards] (cbrtf): Likewise.
4360         [non-C99-based standards] (expm1f): Likewise.
4361         [non-C99-based standards] (ilogbf): Likewise.
4362         [non-C99-based standards] (log1pf): Likewise.
4363         [non-C99-based standards] (logbf): Likewise.
4364         [non-C99-based standards] (nextafterf): Likewise.
4365         [non-C99-based standards] (remainderf): Likewise.
4366         [non-C99-based standards] (rintf): Likewise.
4367         [non-C99-based standards] (scalbf): Likewise.
4368         [non-C99-based standards] (copysignl): Likewise.
4369         [non-C99-based standards] (exp2l): Likewise.
4370         [non-C99-based standards] (log2l): Likewise.
4371         [non-C99-based standards] (modfl): Allow.
4372         [non-C99-based standards] (erfl): Do not allow.
4373         [non-C99-based standards] (erfcl): Likewise.
4374         [non-C99-based standards] (gammal): Likewise.
4375         [non-C99-based standards] (hypotl): Likewise.
4376         [non-C99-based standards] (j0l): Likewise.
4377         [non-C99-based standards] (j1l): Likewise.
4378         [non-C99-based standards] (jnl): Likewise.
4379         [non-C99-based standards] (lgammal): Likewise.
4380         [non-C99-based standards] (tgammal): Likewise.
4381         [non-C99-based standards] (y0l): Likewise.
4382         [non-C99-based standards] (y1l): Likewise.
4383         [non-C99-based standards] (ynl): Likewise.
4384         [non-C99-based standards] (isnanl): Likewise.
4385         [non-C99-based standards] (acoshl): Likewise.
4386         [non-C99-based standards] (asinhl): Likewise.
4387         [non-C99-based standards] (atanhl): Likewise.
4388         [non-C99-based standards] (cbrtl): Likewise.
4389         [non-C99-based standards] (expm1l): Likewise.
4390         [non-C99-based standards] (ilogbl): Likewise.
4391         [non-C99-based standards] (log1pl): Likewise.
4392         [non-C99-based standards] (logbl): Likewise.
4393         [non-C99-based standards] (nextafterl): Likewise.
4394         [non-C99-based standards] (remainderl): Likewise.
4395         [non-C99-based standards] (rintl): Likewise.
4396         [non-C99-based standards] (scalbl): Likewise.
4397         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4398         [non-C99-based standards] (FP_*): Do not allow.
4399         [C99-based standards] (FP_*): Change to
4400         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
4401         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4402         allow.
4403         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
4404         (SIG_ERR): Likewise.
4405         [X/Open-based standards] (SIG_HOLD): Likewise.
4406         (SIG_IGN): Likewise.
4407         (SIGABRT): Use macro-int-constant.  Specify type.  Require
4408         positive value.
4409         (SIGFPE): Likewise.
4410         (SIGILL): Likewise.
4411         (SIGINT): Likewise.
4412         (SIGSEGV): Likewise.
4413         (SIGTER): Likewise.
4414         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
4415         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
4416         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
4417         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
4418         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
4419         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
4420         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
4421         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
4422         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
4423         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
4424         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
4425         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
4426         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
4427         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
4428         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
4429         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
4430         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
4431         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
4432         [X/Open-based standards] (SIGTRAP): Likewise.
4433         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
4434         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
4435         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
4436         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
4437         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4438         allow.
4440 2012-05-08  Ian Wienand  <ianw@vmware.com>
4442         [BZ #14080]
4443         * time/tzset.c (__tzset_parse_tz): Update default rules for
4444         daylight time changes in the Energy Policy Act of 2005.
4446 2012-05-09  Andreas Jaeger  <aj@suse.de>
4448         [BZ #13983]
4449         * elf/ldconfig.c (parse_conf): Change string to make clear that
4450         ldconfig only issued a warning if ld.so.conf does not exist.
4452 2012-05-08  David S. Miller  <davem@davemloft.net>
4454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
4455         movxtod instead of popping the value on the stack.
4457         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4459 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
4461         * config.h.in: Add HAVE_ARM_PCS_VFP.
4463 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
4465         [BZ #13979]
4466         * include/features.h: Warn if user requests __FORTIFY_SOURCE
4467         checking but the checks are disabled for any reason.
4469 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
4471         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
4472         and ELF64_R_TYPE with ELFW(R_TYPE).
4474 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
4476         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
4477         (ulimit): Likewise.
4479         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
4480         (settimeofday): Likewise.
4482 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
4484         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
4485         a struct th_u2 inside the union, and move tu_block/tu_code into
4486         a new th_u3 union of tu_block/tu_code inside of that.  Move
4487         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
4488         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
4489         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
4490         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
4491         (th_stuff): Change to th_u1.tu_stuff.
4492         (th_data): Define.
4493         (th_msg): Change to th_u1.th_u2.tu_data.
4495 2012-05-07  David S. Miller  <davem@davemloft.net>
4497         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4499         [BZ #14074]
4500         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
4501         (SETUP_PIC_REG): Use it.
4502         (SETUP_PIC_REG_LEAF): Use it.
4504 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
4506         [BZ #13885]
4507         [BZ #13923]
4508         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4509         USE_AS_EXPM1L.
4510         (EXPL_FINITE): Likewise.
4511         (FLDLOG): Likewise.
4512         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
4513         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
4514         e_expl.S.
4515         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4516         USE_AS_EXPM1L.
4517         (EXPL_FINITE): Likewise.
4518         (FLDLOG): Likewise.
4519         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
4520         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
4521         e_expl.S.
4522         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
4523         test of -max_value argument for long double.
4524         * sysdeps/i386/fpu/libm-test-ulps: Update.
4525         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4527 2012-05-06  David S. Miller  <davem@davemloft.net>
4529         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
4530         quad soft-float symbols whose references which are compiler
4531         generated.
4532         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
4534 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
4536         [BZ #13884]
4537         [BZ #13914]
4538         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4539         USE_AS_EXP10L.
4540         (EXPL_FINITE): Likewise.
4541         (FLDLOG): Likewise.
4542         (c0): Likewise.
4543         (c1): Likewise.
4544         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
4545         Adjust comments for base varying.
4546         (__expl_finite): Change alias to EXPL_FINITE.
4547         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
4548         e_expl.S.
4549         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
4550         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4551         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
4552         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
4553         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4554         USE_AS_EXP10L.
4555         (EXPL_FINITE): Likewise.
4556         (FLDLOG): Likewise.
4557         (c0): Likewise.
4558         (c1): Likewise.
4559         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
4560         Adjust comments for base varying.
4561         (__expl_finite): Change alias to EXPL_FINITE.
4562         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
4563         tests for bugs.
4564         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4566         [BZ #14064]
4567         * math/libm-test.inc (check_float_internal): Correct ulp
4568         calculation for subnormal expected results.
4570 2012-05-06  Andreas Jaeger  <aj@suse.de>
4572         * Makeconfig (+math-flags): New, set to -frounding-math.
4573         (+cflags): Add +math-flags so that all of glibc gets compiled with
4574         it.
4576         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
4578 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
4580         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
4581         Disable one test.
4583         [BZ #13787]
4584         [BZ #13922]
4585         [BZ #14036]
4586         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
4587         (__ieee754_expl): Allow for and saturate large arguments.
4588         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
4589         (u_threshold): Likewise.
4590         (__exp): Call __ieee754_exp before checking for overflow and
4591         underflow.
4592         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
4593         (u_threshold): Likewise.
4594         (__expf): Call __ieee754_expf before checking for overflow and
4595         underflow.
4596         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
4597         (u_threshold): Likewise.
4598         (__expl): Call __ieee754_expl before checking for overflow and
4599         underflow.
4600         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
4601         (__ieee754_expl): Allow for and saturate large arguments.
4602         * math/libm-test.inc (exp_test): Add another test.  Do not allow
4603         missing overflow exception on overflow.
4604         (expm1_test): Do not allow missing overflow exception on overflow.
4606         * sysdeps/i386/fpu/e_expl.c: Move to ...
4607         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
4608         rather than using inline asm.
4609         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
4610         * sysdeps/x86_64/fpu/e_expl.S: Copy from
4611         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
4613         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
4614         (nice): Likewise.
4615         (poll): Likewise.
4616         (signal): Likewise.
4617         (time): Likewise.
4618         (times): Likewise.
4620 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
4622         * sysdeps/unix/syscalls.list (adjtime): Add entry from
4623         sysdeps/unix/common/syscalls.list.
4624         (fchmod): Likewise.
4625         (fchown): Likewise.
4626         (ftruncate): Likewise.
4627         (getrusage): Likewise.
4628         (gettimeofday): Likewise.
4629         (setpgid): Likewise.
4630         (setregid): Likewise.
4631         (setreuid): Likewise.
4632         (sigaction): Likewise.
4633         (truncate): Likewise.
4634         (vhangup): Likewise.
4635         * sysdeps/unix/common/syscalls.list: Remove file.
4636         * sysdeps/unix/bsd/Implies: Don't include unix/common.
4637         * sysdeps/unix/sysv/linux/Implies: Likewise.
4639 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4641         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
4642         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
4643         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
4644         Moved to ...
4645         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
4646         Here.
4647         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
4648         to ...
4649         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
4650         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
4651         to ...
4652         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
4653         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
4654         to ...
4655         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
4656         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
4657         to ...
4658         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
4659         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
4660         to ...
4661         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
4662         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
4663         to ...
4664         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
4665         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
4666         to ...
4667         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
4668         Here.
4669         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
4670         to ...
4671         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
4672         Here.
4673         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
4674         to ...
4675         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
4676         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
4677         Moved to ...
4678         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
4679         Here.
4680         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
4681         to ...
4682         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
4684 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
4686         * sysdeps/unix/common/bits/dirent.h: Remove file.
4687         * sysdeps/unix/common/bits/fcntl.h: Likewise.
4689         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
4690         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
4691         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
4692         * sysdeps/unix/bsd/isatty.c: Likewise.
4693         * sysdeps/unix/bsd/tcdrain.c: Likewise.
4694         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
4695         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
4697 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4699         [BZ #13563]
4700         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
4701         long double comparison inaccuracies.
4702         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
4703         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4705 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
4707         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
4708         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
4710 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
4712         [BZ #14049]
4713         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
4714         nonzero digits before rounding a hex value.
4715         * stdlib/tst-strtod.c (tests): Add another test.
4717 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4719         * sysdeps/s390/fpu/libm-test-ulps: Update.
4721 2012-05-03  Andreas Jaeger  <aj@suse.de>
4723         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
4724         does not get optimized out.
4725         (malloc_opt_barrier): New.
4727 2012-05-03  Andreas Jaeger  <aj@suse.de>
4728             Roland McGrath  <roland@hack.frob.com>
4730         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
4731         intermediate file deletion.
4732         (generated): Add .symlist files.
4734 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
4736         [BZ #13775]
4737         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
4738         Redirect under this condition.
4739         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
4740         [__USE_GNU] (__dprintf_chk): Not under this condition.
4741         [__USE_GNU] (__vdprintf_chk): Likewise.
4742         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
4743         under this condition.
4744         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
4745         [__USE_XOPEN2K8] (dprintf): Define under this condition.
4746         [__USE_XOPEN2K8] (vdprintf): Likewise.
4747         [__USE_GNU] (__dprintf_chk): Not under this condition.
4748         [__USE_GNU] (__vdprintf_chk): Likewise.
4749         [__USE_GNU] (dprintf): Likewise.
4750         [__USE_GNU] (vdprintf): Likewise.
4752 2012-05-03  Roland McGrath  <roland@hack.frob.com>
4754         * elf/Makefile (common-generated): Set this instead of generated for
4755         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
4756         $(all-built-dso)-derived lists.
4758 2012-05-03  Andreas Jaeger  <aj@suse.de>
4760         * sysdeps/i386/fpu/libm-test-ulps: Update.
4762         * FAQ: Removed.
4763         * FAQ.in: Likewise.
4764         * scripts/gen-FAQ.pl: Likewise.
4765         * manual/install.texi (Installation): Point to online location of
4766         FAQ.
4767         * Makefile (files-for-dist): Remove FAQ.
4768         (FAQ): Remove.
4770 2012-05-02  Allan McRae  <allan@archlinux.org>
4772         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
4773         (LDFLAGS-reldepmod5.so): Likewise.
4774         (LDFLAGS-reldep6mod1.so): Likewise.
4775         (LDFLAGS-reldep6mod4.so): Likewise.
4776         (LDFLAGS-reldep8mod3.so): Likewise.
4777         (LDFLAGS-unload4mod1.so): Likewise.
4778         (LDFLAGS-unload4mod2.so): Likewise.
4779         (LDFLAGS-tst-initorder): Likewise.
4780         (LDFLAGS-tst-initordera2.so): Likewise.
4781         (LDFLAGS-tst-initordera3.so): Likewise.
4782         (LDFLAGS-tst-initordera4.so): Likewise.
4783         (LDFLAGS-tst-initorderb2.so): Likewise.
4784         (LDFLAGS-noload): Likewise.
4785         (LDFLAGS-next): Likewise.
4786         (LDFLAGS-order2mod1.so): Likewise.
4787         (LDFLAGS-order2mod2.so): Likewise.
4788         (LDFLAGS-tst-initorder2): Likewise.
4789         (LDFLAGS-tst-initorder2a.so): Likewise.
4790         (LDFLAGS-tst-initorder2b.so): Likewise.
4791         (LDFLAGS-tst-initorder2c.so): Likewise.
4792         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
4794 2012-05-02  David S. Miller  <davem@davemloft.net>
4796         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4798 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
4800         [BZ #14055]
4801         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
4803 2012-05-02  Andreas Jaeger  <aj@suse.de>
4805         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
4806         since we manipulate rounding mode.
4807         (CPPFLAGS-test-idouble.c): Likewise.
4808         (CPPFLAGS-test-ifloat.c): Likewise.
4809         (CFLAGS-test-ldouble.c): Likewise.
4810         (CFLAGS-test-double.c): Likewise.
4811         (CFLAGS-test-float.c): Likewise.
4812         (CFLAGS-test-misc.c): Likewise.
4813         (CFLAGS-test-test-fenv.c): Likewise.
4815 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4817         [BZ #2550]
4818         [BZ #2570]
4819         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
4820         comparisons to determine direction to adjust input.
4822 2012-05-01  Roland McGrath  <roland@hack.frob.com>
4824         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
4825         output to the target.
4827         * scripts/localplt.awk: New file.
4828         * elf/Makefile ($(objpfx)check-localplt): Target removed.
4829         (check-localplt-CFLAGS): Variable removed.
4830         ($(all-built-dso:=.jmprel)): New static pattern rule.
4831         (generated): Add those targets.
4832         (localplt-built-dso): New variable.
4833         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
4835         * elf/check-localplt.c: File removed.
4837         * scripts/check-execstack.awk: New file.
4838         * elf/Makefile ($(objpfx)check-execstack): Target removed.
4839         (check-execstack-CFLAGS): Variable removed.
4840         ($(objpfx)check-execstack.h): Target removed.
4841         ($(objpfx)execstack-default): New target.
4842         (generated): Add that instead of check-execstack.h.
4843         ($(all-built-dso:=.phdr)): New static pattern rule.
4844         (generated): Add those targets.
4845         * elf/check-execstack.c: File removed.
4847         * scripts/check-textrel.awk: New file.
4848         * elf/Makefile ($(objpfx)check-textrel): Target removed.
4849         (check-textrel-CFLAGS): Variable removed.
4850         (all-built-dso): Use := to define.o
4851         ($(all-built-dso:=.dyn)): New static pattern rule.
4852         (generated): Add those targets.
4853         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
4854         * config.make.in (READELF): New substituted variable.
4855         * elf/check-textrel.c: File removed.
4857 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
4859         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4860         allow.
4861         * conform/data/ctype.h-data [C99-based standards] (isblank):
4862         Expect function.
4863         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
4864         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
4865         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4866         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
4867         Specify type.  Require positive value.
4868         (EILSEQ): Likewise.
4869         (ERANGE): Likewise.
4870         [ISO || POSIX] (EILSEQ): Do not expect.
4871         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
4872         Specify type.  Require positive value.
4873         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
4874         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
4875         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
4876         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
4877         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
4878         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
4879         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
4880         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
4881         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
4882         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
4883         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
4884         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
4885         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
4886         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
4887         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
4888         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
4889         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
4890         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
4891         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
4892         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
4893         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
4894         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
4895         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
4896         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
4897         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
4898         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
4899         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
4900         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
4901         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
4902         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
4903         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
4904         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
4905         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
4906         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
4907         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
4908         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
4909         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
4910         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
4911         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
4912         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
4913         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
4914         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
4915         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
4916         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
4917         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
4918         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
4919         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
4920         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
4921         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
4922         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
4923         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
4924         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
4925         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
4926         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
4927         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
4928         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
4929         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
4930         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
4931         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
4932         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
4933         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
4934         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
4935         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
4936         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
4937         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
4938         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
4939         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
4940         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
4941         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
4942         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
4943         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
4944         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
4945         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
4946         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
4947         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
4948         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
4949         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
4950         Require >= 2.
4951         (FLT_ROUNDS): Expect as macro, not constant.
4952         (FLT_MANT_DIG): Use macro-int-constant.
4953         (DBL_MANT_DIG): Likewise.
4954         (LDBL_MANT_DIG): Likewise.
4955         (FLT_DIG): Likewise.
4956         (DBL_DIG): Likewise.
4957         (LDBL_DIG): Likewise.
4958         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
4959         (DBL_MIN_EXP): Likewise.
4960         (LDBL_MIN_EXP): Likewise.
4961         (FLT_MAX_EXP): Use macro-int-constant.
4962         (DBL_MAX_EXP): Likewise.
4963         (LDBL_MAX_EXP): Likewise.
4964         (FLT_MAX_10_EXP): Likewise.
4965         (DBL_MAX_10_EXP): Likewise.
4966         (LDBL_MAX_10_EXP): Likewise.
4967         (FLT_MAX): Use macro-constant.
4968         (DBL_MAX): Likewise.
4969         (LDBL_MAX): Likewise.
4970         (FLT_EPSILON): Use macro-constant.  Give upper bound.
4971         (DBL_EPSILON): Likewise.
4972         (LDBL_EPSILON): Likewise.
4973         (FLT_MIN): Likewise.
4974         (DBL_MIN): Likewise.
4975         (LDBL_MIN): Likewise.
4976         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
4977         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
4978         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
4979         [ISO11] (FLT_HAS_SUBNORM): Likewise.
4980         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
4981         [ISO11] (DBL_DECIMAL_DIG): Likewise.
4982         [ISO11] (FLT_DECIMAL_DIG): Likewise.
4983         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
4984         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
4985         [ISO11] (FLT_TRUE_MIN): Likewise.
4986         [ISO11] (LDBL_TRUE_MIN): Likewise.
4987         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4988         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
4989         (SCHAR_MIN): Use macro-int-constant.  Specify type.
4990         (SCHAR_MAX): Likewise.
4991         (UCHAR_MAX): Likewise.
4992         (CHAR_MIN): Likewise.
4993         (CHAR_MAX): Likewise.
4994         (MB_LEN_MAX): Use macro-int-constant.
4995         (SHRT_MIN): Use macro-int-constant.  Specify type.
4996         (SHRT_MAX): Likewise.
4997         (USHRT_MAX): Likewise.
4998         (INT_MAX): Likewise.
4999         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
5000         bound negative.
5001         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5002         bound with "U".
5003         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5004         bound with "L".
5005         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
5006         bound negative.  Suffix upper bound with "L".
5007         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5008         bound with "UL".
5009         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
5010         Specify type.
5011         [C99-based standards] (LLONG_MAX): Likewise.
5012         [C99-based standards] (ULLONG_MAX): Likewise.
5013         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
5014         == 0.
5015         [ISO11] (max_align_t): Require type.
5016         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5018         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
5019         from $CFLAGS, without defining away __attribute__ calls.
5020         (checknamespace): Use $CFLAGS_namespace.
5022         * conform/conformtest.pl (@keywords): Only include C99 keywords
5023         for standards based on C99 or C11.
5025         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
5026         Disable tests.
5027         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
5028         UNIX98]: Likewise.
5030         * conform/conformtest.pl: Handle "macro-int-constant" and test for
5031         usability of symbols in #if.
5033         * conform/conformtest.pl: If macro or constant types start
5034         "promoted:", expect the symbol to be of the following type
5035         promoted by the integer promotions.
5037         * conform/conformtest.pl: Parse all "constant" and "macro" lines
5038         in one place.  Also handle "macro-constant".
5040         * conform/conformtest.pl: Only accept expected macro values with
5041         "==".  Parse all "macro" lines in one place.
5042         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
5044         * conform/conformtest.pl: Handle braced types on "constant" lines
5045         instead of handling "typed-constant".
5046         * conform/data/signal.h-data: Use "constant" instead of
5047         "typed-constant".
5049         * conform/conformtest.pl: Handle "optional-" at start of lines in
5050         one place rather than duplicating several cases.  Handle each
5051         format of "macro" line with initial "optional-".
5053         * conform/conformtest.pl: Only accept expected constant or
5054         optional-constant values with "==".  Parse all "constant" lines in
5055         one place.  Parse all "optional-constant" lines in one place.
5056         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
5057         * conform/data/fmtmsg.h-data: Likewise.
5058         * conform/data/netinet/in.h-data: Likewise.
5059         * conform/data/tar.h-data: Likewise.
5060         * conform/data/limits.h-data: Use "==" form on "constant" and
5061         "optional-constant" lines.
5063         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
5064         Use -std=c99 for XOPEN2K.
5065         (@knownproblems): Remove.
5066         (newtoken): Don't check %isknown.
5068         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
5069         Do not expect macro.
5070         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
5071         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
5072         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
5073         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
5074         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
5075         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
5076         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
5077         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
5078         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
5079         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
5080         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
5081         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
5082         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
5083         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
5084         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
5085         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
5086         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
5087         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
5088         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
5089         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
5090         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
5091         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
5092         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
5093         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
5094         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
5095         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
5096         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
5097         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
5098         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
5099         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
5100         [XPG3] (acosh): Likewise.
5101         [XPG3] (asinh): Likewise.
5102         [XPG3] (atanh): Likewise.
5103         [XPG3] (cbrt): Likewise.
5104         [XPG3] (expm1): Likewise.
5105         [XPG3] (ilogb): Likewise.
5106         [XPG3] (log1p): Likewise.
5107         [XPG3] (logb): Likewise.
5108         [XPG3] (nextafter): Likewise.
5109         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
5110         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
5111         [XPG3] (remainder): Likewise.
5112         [XPG3] (rint): Likewise.
5113         [XPG3 || XPG4 || UNIX98] (round): Likewise.
5114         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
5115         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
5116         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
5117         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
5118         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
5119         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
5120         [UNIX98 || XOPEN2K] (scalb): Expect.
5121         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
5122         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
5123         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
5124         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
5125         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
5126         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
5127         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
5128         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
5129         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
5130         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
5131         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
5132         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
5133         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
5134         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
5135         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
5136         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
5137         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
5138         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
5139         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
5140         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
5141         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
5142         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
5143         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
5144         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
5145         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
5146         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
5147         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
5148         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
5149         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
5150         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
5151         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
5152         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
5153         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
5154         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
5155         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
5156         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
5157         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
5158         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
5159         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
5160         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
5161         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
5162         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
5163         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
5164         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
5165         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
5166         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
5167         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
5168         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
5169         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
5170         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
5171         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
5172         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
5173         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
5174         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
5175         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
5176         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
5177         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
5178         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
5179         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
5180         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
5181         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
5182         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
5183         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
5184         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
5185         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
5186         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
5187         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
5188         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
5189         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
5190         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
5191         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
5192         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
5193         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
5194         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
5195         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
5196         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
5197         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
5198         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
5199         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
5200         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
5201         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
5202         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
5203         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
5204         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
5205         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
5206         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
5207         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
5208         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
5209         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
5210         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
5211         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
5212         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
5213         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
5214         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
5215         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
5216         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
5217         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
5218         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
5219         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
5220         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
5221         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
5222         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
5223         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
5224         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
5225         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
5226         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
5227         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
5228         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
5229         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
5230         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
5231         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
5232         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
5233         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
5234         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
5235         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
5236         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
5237         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
5238         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
5239         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
5240         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
5241         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
5242         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
5243         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
5244         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
5245         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
5246         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
5247         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
5248         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
5249         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
5250         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
5251         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
5252         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
5253         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
5254         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
5255         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
5256         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
5257         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
5259         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
5260         _XOPEN_SOURCE_EXTENDED for XPG4.
5262         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
5264         * Makeconfig (localtime): Remove variable.
5265         (inst_localtime-file): Likewise.
5267 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
5269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
5270         Update.
5271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5272         Update.
5273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
5274         Update.
5275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
5276         Update.
5277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
5278         Update.
5279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
5280         Update.
5281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5282         Update.
5283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
5284         Update.
5285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
5286         Update.
5288 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
5290         [BZ #2550]
5291         [BZ #2570]
5292         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
5293         comparisons to determine direction to adjust input.
5294         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
5295         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
5296         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
5297         Likewise.
5298         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
5299         Likewise.
5300         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5301         Likewise.
5302         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
5303         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
5304         Likewise.
5305         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
5306         Likewise.
5307         * math/libm-test.inc (nexttoward_test): Add more tests.
5309 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
5311         [BZ #14040]
5312         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
5313         in version GLIBC_2.1, not GLIBC_2.0.
5314         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
5315         Likewise.
5317 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
5319         [BZ #13942]
5320         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
5321         (1 - x) * (1 + x).
5322         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
5323         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
5324         * math/libm-test.inc (acos_test): Add more tests.
5325         (asin_test): Likewise.
5326         * sysdeps/i386/fpu/libm-test-ulps: Update.
5327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5329         [BZ #14034]
5330         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
5331         of square root.
5332         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
5333         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
5334         * math/libm-test.inc (acos_test_tonearest): New function.
5335         (acos_test_towardzero): Likewise.
5336         (acos_test_downward): Likewise.
5337         (acos_test_upward): Likewise.
5338         (asin_test_tonearest): Likewise.
5339         (asin_test_towardzero): Likewise.
5340         (asin_test_downward): Likewise.
5341         (asin_test_upward): Likewise.
5342         (main): Call the new functions.
5343         * sysdeps/i386/fpu/libm-test-ulps: Update.
5344         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5346         [BZ #13884]
5347         [BZ #13924]
5348         * math/e_exp10.c: Include <float.h>.
5349         (__ieee754_exp10): Handle underflow here rather than multiplying
5350         large negative argument by M_LN10.
5351         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
5352         of __ieee754_expf.
5353         * math/e_exp10l.c: Include <float.h>.
5354         (__ieee754_exp10l): Handle underflow here rather than multiplying
5355         large negative argument by M_LN10l.
5356         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
5357         spurious overflow exception on underflow.
5359 2012-04-29  Marek Polacek  <polacek@redhat.com>
5361         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
5362         (__fortify_function): New macro.
5363         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
5364         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
5365         __extern_always_inline.
5366         * libio/bits/stdio2.h: Likewise.
5367         * libio/bits/stdio.h: Likewise.
5368         * string/string.h: Likewise.
5369         * string/bits/string3.h: Likewise.
5370         * include/stdio.h: Likewise.
5371         * stdlib/bits/stdlib.h: Likewise.
5372         * stdlib/stdlib.h: Likewise.
5373         * rt/bits/mqueue2.h: Likewise.
5374         * rt/mqueue.h: Likewise.
5375         * posix/bits/unistd.h: Likewise.
5376         * posix/unistd.h: Likewise.
5377         * io/bits/poll2.h: Likewise.
5378         * io/bits/fcntl2.h: Likewise.
5379         * io/fcntl.h: Likewise.
5380         * io/sys/poll.h: Likewise.
5381         * misc/bits/syslog.h: Likewise.
5382         * misc/bits/syslog-ldbl.h: Likewise.
5383         * misc/sys/syslog.h: Likewise.
5384         * socket/bits/socket2.h: Likewise.
5385         * socket/sys/socket.h: Likewise.
5386         * debug/tst-chk1.c: Likewise.
5387         * wcsmbs/bits/wchar2.h: Likewise.
5388         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5389         * wcsmbs/wchar.h: Likewise.
5391 2012-04-29  Andreas Jaeger  <aj@suse.de>
5393         * Makerules (tests): Remove enable-check-abi protection.
5394         (check-abi-warn): Remove.
5395         (check-abi-%): Remove check-abi-warn usage.
5397         * configure.in: Remove check-abi configure option.
5398         * configure: Regenerated.
5399         * config.make.in (enable-check-abi): Remove.
5401 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
5403         [BZ #14033]
5404         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
5405         double functions to double *_finite functions.
5407         [BZ #13941]
5408         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
5409         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
5410         LDBL_MIN_EXP.
5411         * stdio-common/Makefile (tests): Add tst-sprintf3.
5412         * stdio-common/tst-sprintf3.c: New file.
5414         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
5415         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
5417 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
5419         * conform/conformtest.pl: Remove duplicate typed-constant
5420         handling.
5422 2012-04-28  David S. Miller  <davem@davemloft.net>
5424         * Makerules (%.abilist): Add vpath on sysdep_dirs.
5425         (check-abi-%): Remove AWK script prerequisite and explicit
5426         abilist directory.
5427         (check-abi): Rewrite to just diff the symlist with the abilist.
5428         (config-tls, config-abi-config): Delete, no longer used.
5429         (update-abi-%): Remove AWK script and explicit abilist directory.
5430         (update-abi): Rewrite to simply compare and conditionally copy the
5431         symlist and the sysdep abilist file.  Remove update-abi-config
5432         checks.
5433         * abilist/ld.abilist: Remove.
5434         * abilist/libBrokenLocale.abilist: Remove.
5435         * abilist/libanl.abilist: Remove.
5436         * abilist/libcrypt.abilist: Remove.
5437         * abilist/libdl.abilist: Remove.
5438         * abilist/librt.abilist: Remove.
5439         * abilist/libthread_db.abilist: Remove.
5440         * abilist/libutil.abilist: Remove.
5441         * scripts/extract-abilist.awk: Remove.
5442         * scripts/merge-abilist.awk: Remove.
5443         * sysdeps/generic/libcidn.abilist: New file.
5444         * sysdeps/generic/libnss_compat.abilist: New file.
5445         * sysdeps/generic/libnss_db.abilist: New file.
5446         * sysdeps/generic/libnss_dns.abilist: New file.
5447         * sysdeps/generic/libnss_files.abilist: New file.
5448         * sysdeps/generic/libnss_hesiod.abilist: New file.
5449         * sysdeps/generic/libnss_nis.abilist: New file.
5450         * sysdeps/generic/libnss_nisplus.abilist: New file.
5451         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
5452         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
5453         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
5454         file.
5455         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
5456         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
5457         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
5458         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
5459         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
5460         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
5461         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
5462         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
5463         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
5464         file.
5465         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
5466         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
5467         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
5468         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
5469         file.
5470         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
5471         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
5472         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
5473         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
5474         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
5475         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
5476         file.
5477         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
5478         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
5479         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
5480         file.
5481         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
5482         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
5483         New file.
5484         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
5485         New file.
5486         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
5487         New file.
5488         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
5489         New file.
5490         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
5491         New file.
5492         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
5493         New file.
5494         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
5495         New file.
5496         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
5497         New file.
5498         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
5499         New file.
5500         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
5501         New file.
5502         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
5503         New file.
5504         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
5505         New file.
5506         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
5507         New file.
5508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
5509         file.
5510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
5511         New file.
5512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
5513         New file.
5514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
5515         file.
5516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
5517         New file.
5518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
5519         New file.
5520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
5521         file.
5522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
5523         New file.
5524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
5525         New file.
5526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
5527         New file.
5528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
5529         New file.
5530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
5531         New file.
5532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
5533         New file.
5534         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
5535         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
5536         file.
5537         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
5538         New file.
5539         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
5540         file.
5541         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
5542         file.
5543         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
5544         file.
5545         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
5546         file.
5547         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
5548         file.
5549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5550         New file.
5551         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
5552         file.
5553         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
5554         file.
5555         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
5556         New file.
5557         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
5558         file.
5559         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
5560         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
5561         file.
5562         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
5563         New file.
5564         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
5565         file.
5566         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
5567         file.
5568         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
5569         file.
5570         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
5571         file.
5572         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
5573         file.
5574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5575         New file.
5576         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
5577         file.
5578         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
5579         file.
5580         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
5581         New file.
5582         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
5583         file.
5584         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5585         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
5586         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
5587         file.
5588         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
5589         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
5590         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
5591         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
5592         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
5593         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
5594         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
5595         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
5596         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
5597         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
5598         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
5599         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
5600         file.
5601         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
5602         New file.
5603         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
5604         file.
5605         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
5606         file.
5607         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
5608         file.
5609         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
5610         file.
5611         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
5612         file.
5613         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
5614         New file.
5615         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
5616         New file.
5617         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
5618         file.
5619         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
5620         New file.
5621         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
5622         file.
5623         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
5624         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
5625         file.
5626         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
5627         New file.
5628         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
5629         file.
5630         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
5631         file.
5632         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
5633         file.
5634         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
5635         file.
5636         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
5637         file.
5638         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
5639         New file.
5640         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
5641         New file.
5642         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
5643         file.
5644         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
5645         New file.
5646         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
5647         file.
5649 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
5651         * conform/conformtest.pl: Fix typo in handling typed-constant from
5652         allow-header.
5654 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
5656         * README: Cut down references to pre-2.6 Linux kernels and
5657         Linuxthreads.  Update lists of configurations in libc and ports
5658         and sort alphabetically.  Say "or newer" with Linux kernel version
5659         requirements.
5661         * config.h.in [IS_IN_build]: Allow compiling without optimization.
5663 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5665         [BZ #887]
5666         * math/libm-test.inc (logb_test_downward): New test to expose
5667         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
5668         rounding mode.
5670 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
5672         [BZ #14027]
5673         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
5674         to be done.
5675         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
5676         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
5678 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
5680         * sysdeps/unix/i386/brk.S: Remove file.
5681         * sysdeps/unix/i386/dl-brk.S: Likewise.
5682         * sysdeps/unix/i386/pipe.S: Likewise.
5683         * sysdeps/unix/i386/sigreturn.S: Likewise.
5684         * sysdeps/unix/i386/syscall.S: Likewise.
5685         * sysdeps/unix/i386/vfork.S: Likewise.
5686         * sysdeps/unix/i386/wait.S: Likewise.
5688         * sysdeps/unix/common/tcsendbrk.c: Move to ...
5689         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
5691         * configure.in (arm*-none*): Do not allow without
5692         --enable-hacker-mode.
5693         (netbsd*): Remove case setting base_os.
5694         (386bsd*): Likewise.
5695         (freebsd*): Likewise.
5696         (bsdi*): Likewise.
5697         (osf*): Likewise.
5698         (sunos*): Likewise.
5699         (ultrix*): Likewise.
5700         (newsos*): Likewise.
5701         (dynix*): Likewise.
5702         (*bsd*): Likewise.
5703         (sysv*): Likewise.
5704         (isc*): Likewise.
5705         (esix*): Likewise.
5706         (sco*): Likewise.
5707         (minix*): Likewise.
5708         (irix4*): Likewise.
5709         (irix6*): Likewise.
5710         (solaris[2-9]*): Likewise.
5711         (none): Likewise.
5712         * configure: Regenerated.
5714 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5716         [BZ #11521]
5717         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
5718         overflow or cancellation in calculating denominator.
5719         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
5720         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
5721         down expression to avoid unexpected rounding in newer GCCs.
5722         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
5724 2012-04-26  David S. Miller  <davem@davemloft.net>
5726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
5727         long-double compat symbols.
5728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
5730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
5731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
5732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
5733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
5734         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
5735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
5736         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
5737         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
5738         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
5739         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
5740         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
5742 2012-04-25  David S. Miller  <davem@davemloft.net>
5744         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
5745         HWCAP_* values only after the memory barriers have been defined.
5746         (atomic_full_barrier): Define.
5747         (atomic_read_barrier): Define.
5748         (atomic_write_barrier): Define.
5750 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5752         * shlib-versions: Add libgcc_s version information.
5753         * sysdeps/generic/libgcc_s.h: Remove.
5754         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
5755         libgcc_s.h.
5756         * sysdeps/gnu/unwind-resume.c: Likewise.
5757         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
5759 2012-04-25  David S. Miller  <davem@davemloft.net>
5761         * sysdeps/unix/sparc/brk.S: Delete.
5762         * sysdeps/unix/sparc/dl-brk.S: Delete.
5763         * sysdeps/unix/sparc/pipe.S: Delete.
5764         * sysdeps/unix/sparc/sysdep.S: Delete.
5765         * sysdeps/unix/sparc/sysdep.h: Delete.
5766         * sysdeps/unix/sparc/vfork.S: Delete.
5767         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
5768         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
5769         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
5770         ret_ERRVAL, r0, r1, MOVE): Define.
5771         (JUMPTARGET): Remove.
5772         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
5773         sysdeps/unix/sparc/sysdep.h
5774         (ENTRY, END): Remove.
5775         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5777 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
5779         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
5780         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
5781         -DIS_IN_build.
5783         * timezone/README: Update upstream location and email address for
5784         tzcode and tzdata.
5785         * timezone/zdump.c: Update from tzcode 2012b.
5786         * timezone/zic.c: Likewise.
5788         * configure.in (libc_cv_as_needed): Remove test.
5789         * configure: Regenerated.
5790         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
5791         conditional definition.
5792         [$(have-as-needed) != yes] (no-as-needed): Likewise.
5793         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
5794         * config.make.in (have-as-needed): Remove variable.
5796 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
5797             Paul Pluzhnikov  <ppluzhnikov@google.com>
5799         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
5800         strings correctly.
5802 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
5804         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
5805         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
5806         * sysdeps/sh/strlen.S: Likewise.
5808 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5810         * sysdeps/unix/fork.S: Remove file.
5811         * sysdeps/unix/i386/fork.S: Likewise.
5812         * sysdeps/unix/sparc/fork.S: Likewise.
5814         * sysdeps/unix/system.c: Remove file.
5815         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
5817         * sysdeps/unix/getegid.S: Remove file.
5818         * sysdeps/unix/geteuid.S: Likewise.
5820 2012-04-24  Roland McGrath  <roland@hack.frob.com>
5822         * scripts/check-localplt.awk: New file.
5823         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
5824         of diff.
5825         * scripts/data/localplt-generic.data: Add a comment.
5827         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
5828         NODE when __dir_mkfile failed.
5829         * sysdeps/mach/hurd/symlinkat.c: Likewise.
5830         Reported by Ludovic Courtès <ludo@gnu.org>.
5832 2012-04-24  Andreas Jaeger  <aj@suse.de>
5834         * Makerules (common-clean): Also remove gen-as-const-headers
5835         files.
5837 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5839         * Makerules (native-compile): Do not change working directory for
5840         build.  Use $(OUTPUT_OPTION) in command.
5841         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
5843 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5845         [BZ #13886]
5846         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
5847         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
5848         * math/libm-test.inc (floor_test): Add more tests.
5849         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
5851 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5853         * sysdeps/unix/getdents.c: Remove file.
5854         * sysdeps/unix/sysv/getdents.c: Likewise.
5855         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
5857         * sysdeps/unix/syscalls.list (madvise): Add syscall from
5858         sysdeps/unix/mman/syscalls.list.
5859         (mmap): Likewise.
5860         (mprotect): Likewise.
5861         (msync): Likewise.
5862         (munmap): Likewise.
5863         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
5864         * sysdeps/unix/mman/syscalls.list: Remove.
5865         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
5867         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
5868         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
5869         * configure: Regenerated.
5870         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
5871         $(libgcc_s_suffix).
5872         * config.make.in (libgcc_s_suffix): Remove variable.
5874 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
5876         * sysdeps/unix/sysv/gethostname.c: Move to ...
5877         * sysdeps/posix/gethostname.c: ... here.
5879         * sysdeps/unix/execve.S: Remove file.
5881         * sysdeps/unix/_exit.S: Remove file.
5883 2012-04-23  Andreas Jaeger  <aj@suse.de>
5885         [BZ #13739]
5886         * manual/Makefile: Remove make dist support, there's no
5887         need for a stand-alone documentation tar ball.
5888         (TEXI2DVI): Define always, it's not in Makeconfig.
5889         (dist): Removed.
5890         (tar-it): Removed.
5891         (edition): Removed.
5892         (glibc-doc-$(edition).tar): Removed
5893         (%.Z): Removed.
5894         (%.gz): Removed.
5895         (%.uu): Removed.
5896         (ETAGS): Remove, it's in Makeconfig.
5897         (move-if-change): Remove, it's in Makeconfig.
5899 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5901         [BZ #13970]
5902         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
5903         (strtod, strtof, strtold, strtol, strtoul, strtoq)
5904         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
5905         (strtod_l, strtof_l, strtold_l): Remove __wur.
5906         It is not necessarily an error to ignore strtol's return value.
5907         One can reliably look at the stored endptr to decide whether
5908         the number had valid syntax.
5910 2012-04-21  Andreas Jaeger  <aj@suse.de>
5912         [BZ #13739]
5913         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
5915 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
5917         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
5918         * sysdeps/unix/sysv/Versions: Remove file.
5920 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
5922         [BZ #13927]
5923         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5925 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
5927         [BZ #7064]
5928         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
5929         version from __vm86.
5931 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
5933         * sysdeps/unix/common/lxstat.c: Remove file.
5934         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
5936         * sysdeps/unix/sysv/Makefile: Remove file.
5938         * sysdeps/unix/sysv/direct.h: Remove file.
5940         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
5941         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
5942         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
5943         * sysdeps/unix/sysv/bits/signum.h: Likewise.
5944         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5945         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
5946         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
5948         * sysdeps/unix/sysv/setrlimit.c: Remove file.
5950         * sysdeps/unix/xmknod.c: Remove file.
5951         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
5953         * sysdeps/unix/sysv/settimeofday.c: Remove file.
5955         * sysdeps/unix/sysv/i386/time.S: Remove file.
5957         * sysdeps/unix/fxstat.c: Remove file.
5958         * sysdeps/unix/xstat.c: Likewise.
5959         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
5961         * sysdeps/unix/sysv/sigaction.c: Remove file.
5963         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
5964         (sysdep_headers): Remove variable.
5965         [termio.h not in sysdep_headers] (generated): Likewise.
5966         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
5967         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
5968         * sysdeps/unix/sysv/tcdrain.c: Likewise.
5969         * sysdeps/unix/sysv/tcflow.c: Likewise.
5970         * sysdeps/unix/sysv/tcflush.c: Likewise.
5971         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
5972         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
5973         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
5974         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
5975         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
5977         * sysdeps/unix/siglist.c: Remove file.
5979         * sysdeps/unix/getppid.S: Remove file.
5981         * sysdeps/unix/mkdir.c: Remove file.
5982         * sysdeps/unix/rmdir.c: Likewise.
5984 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
5986         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
5987         ERR_MAX value.
5988         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
5989         errlist-compat value.
5991 2012-04-18  David S. Miller  <davem@davemloft.net>
5993         * sysdeps/generic/memcopy.h (reg_char): Delete.
5994         * debug/strcat_chk.c: Use char, not reg_char.
5995         * debug/strcpy_chk.c: Likewise.
5996         * debug/strncat_chk.c: Likewise.
5997         * debug/strncpy_chk.c: Likewise.
5998         * string/memchr.c: Likewise.
5999         * string/memrchr.c: Likewise.
6000         * string/rawmemchr.c: Likewise.
6001         * string/strcat.c: Likewise.
6002         * string/strchr.c: Likewise.
6003         * string/strchrnul.c: Likewise.
6004         * string/strcmp.c: Likewise.
6005         * string/strcpy.c: Likewise.
6006         * string/strncat.c: Likewise.
6007         * string/strncmp.c: Likewise.
6008         * string/strncpy.c: Likewise.
6010 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6012         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
6013         __builtin_memcopy is called when src and dest ranges are known to not
6014         overlap.
6016 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6018         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
6019         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
6020         fwd_align_merge macro call.
6021         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
6022         bwd_align_merge macro call.
6023         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6025 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6027         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
6028         bwd_align_merge macros.
6029         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
6030         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
6031         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6033 2012-04-18  David S. Miller  <davem@davemloft.net>
6035         * sysdeps/sparc/sparc64/memcopy.h: Delete.
6037 2012-04-18  Andreas Jaeger  <aj@suse.de>
6039         [BZ# 6794]
6040         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
6041         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
6042         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6044         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
6045         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
6046         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6048         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
6049         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
6050         Adjust for changed ldbl-128 files.
6052         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
6053         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
6054         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6056 2012-04-17  David S. Miller  <davem@davemloft.net>
6058         * sysdeps/sparc/sparc32/memcopy.h: Delete.
6060 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
6062         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
6063         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
6064         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
6065         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
6066         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
6067         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
6069 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6071         [BZ #6794]
6072         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
6073         * math/libm-test.inc: Add ilogb errno and exception tests.
6074         * math/w_ilogb.c: New file: ilogb wrapper.
6075         * math/w_ilogbf.c: New file: ilogbf wrapper.
6076         * math/w_ilogbl.c: New file: ilogbl wrapper.
6077         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
6078         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
6079         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
6080         exception being thrown with 0.0 as argument.
6081         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
6082         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
6083         exception being thrown with 0.0 as argument.
6084         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
6085         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6086         exception being thrown with 0.0 as argument.
6087         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
6088         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6089         exception being thrown with 0.0 as argument.
6090         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
6091         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
6092         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
6093         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
6094         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
6095         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
6096         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
6097         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
6098         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
6100 2012-04-17  Petr Baudis  <pasky@ucw.cz>
6102         * include/sys/uio.h: Change __vector to __iovec to avoid clash
6103         with altivec.
6105 2012-04-16  Marek Polacek  <polacek@redhat.com>
6107         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
6109 2012-04-16  Marek Polacek  <polacek@redhat.com>
6111         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
6112         operands of fdivp instruction.
6114 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
6116         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
6117         * elf/tst-auditmod3b.c: Likewise.
6118         * elf/tst-auditmod4b.c: Likewise.
6119         * elf/tst-auditmod5b.c: Likewise.
6120         * elf/tst-auditmod6b.c: Likewise.
6121         * elf/tst-auditmod6c.c: Likewise.
6122         * elf/tst-auditmod7b.c: Likewise.
6123         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
6124         * sysdeps/x86_64/preconfigure.in: Likewise.
6125         * sysdeps/x86_64/preconfigure: Regenerated.
6127 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
6129         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
6130         __ILP32__.
6132 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
6134         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6135         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
6137 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
6139         [BZ #13973]
6140         * locale/iso-639.def: Fix gl language name. Spotted by
6141         Yaron Shahrabani.
6143 2012-04-12  Roland McGrath  <roland@hack.frob.com>
6145         [BZ #2074]
6146         * libio/libio.h (__io_write_fn): Update comment.
6148 2012-04-12  Petr Baudis  <pasky@ucw.cz>
6150         [BZ #2074]
6151         * stdio.texi (Hook Functions): The user provided writer function
6152         is not allowed to return -1.
6154 2012-04-11  David S. Miller  <davem@davemloft.net>
6156         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6158 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
6160         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
6161         Add a leading slash to rtkaio.
6163 2012-04-11  Jim Meyering  <meyering@redhat.com>
6165         [BZ #11959]
6166         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
6167         It is not necessarily an error to ignore fwrite's return
6168         value.  One can reliably use ferror to test for errors after
6169         the fact.
6171 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6173         * bits/types.h (__snseconds_t): New type.
6174         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
6176         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
6177         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6178         (__SNSECONDS_T_TYPE): Likewise.
6179         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6180         (__SNSECONDS_T_TYPE): Likewise.
6181         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6182         (__SNSECONDS_T_TYPE): Likewise.
6184 2012-04-10  Andreas Jaeger  <aj@suse.de>
6186         [BZ #2636]
6187         * manual/time.texi (Processor Time): Return type of times is
6188         elapsed real time since an arbitrary point in the past.
6189         (CPU Time): Move CLK_TCK from here...
6190         (Processor Time): ...to here.  Correct description.
6191         * manual/conf.texi (Constants for Sysconf): Correct description of
6192         _SC_CLK_TCK.
6194 2012-04-10  David S. Miller  <davem@davemloft.net>
6196         [BZ #13967]
6197         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
6198         where the is a gap between DT_REL(A) and DT_JMPREL.
6200 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6202         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
6203         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
6204         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
6206 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6208         * elf/dl-support.c (_dl_inhibit_cache): New variable.
6209         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
6210         (dl_main): Handle --inhibit-cache.
6211         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
6212         _dl_inhibit_cache.
6213         * elf/dl-load.c (_dl_map_object): Use it.
6214         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
6216 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
6218         [BZ #13872]
6219         * sysdeps/i386/fpu/e_powl.S (p78): New object.
6220         (__ieee754_powl): Saturate large exponents rather than testing for
6221         overflow of y*log2(x).
6222         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6223         * math/libm-test.inc (pow_test): Do not permit spurious overflow
6224         exceptions.
6226         [BZ #11521]
6227         * math/s_ctan.c: Include <float.h>.
6228         (__ctan): Avoid internal overflow or cancellation in calculating
6229         denominator.
6230         * math/s_ctanf.c: Likewise.
6231         * math/s_ctanl.c: Likewise.
6232         * math/s_ctanh.c: Likewise.
6233         * math/s_ctanhf.c: Likewise.
6234         * math/s_ctanhl.c: Likewise.
6235         * math/libm-test.inc (ctan_test): Add more tests.
6236         (ctanh_test): Likewise.
6237         * sysdeps/i386/fpu/libm-test-ulps: Update.
6238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6240 2012-04-09  Andreas Jaeger  <aj@suse.de>
6242         [BZ #6894]
6243         * manual/filesys.texi (Directory Entries): Mention that d_namlen
6244         is an optional BSD extension.
6246         [BZ #10254]
6247         * manual/stdio.texi (Opening Streams): Document additional fopen
6248         parameters.
6250 2012-04-09  Roland McGrath  <roland@hack.frob.com>
6252         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
6253         %eax without telling the compiler.
6255 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
6257         [BZ # 13963]
6258         * manual/install.texi: Use sourceware.org.
6260 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
6262         [BZ #13873]
6263         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
6264         (__ieee754_pow): Generate overflow and underflow using huge*huge
6265         and tiny*tiny rather than just returning constant infinity or zero
6266         for large exponents.
6267         * math/libm-test.inc (pow_test): Require overflow exceptions for
6268         applicable cases of large exponents.
6270         [BZ #706]
6271         * sysdeps/i386/fpu/e_pow.S (p10): New object.
6272         (__ieee754_pow): Use iterative multiplication algorithm only for
6273         integer exponents with absolute value below 1024.  Check for odd
6274         integer exponents when using algorithm for real exponents.
6275         * math/libm-test.inc (pow_test): Add more tests.
6276         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6278 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
6280         [BZ #13705]
6281         * math/libm-test.inc (exp_test): Do not allow overflow exception
6282         on underflow test.
6284 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
6286         [BZ #13705]
6287         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
6288         instead of __kernel_standard_f.
6290 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
6292         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
6293         * sysdeps/x86_64/memset_chk.S: Likewise.
6295 2012-04-08  Andreas Jaeger  <aj@suse.de>
6297         [BZ #10153]
6298         * manual/startup.texi (Environment Access): Describe return value
6299         for putenv and setenv.
6301         [BZ #6895]
6302         * manual/filesys.texi (Directory Entries): Add description for
6303         DT_LNK.
6305         [BZ #6890]
6306         * manual/filesys.texi (Directory Entries): Clarify that it's file
6307         system not operating system in the description of DT_UNKNOWN.
6309         [BZ #6578]
6310         * manual/syslog.texi (closelog): Fix reference, it's openlog.
6312 2012-04-08  Stephen Compall  <s11@member.fsf.org>
6314         [BZ #6649]
6315         * manual/llio.texi (Opening and Closing Files): Add cross
6316         reference to explain mode argument.
6318 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
6320         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
6321         * sysdeps/x86_64/memset_chk.S: Likewise.
6323 2012-04-07  David S. Miller  <davem@davemloft.net>
6325         * elf/elf.h (R_SPARC_WDISP10): Define.
6326         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
6327         R_SPARC_SIZE32.
6328         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
6329         R_SPARC_SIZE64 and R_SPARC_H34.
6331 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
6333         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
6334         conditions and remove no longer applicable assertion.
6336 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
6338         * bits/byteswap.h: Include <features.h>.
6339         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
6340         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
6342 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
6344         * bits/byteswap.h (__bswap_16): Removed.
6345         Include <bits/byteswap-16.h> to get __bswap_16.
6346         * sysdeps/i386/bits/byteswap.h: Likewise.
6347         * sysdeps/s390/bits/byteswap.h: Likewise.
6348         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6349         * bits/byteswap-16.h: New file.
6350         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6351         * sysdeps/s390/bits/byteswap-16.h: Likewise.
6352         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
6353         * string/Makefile (headers): Add bits/byteswap-16.h.
6355 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
6357         [BZ #13895]
6358         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
6359         extra indirection.
6360         * nss/Makefile (tests-static, tests): Add tst-nss-static.
6361         * nss/tst-nss-static.c: New.
6363 2012-04-06  Robert Millan  <rmh@gnu.org>
6365         [BZ #6486]
6366         * manual/llio.texi (File Position Primitive): lseek
6367         refers to WHENCE when it really means OFFSET.
6369 2012-04-06  Andreas Jaeger  <aj@suse.de>
6371         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
6372         strncmp declarations.
6374         * abilist/libc.abilist: Add __poll and __ppoll.
6376 2012-04-05  David S. Miller  <davem@davemloft.net>
6378         * scripts/check-local-headers.sh: Accept a host triplet in the
6379         path matched by the exclude regexp.
6381         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
6382         definition.
6383         * sysdeps/powerpc/powerpc32/dl-machine.h
6384         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
6385         * sysdeps/s390/s390-32/dl-machine.h
6386         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6387         * sysdeps/sparc/sparc32/dl-machine.h
6388         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6389         * sysdeps/sparc/sparc64/dl-machine.h
6390         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6392         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
6393         lazy binding.
6394         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
6395         undefined symbol errors.
6397         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
6398         DT_NEEDED entries.
6400 2012-04-05  Michael Matz  <matz@suse.de>
6402         [BZ #13592]
6403         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
6405 2012-04-05  Andreas Jaeger  <aj@suse.de>
6407         [BZ #13908]
6408         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
6409         comment.
6411 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6413         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
6414         which ROUND is no valid rounding mode.
6416 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6418         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
6419         read again.
6420         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
6422 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6424         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
6425         an exception using FPU order intentionally.
6427 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6429         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
6430         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
6431         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
6432         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
6434 2012-04-05  Simon Josefsson  <simon@josefsson.org>
6436         [BZ #12340]
6437         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
6438         EINVAL when BUFLEN is too smal.
6440 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
6442         [BZ #13553]
6443         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
6444         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6446 2012-04-03  Andreas Jaeger  <aj@suse.de>
6448         [BZ #13938]
6449         * manual/setjmp.texi (System V contexts): Fix sentence.
6451         [BZ #13926]
6452         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
6453         New macro for this case.
6454         [!__GNUC__] (__bswap_64): New inline function for this case.
6455         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6456         * bits/byteswap.h: Likewise.
6457         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
6458         ull, guard with __GLIBC_HAVE_LONG_LONG.
6460         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
6461         __GLIBC_HAVE_LONG_LONG.
6463         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
6464         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
6466 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
6468         [BZ #13691]
6469         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
6470         inptr and inend, rather than using last_ch.
6472 2012-04-02  David S. Miller  <davem@davemloft.net>
6474         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
6475         * stdio-common/printf-parse.h (read_int): Change return type to
6476         'int', return -1 on INT_MAX overflow.
6477         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
6478         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
6479         overflows INT_MAX.  Check for overflow of in-format-string precision
6480         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
6481         SIZE_MAX not INT_MAX for integer overflow test.
6482         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
6483         skip the construct in the format string but do not record anything.
6484         * stdio-common/bug22.c: Adjust to test both width/prevision
6485         INT_MAX overflow as well as total length INT_MAX overflow.  Check
6486         explicitly for proper errno values.
6488 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
6490         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
6491         CHAR_MAX.
6492         * string/test-strcmp.c [! WIDE]: Likewise.
6493         * time/tst-mktime2.c: Likewise for INT_MAX.
6494         * string/test-string.h: #include <sys/param.h> for MIN.
6496         * csu/init-first.c (__libc_init_first): Call __ctype_init.
6497         * sysdeps/i386/init-first.c (init): Likewise.
6498         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
6499         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
6500         * sysdeps/sh/init-first.c (init): Likewise.
6502 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
6504         * po/ru.po: Update from translation team.
6505         * po/vi.po: Likewise.
6507 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
6509         * resolv/nss_dns/dns-host.c: Merge copyright years.
6511 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6513         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6514         Optimize memcpy with prefetch if
6515         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
6516         src, dst pointers have unequal 16 byte alignments.
6518 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6520         [BZ #13928]
6521         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
6522         from a CNAME entry and return the minimum ttl for the query.
6523         (gaih_getanswer_slice): Likewise.
6525 2012-03-30  Jeff Law  <law@redhat.com>
6527         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
6528         due to long keys.
6529         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
6530         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
6532         * resolv/nss_dns/dns-host.c: Update copyright year.
6534 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
6536         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
6537         requests to save a system call.  Fix check that all bytes are sent.
6539         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
6540         comments for sendmmsg.
6542 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6544         [BZ #13691]
6545         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
6546         with only 1 character between 0x0041 and 0x01b0.
6547         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
6548         * wcsmbs/tst-mbsnrtowcs.c: New file.
6550 2012-03-29  David S. Miller  <davem@davemloft.net>
6552         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
6553         small copies by hand.
6555 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6557         [BZ #13761]
6558         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
6559         _nss_compat_initgroups_dyn): Fall back to malloc/free
6560         for large group memberships.
6562 2012-03-28  David S. Miller  <davem@davemloft.net>
6564         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
6565         that branches into memcpy.
6566         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6567         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
6568         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6569         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
6570         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
6571         bits.
6572         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
6573         implementation too.
6574         * sysdeps/sparc/mempcpy.S: New file.
6576         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
6577         the IFUNC routine in the libc case.
6578         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6580         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
6581         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
6582         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
6583         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
6584         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
6585         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
6586         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
6587         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
6589         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
6590         loop to 256 bytes instead of 64 bytes and fix test signedness.
6592         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
6593         * sysdeps/sparc/sparc32/Makefile: rather than here...
6594         * sysdeps/sparc/sparc64/Makefile: and here.
6596 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
6598         * malloc/mallocbug.c: Avoid warnings about unused variables.
6600 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6602         [BZ #13760]
6603         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
6604         in the right place. Discard and retry query if response is
6605         larger than input buffer size.
6607 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
6609         [BZ #369]
6610         [BZ #2678]
6611         [BZ #3866]
6612         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
6613         x for large integer exponent.
6614         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
6615         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
6616         sign of result as needed afterwards.
6617         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6618         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
6619         result for underflowing pow the same as for overflow.
6620         (__kernel_standard_l): Handle powl overflow and underflow here
6621         rather than calling __kernel_standard.
6622         * math/libm-test.inc (pow_test): Add more tests.
6624         [BZ #3868]
6625         [BZ #13879]
6626         [BZ #13910]
6627         [BZ #13911]
6628         [BZ #13912]
6629         [BZ #13913]
6630         [BZ #13915]
6631         [BZ #13916]
6632         [BZ #13917]
6633         [BZ #13918]
6634         [BZ #13919]
6635         [BZ #13920]
6636         [BZ #13921]
6637         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
6638         * sysdeps/ieee754/k_standard.c: Include <float.h>.
6639         (__kernel_standard_l): New function.
6640         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
6641         __kernel_standard.
6642         * math/w_acosl.c (__acosl): Likewise.
6643         * math/w_asinl.c (__asinl): Likewise.
6644         * math/w_atan2l.c (__atan2l): Likewise.
6645         * math/w_atanhl.c (__atanhl): Likewise.
6646         * math/w_coshl.c (__coshl): Likewise.
6647         * math/w_exp10l.c (__exp10l): Likewise.
6648         * math/w_exp2l.c (__exp2l): Likewise.
6649         * math/w_fmodl.c (__fmodl): Likewise.
6650         * math/w_hypotl.c (__hypotl): Likewise.
6651         * math/w_j0l.c (__j0l, __y0l): Likewise.
6652         * math/w_j1l.c (__j1l, __y1l): Likewise.
6653         * math/w_jnl.c (__jnl, __ynl): Likewise.
6654         * math/w_lgammal.c (__lgammal): Likewise.
6655         * math/w_log10l.c (__log10l): Likewise.
6656         * math/w_log2l.c (__log2l): Likewise.
6657         * math/w_logl.c (__logl): Likewise.
6658         * math/w_powl.c (__powl): Likewise.
6659         * math/w_remainderl.c (__remainderl): Likewise.
6660         * math/w_scalbl.c (sysv_scalbl): Likewise.
6661         * math/w_sinhl.c (__sinhl): Likewise.
6662         * math/w_sqrtl.c (__sqrtl): Likewise.
6663         * math/w_tgammal.c (__tgammal): Likewise.
6664         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
6665         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
6666         * math/libm-test.inc (acos_test): Add more tests.
6667         (acosh_test): Likewise.
6668         (asin_test): Likewise.
6669         (atanh_test): Likewise.
6670         (exp_test): Likewise.
6671         (exp10_test): Likewise.
6672         (exp2_test): Likewise.
6673         (expm1_test): Likewise.
6674         (lgamma_test): Likewise.
6675         (log_test): Likewise.
6676         (log10_test): Likewise.
6677         (log1p_test): Likewise.
6678         (log2_test): Likewise.
6679         (pow_test): Do not allow some spurious overflow exceptions.
6680         (sqrt_test): Add more tests.
6681         (tgamma_test): Likewise.
6682         (y0_test): Likewise.
6683         (y1_test): Likewise.
6684         (yn_test): Likewise.
6686 2012-03-27  Anton Blanchard  <anton@samba.org>
6688         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
6689         MAP_HUGETLB.
6690         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6691         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6692         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
6694 2012-03-27  David S. Miller  <davem@davemloft.net>
6696         * conform/Makefile: Run run-conformtest.sh using $(BASH).
6698         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
6699         have-as-vis3 check.
6701 2012-03-27  Andreas Jaeger  <aj@suse.de>
6703         * sysdeps/x86_64/elf/configure.in: Moved to ...
6704         * sysdeps/x86_64/configure.in: ... here.
6705         * sysdeps/x86_64/elf/start.S: Moved to ...
6706         * sysdeps/x86_64/start.S: ... here.
6707         * sysdeps/x86_64/elf/configure: Delete.
6709         * sysdeps/x86_64/configure.in: Merge contents from
6710         sysdeps/i386/configure.in (without i686 check).
6712         * sysdeps/i386/elf/Versions: Merge into ...
6713         * sysdeps/i386/Versions: ... this.
6714         * sysdeps/i386/elf/Versions: Delete file.
6715         * sysdeps/i386/elf/start.S: Moved to ...
6716         * sysdeps/i386/start.S: ...here.
6717         * sysdeps/i386/elf/configure.in: Merge into...
6718         * sysdeps/i386/configure.in: ...here.
6719         * sysdeps/i386/elf/configure.in: Delete file.
6720         * sysdeps/i386/elf/configure: Delete file.
6722         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
6723         * debug/backtracesyms.c: ... here.
6724         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
6725         * debug/backtracesymsfd.c: ... here.
6726         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
6727         * sysdeps/generic/ifunc-sel.h: ... here.
6729         * sysdeps/unix/i386/start.c: Delete file.
6730         * sysdeps/unix/sparc/start.c: Delete file.
6731         * sysdeps/unix/start.c: Delete file.
6733         * sysdeps/sh/elf/configure.in: Moved to ...
6734         * sysdeps/sh/configure.in: ... here.
6735         * sysdeps/sh/elf/start.S: Moved to ...
6736         * sysdeps/sh/start.S: ... here.
6737         * sysdeps/sh/elf/configure: Delete file.
6739         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
6740         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
6741         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
6742         * sysdeps/powerpc/powerpc64/entry.h: ... here.
6743         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
6744         * sysdeps/powerpc/powerpc64/start.S: here.
6745         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
6746         * sysdeps/powerpc/powerpc64/Makefile: ... this.
6747         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
6748         * sysdeps/powerpc/powerpc64/configure.in: ... this.
6749         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
6751         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
6752         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
6753         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
6754         * sysdeps/powerpc/powerpc32/start.S: ... here.
6755         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
6756         * sysdeps/powerpc/powerpc32/configure.in: ... this.
6757         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
6759         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
6760         * sysdeps/powerpc/ifunc-sel.h: ... here.
6761         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
6762         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
6764         * sysdeps/sparc/elf/configure.in: Moved to ...
6765         * sysdeps/sparc/configure.in: ... here.
6766         * sysdeps/sparc/elf/configure: Delete file.
6767         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
6768         * sysdeps/sparc/sparc32/start.S: ... here.
6769         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
6770         * sysdeps/sparc/sparc64/start.S: ... here.
6771         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
6772         * sysdeps/sparc/sparc32/Makefile: ... this.
6773         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
6774         * sysdeps/sparc/sparc64/Makefile: ... this.
6776         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
6777         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
6778         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
6779         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
6780         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
6781         * sysdeps/s390/s390-32/setjmp.S: ... here.
6782         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
6783         * sysdeps/s390/s390-32/configure.in: ... here.
6784         * sysdeps/s390/s390-32/elf/configure: Delete file.
6785         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
6786         * sysdeps/s390/s390-32/start.S: ... here.
6788         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
6789         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
6790         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
6791         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
6792         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
6793         * sysdeps/s390/s390-64/setjmp.S: ... here.
6794         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
6795         * sysdeps/s390/s390-64/configure.in: ... here
6796         * sysdeps/s390/s390-64/elf/configure: Delete file.
6797         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
6798         * sysdeps/s390/s390-64/start.S: ... here.
6799         * sysdeps/s390/s390-64/elf/configure: Delete.
6801         * configure.in: Remove support for elf directories in sysdeps.
6803         * configure: Regenerated.
6804         * sysdeps/i386/configure: Regenerated.
6805         * sysdeps/powerpc/powerpc32/configure: Regenerated.
6806         * sysdeps/powerpc/powerpc64/configure: Regenerated.
6807         * sysdeps/s390/s390-32/configure: Regenerated.
6808         * sysdeps/s390/s390-64/configure: Regenerated.
6809         * sysdeps/sh/configure: Regenerated.
6810         * sysdeps/sparc/configure: Regenerated.
6811         * sysdeps/x86_64/configure: Regenerated.
6813 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
6815         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6817         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
6818         denormal result into account.
6820 2012-03-25  Roland McGrath  <roland@hack.frob.com>
6822         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
6823         Reported by Allan McRae <allan@archlinux.org>.
6825 2012-03-23  Jeff Law  <law@redhat.com>
6827         * nss/getnssent.c (__nss_getent): Fix typo.
6829 2012-03-23  David S. Miller  <davem@davemloft.net>
6831         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6833 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
6835         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
6836         to pad to uint64_t for each field.
6837         (dl_tls_index): Replace unsigned long with uint64_t.
6839 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
6840         Paul Pluzhnikov  <ppluzhnikov@google.com>
6842         [BZ #6528]
6843         * grp/Makefile (otherlibs): Don't set it.
6844         * inet/Makefile (otherlibs): Likewise.
6845         * login/Makefile (otherlibs): Likewise.
6846         * nscd/Makefile (otherlibs): Likewise.
6847         * posix/Makefile (otherlibs): Likewise.
6848         * pwd/Makefile (otherlibs): Likewise.
6849         * rt/Makefile (otherlibs): Likewise.
6850         * sunrpc/Makefile (otherlibs): Likewise.
6851         * nss/Makefile (otherlibs): Likewise.
6852         Add libnss_files to routines and static-only-routines.
6853         ($(objpfx)getent): Remove rule.
6854         * resolv/Makefile: Add libnss_dns and libresolv to routines and
6855         static-only-routines.
6857 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
6859         [BZ #13892]
6860         * math/s_cexp.c: Include <float.h>.
6861         (__cexp): Handle exp result overflowing not necessarily
6862         overflowing both real and imaginary parts of result.
6863         * math/s_cexpf.c: Likewise.
6864         * math/s_cexpl.c: Likewise.
6865         * math/libm-test.inc (cexp_test): Add more tests.
6866         * sysdeps/i386/fpu/libm-test-ulps: Update.
6867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6869 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6871         * include/link.h (ELFW): New macro.
6872         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
6873         Replace ELF64_R_TYPE with ELFW(R_TYPE).
6875 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6877         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
6878         with uint64_t.
6880 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6882         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
6883         declaration.
6884         (struct La_x32_retval): Likewise.
6886 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6888         * sysdeps/x86_64/preconfigure.in: New file.
6889         * sysdeps/x86_64/preconfigure: New generated file.
6891 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
6893         [BZ #13824]
6894         * math/e_exp2l.c: Include <float.h>.
6895         (__ieee754_exp2l): Handle overflow and underflow cases
6896         separately.  Only pass fractional part of argument to
6897         __ieee754_expl.
6898         * math/libm-test.inc (exp2_test): Add more tests.
6900         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
6901         negating x to take absolute value.
6902         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
6903         Likewise.
6904         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
6905         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
6906         Likewise.
6907         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
6908         computing low part if x was negated.
6909         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
6911 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6913         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
6914         la_x32_gnu_pltexit.
6915         (pltexit): Cast int_retval to ptrdiff_t.
6916         * elf/tst-auditmod3b.c: Likewise.
6917         * elf/tst-auditmod4b.c: Likewise.
6918         * elf/tst-auditmod5b.c: Likewise.
6919         * elf/tst-auditmod6b.c: Likewise.
6920         * elf/tst-auditmod6c.c: Likewise.
6921         * elf/tst-auditmod7b.c: Likewise.
6923         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
6924         and x32_gnu_pltexit.
6926         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
6927         __ELF_NATIVE_CLASS.
6928         (La_x32_regs): New macro.
6929         (La_x32_retval): Likewise.
6930         (la_x32_gnu_pltenter): New function prototype.
6931         (la_x32_gnu_pltexit): Likewise.
6933 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
6935         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
6936         exponent.
6938         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6940         * configure.in (libc_cv_cc_nofma): Check for option to disable
6941         generation of FMA instructions.
6942         * configure: Regenerate.
6943         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
6944         * sysdeps/ieee754/dbl-64/Makefile: New file.
6945         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6946         Remove brandred-fma4.
6947         (CFLAGS-brandred-fma4.c): Remove.
6948         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
6949         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
6950         define.
6951         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
6952         define.
6954 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6956         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6957         LLONG_MAX != LONG_MAX.
6958         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6959         (_fitoa_word): Likewise.
6960         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
6961         LLONG_MAX != LONG_MAX.
6962         * stdio-common/_itowa.h: Include <_itoa.h>.
6963         (_itowa_word): Use _ITOA_WORD_TYPE on value.
6964         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
6965         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
6966         only if not defined.
6967         (_ITOA_WORD_TYPE): Likewise.
6968         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6969         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
6971 2012-03-21  David S. Miller  <davem@davemloft.net>
6973         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6975 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6977         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
6978         of x86_64 when setting libc_cv_slibdir, libdir and
6979         libc_cv_localedir.
6980         * sysdeps/unix/sysv/linux/configure: Regenerated.
6982 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
6984         * manual/lang.texi (Old Varargs): Remove section.
6985         (How Variadic): Update menu.
6986         (va_start): Do not mention varargs.h.
6988 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6989             Joseph Myers  <joseph@codesourcery.com>
6991         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
6992         link test.
6993         * configure: Regenerated.
6995 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6997         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
6998         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
6999         conformtest.pl
7001 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7003         * NOTES: Remove.
7004         * Makefile (files-for-dist): Remove NOTES.
7005         (NOTES): Remove rule.
7006         * README: Don't refer to NOTES.
7007         * manual/creature.texi: Don't include macros.texi.
7008         * manual/intro.texi (creature.texi): Remove comment referring to
7009         NOTES.
7011         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
7012         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
7013         * configure: Regenerated.
7014         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
7015         LIBC_TRY_CC_OPTION.
7016         (libc_cv_as_i686): Likewise.
7017         (libc_cv_cc_avx): Likewise.
7018         (libc_cv_cc_sse2avx): Likewise.
7019         (libc_cv_cc_fma4): Likewise.
7020         (libc_cv_cc_novzeroupper): Likewise.
7021         * sysdeps/i386/configure: Regenerated.
7023         [BZ #13883]
7024         * sysdeps/i386/fpu/s_cexp.S: Remove.
7025         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7026         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7027         * math/libm-test.inc (cexp_test): Add more tests.
7028         * sysdeps/i386/fpu/libm-test-ulps: Update.
7029         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7031 2012-03-21  Allan McRae  <allan@archlinux.org>
7033         * timezone/Makefile: Do not install iso3166.tab and zone.tab
7035 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7037         [BZ #13871]
7038         * math/w_exp2.c: Do not include <float.h>.
7039         (o_threshold, u_threshold): Remove.
7040         (__exp2): Calculate result before checking finiteness and calling
7041         __kernel_standard.
7042         * math/w_exp2f.c: Likewise.
7043         * math/w_exp2l.c: Likewise.
7044         * math/libm-test.inc (exp2_test): Require overflow exception for
7045         1e6 input.
7047         [BZ #3866]
7048         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
7049         range of signed 64-bit integers before using fistpll.  Remove
7050         checks for whether integers fit in mantissa bits.
7051         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
7052         the range of signed 32-bit integers before using fistpl.  Remove
7053         checks for whether integers fit in mantissa bits.
7054         * sysdeps/i386/fpu/e_powl.S (p64): New object.
7055         (__ieee754_powl): Test for y outside the range of signed 64-bit
7056         integers before using fistpll.  Reduce 64-bit values to 63-bit
7057         ones as needed.
7058         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
7059         divide-by-zero is raised for zero to large negative powers.
7060         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
7061         (__ieee754_powl): Test for y outside the range of signed 64-bit
7062         integers before using fistpll.  Reduce 64-bit values to 63-bit
7063         ones as needed.
7064         * math/libm-test.inc (pow_test): Add more tests.
7066 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7068         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
7069         <stdio-common/_itoa.h>.
7070         * debug/segfault.c: Likewise.
7071         * elf/dl-cache.c: Likewise.
7072         * elf/dl-minimal.c: Likewise.
7073         * elf/dl-misc.c: Likewise.
7074         * elf/dl-sysdep.c: Likewise.
7075         * elf/dl-version.c: Likewise.
7076         * elf/rtld.c: Likewise.
7077         * hurd/hurdsock.c: Likewise.
7078         * hurd/lookup-retry.c: Likewise.
7079         * malloc/malloc.c: Likewise.
7080         * malloc/mtrace.c: Likewise.
7081         * nscd/nscd_getgr_r.c: Likewise.
7082         * nscd/nscd_getpw_r.c: Likewise.
7083         * nscd/nscd_getserv_r.c: Likewise.
7084         * posix/getopt_init.c: Likewise.
7085         * posix/wordexp.c: Likewise.
7086         * stdio-common/_itoa.c: Likewise.
7087         * stdio-common/printf_fphex.c: Likewise.
7088         * stdio-common/vfprintf.c: Likewise.
7089         * string/_strerror.c: Likewise.
7090         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7091         * sysdeps/i386/i686/hp-timing.h: Likewise.
7092         * sysdeps/mach/_strerror.c: Likewise.
7093         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
7094         * sysdeps/mach/hurd/sethostid.c: Likewise.
7095         * sysdeps/mach/hurd/xmknodat.c: Likewise.
7096         * sysdeps/mach/xpg-strerror.c: Likewise.
7097         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7098         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
7099         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
7100         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
7101         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
7102         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
7103         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7104         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7105         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
7106         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
7107         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
7108         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
7109         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
7110         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
7111         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
7112         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
7113         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
7114         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
7115         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7116         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7117         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
7119         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
7121         * stdio-common/_itoa.h: Moved to ...
7122         * sysdeps/generic/_itoa.h: Here.
7124         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
7126         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
7127         instead of "_itoa.h" and "_itowa.h".
7128         * stdio-common/vfprintf.: Likewise.
7130 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7132         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
7133         <bits/wordsize.h>.
7134         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
7135         (__signbit): Likwise.
7136         (llrintf): Likwise.
7137         (llrint): Likwise.
7139 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7141         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
7142         __WORDSIZE != 64.
7144 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
7146         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
7147         OVERFLOW_EXCEPTION_OK.
7148         * math/libm-test.inc ("Philosophy"): Update comment about
7149         exception testing.
7150         (OVERFLOW_EXCEPTION): Define.
7151         (OVERFLOW_EXCEPTION_OK): Likewise.
7152         (INVALID_EXCEPTION_OK): Renumber.
7153         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7154         (IGNORE_ZERO_INF_SIGN): Likewise.
7155         (test_exceptions): Handle FE_OVERFLOW.
7156         (exp10_test): Expect overflow exceptions.
7157         (exp2_test): Likewise.
7158         (expm1_test): Likewise.
7159         (nextafter_test): Likewise.
7160         (pow_test): Likewise.
7161         (scalbn_test): Likewise.
7162         (scalbln_test): Likewise.
7164 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7166         * sysdeps/x86_64/bits/atomic.h
7167         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
7168         64bit integer.
7169         (atomic_exchange_acq): Likewise.
7170         (__arch_exchange_and_add_body): Likewise.
7171         (__arch_add_body): Likewise.
7172         (atomic_add_negative): Likewise.
7173         (atomic_add_zero): Likewise.
7175 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7177         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
7178         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
7180 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7182         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
7183         Check __x86_64__ instead of __WORDSIZE.
7185 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7187         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
7189 2012-03-19  David S. Miller  <davem@davemloft.net>
7191         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7193         * sysdeps/sparc/fpu/fenv_private.h: New file.
7194         * sysdeps/sparc/fpu/math_private.h: Use it.
7195         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
7196         Remove.
7197         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
7198         (libc_feholdexcept_setroundl): Remove.
7199         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
7200         Remove.
7201         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
7202         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
7204 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7206         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
7207         int64_t instead of long int.
7208         (INSERT_WORDS64): Likwise.
7210 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7212         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
7213         _Unwind_GetCFA return to _Unwind_Ptr first.
7215 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
7217         [BZ #13629]
7218         * math/s_clog.c: Include <float.h>.
7219         (__clog): Scale large or subnormal inputs.
7220         * math/s_clogf.c: Likewise.
7221         * math/s_clogl.c: Likewise.
7222         * math/s_clog10.c: Include <float.h>.
7223         (M_LOG10_2): Define.
7224         (__clog10): Scale large or subnormal inputs.
7225         * math/s_clog10f.c: Likewise.
7226         * math/s_clog10l.c: Likewise.
7227         * math/libm-test.inc (clog_test): Add more tests.
7228         (clog10_test): Likewise.
7229         * sysdeps/i386/fpu/libm-test-ulps: Update.
7230         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7232         [BZ #11451]
7233         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
7234         x and y.
7235         * math/libm-test.inc (atan2_test): Add another test.
7237         * Makerules (common-objdir-compile): Remove.
7238         * sysdeps/unix/Makefile (config-generated): Do not add
7239         $(unix-generated) to variable.
7240         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
7241         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
7242         Remove rule.
7243         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
7244         Likewise.
7245         [generic bits/local_lim.h] (before-compile): Do not append to
7246         variable.
7247         [generic bits/local_lim.h] (common-generated): Likewise.
7248         [generic sys/param.h] (before-compile): Do not append to variable.
7249         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
7250         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
7251         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
7252         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
7253         include.
7254         [generic sys/param.h] (sys/param.h-includes): Remove variable.
7255         [generic sys/param.h] (sys/param.h-includes): Remove rule.
7256         [generic sys/param.h] ($(addprefix
7257         $(common-objpfx),$(sys/param.h-includes))): Likewise.
7258         [generic sys/param.h] (common-generated): Do not append to
7259         variable.
7260         [generic sys/param.h] (sysdep_headers): Likewise.
7261         [generic bits/errno.h] (before-compile): Do not append to
7262         variable.
7263         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
7264         rule.
7265         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
7266         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
7267         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
7268         [generic bits/errno.h] (common-generated): Do not append to
7269         variable.
7270         [generic bits/ioctls.h] (before-compile): Do not append to
7271         variable.
7272         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
7273         rule.
7274         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
7275         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
7276         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
7277         rule.
7278         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
7279         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
7280         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
7281         [generic bits/ioctls.h] (common-generated): Do not append to
7282         variable.
7283         [generic sys/syscall.h] (syscall.h): Remove variable.
7284         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
7285         rule.
7286         [generic sys/syscall.h] (before-compile): Do not append to
7287         variable.
7288         [generic sys/syscall.h] (common-generated): Likewise.
7289         * sysdeps/unix/errnos-tmpl.c: Remove file.
7290         * sysdeps/unix/errnos.awk: Likewise.
7291         * sysdeps/unix/ioctls-tmpl.c: Likewise.
7292         * sysdeps/unix/ioctls.awk: Likewise.
7293         * sysdeps/unix/mk-local_lim.c: Likewise.
7294         * sysdeps/unix/snarf-ioctls: Likewise.
7296 2012-03-19  Richard Henderson  <rth@twiddle.net>
7298         * sysdeps/i386/fpu/fenv_private.h: New file.
7299         * sysdeps/i386/fpu/math_private.h: Use it.
7300         (math_opt_barrier, math_force_eval): Remove.
7301         (libc_feholdexcept_setround_53bit): Remove.
7302         (libc_feupdateenv_53bit): Remove.
7303         * sysdeps/x86_64/fpu/math_private.h: Likewise.
7304         (math_opt_barrier, math_force_eval): Remove.
7305         (libc_feholdexcept): Remove.
7306         (libc_feholdexcept_setround): Remove.
7307         (libc_fetestexcept, libc_fesetenv): Remove.
7308         (libc_feupdateenv_test): Remove.
7309         (libc_feupdateenv, libc_feholdsetround): Remove.
7310         (libc_feresetround): Remove.
7312         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
7313         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
7315         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
7316         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
7317         (libc_feupdateenv_testl): New.
7318         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
7319         (libc_feupdateenv_testf): New.
7320         (libc_feupdateenv): Use libc_feupdateenv_test.
7321         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
7322         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
7324         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
7325         (libc_feholdsetroundf, libc_feholdsetroundl): New.
7326         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
7327         (libc_feresetround_noex): New.
7328         (libc_feresetround_noexf): New.
7329         (libc_feresetround_noexl): New.
7330         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
7331         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
7332         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
7333         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
7334         SET_RESTORE_ROUND.
7335         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
7336         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
7337         (__cos): Likewise.
7338         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
7339         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
7340         SET_RESTORE_ROUND_NOEX.
7341         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
7342         SET_RESTORE_ROUND_NOEXF.
7343         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
7344         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
7345         (libc_feholdsetroundf): New.
7346         (libc_feresetround, libc_feresetroundf): New.
7348         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
7349         (libc_feholdexcept_setround_53bit): Convert from macro to function.
7350         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
7352         * sysdeps/generic/math_private.h: Include <fenv.h>.
7353         (default_libc_feholdexcept): New.
7354         (default_libc_feholdexcept_setround): New.
7355         (default_libc_fesetenv, default_libc_feupdateenv): New.
7356         (libc_feholdexcept): Only define if undefined.
7357         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
7358         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
7359         (libc_feholdexcept_setroundl): Likewise.
7360         (libc_feholdexcept_setround_53bit): Likewise.
7361         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
7362         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
7363         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
7364         (libc_feupdateenv_53bit): Likewise.
7365         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
7366         (libc_feholdexcept): Convert from macro to inline function.
7367         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
7368         (libc_fesetenv, libc_feupdateenv): Likewise.
7370         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
7371         not previously defined.
7372         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
7373         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
7374         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
7375         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
7376         * sysdeps/ieee754/flt-32/math_private.h: New file.
7377         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
7378         math_private.h below SET_FLOAT_WORD.
7379         (__isnan, __isinf_ns, __finite): Remove.
7380         (__isnanf, __isinf_nsf, __finitef): Remove.
7382 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
7384         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7386 2012-03-17  David S. Miller  <davem@davemloft.net>
7388         [BZ #6471]
7389         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
7390         for 2.16.
7392 2012-03-16  David S. Miller  <davem@davemloft.net>
7394         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
7395         warnings.
7397         [BZ #6471]
7398         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
7399         properly.
7400         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
7401         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
7402         sysdep_routines when subdir is sysvipc.
7403         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
7404         __getshmlba helper.
7406         * sysdeps/sparc/fpu/libm-test/ulps: Update.
7408 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7410         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
7411         [__LP64__].
7413 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7415         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
7416         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
7417         (__lround): Renamed to ...
7418         (__llround): This.  Replace long int with long long int.
7419         Define lround functions as aliases of llround functions.
7420         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
7422 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7424         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7425         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
7426         adresses to uintptr_t.  Replace "long int" and "unsigned long
7427         int" with "greg_t" on va_arg.
7429 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7431         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
7432         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
7434         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
7435         Move e_machine check before EI_CLASS check.  Handle x32
7436         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
7437         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
7438         SKIP_EM_IA_64 and include
7439         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
7441         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
7442         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
7443         (add_system_dir): New macro.
7445         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
7446         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
7448 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
7450         [BZ #2551]
7451         [BZ #2552]
7452         [BZ #2553]
7453         [BZ #2554]
7454         [BZ #2562]
7455         [BZ #2563]
7456         [BZ #2565]
7457         [BZ #2566]
7458         [BZ #2576]
7459         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
7460         (y0): Likewise.
7461         * math/w_j0f.c (j0f): Likewise.
7462         (y0f): Likewise.
7463         * math/w_j0l.c (__j0l): Likewise.
7464         (__y0l): Likewise.
7465         * math/w_j1.c (j1): Likewise.
7466         (y1): Likewise.
7467         * math/w_j1f.c (j1f): Likewise.
7468         (y1f): Likewise.
7469         * math/w_j1l.c (__j1l): Likewise.
7470         (__y1l): Likewise.
7471         * math/w_jn.c (jn): Likewise.
7472         (yn): Likewise.
7473         * math/w_jnf.c (jnf): Likewise.
7474         (ynf): Likewise.
7475         * math/w_jnl.c (__jnl): Likewise.
7476         (__ynl): Likewise.
7477         * math/libm-test.inc (j0_test): Add more tests.
7478         (j1_test): Likewise.
7479         (jn_test): Likewise.  Add trailing semicolon to existing test.
7480         (y0_test): Likewise.
7481         (y1_test): Likewise.
7482         * sysdeps/i386/fpu/libm-test-ulps: Update.
7483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7485         [BZ #13851]
7486         [BZ #13854]
7487         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
7488         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
7489         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
7490         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
7491         (__tanl): Set errno for infinite argument.
7492         * sysdeps/i386/fpu/mptan.c: Remove.
7493         * sysdeps/i386/fpu/s_tan.S: Likewise.
7494         * sysdeps/i386/fpu/s_tanl.S: Likewise.
7495         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
7496         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
7497         * math/libm-test.inc (tan_test): Add more tests and enable more
7498         tests for double and long double.
7499         * sysdeps/i386/fpu/libm-test-ulps: Update.
7500         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7502 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7504         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
7505         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
7507 2012-03-16  Roland McGrath  <roland@hack.frob.com>
7509         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
7510         * configure.in: Use it for both main tree and add-ons.
7511         * configure: Regenerated.
7513 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7515         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
7517 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
7519         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
7520         in comment.
7522         [BZ #13851]
7523         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
7524         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
7525         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
7526         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
7527         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
7528         infinite argument.
7529         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
7530         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
7531         != 0 for prec == 2.
7532         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
7533         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
7534         * sysdeps/i386/fpu/s_cosl.S: Likewise.
7535         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
7536         * sysdeps/i386/fpu/s_sinl.S: Likewise.
7537         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
7538         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
7539         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
7540         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
7541         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
7542         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
7543         * math/libm-test.inc (cos_test): Add more tests and enable more
7544         tests for long double.
7545         (sin_test): Likewise.
7546         (sincos_test): Likewise.
7547         * sysdeps/i386/fpu/libm-test-ulps: Update.
7548         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7550 2012-03-16  David S. Miller  <davem@davemloft.net>
7552         * sysdeps/sparc/fpu/math_private.h: New file.
7554 2012-03-15  David S. Miller  <davem@davemloft.net>
7556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
7557         file.
7558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
7559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
7560         file.
7561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
7562         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
7563         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
7564         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
7565         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
7566         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
7567         sysdep routines.
7568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
7570         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
7571         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
7573         * sysdeps/sparc/sparc-ifunc.h: New file.
7574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
7575         sparc-ifunc.h
7576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
7577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
7578         Likewise.
7579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
7580         Likewise.
7581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
7582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
7583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
7585         Likewise.
7586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
7588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
7590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
7591         Likewise.
7592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
7593         Likewise.
7594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
7596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
7597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
7598         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
7599         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
7600         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
7601         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
7602         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
7603         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
7604         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
7605         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
7606         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
7607         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
7608         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
7609         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
7610         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
7611         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
7612         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
7613         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
7614         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
7615         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
7616         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
7617         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
7619 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
7621         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
7622         scaling.
7623         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7625 2012-03-15  Andreas Jaeger  <aj@suse.de>
7627         [BZ #13852]
7628         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
7629         ieee754/flt-32 implementation for sin, cos and sincos.
7630         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
7631         * sysdeps/i386/fpu/s_cosf.S: Likewise.
7632         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
7633         * sysdeps/i386/fpu/s_sinf.S: Likewise.
7634         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
7635         ieee754/flt-32 implementation for tan.
7637         * math/libm-test.inc (cos_test): Enable some large input tests for
7638         float as well
7639         (sin_test): Likewise.
7640         (sincos_test): Likewise.
7641         (tan_test): Add tests for large input.
7643         * sysdeps/i386/fpu/libm-test-ulps: Update.
7645 2012-03-15  Andreas Jaeger  <aj@suse.de>
7647         [BZ #13658]
7648         * math/libm-test.inc (cos_test): Add more test cases.
7649         (sin_test): Likewise.
7650         (sincos_test): Likewise.
7652 2012-03-15  Andreas Jaeger  <aj@suse.de>
7654         [BZ #13837]
7655         * math/libm-test.inc (cos_test): Add a test case for large input
7656         value.
7657         (sin_test): Likewise.
7658         (sincos_test): Likewise.
7660 2012-03-15  Andreas Jaeger  <aj@suse.de>,
7661         Joseph Myers  <joseph@codesourcery.com>
7663         [BZ #13658]
7664         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
7665         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
7666         * sysdeps/i386/fpu/branred.c: Likewise.
7667         * sysdeps/i386/fpu/dosincos.c: Likewise.
7668         * sysdeps/i386/fpu/mpa.c: Likewise.
7669         * sysdeps/i386/fpu/s_cos.S: Likewise.
7670         * sysdeps/i386/fpu/s_sin.S: Likewise.
7671         * sysdeps/i386/fpu/s_sincos.S: Likewise.
7672         * sysdeps/i386/fpu/sincos32.c: Likewise.
7674         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
7675         Define.
7676         (libc_feupdateenv_53bit): Define.
7677         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
7678         Define.
7679         (libc_feupdateenv_53bit): Define.
7681         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
7682         53 bit (without extend i386 double precision).
7684         * math/libm-test.inc (sincos_test): Add tests for large input.
7685         (sin): Likewise.
7686         (cos): Likewise.
7688         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
7690 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
7692         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7694 2012-03-15  David S. Miller  <davem@davemloft.net>
7696         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
7697         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
7698         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
7699         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
7700         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
7701         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
7702         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
7703         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
7704         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
7705         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
7706         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
7707         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
7708         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
7709         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
7710         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
7711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
7712         file.
7713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
7714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
7715         file.
7716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
7717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
7718         file.
7719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
7720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
7721         file.
7722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
7723         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
7724         fmin/fmax sysdep routines.
7725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
7727 2012-03-14  David S. Miller  <davem@davemloft.net>
7729         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
7730         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
7731         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
7732         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
7733         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
7734         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
7735         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
7736         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
7737         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
7738         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
7739         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
7740         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
7741         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
7742         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
7743         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
7744         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
7745         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
7746         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
7747         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
7748         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
7749         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
7750         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
7751         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
7752         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
7753         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
7754         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
7755         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
7756         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
7757         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
7758         routines.
7759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
7760         file.
7761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
7762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
7763         file.
7764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
7765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
7766         file.
7767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
7768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
7769         file.
7770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
7771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
7772         file.
7773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
7774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
7775         file.
7776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
7777         file.
7778         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
7779         file.
7780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
7781         file.
7782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
7783         New file.
7784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
7785         file.
7786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
7787         file.
7788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
7789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
7790         file.
7791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
7792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
7793         file.
7794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
7795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
7796         file.
7797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
7798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
7799         VIS3 routines.
7801         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
7802         New file.
7804         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7806         * sysdeps/sparc/configure.in: New file.
7807         * sysdeps/sparc/configure: Generate.
7808         * configure.in (libc_cv_sparc_as_vis3): Substitute.
7809         * configure: Regenerate.
7810         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
7811         * config.make.in (have-as-vis3): New.
7812         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
7813         available use -Av9d instead of -Av9a.
7814         * sysdeps/sparc/sparc64/Makefile: Likewise.
7815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
7816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
7817         New file.
7818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
7819         file.
7820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
7821         New file.
7822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
7823         file.
7824         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
7825         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
7826         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
7827         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
7828         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
7830         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
7831         fzeros/fnegs to load 0x80000000 into a float register instead of
7832         using the stack.
7833         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
7835 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
7837         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7838         bits/syscall.h.
7839         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
7840         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
7841         ($(inst_includedir)/bits/syscall.h): Remove rule.
7842         ($(objpfx)bits/syscall.d): Include instead of
7843         $(objpfx)syscall-list.d.
7844         (generated): Change syscall-list.h and syscall-list.d to
7845         bits/syscall.h and bits/syscall.d.
7847 2012-03-14  Roland McGrath  <roland@hack.frob.com>
7849         [BZ #13846]
7850         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
7852 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
7854         [BZ #13841]
7855         * math/s_csqrt.c: Include <float.h>.
7856         (__csqrt): Scale large or subnormal inputs.
7857         * math/s_csqrtf.c: Likewise.
7858         * math/s_csqrtl.c: Likewise.
7859         * math/libm-test.inc (csqrt_test): Add more tests.
7860         * sysdeps/i386/fpu/libm-test-ulps: Update.
7861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7863         [BZ #13840]
7864         * math/libm-test.inc (hypot_test): Add more tests.
7866 2012-03-13  David S. Miller  <davem@davemloft.net>
7868         [BZ #13840]
7869         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
7870         double-precision for the calculation instead of scaling.
7872 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
7874         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
7875         manipulate bits before adding and subtracting TWO52[sx].
7876         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
7877         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7878         Likewise.
7879         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
7881 2012-03-13  David S. Miller  <davem@davemloft.net>
7883         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
7884         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
7885         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
7886         rtld-global-offsets.h
7887         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7889         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
7890         large parameters.
7892         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
7894         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
7895         'err' in the ifdef scope in which it is actually used.
7897         * nss/nss_db/db-init.c: Include string.h
7899 2012-03-12  David S. Miller  <davem@davemloft.net>
7901         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
7902         masking out of the most significant byte of random value used.
7903         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7904         Fix coding style in previous change.
7906         * sysdeps/unix/sysv/linux/kernel-features.h
7907         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
7908         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
7909         expression.
7910         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
7911         later.
7913 2012-03-11  David S. Miller  <davem@davemloft.net>
7915         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
7916         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
7917         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
7918         for 'resultvar' otherwise things get truncated on 64-bit.
7920         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7921         Fix masking out of the most significant byte of random value used.
7923         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7925 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
7927         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7929 2012-03-09  David S. Miller  <davem@davemloft.net>
7931         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
7932         variables with appropriate CPP guards.
7933         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
7934         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
7935         on resulting framesize and the management of the outregs buffer for pltexit.
7936         Preserve floating point return values across _dl_call_pltexit call.
7937         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
7938         framesize and the management of the outregs buffer for pltexit.
7939         Preserve floating point return values across _dl_call_pltexit
7940         call.
7941         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
7942         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
7943         (print_exit): Fix format string for return register value.
7945 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
7947         * sunrpc/Makefile (others): Add rpcgen.
7948         ($(objpfx)rpcgen): Remove special build rule and dependency on
7949         libc.
7950         * sunrpc/rpcgen.c: New file.
7952 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
7954         [BZ #13673]
7955         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
7956         * stdio-common/bug-vfprintf-nargs.c: Likewise.
7957         * sysdeps/i386/crti.S: Likewise.
7958         * sysdeps/i386/crtn.S: Likewise.
7959         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
7960         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
7961         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
7962         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
7963         * sysdeps/sh/crti.S: Likewise.
7964         * sysdeps/sh/crtn.S: Likewise.
7965         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
7967         [BZ #13673]
7968         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
7969         with URL.
7970         * locale/programs/locfile-kw.gperf: Likewise.
7971         * locale/programs/charmap-kw.h: Regenerated.
7972         * locale/programs/locfile-kw.h: Likewise.
7974         [BZ #13673]
7975         * intl/plural.y: Replace FSF snail mail address with URL.
7976         * intl/plural.c: Regenerated.
7978 2012-03-09  Richard Henderson  <rth@twiddle.net>
7980         * include/math_private.h: Remove file.
7981         * math/math_private.h: Move file ...
7982         * sysdeps/generic/math_private.h: ... here.
7984         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
7985         * sysdeps/powerpc/fpu/math_private.h: Likewise.
7986         * sysdeps/x86_64/fpu/math_private.h: Likewise.
7988         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
7989         and <math_private.h>.
7990         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7991         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7992         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7993         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7994         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7995         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
7996         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
7997         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7998         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
7999         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8000         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8001         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8002         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8003         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8004         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
8005         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8006         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8007         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8008         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8009         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8010         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8011         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
8012         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
8013         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8014         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8015         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8016         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8017         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8018         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8019         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8020         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8021         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8022         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8023         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8024         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8025         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8026         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8027         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
8028         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
8029         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8030         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
8031         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
8032         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
8033         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
8034         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
8035         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
8036         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8037         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8038         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8039         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
8040         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8041         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8042         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
8043         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8044         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
8045         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8046         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8047         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
8048         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
8049         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
8050         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8051         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8052         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8053         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8054         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8055         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
8056         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
8057         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8058         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
8059         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
8060         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
8061         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8062         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
8063         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8064         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
8065         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
8066         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
8067         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8068         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
8069         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8070         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
8071         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8072         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
8073         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8074         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8075         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
8076         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
8077         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8078         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
8079         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8080         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8081         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
8082         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8083         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8084         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
8085         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
8086         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8087         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8088         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8089         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8090         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
8091         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
8092         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
8093         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
8094         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8095         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
8096         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8097         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
8098         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8099         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8100         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8101         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8102         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8103         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8104         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8105         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8106         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8107         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
8108         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8109         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8110         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8111         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
8112         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8113         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
8114         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8115         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
8116         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8117         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
8118         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
8119         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8120         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8121         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8122         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8123         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8124         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8125         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
8126         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8127         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8128         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
8129         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8130         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8131         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
8132         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
8133         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
8134         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
8135         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
8136         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
8137         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8138         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8139         * sysdeps/ieee754/k_standard.c: Likewise.
8140         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
8141         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
8142         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8143         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
8144         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8145         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
8146         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
8147         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8148         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
8149         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8150         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8151         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
8152         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8153         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
8154         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
8155         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8156         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
8157         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
8158         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8159         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
8160         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
8161         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
8162         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8163         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8164         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8165         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
8166         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8167         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8168         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
8169         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8170         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8171         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
8172         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
8173         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8174         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
8175         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
8176         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
8177         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
8178         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
8179         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
8180         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8181         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8182         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8183         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
8184         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8185         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8186         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
8187         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8188         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8189         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8190         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8191         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
8192         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8193         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8194         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8195         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8196         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
8197         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
8198         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
8199         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8200         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8201         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8202         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
8203         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
8204         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8205         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8206         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
8207         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8208         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
8209         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
8210         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8211         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8212         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
8213         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
8214         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
8215         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8216         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
8217         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
8218         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8219         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
8220         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8221         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8222         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8223         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8224         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
8225         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8226         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
8227         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
8228         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
8229         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
8230         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
8231         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
8232         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
8233         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
8234         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
8235         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
8236         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
8237         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
8238         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
8239         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
8240         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
8241         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
8242         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8243         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
8244         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
8245         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
8246         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
8247         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
8248         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
8249         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
8250         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
8251         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
8252         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
8253         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8254         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
8255         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8256         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
8257         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8258         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8259         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8260         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8261         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8262         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
8263         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8264         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8265         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8266         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
8267         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8268         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
8269         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8270         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
8271         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
8272         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
8273         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
8274         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
8275         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
8276         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
8277         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
8278         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
8279         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8280         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8281         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
8282         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8283         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8284         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
8285         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
8286         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
8287         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
8288         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
8289         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
8290         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
8291         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8292         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
8293         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
8294         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
8295         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
8296         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
8297         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
8298         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
8299         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
8300         * sysdeps/ieee754/s_lib_version.c: Likewise.
8301         * sysdeps/ieee754/s_matherr.c: Likewise.
8302         * sysdeps/ieee754/s_signgam.c: Likewise.
8303         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8304         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8305         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8306         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8307         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8308         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8309         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
8310         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
8311         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
8312         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8313         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8314         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8315         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
8316         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
8317         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
8318         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
8319         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
8320         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
8321         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
8322         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8323         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8325 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
8327         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
8328         * sunrpc/rpc_main.c: Likewise.
8329         * sunrpc/rpc_svcout.c: Likewise.
8331 2012-03-09  David S. Miller  <davem@davemloft.net>
8333         * include/math_private.h: New file.
8335 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
8337         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
8338         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
8339         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
8340         from <bits/socket_type.h>.
8341         (enum __socket_type): Don't define here.
8342         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
8343         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8344         bits/socket_type.h.
8346         [BZ #13566]
8347         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
8348         checking __USE_GNU.
8350         * Makerules ($(inst_includedir)/%.h): New rule.
8351         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
8352         (install-others): Remove variable setting.
8353         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
8355 2012-03-08  Richard Henderson  <rth@twiddle.net>
8357         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
8358         from macro to inline function; merge with the
8359         !__LIBC_INTERNAL_MATH_INLINES version.
8360         (__ieee754_sqrtf): Likewise.
8362         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
8363         to inline function.
8364         (__rintf, __floor, __floorf): Likewise.
8366         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
8367         macro to inline function.
8368         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
8370         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
8371         not <math/math_private.h>.
8373 2012-03-08  David S. Miller  <davem@davemloft.net>
8375         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
8376         copyright year.
8377         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
8379 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
8381         * resolv/gai_misc.c (handle_requests): Fix struct timespec
8382         normalization.
8383         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
8384         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
8386 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
8388         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
8389         be defined individually, they must be defined as a block.  Define
8390         S for printing a string instead of hidint the different by using a
8391         macro for adding the 'l'.
8392         * stdio-common/tst-fphex-wide.c: Adjust.
8394 2012-03-07  Marek Polacek  <polacek@redhat.com>
8396         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
8398 2012-03-08  Marek Polacek  <polacek@redhat.com>
8400         [BZ #13806]
8401         * stdio-common/Makefile (tests): Add tst-fphex-wide.
8402         * stdio-common/tst-fphex.c: Define a few macros to make the
8403         test reusable.  Use them.
8404         * stdio-common/tst-fphex-wide.c: New file.
8406 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
8408         [BZ #6911]
8409         * manual/macros.texi (gnusystems): New macro.
8410         (nongnusystems): Likewise.
8411         (gnulinuxhurdsystems): Likewise.
8412         (gnuhurdsystems): Likewise..
8413         (gnulinuxsystems): Likewise.
8414         * manual/charset.texi: Use new macros or @theglibc{} to refer to
8415         variants of the GNU system, not "GNU system".
8416         * manual/conf.texi: Likewise.
8417         * manual/errno.texi: Likewise.  Update example of errno macro
8418         expansion.
8419         * manual/filesys.texi: Likewise.
8420         (getumask): Document as specific to GNU/Hurd.
8421         * manual/install.texi: Likewise.  Reword some references to
8422         GNU/Linux.
8423         * manual/intro.texi: Likewise.
8424         * manual/io.texi: Likewise.
8425         (File Name Portability): Detail which constraints are inapplicable
8426         to all GNU systems and which are only inapplicable to GNU/Hurd.
8427         * manual/job.texi: Likewise.
8428         * manual/llio.texi: Likewise.
8429         (O_NOCTTY): Document as present on GNU/Linux.
8430         * manual/maint.texi: Likewise.
8431         * manual/memory.texi: Likewise.
8432         * manual/pattern.texi: Likewise.
8433         * manual/pipe.texi: Likewise.
8434         * manual/process.texi: Likewise.
8435         * manual/resource.texi: Likewise.
8436         (RUSAGE_CHILDREN): Remove statement about specifying a particular
8437         child on GNU/Hurd.
8438         * manual/setjmp.texi: Likewise.
8439         * manual/signal.texi: Likewise.
8440         * manual/startup.texi: Likewise.
8441         * manual/stdio.texi: Likewise.
8442         * manual/terminal.texi: Likewise.
8443         (ONLCR): Document as POSIX.
8444         (OXTABS): Document availability on GNU/Linux as XTABS.
8445         (ONOEOT): Document availability separately from other bits.
8446         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
8447         * manual/time.texi: Likewise.
8448         * manual/users.texi: Likewise.
8449         * INSTALL: Regenerated.
8450         * sysdeps/gnu/errlist.c: Regenerated.
8452         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
8453         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
8454         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
8455         puts.
8456         * configure: Regenerated.
8458 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
8460         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
8461         default includes instead of AC_HEADER_CHECK.
8462         * sysdeps/i386/configure: Regenerated.
8464         [BZ #10716]
8465         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
8466         * math/s_cacoshf.c (__cacoshf): Likewise.
8467         * math/s_cacoshl.c (__cacoshl): Likewise.
8468         * math/s_casinh.c (__casinh): Set signs of result from argument.
8469         * math/s_casinhf.c (__casinhf): Likewise.
8470         * math/s_casinhl.c (__casinhl): Likewise.
8471         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
8472         (casinh_test): Add more tests.
8473         * sysdeps/i386/fpu/libm-test-ulps: Update.
8474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8476 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
8478         * po/zh_TW.po: Update from translation team.
8480         * login/Makefile (distribute): Remove variable.
8481         * catgets/Makefile: Likewise.
8482         * mach/Makefile: Likewise.
8483         * malloc/Makefile: Likewise.
8484         * misc/Makefile: Likewise.
8485         * iconv/Makefile: Likewise.
8486         * nscd/Makefile: Likewise.
8487         * hurd/Makefile: Likewise.
8488         * manual/Makefile: Likewise.
8489         * locale/Makefile: Likewise.
8490         * intl/Makefile: Likewise.
8491         * conform/Makefile: Likewise.
8492         * nss/Makefile: Likewise.
8493         * time/Makefile: Likewise.
8494         * soft-fp/Makefile: Likewise.
8495         * dirent/Makefile: Likewise.
8496         * gmon/Makefile: Likewise.
8497         * po/Makefile: Likewise.
8498         * rt/Makefile: Likewise.
8499         * socket/Makefile: Likewise.
8500         * math/Makefile: Likewise.
8501         * signal/Makefile: Likewise.
8502         * debug/Makefile: Likewise.
8503         * elf/Makefile: Likewise.
8504         * timezone/Makefile: Likewise.
8505         * stdlib/Makefile: Likewise.
8506         * iconvdata/Makefile: Likewise.
8507         * sunrpc/Makefile: Likewise.
8508         * io/Makefile: Likewise.
8509         * argp/Makefile: Likewise.
8510         * inet/Makefile: Likewise.
8511         * hesiod/Makefile: Likewise.
8512         * grp/Makefile: Likewise.
8513         * csu/Makefile: Likewise.
8514         * wctype/Makefile: Likewise.
8515         * crypt/Makefile: Likewise.
8516         * libio/Makefile: Likewise.
8517         * string/Makefile: Likewise.
8518         * nis/Makefile: Likewise.
8519         * resolv/Makefile: Likewise.
8520         * stdio-common/Makefile: Likewise.
8521         * wcsmbs/Makefile: Likewise.
8522         * dlfcn/Makefile: Likewise.
8523         * posix/Makefile: Likewise.
8525         [BZ #6959]
8526         * timezone/Makefile: Don't install timezone files, just the programs
8527         and scripts.
8529 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
8531         * nss/databases.def: Add missing gshadow entry.
8533         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
8535 2012-03-06  Marek Polacek  <polacek@redhat.com>
8537         [BZ #13726]
8538         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
8539         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
8540         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
8541         * stdio-common/tst-long-dbl-fphex.c: New file.
8543 2012-03-06  David S. Miller  <davem@davemloft.net>
8545         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8546         (set_obp_int): New function.
8547         (get_obp_int): New function.
8548         (__get_clockfreq_via_dev_openprom): Likewise.
8549         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
8550         Avoid unused variable warnings on 'val' and use builtin_expect.
8551         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
8552         __builtin_expect.
8553         (INLINE_CLONE_SYSCALL): Likewise.
8555 2012-03-05  David S. Miller  <davem@davemloft.net>
8557         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8559 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
8561         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8563         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
8564         only for |x| >= 40.
8565         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8567 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
8569         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
8570         Replace gettimeofday with __vdso_gettimeofday.
8572         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8573         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
8574         __vdso_clock_gettime and __vdso_getcpu.
8576         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
8577         time with __vdso_time.
8579 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
8581         * manual/lang.texi (size_t): Note types to which size_t may be
8582         equivalent with the GNU C Library, but do not describe when
8583         differences between them are significant.
8585 2012-03-05  Andreas Jaeger  <aj@suse.de>
8587         * sysdeps/i386/fpu/libm-test-ulps: Update.
8589 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
8591         [BZ #3976]
8592         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
8593         (__ieee754_pow): Save and restore rounding mode and use
8594         round-to-nearest for main computations.
8595         * math/libm-test.inc (pow_test_tonearest): New function.
8596         (pow_test_towardzero): Likewise.
8597         (pow_test_downward): Likewise.
8598         (pow_test_upward): Likewise.
8599         (main): Call the new functions.
8600         * sysdeps/i386/fpu/libm-test-ulps: Update.
8601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8603         [BZ #3976]
8604         * math/libm-test.inc (cosh_test_tonearest): New function.
8605         (cosh_test_towardzero): Likewise.
8606         (cosh_test_downward): Likewise.
8607         (cosh_test_upward): Likewise.
8608         (sinh_test_tonearest): Likewise.
8609         (sinh_test_towardzero): Likewise.
8610         (sinh_test_downward): Likewise.
8611         (sinh_test_upward): Likewise.
8612         (main): Call the new functions.
8613         * sysdeps/i386/fpu/libm-test-ulps: Update.
8614         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8616 2012-03-05  Tom de Vries  <tom@codesourcery.com>
8618         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
8619         default stack guard is set in last bytes.
8620         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
8622 2012-03-05  Kees Cook  <keescook@chromium.org>
8624         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
8626         [BZ #13656]
8627         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
8628         possibly allocate from heap instead of stack.
8629         * stdio-common/bug-vfprintf-nargs.c: New file.
8630         * stdio-common/Makefile (tests): Add nargs overflow test.
8632 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
8634         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8636 2012-03-03  Marek Polacek  <polacek@redhat.com>
8638         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
8639         * math/math_private.h: Likewise.
8640         * stdlib/tst-strtod.c: Likewise.
8641         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8642         * sysdeps/x86_64/bits/atomic.h: Likewise.
8644 2012-03-02  David S. Miller  <davem@davemloft.net>
8646         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
8647         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
8648         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
8649         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
8650         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
8651         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
8652         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
8653         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
8655 2012-03-02  Roland McGrath  <roland@hack.frob.com>
8657         [BZ #13792]
8658         * manual/examples/README: New file, says the example source files
8659         can be used under GPL>=2.
8660         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
8661         line containing just "*/".
8662         * manual/examples/add.c: Add copyright header (GPL>=2).
8663         * manual/examples/argp-ex1.c: Likewise.
8664         * manual/examples/argp-ex2.c: Likewise.
8665         * manual/examples/argp-ex3.c: Likewise.
8666         * manual/examples/argp-ex4.c: Likewise.
8667         * manual/examples/atexit.c: Likewise.
8668         * manual/examples/db.c: Likewise.
8669         * manual/examples/dir.c: Likewise.
8670         * manual/examples/dir2.c: Likewise.
8671         * manual/examples/execinfo.c: Likewise.
8672         * manual/examples/filecli.c: Likewise.
8673         * manual/examples/filesrv.c: Likewise.
8674         * manual/examples/fmtmsgexpl.c: Likewise.
8675         * manual/examples/genpass.c: Likewise.
8676         * manual/examples/inetcli.c: Likewise.
8677         * manual/examples/inetsrv.c: Likewise.
8678         * manual/examples/isockad.c: Likewise.
8679         * manual/examples/longopt.c: Likewise.
8680         * manual/examples/memopen.c: Likewise.
8681         * manual/examples/memstrm.c: Likewise.
8682         * manual/examples/mkfsock.c: Likewise.
8683         * manual/examples/mkisock.c: Likewise.
8684         * manual/examples/mygetpass.c: Likewise.
8685         * manual/examples/pipe.c: Likewise.
8686         * manual/examples/popen.c: Likewise.
8687         * manual/examples/rprintf.c: Likewise.
8688         * manual/examples/search.c: Likewise.
8689         * manual/examples/select.c: Likewise.
8690         * manual/examples/setjmp.c: Likewise.
8691         * manual/examples/sigh1.c: Likewise.
8692         * manual/examples/sigusr.c: Likewise.
8693         * manual/examples/stpcpy.c: Likewise.
8694         * manual/examples/strdupa.c: Likewise.
8695         * manual/examples/strftim.c: Likewise.
8696         * manual/examples/strncat.c: Likewise.
8697         * manual/examples/subopt.c: Likewise.
8698         * manual/examples/swapcontext.c: Likewise.
8699         * manual/examples/termios.c: Likewise.
8700         * manual/examples/testopt.c: Likewise.
8701         * manual/examples/testpass.c: Likewise.
8702         * manual/examples/timeval_subtract.c: Likewise.
8704         [BZ #13792]
8705         * manual/time.texi (Elapsed Time): Move timeval_subtract example
8706         function to ...
8707         * manual/timeval_subtract.c.texi: ... here, new file.
8709 2012-03-02  David S. Miller  <davem@davemloft.net>
8711         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
8713 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
8715         [BZ #3976]
8716         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
8717         (__sin): Save and restore rounding mode and use round-to-nearest
8718         for all computations.
8719         (__cos): Save and restore rounding mode and use round-to-nearest
8720         for all computations.
8721         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
8722         <fenv.h>.
8723         (tan): Save and restore rounding mode and use round-to-nearest for
8724         all computations.
8725         * math/libm-test.inc (cos_test_tonearest): New function.
8726         (cos_test_towardzero): Likewise.
8727         (cos_test_downward): Likewise.
8728         (cos_test_upward): Likewise.
8729         (sin_test_tonearest): Likewise.
8730         (sin_test_towardzero): Likewise.
8731         (sin_test_downward): Likewise.
8732         (sin_test_upward): Likewise.
8733         (tan_test_tonearest): Likewise.
8734         (tan_test_towardzero): Likewise.
8735         (tan_test_downward): Likewise.
8736         (tan_test_upward): Likewise.
8737         (main): Call the new functions.
8738         * sysdeps/i386/fpu/libm-test-ulps: Update.
8739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8741         [BZ #10135]
8742         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
8743         small n, then large n, before computing and testing k+n.
8744         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8745         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8746         Likewise.
8747         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8748         Likewise.
8749         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
8750         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8751         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8752         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8753         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8754         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8755         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8756         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
8757         * math/libm-test.inc (scalbn_test): Add more tests.
8758         (scalbln_test): Likewise.
8760         * manual/filesys.texi (mode_t): Describe constraints on size and
8761         signedness, not exact equivalence to a particular type.
8762         (ino_t): Likewise.
8763         (ino64_t): Likewise.
8764         (dev_t): Likewise.
8765         (nlink_t): Likewise.
8766         (blkcnt_t): Likewise.
8767         (blkcnt64_t): Likewise.
8768         * manual/llio.texi (off_t): Likewise.
8770         [BZ #3976]
8771         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
8772         (__ieee754_exp): Save and restore rounding mode and use
8773         round-to-nearest for all computations.
8774         * math/libm-test.inc (exp_test_tonearest): New function.
8775         (exp_test_towardzero): Likewise.
8776         (exp_test_downward): Likewise.
8777         (exp_test_upward): Likewise.
8778         (main): Call the new functions.
8779         * sysdeps/i386/fpu/libm-test-ulps: Update.
8780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8782 2012-03-01  Chris Demetriou  <cgd@google.com>
8784         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
8785         have predictable order.
8787 2012-03-01  David S. Miller  <davem@davemloft.net>
8789         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
8791         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
8792         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
8793         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
8794         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
8796         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
8797         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
8798         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
8799         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
8800         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
8801         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
8802         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
8803         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
8804         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
8806         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8808         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
8809         * sysdeps/sparc/fpu/libm-test-ulps: to here.
8810         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
8812         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
8813         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8814         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8815         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
8816         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
8817         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
8818         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
8819         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8820         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8821         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
8822         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
8823         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8824         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8825         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
8826         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8827         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8828         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
8829         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
8830         * sysdeps/sparc/elf/configure: Regenerated.
8832 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
8834         * configure.in (AS, LD): Require binutils 2.20 or later.
8835         * configure: Regenerated.
8836         * manual/install.texi (Tools for Compilation): Give binutils 2.20
8837         as required minimum version.
8838         * INSTALL: Regenerated.
8840         [BZ #2541]
8841         [BZ #4108]
8842         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
8843         before squaring exponent.
8844         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
8845         bottom long double and 27 bits of top long double before squaring
8846         exponent.
8847         * math/libm-test.inc (erfc_test): Add more tests.
8848         * sysdeps/i386/fpu/libm-test-ulps: Update.
8849         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8850         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8852 2012-03-01  Kai Tietz  <ktietz@redhat.com>
8854         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
8855         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
8856         containing bit-fields.
8857         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8858         * soft-fp/single.h (_FP_UNION_S): Likewise.
8859         * soft-fp/double.h (_FP_UNION_D): Likewise.
8861 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
8863         [BZ #13786]
8864         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
8865         not include ../strcmp.S.
8866         [USE_AS_STRNCASECMP_L]: Likewise.
8867         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
8868         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
8869         * sysdeps/i386/i686/multiarch/strncase_l-c.c
8870         (__strncasecmp_l_ia32): Define as alias to
8871         __strncasecmp_l_nonascii.
8873         [BZ #5794]
8874         * math/libm-test.inc (expm1_test): Add test for bug 5794.
8875         * sysdeps/i386/fpu/libm-test-ulps: Update.
8876         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8878         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
8879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8881 2012-02-29  Jeff Law  <law@redhat.com>
8883         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
8884         out of bounds read.
8886 2012-02-29  Marek Polacek  <polacek@redhat.com>
8888         [BZ #13706]
8889         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
8890         * elf/Makefile: Add rules to run tst-unused-dep.out.
8892 2012-02-28  David S. Miller  <davem@davemloft.net>
8894         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
8895         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
8896         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
8897         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
8898         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
8899         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
8901 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
8903         * math/libm-test.inc (llround_test): Move one test from
8904         lround_test.  Use TEST_f_L in moved test.
8905         (lround_test): Move misplaced test to llround_test.  Add testcase
8906         from bug 2561.
8908 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
8910         * sysdeps/x86_64/fpu/e_expf.S: New file.
8911         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
8913 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
8915         [BZ #13637]
8916         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
8917         of remain_len that may cause incomplete multi-byte character and
8918         false match.
8919         * posix/bug-regex33.c: New file.
8920         * posix/Makefile (tests): Add bug-regex33.
8922 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
8924         * manual/macros.texi: New file.
8925         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
8926         * manual/libc.texinfo: Include macros.texi.
8927         * manual/creatute.texi: Likewise.
8928         * manual/install.texi: Likewise.
8929         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
8930         @glibcadj{} in references to the GNU C Library.
8931         * manual/charset.texi: Likewise.
8932         * manual/conf.texi: Likewise.
8933         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
8934         when not using those macros.
8935         * manual/creature.texi: Likewise.
8936         * manual/crypt.texi: Likewise.
8937         * manual/errno.texi: Likewise.
8938         * manual/filesys.texi: Likewise.
8939         * manual/header.texi: Likewise.
8940         * manual/install.texi: Likewise.
8941         * manual/intro.texi: Likewise.
8942         * manual/io.texi: Likewise.
8943         * manual/job.texi: Likewise.
8944         * manual/lang.texi: Likewise.
8945         * manual/libc.texiinfo: Likewise.
8946         * manual/llio.texi: Likewise.
8947         * manual/locale.texi: Likewise.
8948         * manual/maint.texi: Likewise.
8949         * manual/math.texi: Likewise.
8950         * manual/memory.texi: Likewise.
8951         * manual/message.texi: Likewise.
8952         * manual/nss.texi: Likewise.
8953         * manual/pattern.texi: Likewise.
8954         * manual/process.texi: Likewise.
8955         * manual/resource.texi: Likewise.
8956         * manual/search.texi: Likewise.
8957         * manual/setjmp.texi: Likewise.
8958         * manual/signal.texi: Likewise.
8959         * manual/socket.texi: Likewise.
8960         * manual/startup.texi: Likewise.
8961         * manual/stdio.texi: Likewise.
8962         * manual/string.texi: Likewise.
8963         * manual/sysinfo.texi: Likewise.
8964         * manual/syslog.texi: Likewise.
8965         * manual/terminal.texi: Likewise.
8966         * manual/time.texi: Likewise.
8967         * manual/users.texi: Likewise.
8968         * INSTALL: Regenerated.
8969         * NOTES: Regenerated.
8970         * sysdeps/gnu/errlist.c: Regenerated.
8972 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
8974         * include/dirent.h: Include <dirstream.h> before
8975         <dirent/dirent.h>.
8977 2012-02-28  David S. Miller  <davem@davemloft.net>
8979         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
8980         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
8981         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
8982         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
8984 2012-02-27  David S. Miller  <davem@davemloft.net>
8986         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
8987         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
8988         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
8989         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
8991         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
8992         frame pointer instead of stack pointer relative arg slot.
8993         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
8994         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
8995         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
8997 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
8999         [BZ #3992]
9000         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
9002 2012-02-27  David S. Miller  <davem@davemloft.net>
9004         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
9005         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
9006         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9007         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
9008         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
9009         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
9010         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
9011         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
9013 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
9015         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
9016         later.  Allow versions 5-9.
9017         * configure: Regenerated.
9018         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
9019         required minimum version and 4.6 as recommended version.  Do not
9020         mention bugs in GCC 2.7 and 2.8.
9021         * INSTALL: Regenerated.
9023 2012-02-27  David S. Miller  <davem@davemloft.net>
9025         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
9026         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
9027         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
9028         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
9029         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
9030         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
9031         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
9032         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
9034         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
9035         manipulate bits before adding and subtracting TWO112[sx].
9036         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9038 2012-02-27  Roland McGrath  <roland@hack.frob.com>
9040         [BZ #13775]
9041         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
9042         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
9043         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
9044         being in POSIX, because they are in 1003.1-2008.
9046         * rt/tst-aio.c: Include <fcntl.h>.
9047         * rt/tst-aio7.c: Likewise.
9048         * rt/tst-aio64.c: Likewise.
9050         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
9052 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
9054         * manual/install.texi (--with-headers): Describe headers as
9055         interface headers, not private headers.
9056         (Specific advice for GNU/Linux systems): Describe use of headers
9057         from "make headers_install", not private headers from older
9058         kernels.
9059         * INSTALL: Regenerated.
9060         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
9061         Change to 2.6.19.
9062         * sysdeps/unix/sysv/linux/configure: Regenerated.
9064         * manual/llio.texi (fclean): Remove documentation.
9066         * manual/Makefile (libc-texi-generated): New variable.  Include
9067         version.texi.
9068         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
9069         $(libc-texi-generated), not duplicated list of files.
9070         (version.texi, stamp-version): New rules.
9071         (realclean): Remove $(libc-texi-generated), not individual files
9072         from that list.  Do not remove dir-add.texinfo.
9073         * manual/libc.texinfo: Comment out uses of edition numbers and
9074         references to printed manual.  Remove last-updated dates.
9075         (EDITION): Comment out.
9076         (ISBN): Likewise.
9077         (VERSION, UPDATED): Remove.
9078         (version.texi): Include.
9080 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
9082         * sysdeps/posix/spawni.c: Include <signal.h>.
9083         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
9084         * sysdeps/pthread/aio_fsync.c: Likewise.
9086 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
9088         * conform/Makefile (tests): Run only when not cross-compiling and
9089         when fast-check is not defined.
9091         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
9092         * conform/data/limits.h-data: Fixes for POSIX2008.
9093         * conform/run-conformtest.sh: Run all tests.
9094         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
9095         headers.
9096         * include/bits/dlfcn.h: Likewise.
9097         * include/langinfo.h: Likewise.
9098         * include/monetary.h: Likewise.
9099         * include/sys/poll.h: Likewise.
9101         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
9102         for __USE_GNU.
9103         * posix/spawn.h: Define __need_sigset_t.
9104         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
9105         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
9106         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
9107         to get sigevent_t only.
9108         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
9109         only for __USE_GNU.
9110         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9111         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
9112         process_vm_writev only for __USE_GNU.
9113         * termios/termios.h: Declare tcgetsid also for POSIX2008.
9115         * conform/Makefile: For now ignore errors from run-conformtest.
9116         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
9117         POSIX to avoid namespace pollution.  Don't prepend headers.
9118         * conform/data/aio.h-data: Fixes for POSIX testing.
9119         * conform/data/fcntl.h-data: Likewise.
9120         * conform/data/glob.h-data: Likewise.
9121         * conform/data/grp.h-data: Likewise.
9122         * conform/data/pthread.h-data: Likewise.
9123         * conform/data/pwd.h-data: Likewise.
9124         * conform/data/signal.h-data: Likewise.
9125         * conform/data/spawn.h-data: Likewise.
9126         * conform/data/stdio.h-data: Likewise.
9127         * conform/data/stdlib.h-data: Likewise.
9128         * conform/data/stropts.h-data: Likewise.
9129         * conform/data/sys/mman.h-data: Likewise.
9130         * conform/data/sys/stat.h-data: Likewise.
9131         * conform/data/sys/types.h-data: Likewise.
9132         * conform/data/sys/wait.h-data: Likewise.
9133         * conform/data/time.h-data: Likewise.
9134         * conform/data/unistd.h-data: Likewise.
9135         * conform/data/utime.h-data: Likewise.
9137         * io/sys/stat.h: fchmod was always in POSIX.
9138         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
9139         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
9140         * rt/aio.h: Define __need_timespec before including <time.h>.
9141         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
9142         struct.  Add forward declaration of pthread_attr_t and use it in
9143         sigevent.
9144         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9145         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9146         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
9147         always remove CLK_TCK definition.
9149 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
9151         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
9153 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
9155         * conform/run-conformtest.sh: New file.
9156         * conform/Makefile: Run run-conformtest for tests.
9157         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
9158         support.
9160         * conform/data/uchar.h-data: New file.
9161         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
9162         * conform/data/arpa/inet.h-data: Likewise.
9163         * conform/data/assert.h-data: Likewise.
9164         * conform/data/complex.h-data: Likewise.
9165         * conform/data/cpio.h-data: Likewise.
9166         * conform/data/ctype.h-data: Likewise.
9167         * conform/data/dirent.h-data: Likewise.
9168         * conform/data/dlfcn.h-data: Likewise.
9169         * conform/data/errno.h-data: Likewise.
9170         * conform/data/fcntl.h-data: Likewise.
9171         * conform/data/float.h-data: Likewise.
9172         * conform/data/fmtmsg.h-data: Likewise.
9173         * conform/data/fnmatch.h-data: Likewise.
9174         * conform/data/ftw.h-data: Likewise.
9175         * conform/data/glob.h-data: Likewise.
9176         * conform/data/grp.h-data: Likewise.
9177         * conform/data/iconv.h-data: Likewise.
9178         * conform/data/inttypes.h-data: Likewise.
9179         * conform/data/langinfo.h-data: Likewise.
9180         * conform/data/libgen.h-data: Likewise.
9181         * conform/data/limits.h-data: Likewise.
9182         * conform/data/locale.h-data: Likewise.
9183         * conform/data/math.h-data: Likewise.
9184         * conform/data/monetary.h-data: Likewise.
9185         * conform/data/mqueue.h-data: Likewise.
9186         * conform/data/ndbm.h-data: Likewise.
9187         * conform/data/net/if.h-data: Likewise.
9188         * conform/data/netdb.h-data: Likewise.
9189         * conform/data/netinet/in.h-data: Likewise.
9190         * conform/data/nl_types.h-data: Likewise.
9191         * conform/data/poll.h-data: Likewise.
9192         * conform/data/pthread.h-data: Likewise.
9193         * conform/data/pwd.h-data: Likewise.
9194         * conform/data/regex.h-data: Likewise.
9195         * conform/data/sched.h-data: Likewise.
9196         * conform/data/search.h-data: Likewise.
9197         * conform/data/semaphore.h-data: Likewise.
9198         * conform/data/setjmp.h-data: Likewise.
9199         * conform/data/signal.h-data: Likewise.
9200         * conform/data/spawn.h-data: Likewise.
9201         * conform/data/stdarg.h-data: Likewise.
9202         * conform/data/stdio.h-data: Likewise.
9203         * conform/data/stdlib.h-data: Likewise.
9204         * conform/data/string.h-data: Likewise.
9205         * conform/data/strings.h-data: Likewise.
9206         * conform/data/stropts.h-data: Likewise.
9207         * conform/data/sys/ipc.h-data: Likewise.
9208         * conform/data/sys/mman.h-data: Likewise.
9209         * conform/data/sys/msg.h-data: Likewise.
9210         * conform/data/sys/resource.h-data: Likewise.
9211         * conform/data/sys/select.h-data: Likewise.
9212         * conform/data/sys/sem.h-data: Likewise.
9213         * conform/data/sys/shm.h-data: Likewise.
9214         * conform/data/sys/socket.h-data: Likewise.
9215         * conform/data/sys/stat.h-data: Likewise.
9216         * conform/data/sys/statvfs.h-data: Likewise.
9217         * conform/data/sys/time.h-data: Likewise.
9218         * conform/data/sys/timeb.h-data: Likewise.
9219         * conform/data/sys/times.h-data: Likewise.
9220         * conform/data/sys/types.h-data: Likewise.
9221         * conform/data/sys/uio.h-data: Likewise.
9222         * conform/data/sys/un.h-data: Likewise.
9223         * conform/data/sys/utsname.h-data: Likewise.
9224         * conform/data/sys/wait.h-data: Likewise.
9225         * conform/data/syslog.h-data: Likewise.
9226         * conform/data/tar.h-data: Likewise.
9227         * conform/data/termios.h-data: Likewise.
9228         * conform/data/utime.h-data: Likewise.
9229         * conform/data/utmpx.h-data: Likewise.
9230         * conform/data/varargs.h-data: Likewise.
9231         * conform/data/wchar.h-data: Likewise.
9232         * conform/data/wctype.h-data: Likewise.
9233         * conform/data/wordexp.h-data: Likewise.
9235         * include/stropts.h: New file.
9236         * include/uchar.h: New file.
9237         * include/aio.h: Changes to allow conformtest.pl to use the headers.
9238         * include/assert.h: Likewise.
9239         * include/ctype.h: Likewise.
9240         * include/dirent.h: Likewise.
9241         * include/dlfcn.h: Likewise.
9242         * include/fcntl.h: Likewise.
9243         * include/fnmatch.h: Likewise.
9244         * include/glob.h: Likewise.
9245         * include/grp.h: Likewise.
9246         * include/libio.h: Likewise.
9247         * include/locale.h: Likewise.
9248         * include/math.h: Likewise.
9249         * include/net/if.h: Likewise.
9250         * include/netdb.h: Likewise.
9251         * include/netinet/in.h: Likewise.
9252         * include/pthread.h: Likewise.
9253         * include/pwd.h: Likewise.
9254         * include/regex.h: Likewise.
9255         * include/sched.h: Likewise.
9256         * include/search.h: Likewise.
9257         * include/setjmp.h: Likewise.
9258         * include/signal.h: Likewise.
9259         * include/stdio.h: Likewise.
9260         * include/stdlib.h: Likewise.
9261         * include/string.h: Likewise.
9262         * include/sys/cdefs.h: Likewise.
9263         * include/sys/mman.h: Likewise.
9264         * include/sys/msg.h: Likewise.
9265         * include/sys/resource.h: Likewise.
9266         * include/sys/select.h: Likewise.
9267         * include/sys/socket.h: Likewise.
9268         * include/sys/stat.h: Likewise.
9269         * include/sys/statvfs.h: Likewise.
9270         * include/sys/time.h: Likewise.
9271         * include/sys/times.h: Likewise.
9272         * include/sys/uio.h: Likewise.
9273         * include/sys/utsname.h: Likewise.
9274         * include/sys/wait.h: Likewise.
9275         * include/termios.h: Likewise.
9276         * include/time.h: Likewise.
9277         * include/ulimit.h: Likewise.
9278         * include/unistd.h: Likewise.
9279         * include/utime.h: Likewise.
9280         * include/wchar.h: Likewise.
9281         * include/wctype.h: Likewise.
9282         * include/wordexp.h: Likewise.
9284         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
9286         * time/time.h: TIME_UTC must be a macro.
9287         Make timespec_get available for ISO C11 only as well.
9289 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
9291         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
9292         Reported by Peng Haitao <penght@cn.fujitsu.com>.
9294 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9296         * configure.in: Use -o not -a in test for unsupported multi-arch.
9298 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9300         * manual/texinfo.tex: Update to version 2012-01-19.16.
9302 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9304         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
9306 2012-02-24  Roland McGrath  <roland@hack.frob.com>
9308         [BZ #13738]
9309         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
9310         * manual/fdl-1.3.texi: New file.
9311         * manual/fdl-1.1.texi: File removed.
9313         [BZ #13738]
9314         * manual/libc.texinfo (FDL_VERSION): New @set.
9315         Use it for mention of FDL in cover text.
9316         (Documentation License): Use it in @include file name.
9318 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9319             Roland McGrath  <roland@hack.frob.com>
9321         [BZ #5461]
9322         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
9323         not LONG_LONG_MAX and LONG_LONG_MIN.
9324         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
9325         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
9326         name.
9327         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
9329 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9331         [BZ #2547]
9332         [BZ #11365]
9333         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
9334         manipulate bits before adding and subtracting TWO23[sx].
9335         * math/libm-test.inc (nearbyint_test): Add more tests.
9337 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9339         [BZ #2548]
9340         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
9341         bits before adding and subtracting TWO23[sx].
9342         * math/libm-test.inc (rint_test): Add more tests.
9343         (rint_test_tonearest): Likewise.
9344         (rint_test_towardzero): Likewise.
9345         (rint_test_downward): Likewise.
9346         (rint_test_upward: Likewise.
9348 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9350         [BZ #10110]
9351         * include/stdc-predef.h: New file.  Extracted from features.h.
9352         * include/features.h: Include stdc-predef.h.
9353         * Makefile (headers): Add stdc-predef.h.
9354         * CONFORMANCE (Compiler limitations): Update.
9356 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9358         * manual/libc.texinfo (VERSION, UPDATED): Revert.
9360 2012-02-21  David S. Miller  <davem@davemloft.net>
9362         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
9363         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
9365 2012-02-20  David S. Miller  <davem@davemloft.net>
9367         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
9368         using a normal save/restore sequence, rather than allocating a
9369         dummy stack frame just to store a frame pointer and restore.
9370         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9372 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9374         * manual/install.texi: Fix stray word in line-wrapped comment.
9376 2012-02-20  David S. Miller  <davem@davemloft.net>
9378         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
9379         both binutils and gcc support GOTDATA.
9381         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
9382         "rd %pc" in the PIC register setup sequences.
9384         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
9385         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
9386         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9387         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9388         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9389         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9390         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9391         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9392         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
9393         (SYSCALL_ERROR_HANDLER): Likewise.
9394         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
9395         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
9396         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
9397         (SYSCALL_ERROR_HANDLER): Likewise.
9399         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
9400         (HAVE_GCC_GOTDATA): New.
9401         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
9402         relocation support in both binutils and gcc.
9403         * sysdeps/sparc/elf/configure: Regenerate.
9405         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
9406         * sysdeps/sparc/sparc32/elf/configure: Delete.
9407         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
9408         * sysdeps/sparc/sparc64/elf/configure: Delete.
9409         * sysdeps/sparc/elf/configure.in: New file.
9410         * sysdeps/sparc/elf/configure: Generate.
9412         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
9413         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
9414         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
9415         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
9416         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
9418 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9420         * manual/install.texi: Do not mention specific glibc version
9421         numbers.
9422         * manual/libc.texinfo (VERSION, UPDATED): Update.
9423         (@copying): Use @copyright{} and range of years.
9425 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9427         [BZ #13695]
9428         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
9429         [crti.S not in sysdirs] (generated): Do not append.
9430         [crti.S not in sysdirs] (omit-deps): Likewise.
9431         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
9432         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
9433         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
9434         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
9435         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
9436         Likewise.
9437         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
9438         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
9439         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
9440         * csu/defs.awk: Remove file.
9441         * sysdeps/generic/initfini.c: Likewise.
9442         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
9443         variable.
9444         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
9445         Likewise.
9447 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9449         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
9450         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
9451         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
9452         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
9453         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9454         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
9455         <bits/epoll.h>.
9456         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
9457         (__EPOLL_PACKED): Define to empty if not defined by
9458         <bits/epoll.h>.
9459         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
9460         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9461         bits/epoll.h.
9463 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9465         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
9466         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
9467         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
9468         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
9469         <bits/timerfd.h>.
9470         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
9471         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9472         bits/timerfd.h.
9474 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9476         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
9477         in C locale.
9478         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9479         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
9480         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
9481         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9483 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
9485         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9486         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
9488 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
9490         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
9491         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
9492         defined.
9493         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
9494         Likewise.
9495         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
9496         entry for 2.16.
9498 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
9500         * math/w_acos.c: Use non-signaling floating-point comparisons.
9501         * math/w_acosf.c: Likewise.
9502         * math/w_acosh.c: Likewise.
9503         * math/w_acoshf.c: Likewise.
9504         * math/w_acoshl.c: Likewise.
9505         * math/w_acosl.c: Likewise.
9506         * math/w_asin.c: Likewise.
9507         * math/w_asinf.c: Likewise.
9508         * math/w_asinl.c: Likewise.
9509         * math/w_atanh.c: Likewise.
9510         * math/w_atanhf.c: Likewise.
9511         * math/w_atanhl.c: Likewise.
9512         * math/w_exp2.c: Likewise.
9513         * math/w_exp2f.c: Likewise.
9514         * math/w_exp2l.c: Likewise.
9515         * math/w_j0.c: Likewise.
9516         * math/w_j0f.c: Likewise.
9517         * math/w_j0l.c: Likewise.
9518         * math/w_j1.c: Likewise.
9519         * math/w_j1f.c: Likewise.
9520         * math/w_j1l.c: Likewise.
9521         * math/w_jn.c: Likewise.
9522         * math/w_jnf.c: Likewise.
9523         * math/w_log.c: Likewise.
9524         * math/w_log10.c: Likewise.
9525         * math/w_log10f.c: Likewise.
9526         * math/w_log10l.c: Likewise.
9527         * math/w_log2.c: Likewise.
9528         * math/w_log2f.c: Likewise.
9529         * math/w_log2l.c: Likewise.
9530         * math/w_logf.c: Likewise.
9531         * math/w_logl.c: Likewise.
9532         * math/w_sqrt.c: Likewise.
9533         * math/w_sqrtf.c: Likewise.
9534         * math/w_sqrtl.c: Likewise.
9535         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9536         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
9537         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9538         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9539         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9541 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9543         [BZ #9739]
9544         * manual/string.texi (strnlen): Use correct parameter name in
9545         equivalent expression.
9547 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9549         [BZ #11174]
9550         * manual/users.texi (seteuid): Consistently use neweuid for
9551         argument name.
9553 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9555         [BZ #13704]
9556         * manual/nss.texi (Services in the NSS configuration): Correct
9557         list of services in example configuration file.
9559 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
9561         [BZ #11322]
9562         * manual/arith.texi: Remove statements about negative zero
9563         behaving identically to zero.
9565 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
9567         [BZ #5993]
9568         * manual/install.texi: Do not document upgrading from libc5.
9570 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
9572         [BZ #4596]
9573         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
9575 2012-02-18  David S. Miller  <davem@davemloft.net>
9577         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
9578         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
9579         %o7 across the call.
9580         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
9581         instead.
9582         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
9583         SETUP_PIC_REG_LEAF.
9584         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9585         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
9586         * sysdeps/sparc/crtn.S: Likewise.
9588 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
9590         * aout/Makefile: Remove.
9592 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
9594         [BZ #13058]
9595         * manual/examples/argp-ex1.c (main): Format definition in GNU
9596         style.
9597         * manual/examples/argp-ex2.c (main): Likewise.
9598         * manual/examples/argp-ex3.c (main): Likewise.
9599         * manual/examples/argp-ex4.c (main): Likewise.
9600         * manual/examples/longopt.c (main): Use new-style prototype
9601         definition.
9602         * manual/examples/strncat.c (main): Specify return type and use
9603         (void) for arguments.
9604         * manual/examples/subopt.c (main): Use char **argv argument.
9606 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9608         [BZ #5077]
9609         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
9610         rounding modes.
9612 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
9614         [BZ #6907]
9615         * manual/string.texi (strchr): Change when strchrnul is
9616         recommended.
9618 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
9620         [BZ #174]
9621         * manual/locale.texi (setlocale): Document LOCPATH.
9623 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9625         [BZ #10210]
9626         * manual/process.texi (execle): Move @dots{} before last argument.
9628 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
9630         [BZ #12047]
9631         * manual/charset.texi (Generic Charset Conversion): Fix typo
9632         (LC_TYPE -> LC_CTYPE).
9634 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
9636         [BZ #5805]
9637         * manual/arith.texi (scalbn): Use @var{} on parameter names.
9638         (scalbnf): Likewise.
9639         (scalbnl): Likewise.
9640         (scalbln): Likewise.
9641         (scalblnf): Likewise.
9642         (scalblnl): Likewise.
9643         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
9644         (vwarnx): Likewise.
9645         (verr): Likewise.
9646         (verrx): Likewise.
9647         * manual/filesys.texi (telldir): Use braces around return type.
9648         * manual/llio.texi (mmap): Add space after comma.
9649         (mmap64): Likewise.
9650         * manual/math.texi (jn): Use @var{} on parameter names.
9651         (jnf): Likewise.
9652         (jnl): Likewise.
9653         (yn): Likewise.
9654         (ynf): Likewise.
9655         (ynl): Likewise.
9656         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
9657         line.
9658         * manual/resource.texi (ulimit): Use @dots{} instead of literal
9659         "...".
9660         (sched_get_priority_min): Remove semicolon on @deftypefun line.
9661         (sched_get_priority_max): Likewise.
9662         * manual/signal.texi (sigvec): Add space after comma.
9663         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
9664         names.
9665         (if_indextoname): Likewise.
9666         (if_freenameindex): Likewise.
9667         (sendto): Use ',' instead of '.' in prototype.
9668         * manual/startup.texi (syscall): Use @dots{} instead of literal
9669         "...".
9670         * manual/stdio.texi (__fpending): Separate initial words of
9671         paragraph from @deftypefun line.
9672         * manual/syslog.texi (syslog): Use @dots{} instead of literal
9673         "...".
9674         (vsyslog): Use @var{} on parameter names.
9675         * manual/terminal.texi (stty): Use @var{} on parameter names.
9676         * manual/users.texi (getutmp): Use @var{} on parameter names.
9677         (getutmpx): Likewise.
9679 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9681         [BZ #6884]
9682         * manual/stdio.texi (fopen): Fix typos in description of
9683         ",ccs=STRING".
9685 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
9687         [BZ #4026]
9688         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
9689         get clock_id definition.
9691 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
9693         [BZ #4822]
9694         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
9695         (madvise): Cast every argument to void on its own.
9697 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9699         [BZ #9902]
9700         * manual/startup.texi (Exit Status): Fix typo.
9702 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9704         [BZ #10140]
9705         * manual/examples/argp-ex1.c: Include <stdlib.h>.
9706         * manual/examples/argp-ex2.c: Likewise.
9707         * manual/examples/argp-ex3.c: Likewise.
9709 2012-02-16  Richard Henderson  <rth@redhat.com>
9711         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
9712         * sysdeps/s390/s390-32/initfini.c: Remove.
9713         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
9714         * sysdeps/s390/s390-64/initfini.c: Remove.
9716 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9718         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
9719         compiler output for sysdeps/generic/initfini.c.
9720         * sysdeps/sh/elf/initfini.c: Remove file.
9722 2012-02-16  David S. Miller  <davem@davemloft.net>
9724         [BZ #11494]
9725         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
9727         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
9728         * sysdeps/sparc/crti.S: New file.
9729         * sysdeps/sparc/crtn.S: New file.
9730         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
9731         * sysdeps/sparc/sparc64/Makefile: Likewise.
9733 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
9735         [BZ #3335]
9736         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
9738 2012-02-15  Roland McGrath  <roland@hack.frob.com>
9740         [BZ #4822]
9741         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
9743         * mach/devstream.c (cookie_io_functions_t): Macro removed.
9744         (write, read, close): Likewise.
9745         Patch by Aurelien Jarno <aurelien@aurel32.net>.
9747 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
9749         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
9750         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
9751         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
9752         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
9753         <bits/signalfd.h>.
9754         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
9755         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9756         bits/signalfd.h.
9758 2012-02-14  Marek Polacek  <polacek@redhat.com>
9760         * sysdeps/x86_64/crti.S: New file.
9761         * sysdeps/x86_64/crtn.S: New file.
9762         * sysdeps/x86_64/elf/initfini.c: Remove file.
9764 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
9766         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
9767         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
9768         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
9769         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
9770         <bits/inotify.h>.
9771         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
9772         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9773         bits/inotify.h.
9775 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
9777         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
9778         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
9779         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
9780         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
9781         <bits/eventfd.h>.
9782         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
9783         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9784         bits/eventfd.h.
9786 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
9788         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
9789         __feraiseexcept instead of feraiseexcept.
9791         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
9792         nanosleep invocations.
9793         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
9794         strings, and add error checking for a nanosleep invocations.
9796 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9798         Replace FSF snail mail address with URLs, as per GNU coding standards.
9799         Most of the snail mail addresses were wrong anyway, and omitting
9800         them makes the source code easier to maintain.  Almost all of the
9801         changes are to license notices and to locale LC_IDENTIFICATION
9802         addresses, except for this one:
9803         * manual/libc.texinfo: In "Published by", give the FSF's URL,
9804         not its snail mail address.
9806 2012-02-09  Richard Henderson  <rth@twiddle.net>
9808         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
9809         of kernel-features.h.
9811         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
9813 2012-02-08  Marek Polacek  <polacek@redhat.com>
9815         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
9816         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
9817         * sysdeps/gnu/_G_config.h: Likewise.
9818         * sysdeps/generic/_G_config.h: Likewise.
9820 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
9822         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
9823         tests.
9824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9826         * sysdeps/powerpc/powerpc32/crti.S: New file.
9827         * sysdeps/powerpc/powerpc32/crtn.S: New file.
9828         * sysdeps/powerpc/powerpc64/crti.S: New file.
9829         * sysdeps/powerpc/powerpc64/crtn.S: New file.
9831         * Makeconfig (have-initfini): Don't set.
9832         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
9833         * configure.in (nopic_initfini): Don't substitute.
9834         * config.h.in (HAVE_INITFINI): Don't #undef.
9835         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
9836         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
9838 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
9840         Support crti.S and crtn.S provided directly by architectures.
9841         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
9842         [crti.S in sysdirs] (omit-deps): Likewise.
9843         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
9844         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
9845         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
9846         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
9847         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
9848         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
9849         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
9850         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
9851         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
9852         compiler output for sysdeps/generic/initfini.c.
9853         * sysdeps/i386/elf/Makefile: Remove file.
9854         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
9856 2012-02-07  Marek Polacek  <polacek@redhat.com>
9858         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
9859         * sysdeps/gnu/_G_config.h: Likewise.
9860         * sysdeps/mach/hurd/_G_config.h: Likewise.
9862 2012-02-07  Marek Polacek  <polacek@redhat.com>
9864         * math/Makefile (tests): Add tst-CMPLX2.
9865         * math/tst-CMPLX2.c: New file.
9867 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
9869         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9871         * math/libm-test.inc (jn_test): Add missing L suffix.
9873 2012-02-06  Marek Polacek  <polacek@redhat.com>
9875         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
9876         * sysdeps/i386/fpu/e_powf.S: Likewise.
9877         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9878         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9879         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9880         * sysdeps/i386/fpu/e_pow.S: Likewise.
9881         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
9882         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9883         * sysdeps/i386/fpu/s_expm1.S: Likewise.
9884         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
9885         * sysdeps/i386/fpu/e_log2.S: Likewise.
9886         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9887         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9888         * sysdeps/i386/fpu/e_powl.S: Likewise.
9889         * sysdeps/i386/fpu/s_log1p.S: Likewise.
9890         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9891         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
9892         * sysdeps/i386/fpu/e_logl.S: Likewise.
9893         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
9894         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
9895         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
9896         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
9897         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9898         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9899         * sysdeps/i386/fpu/e_log.S: Likewise.
9900         * sysdeps/i386/fpu/s_cexp.S: Likewise.
9901         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9902         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
9903         * sysdeps/i386/fpu/e_logf.S: Likewise.
9904         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9905         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9906         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
9907         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
9908         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9909         * sysdeps/i386/fpu/e_log10.S: Likewise.
9910         * sysdeps/i386/fpu/s_frexp.S: Likewise.
9911         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9912         * sysdeps/i386/fpu/s_asinh.S: Likewise.
9913         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
9914         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9915         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
9916         * sysdeps/i386/asm-syntax.h: Likewise.
9917         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
9918         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9919         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
9920         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
9921         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
9922         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
9923         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
9924         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
9925         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
9926         * sysdeps/powerpc/sysdep.h: Likewise.
9927         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
9928         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9930 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
9932         [BZ #411]
9933         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
9935 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
9937         * sysdeps/i386/sysdep.h: Include <features.h>.
9938         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
9939         version.
9941 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
9943         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
9944         Define.
9945         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
9946         LOAD_PIC_REG_STR.
9948 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
9950         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
9951         (SETUP_PIC_REG): Use GET_PC_THUNK.
9952         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
9953         macro.
9955 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
9957         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
9958         for non-PIC compilation.
9959         (SETUP_PIC_REG): Add .p2align directive.
9960         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
9961         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
9962         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9963         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9964         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
9965         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9966         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
9967         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9968         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9969         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9970         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9971         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9972         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9973         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9974         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9975         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
9976         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
9977         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9978         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9979         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9980         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9981         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
9982         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9983         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
9984         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
9985         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
9986         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9987         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
9988         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9989         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9990         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9991         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9992         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9993         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9994         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9995         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9996         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9997         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9998         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9999         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10000         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10002 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10004         * math/tst-CMPLX.c: Include <stdio.h>.
10006 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
10008         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
10009         float.
10010         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
10011         * sysdeps/sparc/bits/mathdef.h: Likewise.
10013 2012-01-31  Marek Polacek  <polacek@redhat.com>
10015         * libio/libio.h: Don't define _PARAMS.
10016         * locale/programs/config.h: Don't define PARAMS.
10017         * stdlib/strtol_l.c: Likewise.
10018         (__strtol_l): Remove PARAMS from the prototype.
10020 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
10022         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
10023         names.  Just use the correct names.  Remove unnecessary wrapper
10024         functions.
10025         * malloc/arena.c: Likewise.
10026         * malloc/hooks.c: Likewise.
10028         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
10029         ARENA_TEST says not to.  Simplify test for creation of a new arena.
10030         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
10032 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
10034         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
10035         into tail calls.
10036         (update_get_addr): New function.
10037         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
10038         GET_ADDR_MODULE parameter.
10040 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
10042         * crypt/cert.c: Remove __STDC__ conditionals.
10043         * crypt/crypt-entry.c: Likewise.
10044         * crypt/crypt_util.c: Likewise.
10045         * libio/filedoalloc.c: Likewise.
10046         * libio/fileops.c: Likewise.
10047         * libio/genops.c: Likewise.
10048         * libio/iofclose.c: Likewise.
10049         * libio/iofdopen.c: Likewise.
10050         * libio/iofopen.c: Likewise.
10051         * libio/iofopen64.c: Likewise.
10052         * libio/iogetdelim.c: Likewise.
10053         * libio/iopopen.c: Likewise.
10054         * libio/obprintf.c: Likewise.
10055         * libio/oldfileops.c: Likewise.
10056         * libio/oldiofclose.c: Likewise.
10057         * libio/oldiofdopen.c: Likewise.
10058         * libio/oldiofopen.c: Likewise.
10059         * libio/oldiopopen.c: Likewise.
10060         * libio/wfiledoalloc.c: Likewise.
10061         * libio/wgenops.c: Likewise.
10062         * locale/programs/xmalloc.c: Likewise.
10063         * misc/syslog.c: Likewise.
10064         * stdio-common/xbug.c: Likewise.
10065         * string/memchr.c: Likewise.
10066         * string/memcmp.c: Likewise.
10067         * string/memrchr.c: Likewise.
10068         * string/rawmemchr.c: Likewise.
10069         * sysdeps/posix/getcwd.c: Likewise.
10070         * time/strftime_l.c: Likewise.
10072 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
10074         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
10075         * config.make.in (config-cflags-sse2avx): Define.
10076         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
10077         Fix typo.
10079 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
10081         * scripts/config.guess: Update from upstream config git repository.
10082         * scripts/config.sub: Likewise.
10084 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
10086         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
10087         (EM_NUM): Update.
10088         (R_TILEPRO_*, R_TILEGX_*): New macros.
10090         * scripts/firstversions.awk: Fix bug in version range handling.
10092         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
10094         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
10096         * include/sys/epoll.h: New file.
10097         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
10098         libc_hidden_def.
10100 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
10102         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
10103         Avoid unnecessary __WORDSIZE == 64 test.
10104         (fmaxf): Use VEX format if possible.
10105         (fmax): Likewise.
10106         (fminf): Likewise.
10107         (fmin): Likewise.
10109         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
10110         * math/math_private.h: Remove libc_fegetround* and
10111         libc_fesetround*.
10112         * sysdeps/i386/configure.in: Check for -msse2avx.
10113         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
10114         also if SSE2AVX is defined.
10115         Remove libc_fegetround* and libc_fesetround*.
10116         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
10117         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
10118         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
10119         of HAS_YMM_USABLE.
10120         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10121         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10122         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10123         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10124         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10126         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
10128 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10130         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
10131         size is not set.
10132         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10134 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
10136         [BZ #13618]
10137         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
10138         relocation.
10139         * Makeconfig (libm): Define.
10140         * elf/Makefile: Add rules to build and run tst-relsort1.
10141         * elf/tst-relsort1.c: New file.
10142         * elf/tst-relsort1mod1.c: New file.
10143         * elf/tst-relsort1mod2.c: New file.
10145 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
10147         * math/s_ldexp.c: Remove __STDC__ conditionals.
10148         * math/s_ldexpf.c: Likewise.
10149         * math/s_ldexpl.c: Likewise.
10150         * math/s_nextafter.c: Likewise.
10151         * math/s_nexttowardf.c: Likewise.
10152         * math/s_significand.c: Likewise.
10153         * math/s_significandf.c: Likewise.
10154         * math/s_significandl.c: Likewise.
10155         * math/w_jnl.c: Likewise.
10156         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10157         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10158         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10159         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10160         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10161         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10162         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
10163         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10164         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10165         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10166         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10167         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10168         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10169         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10170         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10171         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10172         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10173         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10174         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10175         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10176         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10177         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10178         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10179         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10180         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10181         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10182         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10183         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10184         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10185         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10186         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10187         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10188         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10189         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10190         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10191         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10192         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10193         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10194         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10195         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10196         * sysdeps/ieee754/k_standard.c: Likewise.
10197         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10198         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10199         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10200         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10201         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10202         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10203         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10204         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10205         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10206         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10207         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10208         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10209         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10210         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10211         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10212         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10213         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10214         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10215         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10216         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10217         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10218         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10219         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10220         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10221         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10222         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10223         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10224         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10225         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10226         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10227         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10228         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
10229         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10230         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10231         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10232         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10233         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10234         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10235         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10236         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10237         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10238         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10239         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10240         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10241         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10242         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
10243         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
10244         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10245         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10246         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10247         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10248         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10249         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10250         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10251         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10252         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10253         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10254         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10255         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10256         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10257         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10258         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10259         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10260         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10261         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10262         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10263         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10264         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10265         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10266         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10267         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10268         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10269         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10270         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10271         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10272         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10273         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10274         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10275         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10276         * sysdeps/ieee754/s_matherr.c: Likewise.
10277         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10278         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10279         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10280         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10282 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
10284         * crypt/md5.h: Remove __STDC__ conditionals.
10285         * libio/libioP.h: Likewise.
10286         * locale/programs/config.h: Likewise.
10287         * sysdeps/generic/sysdep.h: Likewise.
10288         * sysdeps/i386/asm-syntax.h: Likewise.
10289         * sysdeps/s390/asm-syntax.h: Likewise.
10290         * sysdeps/unix/sysdep.h: Likewise.
10291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10294 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
10296         * libio/libio.h: Remove __STDC__ conditionals.
10297         * malloc/obstack.h: Likewise.
10298         * math/complex.h: Likewise.
10299         * math/math.h: Likewise.
10300         * sysdeps/generic/_G_config.h: Likewise.
10301         * sysdeps/gnu/_G_config.h: Likewise.
10302         * sysdeps/mach/hurd/_G_config.h: Likewise.
10303         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10304         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
10305         * sysdeps/sparc/bits/mathdef.h: Likewise.
10307 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
10309         [BZ #13583]
10310         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
10311         Clean up HAS_* macros.
10312         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
10313         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
10314         possible.
10315         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
10316         HAS_AVX.
10317         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10318         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10319         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10320         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10321         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10323 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
10325         * elf/tst-unique3.cc (gets): Remove declaration.
10326         * elf/tst-unique3lib.cc (gets): Likewise.
10327         * elf/tst-unique3lib2.cc (gets): Likewise.
10328         * elf/tst-unique4.cc (gets): Likewise.
10330 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
10332         * include/stdio.h: Add C++ protection.  Add gets declarations and
10333         definitions.
10334         * debug/tst-chk1.c: Don't declare gets here.
10335         * stdio-common/tst-gets.c: Likewise.
10337 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
10339         * posix/glob: Remove directory.
10341 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
10343         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
10345 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
10347         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
10348         of the non-standard EPFNOSUPPORT.
10350 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10352         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
10353         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
10354         ANYWHERE set to 1 only on KERN_NO_SPACE error.
10356 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
10358         * wcsmbs/uchar.h: Test __STDC_VERSION__.
10360 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
10362         * nscd/aicache.c (addhstaiX): Do not cache negative results of
10363         transient errors.
10364         * nscd/grpcache.c (cache_addgr): Likewise.
10365         * nscd/hstcache.c (cache_addhst): Likewise.
10366         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10367         * nscd/pwdcache.c (cache_addpw): Likewise.
10368         * nscd/servicescache.c (cache_addserv): Likewise.
10370 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
10372         * malloc/malloc.c: Various cleanups.
10373         * malloc/hooks.c: Likewise.
10375         * stdlib/Makefile (tests): Add bug-fmtmsg1.
10376         * stdlib/bug-fmtmsg1.c: New file.
10378         * stdlib/fmtmsg.c (init): Add missing unlock.
10379         Patch by Peng Haitao <penght@cn.fujitsu.com>.
10381 2012-01-12  Marek Polacek  <polacek@redhat.com>
10383         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
10384         and _GNU_SOURCE.
10386 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
10388         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
10389         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
10390         macro to ensure uniqueness of label name.
10391         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
10392         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
10394 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
10396         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
10398         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
10399         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10400         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10401         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
10403 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
10405         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
10407         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
10408         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10409         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10411         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
10413         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
10414         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10415         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10416         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
10418         * math/bits/math-finite.h: Add ldexp support.
10420 2012-01-10  Marek Polacek  <polacek@redhat.com>
10422         * locale/programs/localedef.h (show_archive_content): Add noreturn
10423         attribute.
10425 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
10427         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
10429 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10431         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
10433         * io/Makefile (headers): Add bits/poll2.h.
10435 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
10437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
10438         typo #include statement.
10440 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10442         * include/sys/cdefs.h: Define __attribute_alloc_size.
10443         * catgets/gencat.c: Add alloc_size attribute and apply consistently
10444         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
10445         * elf/pldd.c: Likewise.
10446         * iconv/iconv_charmap.c: Likewise.
10447         * iconv/iconvconfig.c: Likewise.
10448         * iconv/strtab.c: Likewise.
10449         * locale/programs/locale.c: Likewise.
10450         * locale/programs/localedef.h: Likewise.
10451         * locale/programs/simple-hash.c: Likewise.
10452         * nscd/nscd.h: Likewise.
10453         * nss/makedb.c: Likewise.
10454         * sysdeps/generic/ldconfig.h: Likewise.
10455         * locale/programs/localedef.c: Remove xmalloc prototype.
10456         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
10458 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10460         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
10461         appropriate.
10463 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10465         * math/Makefile (tests): Add tst-CMPLX.
10466         * math/tst-CMPLX.c: New file.
10468         * math/complex.h (CMPLXL): Fix typo.
10470         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
10471         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
10472         GLIBC_2.16.
10473         * debug/tst-chk1.c: Add poll and ppoll tests.
10474         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
10475         * include/sys/poll.h: Add hidden proto for ppoll.
10476         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
10477         * sysdeps/mach/hurd/ppoll.c: Likewise.
10478         * io/ppoll.c: Likewise.
10479         * debug/poll_chk.c: New file.
10480         * debug/ppoll_chk.c: New file.
10481         * include/bits/poll2.h: New file.
10482         * io/bits/poll2.h: New file.
10484         [BZ #1350]
10485         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
10487         * configure.in: static is always set to yes.  Remove.
10488         * config.make.in: Don't set build-static.
10489         * Makeconfig: Remove use of build-static.
10490         * dlfcn/Makefile: Likewise.
10491         * elf/Makefile: Likewise.
10492         * math/Makefile: Likewise.
10493         * misc/Makefile: Likewise.
10494         * nptl/Makefile: Likewise.
10495         * sysdeps/mach/hurd/Makefile: Likewise.
10497         * configure.in: PWD_P is not used anymore.
10498         * config.make.in: Remove PWD_P entry.
10500         * configure.in: Remove last remnants of RANLIB.
10501         No need to check for signed size_t anymore.
10502         Don't set libc_commonpagesize and libc_relro_required here for Alpha
10503         and IA-64.
10504         Remove __builtin_expect test because we require at least gcc 3.4.
10505         * aclocal.m4: Likewise.
10507         * wcsmbs/mbrtoc16.c: Implement using towc function.
10508         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
10509         * wcsmbs/wcsmbsload.c: Likewise.
10510         * iconv/gconv_simple.c: Likewise.
10511         * iconv/gconv_int.h: Likewise.
10512         * iconv/gconv_builtin.h: Likewise.
10513         * iconv/iconv_prog.c: Remove CHAR16 handling.
10515         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
10517         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
10519         * configure.in: Remove --with-elf and --enable-bounded options.
10520         Dont set base_machine for ia64.  More non-ELF conditions removed.
10521         Remove testing and setting of leading underscore information.
10522         * config.make.in (build-bounded): Set to no.
10523         * config.h.in: Remove NO_UNDERSCORES entry.
10524         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
10525         them.
10526         * csu/start.c: Remove !NO_UNDERSCORE code.
10527         * locale/localeinfo.h: Likewise.
10528         * sysdeps/generic/machine-gmon.h: Likewise.
10529         * sysdeps/generic/sysdep.h: Likewise.
10530         * sysdeps/i386/sysdep.h: Likewise.
10531         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
10532         * sysdeps/mach/sysdep.h: Likewise.
10533         * sysdeps/s390/s390-32/sysdep.h: Likewise.
10534         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10535         * sysdeps/sh/sysdep.h: Likewise.
10536         * sysdeps/sparc/sparc32/alloca.S: Likewise.
10537         * sysdeps/unix/i386/sysdep.S: Likewise.
10538         * sysdeps/unix/sparc/start.c: Likewise.
10539         * sysdeps/unix/sparc/sysdep.S: Likewise.
10540         * sysdeps/unix/sparc/sysdep.h: Likewise.
10541         * sysdeps/unix/start.c: Likewise.
10542         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10543         * sysdeps/x86_64/sysdep.h: Likewise.
10545 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
10547         [BZ #13553]
10548         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
10549         for non-gcc.
10550         * argp/argp-fmtstream.h: Use const instead __const.
10551         * argp/argp.h: Likewise.
10552         * assert/assert.h: Likewise.
10553         * bits/fenv.h: Likewise.
10554         * bits/sched.h: Likewise.
10555         * bits/sigset.h: Likewise.
10556         * bits/sigthread.h: Likewise.
10557         * catgets/nl_types.h: Likewise.
10558         * conform/data/pthread.h-data: Likewise.
10559         * crypt/crypt-private.h: Likewise.
10560         * crypt/crypt.h: Likewise.
10561         * crypt/crypt_util.c: Likewise.
10562         * ctype/ctype.h: Likewise.
10563         * debug/execinfo.h: Likewise.
10564         * debug/mbsnrtowcs_chk.c: Likewise.
10565         * debug/mbsrtowcs_chk.c: Likewise.
10566         * debug/wcsnrtombs_chk.c: Likewise.
10567         * debug/wcsrtombs_chk.c: Likewise.
10568         * debug/wcstombs_chk.c: Likewise.
10569         * dirent/dirent.h: Likewise.
10570         * dlfcn/dlfcn.h: Likewise.
10571         * elf/neededtest4.c: Likewise.
10572         * grp/grp.h: Likewise.
10573         * gshadow/gshadow.h: Likewise.
10574         * iconv/gconv.h: Likewise.
10575         * iconv/gconv_int.h: Likewise.
10576         * iconv/gconv_simple.c: Likewise.
10577         * iconv/iconv.h: Likewise.
10578         * iconv/loop.c: Likewise.
10579         * iconv/skeleton.c: Likewise.
10580         * include/aio.h: Likewise.
10581         * include/aliases.h: Likewise.
10582         * include/argz.h: Likewise.
10583         * include/arpa/inet.h: Likewise.
10584         * include/assert.h: Likewise.
10585         * include/dirent.h: Likewise.
10586         * include/dlfcn.h: Likewise.
10587         * include/execinfo.h: Likewise.
10588         * include/fcntl.h: Likewise.
10589         * include/fenv.h: Likewise.
10590         * include/glob.h: Likewise.
10591         * include/grp.h: Likewise.
10592         * include/libintl.h: Likewise.
10593         * include/mntent.h: Likewise.
10594         * include/netdb.h: Likewise.
10595         * include/pwd.h: Likewise.
10596         * include/rpc/netdb.h: Likewise.
10597         * include/sched.h: Likewise.
10598         * include/search.h: Likewise.
10599         * include/shadow.h: Likewise.
10600         * include/signal.h: Likewise.
10601         * include/stdio.h: Likewise.
10602         * include/stdlib.h: Likewise.
10603         * include/string.h: Likewise.
10604         * include/sys/socket.h: Likewise.
10605         * include/sys/stat.h: Likewise.
10606         * include/sys/statfs.h: Likewise.
10607         * include/sys/statvfs.h: Likewise.
10608         * include/sys/syslog.h: Likewise.
10609         * include/sys/time.h: Likewise.
10610         * include/sys/uio.h: Likewise.
10611         * include/time.h: Likewise.
10612         * include/unistd.h: Likewise.
10613         * include/utmp.h: Likewise.
10614         * include/wchar.h: Likewise.
10615         * include/wctype.h: Likewise.
10616         * inet/aliases.h: Likewise.
10617         * inet/arpa/inet.h: Likewise.
10618         * inet/netinet/ether.h: Likewise.
10619         * inet/netinet/in.h: Likewise.
10620         * intl/libintl.h: Likewise.
10621         * io/bits/fcntl2.h: Likewise.
10622         * io/fcntl.h: Likewise.
10623         * io/ftw.h: Likewise.
10624         * io/sys/poll.h: Likewise.
10625         * io/sys/stat.h: Likewise.
10626         * io/sys/statfs.h: Likewise.
10627         * io/sys/statvfs.h: Likewise.
10628         * io/utime.h: Likewise.
10629         * libio/bits/stdio.h: Likewise.
10630         * libio/bits/stdio2.h: Likewise.
10631         * libio/libio.h: Likewise.
10632         * libio/libioP.h: Likewise.
10633         * libio/stdio.h: Likewise.
10634         * locale/lc-ctype.c: Likewise.
10635         * locale/locale.h: Likewise.
10636         * login/utmp.h: Likewise.
10637         * malloc/arena.c: Likewise.
10638         * malloc/malloc.c: Likewise.
10639         * malloc/malloc.h: Likewise.
10640         * malloc/mcheck.c: Likewise.
10641         * malloc/mtrace.c: Likewise.
10642         * math/bits/mathcalls.h: Likewise.
10643         * math/fenv.h: Likewise.
10644         * math/math_private.h: Likewise.
10645         * misc/bits/error.h: Likewise.
10646         * misc/bits/syslog.h: Likewise.
10647         * misc/err.h: Likewise.
10648         * misc/error.h: Likewise.
10649         * misc/fstab.h: Likewise.
10650         * misc/mntent.h: Likewise.
10651         * misc/regexp.h: Likewise.
10652         * misc/search.h: Likewise.
10653         * misc/sgtty.h: Likewise.
10654         * misc/sys/mman.h: Likewise.
10655         * misc/sys/syslog.h: Likewise.
10656         * misc/sys/uio.h: Likewise.
10657         * misc/sys/xattr.h: Likewise.
10658         * misc/ttyent.h: Likewise.
10659         * nis/rpcsvc/ypclnt.h: Likewise.
10660         * nss/nss.h: Likewise.
10661         * posix/bits/unistd.h: Likewise.
10662         * posix/fnmatch.h: Likewise.
10663         * posix/glob.h: Likewise.
10664         * posix/sched.h: Likewise.
10665         * posix/spawn.h: Likewise.
10666         * posix/sys/wait.h: Likewise.
10667         * posix/unistd.h: Likewise.
10668         * posix/wordexp.h: Likewise.
10669         * pwd/pwd.h: Likewise.
10670         * resolv/netdb.h: Likewise.
10671         * resource/sys/resource.h: Likewise.
10672         * rt/aio.h: Likewise.
10673         * rt/bits/mqueue2.h: Likewise.
10674         * rt/mqueue.h: Likewise.
10675         * shadow/shadow.h: Likewise.
10676         * signal/signal.h: Likewise.
10677         * socket/send.c: Likewise.
10678         * socket/sendto.c: Likewise.
10679         * socket/sys/socket.h: Likewise.
10680         * stdio-common/printf.h: Likewise.
10681         * stdlib/bits/stdlib.h: Likewise.
10682         * stdlib/fmtmsg.h: Likewise.
10683         * stdlib/monetary.h: Likewise.
10684         * stdlib/stdlib.h: Likewise.
10685         * stdlib/ucontext.h: Likewise.
10686         * streams/stropts.h: Likewise.
10687         * string/argz.h: Likewise.
10688         * string/bits/string2.h: Likewise.
10689         * string/string.h: Likewise.
10690         * string/strings.h: Likewise.
10691         * sunrpc/rpc/auth.h: Likewise.
10692         * sunrpc/rpc/auth_des.h: Likewise.
10693         * sunrpc/rpc/clnt.h: Likewise.
10694         * sunrpc/rpc/netdb.h: Likewise.
10695         * sunrpc/rpc/pmap_clnt.h: Likewise.
10696         * sunrpc/rpc/xdr.h: Likewise.
10697         * sysdeps/generic/inttypes.h: Likewise.
10698         * sysdeps/generic/net/if.h: Likewise.
10699         * sysdeps/generic/sys/swap.h: Likewise.
10700         * sysdeps/gnu/net/if.h: Likewise.
10701         * sysdeps/gnu/utmpx.h: Likewise.
10702         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
10703         * sysdeps/i386/i486/bits/string.h: Likewise.
10704         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
10705         * sysdeps/s390/bits/string.h: Likewise.
10706         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
10707         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
10708         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10709         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
10710         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10711         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10712         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10713         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
10714         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
10715         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
10716         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
10717         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
10718         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
10719         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
10720         * sysdeps/unix/sysv/linux/readv.c: Likewise.
10721         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
10722         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
10723         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10724         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
10725         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
10726         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
10727         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
10728         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
10729         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
10730         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
10731         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
10732         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
10733         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10734         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
10735         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
10736         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
10737         * sysvipc/sys/ipc.h: Likewise.
10738         * sysvipc/sys/msg.h: Likewise.
10739         * sysvipc/sys/sem.h: Likewise.
10740         * sysvipc/sys/shm.h: Likewise.
10741         * termios/termios.h: Likewise.
10742         * time/sys/time.h: Likewise.
10743         * time/time.h: Likewise.
10744         * wcsmbs/bits/wchar2.h: Likewise.
10745         * wcsmbs/uchar.h: Likewise.
10746         * wcsmbs/wchar.h: Likewise.
10747         * wctype/wctype.h: Likewise.
10749         [BZ #13551]
10750         * Makeconfig: Remove all but ELF support including AIX support.
10751         * Makerules: Likewise.
10752         * config.h.in: Likewise.
10753         * config.make.in: Likewise.
10754         * configure: Likewise.
10755         * configure.in: Likewise.
10756         * csu/Makefile: Likewise.
10757         * csu/version.c: Likewise.
10758         * debug/Makefile: Likewise.
10759         * dlfcn/Makefile: Likewise.
10760         * elf/Makefile: Likewise.
10761         * extra-lib.mk: Likewise.
10762         * iconv/Makefile: Likewise.
10763         * include/libc-symbols.h: Likewise.
10764         * include/shlib-compat.h: Likewise.
10765         * resolv/Makefile: Likewise.
10766         * resolv/res_libc.c: Likewise.
10767         * rt/Makefile: Likewise.
10768         * sysdeps/i386/asm-syntax.h: Likewise.
10769         * sysdeps/i386/sysdep.h: Likewise.
10770         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
10771         * sysdeps/mach/sysdep.h: Likewise.
10772         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
10773         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
10774         * sysdeps/s390/asm-syntax.h: Likewise.
10775         * sysdeps/s390/s390-32/sysdep.h: Likewise.
10776         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10777         * sysdeps/sh/sysdep.h: Likewise.
10778         * sysdeps/unix/sparc/sysdep.h: Likewise.
10779         * sysdeps/wordsize-32/divdi3.c: Likewise.
10780         * sysdeps/x86_64/sysdep.h: Likewise.
10782         * argp/Versions: Remove _argp_unlock_xxx.
10784         [BZ #13559]
10785         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
10786         * abilist/libBrokenLocale.abilist: Likewise.
10787         * abilist/libanl.abilist: Likewise.
10788         * abilist/libc.abilist: Likewise.
10789         * abilist/libcrypt.abilist: Likewise.
10790         * abilist/libdl.abilist: Likewise.
10791         * abilist/libm.abilist: Likewise.
10792         * abilist/libnsl.abilist: Likewise.
10793         * abilist/libpthread.abilist: Likewise.
10794         * abilist/libresolv.abilist: Likewise.
10795         * abilist/librt.abilist: Likewise.
10796         * abilist/libthread_db.abilist: Likewise.
10797         * abilist/libutil.abilist: Likewise.
10798         * abilist/libnss_db.abilist: New file.
10800         * scripts/abilist.awk: Add support for indirect functions.
10802         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
10804         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
10806         * shlib-versions: Remove entries for ports architectures.
10808         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
10809         files in ports.
10810         * elf/stackguard-macros.h: Remove support for IA-64.
10811         * elf/tst-auditmod1.c: Likewise.
10812         * sysdeps/generic/ldsodefs.h: Likewise.
10814         * sysdeps/unix/sysv/linux/configure.in: Ports should define
10815         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
10816         configure files.
10818         [BZ #13552]
10819         * configure.in: Remove --enable-omitfp support.
10820         * FAQ.in: Adjust.
10821         * config.make.in: Likewise.
10822         * Makeconfig: Likewise.
10823         * manual/install.texi: Likewise.
10825         In case anyone cares, the IA-64 architecture could move to ports.
10826         * sysdeps/ia64/*: Removed.
10827         * sysdeps/unix/sysv/linux/ia64/*: Removed.
10828         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
10830         [BZ #13555]
10831         * configure.in: Remove entries for unsupported architectures.
10833         [BZ #13533]
10834         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
10835         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
10836         routines.
10837         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
10838         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
10839         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
10840         fall back to using wcrtomb.
10841         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
10842         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
10843         renaming.
10844         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
10845         * wcsmbs/tst-c16c32-1.c: New file.
10847         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
10848         local variable.
10850         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
10852         * elf/tst-unique3.cc: Add explicit declaration of gets.
10853         * elf/tst-unique3lib.cc: Likewise.
10854         * elf/tst-unique3lib2.cc: Likewise.
10855         * elf/tst-unique4.cc: Likewise.
10857         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
10859 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
10861         [BZ #13566]
10862         * assert/assert.h (static_assert): Don't define for C++.
10863         * libio/stdio.h (gets): Do declare for C++ <= C++11.
10864         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
10866 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
10868         * iconv/loop.c (single loop): Fix assertion in storing of
10869         remaining bytes.
10871         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
10873 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
10875         * posix/getconf.c: Update copyright year.
10876         * nss/getent.c: Likewise.
10877         * nss/makedb.c: Likewise.
10878         * iconv/iconvconfig.c: Likewise.
10879         * iconv/iconv_prog.c: Likewise.
10880         * elf/ldconfig.c: Likewise.
10881         * elf/pldd.c: Likewise.
10882         * elf/sotruss.ksh: Likewise.
10883         * catgets/gencat.c: Likewise.
10884         * csu/version.c: Likewise.
10885         * elf/ldd.bash.in: Likewise.
10886         * elf/sprof.c (print_version): Likewise.
10887         * locale/programs/locale.c: Likewise.
10888         * locale/programs/localedef.c: Likewise.
10889         * login/programs/pt_chown.c: Likewise.
10890         * nscd/nscd.c (print_version): Likewise.
10891         * debug/xtrace.sh: Likewise.
10892         * malloc/memusage.sh: Likewise.
10893         * malloc/mtrace.pl: Likewise.
10894         * debug/catchsegv.sh: Likewise.
10896 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
10898         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
10899         pure attribute.
10901 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
10903         [BZ #13533]
10904         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
10905         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
10906         transformations.
10907         * iconv/gconv_int.h: Likewise.
10908         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
10909         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
10910         from libc for GLIBC_2.16.
10911         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
10912         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
10913         * wcsmbs/uchar.h: Really define mbstate_t.
10914         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
10915         * wcsmbs/c16rtomb.c: New file.
10916         * wcsmbs/mbrtoc16.c: New file.
10917         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
10918         for C/POSIX locale.
10919         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
10920         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
10922         * wcsmbs/wchar.h: Add missing __restrict.
10924 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
10926         [BZ #13532]
10927         * time/Makefile (routines): Add timespec_get.
10928         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
10929         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
10930         timespec for ISO C11.
10931         * time/timespec_get.c: New file.
10932         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
10933         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
10935         [BZ #13531]
10936         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
10937         * stdlib/stdlib.h: Declare aligned_alloc.
10938         * Versions.def: Add GLIBC_2.16 for libc.
10939         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
10941         [BZ 13527]
10942         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
10943         ISO C11.
10945         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
10946         code.
10948         [BZ #13528]
10949         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
10951         [BZ #13529]
10952         * assert/assert.h (static_assert): Define.
10954         * version.h: Update for 2.16 development version.
10956         [BZ #13526]
10957         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
10958         _ISOC11_SOURCE.
10960         * version.h (RELEASE): Bump for 2.15 release.
10961         * include/features.h (__GLIBC_MINOR__): Bump to 15.
10963         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
10964         Patch by Marek Polacek <mpolacek@redhat.com>.
10966         * bits/byteswap.h: Protect long long constants with __extension__.
10967         * sysdeps/i386/bits/byteswap.h: Likewise.
10968         * sysdeps/ia64/bits/byteswap.h: Likewise.
10969         * sysdeps/s390/bits/byteswap.h: Likewise.
10970         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10972 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10974         [BZ #13540]
10975         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
10976         destination buffer.
10977         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
10979 2011-12-23  Marek Polacek  <polacek@redhat.com>
10981         * elf/dl-addr.c (determine_info): Add inline keyword.
10982         * elf/tst-auditmod4b.c (check_avx): Likewise.
10983         * elf/tst-auditmod6b.c (check_avx): Likewise.
10984         * elf/tst-auditmod6c.c (check_avx): Likewise.
10985         * elf/tst-auditmod7b.c (check_avx): Likewise.
10987 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
10989         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
10990         !__SSE_MATH__.
10992 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10994         [BZ #13540]
10995         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
10996         processing for last bytes.
10998 2011-08-06  Bruno Haible  <bruno@clisp.org>
11000         [BZ #13061]
11001         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
11002         U+0385, not to U+1FEE.
11004         [BZ #13062]
11005         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
11006         entry for U+00A5 U+0301.
11008 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
11010         [BZ #13166]
11011         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
11012         buffer for the output is too small.
11014         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
11015         optimization.
11017         [BZ #13185]
11018         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
11019         SSE flags if possible.
11021 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11023         [BZ #13540]
11024         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
11025         processing for last bytes.
11027 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
11029         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
11030         (syscall-list-default-options, syscall-list-default-condition)
11031         (syscall-list-includes): Define.
11032         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
11033         list of ABIs and options and #if conditions for each ABI.  Do not
11034         handle common syscalls between ABIs specially.
11035         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
11036         Remove.
11037         (syscall-list-variants, syscall-list-32bit-options)
11038         (syscall-list-32bit-condition, syscall-list-64bit-options)
11039         (syscall-list-64bit-condition): Define.
11040         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
11041         (syscall-list-variants, syscall-list-32bit-options)
11042         (syscall-list-32bit-condition, syscall-list-64bit-options)
11043         (syscall-list-64bit-condition): Define.
11044         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
11045         Remove.
11046         (syscall-list-variants, syscall-list-32bit-options)
11047         (syscall-list-32bit-condition, syscall-list-64bit-options)
11048         (syscall-list-64bit-condition): Define.
11049         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
11050         Remove.
11051         (syscall-list-variants, syscall-list-32bit-options)
11052         (syscall-list-32bit-condition, syscall-list-64bit-options)
11053         (syscall-list-64bit-condition): Define.
11055 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
11057         * locale/iso-639.def: Add brx entry.
11059         [BZ #13328]
11060         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
11061         Proposed by Mariusz_Cukr <marcukr@op.pl>.
11063         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
11064         __feraiseexcept_renamed.
11066 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
11068         [BZ #13538]
11069         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
11070         EPOLLET with unsigned values.
11071         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11072         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
11074         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
11075         to large cancellation.
11076         * math/s_cacoshf.c: Likewise.
11077         * math/s_cacoshl.c: Likewise.
11079 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
11081         [BZ #13305]
11082         [BZ #12786]
11083         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
11084         * math/s_cacoshf.c: Likewise.
11085         * math/s_cacoshl.c: Likewise.
11087 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
11089         [BZ #13439]
11090         * iconv/gconv.h: Define __GCONV_SWAP.
11091         * iconvdata/unicode.c: The swap bit must be stored in __flags.
11092         * iconvdata/utf-16.c: Likewise.
11093         * iconvdata/utf-32.c: Likewise.
11095 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
11097         [BZ #13524]
11098         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
11099         numerator after shifting it by one limb.
11101 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
11103         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
11104         under [__USE_EXTERN_INLINES].
11106 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
11108         [BZ #13446]
11109         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
11111 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11113         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
11114         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
11115         optimized code.
11116         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
11117         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
11118         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
11119         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
11120         for strncasecmp/strncasecmp_l compilation.
11121         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
11122         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
11124 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
11126         [BZ #13484]
11127         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
11128         of __asm__.
11130 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
11132         [BZ #13506]
11133         * time/tzfile.c (__tzfile_read): Check values from file header.
11135 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
11137         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
11138         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
11139         * powerpc/powerpc32/dl-start.S: Likewise.
11140         * powerpc/powerpc32/elf/start.S: Likewise.
11141         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11142         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
11143         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
11144         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
11145         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
11146         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
11147         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
11148         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11149         * powerpc/powerpc32/fpu/s_round.S: Likewise.
11150         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
11151         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
11152         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
11153         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
11154         * powerpc/powerpc32/memset.S: Likewise.
11155         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
11156         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
11157         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
11158         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
11159         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
11160         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
11161         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
11162         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
11163         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
11164         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
11165         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
11166         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11167         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11169 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11171         * math/libm-test.inc: Added more nearbyint tests.
11172         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
11173         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
11174         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
11175         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
11177 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
11179         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
11180         FD_CLOEXEC.
11182 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11184         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
11185         Add wcscpy-ssse3 wcscpy-c.
11186         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
11187         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
11188         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
11189         * sysdeps/x86_64/wcschr.S: New file.
11190         * sysdeps/x86_64/wcsrchr.S: New file.
11191         * string/test-strcmp.c: Remove checking of wcscmp function for
11192         wrong alignments.
11193         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
11194         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
11195         wcsrchr-sse2 wcsrchr-c.
11196         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
11197         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
11198         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
11199         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
11200         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
11201         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
11202         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
11203         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
11204         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
11205         * wcsmbc/wcschr.c (WCSCHR): New macro.
11207 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11209         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
11210         * wcsmbs/test-wcsrchr.c: New file.
11211         * string/test-strrchr.c: Add wcsrchr support.
11212         (WIDE): New macro.
11213         * wcsmbs/test-wcscpy.c: New file.
11214         * string/test-strcpy.c: Add wcscpy support.
11215         (WIDE): New macro.
11217 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
11219         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
11220         the inner loop.
11222 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
11224         [BZ #13472]
11225         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
11227 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
11229         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
11230         Minor optimizations.
11232         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
11233         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
11234         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
11236 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
11238         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
11239         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
11240         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
11241         for gcc to avoid warnings.
11242         * inet/Makefile (tests): Add tst-checks.
11243         * inet/tst-checks.c: New file.
11245         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
11246         warning.
11248         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
11249         __wmemcmp_sse2.
11251         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
11252         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
11254         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
11256 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
11258         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
11259         problem.
11261         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
11263 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
11265         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
11266         conditional on GCC version.
11267         (__arch_compare_and_exchange_val_8_acq)
11268         (__arch_compare_and_exchange_val_16_acq)
11269         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
11270         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
11271         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
11273 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
11275         * sysdeps/sh/backtrace.c: New file.
11277 2011-12-02  Andreas Schwab  <schwab@redhat.com>
11279         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
11280         parenthesis.
11282 2011-12-01  Andreas Schwab  <schwab@redhat.com>
11284         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
11285         falling back to utime.
11287 2011-11-30  Andreas Schwab  <schwab@redhat.com>
11289         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
11290         expectations for float.
11292 2011-11-29  Andreas Schwab  <schwab@redhat.com>
11294         * locale/weight.h (findidx): Add parameter len.
11295         * locale/weightwc.h (findidx): Likewise.
11296         * posix/fnmatch_loop.c (FCT): Adjust caller.
11297         * posix/regcomp.c (build_equiv_class): Likewise.
11298         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
11299         * posix/regexec.c (check_node_accept_bytes): Likewise.
11300         * string/strcoll_l.c (STRCOLL): Likewise.
11301         * string/strxfrm_l.c (STRXFRM): Likewise.
11303 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
11305         * Makefile.in: Remove CVSOPT handling.
11306         * configure.in: Remove use of AC_REVISION.
11307         * iconvdata/Makefile (distribute): No need to filter out CVS.
11308         * scripts/list-sources.sh: Remove CVS, subversion and monotone
11309         handling.
11311 2011-11-16  Andreas Schwab  <schwab@redhat.com>
11313         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
11314         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
11315         [USE_AS_STRNCASECMP_L]: Likewise.
11316         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
11317         NO_TLS_DIRECT_SEG_REFS.
11318         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
11319         Fix argument offsets for non-PIC.
11320         [USE_AS_STRNCASECMP_L]: Likewise.
11321         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
11322         NO_TLS_DIRECT_SEG_REFS.
11324 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
11326         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
11327         O_CLOEXEC.
11328         * locale/loadlocale.c (_nl_load_locale): Likewise.
11330 2011-11-15  Andreas Schwab  <schwab@redhat.com>
11332         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
11333         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
11334         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
11335         (SYSCALL_GETTIME): Set errno on error.
11337         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
11338         count references to noai6ai_cached.
11340 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
11342         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
11344         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
11345         FD_CLOEXEC for /proc/self/maps.
11347         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
11348         FD_CLOEXEC for /proc/meminfo.
11350         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
11351         gai.conf.
11353         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
11354         FD_CLOEXEC for given file.
11356         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
11358         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
11359         FD_CLOEXEC for /etc/hosts.
11360         (_gethtent): Likewise.
11362         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
11364         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
11365         cancellation and set FD_CLOEXEC for /etc/netgroup.
11367         * nss/nss_files/files-key.c (search): Don't allow cancellation when
11368         reading /etc/publickey.
11370         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
11371         allow cancellation when reading /etc/group.
11373         * nss/nss_files/files-alias.c (internal_setent): Don't allow
11374         cancellation.
11375         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
11377         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
11378         when using data file.
11380         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
11382         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
11383         (write_nis_obj): Use "c" and "e" in fopen.
11385         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
11387         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
11389         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
11391         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
11393         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
11394         locale.alias.
11396         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
11398         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
11400         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
11402         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
11403         file parsing and set FD_CLOEXEC.
11405 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
11407         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
11409 2011-11-14  Andreas Schwab  <schwab@redhat.com>
11411         * malloc/arena.c (arena_get2): Don't call reused_arena when
11412         _int_new_arena failed.
11414 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
11416         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
11417         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
11418         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
11419         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11420         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11421         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
11422         to compile strcasecmp and strncasecmp.
11423         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
11424         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
11426         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
11428 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
11430         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
11431         locale-defines.sym to gen-as-const-headers.
11432         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
11433         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
11434         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
11435         to compile strcasecmp and strncasecmp.
11436         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
11437         strcasecmp_l and strncasecmp_l.
11438         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
11439         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
11440         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
11441         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
11442         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
11443         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
11444         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
11445         * sysdeps/i386/i686/multiarch/strncase.S: New file.
11446         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
11447         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
11448         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
11450 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
11452         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
11453         result of SYSDEP_GETTIME_CPU to retval.
11454         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
11455         parameter list to macro.  Remove trailing semicolon.  Adjust users.
11457         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
11458         variable.
11460         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
11461         mantissa words.
11462         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
11464         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
11465         from unused variable.
11467         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
11468         DWARF definitions.
11469         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
11470         for assembling.
11472         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
11473         over namespaces.
11475         * sunrpc/rpc_prot.c (rejected): Fix case value.
11477         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
11478         unsigned long long int to avoid warnings in shift.
11480         * posix/regex_internal.c (re_string_reconstruct): Actually use result
11481         of use of trans.
11482         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
11483         variable tmp.
11485         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
11486         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
11487         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
11489         * nis/nis_table.c (nis_list): Use variable of correct type for
11490         result of __follow_path call.
11492 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11494         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
11495         of math functions ceil, trunc, floor, round, and sqrt, when
11496         avaliable on the platform.
11497         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
11498         name clash.
11499         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11500         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
11501         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
11503 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
11505         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
11506         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
11508 2011-11-11  Roland McGrath  <roland@hack.frob.com>
11510         * include/unistd.h: Fix __readlink return type.
11511         Reported by Chris Metcalf <cmetcalf@tilera.com>.
11513 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
11515         * stdlib/ucontext.h: Undo last change for makecontext.
11517 2011-11-11  Andreas Schwab  <schwab@redhat.com>
11519         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
11521         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
11522         * setjmp/setjmp.h: Mark functions as non-leaf.
11523         * setjmp/bits/setjmp2.h: Likewise.
11524         * stdlib/ucontext.h: Likewise.
11526 2011-11-10  Andreas Schwab  <schwab@redhat.com>
11528         * malloc/arena.c (_int_new_arena): Don't increment narenas.
11529         (reused_arena): Don't check arena limit.
11530         (arena_get2): Atomically check arena limit.
11532 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
11534         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
11535         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
11537         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
11538         instructions.
11540 2011-11-07  Andreas Schwab  <schwab@redhat.com>
11542         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
11543         handler when locking.
11545         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11546         Fix size of allocated buffer.
11548 2011-11-04  Andreas Schwab  <schwab@redhat.com>
11550         [BZ #10103]
11551         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
11552         declarations for long double functions.
11553         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
11555         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
11557 2011-11-03  Andreas Schwab  <schwab@redhat.com>
11559         * nscd/nscd.c (main): Don't start AVC thread until credentials are
11560         installed.
11562         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
11563         is disabled.
11565 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11567         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
11569 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
11571         * include/alloca.h (stackinfo_alloca_round): Define.
11572         (extend_alloca): Use it.
11573         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
11574         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
11575         here.
11577         * scripts/check-local-headers.sh: Ignore libaudit.h.
11579         * nscd/Makefile (extra-objs): Make recursively expanded.
11581 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
11583         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
11584         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
11586         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
11587         * posix/tst-rfc3484-2.c: Likewise.
11588         * posix/tst-rfc3484-3.c: Likewise.
11590         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11591         process_vm_writev.
11592         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
11593         process_vm_writev.
11594         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
11595         process_vm_writev from libc using GLIBC_2.15 version.
11597         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
11599 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
11601         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
11602         stack usage.
11604 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
11606         [BZ #13367]
11607         * nss/getent.c (initgroups_keys): Show error message in case no group
11608         names are given.
11610         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
11611         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
11612         __bump_nl_timestamp.
11613         * nscd/connections (nscd_init): When host database is served open
11614         netlink socket and request notification about configuration changes.
11615         (main_loop_poll): Track netlink file descriptor and bump timestamp
11616         in case data becomes available.
11617         (main_loop_epoll): Likewise.
11618         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
11619         (database_pers_head): Add extra_data fileds.
11620         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
11621         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
11622         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
11623         Adjust caller.
11624         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
11625         in6ai data, call __free_in6ai.
11626         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
11627         Add -DHAVE_NETLINK.
11628         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
11629         interface information.  Reuse previous data if netlink timestamp
11630         is not changed.
11631         (__bump_nl_timestamp): New function.
11632         (__free_in6ai): New function.
11634 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
11636         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
11637         close_not_cancel_no_status here.
11638         (__check_pf): Reorganize code a bit to not call close twice if OOM.
11640 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
11642         [BZ #13276]
11643         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
11644         return value.
11646         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
11647         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
11648         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
11650 2011-07-03  Andreas Jaeger  <aj@suse.de>
11652         [BZ #10709]
11653         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
11654         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
11655         * math/libm-test.inc (sin_test): Add test case.
11657 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
11659         [BZ #13337]
11660         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
11661         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
11663         * elf/chroot_canon.c (chroot_canon): Cleanups.
11665         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
11667         [BZ #13335]
11668         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
11669         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
11671         * string/test-strchr.c: Make usable for strchrnul testing.
11672         * string/test-strchrnul.c: New file.
11673         * string/Makefile (strop-tests): Add strchrnul.
11675         * po/it.po: Update from translation team.
11676         * po/es.po: Likewise.
11678 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
11680         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
11681         the three constants needed as parameters.  Drop the others.
11682         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
11683         __m128i_strloadu_tolower.
11684         Create and initialize variable zero and use it in all the places
11685         where _mm_setzero_si128 was used.
11687         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
11688         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
11689         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
11690         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
11691         anymore.
11692         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
11693         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
11694         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
11695         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
11696         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
11697         __mpranred, __mptan.
11698         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
11699         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
11700         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
11701         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
11702         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
11703         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
11704         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
11705         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
11706         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
11708 2011-10-28  Andreas Schwab  <schwab@redhat.com>
11710         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
11711         redefine if SHARED.
11712         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
11714         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
11715         wide char related routines to wcsmbs subdir.
11717 2011-10-27  Andreas Schwab  <schwab@redhat.com>
11719         [BZ #13344]
11720         * misc/sys/cdefs.h (__THROWNL): Define.
11721         * posix/unistd.h: Use __THREADNL instead of __THREAD
11722         for memory synchronization functions.
11724 2011-10-26  Roland McGrath  <roland@hack.frob.com>
11726         [BZ #13349]
11727         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
11728         doesn't exist.
11729         * manual/stdio.texi (Obstack Streams): Node removed.
11731 2011-10-26  Andreas Schwab  <schwab@redhat.com>
11733         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
11734         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11735         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11737         * math/math_private.h (math_force_eval): Allow non-addressable
11738         arguments.
11739         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
11741 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11743         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
11744         file is not needed.
11746         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
11747         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
11748         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11749         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11750         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11751         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11752         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11753         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
11754         Add AVX variants.
11755         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
11756         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
11757         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
11758         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
11759         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
11760         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
11761         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
11762         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
11763         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
11764         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
11765         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
11766         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
11767         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
11768         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
11769         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
11770         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
11771         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
11772         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
11773         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
11775         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
11776         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
11778         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
11779         place.  Use VEX encoding when compiling for AVX.
11781 2011-10-25  Andreas Schwab  <schwab@redhat.com>
11783         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
11784         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
11786         * string/test-strchr.c (do_test): Don't generate NUL bytes.
11788 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11790         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
11791         useless if() expression.
11792         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11793         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11794         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11795         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11796         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11797         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11798         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11799         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11800         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11801         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11802         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11803         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11804         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11805         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11806         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11807         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11808         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11809         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11810         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11812         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
11814 2011-10-25  Andreas Schwab  <schwab@redhat.com>
11816         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
11817         condition.
11818         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11820 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11822         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
11823         .text section.  Avoid duplicate constants.
11824         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11825         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11826         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11827         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11828         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11829         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11830         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11831         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11832         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
11833         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
11834         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
11835         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
11836         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
11837         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
11838         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
11839         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
11840         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
11841         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
11842         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11843         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11844         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11845         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11846         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11847         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
11848         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
11849         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
11850         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
11851         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
11852         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
11853         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
11854         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
11855         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
11856         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
11857         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
11858         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
11859         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
11860         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
11861         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
11862         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
11863         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
11864         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
11865         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
11866         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
11867         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
11868         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
11870 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
11872         * sysdeps/x86_64/dla.h: Move to ...
11873         * sysdeps/x86_64/fpu/dla.h: ...here.
11874         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
11875         situations.  Use __builtin_fma only for gcc 4.6 and up.
11877         * config.make.in: Add have-mfma4 entry.
11878         * configure.in: Substitute libc_cv_cc_fma4.
11879         * math/Makefile (dbl-only-routines): Add sincostab.
11880         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
11881         Use __sincostab not sincos.
11882         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
11883         name is a macro.
11884         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11885         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11886         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11887         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
11888         using __copysign.
11889         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
11890         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
11891         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
11892         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
11893         and __inv.
11894         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
11895         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
11896         __copysign.
11897         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
11898         define aliases when function name is a macro.
11899         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
11900         sysdeps/ieee754/dbl-64/sincos.tbl.
11901         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
11902         fma4-enabled routines.
11903         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
11904         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
11905         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
11906         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
11907         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
11908         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
11909         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
11910         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
11911         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
11912         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
11913         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
11914         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
11915         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
11916         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
11917         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
11918         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
11919         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
11920         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
11921         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
11922         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
11923         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
11924         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
11925         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
11926         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
11927         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
11928         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
11929         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
11930         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
11931         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
11932         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
11934         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
11935         rename.
11936         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11937         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11938         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11939         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11940         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11941         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11942         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11943         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11945 2011-10-24  Andreas Schwab  <schwab@redhat.com>
11947         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
11949 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
11951         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
11953         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
11954         prediction.
11955         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
11957         * string/strnlen.c: Don't define STRNLEN, reverse logic.
11958         Remove unused variable magic_bits.
11959         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
11961         * string/strnlen.c: Define and use STRNLEN macro.
11962         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
11963         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
11964         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
11965         * wcsmbs/wcslen.c: Define and use WCSLEN.
11966         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
11967         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
11968         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
11969         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
11970         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
11971         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
11972         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
11974 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11976         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11977         strnlen-sse2-no-bsf.
11978         Rename strlen-no-bsf to strlen-sse2-no-bsf.
11979         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
11980         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
11981         Add strnlen support.
11982         (USE_AS_STRNLEN): New macro.
11983         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
11984         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
11985         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
11986         * sysdeps/x86_64/wcslen.S: New file.
11988 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
11990         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11991         XMM-moves are used for copying on small sizes.
11993 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11995         * wcsmbs/Makefile (strop-tests): Add wcschr.
11996         * wcsmbs/test-wcschr.c: New file.
11997         * string/test-strchr.c: Update.
11998         Add wcschr support.
11999         (WIDE): New macro.
12001 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12003         * wcsmbs/Makefile (strop-tests): Add wcslen.
12004         * wcsmbs/test-wcslen.c: New file.
12005         * string/test-strlen.c: Update.
12006         Add wcslen support.
12007         (WIDE): New macro.
12009 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12011         * po/it.po: Update from translation team.
12013 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12015         * sysdeps/x86_64/wcscmp.S: Update.
12016         Fix wrong comparison semantics.
12017         wcscmp shall use signed comparison not unsigned.
12018         Don't use substraction to avoid overflow bug.
12019         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
12020         * wcsmbc/wcscmp.c: Likewise.
12021         * string/test-strcmp.c: Likewise.
12022         Add new tests to check cases with negative values.
12024 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12026         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
12027         * sysdeps/x86_64/dla.h: ...here.  New file.
12028         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
12029         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12030         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12031         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12032         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12033         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12034         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12035         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12036         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12038 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
12040         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
12041         __ynl_finite aliases.
12043 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
12045         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12047         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
12048         define DLA_FMA.
12049         [DLA_FMA] (EMULV): Use DLA_FMA.
12050         [DLA_FMA] (MUL12): Use EMULV.
12051         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
12052         that are not needed.
12053         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12054         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12055         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12056         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12057         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12058         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12059         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12061 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
12063         * math/s_nan.c: Undef __nan.
12064         * math/s_nanf.c: Undef __nanf.
12065         * math/s_nanl.c: Undef __nanl.
12066         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
12067         "math_private.h".
12069 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
12071         * math/s_catan.c: Add branch predictions.
12072         * math/s_catanf.c: Likewise.
12073         * math/s_catanh.c: Likewise.
12074         * math/s_catanhf.c: Likewise.
12075         * math/s_catanhl.c: Likewise.
12076         * math/s_catanl.c: Likewise.
12077         * math/s_cexp.c: Likewise.
12078         * math/s_cexpf.c: Likewise.
12079         * math/s_cexpl.c: Likewise.
12080         * math/s_clog.c: Likewise.
12081         * math/s_clog10.c: Likewise.
12082         * math/s_clog10f.c: Likewise.
12083         * math/s_clog10l.c: Likewise.
12084         * math/s_clogf.c: Likewise.
12085         * math/s_clogl.c: Likewise.
12086         * math/s_csqrt.c: Likewise.
12087         * math/s_csqrtf.c: Likewise.
12088         * math/s_csqrtl.c: Likewise.
12089         * math/s_ctanf.c: Likewise.
12090         * math/s_ctanh.c: Likewise.
12091         * math/s_ctanhf.c: Likewise.
12092         * math/s_ctanhl.c: Likewise.
12093         * math/s_ctanl.c: Likewise.
12095         * math/math_private.h: Define __nan, __nanf, __nanl.
12096         * math/s_cacosh.c: Include <math_private.h>.
12097         * math/s_cacoshl.c: Likewise.
12098         * math/s_casinh.c: Likewise.
12099         * math/s_casinhf.c: Likewise.
12100         * math/s_casinhl.c: Likewise.
12101         * math/s_ccos.c: Rely entire on ccosh.
12102         * math/s_ccosf.c: Rely entire on ccoshf.
12103         * math/s_ccosl.c: Rely entirely on ccoshl.
12104         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
12105         Remove tests for FE_INVALID.
12106         * math/s_ccoshf.c: Likewise.
12107         * math/s_ccoshl.c: Likewise.
12108         * math/s_csin.c: Likewise.
12109         * math/s_csinf.c: Likewise.
12110         * math/s_csinh.c Likewise.
12111         * math/s_csinhf.c: Likewise.
12112         * math/s_csinhl.c: Likewise.
12113         * math/s_csinl.c: Likewise.
12114         * math/s_ctan.c: Likewise.
12115         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
12116         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
12117         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
12119 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
12121         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
12122         compilation problems.
12124         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
12125         __builtin_expect.
12127 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
12129         * sysdeps/i386/configure.in: Test for -mfma4 option.
12130         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
12131         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
12132         COMMON_CPUID_INDEX_80000001.
12133         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
12134         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
12135         use it if FMA3 is not supported.
12136         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
12138         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
12139         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12141 2011-10-20  Andreas Schwab  <schwab@redhat.com>
12143         [BZ #12892]
12144         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
12145         it would create a cycle with a link time dependency.
12147 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
12149         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
12150         instruction.
12151         * string/Makefile (strop-tests): Add rawmemchr.
12152         * string/test-rawmemchr.c: New file.
12154         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
12155         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
12156         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
12157         when compiling str{,n}casecmp and when AVX is available.  Hook up
12158         new optimized code in initializers.
12160 2011-10-19  Andreas Schwab  <schwab@redhat.com>
12162         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
12163         __feraiseexcept instead of feraiseexcept.
12165 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
12167         * math/math_private.h: Define defaults for libc_fetestexcept and
12168         libc_feupdateenv.
12169         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
12170         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12171         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12172         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12173         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12174         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12175         libc_fetestexcept and libc_feupdateenv.
12177         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
12178         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
12179         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
12180         * sysdeps/x86_64/fpu/math_private.h: Define special version of
12181         libc_feholdexcept_setround.
12183         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
12184         Add s_nearbyint-c and s_nearbyintf-c.
12185         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
12186         nearbyintf inlines.
12187         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
12188         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
12189         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
12190         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
12192         * math/math_private.h: Define defaults for libc_fegetround,
12193         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
12194         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
12195         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
12196         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
12197         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
12198         standard functions.
12199         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12200         Remove comments and hacks for old compiler versions.
12201         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12202         libc_fegetround, libc_fesetround, libc_feholdexcept, and
12203         libc_feholdexceptl.
12205 2011-10-18  Andreas Schwab  <schwab@redhat.com>
12207         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
12208         (__feraiseexcept_renamed): Add __NTH.
12209         (feraiseexcept): Add __NTH.  Rename local variables to fix
12210         namespace violations.
12212 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
12214         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
12216         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
12218         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
12219         recently added interfaces.
12220         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12222         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
12223         about macro parameter expansion.
12225         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
12226         __NO_MATH_INLINES is defined.  Cleanups.
12228         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
12229         and __floorf is target has SSE4.1.
12230         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
12231         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
12232         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
12233         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
12235         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
12236         name.
12237         (floorf): Likewise.
12239         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
12241 2011-10-17  Andreas Schwab  <schwab@redhat.com>
12243         * misc/sys/cdefs.h: Fix last change.
12245         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
12246         database lookup.
12248 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
12250         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
12252         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
12253         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12254         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12255         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12256         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12257         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12258         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12259         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12260         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12261         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
12262         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
12263         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
12264         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
12265         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
12266         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
12267         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
12268         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
12269         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
12270         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
12271         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
12272         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
12273         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
12275         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
12276         ceil, ceilf, floor, floorf.
12278         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
12279         Perform IRELATIVE relocations last.
12281         * elf/do-rel.h: Add another parameter nrelative, replacing the
12282         local variable with the same name.  Change name of the function
12283         to end in Rel or Rela (uppercase).
12284         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
12285         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
12286         elf_dynamic_do_##reloc function.
12288 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
12290         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
12291         is sufficient, at least on modern CPUs.
12293         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
12295         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
12296         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
12298         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
12299         __expl_finite.
12300         * math/bits/math-finite.h: Add entries for exp.
12301         * math/e_expl.c: Add __*_finite alias.
12302         * sysdeps/i386/fpu/e_exp.S: Likewise.
12303         * sysdeps/i386/fpu/e_expf.S: Likewise.
12304         * sysdeps/i386/fpu/e_expl.c: Likewise.
12305         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12306         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12307         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12308         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12309         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
12310         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12311         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12313         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
12314         is sufficient, at least on modern CPUs.
12316         * ctype/ctype-info.c (__ctype_init): Define.
12317         * include/ctype.h (__ctype_init): Declare.
12318         (__ctype_b_loc): The variable is always initialized.
12319         (__ctype_toupper_loc): Likewise.
12320         (__ctype_tolower_loc): Likewise.
12321         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
12322         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
12324 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
12326         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
12328         * configure.in: Also look in $cxxmachine/include for C++ system
12329         headers.
12331 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12333         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
12334         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
12335         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
12336         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
12337         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
12338         (USE_AS_WMEMCMP): New macro.
12339         Fixing indents.
12340         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
12341         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
12342         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
12343         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
12344         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12345         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
12346         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
12347         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
12348         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
12349         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
12350         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
12351         (USE_AS_WMEMCMP): New macro.
12352         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
12353         * sysdeps/string/test-memcmp.c: Update.
12354         Fix simple_wmemcmp.
12355         Add new tests.
12356         * wcsmbs/wmemcmp.c: Update.
12357         (WMEMCMP): New macro.
12358         Fix overflow bug.
12360 2011-10-12  Andreas Jaeger  <aj@suse.de>
12362         [BZ #13268]
12363         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
12365 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
12367         * libio/iofwide.c (do_length): Avoid warning.
12369         * ctype/ctype.h (__isctype_f): Add missing __THROW.
12371 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
12373         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
12375         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
12376         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
12377         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
12378         * sysdeps/i386/i686/fpu/e_log.S: New file.
12379         * sysdeps/i386/i686/fpu/e_logf.S: New file.
12380         * sysdeps/i386/i686/fpu/e_logl.S: New file.
12382         * ctype/ctype.h: Add support for inlined isXXX functions when
12383         compiling C++ code.
12385 2011-10-14  Andreas Schwab  <schwab@redhat.com>
12387         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12389         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
12391 2011-10-13  Roland McGrath  <roland@hack.frob.com>
12393         [BZ #13291]
12394         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
12396 2011-10-13  Andreas Schwab  <schwab@redhat.com>
12398         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
12399         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
12400         feraiseexcept.
12402         * sysdeps/x86_64/memrchr.S: Check for zero size.
12404         * string/stratcliff.c: Add memrchr tests.
12406 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12408         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12409         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
12410         rawmemchr-sse2 rawmemchr-sse2-bsf.
12411         * sysdeps/i386/i686/multiarch/memchr.S: New file.
12412         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
12413         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
12414         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
12415         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
12416         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
12417         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
12418         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
12419         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
12420         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
12421         * string/memrchr.c (MEMRCHR): New macro.
12423 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
12425         Add integration with gcc's -ffinite-math-only and optimize wrapper
12426         functions in libm.
12427         * Versions.def: Define GLIBC_2.15 version for libm.
12428         * math/Makefile (headers): Add bits/math-finite.h.
12429         * math/bits/math-finite.h: New file.
12430         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
12431         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
12432         * math/e_acoshl.c: Add __*_finite alias.
12433         * math/e_acosl.c: Likewise.
12434         * math/e_asinl.c: Likewise.
12435         * math/e_atan2l.c: Likewise.
12436         * math/e_atanhl.c: Likewise.
12437         * math/e_coshl.c: Likewise.
12438         * math/e_exp10.c: Likewise.
12439         * math/e_exp10f.c: Likewise.
12440         * math/e_exp10l.c: Likewise.
12441         * math/e_exp2l.c: Likewise.
12442         * math/e_fmodl.c: Likewise.
12443         * math/e_gammal_r.c: Likewise.
12444         * math/e_hypotl.c: Likewise.
12445         * math/e_j0l.c: Likewise.
12446         * math/e_j1l.c: Likewise.
12447         * math/e_jnl.c: Likewise.
12448         * math/e_lgammal_r.c: Likewise.
12449         * math/e_log10l.c: Likewise.
12450         * math/e_log2l.c: Likewise.
12451         * math/e_logl.c: Likewise.
12452         * math/e_powl.c: Likewise.
12453         * math/e_sinhl.c: Likewise.
12454         * math/e_sqrtl.c: Likewise.
12455         * math/e_scalb.c: Completely rewritten and optimized.
12456         * math/e_scalbf.c: Likewise.
12457         * math/e_scalbl.c: Likewise.
12458         * math/w_acos.c: Likewise.
12459         * math/w_acosf.c: Likewise.
12460         * math/w_acosl.c: Likewise.
12461         * math/w_acosh.c: Likewise.
12462         * math/w_acoshf.c: Likewise.
12463         * math/w_acoshl.c: Likewise.
12464         * math/w_asin.c: Likewise.
12465         * math/w_asinf.c: Likewise.
12466         * math/w_asinl.c: Likewise.
12467         * math/w_atan2.c: Likewise.
12468         * math/w_atan2f.c: Likewise.
12469         * math/w_atan2l.c: Likewise.
12470         * math/w_atanh.c: Likewise.
12471         * math/w_atanhf.c: Likewise.
12472         * math/w_atanhl.c: Likewise.
12473         * math/w_exp10.c: Likewise.
12474         * math/w_exp10f.c: Likewise.
12475         * math/w_exp10l.c: Likewise.
12476         * math/w_fmod.c: Likewise.
12477         * math/w_fmodf.c: Likewise.
12478         * math/w_fmodl.c: Likewise.
12479         * math/w_j0.c: Likewise.
12480         * math/w_j0f.c: Likewise.
12481         * math/w_j0l.c: Likewise.
12482         * math/w_j1.c: Likewise.
12483         * math/w_j1f.c: Likewise.
12484         * math/w_j1l.c: Likewise.
12485         * math/w_jn.c: Likewise.
12486         * math/w_jnf.c: Likewise.
12487         * math/w_log.c: Likewise.
12488         * math/w_logf.c: Likewise.
12489         * math/w_logl.c: Likewise.
12490         * math/w_log10.c: Likewise.
12491         * math/w_log10f.c: Likewise.
12492         * math/w_log10l.c: Likewise.
12493         * math/w_log2.c: Likewise.
12494         * math/w_log2f.c: Likewise.
12495         * math/w_log2l.c: Likewise.
12496         * math/w_pow.c: Likewise.
12497         * math/w_powf.c: Likewise.
12498         * math/w_powl.c: Likewise.
12499         * math/w_remainder.c: Likewise.
12500         * math/w_remainderf.c: Likewise.
12501         * math/w_remainderl.c: Likewise.
12502         * math/w_scalb.c: Likewise.
12503         * math/w_scalbf.c: Likewise.
12504         * math/w_scalbl.c: Likewise.
12505         * math/w_sqrt.c: Likewise.
12506         * math/w_sqrtf.c: Likewise.
12507         * math/w_sqrtl.c: Likewise.
12508         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
12509         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
12510         used.
12511         * math/math_private.h: Declare __kernel_standard_f.
12512         * math/w_cosh.c: Remove cruft and optimize a bit.
12513         * math/w_coshf.c: Likewise.
12514         * math/w_coshl.c: Likewise.
12515         * math/w_exp2.c: Likewise.
12516         * math/w_exp2f.c: Likewise.
12517         * math/w_exp2l.c: Likewise.
12518         * math/w_hypot.c: Likewise.
12519         * math/w_hypotf.c: Likewise.
12520         * math/w_hypotl.c: Likewise.
12521         * math/w_lgamma.c: Likewise.
12522         * math/w_lgamma_r.c: Likewise.
12523         * math/w_lgammaf.c: Likewise.
12524         * math/w_lgammaf_r.c: Likewise.
12525         * math/w_lgammal.c: Likewise.
12526         * math/w_lgammal_r.c: Likewise.
12527         * math/w_sinh.c: Likewise.
12528         * math/w_sinhf.c: Likewise.
12529         * math/w_sinhl.c: Likewise.
12530         * math/w_tgamma.c: Likewise.
12531         * math/w_tgammaf.c: Likewise.
12532         * math/w_tgammal.c: Likewise.
12533         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12534         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12535         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
12536         Minor optimizations.  Pretty printing.  Remove cruft.
12537         * sysdeps/i386/fpu/e_acosf.S: Likewise.
12538         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12539         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12540         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12541         * sysdeps/i386/fpu/e_acosl.c: Likewise.
12542         * sysdeps/i386/fpu/e_asin.S: Likewise.
12543         * sysdeps/i386/fpu/e_asinf.S: Likewise.
12544         * sysdeps/i386/fpu/e_atan2.S: Likewise.
12545         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
12546         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
12547         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12548         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12549         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12550         * sysdeps/i386/fpu/e_exp10.S: Likewise.
12551         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
12552         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
12553         * sysdeps/i386/fpu/e_exp2.S: Likewise.
12554         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
12555         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
12556         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12557         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
12558         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12559         * sysdeps/i386/fpu/e_hypot.S: Likewise.
12560         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
12561         * sysdeps/i386/fpu/e_log.S: Likewise.
12562         * sysdeps/i386/fpu/e_log10.S: Likewise.
12563         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12564         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12565         * sysdeps/i386/fpu/e_log2.S: Likewise.
12566         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12567         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12568         * sysdeps/i386/fpu/e_logf.S: Likewise.
12569         * sysdeps/i386/fpu/e_logl.S: Likewise.
12570         * sysdeps/i386/fpu/e_pow.S: Likewise.
12571         * sysdeps/i386/fpu/e_powf.S: Likewise.
12572         * sysdeps/i386/fpu/e_powl.S: Likewise.
12573         * sysdeps/i386/fpu/e_remainder.S: Likewise.
12574         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
12575         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
12576         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12577         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12578         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12579         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
12580         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
12581         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
12582         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12583         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12584         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12585         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12586         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12587         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12588         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12589         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12590         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12591         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12592         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12593         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12594         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12595         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12596         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12597         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12598         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12599         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12600         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12601         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12602         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12603         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12604         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12605         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12606         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12607         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12608         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12609         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12610         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12611         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12612         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12613         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12614         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12615         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12616         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12617         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12618         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12619         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12620         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12621         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12622         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12623         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12624         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12625         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12626         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12627         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12628         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12629         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12630         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12631         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12632         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12633         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12634         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12635         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12636         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12637         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12638         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12639         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12640         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12641         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12642         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12643         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12644         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12645         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12646         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12647         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12648         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12649         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12650         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12651         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12652         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12653         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12654         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12655         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12656         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12657         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12658         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
12659         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12660         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12661         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12662         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12663         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12664         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12665         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12666         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12667         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12668         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12669         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12670         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12671         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12672         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12673         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12674         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12675         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12676         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12677         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
12678         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
12679         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
12680         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
12681         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
12682         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
12683         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
12684         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
12685         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
12686         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12687         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12688         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12689         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12690         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
12691         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12692         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
12693         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
12694         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
12695         (__isnanf): Likewise.
12696         (__isinf_ns): Likewise.
12697         (__isinf_nsf): Likewise.
12698         (__finite): Likewise.
12699         (__finitef): Likewise.
12700         (__ieee754_sqrt): Define as macro.
12701         (__ieee754_sqrtf): Define as macro.
12702         (__ieee754_sqrtl): Define as macro.
12703         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
12704         inlined copy.
12705         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
12706         __FINITE_MATH_ONLY__ consistent.
12707         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
12709 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
12711         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
12712         of rawmemchr.
12714         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
12716 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
12718         * po/ja.po: Update from translation team.
12720 2011-10-08  Roland McGrath  <roland@hack.frob.com>
12722         * locale/programs/locarchive.c (prepare_address_space): New function.
12723         (create_archive, enlarge_archive, open_archive): Use it.
12725         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
12726         inside [SHARED], where it is used.
12728         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
12730         * nss/getent.c (netgroup_keys): Remove unused variable.
12731         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12733 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
12735         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
12736         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
12737         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
12738         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
12739         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
12740         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
12741         * math/Makefile (libm-calls): Add s_isinf_ns.
12742         * math/divtc3.c: Use __isinf_nsl instead of isinf.
12743         * math/multc3.c: Likewise.
12744         * math/s_casin.c: Likewise.
12745         * math/s_casinf.c: Likewise.
12746         * math/s_casinl.c: Likewise.
12747         * math/s_ccos.c: Likewise.
12748         * math/s_ccosf.c: Likewise.
12749         * math/s_ccosl.c: Likewise.
12750         * math/s_ctan.c: Likewise.
12751         * math/s_ctanf.c: Likewise.
12752         * math/s_ctanh.c: Likewise.
12753         * math/s_ctanhf.c: Likewise.
12754         * math/s_ctanhl.c: Likewise.
12755         * math/s_ctanl.c: Likewise.
12756         * math/w_fmod.c: Likewise.
12757         * math/w_fmodf.c: Likewise.
12758         * math/w_fmodl.c: Likewise.
12759         * math/w_remainder.c: Likewise.
12760         * math/w_remainderf.c: Likewise.
12761         * math/w_remainderl.c: Likewise.
12762         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
12763         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
12764         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
12765         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
12766         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
12767         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
12768         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
12769         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
12771         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
12772         of the number.
12773         * stdio-common/printf_fphex.c: Likewise.
12774         * stdio-common/printf_size.c: Likewise.
12776         * math/e_exp10.c: Include math_private.h using <...> not "...".
12777         * math/e_exp10f.c: Likewise.
12778         * math/e_exp10l.c: Likewise.
12779         * math/e_exp2l.c: Likewise.
12780         * math/e_j0l.c: Likewise.
12781         * math/e_j1l.c: Likewise.
12782         * math/e_jnl.c: Likewise.
12783         * math/e_lgammal_r.c: Likewise.
12784         * math/e_rem_pio2l.c: Likewise.
12785         * math/e_scalb.c: Likewise.
12786         * math/e_scalbf.c: Likewise.
12787         * math/e_scalbl.c: Likewise.
12788         * math/k_cosl.c: Likewise.
12789         * math/k_sinl.c: Likewise.
12790         * math/k_tanl.c: Likewise.
12791         * math/s_cacoshf.c: Likewise.
12792         * math/s_catan.c: Likewise.
12793         * math/s_catanf.c: Likewise.
12794         * math/s_catanh.c: Likewise.
12795         * math/s_catanhf.c: Likewise.
12796         * math/s_catanhl.c: Likewise.
12797         * math/s_catanl.c: Likewise.
12798         * math/s_ccosh.c: Likewise.
12799         * math/s_ccoshf.c: Likewise.
12800         * math/s_ccoshl.c: Likewise.
12801         * math/s_cexp.c: Likewise.
12802         * math/s_cexpf.c: Likewise.
12803         * math/s_cexpl.c: Likewise.
12804         * math/s_clog.c: Likewise.
12805         * math/s_clog10.c: Likewise.
12806         * math/s_clog10f.c: Likewise.
12807         * math/s_clog10l.c: Likewise.
12808         * math/s_clogf.c: Likewise.
12809         * math/s_clogl.c: Likewise.
12810         * math/s_csin.c: Likewise.
12811         * math/s_csinf.c: Likewise.
12812         * math/s_csinh.c: Likewise.
12813         * math/s_csinhf.c: Likewise.
12814         * math/s_csinhl.c: Likewise.
12815         * math/s_csinl.c: Likewise.
12816         * math/s_csqrt.c: Likewise.
12817         * math/s_csqrtf.c: Likewise.
12818         * math/s_csqrtl.c: Likewise.
12819         * math/s_ctan.c: Likewise.
12820         * math/s_ctanf.c: Likewise.
12821         * math/s_ctanh.c: Likewise.
12822         * math/s_ctanhf.c: Likewise.
12823         * math/s_ctanhl.c: Likewise.
12824         * math/s_ctanl.c: Likewise.
12825         * math/s_ldexp.c: Likewise.
12826         * math/s_ldexpf.c: Likewise.
12827         * math/s_ldexpl.c: Likewise.
12828         * math/s_significand.c: Likewise.
12829         * math/s_significandf.c: Likewise.
12830         * math/s_significandl.c: Likewise.
12831         * math/w_acos.c: Likewise.
12832         * math/w_acosf.c: Likewise.
12833         * math/w_acosh.c: Likewise.
12834         * math/w_acoshf.c: Likewise.
12835         * math/w_acoshl.c: Likewise.
12836         * math/w_acosl.c: Likewise.
12837         * math/w_asin.c: Likewise.
12838         * math/w_asinf.c: Likewise.
12839         * math/w_asinl.c: Likewise.
12840         * math/w_atan2.c: Likewise.
12841         * math/w_atan2f.c: Likewise.
12842         * math/w_atan2l.c: Likewise.
12843         * math/w_atanh.c: Likewise.
12844         * math/w_atanhf.c: Likewise.
12845         * math/w_atanhl.c: Likewise.
12846         * math/w_cosh.c: Likewise.
12847         * math/w_coshf.c: Likewise.
12848         * math/w_coshl.c: Likewise.
12849         * math/w_dremf.c: Likewise.
12850         * math/w_exp10.c: Likewise.
12851         * math/w_exp10f.c: Likewise.
12852         * math/w_exp10l.c: Likewise.
12853         * math/w_exp2.c: Likewise.
12854         * math/w_exp2f.c: Likewise.
12855         * math/w_fmod.c: Likewise.
12856         * math/w_fmodf.c: Likewise.
12857         * math/w_fmodl.c: Likewise.
12858         * math/w_hypot.c: Likewise.
12859         * math/w_hypotf.c: Likewise.
12860         * math/w_hypotl.c: Likewise.
12861         * math/w_j0.c: Likewise.
12862         * math/w_j0f.c: Likewise.
12863         * math/w_j0l.c: Likewise.
12864         * math/w_j1.c: Likewise.
12865         * math/w_j1f.c: Likewise.
12866         * math/w_j1l.c: Likewise.
12867         * math/w_jn.c: Likewise.
12868         * math/w_jnf.c: Likewise.
12869         * math/w_jnl.c: Likewise.
12870         * math/w_lgamma.c: Likewise.
12871         * math/w_lgamma_r.c: Likewise.
12872         * math/w_lgammaf.c: Likewise.
12873         * math/w_lgammaf_r.c: Likewise.
12874         * math/w_lgammal.c: Likewise.
12875         * math/w_lgammal_r.c: Likewise.
12876         * math/w_log.c: Likewise.
12877         * math/w_log10.c: Likewise.
12878         * math/w_log10f.c: Likewise.
12879         * math/w_log10l.c: Likewise.
12880         * math/w_log2.c: Likewise.
12881         * math/w_log2f.c: Likewise.
12882         * math/w_log2l.c: Likewise.
12883         * math/w_logf.c: Likewise.
12884         * math/w_logl.c: Likewise.
12885         * math/w_pow.c: Likewise.
12886         * math/w_powf.c: Likewise.
12887         * math/w_powl.c: Likewise.
12888         * math/w_remainder.c: Likewise.
12889         * math/w_remainderf.c: Likewise.
12890         * math/w_remainderl.c: Likewise.
12891         * math/w_scalb.c: Likewise.
12892         * math/w_scalbf.c: Likewise.
12893         * math/w_scalbl.c: Likewise.
12894         * math/w_sinh.c: Likewise.
12895         * math/w_sinhf.c: Likewise.
12896         * math/w_sinhl.c: Likewise.
12897         * math/w_sqrt.c: Likewise.
12898         * math/w_sqrtf.c: Likewise.
12899         * math/w_sqrtl.c: Likewise.
12900         * math/w_tgamma.c: Likewise.
12901         * math/w_tgammaf.c: Likewise.
12902         * math/w_tgammal.c: Likewise.
12904         * po/ja.po: Update from translation team.
12906 2011-09-29  Andreas Jaeger  <aj@suse.de>
12908         [BZ #13179]
12909         * sunrpc/netname.c (netname2host): Fix logic.
12911         [BZ #6779]
12912         [BZ #6783]
12913         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
12914         correctly.
12915         * math/w_remainder.c (__remainder): Likewise.
12916         * math/w_remainderf.c (__remainderf): Likewise.
12917         * math/libm-test.inc (remainder_test): Add test cases.
12919 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12921         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
12922         sdiv_qrnnd.
12924 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
12926         * string/test-memcmp.c: Avoid unncessary #defines.
12927         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
12929 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12931         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
12932         Use new sse2 version for core i3 - i7 as it's faster
12933         than sse42 version.
12934         (bit_Prefer_PMINUB_for_stringop): New.
12935         * sysdeps/x86_64/rawmemchr.S: Update.
12936         Replace with faster SSE2 version.
12937         * sysdeps/x86_64/memrchr.S: New file.
12938         * sysdeps/x86_64/memchr.S: Update.
12939         Replace with faster SSE2 version.
12941 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
12943         * elf/dl-load.c (lose): Add cast to avoid warning.
12945 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
12947         * po/ca.po: Update from translation team.
12949         * inet/getnetgrent_r.c: Hook up nscd.
12950         * nscd/Makefile (routines): Add nscd_netgroup.
12951         (nscd-modules): Add netgroupcache.
12952         (CFLAGS-netgroupcache.c): Define.
12953         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
12954         (cache_search): Add const to second parameter.
12955         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
12956         INNETGR.
12957         (dbs): Add netgrdb entry.
12958         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
12959         (verify_persistent_db): Handle netgrdb.
12960         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
12961         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
12962         GETFDNETGR.
12963         (netgroup_response_header): Define.
12964         (innetgroup_response_header): Define.
12965         (datahead): Add netgroup_response_header and innetgroup_response_header
12966         elements.
12967         * nscd/nscd.conf: Add entries for netgroup cache.
12968         * nscd/nscd.h (dbtype): Add netgrdb.
12969         (_PATH_NSCD_NETGROUP_DB): Define.
12970         (netgroup_iov_disabled): Declare.
12971         (xmalloc, xcalloc, xrealloc): Move declarations here.
12972         (cache_search): Adjust prototype.
12973         Add netgroup-related prototypes.
12974         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
12975         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
12976         (__nscd_innetgr): Declare.
12977         * nscd/selinux.c (perms): Use access_vector_t as element type and
12978         add netgroup-related initializers.
12979         * nscd/netgroupcache.c: New file.
12980         * nscd/nscd_netgroup.c: New file.
12981         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
12982         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
12983         For four parameters use innetgr.
12984         * nss/nss_files/files-init.c: Add definition and callback for netgr.
12985         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
12986         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
12987         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
12989         * nscd/connections.c (register_traced_file): Don't register file
12990         for disabled databases.
12992 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
12994         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
12996         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
12997         from tree and freeing node.
12999 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
13001         * nss/nsswitch.c (__nss_database_lookup): Handle
13002         nss_parse_service_list out of memory case.
13004 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
13006         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
13007         out of memory case.
13009 2011-10-04  Andreas Schwab  <schwab@redhat.com>
13011         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
13012         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
13013         pass it down.
13014         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
13015         elf_machine_rela, elf_machine_lazy_rel.
13016         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
13017         (ELF_DYNAMIC_DO_REL): Likewise.
13018         (ELF_DYNAMIC_DO_RELA): Likewise.
13019         (ELF_DYNAMIC_RELOCATE): Likewise.
13020         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
13021         to ELF_DYNAMIC_DO_REL.
13022         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
13023         (dl_main): In trace mode always set __RTLD_NOIFUNC.
13024         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
13025         elf_machine_rela.
13026         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
13027         skip_ifunc, don't call ifunc function if non-zero.
13028         (elf_machine_rela): Likewise.
13029         (elf_machine_lazy_rel): Likewise.
13030         (elf_machine_lazy_rela): Likewise.
13031         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13032         (elf_machine_lazy_rel): Likewise.
13033         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13034         Likewise.
13035         (elf_machine_lazy_rel): Likewise.
13036         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13037         Likewise.
13038         (elf_machine_lazy_rel): Likewise.
13039         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
13040         (elf_machine_lazy_rel): Likewise.
13041         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
13042         (elf_machine_lazy_rel): Likewise.
13043         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13044         (elf_machine_lazy_rel): Likewise.
13045         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
13046         (elf_machine_lazy_rel): Likewise.
13047         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
13048         (elf_machine_lazy_rel): Likewise.
13049         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13050         (elf_machine_lazy_rel): Likewise.
13052 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
13054         * nss/nss_files/files-init.c (_nss_files_init): Use static
13055         initialization for all the *_traced_file variables.
13057 2011-09-28  Andreas Schwab  <schwab@redhat.com>
13059         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13061 2011-09-27  Roland McGrath  <roland@hack.frob.com>
13063         [BZ #13226]
13064         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
13066 2011-09-27  Andreas Schwab  <schwab@redhat.com>
13068         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13069         Reread the line before reparsing it.
13071 2011-09-26  Andreas Schwab  <schwab@redhat.com>
13073         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
13075 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
13076             Maxim Kuvyrkov  <maxim@codesourcery.com>
13077             Joseph Myers  <joseph@codesourcery.com>
13079         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
13080         if needed for __stack_chk_guard.
13082 2011-09-19  Roland McGrath  <roland@hack.frob.com>
13084         * sysdeps/posix/spawni.c (script_execute): Always define it.
13085         It will be optimized away if unused.
13086         (maybe_script_execute): New function.
13087         (__spawni): Call it.
13089         * Makerules: Don't include tls.make.
13090         (config-tls): Always set to thread.
13091         * tls.make.c: File removed.
13093 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
13095         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
13096         * config.make.in (CPPFLAGS-config): New substituted variable.
13098 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
13100         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
13102         [BZ #13192]
13103         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
13104         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
13106 2011-09-15  Roland McGrath  <roland@hack.frob.com>
13108         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
13109         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
13110         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
13111         (CALL_FAIL): Likewise.
13112         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
13113         (CALL_FAIL): Macro removed.
13114         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
13116 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
13118         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
13119         for __FINITE_MATH_ONLY__ == 1.
13121 2011-09-15  Andreas Schwab  <schwab@redhat.com>
13123         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
13124         __ieee754_sqrt instead of sqrt.
13125         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
13126         __ieee754_sqrtf instead of sqrtf.
13127         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
13128         __floorf instead of floorf.
13129         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
13130         __floorf, __truncf instead of floorf, truncf.
13132 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
13134         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
13136         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
13137         __extern_always_inline.
13138         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
13139         32-bit.
13141 2011-09-14  Andreas Schwab  <schwab@redhat.com>
13143         * elf/rtld.c (dl_main): Also relocate in dependency order when
13144         doing symbol dependency testing.
13146 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
13148         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13149         Always define `refsym'.
13151 2011-09-13  Andreas Schwab  <schwab@redhat.com>
13153         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
13154         (__FD_ELT): Renamed from __FDELT.
13155         * misc/bits/select2.h (__FD_ELT): Likewise.
13156         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
13157         __FD_MASK instead of __FDELT, __FDMASK.
13158         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13159         Likewise.
13160         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13161         Likewise.
13163         * elf/Makefile (gen-ldd): Fix pattern.
13165         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
13166         (init_tls): Likewise.
13168 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
13170         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
13172 2011-09-12  Andreas Schwab  <schwab@redhat.com>
13174         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
13175         `struct cmsghdr *' instead of `void *'.
13176         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
13177         Likewise.
13179 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
13181         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
13182         if non-absolute.
13183         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
13184         ldd_rewrite_script.
13186 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
13188         * configure.in: Remove --with-tls option.
13189         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
13190         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
13191         out in case it is missing.
13192         * sysdeps/ia64/elf/configure.in: Likewise.
13193         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
13194         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
13195         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
13196         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
13197         * sysdeps/sh/elf/configure.in: Likewise.
13198         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
13199         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13200         * sysdeps/x86_64/elf/configure.in: Likewise.
13201         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
13202         * sysdeps/mach/hurd/tls.h: Likewise.
13204         [BZ #13067]
13205         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
13207         [BZ #13090]
13208         * configure.in: Fix use of AC_INIT.
13210         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
13212 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
13214         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
13215         __set_errno.
13216         * malloc/hooks.c: Likewise.
13218         [BZ #11929]
13219         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
13220         variables statically.
13221         (narenas): Initialize.
13222         (list_lock): Initialize.
13223         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
13224         initializtion of main_arena and list_lock.  Small cleanups.
13225         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
13226         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
13227         Add initializers to main_arena and mp_.
13228         (malloc_state): Remove pagesize member.  Change all users to use
13229         GLRO(dl_pagesize).
13231         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
13232         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
13233         is always initialized.
13235         * malloc/malloc.c: Removed unused configurations and dead code.
13236         * malloc/arena.c: Likewise.
13237         * malloc/hooks.c: Likewise.
13238         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
13240         * include/tls.h: Removed.  USE___THREAD must always be defined.
13241         * bits/libc-tsd.h: Don't handle !USE___THREAD.
13242         * elf/dl-libc.c: Likewise.
13243         * elf/dl-tsd.c: Likewise.
13244         * include/errno.h: Likewise.
13245         * include/netdb.h: Likewise.
13246         * include/resolv.h: Likewise.
13247         * inet/herrno-loc.c: Likewise.
13248         * inet/herrno.c: Likewise.
13249         * malloc/arena.c: Likewise.
13250         * malloc/hooks.c: Likewise.
13251         * malloc/malloc.c: Likewise.
13252         * resolv/res-state.c: Likewise.
13253         * resolv/res_libc.c: Likewise.
13254         * sysdeps/i386/dl-machine.h: Likewise.
13255         * sysdeps/ia64/dl-machine.h: Likewise.
13256         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13257         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13258         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13259         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13260         * sysdeps/sh/dl-machine.h: Likewise.
13261         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13262         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13263         * sysdeps/unix/i386/sysdep.S: Likewise.
13264         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
13265         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
13266         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
13267         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13268         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
13269         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13270         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
13271         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13272         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13273         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
13274         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13275         * sysdeps/x86_64/dl-machine.h: Likewise.
13276         * tls.make.c: Likewise.
13278         * configure.in: Remove --with-__thread option.  Make tests for
13279         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
13280         tls_model attribute fail if no support is available.  Remove
13281         USE_IN_LIBIO.
13282         * Makeconfig: Adjust for dropped configure option.  All features are
13283         now mandatory.
13284         * Makerules: Likewise.
13285         * Versions.def: Likewise.
13286         * argp/argp-fmtstream.c: Likewise.
13287         * argp/argp-fmtstream.h: Likewise.
13288         * argp/argp-help.c: Likewise.
13289         * assert/assert.c: Likewise.
13290         * config.h.in: Likewise.
13291         * config.make.in: Likewise.
13292         * configure: Likewise.
13293         * configure.in: Likewise.
13294         * csu/Versions: Likewise.
13295         * csu/init.c: Likewise.
13296         * elf/tst-audit2.c: Likewise.
13297         * elf/tst-tls10.c: Likewise.
13298         * elf/tst-tls10.h: Likewise.
13299         * elf/tst-tls11.c: Likewise.
13300         * elf/tst-tls12.c: Likewise.
13301         * elf/tst-tls14.c: Likewise.
13302         * elf/tst-tlsmod11.c: Likewise.
13303         * elf/tst-tlsmod12.c: Likewise.
13304         * elf/tst-tlsmod13.c: Likewise.
13305         * elf/tst-tlsmod13a.c: Likewise.
13306         * elf/tst-tlsmod14a.c: Likewise.
13307         * elf/tst-tlsmod15b.c: Likewise.
13308         * elf/tst-tlsmod16a.c: Likewise.
13309         * elf/tst-tlsmod16b.c: Likewise.
13310         * elf/tst-tlsmod7.c: Likewise.
13311         * elf/tst-tlsmod8.c: Likewise.
13312         * elf/tst-tlsmod9.c: Likewise.
13313         * gmon/gmon.c: Likewise.
13314         * grp/fgetgrent_r.c: Likewise.
13315         * grp/putgrent.c: Likewise.
13316         * hurd/fopenport.c: Likewise.
13317         * include/libc-symbols.h: Likewise.
13318         * include/tls.h: Likewise.
13319         * intl/gettextP.h: Likewise.
13320         * intl/loadinfo.h: Likewise.
13321         * locale/global-locale.c: Likewise.
13322         * locale/localeinfo.h: Likewise.
13323         * mach/devstream.c: Likewise.
13324         * malloc/arena.c: Likewise.
13325         * malloc/set-freeres.c: Likewise.
13326         * misc/err.c: Likewise.
13327         * misc/getttyent.c: Likewise.
13328         * misc/mntent_r.c: Likewise.
13329         * posix/getopt.c: Likewise.
13330         * posix/wordexp.c: Likewise.
13331         * pwd/fgetpwent_r.c: Likewise.
13332         * resolv/Versions: Likewise.
13333         * resolv/res_hconf.c: Likewise.
13334         * shadow/fgetspent_r.c: Likewise.
13335         * shadow/putspent.c: Likewise.
13336         * stdio-common/printf_fphex.c: Likewise.
13337         * stdio-common/tmpfile.c: Likewise.
13338         * stdlib/abort.c: Likewise.
13339         * stdlib/fmtmsg.c: Likewise.
13340         * sunrpc/auth_unix.c: Likewise.
13341         * sunrpc/clnt_perr.c: Likewise.
13342         * sunrpc/clnt_tcp.c: Likewise.
13343         * sunrpc/clnt_udp.c: Likewise.
13344         * sunrpc/clnt_unix.c: Likewise.
13345         * sunrpc/openchild.c: Likewise.
13346         * sunrpc/svc_simple.c: Likewise.
13347         * sunrpc/svc_tcp.c: Likewise.
13348         * sunrpc/svc_udp.c: Likewise.
13349         * sunrpc/svc_unix.c: Likewise.
13350         * sunrpc/xdr.c: Likewise.
13351         * sunrpc/xdr_array.c: Likewise.
13352         * sunrpc/xdr_rec.c: Likewise.
13353         * sunrpc/xdr_ref.c: Likewise.
13354         * sunrpc/xdr_stdio.c: Likewise.
13356 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13358         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13360 2011-07-03  Andreas Jaeger  <aj@suse.de>
13362         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
13363         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
13364         regenerate with gen-libm-tests.pl.
13366 2010-05-12  Petr Baudis  <pasky@suse.cz>
13368         [BZ #11589]
13369         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
13370         around j0() zero points by switching to j1().
13371         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13372         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13373         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13374         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13376 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13378         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
13379         instead of 0.
13380         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
13381         instead of 0.                              .
13382         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13383         Patch in part by Pavel Roskin <proski@gnu.org>.
13385         [BZ #13138]
13386         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
13387         realloc.
13388         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
13389         Free memory block if necessary.
13391         [BZ #12847]
13392         * libio/genops.c (INTDEF): For string streams the _lock pointer can
13393         be NULL.  Don't lock in this case.
13395 2011-09-09  Roland McGrath  <roland@hack.frob.com>
13397         * elf/elf.h (ELFOSABI_GNU): New macro.
13398         (ELFOSABI_LINUX): Define to that.
13400 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
13402         * string/strncat.c (strncat): Undef the symbol in case it has been
13403         defined in bits/string.h.
13405 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13407         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
13409         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
13410         link map.
13412 2011-08-17  Andreas Jaeger  <aj@suse.de>
13414         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
13416 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
13417             Ian Lance Taylor  <iant@google.com>
13419         * math/libm-test.inc (lround_test): New testcase.
13420         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
13422 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
13424         * Makefile: Remove support for automatic cvs check-ins.
13425         * Makerules: Likewise.
13426         * config.make.in: Likewise.
13427         * configure.in: Likewise.
13428         * intl/Makefile: Likewise.
13429         * locale/Makefile: Likewise.
13430         * po/Makefile: Likewise.
13431         * posix/Makefile: Likewise.
13432         * sysdeps/gnu/Makefile: Likewise.
13433         * sysdeps/mach/hurd/Makefile: Likewise.
13434         * sysdeps/sparc/sparc32/Makefile: Likewise.
13436         [BZ #13118]
13437         * posix/Makefile (bug-regex32-ENV): Define.
13438         Patch by John Stanley <jpsinthemix@verizon.net>.
13440         * misc/Makefile (headers): Add bits/select2.h.
13441         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
13442         * misc/bits/select2.h: New file.
13443         * include/bits/select2.h: New file.
13444         * debug/Makefile (routines): Add fdelt_chk.
13445         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
13446         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
13447         FD_ISSET.
13448         * debug/fdelt_chk.c: New file.
13450         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
13451         * wcsmbs/test-wmemcmp.c: Likewise.
13452         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
13453         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
13455 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13457         * string/Makefile (strop-tests): Add memcmp.
13458         * string/test-wmemcmp.c: New file.
13459         * string/test-memcmp.c: Add wmemcmp support.
13461 2011-09-08  Roland McGrath  <roland@hack.frob.com>
13463         [BZ #13153]
13464         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
13465         2011-07-19 change.
13467         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
13468         garbage value in a __mach_port_mod_refs call in the cases of the
13469         task-self and thread-self ports.
13471 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13473         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
13475 2011-09-08  Andreas Schwab  <schwab@redhat.com>
13477         * elf/dl-load.c (lose): Check for non-null L.
13479 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
13481         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
13483         * elf/dl-libc.c (dlerror_run): Pass back error code from
13484         dl_catch_error.
13486         [BZ #13123]
13487         * elf/dl-load.c (lose): Free l_origin if it is valid.
13489         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
13490         names.
13491         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
13492         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
13493         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
13494         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
13495         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
13496         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
13498 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13500         * sysdeps/powerpc/fpu/e_hypot.c: New file.
13501         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
13502         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
13503         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
13504         * sysdeps/powerpc/fpu/k_cosf.c: New file.
13505         * sysdeps/powerpc/fpu/k_sinf.c: New file.
13506         * sysdeps/powerpc/fpu/s_cosf.c: New file.
13507         * sysdeps/powerpc/fpu/s_sinf.c: New file.
13508         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
13509         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
13511 2011-08-15  Alan Modra  <amodra@gmail.com>
13513         [BZ #13092]
13514         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
13515         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
13516         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
13517         ppc_mcount to static-only-routines.
13518         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
13519         __mcount_internal.
13520         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
13521         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
13523 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
13525         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
13526         for finite and infinity parameters.
13528 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13530         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
13531         and add nop instructions for throughput optimization.
13532         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13534 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
13536         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
13537         aligned copy for power7 with vector-scalar instructions.
13538         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13540 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
13542         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
13543         AVX check.
13545 2011-09-07  Andreas Schwab  <schwab@redhat.com>
13547         [BZ #13144]
13548         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
13549         last change.
13551 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
13553         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13554         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
13555         syscall wrapper around clock_gettime in __vdso_clock_gettime.
13556         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
13557         clock_gettime.
13559 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
13561         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
13562         Forgot to demangle the pointer.
13564         * sysdeps/i386/sysdep.h: Define atom_text_section.
13565         * sysdeps/x86_64/sysdep.h: Likewise.
13566         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
13567         section with atom_text_section.
13568         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
13569         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
13570         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
13571         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
13572         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
13574         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
13575         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
13576         already be defined.  Change to take two parameters and don't assign
13577         result to variable.  Adjust all users.
13578         Define INTERNAL_GETTIME if not already defined.
13579         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
13580         call.
13581         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
13582         HAVE_CLOCK_GETTIME_VSYSCALL.
13583         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
13585         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
13586         gettimeofday vsyscall, just use time.
13588 2011-09-06  Andreas Schwab  <schwab@redhat.com>
13590         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
13591         <errno.h>.
13593 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
13595         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
13596         syscall on x86-64.
13597         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
13598         syscall.
13599         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
13600         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
13601         syscall if possible.
13603 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
13605         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
13606         e_ident.  Don't pass to find_mapsXX.
13607         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
13609 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13611         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13612         strchr-sse2-no-bsf strrchr-sse2-no-bsf
13613         * sysdeps/x86_64/multiarch/strchr.S: Update.
13614         Check bit_slow_BSF bit.
13615         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13616         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
13617         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
13619 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
13621         [BZ #13134]
13622         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
13623         before glibc 2.15.
13624         (tryshell): Define.
13625         (__spawni): Change last parameter to be flag.  Test
13626         SPAWN_XFLAGS_USE_PATH flag to use path or not.
13627         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
13628         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
13629         * posix/spawni.c: Likewise.
13630         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
13631         * posix/spawnp.c: Likewise.  Change normal version to use
13632         SPAWN_XFLAGS_USE_PATH.
13633         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
13634         SPAWN_XFLAGS_TRY_SHELL.
13636         [BZ #13150]
13637         * posix/glob.h: Remove gcc 1.x support.
13639         [BZ #13068]
13640         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
13642 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13644         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13645         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
13646         strrchr-sse2-bsf
13647         * sysdeps/i386/i686/multiarch/strchr.S: New file.
13648         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
13649         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
13650         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
13651         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
13652         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
13654 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13656         * sysdeps/x86_64/wcscmp.S: New file.
13658         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
13659         wcscmp-c wcscmp-sse2
13660         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
13661         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
13662         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
13663         * wcsmbs/wcscmp.c: Allow renaming.
13665 2011-09-05  David S. Miller  <davem@davemloft.net>
13667         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
13668         stack slot, rather than the struct return pointer slot.
13669         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
13670         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
13671         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
13672         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
13674 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
13676         * po/ja.po: Update from translation team.
13678         [BZ #13144]
13679         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
13680         kernel in 64-bit binaries.
13682 2011-09-01  David S. Miller  <davem@davemloft.net>
13684         * elf/elf.h (HWCAP_SPARC_*): Move to..
13685         * sysdeps/sparc/sysdep.h: this new file and add new values.
13686         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
13687         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
13688         _DL_HWCAP_COUNT to 24.
13689         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
13690         entries.
13691         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
13692         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
13693         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
13694         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
13695         instead of magic constants.
13696         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13698 2011-08-31  David S. Miller  <davem@davemloft.net>
13700         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
13701         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
13702         Reimplement to do errno handling inline.
13703         (SYSCALL_ERROR_HANDLER): New macro.
13704         (__SYSCALL_STRING): Do not do errno handling in asm.
13705         (__CLONE_SYSCALL_STRING): Delete.
13706         (__INTERNAL_SYSCALL_STRING): Delete.
13707         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
13708         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
13709         (PSEUDO): Reimplement to do errno handling inline.
13710         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
13711         (SYSCALL_ERROR_HANDLER): New macro.
13712         (__SYSCALL_STRING): Do not do errno handling in asm.
13713         (__CLONE_SYSCALL_STRING): Delete.
13714         (__INTERNAL_SYSCALL_STRING): Delete.
13715         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
13716         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
13717         i386.
13718         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
13719         (inline_syscall*): Add 'err' argument.
13720         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
13721         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
13722         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
13723         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
13725         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
13726         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
13728 2011-08-30  Andreas Schwab  <schwab@redhat.com>
13730         * elf/rtld.c (dl_main): Relocate objects in dependency order.
13732 2011-08-29  Jiri Olsa <jolsa@redhat.com>
13734         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
13735         directive.
13737 2011-08-24  David S. Miller  <davem@davemloft.net>
13739         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
13741 2011-08-24  Andreas Schwab  <schwab@redhat.com>
13743         * elf/Makefile: Add rules to build and run unload8 test.
13744         * elf/unload8.c: New file.
13745         * elf/unload8mod1.c: New file.
13746         * elf/unload8mod1x.c: New file.
13747         * elf/unload8mod2.c: New file.
13748         * elf/unload8mod3.c: New file.
13750         * elf/dl-close.c (_dl_close_worker): Reset private search list if
13751         it wasn't used.
13753 2011-08-23  David S. Miller  <davem@davemloft.net>
13755         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
13756         subtract stack bias.
13757         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
13758         %sp not %fp in calculations.
13759         (_JMPBUF_UNWINDS_ADJ): Likewise.
13761         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
13762         (aio_suspend): Call it to force an exception region around the
13763         AIO_MISC_WAIT() invocation.
13765 2011-08-23  Andreas Schwab  <schwab@redhat.com>
13767         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
13768         backslash.
13770 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
13772         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
13773         protection macro.
13774         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
13775         and <dl-machine.h>.
13776         (Elf64_FuncDesc): Remove.
13778 2011-08-22  David S. Miller  <davem@davemloft.net>
13780         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
13781         sigaltstack check, add missing cfi directives.
13782         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
13783         missing cfi directives, and sigaltstack handling.
13785 2011-08-16  Andreas Schwab  <schwab@redhat.com>
13787         [BZ #11724]
13788         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
13789         object is seen twice.
13790         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13792         * elf/Makefile (distribute): Add tst-initorder2.c.
13793         (tests): Add tst-initorder2.
13794         (modules-names): Add tst-initorder2a tst-initorder2b
13795         tst-initorder2c tst-initorder2d.  Add rules to build them.
13796         ($(objpfx)tst-initorder2.out): New rule.
13797         * elf/tst-initorder2.c: New file.
13798         * elf/tst-initorder2.exp: New file.
13800 2011-08-22  Andreas Schwab  <schwab@redhat.com>
13802         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
13804         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
13805         dependencies back to end of function.
13807         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
13808         $(elfobjdir)/ld.so.
13810 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
13812         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
13813         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
13814         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
13815         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
13816         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
13817         of __vdso_gettimeofday.
13818         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
13819         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
13820         attribute_hidden.
13821         (_libc_vdso_platform_setup): Remove initialization of
13822         __vdso_gettimeofday and __vdso_time.
13824 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
13826         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
13827         and fgetc_unlocked.
13828         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
13829         getc_unlocked.
13831         * elf/dl-open.c (add_to_global): Report additions to the global scope
13832         for LD_DEBUG=scopes.
13833         (dl_open_worker): Also print scope of newly loaded dependencies.
13834         (_dl_show_scope): Indicate if there is no scope.
13836         [BZ #13114]
13837         * stdio-common/Makefile (tests): Add bug24.
13838         * stdio-common/bug24.c: New file.
13840 2011-08-19  Andreas Jaeger  <aj@suse.de>
13842         [BZ #13114]
13843         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
13844         non-existant file when using close-on-exec mode.
13846 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
13848         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
13849         the very first instruction.
13851         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
13852         the CFI state in the end.
13853         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
13854         inclusion of dl-trampoline.h.
13855         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
13857 2011-08-19  Andreas Schwab  <schwab@redhat.com>
13859         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
13860         expectations for long double.
13862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
13863         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
13865 2011-08-14  David S. Miller  <davem@davemloft.net>
13867         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
13868         artificual limit depends upon the system page size.
13870 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
13872         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
13873         * resolv/Makefile: Define CFLAGS-libresolv.
13875 2011-08-17  Andreas Schwab  <schwab@redhat.com>
13877         * nss/makedb.c (compute_tables): Make variables used in nested
13878         function static.
13880 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
13882         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
13883         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
13884         if buffer was too small.
13886         * elf/pldd.c (main): Attach to all threads in the process.
13887         Rewrite /proc handling to use *at functions.
13889 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
13891         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
13892         specifies first scope to show.
13893         (dl_open_worker): Update callers.  Move printing scope of new
13894         object to before the relocation.
13895         * elf/rtld.c (dl_main): Update _dl_show_scope call.
13896         * sysdeps/generic/ldsodefs.h: Update declaration.
13898         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
13899         string for the scope number.
13901 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
13903         * nscd/servicescache.c (cache_addserv): Make sure written is always
13904         initialized.
13906 2011-08-14  Roland McGrath  <roland@hack.frob.com>
13908         * sysdeps/i386/i486/bits/atomic.h
13909         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
13910         statement expression, so as to suppress "set but not used" warning.
13911         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
13913         * string/strncat.c (STRNCAT): Use prototype definition.
13915         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
13916         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
13917         -Iprograms here.
13918         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
13919         (localedef-modules): Add localedef.
13920         (locale-modules): Add locale.
13922         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
13923         * elf/rtld.c (dl_main): Invert order of assignment in last change,
13924         to avoid a warning.
13926 2011-08-14  David S. Miller  <davem@davemloft.net>
13928         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
13929         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
13931 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
13933         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
13934         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
13935         * elf/rtld.c (dl_main): Set l_name of vDSO.
13936         Call _dl_show_scope when DL_DEBUG_SCOPES.
13937         (process_dl_debug): Recognize scopes flag and also set it for all.
13938         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
13939         Declare _dl_show_scope.
13941         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
13942         (do_dlopen): Pass caller_dlopen to dl_open.
13943         (__libc_dlopen_mode): Initialize caller_dlopen.
13945         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
13946         of libc.  Make tolower call locale-independent.  Optimize a bit by
13947         using isdigit instead of isalnum.
13948         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
13950 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
13952         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
13953         was a dependency or dynamically loaded.
13955 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
13957         * intl/l10nflist.c: Allow architecture-specific pop function.
13958         * sysdeps/x86_64/l10nflist.c: New file.
13960         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
13961         classification.
13963 2011-08-10  Andreas Schwab  <schwab@redhat.com>
13965         * include/dirent.h: Add libc_hidden_proto for scandirat and
13966         scandirat64.  Don't declare __scandirat64.
13967         * dirent/scandirat.c: Add libc_hidden_def.
13968         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
13969         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
13971 2011-08-10  David S. Miller  <davem@davemloft.net>
13973         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
13974         enum.
13975         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13976         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13977         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13979 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
13981         * Versions.def [libc]: Add GLIBC_2.15.
13982         * dirent/Makefile (routines): Add scandirat and scandirat64.
13983         * dirent/Versions [libc]: Export scandirat and scandirat64 for
13984         GLIBC_2.15.
13985         * dirent/dirent.h: Declare scandirat and scandirat64.
13986         * dirent/scandirat.c: New file.
13987         * dirent/scandirat64.c: New file.
13988         * sysdeps/wordsize-64/scandirat.c: New file.
13989         * sysdeps/wordsize-64/scandirat64.c: New file.
13990         * dirent/opendir.c: Define opendirat.
13991         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
13992         using scandirat.
13993         * dirent/scandir64.c: Adjust for scandir.c change.
13994         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
13995         __scandirat64, and __scandir_cancel_handler.
13996         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
13997         additional parameter and use openat instead of open (outside of ld.so).
13998         Add new __opendir as wrapper around __opendirat.
13999         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
14000         here without requiring old scandirat implementation.
14002 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
14004         * dirent/scandir.c (cancel_handler): Renamed to
14005         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
14006         defined.  Adjust users.
14007         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
14008         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14010 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
14012         * string/test-string.h (IMPL): Use __STRING to expand name and then
14013         stringify it.
14015         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
14016         of cleanups.
14018 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14020         * string/Makefile: Update.
14021         (strop-tests): Append strncat.
14022         * string/test-wcscmp.c: New file.
14023         New comprehensive test for wcscmp.
14024         * string/test-strcmp.c: Update.
14025         (WIDE): New define.
14027 2011-07-22  Andreas Schwab  <schwab@redhat.com>
14029         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
14030         line.
14032 2011-07-26  Andreas Schwab  <schwab@redhat.com>
14034         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
14035         encoding to ACE if AI_IDN.
14037 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
14039         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
14040         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
14042 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14044         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
14045         Fix overflow bug in strncat.
14046         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
14048         * string/test-strncat.c: Update.
14049         Add new tests for checking overflow bugs.
14051 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14053         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14054         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
14055         * sysdeps/i386/i686/multiarch/strcat.S: New file.
14056         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
14057         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
14058         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
14059         * sysdeps/i386/i686/multiarch/strncat.S: New file.
14060         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
14061         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
14063         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
14064         (USE_AS_STRCAT): Define.
14065         Add strcat and strncat support.
14066         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14068 2011-07-25  Andreas Schwab  <schwab@redhat.com>
14070         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
14071         __n bigger than INT_MAX+1.
14072         (__strncmp_g): Likewise.
14074 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
14076         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
14077         * libio/stido.h: Likewise.
14079         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
14080         (AF_NFC): Define.
14081         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
14082         (AF_NFC): Define.
14084         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
14085         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14086         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14087         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14088         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14090         [BZ #13021]
14091         * scripts/test-installation.pl: Don't expect libnss_test1 to be
14092         installed.
14094         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
14095         typo.
14096         (_dl_x86_64_save_sse): Likewise.
14098 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
14100         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
14101         OSXSAVE.
14102         (_dl_x86_64_save_sse): Likewise.
14104         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
14106         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
14108 2011-07-21  Andreas Schwab  <schwab@redhat.com>
14110         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
14111         change.
14112         (_dl_x86_64_save_sse): Use correct AVX check.
14114 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14116         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
14117         bug in strncpy/strncat.
14118         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
14120 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
14122         * string/tester.c (test_strcat): Add tests for different alignments
14123         of source and destination.
14124         (test_strncat): Likewise.
14126 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
14128         [BZ #12852]
14129         * posix/glob.c (glob): Check passed in values before using them in
14130         expressions to avoid some overflows.
14131         (glob_in_dir): Likewise.
14133         [BZ #13007]
14134         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
14135         check for AVX enablement so that we don't crash with old kernels and
14136         new hardware.
14137         * elf/tst-audit4.c: Add same checks here.
14138         * elf/tst-audit6.c: Likewise.
14140         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
14142 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
14144         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
14146 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
14148         * po/cs.po: Update from translation team.
14149         * po/bg.po: Likewise.
14151 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
14153         * misc/sys/cdefs.h: Add support for const attribute.
14154         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
14155         to gnu_dev_{major,minor,makedev} functions.
14157 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
14159         * intl/dcigettext.c (get_output_charset): Add missing bracket.
14161 2011-07-20  Andreas Schwab  <schwab@redhat.com>
14163         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
14164         strlen results.
14166 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14168         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
14169         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
14170         register in order to avoid conflicts with the soft frame pointer
14171         being held in r11 when necessary.
14172         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
14173         (INTERNAL_VSYSCALL_NCS): Likewise.
14175 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
14177         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
14178         * elf/dl-fini.c (_dl_fini): Adjust caller.
14179         * elf/dl-close.c (_dl_close_worker): Likewise.
14180         * sysdeps/generic/ldsodefs.h: Adjust declaration.
14182 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
14184         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
14185         "aux_cache->nlibs < 0".
14187         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
14188         in the reload-count case.
14190 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14192         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14193         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
14194         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
14195         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
14196         * sysdeps/x86_64/multiarch/strcat.S: New file.
14197         * sysdeps/x86_64/multiarch/strncat.S: New file.
14198         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
14199         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
14200         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
14201         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
14202         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
14203         (USE_AS_STRCAT): Define.
14204         Add strcat and strncat support.
14205         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14206         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14207         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
14208         * string/strncat.c: Update.
14209         (USE_AS_STRNCAT): Define.
14210         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14211         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
14212         and i7.
14213         * sysdeps/x86_64/multiarch/init-arch.h
14214         (bit_Prefer_PMINUB_for_stringop): New.
14215         (index_Prefer_PMINUB_for_stringop): Likewise.
14216         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
14217         bit_Prefer_PMINUB_for_stringop.
14219 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
14221         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
14222         buffer64.
14223         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
14224         of casting of buffer.
14225         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
14226         buffer32 and buffer64.
14227         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
14228         writes instead of casting of buffer.
14229         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
14230         buffer32.
14231         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
14232         casting of buffer.
14234 2011-07-19  Andreas Schwab  <schwab@redhat.com>
14236         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
14238 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
14240         * nscd/nscd.c (termination_handler): Don't do anything for a database
14241         if it has not yet been initialized.
14243 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
14245         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
14247 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
14249         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
14251 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
14253         * po/nl.po: Update from translation team.
14254         * po/sv.po: Likewise.
14256 2011-07-16  Roland McGrath  <roland@hack.frob.com>
14258         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
14259         now disallowed by GCC.
14261         * configure.in (use-default-link): Default to yes if a test -shared
14262         link meets our qualifications.
14263         * configure: Regenerated.
14265         * config.make.in (output-format): New variable.
14266         * configure.in: Check for ld --print-output-format support.
14267         * configure: Regenerated.
14268         * Makerules ($(common-objpfx)format.lds)
14269         [$(output-format) != unknown]: Just use $(output-format),
14270         instead of the linker-script munging.
14272 2011-07-14  Roland McGrath  <roland@hack.frob.com>
14274         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
14275         of $(common-objpfx)shlib.lds.
14276         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
14278         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
14279         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
14281         * configure.in (-z relro check): Adjust test code to add a large
14282         writable data section after it.
14283         * configure: Regenerated.
14285 2011-07-11  Roland McGrath  <roland@hack.frob.com>
14287         * configure.in (-z relro check): Fix test code to make the variable
14288         truly const.
14289         * configure: Regenerated.
14291 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
14293         * nscd/nscd.h (struct traced_file): Define.
14294         (struct database_dyn): Remove inotify_descr, reset_res, and filename
14295         elements.  Add traced_files.
14296         (inotify_fd): Declare.
14297         (register_traced_file): Declare.
14298         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
14299         (inotify_fd): Export.
14300         (resolv_conf_descr): Remove.
14301         (nscd_init): Move inotify descriptor creation to main.
14302         Don't register files for notification here.
14303         (register_traced_file): New function.
14304         (invalidate_cache): Don't use reset_res to determine whether to call
14305         res_init, go through the list of registered files.
14306         (main_loop_poll): The inotify descriptors are now stored in the
14307         structures for the traced files.
14308         (main_loop_epoll): Likewise
14309         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
14310         to __nss_disable_nscd.
14311         * nscd/cache.c (prune_cache): There is no single inotify descriptor
14312         for a database anymore.  Check the records for all the registered
14313         files instead.
14314         * nss/Makefile (libnss_files-routines): Add files-init.
14315         (libnss_db-routines): Add db-init.
14316         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
14317         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
14318         * nss/nss_db/db-init.c: New file.
14319         * nss/nss_files/files-init.c: New file.
14320         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
14321         __nss_lookup_function.
14322         (__nss_lookup_function): Call nss_load_library.
14323         (nss_load_all_libraries): New function.
14324         (__nss_disable_nscd): Take parameter with callback function for files
14325         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
14326         used for the cached services.
14327         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
14328         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
14329         options for features to all the files in nscd.
14331         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
14333 2011-07-10  Roland McGrath  <roland@hack.frob.com>
14335         * csu/elf-init.c (__libc_csu_init): Comment typo.
14337 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
14339         * po/pl.po: Update from translation team.
14340         * po/ja.po: Likewise.
14341         * po/ru.po: Likewise.
14342         * po/ko.po: Likewise.
14343         * po/fr.po: Likewise.
14345 2011-07-09  Roland McGrath  <roland@hack.frob.com>
14347         * configure.in (.ctors/.dtors header and trailer check):
14348         Use an empirical test on a built program.
14349         * configure: Regenerated.
14351         * configure.in (-z relro check): Use an empirical test on a built DSO.
14352         Detect, but do not require, on ia64.
14353         * configure: Regenerated.
14355         * configure.in (READELF): Find it with AC_CHECK_TOOL.
14356         Update tests that use readelf to use $READELF instead.
14357         * configure: Regenerated.
14359 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
14361         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
14362         if the result is not used.
14364 2011-07-05  Andreas Jaeger  <aj@suse.de>
14366         [BZ#9696]
14367         * stdlib/tst-strtod.c: Add testcase.
14369 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14371         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
14372         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
14373         The latter has a higher limit.  Take additional parameter to pass to
14374         the new function.
14375         (__pathconf): Pass file to __statfs_link_max.
14376         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
14377         __statfs_link_max.
14378         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
14379         __statfs_link_max.
14381         [BZ #12868]
14382         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
14383         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14384         Handle Lustre.
14385         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
14386         (__statfs_filesize_max): Likewise.
14387         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
14389 2011-07-05  Andreas Jaeger  <aj@suse.de>
14391         * resolv/res_comp.c (dn_skipname): Remove unused variable.
14393 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
14395         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
14396         `status' variable.
14397         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
14398         Likewise.
14400 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
14402         * Makefile (strop-tests): Add strncat.
14403         * string/test-strncat.c: New file.
14405 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
14407         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
14409 2011-06-21  Andreas Jaeger  <aj@suse.de>
14411         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
14412         Copy rule from iconvdata/Makefile.
14414 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
14416         [BZ #12922]
14417         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
14418         but no long options are defined, just return 'W'.
14420 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
14422         [BZ #9696]
14423         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
14425 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
14427         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
14428         netgroups to read.
14429         (innetgr): Likewise.
14431 2011-07-05  Roland McGrath  <roland@hack.frob.com>
14433         * config.make.in (install_root): Default to $(DESTDIR).
14435 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
14437         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
14439 2011-07-02  Roland McGrath  <roland@hack.frob.com>
14441         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
14443         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
14444         containing directory rather than embedding absolute directory names.
14446         * scripts/check-local-headers.sh: Rewritten using awk.
14447         Match by word, not by line.  Print error messages for matches.
14448         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
14450         * Makerules [shlib-lds-flags empty]:
14451         ($(common-objpfx)libc_pic.opts): New target.
14452         ($(common-objpfx)libc_pic.os.clean): New target.
14453         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
14455         * config.make.in (OBJCOPY): New variable.
14456         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
14457         * configure: Regenerated.
14459         * config.make.in (use-default-link): New variable.
14460         * configure.in (use_default_link): Grok --with-default-link to set it.
14461         * configure: Regenerated.
14462         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
14463         (shlib-lds, shlib-lds-flags): Define to empty.
14465         * Makerules (shlib-lds): New variable.
14466         (shlib-lds-flags): New variable.
14467         (build-shlib, build-moduile, build-module-asneeded): Use it.
14468         ($(common-objpfx)libc.so): Use $(shlib-lds).
14469         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
14470         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
14472         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
14473         DT_FLAGS/DT_FLAGS_1 with zero flags.
14475         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
14476         linker script munging.
14478 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
14480         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
14481         as 128-bit value.
14482         * crypt/sha512.c (sha512_process_block): Perform total addition using
14483         128-bit if possible.
14484         (__sha512_finish_ctx): Likewise.
14485         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
14486         as 64-bit value.
14487         * crypt/sha256.c (SWAP64): Define.
14488         (sha256_process_block): Perform total addition using 64-bit if
14489         possible.
14490         (__sha256_finish_ctx): Likewise.
14492 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
14494         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
14495         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14496         * nscd/hstcache.c (cache_addhst): Likewise.
14497         * nscd/grpcache.c (cache_addgr): Likewise.
14498         * nscd/aicache.c (addhstaiX): Likewise
14499         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
14501 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
14503         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
14504         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14505         * nscd/hstcache.c (cache_addhst): Likewise.
14506         * nscd/grpcache.c (cache_addgr): Likewise.
14507         * nscd/aicache.c (addhstaiX): Likewise
14509 2011-07-01  Andreas Schwab  <schwab@redhat.com>
14511         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
14512         domain only when needed.
14514 2011-06-30  Andreas Schwab  <schwab@redhat.com>
14516         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
14517         is always restored.
14519 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
14521         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
14522         are re-adding the entry.
14523         * nscd/servicescache.c (cache_addserv): Likewise.
14525 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
14527         * sysdeps/generic/dl-irel.h: fix protection against multiple
14528         inclusions.
14529         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
14531 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
14533         [BZ #12935]
14534         * malloc/memusage.sh: Fix quoting in message.
14535         * debug/xtrace.sh: Likewise.
14537         * configure.in: Remove support for --experimental-malloc option, make
14538         it the default.
14539         * config.make.in: Likewise.
14540         * malloc/Makefile: Likewise.
14542 2011-06-27  Andreas Schwab  <schwab@redhat.com>
14544         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
14545         two-byte characters.
14547 2011-06-27  Roland McGrath  <roland@hack.frob.com>
14549         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
14550         AC_CACHE_CHECK invocation.
14551         * configure: Regenerated.
14553         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
14555 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
14557         [BZ #12350]
14558         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
14559         bit from old_res_options.
14561         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
14563         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
14564         value type for setfct.
14566 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
14568         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
14569         __gettimeofday instead of gettimeofday.
14571 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
14573         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
14575 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
14577         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
14579         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
14580         info.
14582 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
14584         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14585         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
14586         strcpy-sse2-unaligned strncpy-sse2-unaligned
14587         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
14588         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
14589         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
14590         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
14591         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
14592         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
14593         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
14594         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
14595         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
14596         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
14597         (STRCPY): Support SSE2 and SSSE3 versions.
14599 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
14601         [BZ #12874]
14602         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
14603         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
14604         kernels which artificially limit size of requests.
14606 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
14608         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14609         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
14610         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
14611         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
14612         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
14613         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
14614         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
14615         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
14616         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
14617         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
14618         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
14619         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
14620         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
14621         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
14622         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
14623         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14624         Enable unaligned load optimization for Intel Core i3, i5 and i7
14625         processors.
14626         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
14627         Define.
14628         (index_Fast_Unaligned_Load): Define.
14629         (HAS_FAST_UNALIGNED_LOAD): Define.
14631 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
14633         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
14635 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
14637         [BZ #12907]
14638         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
14639         until it is clear that the information is realy needed.
14640         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
14642 2011-06-22  Andreas Schwab  <schwab@redhat.com>
14644         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
14646 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
14648         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
14649         /sys/devices/system/cpu/online if it is usable.
14651         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
14652         reading the information from the /proc filesystem to once a second.
14654 2011-06-21  Andreas Jaeger  <aj@suse.de>
14656         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
14657         NULL after inclusion of kernel headers.
14659 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
14661         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
14662         calls to internal_setent.
14664         [BZ #12885]
14665         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
14666         addresses using gethostbyname4_r ignore IPv4 addresses.
14668         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
14669         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
14671         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
14673 2011-06-20  David S. Miller  <davem@davemloft.net>
14675         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
14676         inclusions.
14677         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
14679         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
14680         (elf_irel): Use it.
14681         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
14682         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
14683         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
14684         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
14685         * sysdeps/x86_64/dl-irel.h: Likewise.
14687         * elf/dl-runtime.c: Use elf_ifunc_invoke.
14688         * elf/dl-sym.c: Likewise.
14690 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
14692         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
14693         need to dereference resplen2.
14695 2011-06-14  Andreas Schwab  <schwab@redhat.com>
14697         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
14699 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
14701         * Makeconfig: Define vardbdir and inst_vardbdir.
14702         * nss/Makefile: Add rules to install db-Makefile.
14704         * nss/nss_db/db-XXX.c: Cleanup.
14706         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
14707         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
14708         GLIBC_PRIVATE.
14709         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
14710         * nss/makedb.c: Implement -g option to specify that value strings
14711         are generated and should not be added to table iterated over for
14712         get*ent calls.
14713         * nss/nss_db/db-initgroups.c: New file.
14715         * nss/getent.c: Add support for initgroups lookups through getgrouplist
14716         interface.
14718         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
14719         (internal_getgrouplist): Adjust to name change.
14720         Update use_initgroups_entry if this is not the first call.
14721         * nss/databases.def: Add initgroups entry.
14723         * nss/makedb.c (compute_tables): Check result of multiple hash table
14724         sizes to minimize maximum chain length.
14726 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
14728         * Versions.def: Add entry for libnss_db.
14729         * shlib-versions: Likewise.
14730         * nss/Makefile: Add rules to build libnss_db.
14731         * nss/Versions: Add libnss_db information.  Organize libnss_files
14732         entries better.
14733         * nss/db-Makefile: Add gshadow support.  Change rules for the new
14734         makedb progra.  Some minor improvements to generate smaller files.
14735         * nss/nss_db/nss_db.h: Move NSS database header data structures to
14736         here from...
14737         * nss/makedb.c: ...here.
14738         Improve database format to be smaller and require less memory at
14739         runtime.
14740         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
14741         db anymore.
14742         * nss/nss_db/db-netgrp.c: Likewise.
14743         * nss/nss_db/db-open.c: Likewise.
14744         * nss/nss_files/flies-XXX.x: Adjust comments.
14745         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
14746         * nss/nss_files/files-grp.c: Likewise.
14747         * nss/nss_files/files-hosts.c: Likewise.
14748         * nss/nss_files/files-network.c: Likewise.
14749         * nss/nss_files/files-proto.c: Likewise.
14750         * nss/nss_files/files-pwd.c: Likewise.
14751         * nss/nss_files/files-rpc.c: Likewise.
14752         * nss/nss_files/files-service.c: Likewise.
14753         * nss/nss_files/files-sgrp.c: Likewise.
14754         * nss/nss_files/files-spwd.c: Likewise.
14755         * nss/nss_db/db-alias.c: Removed.
14756         * nss/nss_db/dummy-db.h: Removed.
14758 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
14760         * nss/makedb.c: Rewritten to not use database library.
14761         * nss/Makefile: Update to build new makedb program.
14763 2011-06-14  Andreas Jaeger  <aj@suse.de>
14765         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
14766         memset declaration.
14768 2011-06-10  Andreas Schwab  <schwab@redhat.com>
14770         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
14771         tmpbuf.
14773 2011-06-10  Roland McGrath  <roland@hack.frob.com>
14775         * Makerules (shlib.lds): Fail if the linker script comes out empty.
14776         * elf/Makefile ($(objpfx)ld.so): Likewise.
14778         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
14779         Don't list ld.so twice in dependencies.
14781         * posix/bug-regex31.c: Include <stdlib.h>.
14783         * nscd/hstcache.c (cache_addhst): Remove unused variable.
14785         * nis/nss_compat/compat-spwd.c
14786         (getspent_next_nss_netgr): Remove unused variable.
14787         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
14789         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
14790         nonmembers" output to use the right array.
14792         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
14794         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
14796         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
14797         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
14798         * catgets/gencat.c (read_input_file): Likewise.
14799         * locale/programs/locarchive.c (enlarge_archive): Likewise.
14801         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
14802         variable definition inside #if's controlling its use.
14804         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
14806         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
14808         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
14810         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
14811         unreachable code.
14813         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
14815         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
14816         * configure: Regenerated.
14818         * Makerules: Revert last change.
14819         * elf/Makefile: Likewise.
14821 2011-06-09  Roland McGrath  <roland@hack.frob.com>
14823         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
14824         * elf/Makefile ($(objpfx)librtld.os): Likewise.
14825         (reloc-link): Likewise.
14827 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
14829         * elf/Makefile: Add rules to build pldd.
14830         * elf/pldd.c: New file.
14831         * elf/pldd-xx.c: New file.
14833 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
14835         * version.h: Update for 2.15 development version.
14837 2011-06-07  David S. Miller  <davem@davemloft.net>
14839         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
14840         ifuncs.
14841         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
14842         elf_machine_lazy_rel): Likewise.
14843         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
14844         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
14845         elf_machine_lazy_rel): Likewise.
14846         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
14847         dl_hwcap via passed in argument.
14848         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
14849         Likewise.
14851 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14853         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
14855 2011-06-06  Roland McGrath  <roland@hack.frob.com>
14857         [BZ #12849]
14858         * manual/fdl-1.1.texi: New file, verbatim from:
14859         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
14860         * manual/lgpl-2.1.texi: New file, verbatim from:
14861         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
14862         * manual/Makefile (licenses): New variable, list those new file names.
14863         (texis): Use it.
14864         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
14866         * manual/fdl.texi: File removed.
14867         * manual/lesser.texi: File removed.
14868         * manual/libc.texinfo (Copying, Documentation License):
14869         Use new @include file names, put @appendix directive before @include.
14871 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
14873         [BZ #12841]
14874         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
14875         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
14876         (mq_open): Add __NTH.
14878 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
14880         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14881         Assume Intel Core i3/i5/i7 processor if AVX is available.
14883 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
14885         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
14886         typo.
14888 2011-05-31  Andreas Schwab  <schwab@redhat.com>
14890         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
14891         memory.  Use alloca_account.  Fix memory leak when retrying.
14893 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
14895         * version.h (RELEASE): Bump for 2.14 release.
14896         * include/features.h (__GLIBC_MINOR__): Bump to 14.
14898         * config.make.in (RANLIB): Remove entry.
14900 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
14902         * po/Makefile (po-sed-cmd): Add ksh to extensions.
14903         (libc.pot): Work around missing support for .ksh extension in xgettext.
14905         [BZ #12684]
14906         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
14907         if both request failed.
14908         (send_dg): In case of server errors clear resplen or *resplen2.
14910         [BZ #12454]
14911         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
14912         when there are multiple maps.
14913         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
14914         (_dl_fini): Remove test here.
14916         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
14918 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
14920         [BZ #12350]
14921         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
14922         bit from old_res_options.
14923         (gaih_inet): Likewise.
14925         [BZ #11099]
14926         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
14927         as signed.
14929         * resolv/res_init.c (res_setoptions): Make the code more compact.
14931         [BZ #11558]
14932         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
14933         set RES_USEVC.
14935         [BZ #11634]
14936         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
14938         * malloc/malloc.h: Mark malloc hook variables as deprecated.
14940         [BZ #11781]
14941         * malloc/malloc.h: Declare malloc hook variables as volatile.
14943         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
14944         in last patch.
14946         [BZ #11799]
14947         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
14948         raise in the comment.
14949         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
14950         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
14951         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
14953 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
14955         [BZ #12811]
14956         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
14957         grow the buffers more if it already has to be sufficient.
14958         (build_wcs_upper_buffer): Likewise.
14959         * posix/regexec.c (check_matching): Likewise.
14960         (clean_state_log_if_needed): Likewise.
14961         (extend_buffers): Don't enlarge buffers beyond size of the input
14962         buffer.
14963         Patches mostly by Emil Wojak <emil@wojak.eu>.
14964         * posix/bug-regex32.c: New file.
14965         * posix/Makefile (tests): Add bug-regex32.
14967         * locale/findlocale.c (_nl_find_locale): Return right away if
14968         _nl_explode_name failed.
14969         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14971         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
14973         * debug/xtrace.sh: Unify messages.
14974         * malloc/memusage.sh: Likewise.
14976         [BZ #12813]
14977         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
14978         time symbol from vDSO.  Substitute with vsyscall if not available.
14979         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
14980         __vdso_time.
14982         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
14983         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
14984         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
14985         Add sendmmsg and internal_sendmmsg.
14986         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
14987         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
14988         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
14990         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
14991         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
14992         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
14994 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
14996         [BZ #12813]
14997         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
14998         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
14999         available.
15000         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
15001         __vdso_getcpu.
15003         [BZ #12814]
15004         * iconvdata/Makefile (tests): Add bug-iconv9.
15005         * iconvdata/bug-iconv9.c: New file.
15007 2011-05-27  Andreas Schwab  <schwab@redhat.com>
15009         [BZ #12814]
15010         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
15012 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
15014         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15015         (struct user_regs_struct): Change intcs field back to cs.
15017 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
15019         * po/ja.po: Update from translation team.
15021 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
15023         [BZ #12795]
15024         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
15025         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
15027 2011-05-20  Andreas Schwab  <schwab@redhat.com>
15029         * stdlib/longlong.h: Update from GCC.
15031 2011-05-23  Andreas Schwab  <schwab@redhat.com>
15033         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
15034         parameter name.
15035         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
15036         Add parameter name.
15037         (__sysconf): Pass it down.
15039 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
15041         [BZ #12671]
15042         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
15043         some situations.
15044         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
15045         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
15046         add in in __libc_use_alloca calls.  Adjust callers.
15047         (glob): Use malloc in some situations.
15049         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
15050         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
15051         pltexit.
15053 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
15055         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
15056         and CLOCK_BOOTTIME_ALARM.
15058         [BZ #12782]
15059         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
15060         is returned.
15062         * string/_strerror.c (__strerror_r): Print negative errors as signed
15063         numbers.
15065         [BZ #12777]
15066         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
15067         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
15068         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
15070         * configure.in: Fix typo in redirection and correct removal of test
15071         files in two cases.
15073         [BZ #12788]
15074         * locale/setlocale.c (new_composite_name): Fix test to check for
15075         identical name of all categories.
15077         [BZ #12792]
15078         * libio/filedoalloc.c (local_isatty): New function.
15079         (_IO_file_doallocate): Use local_isatty.
15080         * stdio-common/perror.c (perror): In case a new stream is used
15081         forward the stream error.
15082         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
15083         error flag.
15085 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
15087         [BZ #11869]
15088         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
15089         alloca.
15090         * include/alloca.h (extend_alloca_account): Define.
15092         [BZ #11857]
15093         * posix/regex.h: Fix comments with documentation of user-accessible
15094         fields after compilation and describe correct free'ing of pattern
15095         after re_compile_pattern.
15096         Patch by Reuben Thomas <rrt@sc3d.org>.
15098 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
15100         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
15101         and -mno-altivec to prevent the compiler from using Altivec and/or
15102         VSX instructions when the corresponding registers are not available.
15104 2011-05-19  Andreas Schwab  <schwab@redhat.com>
15106         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
15108 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
15110         * libio/freopen.c (freopen): Use __dup2, not dup2.
15111         * libio/freopen64.c (freopen64): Likewise.
15113 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15115         [BZ #12775]
15116         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
15117         * math/Makefile (tests): Add test-powl.
15118         (CFLAGS-test-powl.c): Define.
15119         * math/test-powl.c: New file.
15121 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15123         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
15125 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
15127         [BZ #11837]
15128         * iconvdata/gb18030.c: Update to GB18020-2005.
15130 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
15132         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
15133         RE_SYNTAX_POSIX_AWK): Update to match recent development.
15134         Patch by Aharon Robbins <arnold@skeeve.com>.
15136         [BZ #11892]
15137         * stdlib/putenv.c (putenv): Don't always create copy of the variable
15138         on the stack.
15140         [BZ #11895]
15141         * misc/pselect.c (__pselect): Handle timeout value errors hidden
15142         through underflows.
15144         [BZ #12766]
15145         * misc/error.c (error_at_line): Ensure file_name and old_file_name
15146         point to strings before performing equality test for error_one_per_line
15147         mode.
15149         [BZ #11697]
15150         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
15152         [BZ #11820]
15153         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15154         (struct user_fpregs_struct): Avoid __uint*_t types.
15156         [BZ #6420]
15157         * malloc/mtrace.c (tr_where): Add additional parameter to point to
15158         symbol info.  Use it instead of calling _dl_addr locally.
15159         (lock_and_info): New function.
15160         (tr_freehook): Call lock_and_info and pass symbol info as additional
15161         parameter to tr_where.
15162         (tr_mallochook): Likewise.
15163         (tr_reallochook): Likewise.
15164         (tr_memalignhook): Likewise.
15166         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
15167         used and couldn't be at all thread-safe.
15169 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
15171         * libio/freopen.c (freopen): Don't close old file descriptor
15172         before the new one is opened.  Instead dup the new file descriptor
15173         to the old one after the new stream is created.
15174         * libio/freopen64.c (freopen64): Likewise.
15175         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
15176         * libio/fileops.c (_IO_new_file_close_it): Handle new
15177         _IO_FLAGS2_NOCLOSE flag.
15178         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
15179         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
15180         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
15181         _IO_FLAGS2_NOCLOSE flag.
15182         * include/unistd.h: Add hidden_proto for dup3.
15183         Define __have_dup3.
15184         * io/dup3.c: Define hidden symbol.
15185         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
15187         [BZ #7101]
15188         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
15189         when an incomplete long option is used.
15190         * posix/tst-getopt_long1.c: New file.
15191         * posix/Makefile (tests): Add tst-getopt_long1.
15193         [BZ #10138]
15194         * scripts/config.guess: Update from autoconf-2.68.
15195         * scripts/config.sub: Likewise.
15197         [BZ #10157]
15198         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
15199         tests into ...
15200         (has_cpuclock): ...this.  New function.
15201         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
15202         macro here based on has_cpuclock code.
15204         [BZ #10149]
15205         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15206         First byte (not low byte) is now always NUL.
15207         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
15209         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15210         Use non-cancelable interfaces.
15212         [BZ #9809]
15213         * locale/iso-639.def: Add entry for Sorani.
15215         [BZ #11901]
15216         * include/stdlib.h: Move include protection to the right place.
15217         Define abort_msg_s.  Declare __abort_msg with it.
15218         * stdlib/abort.c (__abort_msg): Adjust type.
15219         * assert/assert.c (__assert_fail_base): New function.  Majority
15220         of code from __assert_fail.  Allocate memory for __abort_msg with
15221         mmap.
15222         (__assert_fail): Now call __assert_fail_base.
15223         * assert/assert-perr.c: Remove bulk of implementation.  Use
15224         __assert_fail_base.
15225         * include/assert.hL Declare __assert_fail_base.
15226         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
15227         mmap.
15228         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
15230 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
15232         [BZ #11952]
15233         [BZ #12453]
15234         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
15235         until all modules are registered in the DTV.
15236         * elf/Makefile: Add rules to build and run tst-tls19.
15237         * elf/tst-tls19.c: New file.
15238         * elf/tst-tls19mod1.c: New file.
15239         * elf/tst-tls19mod2.c: New file.
15240         * elf/tst-tls19mod3.c: New file.
15241         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
15243         [BZ #12083]
15244         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
15245         correctly.
15247         [BZ #12601]
15248         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
15249         two-byte sequence errors.
15250         * iconvdata/Makefile (tests): Add bug-iconv8.
15251         * iconvdata/bug-iconv8.c: New file.
15253         [BZ #12626]
15254         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
15255         buf2 definition.
15257         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
15259         [BZ #12432]
15260         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
15261         (dummy_getcfa): New function.
15262         (init): Get _Unwind_GetCFA address, use dummy if not found.
15263         (backtrace_helper): In recursion check, also check whether CFA changes.
15264         (__backtrace): Completely initialize arg.
15266         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
15267         storing incomplete byte sequence in state object.  Avoid testing for
15268         guaranteed too small input if we know there is enough data available.
15270 2011-05-11  Andreas Schwab  <schwab@redhat.com>
15272         * Makeconfig (+link-pie): Indent.
15273         * Rules (binaries-pie): Define if $(have-fpie) and
15274         $(build-shared).
15275         (binaries-shared): Also filter out $(binaries-pie).
15276         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
15277         * nscd/Makefile (others-pie): Add nscd.
15278         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
15279         ($(objpfx)nscd): Remove command override.
15280         * login/Makefile (others-pie): Add pt_chown.
15281         ($(objpfx)pt_chown): Remove command override.
15282         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
15283         remove command overrides.
15285 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
15287         * libio/tst_putwc.c: Fix error messages.
15289         [BZ #12724]
15290         * libio/fileops.c (_IO_new_file_close_it): Always flush when
15291         currently writing and seek to current position when not.
15292         * libio/Makefile (tests): Add bug-fclose1.
15293         * libio/bug-fclose1.c: New file.
15295 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
15297         [BZ #12511]
15298         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
15299         don't set DF_1_NODELETE here.
15300         (do_lookup_x): When entering new entry test for copy relocation
15301         and if necessary set DF_1_NODELETE flag.
15302         * elf/tst-unique4.cc: New file.
15303         * elf/tst-unique4.h: New file.
15304         * elf/tst-unique4lib.cc: New file.
15305         * elf/Makefile: Add rules to build and run tst-unique4.
15306         Patch by Piotr Bury <pbury@goahead.com>.
15308 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15310         [BZ #12052]
15311         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
15313         [BZ #12625]
15314         * misc/mntent_r.c (addmntent): Flush the stream after the output
15316         [BZ #12393]
15317         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
15318         (is_trusted_path_normalize): Skip initial colon.  Append slash
15319         to empty buffer.  Duplicate is_trusted_path code but allow
15320         constructed patch to be prefix.
15321         (is_dst): Allow $ORIGIN followed by /.
15322         (_dl_dst_substitute): Correct clearing of check_for_trusted.
15323         Correct testing of result of is_trusted_path_normalize
15324         (decompose_rpath): Fix warning.
15326 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
15328         [BZ #11257]
15329         * grp/initgroups.c (internal_getgrouplist): When we found the service
15330         list through the initgroups entry in nsswitch.conf do not always
15331         continue on a successful lookup.  Don't always use the
15332         __nss_group_database value if it is set.
15333         * nss/nsswitch.conf (initgroups): Change action for successful db
15334         lookup to continue for compatibility.
15336 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
15338         [BZ #11532]
15339         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
15340         and CP774 modules.
15341         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
15342         and CP774 modules.
15343         * iconvdata/tst-tables.sh: Likewise.
15344         * iconvdata/cp770.c: New file.
15345         * iconvdata/cp771.c: New file.
15346         * iconvdata/cp772.c: New file.
15347         * iconvdata/cp773.c: New file.
15348         * iconvdata/cp774.c: New file.
15349         * iconvdata/testdata/CP770: New file.
15350         * iconvdata/testdata/CP770..UTF8: New file.
15351         * iconvdata/testdata/CP771: New file.
15352         * iconvdata/testdata/CP771..UTF8: New file.
15353         * iconvdata/testdata/CP772: New file.
15354         * iconvdata/testdata/CP772..UTF8: New file.
15355         * iconvdata/testdata/CP773: New file.
15356         * iconvdata/testdata/CP773..UTF8: New file.
15357         * iconvdata/testdata/CP774: New file.
15358         * iconvdata/testdata/CP774..UTF8: New file.
15360         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
15361         END CHARMAP line.
15362         * iconvdata/gen-8bit-gap.sh: Likewise.
15363         * iconvdata/gen-8bit.sh: Likewise.
15365         * locale/iso-639.def: Add ary entry.
15367         [BZ #11258]
15368         * locale/C-translit.h.in: Add U20A1 transliteration.
15370         [BZ #12178]
15371         * locale/iso-639.def: Add wae entry.
15372         Patch by Kevin Bortis <bortis@translate-wae.ch>.
15374         [BZ #12545]
15375         * locale/programs/localedef.c (construct_output_path): Use ssize_t
15376         for n.
15378         [BZ #12711]
15379         * locale/C-translit.h.in: Add entry for U20B9.
15380         Patch by pravin.d.s@gmail.com.
15382 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
15384         [BZ #12713]
15385         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
15386         ENAMETOOLONG use generic getcwd.
15387         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
15388         in rtld.  Use *stat64.
15389         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
15390         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
15391         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
15392         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
15393         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
15394         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
15395         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
15396         __fstatat64 macros.
15397         * include/dirent.h: Add libc_hidden_proto for rewinddir.
15398         * dirent/rewinddir.c: Add libc_hidden_def.
15399         * sysdeps/mach/hurd/rewinddir.c: Likewise.
15400         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
15402         * include/dirent.h (__alloc_dir): Add flags parameter.
15403         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
15404         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
15405         __alloc_dir.
15406         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
15407         from fdopendir if O_CLOEXEC is already set.
15409 2011-03-15  Alan Modra  <amodra@gmail.com>
15411         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
15412         l_tls_firstbyte_offset non-zero.  Save padding offset in
15413         l_tls_firstbyte_offset for later use.
15414         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
15415         freeing static tls block.
15417 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
15419         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
15420         where #ifdef was intended.  The intent is to prevent ARG_MAX from
15421         being defined by the kernel headers.
15423 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
15425         [BZ #12734]
15426         * resolv/resolv.h: Define RES_NOTLDQUERY.
15427         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
15428         no-tld-query and set RES_NOTLDQUERY.
15429         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
15430         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
15431         modern BIND to search name as TLD unless forbidden.
15433 2011-05-07  Petr Baudis  <pasky@suse.cz>
15434             Ulrich Drepper  <drepper@gmail.com>
15436         [BZ #12393]
15437         * elf/dl-load.c (fillin_rpath): Move trusted path check...
15438         (is_trusted_path): ...to here.
15439         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
15440         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
15441         using is_trusted_path_normalize() in setuid scripts.
15443 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
15445         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
15446         __BEGIN/__END_DECLS.
15448 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
15450         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
15451         NSS_STATUS_NOTFOUND if no record was found.
15453 2011-05-05  Andreas Schwab  <schwab@redhat.com>
15455         * sunrpc/Makefile (headers): Add rpc/netdb.h.
15456         (headers-not-in-tirpc): Remove rpc/netdb.h
15457         * resolv/netdb.h: Revert last change.
15459 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15461         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
15462         circular dependency between libgcc.a and libc.a.
15464 2011-05-05  Andreas Schwab  <schwab@redhat.com>
15466         * resolv/netdb.h: Don't include <rpc/netdb.h>.
15467         * nis/Makefile: Don't install rpcsvc/*.
15468         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
15469         instead of <rpc/types.h>.
15470         (MAXHOSTNAMELEN): Define.
15472 2011-05-03  Andreas Schwab  <schwab@redhat.com>
15474         * elf/ldconfig.c (add_dir): Don't crash on empty path.
15476 2011-04-28  Maciej Babinski  <mbabinski@google.com>
15478         [BZ #12714]
15479         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
15480         gethostbyname4_r when IPv6 results are possible.
15482 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
15484         [BZ #12723]
15485         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
15486         _PC_PIPE_BUF handling.
15488 2011-04-30  Bruno Haible  <bruno@clisp.org>
15490         [BZ #12717]
15491         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
15492         * resolv/netdb.h (getnameinfo): Change type of flags parameter
15493         to 'int'.
15494         * inet/getnameinfo.c (getnameinfo): Likewise.
15496 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
15498         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
15499         to groups setting in database lookup.
15500         * nss/nsswitch.conf: Add initgroups entry.
15502 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
15504         [BZ #12685]
15505         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
15506         mode string.
15507         Patch by Eric Blake <eblake@redhat.com>.
15509 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
15511         * sunrpc/Makefile (need-export-routines): Add svc_run.
15512         (routines): Remove svc_run.
15513         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
15514         * sunrpc/clnt_perr.c (clnt_perrno): Export.
15515         * sunrpc/svc_run.c (svc_run): Likewise.
15516         * sunrpc/svc_udp.c (svcudp_create): Likewise.
15518 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
15520         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
15521         problem in reallocation in last patch.
15523 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
15525         * sunrpc/Makefile: Move inclusion of Rules.
15527 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
15529         * nss/nss_files/files-initgroups.c: New file.
15530         * nss/Makefile (libnss_files-routines): Add files-initgroups.
15531         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
15532         _nss_files_initgroups_dyn.
15534 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
15536         * elf/elf.h (R_ARM_IRELATIVE): Define.
15538 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
15540         * po/ru.po: Update from translation team.
15542 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
15544         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
15545         dependencies.
15547 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
15549         [BZ #12653]
15550         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
15551         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
15552         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
15553         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
15554         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
15556 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
15558         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
15559         differing bytes.
15560         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
15561         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
15562         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15564 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
15566         [BZ #12420]
15567         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
15568         storing it.
15569         * stdlib/bug-getcontext.c: New file.
15570         * stdlib/Makefile: Add rules to build and run bug-getcontext.
15572 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15574         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
15575         instructions into .machine "z9-109".
15576         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
15577         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
15579 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15581         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
15582         between environment variables and auxiliary vector.
15584 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
15586         * Makefile: Add rules to build linkobj/libc.so.
15587         * include/libc-symbols.h: Define libc_hidden_nolink.
15588         * include/rpc/auth.h: Mark functions which are to be hidden.
15589         * include/rpc/auth_des.h: Likewise.
15590         * include/rpc/auth_unix.h: Likewise.
15591         * include/rpc/clnt.h: Likewise.
15592         * include/rpc/des_crypt.h: Likewise.
15593         * include/rpc/key_prot.h: Likewise.
15594         * include/rpc/pmap_clnt.h: Likewise.
15595         * include/rpc/pmap_prot.h: Likewise.
15596         * include/rpc/pmap_rmt.h: Likewise.
15597         * include/rpc/rpc_msg.h: Likewise.
15598         * include/rpc/svc.h: Likewise.
15599         * include/rpc/svc_auth.h: Likewise.
15600         * include/rpc/xdr.h: Likewise.
15601         * nis/Makefile: Link all DSOs against linkobj/libc.so.
15602         * nss/Makefile: Likewise.
15603         * sunrpc/Makefile: Don't install headers.  Build library with normal
15604         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
15605         * sunrpc/auth_des.c: Hide exported symbols by default, export some
15606         for the compat linking library.  Remove use of INTDEF/INTUSE.
15607         * sunrpc/auth_none.c: Likewise.
15608         * sunrpc/auth_unix.c: Likewise.
15609         * sunrpc/authdes_prot.c: Likewise.
15610         * sunrpc/authuxprot.c: Likewise.
15611         * sunrpc/clnt_gen.c: Likewise.
15612         * sunrpc/clnt_perr.c: Likewise.
15613         * sunrpc/clnt_raw.c: Likewise.
15614         * sunrpc/clnt_simp.c: Likewise.
15615         * sunrpc/clnt_tcp.c: Likewise.
15616         * sunrpc/clnt_udp.c: Likewise.
15617         * sunrpc/clnt_unix.c: Likewise.
15618         * sunrpc/des_crypt.c: Likewise.
15619         * sunrpc/des_soft.c: Likewise.
15620         * sunrpc/get_myaddr.c: Likewise.
15621         * sunrpc/key_call.c: Likewise.
15622         * sunrpc/key_prot.c: Likewise.
15623         * sunrpc/netname.c: Likewise.
15624         * sunrpc/pm_getmaps.c: Likewise.
15625         * sunrpc/pm_getport.c: Likewise.
15626         * sunrpc/pmap_clnt.c: Likewise.
15627         * sunrpc/pmap_prot.c: Likewise.
15628         * sunrpc/pmap_prot2.c: Likewise.
15629         * sunrpc/pmap_rmt.c: Likewise.
15630         * sunrpc/publickey.c: Likewise.
15631         * sunrpc/rpc_cmsg.c: Likewise.
15632         * sunrpc/rpc_common.c: Likewise.
15633         * sunrpc/rpc_dtable.c: Likewise.
15634         * sunrpc/rpc_prot.c: Likewise.
15635         * sunrpc/rpc_thread.c: Likewise.
15636         * sunrpc/rtime.c: Likewise.
15637         * sunrpc/svc.c: Likewise.
15638         * sunrpc/svc_auth.c: Likewise.
15639         * sunrpc/svc_authux.c: Likewise.
15640         * sunrpc/svc_raw.c: Likewise.
15641         * sunrpc/svc_run.c: Likewise.
15642         * sunrpc/svc_simple.c: Likewise.
15643         * sunrpc/svc_tcp.c: Likewise.
15644         * sunrpc/svc_udp.c: Likewise.
15645         * sunrpc/svc_unix.c: Likewise.
15646         * sunrpc/svcauth_des.c: Likewise.
15647         * sunrpc/xcrypt.c: Likewise.
15648         * sunrpc/xdr.c: Likewise.
15649         * sunrpc/xdr_array.c: Likewise.
15650         * sunrpc/xdr_float.c: Likewise.
15651         * sunrpc/xdr_intXX_t.c: Likewise.
15652         * sunrpc/xdr_mem.c: Likewise.
15653         * sunrpc/xdr_rec.c: Likewise.
15654         * sunrpc/xdr_ref.c: Likewise.
15655         * sunrpc/xdr_sizeof.c: Likewise.
15656         * sunrpc/xdr_stdio.c: Likewise.
15658 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
15660         [BZ #12650]
15661         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
15662         * sysdeps/ia64/dl-tls.h: Likewise.
15663         * sysdeps/powerpc/dl-tls.h: Likewise.
15664         * sysdeps/s390/dl-tls.h: Likewise.
15665         * sysdeps/sh/dl-tls.h: Likewise.
15666         * sysdeps/sparc/dl-tls.h: Likewise.
15667         * sysdeps/x86_64/dl-tls.h: Likewise.
15668         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
15670 2011-03-14  Andreas Schwab  <schwab@redhat.com>
15672         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
15673         rpath element also skip the following colon.
15674         (expand_dynamic_string_token): Add is_path parameter and pass
15675         down to DL_DST_REQUIRED and _dl_dst_substitute.
15676         (decompose_rpath): Call expand_dynamic_string_token with
15677         non-zero is_path.  Ignore empty rpaths.
15678         (_dl_map_object_from_fd): Call expand_dynamic_string_token
15679         with zero is_path.
15681 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
15683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
15684         Make cancelable.
15686 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
15688         [BZ #12655]
15689         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
15690         Patch by Filipe David Manana <fdmanana@apache.org>.
15692 2011-04-07  Andreas Schwab  <schwab@redhat.com>
15694         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
15695         Maintain aligned stack.
15696         (CHECK_RSP): Remove unused macro.
15698 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
15700         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
15701         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
15703 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
15705         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
15707         * include/features.h: Mention __USE_XOPEN2K8 in comment.
15709 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
15711         [BZ #12518]
15712         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
15713         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
15714         * sysdeps/x86_64/memmove.c: New file.
15715         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
15716         (memcpy): Renamed to ...
15717         (__new_memcpy): This.
15718         (memcpy): Provide GLIBC_2_14 memcpy.
15719         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
15720         (memcpy): Provide GLIBC_2_2_5 memcpy.
15722 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15724         [BZ #12631]
15725         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
15727 2011-03-30  Andreas Schwab  <schwab@redhat.com>
15729         * misc/syncfs.c: New file.
15730         * misc/Makefile (routines): Add syncfs.
15731         * posix/unistd.h: Declare syncfs.
15732         * sysdeps/unix/syscalls.list: Add syncfs.
15734 2011-04-01  Andreas Schwab  <schwab@redhat.com>
15736         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
15737         open_by_handle_at.
15738         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15739         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15740         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15741         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15742         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15743         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
15744         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15746 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15748         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
15749         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15750         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
15751         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15752         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15753         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15754         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15756         * io/Makefile: Compile fallocate.c, fallocate64.c, and
15757         sync_file_range.c with -fexceptions.
15758         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
15759         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
15760         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
15761         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
15762         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
15763         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
15764         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
15765         sync_file_range as cancellation point
15766         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
15767         now a wrapper around __call_sync_file_range with cancellation handling.
15768         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
15769         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
15770         function name to __call_sync_file_range.
15771         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
15772         Add call_sync_file_range.
15774 2011-04-01  Andreas Schwab  <schwab@redhat.com>
15776         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15777         bits/timex.h.
15779 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15781         * iconv/iconv.h: Fix typo in comment.
15782         * io/fcntl.h: Likewise.
15783         * libio/stdio.h: Likewise.
15784         * posix/spawn.h: Likewise.
15785         * posix/unistd.h: Likewise.
15786         * stdlib/stdlib.h: Likewise.
15787         * time/time.h: Likewise.
15788         * wcsmbs/wchar.h: Likewise.
15790         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
15791         open_by_handle): Add.
15792         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
15793         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
15794         Augment a few comments.
15795         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15796         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15797         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15798         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15799         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15800         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
15801         open_by_handle.
15803         * io/fcntl.h (AT_EMPTY_PATH): Define.
15805 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
15807         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
15808         * sysdeps/unix/sysv/linux/bits/time.h: New file.
15809         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
15810         to...
15811         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
15812         * Versions.def: Add GLIBC_2.14.
15813         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
15814         Export.
15816 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
15818         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
15819         round counter.
15820         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
15822 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15824         [BZ #12597]
15825         * string/test-strncmp.c (do_page_test): New function.
15826         (check2): Likewise.
15827         (test_main): Call check2.
15828         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
15830 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
15832         [BZ #12587]
15833         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
15834         Handle cache information in CPU leaf 4.
15835         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
15837 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
15839         [BZ #12583]
15840         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
15841         character representation.
15842         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
15844 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
15846         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
15847         END(__isnan) to END(__isnanf) to match function entry point/label
15848         EALIGN(__isnanf,...).
15850 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15852         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
15854 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
15856         [BZ #12510]
15857         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
15858         copy from the symbol referenced in the relocation to initialize the
15859         used variable.
15860         Patch by Piotr Bury <pbury@goahead.com>.
15861         * elf/Makefile: Add rules to build and tst-unique3.
15862         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
15863         * elf/tst-unique3.cc: New file.
15864         * elf/tst-unique3.h: New file.
15865         * elf/tst-unique3lib.cc: New file.
15866         * elf/tst-unique3lib2.cc: New file.
15868         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
15870 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
15872         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
15873         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
15874         to _start.
15876 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
15878         * elf/dl-load.c (_dl_map_object): If we are looking for the first
15879         to-be-loaded object along a path to loader is ld.so.
15881 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
15882             Ulrich Drepper  <drepper@gmail.com>
15884         * sysdeps/x86_64/memset.S: After aligning destination, code
15885         branches to different locations depending on the value of
15886         misalignment, when multiarch is enabled. Fix this.
15888 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
15890         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
15891         Set _x86_64_preferred_memory_instruction for AMD processsors.
15892         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15893         Set bit_Prefer_SSE_for_memop for AMD processors.
15895 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
15897         * libio/fmemopen.c (fmemopen): Optimize a bit.
15899 2011-03-03  Andreas Schwab  <schwab@redhat.com>
15901         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
15903 2011-03-03  Roland McGrath  <roland@redhat.com>
15905         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
15907 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
15909         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
15910         __bzero_ultra1 instead of __memset_ultra1.
15912 2011-02-23  Andreas Schwab  <schwab@redhat.com>
15913             Ulrich Drepper  <drepper@gmail.com>
15915         [BZ #12509]
15916         * include/link.h (struct link_map): Add l_orig_initfini.
15917         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
15918         returning unsuccessfully.
15919         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
15920         close of a file loaded at startup, restore the original l_initfini
15921         list.
15922         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
15923         list, store the pointer.
15924         * elf/Makefile ($(objpfx)noload-mem): New rule.
15925         (noload-ENV): Define.
15926         (tests): Add $(objpfx)noload-mem.
15927         * elf/noload.c: Include <memcheck.h>.
15928         (main): Call mtrace.  Close all opened handles.
15930 2011-02-17  Andreas Schwab  <schwab@redhat.com>
15932         [BZ #12454]
15933         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
15934         dependencies are missing.
15936 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15938         Fix __if_freereq crash: Unlike the generic version which uses free,
15939         Hurd needs munmap.
15940         * sysdeps/mach/hurd/ifreq.h: New file.
15942 2011-01-27  Petr Baudis  <pasky@suse.cz>
15943             Ulrich Drepper  <drepper@gmail.com>
15945         [BZ 12445]#
15946         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
15947         to extend_alloca().
15948         * stdio-common/bug23.c: New file.
15949         * stdio-common/Makefile (tests): Add bug23.
15951 2010-09-28  Andreas Schwab  <schwab@redhat.com>
15952             Ulrich Drepper  <drepper@gmail.com>
15954         [BZ #12489]
15955         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
15956         before performing relro protection.  At old place add assertion
15957         to make sure nothing changed.
15959 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
15960             Glauber de Oliveira Costa  <glommer@gmail.com>
15962         * elf/elf.h: Add new ARM TLS relocs.
15964 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
15966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
15967         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
15968         cast from r3.
15969         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
15970         'tests' variable.
15971         * sysdeps/wordsize-64/tst-writev.c: New file.
15973 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
15975         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
15976         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
15977         insns in _dl_start to prevent a TOC reference before relocs are
15978         resolved.
15980 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
15982         [BZ #12469]
15983         * Makeconfig: Remove RANLIB definition.
15984         * Makerules: Don't use RANLIB.
15985         * aclocal.m4: Remove ranlib test.
15986         * configure.in: No need to check for ranlib.
15987         * elf/rtld-Rules: Don't use RANLIB.
15989 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15991         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
15992         protection macro.
15993         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
15994         inclusion protection macro.
15996         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
15997         SIGRTMIN and SIGRTMAX and print information in that case only when
15998         SIGRTMIN is defined.
16000 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16002         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
16003         arginfo fn returning -1.
16005         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
16006         and thousands string is zero terminated.
16008 2011-02-03  Andreas Schwab  <schwab@redhat.com>
16010         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
16011         sysdeps/unix/sysv/linux/bits/socket.h.
16013 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16015         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
16016         (__CPU_COUNT): Remove old macros.
16017         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
16018         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
16019         (__CPU_ALLOC, __CPU_FREE): Add macros.
16020         (__sched_cpualloc, __sched_cpufree): Add declarations.
16022 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
16024         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
16025         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
16026         * nscd/aicache.c (addhstaiX): Return timeout of added value.
16027         (readdhstai): Return value of addhstaiX call.
16028         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
16029         (addgrbyX): Return value returned by cache_addgr.
16030         (readdgrbyname): Return value returned by addgrbyX.
16031         (readdgrbygid): Likewise.
16032         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
16033         (addpwbyX): Return value returned by cache_addpw.
16034         (readdpwbyname): Return value returned by addhstbyX.
16035         (readdpwbyuid): Likewise.
16036         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
16037         (addservbyX): Return value returned by cache_addserv.
16038         (readdservbyname): Return value returned by addservbyX:
16039         (readdservbyport): Likewise.
16040         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
16041         (addhstbyX): Return value returned by cache_addhst.
16042         (readdhstbyname): Return value returned by addhstbyX.
16043         (readdhstbyaddr): Likewise.
16044         (readdhstbynamev6): Likewise.
16045         (readdhstbyaddrv6): Likewise.
16046         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
16047         (readdinitgroups): Return value returned by addinitgroupsX.
16048         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
16049         (prune_cache): Keep track of timeout value of re-added entries.
16050         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
16051         * nscd/nscd.h: Adjust prototypes of readd* functions.
16053 2011-02-04  Roland McGrath  <roland@redhat.com>
16055         * nis/nis_server.c (nis_servstate): Use the right name for 0.
16056         (nis_stats): Likewise.
16057         * nis/nis_modify.c (nis_modify): Likewise.
16058         * nis/nis_remove.c (nis_remove): Likewise.
16059         * nis/nis_add.c (nis_add): Likewise.
16061         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
16063         * posix/fnmatch_loop.c: Add some consts.
16065         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
16067 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
16069         [BZ #12460]
16070         * config.make.in (config-cflags-novzeroupper): Define.
16071         * configure.in: Substitute libc_cv_cc_novzeroupper.
16072         * elf/Makefile (AVX-CFLAGS): Define.
16073         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
16074         (CFLAGS-tst-auditmod4a.c): Likewise.
16075         (CFLAGS-tst-auditmod4b.c): Likewise.
16076         (CFLAGS-tst-auditmod6b.c): Likewise.
16077         (CFLAGS-tst-auditmod6c.c): Likewise.
16078         (CFLAGS-tst-auditmod7b.c): Likewise.
16079         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
16081 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
16083         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
16084         function to the callback.
16085         Patch partly by Jiri Olsa <jolsa@redhat.com>.
16087 2011-02-02  Andreas Schwab  <schwab@redhat.com>
16089         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
16090         of errno.
16092 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
16094         [BZ #11724]
16095         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
16096         of constructors.
16097         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
16098         of destructors.
16099         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
16101         [BZ #11724]
16102         * elf/Makefile: Add rules to build and run new test.
16103         * elf/tst-initorder.c: New file.
16104         * elf/tst-initorder.exp: New file.
16105         * elf/tst-initordera1.c: New file.
16106         * elf/tst-initordera2.c: New file.
16107         * elf/tst-initordera3.c: New file.
16108         * elf/tst-initordera4.c: New file.
16109         * elf/tst-initorderb1.c: New file.
16110         * elf/tst-initorderb2.c: New file.
16111         * elf/tst-order-a1.c: New file.
16112         * elf/tst-order-a2.c: New file.
16113         * elf/tst-order-a3.c: New file.
16114         * elf/tst-order-a4.c: New file.
16115         * elf/tst-order-b1.c: New file.
16116         * elf/tst-order-b2.c: New file.
16117         * elf/tst-order-main.c: New file.
16118         New test case by George Gensure <werkt0@gmail.com>.
16120 2010-10-01  Andreas Schwab  <schwab@redhat.com>
16122         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16123         decoding ACE if AI_CANONIDN.
16125 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
16127         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
16129 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
16131         * version.h (RELEASE): Bump for 2.13 release.
16132         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
16134         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
16136         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
16137         MADV_NOHUGEPAGE.
16138         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
16139         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
16140         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
16141         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
16142         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
16143         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
16145         * posix/getconf.c: Update copyright year.
16146         * catgets/gencat.c: Likewise.
16147         * csu/version.c: Likewise.
16148         * debug/catchsegv.sh: Likewise.
16149         * debug/xtrace.sh: Likewise.
16150         * elf/ldconfig.c: Likewise.
16151         * elf/ldd.bash.in: Likewise.
16152         * elf/sprof.c (print_version): Likewise.
16153         * iconv/iconv_prog.c: Likewise.
16154         * iconv/iconvconfig.c: Likewise.
16155         * locale/programs/locale.c: Likewise.
16156         * locale/programs/localedef.c: Likewise.
16157         * malloc/memusage.sh: Likewise.
16158         * malloc/mtrace.pl: Likewise.
16159         * nscd/nscd.c (print_version): Likewise.
16160         * nss/getent.c: Likewise.
16162         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
16163         PF_CAIF, and PF_ALG.
16164         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16166 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
16168         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
16169         (modules-names): Use them.
16170         (ifunc-test-modules, ifunc-pie-tests): Define.
16171         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
16172         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
16173         (test-extras): Likewise.
16174         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
16175         $(compile-command.c).
16176         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
16177         (all-built-dso): Define.
16178         (check-textrel.out, check-execstack.out): Depend on it.
16180         * configure.in: Don't override --enable-multi-arch.
16182 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
16184         [BZ #6812]
16185         * nscd/hstcache.c (tryagain): Define.
16186         (cache_addhst): Return tryagain not notfound for temporary errors.
16187         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
16188         failed.
16190 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
16192         [BZ #10563]
16193         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
16194         to make the syscall.
16195         * sysdeps/unix/sysv/linux/setgroups.c: New file.
16197         [BZ #12378]
16198         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
16199         and fall back to matching as normal character if the string ends before
16200         the matching ']' is found.  This is what POSIX requires.
16201         * posix/testfnm.c: Adjust test result.
16202         * posix/globtest.sh: Adjust test result.  Add new test.
16203         * posix/tst-fnmatch.input: Likewise.
16204         * posix/tst-fnmatch2.c: Add new test.
16206 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
16208         * elf/Makefile (check-execstack): Revert last change.  Depend on
16209         check-execstack.h.
16210         (check-execstack.h): New target.
16211         (generated): Add check-execstack.h.
16212         * elf/check-execstack.c: Include "check-execstack.h".
16213         (main): Revert last change.
16214         (handle_file): Return zero if GNU_STACK is absent and
16215         DEFAULT_STACK_PERMS doesn't include PF_X.
16217 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
16219         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
16220         in child fails because the descriptor is already closed.
16221         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
16222         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
16223         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
16225         [BZ #12397]
16226         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
16227         syscall.
16229         [BZ #10484]
16230         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
16231         temporary buffer used to handle multi lookups locally.
16232         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
16234 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
16236         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
16237         loader is ld.so.
16239 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
16241         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
16242         alignment for SSE2.
16244 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
16246         [BZ #12394]
16247         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
16248         characters.  When rounding increased number of integer digits recompute
16249         number of groups.
16250         * stdio-common/tst-grouping.c: New file.
16251         * stdio-common/Makefile: Add rules to build and run tst-grouping.
16253 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
16255         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
16256         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
16258         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
16259         void.
16260         * bits/select.h: Likewise.
16262 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
16264         * po/ja.po: Update from translation team.
16266 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
16268         [BZ #11155]
16269         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
16270         implementation just like for lxstat, fxstatat, et al.
16272 2010-12-27  Jim Meyering  <meyering@redhat.com>
16274         [BZ #12348]
16275         * posix/regexec.c (build_trtable): Return failure indication upon
16276         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16278 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
16280         [BZ #12201]
16281         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
16282         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
16283         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
16284         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
16286         [BZ #12207]
16287         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
16289         [BZ #12204]
16290         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
16291         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
16293 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
16295         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
16296         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
16297         script has SORT_BY_INIT_PRIORITY.
16298         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
16299         NO_CTORS_DTORS_SECTIONS is defined.
16300         * elf/soinit.c: Likewise.
16301         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
16302         NO_CTORS_DTORS_SECTIONS is defined.
16303         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
16304         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
16305         * sysdeps/sh/init-first.c: Likewise.
16306         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
16308 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
16310         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
16311         always use the slow path.
16313 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
16315         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
16316         similar rule which adds the sysdep directories to the header search in
16317         order to pick up the correct platform stackinfo.h.
16318         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
16319         perform test if it is, otherwise return successfully without testing.
16320         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
16321         DEFAULT_STACK_PERMS define in stackinfo.h.
16322         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
16323         defined in stackinfo.h.
16324         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
16325         DEFAULT_STACK_PERMS defined in stackinfo.h.
16326         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
16327         * sysdeps/ia64/stackinfo.h: Likewise.
16328         * sysdeps/s390/stackinfo.h: Likewise.
16329         * sysdeps/sh/stackinfo.h: Likewise.
16330         * sysdeps/sparc/stackinfo.h: Likewise.
16331         * sysdeps/x86_64/stackinfo.h: Likewise.
16332         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
16333         PF_X for powerpc64.  Retain PF_X for powerpc32.
16335 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
16337         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
16338         accurately.
16339         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
16340         GETDENTS_64BIT_ALIGNED.
16342 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
16344         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
16346 2010-12-10  Andreas Schwab  <schwab@redhat.com>
16348         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
16349         _GNU_SOURCE.
16351         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
16352         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
16353         Remove __restrict.
16354         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
16355         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
16357 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
16359         [BZ #11655]
16360         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
16361         are initialized.
16363 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
16365         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
16367 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
16369         * po/it.po: Update from translation team.
16371 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
16373         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
16374         unused codes.
16376 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
16378         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
16380 2010-11-24  Andreas Schwab  <schwab@redhat.com>
16382         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
16383         specially.
16384         (gaih_getanswer_slice): Likewise.
16386 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
16388         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
16390 2010-05-31  Petr Baudis  <pasky@suse.cz>
16392         [BZ #11149]
16393         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
16394         silently even in the chroot mode.
16396 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
16398         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
16399         last patch a bit.  Pretty printing
16401 2010-05-31  Petr Baudis <pasky@suse.cz>
16403         [BZ #10085]
16404         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
16405         initialization of skip_initgroups_dyn.
16407 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
16409         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
16410         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
16412 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
16414         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
16416 2010-11-11  Andreas Schwab  <schwab@redhat.com>
16418         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
16419         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
16420         (tst-fnmatch-ENV): Set MALLOC_TRACE.
16421         ($(objpfx)tst-fnmatch-mem): New rule.
16422         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
16423         * posix/tst-fnmatch.c (main): Call mtrace.
16425 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
16427         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16428         Support Intel processor model 6 and model 0x2c.
16430 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
16432         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
16433           signed comparison.
16435 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
16437         [BZ #12205]
16438         * string/test-strncasecmp.c (check_result): New function.
16439         (do_one_test): Use it.
16440         (check1): New function.
16441         (test_main): Use it.
16442         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
16443         Support strcasecmp and strncasecmp.
16445 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
16447         [BZ #12194]
16448         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
16449         * sysdeps/x86_64/bits/byteswap.h: Likewise.
16451 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16453         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
16454         IFUNC support.
16455         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16456         memset-x86-64.
16457         * sysdeps/x86_64/multiarch/bzero.S: New file.
16458         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
16459         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
16460         * sysdeps/x86_64/multiarch/memset.S: New file.
16461         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
16462         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16463         Set bit_Prefer_SSE_for_memop for Intel processors.
16464         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
16465         Define.
16466         (index_Prefer_SSE_for_memop): Define.
16467         (HAS_PREFER_SSE_FOR_MEMOP): Define.
16469 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
16471         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
16472         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
16474 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
16476         [BZ #12191]
16477         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
16478         (__x86_64_raw_data_cache_size_half): Likewise.
16479         (__x86_64_raw_shared_cache_size): Likewise.
16480         (__x86_64_raw_shared_cache_size_half): Likewise.
16482         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
16483         (__x86_64_raw_data_cache_size_half): Likewise.
16484         (__x86_64_raw_shared_cache_size): Likewise.
16485         (__x86_64_raw_shared_cache_size_half): Likewise.
16486         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
16487         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
16488         and __x86_64_raw_shared_cache_size_half.  Round
16489         __x86_64_data_cache_size_half, __x86_64_data_cache_size
16490         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
16491         to multiple of 256 bytes.
16493 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
16495         [BZ #12167]
16496         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
16497         of inacessible symlinks.  Verify result of symlink before returning it.
16498         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
16499         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
16501 2010-10-28  Erich Ritz  <erichritz@gmail.com>
16503         * math/math.h (isinf): Fix typo in comment.
16505 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
16507         * po/da.po: Update from translation team.
16509 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
16511         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
16512         is added to the list.
16514 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16515             Ulrich Drepper  <drepper@gmail.com>
16517         * elf/dl-object.c (_dl_new_object): Don't append the new object to
16518         the global list here.  Move code to...
16519         (_dl_add_to_namespace_list): ...here.  New function.
16520         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
16521         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
16522         * elf/dl-load.c (lose): Don't remove the element from the list.
16523         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
16524         (_dl_map_object): Likewise.
16526 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
16528         [BZ #12159]
16529         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
16530         into all bytes of SSE register.
16531         Patch by Richard Li <richardpku@gmail.com>.
16533 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
16535         [BZ #12140]
16536         * malloc/malloc.c (_int_free): Fill correct number of bytes when
16537         perturbing.
16539 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
16541         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
16542         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
16543         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
16544         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
16545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
16546         submachine.
16547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
16549 2010-10-22  Andreas Schwab  <schwab@redhat.com>
16551         * include/dlfcn.h (__RTLD_SECURE): Define.
16552         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
16553         mode & __RTLD_SECURE instead.
16554         (open_path): Rename preloaded parameter to secure.
16555         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
16556         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
16557         * elf/dl-deps.c (openaux): Likewise.
16558         * elf/rtld.c (struct map_args): Remove is_preloaded.
16559         (map_doit): Don't use it.
16560         (dl_main): Likewise.
16561         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
16562         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
16564 2010-09-09  Andreas Schwab  <schwab@redhat.com>
16566         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
16567         (sysd-rules-targets): Remove duplicates.
16568         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
16569         rtld-%.$o dependency.
16571 2010-10-18  Andreas Schwab  <schwab@redhat.com>
16573         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
16574         _dl_map_object do it.
16576 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
16578         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
16579         fast fma builtins, define the macros in the C99 standard.
16580         (FP_FAST_FMAF): Likewise.
16581         (FP_FAST_FMAL): Likewise.
16582         * sysdeps/x86_64/bits/mathdef.h: Likewise.
16584         * bits/mathdef.h: Update copyright year.
16585         * sysdeps/powerpc/bits/mathdef.h: Likewise.
16587 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
16589         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
16590         builtins, define the macros in the C99 standard.
16591         (FP_FAST_FMAF): Likewise.
16592         (FP_FAST_FMAL): Likewise.
16593         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
16594         multiply/add.
16595         (FP_FAST_FMAF): Likewise.
16597 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
16599         [BZ #3268]
16600         * math/libm-test.inc (fma_test): Some new testcases.
16601         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
16602         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
16603         y and infinite z.  Do multiplication by C already in long double.
16604         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
16605         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
16606         y and infinite z.  Do bitwise or of inexact bit into u.d.
16607         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
16608         * sysdeps/i386/fpu/s_fmaf.S: Removed.
16609         * sysdeps/i386/fpu/s_fma.S: Removed.
16610         * sysdeps/i386/fpu/s_fmal.S: Removed.
16612 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
16614         [BZ #3268]
16615         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
16616         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
16617         computation is not scheduled after fetestexcept.  Fix value
16618         of minimum denormal long double.
16620 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
16622         [BZ #3268]
16623         * math/libm-test.inc (fma_test): Add some more tests.
16624         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
16625         correctly.
16627 2010-10-15  Andreas Schwab  <schwab@redhat.com>
16629         * scripts/data/localplt-s390-linux-gnu.data: New file.
16630         * scripts/data/localplt-s390x-linux-gnu.data: New file.
16632 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
16634         [BZ #3268]
16635         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
16636         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
16637         instead of dbl-64.
16638         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
16639         inlines.
16640         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
16641         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
16642         if one of x and y is very large and the other is subnormal.
16643         * sysdeps/s390/fpu/s_fmaf.c: New file.
16644         * sysdeps/s390/fpu/s_fma.c: New file.
16645         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
16646         * sysdeps/powerpc/fpu/s_fma.S: New file.
16647         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
16648         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
16649         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
16651 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
16653         [BZ #3268]
16654         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
16655         fma tests.
16656         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
16657         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
16658         * sysdeps/i386/i686/multiarch/s_fma.c: Include
16659         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
16660         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
16661         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
16662         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
16664 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
16666         [BZ #12078]
16667         * posix/regcomp.c (parse_branch): One more memory leak plugged.
16668         * posix/bug-regex31.input: Add test case.
16670 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
16672         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
16673         * posix/bug-regex31.input: New file.
16675         [BZ #12078]
16676         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
16677         (parse_sub_exp): Fix last change, use postorder.
16679         * posix/bug-regex31.c: New file.
16680         * posix/Makefile: Add rules to build and run bug-regex31.
16682         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
16684         [BZ #12078]
16685         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
16687         [BZ #12108]
16688         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
16689         to have entries in sys_siglist.
16691         [BZ #12093]
16692         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
16693         be NULL.
16695 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
16697         [BZ #3268]
16698         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
16699         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
16700         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
16701         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
16702         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16703         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
16704         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
16705         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
16706         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
16707         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
16708         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
16709         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
16710         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
16711         * math/ftestexcept.c (fetestexcept): Likewise.
16712         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
16713         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
16714         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
16715         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
16716         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
16717         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
16718         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
16720 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
16722         [BZ #12107]
16723         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
16724         newline.
16726 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
16728         * string/bug-strstr1.c: New file.
16729         * string/Makefile: Add rules to build and run bug-strstr1.
16731 2010-10-05  Eric Blake  <eblake@redhat.com>
16733         [BZ #12092]
16734         * string/str-two-way.h (two_way_long_needle): Always clear memory
16735         when skipping input due to the shift table.
16737 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
16739         [BZ #12005]
16740         * malloc/mcheck.c: Handle large requests.
16742         [BZ #12077]
16743         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
16744         for strncmp and strncasecmp.
16745         * string/stratcliff.c: Add tests for strcmp and strncmp.
16746         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
16748 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16750         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
16751         __set_fpscr.
16753 2010-09-30  Andreas Jaeger  <aj@suse.de>
16755         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
16756         (CGROUP_SUPER_MAGIC): Define.
16757         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16758         Handle btrfs and cgroup file systems.
16759         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
16760         Likewise.
16762 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
16764         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
16765         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
16767 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16769         [BZ #12067]
16770         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
16771         trying to locate the ELF header.
16773 2010-09-27  Andreas Schwab  <schwab@redhat.com>
16775         [BZ #11611]
16776         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
16777         Mask out sign-bit copies when constructing f_fsid.
16779 2010-09-24  Petr Baudis <pasky@suse.cz>
16781         * debug/stack_chk_fail_local.c: Add missing licence exception.
16782         * debug/warning-nop.c: Likewise.
16784 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
16786         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
16787         implementing getdents64 using getdents syscall, set d_type if
16788         __ASSUME_GETDENTS32_D_TYPE.
16790 2010-09-16  Andreas Schwab  <schwab@redhat.com>
16792         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
16793         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
16795 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
16797         [BZ #12037]
16798         * posix/unistd.h: Undo change of feature selection for ftruncate from
16799         2010-01-11.
16801 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
16803         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
16804         detection.
16806 2010-09-20  Andreas Schwab  <schwab@redhat.com>
16808         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
16809         fanotify_mark.
16810         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
16812 2010-09-14  Andreas Schwab  <schwab@redhat.com>
16814         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
16815         variables after CHECK_SP call.
16816         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
16818 2010-09-13  Andreas Schwab  <schwab@redhat.com>
16819             Ulrich Drepper  <drepper@redhat.com>
16821         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
16822         re-relocationg ld.so.
16823         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
16824         _dl_init_paths call.
16825         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
16826         here anymore.
16828 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
16830         * resolv/res_init.c (__res_vinit): Count the default server we added.
16832 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
16833             Ulrich Drepper  <drepper@redhat.com>
16835         [BZ #11968]
16836         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16837         (____longjmp_chk): Use %ebx for saving value across system call.
16838         Add unwind info.
16840 2010-09-06  Andreas Schwab  <schwab@redhat.com>
16842         * manual/Makefile: Don't mix pattern rules with normal rules.
16844 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
16846         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
16847         operation.
16848         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
16849         * libio/iofopncook.c (_IO_cookie_init): Likewise.
16850         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
16851         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
16852         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16853         Likewise.
16855 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
16857         [BZ #11979]
16858         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
16859         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
16861 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
16863         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
16864         * sysdeps/x86_64/addmul_1.S: Likewise.
16865         * sysdeps/x86_64/lshift.S: Likewise.
16866         * sysdeps/x86_64/mul_1.S: Likewise.
16867         * sysdeps/x86_64/rshift.S: Likewise.
16868         * sysdeps/x86_64/sub_n.S: Likewise.
16869         * sysdeps/x86_64/submul_1.S: Likewise.
16871 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16873         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
16874         Define __sched_param instead of SCHED_* and sched_param when
16875         <bits/sched.h> is included with __need_schedparam defined.
16876         * bits/sched.h [__need_schedparam]
16877         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
16878         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
16879         (__defined_schedparam): Define to 1.
16880         (__sched_param): New structure, identical to sched_param.
16881         (__need_schedparam): Undefine.
16883 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
16885         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
16886         (epoll_create1): Declare.
16888         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
16890 2010-08-31  Andreas Schwab  <schwab@redhat.com>
16892         [BZ #7066]
16893         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
16894         shifting retval into place.
16896 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
16898         * nis/rpcsvc/nis.h: Update copyright notice.
16899         * nis/rpcsvc/nis.x: Likewise.
16900         * nis/rpcsvc/nis_callback.h: Likewise.
16901         * nis/rpcsvc/nis_callback.x: Likewise.
16902         * nis/rpcsvc/nis_object.x: Likewise.
16903         * nis/rpcsvc/nis_tags.h: Likewise.
16904         * nis/rpcsvc/yp.h: Likewise.
16905         * nis/rpcsvc/yp.x: Likewise.
16906         * nis/rpcsvc/ypupd.h: Likewise.
16907         * nis/yp_xdr.c: Likewise.
16908         * nis/ypupdate_xdr.c: Likewise.
16910         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
16911         mainly the body of pmap_getport.  Add parameters to specify timeouts.
16912         (pmap_getport): Use __libc_rpc_getport.
16913         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
16914         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
16915         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
16917 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
16919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
16920         fanotify_mark.
16922 2010-08-27  Roland McGrath  <roland@redhat.com>
16924         * sysdeps/i386/i686/multiarch/Makefile
16925         (CFLAGS-varshift.c): New variable.
16927 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
16929         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
16930         * sysdeps/i386/i686/multiarch/varshift.c: New file.
16932         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
16934         * sysdeps/x86_64/strlen.S: Minimal code improvement.
16936 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
16938         * sysdeps/x86_64/strlen.S: Unroll the loop.
16939         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16940         strlen-sse2 strlen-sse2-bsf.
16941         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
16942         __strlen_no_bsf if bit_Slow_BSF is set.
16943         (__strlen_sse42): Removed.
16944         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
16945         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
16947 2010-08-25  Roland McGrath  <roland@redhat.com>
16949         * sysdeps/x86_64/multiarch/varshift.S: File removed.
16950         * sysdeps/x86_64/multiarch/varshift.c: New file.
16951         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
16952         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
16953         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
16954         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
16956 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16958         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16959         strlen-sse2 strlen-sse2-bsf.
16960         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
16961         __strlen_sse2_bsf if bit_Slow_BSF is unset.
16962         (__strlen_sse2): Removed.
16963         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
16964         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
16965         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
16966         bit_Slow_BSF for Atom.
16967         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
16968         (index_Slow_BSF): Define.
16969         (HAS_SLOW_BSF): Define.
16971 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
16973         [BZ #10851]
16974         * resolv/res_init.c (__res_vinit): When no server address at all
16975         is given default to loopback.
16977 2010-08-24  Roland McGrath  <roland@redhat.com>
16979         * configure.in: Remove config-name.h generation.
16980         * configure: Regenerated.
16981         * config-name.in: File removed.
16982         * scripts/config-uname.sh: New file.
16983         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
16984         ($(objdir)config-name.h): New target.
16986         * sunrpc/rpc_parse.h: Avoid nested comment.
16988 2010-08-24  Richard Henderson  <rth@redhat.com>
16989             Ulrich Drepper  <drepper@redhat.com>
16990             H.J. Lu  <hongjiu.lu@intel.com>
16992         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
16993         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
16994         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
16995         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
16996         _mm_alignr_epi8 with _mm_loadu_si128.
16997         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
16998         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
16999         (__m128i_shift_right): Removed.
17000         * sysdeps/i386/i686/multiarch/varshift.h: New file.
17001         * sysdeps/i386/i686/multiarch/varshift.S: New file.
17002         * sysdeps/x86_64/multiarch/varshift.h: New file.
17003         * sysdeps/x86_64/multiarch/varshift.S: New file.
17005 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
17007         * configure.in: Move assembler checks to before sysdep dir checking.
17009 2010-08-20  Petr Baudis  <pasky@suse.cz>
17011         * LICENSES: Sync the sunrpc license.
17013 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
17015         * sunrpc/auth_des.c: Update copyright notice once again.
17016         * sunrpc/auth_none.c: Likewise.
17017         * sunrpc/auth_unix.c: Likewise.
17018         * sunrpc/authdes_prot.c: Likewise.
17019         * sunrpc/authuxprot.c: Likewise.
17020         * sunrpc/bindrsvprt.c: Likewise.
17021         * sunrpc/clnt_gen.c: Likewise.
17022         * sunrpc/clnt_perr.c: Likewise.
17023         * sunrpc/clnt_raw.c: Likewise.
17024         * sunrpc/clnt_simp.c: Likewise.
17025         * sunrpc/clnt_tcp.c: Likewise.
17026         * sunrpc/clnt_udp.c: Likewise.
17027         * sunrpc/clnt_unix.c: Likewise.
17028         * sunrpc/des_crypt.c: Likewise.
17029         * sunrpc/des_soft.c: Likewise.
17030         * sunrpc/get_myaddr.c: Likewise.
17031         * sunrpc/getrpcport.c: Likewise.
17032         * sunrpc/key_call.c: Likewise.
17033         * sunrpc/key_prot.c: Likewise.
17034         * sunrpc/openchild.c: Likewise.
17035         * sunrpc/pm_getmaps.c: Likewise.
17036         * sunrpc/pm_getport.c: Likewise.
17037         * sunrpc/pmap_clnt.c: Likewise.
17038         * sunrpc/pmap_prot.c: Likewise.
17039         * sunrpc/pmap_prot2.c: Likewise.
17040         * sunrpc/pmap_rmt.c: Likewise.
17041         * sunrpc/rpc/auth.h: Likewise.
17042         * sunrpc/rpc/auth_unix.h: Likewise.
17043         * sunrpc/rpc/clnt.h: Likewise.
17044         * sunrpc/rpc/des_crypt.h: Likewise.
17045         * sunrpc/rpc/key_prot.h: Likewise.
17046         * sunrpc/rpc/netdb.h: Likewise.
17047         * sunrpc/rpc/pmap_clnt.h: Likewise.
17048         * sunrpc/rpc/pmap_prot.h: Likewise.
17049         * sunrpc/rpc/pmap_rmt.h: Likewise.
17050         * sunrpc/rpc/rpc.h: Likewise.
17051         * sunrpc/rpc/rpc_des.h: Likewise.
17052         * sunrpc/rpc/rpc_msg.h: Likewise.
17053         * sunrpc/rpc/svc.h: Likewise.
17054         * sunrpc/rpc/svc_auth.h: Likewise.
17055         * sunrpc/rpc/types.h: Likewise.
17056         * sunrpc/rpc/xdr.h: Likewise.
17057         * sunrpc/rpc_clntout.c: Likewise.
17058         * sunrpc/rpc_cmsg.c: Likewise.
17059         * sunrpc/rpc_common.c: Likewise.
17060         * sunrpc/rpc_cout.c: Likewise.
17061         * sunrpc/rpc_dtable.c: Likewise.
17062         * sunrpc/rpc_hout.c: Likewise.
17063         * sunrpc/rpc_main.c: Likewise.
17064         * sunrpc/rpc_parse.c: Likewise.
17065         * sunrpc/rpc_parse.h: Likewise.
17066         * sunrpc/rpc_prot.c: Likewise.
17067         * sunrpc/rpc_sample.c: Likewise.
17068         * sunrpc/rpc_scan.c: Likewise.
17069         * sunrpc/rpc_scan.h: Likewise.
17070         * sunrpc/rpc_svcout.c: Likewise.
17071         * sunrpc/rpc_tblout.c: Likewise.
17072         * sunrpc/rpc_util.c: Likewise.
17073         * sunrpc/rpc_util.h: Likewise.
17074         * sunrpc/rpcinfo.c: Likewise.
17075         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
17076         * sunrpc/rpcsvc/key_prot.x: Likewise.
17077         * sunrpc/rpcsvc/klm_prot.x: Likewise.
17078         * sunrpc/rpcsvc/mount.x: Likewise.
17079         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
17080         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
17081         * sunrpc/rpcsvc/rex.x: Likewise.
17082         * sunrpc/rpcsvc/rstat.x: Likewise.
17083         * sunrpc/rpcsvc/rusers.x: Likewise.
17084         * sunrpc/rpcsvc/sm_inter.x: Likewise.
17085         * sunrpc/rpcsvc/spray.x: Likewise.
17086         * sunrpc/rpcsvc/yppasswd.x: Likewise.
17087         * sunrpc/rtime.c: Likewise.
17088         * sunrpc/svc.c: Likewise.
17089         * sunrpc/svc_auth.c: Likewise.
17090         * sunrpc/svc_authux.c: Likewise.
17091         * sunrpc/svc_raw.c: Likewise.
17092         * sunrpc/svc_run.c: Likewise.
17093         * sunrpc/svc_simple.c: Likewise.
17094         * sunrpc/svc_tcp.c: Likewise.
17095         * sunrpc/svc_udp.c: Likewise.
17096         * sunrpc/svc_unix.c: Likewise.
17097         * sunrpc/svcauth_des.c: Likewise.
17098         * sunrpc/xcrypt.c: Likewise.
17099         * sunrpc/xdr.c: Likewise.
17100         * sunrpc/xdr_array.c: Likewise.
17101         * sunrpc/xdr_float.c: Likewise.
17102         * sunrpc/xdr_mem.c: Likewise.
17103         * sunrpc/xdr_rec.c: Likewise.
17104         * sunrpc/xdr_ref.c: Likewise.
17105         * sunrpc/xdr_sizeof.c: Likewise.
17106         * sunrpc/xdr_stdio.c: Likewise.
17108         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
17109         handling.
17111 2010-08-19  Andreas Schwab  <schwab@redhat.com>
17113         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
17115 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
17117         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
17118         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
17119         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
17120         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
17121         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
17122         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
17123         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
17124         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
17125         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
17126         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
17127         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
17128         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
17129         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
17130         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
17132 2010-07-26  Anton Blanchard  <anton@samba.org>
17134         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
17135         * malloc/arena.c (heap_trim): Likewise.
17137 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
17139         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
17140         here.  Not...
17141         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
17142         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
17144 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
17146         * sysdeps/i386/elf/Makefile: New file.
17148 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
17150         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
17151         from fanotify_init.
17152         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
17153         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17155 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
17157         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
17158         of strncasecmp_l.
17159         * sysdeps/multiarch/strcmp.S: Likewise.
17161 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
17163         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
17164         strncase_l-nonascii.
17165         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
17166         Add strncase_l-ssse3.
17167         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
17168         * sysdeps/x86_64/strcmp.S: Likewise.
17169         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
17170         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
17171         * sysdeps/x86_64/strncase.S: New file.
17172         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
17173         * sysdeps/x86_64/strncase_l.S: New file.
17174         * string/Makefile (strop-tests): Add strncasecmp.
17175         * string/test-strncasecmp.c: New file.
17177         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
17178         warning.
17180         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
17181         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
17183 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
17185         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
17187 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
17189         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
17190         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
17191         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
17193 2010-05-01  Alan Modra  <amodra@gmail.com>
17195         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
17196         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
17197         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
17198         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
17199         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
17200         tidying.  Don't tail-call __sigjmp_save for static lib.
17201         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
17202         save location.
17203         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
17204         (CALL_MCOUNT): Add eh info, and nop after bl.
17205         (TAIL_CALL_SYSCALL_ERROR): New macro.
17206         (PSEUDO_RET): Use it.
17207         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
17208         Correct save location of integer regs and cr.
17209         (_dl_profile_resolve): Correct cr save location.  Delete nops
17210         after bl when SHARED.  Reduce cfi size a little by better
17211         placement of cfi directives.
17212         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
17213         make a stack frame.  Instead use parm save area as a temp.
17214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
17215         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
17216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
17217         Don't make a stack frame for parent, use parm save area.
17218         Increase child stack frame to 112 bytes.  Don't save unused reg,
17219         and adjust reg usage.  Set up cfi on error recovery and
17220         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
17221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
17222         (__makecontext): Add dummy nop after jump to exit.
17223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
17224         Use correct parm save area and cr save, reduce stack frame.
17225         Correct cfi for possible PSEUDO_RET frame setup.
17226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
17227         Branch to local label emitted by PSEUDO_RET rather than
17228         __syscall_error.
17230 2010-08-12  Andreas Schwab  <schwab@redhat.com>
17232         [BZ #11904]
17233         * locale/programs/locale.c (print_assignment): New function.
17234         (show_locale_vars): Use it.
17236 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
17238         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
17239         field.
17240         (struct statfs64): Likewise.
17241         (_STATFS_F_FLAGS): Define.
17242         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
17243         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17244         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
17245         (ST_VALID): Define locally.
17246         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
17247         __statvfs_getflags, use the provided value.
17248         * sysdeps/unix/sysv/linux/kernel-features.h: Define
17249         __ASSUME_STATFS_F_FLAGS.
17251         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
17253         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
17254         Add sys/fanotify.h.
17255         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
17256         fanotify_mask for GLIBC_2.13.
17257         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
17258         fanotify_init and fanotify_mark.
17259         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17260         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
17262         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
17263         Add prlimit.
17264         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
17265         prlimit64 for GLIBC_2.13.
17266         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
17267         prlimit64.
17268         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
17269         syscall.
17270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
17271         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
17272         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
17273         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
17274         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
17275         add prlimit alias.
17276         * sysdeps/unix/sysv/linux/prlimit.c: New file.
17278         [BZ #11903]
17279         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
17280         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
17282         * nss/Makefile: Add rules to build and run tst-nss-test1.
17283         * shlib-versions: Add entry for libnss_test1.
17284         * nss/nss_test1.c: New file.
17285         * nss/tst-nss-test1.c: New file.
17287         * nss/nsswitch.c (__nss_database_custom): Define new variable.
17288         (__nss_configure_lookup): Set appropriate entry in
17289         __nss_configure_lookup to true.
17290         * nss/nsswitch.h: Define enum with indeces of databases in
17291         databases and __nss_database_custom arrays.  Declare
17292         __nss_database_custom.
17293         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
17294         to avoid using nscd when custom rules are installed.
17295         * nss/getXXbyYY_r.c: Likewise.
17296         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
17298         * nss/nss_files/files-parse.c: Whitespace fixes.
17300 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
17302         [BZ #11883]
17303         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
17304         * posix/fnmatch_loop.c: Likewise.
17306 2010-07-17  Andi Kleen  <ak@linux.intel.com>
17308         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
17309         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
17310         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
17311         * Versions.def [GLIBC_2.13]: Add.
17313 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
17315         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17316         Also fail if tpwd after pwuid call is NULL.
17318 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17320         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
17321         when converting to ms.
17323 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17325         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
17326         EOPNOTSUPP errors with ENOTTY.
17327         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
17328         EOPNOTSUPP errors with ENOTTY.
17330 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
17332         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
17333         Add strcasecmp_l-ssse3.
17334         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
17335         strcasecmp.
17336         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
17337         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
17338         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
17340 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
17342         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
17344         * string/Makefile (strop-tests): Add strcasecmp.
17345         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
17346         strcasecmp_l-nonascii.
17347         (gen-as-const-headers): Add locale-defines.sym.
17348         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
17349         * sysdeps/x86_64/strcasecmp.S: New file.
17350         * sysdeps/x86_64/strcasecmp_l.S: New file.
17351         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
17352         * sysdeps/x86_64/locale-defines.sym: New file.
17353         * string/test-strcasecmp.c: New file.
17355         * string/test-strcasestr.c: Test both ends of the range of characters.
17356         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
17358 2010-07-29  Roland McGrath  <roland@redhat.com>
17360         [BZ #11856]
17361         * manual/locale.texi (Yes-or-No Questions): Fix example code.
17363 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
17365         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
17366         for ld.so.
17368 2010-07-27  Andreas Schwab  <schwab@redhat.com>
17370         * manual/memory.texi (Malloc Tunable Parameters): Document
17371         M_PERTURB.
17373 2010-07-26  Roland McGrath  <roland@redhat.com>
17375         [BZ #11840]
17376         * configure.in (-fgnu89-inline check): Set and substitute
17377         gnu89_inline, not libc_cv_gnu89_inline.
17378         * configure: Regenerated.
17379         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
17381 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
17383         * string/test-strnlen.c: New file.
17384         * string/Makefile (strop-tests): Add strnlen.
17385         * string/tester.c (test_strnlen): Add a few more test cases.
17386         * string/tst-strlen.c: Better error reporting.
17388         * sysdeps/x86_64/strnlen.S: New file.
17390 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
17392         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
17393         lower-latency instructions.
17395 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
17397         * string/test-strcasestr.c: New file.
17398         * string/test-strstr.c: New file.
17399         * string/Makefile (strop-tests): Add strstr and strcasestr.
17400         * string/str-two-way.h: Don't undefine MAX.
17401         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
17403 2010-07-21  Andreas Schwab  <schwab@redhat.com>
17405         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17406         strcasestr-nonascii.
17407         (CFLAGS-strcasestr-nonascii.c): Define.
17408         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
17409         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
17410         Remove unused attribute.
17412 2010-07-20  Roland McGrath  <roland@redhat.com>
17414         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
17415         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
17416         ld.so.cache was broken.  With it, there is no way to disable dsocaps
17417         like LD_HWCAP_MASK can disable hwcaps.
17419 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
17421         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
17423 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
17425         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
17426         call in strcasestr.
17427         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
17428         __strcasestr_sse42_nonascii.
17429         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
17430         strcasestr-nonascii.c.
17431         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
17433 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
17435         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
17436         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
17437         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
17438         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
17440 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
17442         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
17443         fcntl.
17445 2010-07-06  Andreas Schwab  <schwab@redhat.com>
17447         [BZ #11577]
17448         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
17449         dl_signal_cerror.
17451 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
17453         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
17454         _PC_PIPE_BUF using F_GETPIPE_SZ.
17456 2010-07-05  Roland McGrath  <roland@redhat.com>
17458         * manual/arith.texi (Rounding Functions): Fix rint description
17459         implicit in round description.
17461 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
17463         * elf/Makefile: Fix linking for a few tests to make recent linker
17464         happy.
17466 2010-06-30  Andreas Schwab  <schwab@redhat.com>
17468         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17469         $(common-objpfx)libc_nonshared.a.
17471 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
17473         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
17474         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
17475         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
17476         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
17477         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
17478         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
17479         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
17480         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
17481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
17482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
17483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
17484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
17485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
17486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
17487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
17488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
17489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
17490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
17491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
17492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
17493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
17494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
17495         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
17496         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
17497         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
17498         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
17499         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
17500         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
17501         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
17502         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
17503         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
17504         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
17505         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
17506         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
17507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
17508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
17509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
17510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
17511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
17512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
17513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
17514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
17515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
17516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
17517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
17518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
17519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
17520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
17522 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
17524         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
17525         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
17526         * string/memmove.c (memmove): Renamed to ...
17527         (MEMMOVE): ...this.  Default to memmove.
17528         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
17529         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
17530         (END_CHK): Define.
17531         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17532         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
17533         mempcpy-ssse3-back memmove-ssse3-back.
17534         * sysdeps/x86_64/multiarch/bcopy.S: New file .
17535         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
17536         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
17537         * sysdeps/x86_64/multiarch/memcpy.S: New file.
17538         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
17539         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
17540         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
17541         * sysdeps/x86_64/multiarch/memmove.c: New file.
17542         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
17543         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
17544         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
17545         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
17546         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
17547         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
17548         Define.
17549         (index_Fast_Copy_Backward): Define.
17550         (HAS_ARCH_FEATURE): Define.
17551         (HAS_FAST_REP_STRING): Define.
17552         (HAS_FAST_COPY_BACKWARD): Define.
17554 2010-06-21  Andreas Schwab  <schwab@redhat.com>
17556         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17557         Restore proper fallback handling.
17559 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
17561         [BZ #11701]
17562         * posix/group_member.c (__group_member): Correct checking loop.
17564         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
17565         OOM in getpwuid_r correctly.  Return error number when the caller
17566         should return, otherwise -1.
17567         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
17568         call returning > 0 value.
17569         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
17571 2010-06-07  Andreas Schwab  <schwab@redhat.com>
17573         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
17574         libc_nonshared.a from targets in modules-names.
17576 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
17578         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
17579         requires it.
17581 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
17583         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
17584         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
17585         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
17586         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
17588 2010-06-02  Andreas Schwab  <schwab@redhat.com>
17590         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
17592 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
17594         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
17595         and F_GETPIPE_SZ.
17596         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17597         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17598         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17599         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17600         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17601         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
17603 2010-06-14  Roland McGrath  <roland@redhat.com>
17605         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
17607 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
17609         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
17610         __REDIRECT followed by __THROW.
17611         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
17612         * posix/getopt.h (getopt): Likewise.
17614 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
17616         * hurd/lookup-at.c (__file_name_lookup_at): Accept
17617         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
17618         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
17619         in AT_FLAGS.
17620         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
17621         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
17623 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
17625         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
17627 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
17629         [BZ #11640]
17630         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17631         Properly check family and model.
17633 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
17635         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
17637 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
17639         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
17641 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
17643         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
17644         symbol reference.
17646 2010-05-19  Andreas Schwab  <schwab@redhat.com>
17648         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
17649         symbol reference.
17651 2010-05-21  Andreas Schwab  <schwab@redhat.com>
17653         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
17654         and internal_recvmmsg.
17655         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
17656         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
17657         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
17658         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
17660         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
17661         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
17662         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
17664 2010-05-20  Andreas Schwab  <schwab@redhat.com>
17666         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
17668 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
17670         POWER7 optimizations.
17671         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
17672         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
17674 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
17676         * version.h: Update for 2.13 development version.
17678 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
17680         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
17681         exceptions.  Return 0.
17683 2010-05-07  Roland McGrath  <roland@redhat.com>
17685         * elf/ldconfig.c (main): Add a const.
17687 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
17689         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
17690         (args_options): Add no-idn option.
17691         (ahosts_keys_int): Add idn_flags to ai_flags.
17692         (parse_option): Handle 'i' option to clear idn_flags.
17694         * malloc/malloc.c (_int_free): Possible race in the most recently
17695         added check.  Only act on the data if no current modification
17696         happened.
17698 See ChangeLog.17 for earlier changes.