Remove ASM_TYPE_DIRECTIVE for ARM.
[platform/upstream/glibc.git] / ChangeLog
1 2012-08-02  Marek Polacek  <polacek@redhat.com>
2
3         [BZ#14150]
4         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
5         libc_cv_asm_type_prefix with %.
6         * configure: Regenerated.
7         * include/libc-symbols.h: Remove comment about
8         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
9         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
10         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
11         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
12         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
13         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
14         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
15         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
16         * elf/tst-unique2mod1.c: Likewise.
17         * elf/tst-unique1mod2.c: Likewise.
18         * elf/tst-unique1mod1.c: Likewise.
19         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
20         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
21         Replace ASM_TYPE_DIRECTIVE with .type.
22         * sysdeps/s390/s390-64/sysdep.h: Likewise.
23         * sysdeps/i386/sysdep.h: Likewise.
24         * sysdeps/x86_64/sysdep.h: Likewise.
25         * sysdeps/sh/sysdep.h: Likewise.
26         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
27         Do not define ASM_TYPE_DIRECTIVE.
28         * sysdeps/powerpc/sysdep.h: Likewise.
29         * sysdeps/powerpc/powerpc32/sysdep.h:
30         Replace ASM_TYPE_DIRECTIVE with .type.
31         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
32         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
33         * sysdeps/i386/fpu/e_powf.S: Likewise.
34         * sysdeps/i386/fpu/e_expl.S: Likewise.
35         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
36         * sysdeps/i386/fpu/e_acosh.S: Likewise.
37         * sysdeps/i386/fpu/e_pow.S: Likewise.
38         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
39         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
40         * sysdeps/i386/fpu/s_expm1.S: Likewise.
41         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
42         * sysdeps/i386/fpu/e_log2.S: Likewise.
43         * sysdeps/i386/fpu/e_log2l.S: Likewise.
44         * sysdeps/i386/fpu/e_scalb.S: Likewise.
45         * sysdeps/i386/fpu/e_powl.S: Likewise.
46         * sysdeps/i386/fpu/e_log10f.S: Likewise.
47         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
48         * sysdeps/i386/fpu/e_logl.S: Likewise.
49         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
50         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
51         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
52         * sysdeps/i386/fpu/e_log2f.S: Likewise.
53         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
54         * sysdeps/i386/fpu/e_log.S: Likewise.
55         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
56         * sysdeps/i386/fpu/e_logf.S: Likewise.
57         * sysdeps/i386/fpu/e_log10l.S: Likewise.
58         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
60         * sysdeps/i386/fpu/e_log10.S: Likewise.
61         * sysdeps/i386/fpu/s_frexp.S: Likewise.
62         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
63         * sysdeps/i386/fpu/s_asinh.S: Likewise.
64         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
65         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
66         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
67         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
68         * sysdeps/i386/i686/strtok.S: Likewise.
69         * sysdeps/i386/i386-mcount.S: Likewise.
70         * sysdeps/i386/strtok.S: Likewise.
71         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
72         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
73         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
74         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
75         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
76         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
77         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
78         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
79         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
80         * sysdeps/x86_64/_mcount.S: Likewise.
81         * sysdeps/x86_64/strtok.S: Likewise.
82         * sysdeps/sh/_mcount.S: Likewise.
83
84 2012-08-01  Roland McGrath  <roland@hack.frob.com>
85
86         * libio/iofopen.c: Include <fcntl.h>.
87         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
88         (_IO_fopen64, fopen64): Define as aliases.
89         * libio/iofopen64.c: Include <fcntl.h>.
90         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
91         Conditionalize body on this.
92         * sysdeps/wordsize-64/iofopen.c: File removed.
93         * sysdeps/wordsize-64/iofopen64.c: File removed.
94
95 2012-08-01  Marek Polacek  <polacek@redhat.com>
96
97         * libc/Makeconfig: Use elf in place of binfmt-subdir.
98         Use dlfcn directly instead of a variable.
99         (binfmt-subdir): Do not define.
100         (dlfcn): Likewise.
101
102 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
103
104         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
105         Remove all definitions.
106         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
107         <kernel-features.h>.
108         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
109         (miss_F_GETOWN_EX): Remove all definitions.
110         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
111         macro definition.
112         [!__ASSUME_FCNTL64]: Remove conditional code.
113         [__ASSUME_FCNTL64]: Make code unconditional.
114         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
115         <kernel-features.h>.
116         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
117         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
118         (lockf64) [__NR_fcntl64]: Make code unconditional.
119         (lockf64) [__ASSUME_FCNTL64]: Likewise.
120
121         * sysdeps/unix/sysv/linux/kernel-features.h
122         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
123         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
124         Make code unconditional.
125         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
126         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
128         [__NR_vfork]: Make code unconditional.
129         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
130         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
132         [__NR_vfork]: Make code unconditional.
133         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
134         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
135
136 2012-08-01  Roland McGrath  <roland@hack.frob.com>
137
138         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
139         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
140
141         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
142         Define mkstemp64 as an alias.
143         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
144         Define mkstemps64 as an alias.
145         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
146         Define mkostemp64 as an alias.
147         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
148         Define mkostemps64 as an alias.
149         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
150         Conditionalize body on this.
151         * misc/mkostemp64.c: Likewise.
152         * misc/mkostemps64.c: Likewise.
153         * misc/mkstemps64.c: Likewise.
154         * sysdeps/wordsize-64/mkstemp64.c: File removed.
155         * sysdeps/wordsize-64/mkostemp64.c: File removed.
156         * sysdeps/wordsize-64/mkostemp.c: File removed.
157         * sysdeps/wordsize-64/mkstemp.c: File removed.
158         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
159         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
160         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
161         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
162
163         [BZ #14138]
164         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
165         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
166         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
167         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
168
169         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
170         compat_symbol macros from <shlib-compat.h> rather than the underlying
171         default_symbol_version and symbol_version macros, so that DEFAULT
172         lines in shlib-versions are respected.
173         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
174
175 2012-08-01  Florian Weimer  <fweimer@redhat.com>
176
177         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
178         Declare with warn_unused_result.
179         (setgid, setregid, setegid, setresgid): Likewise.
180         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
181         Likewise.
182         * WUR-REPORT: Remove set*id functions.
183
184 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
185
186         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
187
188 2012-07-31  Roland McGrath  <roland@hack.frob.com>
189
190         * include/sys/socket.h (__libc_accept, __libc_accept4):
191         Add attribute_hidden.
192         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
193
194         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
195         use of PTR_MANGLE.
196         * inet/getnetgrent_r.c (setup): Likewise.
197
198         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
199
200 2012-07-31  David S. Miller  <davem@davemloft.net>
201
202         * sysdeps/sparc/fpu/libm-test-ulps: Update.
203
204 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
205
206         [BZ #13629]
207         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
208         value between 1.0 and 2.0 and smaller part has absolute value less
209         than 1.0.
210         * math/s_clog10.c (__clog10): Likewise.
211         * math/s_clog10f.c (__clog10f): Likewise.
212         * math/s_clog10l.c (__clog10l): Likewise.
213         * math/s_clogf.c (__clogf): Likewise.
214         * math/s_clogl.c (__clogl): Likewise.
215         * math/libm-test.inc (clog_test): Add more tests.
216         (clog10_test): Likewise.
217         * sysdeps/i386/fpu/libm-test-ulps: Update.
218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
219
220 2012-07-31  Florian Weimer  <fweimer@redhat.com>
221
222         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
223         Exit with zero in case no suitable GID is found, and write a
224         message to standard error.
225
226 2012-07-30  Roland McGrath  <roland@hack.frob.com>
227
228         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
229         rather than to 1.
230         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
231         (MAXPATHLEN): Removed.
232         (NOGROUP, NODEV): New macros.
233         (setbit, clrbit, isset, isclr): New macros.
234         (howmany, roundup, powerof2): New macros.
235         (DEV_BSIZE): New macro.
236
237         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
238         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
239
240         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
241         definition on [!__NO_LONG_DOUBLE_MATH].
242
243         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
244         PTR_MANGLE and PTR_DEMANGLE.
245
246         * socket/accept4.c (accept4): Rename to __libc_accept4.
247         Define accept4 as a weak alias.
248
249         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
250         on [_DIRENT_HAVE_D_TYPE].
251         * io/ftw.c (ftw_dir): Likewise.
252
253         * io/xmknod.c (__xmknod): Don't check PATH for being null.
254
255         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
256
257         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
258         Use the BSD numbers rather than the arbitrary ones we had.
259         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
260         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
261         (SIGXCPU, SIGXFSZ): New macros.
262         (_NSIG): Now 32.
263
264         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
265         initializer on [_LIBC_REENTRANT].
266
267         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
268         definitions inside [_POSIX_MAPPED_FILES].
269
270         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
271
272         * dirent/opendir.c: Include <fcntl.h>.
273
274         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
275         (__libc_getspecific): Likewise.
276         (__libc_key_create): Likewise.
277
278         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
279         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
280         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
281         (tmpfile64): Define as alias.
282         * sysdeps/wordsize-64/tmpfile.c: File removed.
283         * sysdeps/wordsize-64/tmpfile64.c: File removed.
284         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
285         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
286
287         * stdio-common/vfscanf.c: Include <stdbool.h>.
288         * nss/makedb.c: Likewise.
289         * stdio-common/_i18n_number.h: Likewise.
290         * argp/argp-help.c: Likewise.
291         * posix/wordexp.c: Likewise.
292         * sysdeps/posix/spawni.c: Likewise.
293         * nss/nss_files/files-initgroups.c: Likewise.
294         * stdio-common/reg-modifier.c: Include <stdlib.h>.
295         * nss/nss_files/files-initgroups.c: Likewise.
296         * nss/nss_db/db-netgrp.c: Likewise.
297         * nss/nss_db/db-initgroups.c: Likewise.
298         * io/fchmodat.c: Include <sys/stat.h>.
299
300         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
301         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
302
303         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
304         [HAVE_MMAP].
305
306         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
307         Add multiple inclusion protection.
308
309 2012-07-27  David S. Miller  <davem@davemloft.net>
310
311         * sysdeps/sparc/fpu/libm-test-ulps: Update.
312
313 2012-07-27  Gary Benson  <gbenson@redhat.com>
314
315         [BZ #14298]
316         * elf/rtld.c: Include <stap-probe.h>.
317         (dl_main): Added static probes "init_start" and "init_complete".
318         * elf/dl-load.c: Include <stap-probe.h>.
319         (lose): Take new parameter "nsid".
320         Added static probe "map_failed".
321         (_dl_map_object_from_fd): Pass namespace id to lose.
322         Added static probe "map_start".
323         (open_verify): Pass namespace id to lose.
324         * elf/dl-open.c: Include <stap-probe.h>.
325         (dl_open_worker) Added static probes "map_complete", "reloc_start"
326         and "reloc_complete".
327         * elf/dl-close.c: Include <stap-probe.h>.
328         (_dl_close_worker): Added static probes "unmap_start" and
329         "unmap_complete".
330         * elf/rtld-debugger-interface.txt: New file documenting the above.
331
332 2012-07-26  Roland McGrath  <roland@hack.frob.com>
333
334         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
335         rather than a string variable.
336         * sunrpc/rpc_main.c (h_output): Likewise.
337         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
338
339 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
340
341         * inet/check_native.c: New file.
342
343 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
344
345         [BZ #13629]
346         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
347         if larger part has absolute value 1.0.
348         * math/s_clog10.c (__clog10): Likewise.
349         * math/s_clog10f.c (__clog10f): Likewise.
350         * math/s_clog10l.c (__clog10l): Likewise.
351         * math/s_clogf.c (__clogf): Likewise.
352         * math/s_clogl.c (__clogl): Likewise.
353         * math/libm-test.inc (clog_test): Add more tests.
354         (clog10_test): Likewise.
355         * sysdeps/i386/fpu/libm-test-ulps: Update.
356         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
357
358         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
359         (pltexit): Likewise.
360         (La_regs): Likewise.
361         (La_retval): Likewise.
362         (int_retval): Likewise.
363         Update #error for removed macros to refer only to definitions in
364         tst-audit.h.
365         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
366         macro.
367         (pltexit): Likewise.
368         (La_regs): Likewise.
369         (La_retval): Likewise.
370         (int_retval): Likewise.
371         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
372         macro.
373         (pltexit): Likewise.
374         (La_regs): Likewise.
375         (La_retval): Likewise.
376         (int_retval): Likewise.
377         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
378         macro.
379         (pltexit): Likewise.
380         (La_regs): Likewise.
381         (La_retval): Likewise.
382         (int_retval): Likewise.
383         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
384         macro.
385         (pltexit): Likewise.
386         (La_regs): Likewise.
387         (La_retval): Likewise.
388         (int_retval): Likewise.
389         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
390         macro.
391         (pltexit): Likewise.
392         (La_regs): Likewise.
393         (La_retval): Likewise.
394         (int_retval): Likewise.
395         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
396         macro.
397         (pltexit): Likewise.
398         (La_regs): Likewise.
399         (La_retval): Likewise.
400         (int_retval): Likewise.
401         * sysdeps/generic/tst-audit.h: Update comment to refer only to
402         macro definitions in tst-audit.h.
403         * sysdeps/i386/tst-audit.h: New file.
404         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
405         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
406         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
407         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
408         * sysdeps/sh/tst-audit.h: Likewise.
409         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
410         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
411         * sysdeps/x86_64/tst-audit.h: Likewise.
412
413 2012-07-26  Andreas Jaeger  <aj@suse.de>
414
415         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
416         ptrace.
417
418         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
419         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
420         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
421         PTRACE_O_MASK.
422         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
423         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
424         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
425
426         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
427         value.
428
429         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
430         _sigsys.
431         (si_call_addr, si_syscall, si_arch): Define new macro.
432         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
433         _sigsys.
434         (si_call_addr, si_syscall, si_arch): Define new marcro.
435         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
436         _sigsys.
437         (si_call_addr, si_syscall, si_arch): Define new macro.
438         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
439         _sigsys.
440         (si_call_addr, si_syscall, si_arch): Define new macro.
441
442 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
443
444         [BZ #13717]
445         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
446         Change to 2.4.21 where previously 2.4.1.
447         * sysdeps/unix/sysv/linux/configure: Regenerated.
448         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
449         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
450         Linux kernel version.
451         (__ASSUME_STD_AUXV): Remove.
452         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
453         kernel version.
454         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
455         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
456         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
457         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
458         (__ASSUME_NETLINK_SUPPORT): Likewise.
459         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
460         (__no_netlink_support): Remove conditional definition.
461         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
462         Remove.
463         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
464         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
465         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
466         (if_nameindex_ioctl): Remove.
467         (if_nameindex_netlink): Do not handle __no_netlink_support.
468         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
469         code.
470         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
471         Remove conditional code.
472         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
473         code.
474         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
475         unconditional.
476         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
477         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
478         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
479         Remove.
480         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
481         [!__ASSUME_STD_AUXV]: Remove conditional code.
482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
483         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
484         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
486         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
487         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
488         code.
489         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
491         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
492         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
493         conditional code.
494         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
496         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
497         code.
498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
499         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
500         conditional code.
501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
502         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
503         code unconditional.
504         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
505         conditional code.
506         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
507         unconditional.
508         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
509         conditional code.
510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
511         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
512         unconditional.
513         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
514         conditional code.
515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
516         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
517         code unconditional.
518         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
519         conditional code.
520         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
521         unconditional.
522         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
523         conditional code.
524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
525         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
526         code unconditional.
527         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
528         conditional code.
529         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
530         unconditional.
531         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
532         conditional code.
533
534 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
535
536         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
537         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
538         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
539         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
540         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
541         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
542         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
543         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
544         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
545         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
546         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
547         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
548         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
549         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
550         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
551         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
552         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
553         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
554         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
555         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
556         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
557         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
558         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
559
560 2012-07-25  Florian Weimer  <fweimer@redhat.com>
561
562         * Versions.def: Add GLIBC_2.17.
563         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
564         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
565         Introduce __libc_secure_getenv.
566         * stdlib/Versions (2.17): Add secure_getenv
567         (GLIBC_PRIVATE): Add __libc_secure_getenv.
568         * stdlib/secure-getenv.c: Rename __secure_getenv to
569         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
570         symbol __secure_getenv for GLIBC_2.0.
571         * stdlib/tst-secure-getenv.c: New.
572         * stdlib/Makefile (tests): Add testcase.
573         * manual/startup.texi (Environment Access): Document
574         secure_getenv.
575         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
576         __libc_secure_getenv.
577         * inet/ruserpass.c (ruserpass): Likewise.
578         * malloc/mtrace.c (mtrace): Likewise.
579         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
580         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
581         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
582         * sysdeps/posix/tempname.c: Likewise.  Evaluate
583         HAVE_SECURE_GETENV.
584         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
585         __secure_getenv to __libc_secure_getenv.
586         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
588         Likewise.
589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
590         Likewise.
591         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
592         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
593         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
594         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
595         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
596         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
597         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
598
599 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
600
601         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
602         (struct La_i86_retval): Likewise.
603         (struct La_x86_64_regs): Likewise.
604         (struct La_x86_64_retval): Likewise.
605         (struct La_x32_regs): Likewise.
606         (struct La_x32_retval): Likewise.
607         (struct La_ppc32_regs): Likewise.
608         (struct La_ppc32_retval): Likewise.
609         (struct La_ppc64_regs): Likewise.
610         (struct La_ppc64_retval): Likewise.
611         (struct La_sh_regs): Likewise.
612         (struct La_sh_retval): Likewise.
613         (struct La_s390_32_regs): Likewise.
614         (struct La_s390_32_retval): Likewise.
615         (struct La_s390_64_regs): Likewise.
616         (struct La_s390_64_retval): Likewise.
617         (struct La_sparc32_regs): Likewise.
618         (struct La_sparc32_retval): Likewise.
619         (struct La_sparc64_regs): Likewise.
620         (struct La_sparc64_retval): Likewise.
621         (struct audit_ifaces): Remove architecture-specific pltenter and
622         pltexit members.
623         * sysdeps/i386/ldsodefs.h: New file.
624         * sysdeps/powerpc/ldsodefs.h: Likewise.
625         * sysdeps/s390/ldsodefs.h: Likewise.
626         * sysdeps/sh/ldsodefs.h: Likewise.
627         * sysdeps/sparc/ldsodefs.h: Likewise.
628         * sysdeps/x86_64/ldsodefs.h: Likewise.
629
630 2012-07-25  Marek Polacek  <polacek@redhat.com>
631
632         [BZ #6808]
633         * math/libm-test.inc (yn_test): Add another test.
634         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
635         to ERANGE when the result is +-Inf.
636         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
637         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
638         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
639         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
640
641 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
642
643         * conform/data/time.h-data (NULL): Use macro-constant.  Require
644         equal to 0.
645         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
646         clock_t.
647         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
648
649 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
650
651         * configure.in <sysdeps resolving>: Correct printing
652         Implies_before.
653         * configure: Regenerate.
654
655 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
656
657         * math/w_ilogb.c: Include <limits.h>.
658         * math/w_ilogbl.c: Likewise.
659
660 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
661
662         * manual/lang.texi (__va_copy): Document primarily as ISO C99
663         va_copy.  Document allowing for unavailable va_copy only as
664         pre-C99 compatibility.
665         * manual/string.texi (Copying and Concatenation): Use va_copy
666         instead of __va_copy in concat example.
667
668 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
669
670         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
671         (__sendto): Use create_address_port.  Initialize APORT and deallocate
672         it if not null.
673
674         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
675         with O_NOLINK passed to __file_name_lookup.
676
677         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
678         with O_NOLINK passed to __file_name_lookup.
679
680         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
681         negative N or less than NGIDS.
682
683         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
684         type to string_t.  Set ERANGE as errno and return it if NAME is not big
685         enough.  Use memcpy instead of strncpy.
686
687 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
688
689         * elf/Makefile (check-data): Remove.
690         (localplt.data): New vpath directive.
691         ($(objpfx)check-localplt.out): Use localplt.data from vpath
692         instead of $(check-data).
693         * scripts/data/localplt-generic.data: Move to ...
694         * sysdeps/generic/localplt.data: ... here.
695         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
696         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
697         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
699         ... here.
700         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
702         ... here.
703         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
704         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
705         ... here.
706         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
707         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
708         ... here.
709         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
710         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
711         ... here.
712         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
713         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
714         ... here.
715
716 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
717
718         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
719         PPC32 and PPC64 files.
720         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
721         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
722
723 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
724
725         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
726         __makecontext_ret to ...
727         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
728         ... here and call exit if uc_link is NULL.  New file.
729         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
730         __makecontext_ret.S.
731         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
732         __makecontext_ret to ...
733         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
734         ... here and call exit if uc_link is NULL.  New file.
735         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
736         __makecontext_ret.S.
737
738 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
739
740         * elf/elf.h (R_390_IRELATIVE): New definition.
741         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
742         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
743         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
744         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
745         (elf_machine_lazy_rel): Likewise.
746         * sysdeps/s390/dl-irel.h: New file.
747         * sysdeps/s390/s390-64/memcpy.S: New asm code.
748         * sysdeps/s390/s390-64/memset.S: New asm code.
749         * sysdeps/s390/s390-64/memcmp.S: New asm code.
750         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
751         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
752         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
753         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
754         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
755         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
756         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
757         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
758         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
759         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
760         * sysdeps/s390/s390-32/memcpy.S: New asm code.
761         * sysdeps/s390/s390-32/memset.S: New asm code.
762         * sysdeps/s390/s390-32/memcmp.S: New asm code.
763
764 2012-07-17  Marek Polacek  <polacek@redhat.com>
765
766         [BZ #14349]
767         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
768         * sysdeps/s390/s390-64/configure.in: Likewise.
769         * sysdeps/sparc/configure.in: Likewise.
770         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
771         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
772         * sysdeps/i386/configure.in: Likewise.
773         * sysdeps/x86_64/configure.in: Likewise.
774         * sysdeps/sh/configure.in: Likewise.
775         * sysdeps/s390/s390-32/configure: Regenerated.
776         * sysdeps/s390/s390-64/configure: Likewise.
777         * sysdeps/x86_64/configure: Likewise.
778         * sysdeps/sh/configure: Likewise.
779         * sysdeps/powerpc/powerpc64/configure: Likewise.
780         * sysdeps/powerpc/powerpc32/configure: Likewise.
781         * sysdeps/sparc/configure: Likwise.
782         * sysdeps/i386/configure: Likewise.
783
784         * elf/dl-open.c: Comment fixes.
785
786 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
787
788         * Makefile [CXX] (check-data): Remove.
789         [CXX] (c++-types.data): New vpath directive.
790         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
791         vpath.  Do not allow for C++ type data being missing.
792         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
793         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
794         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
795         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
796         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
797         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
798         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
800         ... here.
801         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
803         ... here.
804         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
805         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
806         ... here.
807         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
808         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
809         ... here.
810         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
811         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
812         ... here.
813         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
814         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
815         ... here.
816         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
817         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
818         ... here.
819         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
820         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
821
822         * elf/tls-macros.h (TLS_LE): Move architecture-specific
823         definitions to architecture-specific files.
824         (TLS_IE): Likewise.
825         (TLS_LD): Likewise.
826         (TLS_GD): Likewise.
827         * sysdeps/i386/tls-macros.h: New file.
828         * sysdeps/powerpc/tls-macros.h: Likewise.
829         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
830         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
831         * sysdeps/sh/tls-macros.h: Likewise.
832         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
833         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
834         * sysdeps/x86_64/tls-macros.h: Likewise.
835
836 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
837
838         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
839         zero value for regular exit case.
840
841         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
842         (__start_context): Preserve zero value for regular exit case.
843
844 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
845             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
846
847         * manual/setjmp.texi (setcontext): Clarify normal process
848         termination when uc_link is the null pointer.
849         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
850         exit call.
851
852 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
853
854         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
855         preprocessor.  Test for each exception mask separately.
856
857 2012-07-16  Andreas Jaeger  <aj@suse.de>
858
859         * po/ru.po: Update from translation team.
860
861 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
862
863         * conform/data/string.h-data (NULL): Use macro-constant.  Require
864         equal to 0.
865         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
866         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
867         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
868         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
869         [ISO || ISO99 || ISO11] (*_t): Do not allow.
870
871 2012-07-13  Andreas Jaeger  <aj@suse.de>
872
873         * po/fr.po: Update from translation team.
874
875 2012-07-12  Marek Polacek  <polacek@redhat.com>
876
877         [BZ #14173]
878         * math/libm-test.inc (yn_test): Add test for BZ #14173.
879         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
880         loop condition.
881
882 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
883
884         [BZ #13717]
885         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
886         Change to 2.4.1 where previously 2.4.0.
887         * sysdeps/unix/sysv/linux/configure: Regenerated.
888         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
889         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
890         version.
891         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
892         (__ASSUME_AT_CLKTCK): Remove.
893         (__ASSUME_AT_PAGESIZE): Likewise.
894         (__ASSUME_AT_XID): Likewise.
895         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
896         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
897         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
898         unconditionally.
899         (HAVE_AUX_PAGESIZE): Likewise.
900         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
901         [__ASSUME_AT_CLKTCK]: Make code unconditional.
902         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
903
904 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
905
906         [BZ #14307]
907         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
908         the temporary buffer used to invoke __gethostbyname2_r,
909         __gethostbyaddr_r and gethostbyname4_r to make room for struct
910         host_data / struct gaih_addrtuple.
911         * resolv/nss_dns/dns-host.c (global scope): Move definition of
912         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
913         header file nss/nsswitch.h.
914         * nss/nsswitch.h (global scope): Add definition of implementation
915         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
916         resolv/nss_dns/dns-host.c).
917
918 2012-07-11  Andreas Jaeger  <aj@suse.de>
919
920         * po/fr.po: Update from translation team.
921
922         * po/sv.po: Update from translation team
923         * po/fr.po: Another update from translation team.
924
925 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
926
927         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
928         for subnormals or multiply small sinh result by itself.
929         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
930         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
931
932 2012-07-11  David S. Miller  <davem@davemloft.net>
933
934         * sysdeps/sparc/fpu/libm-test-ulps: Update.
935
936 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
937
938         [BZ #14347]
939         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
940         (INTERNAL_MARK): Shift it here.
941
942 2012-07-10  Marek Polacek  <polacek@redhat.com>
943
944         [BZ #14151]
945         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
946         libc_cv_asm_global_directive with .globl.
947         * configure: Regenerated.
948         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
949         with .globl.
950         * sysdeps/i386/configure: Regenerated.
951         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
952         with .globl.
953         * sysdeps/x86_64/configure: Regenerated.
954         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
955         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
956         * elf/tst-unique2mod2.c: Likewise.
957         * elf/tst-unique2mod1.c: Likewise.
958         * elf/tst-unique1mod2.c: Likewise.
959         * elf/tst-unique1mod1.c: Likewise.
960         * sysdeps/s390/s390-32/sysdep.h: Likewise.
961         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
962         * sysdeps/s390/s390-64/sysdep.h: Likewise.
963         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
964         * sysdeps/mach/sysdep.h: Likewise.
965         * sysdeps/i386/sysdep.h: Likewise.
966         * sysdeps/i386/i386-mcount.S: Likewise.
967         * sysdeps/x86_64/_mcount.S: Likewise.
968         * sysdeps/x86_64/sysdep.h: Likewise.
969         * sysdeps/sh/_mcount.S: Likewise.
970         * sysdeps/sh/sysdep.h: Likewise.
971         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
972         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
973         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
974         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
975         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
976         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
977         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
978         * locale/localeinfo.h: Likewise.
979         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
980         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
981
982 2012-07-09  Roland McGrath  <roland@hack.frob.com>
983
984         [BZ #14336]
985         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
986         system".
987         * manual/message.texi (The Uniforum approach): Likewise.
988         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
989         (glibc iconv Implementation): Likewise.
990
991 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
992
993         [BZ #14337]
994         * math/s_clog.c (__clog): Avoid scaling a value down where that
995         could result in underflow.
996         * math/s_clog10.c (__clog10): Likewise.
997         * math/s_clog10f.c (__clog10f): Likewise.
998         * math/s_clog10l.c (__clog10l): Likewise.
999         * math/s_clogf.c (__clogf): Likewise.
1000         * math/s_clogl.c (__clogl): Likewise.
1001         * math/libm-test.inc (clog_test): Add more tests.
1002         (clog10_test): Likewise.
1003         * sysdeps/i386/fpu/libm-test-ulps: Update.
1004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1005
1006 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
1007
1008         [BZ #14283]
1009         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
1010         by 7 not 8 to examine high bit of fractional part.
1011
1012         [BZ #14042]
1013         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
1014         for call to __mcount_internal.
1015         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
1016         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
1017         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
1018
1019 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
1020
1021         [BZ #14154]
1022         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
1023         approximation for values within 0x1p-13f of an odd multiple of
1024         pi/4.
1025         * math/libm-test.inc (tan_test): Do not allow spurious underflow
1026         exception.  Add more tests.
1027         * sysdeps/i386/fpu/libm-test-ulps: Update.
1028
1029         [BZ #6778]
1030         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
1031         inputs and return -1 for them.  Do not check for +Inf in case not
1032         reachable for +Inf.
1033         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
1034         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
1035         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1036         and return -1 for them.  Do not check for +Inf in case not
1037         reachable for +Inf.
1038         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
1039         define.
1040         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1041         and return -1 for them.  Do not check for +Inf in case not
1042         reachable for +Inf.
1043         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
1044         spurious underflow.
1045         * sysdeps/i386/fpu/libm-test-ulps: Update.
1046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1047
1048 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
1049
1050         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
1051
1052 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
1053
1054         [BZ #14157]
1055         [BZ #14331]
1056         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
1057         could result in spurious underflow.  Scale down values above
1058         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
1059         * math/s_csqrtf.c (__csqrtf): Likewise.
1060         * math/s_csqrtl.c (__csqrtl): Likewise.
1061         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
1062         spurious underflow.
1063         * sysdeps/i386/fpu/libm-test-ulps: Update.
1064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1065
1066 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
1067
1068         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
1069         xopen-msg.sed.
1070         * catgets/xopen-msg.awk: New file.
1071         * catgets/xopen-msg.sed: Removed.
1072
1073         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
1074         po2text.sed.
1075         * intl/po2test.awk: New file.
1076         * intl/po2test.sed: Removed.
1077
1078 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
1079
1080         [BZ #14328]
1081         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
1082         or multiply small sinh result by itself.
1083         * math/s_ctanf.c (__ctanf): Likewise.
1084         * math/s_ctanh.c (__ctanh): Likewise.
1085         * math/s_ctanhf.c (__ctanhf): Likewise.
1086         * math/s_ctanhl.c (__ctanhl): Likewise.
1087         * math/s_ctanl.c (__ctanl): Likewise.
1088         * math/libm-test.inc (ctan_test_tonearest): New function.
1089         (ctan_test_towardzero): Likewise.
1090         (ctan_test_downward): Likewise.
1091         (ctan_test_upward): Likewise.
1092         (ctanh_test_tonearest): Likewise.
1093         (ctanh_test_towardzero): Likewise.
1094         (ctanh_test_downward): Likewise.
1095         (ctanh_test_upward): Likewise.
1096         (main): Call these new functions.
1097         * sysdeps/i386/fpu/libm-test-ulps: Update.
1098         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1099
1100 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
1101
1102         * .gitignore: Delete /ports entry.
1103
1104 2012-07-03  Andreas Jaeger  <aj@suse.de>
1105
1106         * po/bg.po: Update from translation team.
1107         * po/cs.po: Likewise.
1108         * po/de.po: Likewise.
1109         * po/hr.po: Likewise.
1110         * po/nl.pl: Likewise.
1111         * po/pl.po: Likewise.
1112         * po/vi.po: Likewise.
1113
1114 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
1115
1116         * Makeconfig [!+link] (+link-before-libc): New variable.
1117         [!+link] (+link-after-libc): Likewise.
1118         [!+link] (+link-tests): Likewise.
1119         [!+link] (+link): Define in terms of $(+link-before-libc) and
1120         $(+link-after-libc).
1121         [!+link-static] (+link-static-before-libc): New variable.
1122         [!+link-static] (+link-static-after-libc): Likewise.
1123         [!+link-static] (+link-static-tests): Likewise.
1124         [!+link-static] (+link-static): Define in terms of
1125         $(+link-static-before-libc) and $(+link-static-after-libc).
1126         [build-shared] (link-libc-before-gnulib): New variable.
1127         [build-shared] (link-libc-tests): Likewise.
1128         [build-shared] (link-libc): Define in terms of
1129         $(link-libc-before-gnulib).
1130         [!build-shared] (link-libc-tests): New variable.
1131         (link-libc-static-tests): New variable.
1132         [!gnulib] (gnulib-arch): New variable.
1133         [!gnulib] (gnulib-tests): Likewise.
1134         [!gnulib] (static-gnulib-arch): Likewise.
1135         [!gnulib] (static-gnulib-tests): Likewise.
1136         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
1137         Define with "=" instead of ":=".
1138         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
1139         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
1140         * Rules (binaries-all-notests): New variable.
1141         (binaries-all-tests): Likewise.
1142         (binaries-static-notests): Likewise.
1143         (binaries-static-tests): Likewise.
1144         (binaries-all): Define using $(binaries-all-notests) and
1145         $(binaries-all-tests).
1146         (binaries-static): Define using $(binaries-static-notests) and
1147         $(binaries-static-tests).
1148         (binaries-shared-tests): New variable.
1149         (binaries-shared-notests): Likewise.
1150         (binaries-shared): Remove variable.
1151         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
1152         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
1153         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
1154         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
1155         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
1156         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
1157         * elf/Makefile (sln-modules): New variable.
1158         (extra-objs): Add $(sln-modules:=.o).
1159         (ldconfig-modules): Add static-stubs.
1160         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
1161         * elf/static-stubs.c: New file.
1162
1163         [BZ #14283]
1164         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
1165         by 7 not 8 to examine high bit of fractional part.  Use volatile
1166         variables when splitting into final array of floats if
1167         __FLT_EVAL_METHOD__ != 0.
1168         * math/libm-test.inc (cos_test): Add another test.
1169         (sin_test): Likewise.
1170         * sysdeps/i386/fpu/libm-test-ulps: Update.
1171
1172         [BZ #14273]
1173         * math/libm-test.inc (cosh_test): Add more tests.
1174
1175         * version.h (RELEASE): Set to "development".
1176         (VERSION): Set to "2.16.90".
1177
1178 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
1179
1180         * NEWS: Update copyright. Remove last-updated date.
1181         Mention math library bug fixes and timezone data changes.
1182         * README: Mention GNU/Hurd, x32, and HPPA support status.
1183
1184 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
1185
1186         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
1187
1188 2012-06-27  Andreas Jaeger  <aj@suse.de>
1189
1190         * manual/contrib.texi (Contributors): Add Samuel Thibault.
1191
1192 2012-06-25  Andreas Jaeger  <aj@suse.de>
1193
1194         * sysdeps/s390/fpu/libm-test-ulps: Update.
1195
1196 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
1197             Thomas Schwinge  <thomas@codesourcery.com>
1198
1199         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
1200         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
1201         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
1202         fanotify_mark.
1203
1204 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
1205
1206         * sysdeps/mach/start.c: Remove file.
1207         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
1208         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
1209         * sysdeps/sh/init-first.c: Likewise.
1210
1211         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
1212         registers for frame unwinding purposes, add CFI directives.
1213         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1214         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
1215         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1216         Likewise.
1217
1218         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
1219         __fortify_fail returning.
1220         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1221
1222         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
1223         sysdeps/sh/____longjmp_chk.S.
1224         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
1225         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
1226         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
1227         (gen-as-const-headers): Append sigaltstack-offsets.sym.
1228
1229         * sysdeps/sh/abort-instr.h: New file.
1230         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
1231         process in case exit returns.
1232
1233         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
1234         initialize the GOT register before use.
1235
1236         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
1237         calculation of ARGC > 4.
1238
1239         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
1240         meaningful names to some local labels.
1241
1242 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1243             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1244
1245         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1246         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
1247         (__arch_compare_and_exchange_val_16_acq): Likewise.
1248         (__arch_compare_and_exchange_val_32_acq): Likewise.
1249         (atomic_exchange_and_add): Fix gUSA sequence.
1250         (atomic_add): Likewise.
1251         (atomic_add_negative): Likewise.
1252         (atomic_add_zero): Likewise.
1253         (atomic_bit_test_set): Likewise.
1254
1255 2012-06-22  Andreas Schwab  <schwab@redhat.com>
1256
1257         [BZ #13579]
1258         * include/link.h (struct link_map): Add l_free_initfini.
1259         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
1260         l_initfini.
1261         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
1262         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
1263         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
1264         set.
1265
1266 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
1267
1268         * configure.in: Use AC_LANG_SOURCE.
1269         * configure: Regenerate.
1270
1271 2012-06-22  Roland McGrath  <roland@hack.frob.com>
1272
1273         * configure.in (libc_cv_localstatedir): New substituted variable.
1274         * configure: Regenerated.
1275         * config.make.in (localstatedir): New variable, substituted from
1276         libc_cv_localstatedir.
1277         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
1278         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
1279         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
1280         * sysdeps/gnu/configure: Regenerated.
1281
1282 2012-06-21  Jeff Law  <law@redhat.com>
1283
1284         [BZ #14277]
1285         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
1286         free.  Simplify list management for _LIBC case.
1287
1288 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
1289
1290         [BZ #14273]
1291         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
1292         Clear sign bit of 64-bit integer value before comparing against
1293         overflow value.
1294
1295         * sysdeps/mach/configure: Regenerated.
1296
1297 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1298
1299         [BZ #14278]
1300         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
1301
1302 2012-06-21  Jeff Law  <law@redhat.com>
1303
1304         [BZ #13882]
1305         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
1306         uint16_t for elements in the "seen" array to avoid char overflows.
1307         * elf/dl-fini.c (_dl_sort_fini): Likewise.
1308         * elf/dl-open.c (dl_open_worker): Likewise.
1309
1310 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
1311
1312         * scripts/list-sources.sh: Scan PORTS for translations.
1313         * po/libc.pot: Regenerated.
1314
1315 2012-06-21  Andreas Jaeger  <aj@suse.de>
1316
1317         [BZ #12194]
1318         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
1319         warning.
1320         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
1321         * bits/byteswap-16.h (__bswap_16): Likewise.
1322         * bits/byteswap.h (__bswap_constant_16): Likewise.
1323
1324 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1325
1326         [BZ #14117]
1327         * sysdeps/i386/fpu_control.h: Removed.
1328         * sysdeps/x86_64/fpu_control.h: Moved to ...
1329         * sysdeps/x86/fpu_control.h: Here.
1330
1331         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
1332         (_FPU_SETCW): Likewise.
1333
1334 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
1335
1336         [BZ #14117]
1337         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
1338         * sysdeps/x86/fpu/bits/mathinline.h: This.
1339         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
1340
1341         [BZ #14050]
1342         [BZ #14117]
1343         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
1344         functions if __x86_64__ is defined.
1345
1346 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
1347
1348         * string/endian.h: Add !__ASSEMBLER__ condition for including
1349         conversion interfaces.
1350
1351 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
1352
1353         [BZ #14241]
1354         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
1355         of ABS(x) in calculating zero to negative powers other than odd
1356         integers.
1357         * math/libm-test.inc (pow_test): Add more tests.
1358
1359 2012-06-15  Andreas Jaeger  <aj@suse.de>
1360
1361         * manual/contrib.texi (Contributors): Update entry of Liubov
1362         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
1363         Machado Filho.
1364
1365 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
1366
1367         * string/string.h: Add __wur to GNU version of strerror_r.
1368
1369 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1370
1371         [BZ #14229]
1372         * string/Makefile (tests): Add tst-strtok_r.
1373         * string/tst-strtok_r.c: New file.
1374         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
1375         RAX_LP/RDX_LP on SAVE_PTR.
1376
1377 2012-06-14  Roland McGrath  <roland@hack.frob.com>
1378
1379         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
1380
1381 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
1382
1383         * libm_test.inc (csqrt_test): Allow more spurious underflow
1384         exceptions.
1385         (j0_test): Likewise.
1386         (j1_test): Likewise.
1387         (y0_test): Likewise.
1388         (y1_test): Likewise.
1389
1390 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
1391
1392         * po/Makefile (libc.pot): Use UTF-8 charset.
1393
1394 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
1395
1396         [BZ #14210]
1397         Suppress sign-conversion warning from FD_SET.
1398         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
1399         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
1400         not unsigned long int.
1401         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
1402
1403 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
1404
1405         [BZ #14050]
1406         [BZ #14117]
1407         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
1408         __extern_always_inline instead of __extern_inline.
1409         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
1410         (__signbit): Likewise.
1411         (__signbitl): Support C++ namespace.
1412         (lrintf): New inline function.
1413         (lrint): Likewise.
1414         (llrintf): Likewise.
1415         (llrint): Likewise.
1416         (fmaxf): Likewise.
1417         (fmax): Likewise.
1418         (fminf): Likewise.
1419         (fmin): Likewise.
1420         (rint): Likewise.
1421         (rintf): Likewise.
1422         (ceil): Likewise.
1423         (ceilf): Likewise.
1424         (floor): Likewise.
1425         (floorf): Likewise.
1426         (nearbyint): Likewise.
1427         (nearbyintf): Likewise.
1428
1429 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
1430
1431         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
1432         non-default versions.
1433
1434 2012-06-11  Roland McGrath  <roland@hack.frob.com>
1435
1436         [BZ #14218]
1437         * manual/argp.texi (Argp): Reword argp_parse description slightly.
1438
1439 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
1440
1441         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
1442         (FE_UPWARD, FE_DOWNWARD): Don't define.
1443         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
1444         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
1445
1446         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
1447         reading it.
1448         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
1449         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
1450
1451 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1452
1453         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
1454         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
1455         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
1456         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
1457
1458 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1459
1460         [BZ #14117]
1461         * sysdeps/i386/fpu/bits/fenv.h: Removed.
1462         * sysdeps/i386/fpu/Implies: New file.
1463         * sysdeps/x86_64/fpu/Implies: Likewise.
1464         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
1465         * sysdeps/x86/fpu/bits/fenv.h: This.
1466
1467         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
1468         __SSE_MATH__.
1469
1470 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
1471
1472         [BZ #14134]
1473         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
1474         character 0xffff that matches the last element of the
1475         conversion table.
1476
1477 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1478
1479         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
1480         fmodl commit.
1481
1482 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1483
1484         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
1485         values higher than 25.6283.
1486
1487 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1488
1489         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
1490         subnormal exponent extraction and add some __builtin_expect.
1491         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
1492         Fix for subnormal mantissa calculation.
1493
1494 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
1495
1496         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
1497         cpu2 is -1 and errno is not ENOSYS.
1498
1499 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
1500
1501         [BZ #14117]
1502         * sysdeps/i386/i486/bits/string.h: Renamed to ...
1503         * sysdeps/x86/bits/string.h: This.
1504         * sysdeps/x86_64/bits/string.h: Removed.
1505
1506         * sysdeps/i386/i486/bits/string.h: Define inline functions only
1507         if not compiling for x86-64, but compiling for >= i486.
1508
1509         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
1510         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
1511
1512         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
1513         New macro from Linux kernel 3.4.0.
1514         (FP_XSTATE_MAGIC2): Likewise.
1515         (FP_XSTATE_MAGIC2_SIZE): Likewise.
1516         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
1517         (struct _fpx_sw_bytes): New struct.
1518         (struct _xsave_hdr): Likewise.
1519         (struct _ymmh_state): Likewise.
1520         (struct _xstate): Likewise.
1521
1522         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
1523         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
1524         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
1525         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
1526         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
1527         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
1528
1529         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
1530         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
1531         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
1532         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
1533         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
1534         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
1535
1536 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1537
1538         [BZ #13743]
1539         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
1540         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
1541         (sysdep_headers): Include sys/platform/ppc.h.
1542         * sysdeps/powerpc/test-gettimebase.c: Test for
1543         __ppc_get_timebase() to catch future ISA opcode/insn changes.
1544         * manual/Makefile (appendices): Include platform.texi.
1545         * manual/contrib.texi (Contributors): Update @node pointers.
1546         * manual/maint.texi (Maintenance): Likewise.
1547         (Platform): New node.
1548         * manual/platform.texi: New file.  Document the new features.
1549
1550 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1551             Jakub Jelinek  <jakub@redhat.com>
1552
1553         [BZ #14188]
1554         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
1555         where __builtin_expect is unavailable.
1556
1557 2012-06-03  David S. Miller  <davem@davemloft.net>
1558
1559         * stdlib/longlong.h: Updated from GCC.
1560
1561 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
1562
1563         [BZ #14042]
1564         * sysdeps/powerpc/powerpc32/mcount.c: New file.
1565         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
1566         __mcount_internal.
1567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1568         (GLIBC_2.16): Likewise.
1569
1570 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1571
1572         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
1573
1574 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
1575
1576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1577         (default-abi): New variable.
1578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
1579         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
1580         variable.
1581         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
1582         Likewise.
1583         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
1584         Likewise.
1585         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
1586         Likewise.
1587
1588         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
1589         definition.  Document in comment.
1590
1591 2012-06-01  David S. Miller  <davem@davemloft.net>
1592
1593         * stdlib/longlong.h: Updated from GCC.
1594
1595 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1596
1597         [BZ #14117]
1598         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
1599         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
1600         sys/debugreg.h sys/io.h here.
1601         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
1602         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
1603         sys/io.h.
1604         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
1605         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
1606         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
1607         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
1608         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
1609         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
1610
1611         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
1612         Define only if __x86_64__ is defined.
1613
1614 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
1615
1616         [BZ #14048]
1617         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
1618         Use int64_t for variable i.
1619         * math/libm-test.inc (fmod_test): Add more tests.
1620
1621         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
1622         z computation is not scheduled after fetestexcept.
1623         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
1624         Use math_force_eval instead of asm to ensure calculation scheduled
1625         before exception test.
1626         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
1627         Ensure a1 + u.d computation is not scheduled after fetestexcept.
1628
1629 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
1630
1631         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
1632         computation is not scheduled after fetestexcept.
1633
1634 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1635
1636         [BZ #14117]
1637         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
1638         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
1639
1640 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1641
1642         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
1643         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
1644
1645 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
1646
1647         [BZ #14117]
1648         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
1649         <bits/wordsize.h>.
1650         (__WCHAR_MIN): Support __WORDSIZE == 64.
1651         (__WCHAR_MAX): Likewise.
1652
1653         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
1654         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
1655
1656         [BZ #14183]
1657         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
1658         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
1659
1660         [BZ #14117]
1661         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
1662         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
1663
1664         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
1665         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
1666
1667         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
1668         Defined to 1 if __x86_64__ isn't defined.
1669         (_STAT_VER_LINUX_OLD): New.
1670         (st_atime): Remove duplicate.
1671         (st_mtime): Likewise.
1672         (st_ctime): Likewise.
1673
1674 2012-05-31  David S. Miller  <davem@davemloft.net>
1675
1676         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
1677         entries.
1678
1679 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
1680
1681         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
1682         gen-libm-test.pl.
1683
1684         [BZ #14132]
1685         * elf/dl-reloc.c: Include <_itoa.h>.
1686         (_dl_reloc_bad_type): Remove use of INTUSE.
1687         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
1688         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
1689         * stdio-common/psiginfo.c (psiginfo): Likewise.
1690         * stdio-common/psignal.c (psignal): Likewise.
1691         * string/strsignal.c (strsignal): Likewise.
1692         * include/signal.h (_sys_siglist): Declare hidden proto.
1693         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
1694         INTVARDEF with libc_hidden_data_def.
1695         * stdio-common/itoa-udigits.c: Likewise.
1696         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
1697         (_itoa_lower_digits_internal): Remove declaration.
1698         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
1699         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
1700         (_sys_sigabbrev_internal): Remove aliases.
1701         (_sys_siglist): Define hidden alias.
1702
1703 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
1704
1705         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1706         bits/sysctl.h.
1707
1708 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
1709
1710         [BZ #14117]
1711         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
1712         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
1713
1714         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
1715         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
1716         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
1717         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
1718         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
1719         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
1720
1721         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
1722         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
1723         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
1724
1725         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
1726         with __addr.
1727         (insw): Likewise.
1728         (insl): Likewise.
1729         (outsb): Likewise.
1730         (outsw): Likewise.
1731         (outsl): Likewise.
1732
1733         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
1734         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
1735         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
1736
1737         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
1738         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
1739         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
1740         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
1741         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
1742         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
1743
1744         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
1745         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
1746
1747         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
1748         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
1749
1750         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
1751         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
1752         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
1753
1754         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
1755         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
1756         to ...
1757         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
1758
1759         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
1760         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
1761         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
1762
1763         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
1764         for x86-64.
1765         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
1766
1767 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
1768
1769         * math/math.h (M_El): Use two more decimal places.
1770         (M_LOG2El): Likewise.
1771         (M_LOG10El): Likewise.
1772         (M_LN2l): Likewise.
1773         (M_LN10l): Likewise.
1774         (M_PIl): Likewise.
1775         (M_PI_2l): Likewise.
1776         (M_PI_4l): Likewise.
1777         (M_1_PIl): Likewise.
1778         (M_2_PIl): Likewise.
1779         (M_2_SQRTPIl): Likewise.
1780         (M_SQRT2l): Likewise.
1781         (M_SQRT1_2l): Likewise.
1782
1783 2012-05-31  David S. Miller  <davem@davemloft.net>
1784
1785         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
1786         values between float registers.
1787         * sysdeps/sparc/sparc64/memset.S: Likewise.
1788         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
1789
1790 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
1791
1792         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
1793         -D_FORTIFY_SOURCE=1.
1794         (CPPFLAGS-tst-longjmp_chk.c): Define.
1795         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
1796         (CPPFLAGS-tst-longjmp_chk2.c): Define.
1797         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
1798         CFLAGS-tst-wchar-h.c.
1799
1800 2012-05-31  Marek Polacek  <polacek@redhat.com>
1801
1802         [BZ #14132]
1803         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
1804         __endmntent_internal): Remove declaration.
1805         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
1806         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
1807         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
1808
1809 2012-05-30  David S. Miller  <davem@davemloft.net>
1810
1811         * sysdeps/sparc/sparc32/soft-fp/q_util.c
1812         (___Q_simulate_exceptions): Use real FP ops rather than writing
1813         into the %fsr.
1814         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
1815         Likewise.
1816
1817 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1818
1819         [BZ #14117]
1820         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
1821         * sysdeps/x86/bits/xtitypes.h: This.
1822
1823         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
1824         * sysdeps/x86/bits/wordsize.h: This.
1825
1826         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
1827         * sysdeps/x86/bits/huge_vall.h: This.
1828
1829         * sysdeps/i386/bits/select.h: Removed.
1830         * sysdeps/x86_64/bits/select.h: Renamed to ...
1831         * sysdeps/x86/bits/select.h: This.
1832
1833         * sysdeps/i386/bits/setjmp.h: Removed.
1834         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
1835         * sysdeps/x86/bits/setjmp.h: This.
1836
1837         * sysdeps/i386/bits/mathdef.h: Removed.
1838         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
1839         * sysdeps/x86/bits/mathdef.h: This.
1840
1841 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1842
1843         [BZ #14132]
1844         * include/sys/socket.h (__connect_internal)
1845         (__libc_sa_len_internal): Remove declaration.
1846         (__connect, __libc_sa_len): Declare hidden_proto.
1847         (SA_LEN): Remove use of INTUSE.
1848         * socket/connect.c: Add libc_hidden_def.
1849         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
1850         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
1851         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
1852         alias.
1853         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1854         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1855         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
1856         of adding _internal alias.
1857
1858 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1859
1860         [BZ #14117]
1861         * sysdeps/i386/bits/link.h: Removed.
1862         * sysdeps/i386/bits/linkmap.h: Likewise.
1863         * sysdeps/x86_64/bits/link.h: Renamed to ...
1864         * sysdeps/x86/bits/link.h: This.
1865         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
1866         * sysdeps/x86/bits/linkmap.h: This.
1867
1868         * sysdeps/i386/bits/endian.h: Removed.
1869         * sysdeps/x86_64/bits/endian.h: Renamed to ...
1870         * sysdeps/x86/bits/endian.h: This.
1871
1872         * sysdeps/i386/bits/byteswap.h: Removed.
1873         * sysdeps/i386/bits/byteswap-16.h: Likewise.
1874         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
1875         * sysdeps/x86/bits/byteswap.h: This.
1876         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
1877         * sysdeps/x86/bits/byteswap-16.h: This.
1878         * sysdeps/i386/Implies: Add x86.
1879         * sysdeps/x86_64/Implies: Likewise.
1880
1881 2012-05-30  David S. Miller  <davem@davemloft.net>
1882
1883         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
1884         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
1885         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
1886         (FP_TRAPPING_EXCEPTIONS): Define.
1887         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
1888         (FP_TRAPPING_EXCEPTIONS): Define.
1889         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
1890         subnormals only when inexact has been signalled or underflow
1891         exceptions are enabled.
1892         (_FP_PACK_CANONICAL): Likewise.
1893
1894 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1895
1896         [BZ #14183]
1897         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
1898         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
1899
1900 2012-05-30  Richard Henderson  <rth@twiddle.net>
1901
1902         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
1903         with #ifndef NOT_IN_libc.
1904
1905         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
1906         marked to avoid plt entry.
1907
1908 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1909
1910         [BZ #14112]
1911         * Makeconfig (default-abi): New macro.
1912         (abi-includes): Likewise.
1913         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
1914         $(abi-$(default-abi)-lib-soname) for soname if defined.
1915         ($(common-objpfx)gnu/lib-names.stmp): Generate from
1916         abi-variants.
1917         * Makefile (installed-stubs): Likewise.
1918         * include/stubs-biarch.h: Removed.
1919         * scripts/lib-names.awk: Only handle one library at a time.
1920         * scripts/soversions.awk: Remove WORDSIZE support.
1921         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
1922         entries.
1923         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
1924         Removed.
1925         (syscall-list-default-condition): Likewise.
1926         (syscall-list-default-condition): Likewise.
1927         (syscall-list-includes): Likewise.
1928         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
1929         syscall-list-* with abi-*.  Handle undefined abi-variants.
1930         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
1931         * sysdeps/unix/sysv/linux/i386/Implies: New file.
1932         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
1933         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
1934         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
1935         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
1936         Removed.
1937         (syscall-list-32-options): Likewise.
1938         (syscall-list-32-condition): Likewise.
1939         (syscall-list-64-options): Likewise.
1940         (syscall-list-64-condition): Likewise.
1941         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
1942         macro.
1943         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
1944         Renamed to ...
1945         (abi-*): This.
1946         (abi-64-ld-soname): New macro.
1947         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
1948         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
1949         Renamed to ...
1950         (abi-*): This.
1951         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
1952         * sysdeps/x86_64/x32/shlib-versions: Likewise.
1953
1954 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
1955
1956         * sysdeps/unix/sysv/linux/kernel-features.h
1957         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
1958         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
1959         include <kernel-features.h>.
1960         [!__NR_ftruncate64]: Remove conditional code.
1961         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1962         [__NR_ftruncate64]: Make code unconditional.
1963         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1964         * sysdeps/unix/sysv/linux/truncate64.c: Do not
1965         include <kernel-features.h>.
1966         [!__NR_ftruncate64]: Remove conditional code.
1967         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1968         [__NR_ftruncate64]: Make code unconditional.
1969         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
1971         include <kernel-features.h>.
1972         [!__NR_ftruncate64]: Remove conditional code.
1973         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1974         [__NR_ftruncate64]: Make code unconditional.
1975         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
1977         include <kernel-features.h>.
1978         [!__NR_ftruncate64]: Remove conditional code.
1979         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1980         [__NR_ftruncate64]: Make code unconditional.
1981         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1982
1983         * configure.in (libc_cv_fpie): Weaken to a compile test using
1984         LIBC_TRY_CC_OPTION.
1985         * configure: Regenerated.
1986
1987 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1988
1989         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
1990         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
1991         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
1992         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
1993         Refreshed.
1994         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
1995         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
1996         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
1997         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
1998         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
1999         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2000         Refreshed.
2001
2002 2012-05-27  David S. Miller  <davem@davemloft.net>
2003
2004         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
2005         (___Q_zero): New.
2006         (__Q_simulate_exceptions): Return void.  Change to simulate
2007         exceptions by writing into the %fsr.
2008         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
2009         (__Qp_handle_exceptions): Likewise.
2010         (numbers): Delete.
2011         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
2012         __Qp_handle_exceptions.
2013         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
2014         __Qp_handle_exceptions.
2015         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2016         as unused and give dummy FP_RND_NEAREST initializer.
2017         (FP_INHIBIT_RESULTS): Define.
2018         (___Q_simulate_exceptions): Update declaration.
2019         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
2020         formatting.
2021         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2022         as unused and give dummy FP_RND_NEAREST initializer.
2023         (__Qp_handle_exceptions): Update declaration.
2024         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
2025         formatting.
2026
2027 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
2028
2029         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
2030         the temporary FPU control word.
2031         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2032         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
2033         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
2034         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2035         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
2036         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
2037         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
2038         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2039         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
2040         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
2041         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2042
2043 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2044
2045         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
2046         fields.
2047
2048 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
2049
2050         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
2051         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
2052         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
2053         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
2054         Likewise.
2055         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
2056         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
2057         Likewise.
2058
2059 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
2060
2061         * po/h.po: Update from translation team.
2062
2063 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
2064
2065         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
2066
2067         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
2068         handling of denormals.
2069         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
2070         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
2071         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
2072         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
2073         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2074         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
2075         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
2076         Likewise.
2077
2078 2012-05-26  Marek Polacek  <polacek@redhat.com>
2079
2080         [BZ #14152]
2081         * math/libm-test.inc (fma_test): Don't always expect underflow
2082         exception.
2083
2084 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2085
2086         [BZ #12416]
2087         * elf/tst-execstack.c: Include stackinfo.h.
2088         (do_test): Adjust test case to ensure that pthread_getattr_np
2089         behaviour remains the same after marking stack executable.
2090
2091 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
2092
2093         * sysdeps/unix/sysv/linux/kernel-features.h
2094         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
2095         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
2096         kernel-features.h.
2097         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2098         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2099         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
2100         kernel-features.h.
2101         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2102         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2103
2104 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2105
2106         * configure.in: Define the default includes to being none.
2107         * configure: Regenerated.
2108
2109 2012-05-25  Roland McGrath  <roland@hack.frob.com>
2110
2111         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
2112         * sysdeps/x86_64/setjmp.S: Likewise.
2113         * sysdeps/i386/bsd-setjmp.S: Likewise.
2114         * sysdeps/i386/bsd-_setjmp.S: Likewise.
2115         * sysdeps/i386/setjmp.S: Likewise.
2116         * sysdeps/i386/__longjmp.S: Likewise.
2117         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
2118         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2119
2120         * include/stap-probe.h: New file.
2121         * configure.in: Handle --enable-systemtap.
2122         * configure: Regenerated.
2123         * config.h.in (USE_STAP_PROBE): New #undef.
2124         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
2125         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
2126         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
2127
2128 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
2129
2130         [BZ #13717]
2131         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2132         to 2.4.0 where earlier.
2133         * sysdeps/unix/sysv/linux/configure: Regenerated.
2134         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
2135         <kernel-features.h>.
2136         [__ASSUME_32BITUIDS]: Make code unconditional.
2137         [!__ASSUME_32BITUIDS]: Remove conditional code.
2138         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
2139         <kernel-features.h>.
2140         [__ASSUME_32BITUIDS]: Make code unconditional.
2141         [!__ASSUME_32BITUIDS]: Remove conditional code.
2142         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
2143         [__ASSUME_32BITUIDS]: Make code unconditional.
2144         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
2145         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
2146         <kernel-features.h>.
2147         [__ASSUME_32BITUIDS]: Make code unconditional.
2148         [!__ASSUME_32BITUIDS]: Remove conditional code.
2149         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
2150         <kernel-features.h>.
2151         [__ASSUME_32BITUIDS]: Make code unconditional.
2152         [!__ASSUME_32BITUIDS]: Remove conditional code.
2153         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
2154         <kernel-features.h>.
2155         [__ASSUME_32BITUIDS]: Make code unconditional.
2156         [!__ASSUME_32BITUIDS]: Remove conditional code.
2157         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
2158         <kernel-features.h>.
2159         [__ASSUME_32BITUIDS]: Make code unconditional.
2160         [!__ASSUME_32BITUIDS]: Remove conditional code.
2161         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
2162         <kernel-features.h>.
2163         [__ASSUME_32BITUIDS]: Make code unconditional.
2164         [!__ASSUME_32BITUIDS]: Remove conditional code.
2165         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
2166         <kernel-features.h>.
2167         [__ASSUME_32BITUIDS]: Make code unconditional.
2168         [!__ASSUME_32BITUIDS]: Remove conditional code.
2169         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
2170         <kernel-features.h>.
2171         [__ASSUME_32BITUIDS]: Make code unconditional.
2172         [!__ASSUME_32BITUIDS]: Remove conditional code.
2173         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
2174         <kernel-features.h>.
2175         [__ASSUME_32BITUIDS]: Make code unconditional.
2176         [!__ASSUME_32BITUIDS]: Remove conditional code.
2177         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
2178         <kernel-features.h>.
2179         [__ASSUME_32BITUIDS]: Make code unconditional.
2180         [!__ASSUME_32BITUIDS]: Remove conditional code.
2181         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
2182         <kernel-features.h>.
2183         [__ASSUME_32BITUIDS]: Make code unconditional.
2184         [!__ASSUME_32BITUIDS]: Remove conditional code.
2185         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
2186         <kernel-features.h>.
2187         [__NR_setresgid] (__setresgid): Do not declare.
2188         [__ASSUME_32BITUIDS]: Make code unconditional.
2189         [!__ASSUME_32BITUIDS]: Remove conditional code.
2190         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
2191         <kernel-features.h>.
2192         [__NR_setresuid] (__setresuid): Do not declare.
2193         [__ASSUME_32BITUIDS]: Make code unconditional.
2194         [!__ASSUME_32BITUIDS]: Remove conditional code.
2195         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
2196         <kernel-features.h>.
2197         [__ASSUME_32BITUIDS]: Make code unconditional.
2198         [!__ASSUME_32BITUIDS]: Remove conditional code.
2199         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
2200         <kernel-features.h>.
2201         [__ASSUME_32BITUIDS]: Make code unconditional.
2202         [!__ASSUME_32BITUIDS]: Remove conditional code.
2203         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
2204         <kernel-features.h>.
2205         [__ASSUME_32BITUIDS]: Make code unconditional.
2206         [!__ASSUME_32BITUIDS]: Remove conditional code.
2207         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
2208         <kernel-features.h>.
2209         [__ASSUME_32BITUIDS]: Make code unconditional.
2210         [!__ASSUME_32BITUIDS]: Remove conditional code.
2211         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
2212         <kernel-features.h>.
2213         [__ASSUME_32BITUIDS]: Make code unconditional.
2214         [!__ASSUME_32BITUIDS]: Remove conditional code.
2215         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
2216         <kernel-features.h>.
2217         [__ASSUME_32BITUIDS]: Make code unconditional.
2218         [!__ASSUME_32BITUIDS]: Remove conditional code.
2219         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
2220         <kernel-features.h>.
2221         [__ASSUME_32BITUIDS]: Make code unconditional.
2222         [!__ASSUME_32BITUIDS]: Remove conditional code.
2223         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
2224         <kernel-features.h>.
2225         [__ASSUME_32BITUIDS]: Make code unconditional.
2226         [!__ASSUME_32BITUIDS]: Remove conditional code.
2227         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
2228         <kernel-features.h>.
2229         [__ASSUME_32BITUIDS]: Make code unconditional.
2230         [!__ASSUME_32BITUIDS]: Remove conditional code.
2231         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
2232         <kernel-features.h>.
2233         [__ASSUME_32BITUIDS]: Make code unconditional.
2234         [!__ASSUME_32BITUIDS]: Remove conditional code.
2235         * sysdeps/unix/sysv/linux/kernel-features.h
2236         (__ASSUME_SETRESUID_SYSCALL): Remove.
2237         (__ASSUME_SETRESGID_SYSCALL): Likewise.
2238         (__ASSUME_32BITUIDS): Likewise.
2239         (__ASSUME_LDT_WORKS): Likewise.
2240         (__ASSUME_O_DIRECTORY): Likewise.
2241         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
2242         architecture but not kernel version.
2243         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
2244         (__ASSUME_MMAP2_SYSCALL): Likewise.
2245         (__ASSUME_STAT64_SYSCALL): Likewise.
2246         (__ASSUME_IPC64): Likewise.
2247         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
2248         <kernel-features.h>.
2249         [__ASSUME_32BITUIDS]: Make code unconditional.
2250         [!__ASSUME_32BITUIDS]: Remove conditional code.
2251         * sysdeps/unix/sysv/linux/opendir.c: Do not include
2252         <kernel-features.h>.
2253         [__ASSUME_O_DIRECTORY]: Make code unconditional.
2254         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
2255         132096]: Remove conditional code.
2256         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
2257         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
2258         <kernel-features.h>.
2259         [__ASSUME_32BITUIDS]: Make code unconditional.
2260         [!__ASSUME_32BITUIDS]: Remove conditional code.
2261         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
2262         <kernel-features.h>.
2263         [__ASSUME_32BITUIDS]: Make code unconditional.
2264         [!__ASSUME_32BITUIDS]: Remove conditional code.
2265         * sysdeps/unix/sysv/linux/setegid.c: Do not include
2266         <kernel-features.h>.
2267         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
2268         unconditional.
2269         (__setresgid): Do not declare.
2270         [__ASSUME_32BITUIDS]: Make code unconditional.
2271         [!__ASSUME_32BITUIDS]: Remove conditional code.
2272         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
2273         <kernel-features.h>.
2274         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
2275         unconditional.
2276         (__setresuid): Do not declare.
2277         [__ASSUME_32BITUIDS]: Make code unconditional.
2278         [!__ASSUME_32BITUIDS]: Remove conditional code.
2279         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
2280         <kernel-features.h>.
2281         [__ASSUME_32BITUIDS]: Make code unconditional.
2282         [!__ASSUME_32BITUIDS]: Remove conditional code.
2283         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
2284         <kernel-features.h>.
2285         [__ASSUME_32BITUIDS]: Make code unconditional.
2286         [!__ASSUME_32BITUIDS]: Remove conditional code.
2287
2288 2012-05-25  Richard Henderson  <rth@twiddle.net>
2289
2290         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
2291         dl_hwcap to ifunc resolver.
2292         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
2293         elf_ifunc_invoke.
2294         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
2295         dl_hwcap to ifunc resolver.
2296         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
2297
2298 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2299
2300         [BZ #14153]
2301         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
2302         for |x| <= 2**-26, not 2**-57.
2303         * math/libm-test.inc (acos_test): Do not allow spurious underflow
2304         exception.
2305
2306 2012-05-24  Jeff Law  <law@redhat.com>
2307
2308         * stdio-common/Makefile (tests): Add bug25.
2309         * stdio-common/bug25.c: New test.
2310
2311 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2312
2313         [BZ #13576]
2314         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
2315         multiple of MALLOC_ALIGNMENT in size.
2316         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
2317
2318 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2319
2320         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
2321         Require >= 256.
2322         (FILENAME_MAX): Use macro-int-constant.
2323         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
2324         (_IOFBF): Use macro-int-constant.
2325         (_IOLBF): Likewise.
2326         (_IONBF): Likewise.
2327         (SEEK_CUR): Likewise.
2328         (SEEK_END): Likewise.
2329         (SEEK_SET): Likewise.
2330         (TMP_MAX): Likewise.
2331         (EOF): Use macro-int-constant.  Require < 0.
2332         (NULL): Use macro-constant.  Require == 0.
2333         (stdin): Require type to be FILE *.
2334         (stdout): Likewise.
2335         (stderr): Likewise.
2336         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
2337         macro-int-constant.
2338         (EXIT_SUCCESS): Likewise.
2339         (NULL): Use macro-constant.  Require == 0.
2340         (RAND_MAX): Use macro-int-constant.
2341         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
2342         [C99-based standards] (strtof): Require function.
2343         [C99-based standards] (strtold): Likewise.
2344         [C99-based standards] (strtoll): Likewise.
2345         [C99-based standards] (strtoull): Likewise.
2346         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2347         [ISO || ISO99 || ISO11] (limits.h): Likewise.
2348         [ISO || ISO99 || ISO11] (math.h): Likewise.
2349         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
2350         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2351         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2352
2353 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
2354
2355         [BZ #14132]
2356         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
2357         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
2358         * intl/dgettext.c (DCGETTEXT): Likewise.
2359         * intl/gettext.c (DCGETTEXT): Likewise.
2360         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
2361         * posix/regex_internal.h (gettext): Likewise.
2362         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
2363         Remove declaration.
2364         * include/argz.h (__argz_count_internal)
2365         (__argz_stringify_internal): Remove declaration.
2366         (__argz_count, __argz_stringify): Declare hidden proto.
2367         * intl/dcgettext.c: Remove use of INTDEF.
2368         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
2369         * string/argz-stringify.c: Likewise.
2370         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2371         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2372         Declare hidden proto.
2373         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2374         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2375         Declare hidden proto.
2376         * include/stdio.h (__asprintf_internal): Don't declare.
2377         (__asprintf): Don't define as macro.  Declare hidden proto.
2378         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
2379         (__fsetlocking): Declare hidden proto.
2380         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
2381         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
2382         hidden proto.
2383         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
2384         (_IO_setlinebuf): Remove use of INTUSE.
2385         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
2386         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
2387         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
2388         Remove declaration.
2389         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
2390         (_IO_do_flush): Remove use of INTUSE.
2391         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
2392         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
2393         (_IO_adjust_column, _IO_least_wmarker)
2394         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
2395         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
2396         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
2397         (_IO_default_doallocate, _IO_wdefault_doallocate)
2398         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
2399         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
2400         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
2401         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
2402         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
2403         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
2404         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
2405         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
2406         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
2407         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
2408         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
2409         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
2410         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
2411         proto.
2412         (_IO_flush_all_internal, _IO_adjust_column_internal)
2413         (_IO_default_uflow_internal, _IO_default_finish_internal)
2414         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
2415         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
2416         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
2417         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
2418         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
2419         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
2420         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
2421         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
2422         (_IO_file_close_internal, _IO_file_close_it_internal)
2423         (_IO_file_underflow_internal, _IO_file_overflow_internal)
2424         (_IO_file_init_internal, _IO_file_attach_internal)
2425         (_IO_file_fopen_internal, _IO_file_read_internal)
2426         (_IO_file_sync_internal, _IO_file_seek_internal)
2427         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
2428         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
2429         (_IO_str_underflow_internal, _IO_str_overflow_internal)
2430         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
2431         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
2432         (_IO_list_all_internal, _IO_link_in_internal)
2433         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
2434         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
2435         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
2436         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
2437         (_IO_do_write_internal, _IO_padn_internal)
2438         (_IO_getline_info_internal, _IO_getline_internal)
2439         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
2440         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
2441         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
2442         (_IO_vfscanf_internal, _IO_vfprintf_internal)
2443         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
2444         (_IO_init_internal, _IO_un_link_internal): Don't declare.
2445         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
2446         with libc_hidden_ver, remove use of INTUSE.
2447         * libio/genops.c: Likewise.
2448         * libio/freopen.c: Likewise.
2449         * libio/freopen64.c: Likewise.
2450         * libio/iofclose.c: Likewise.
2451         * libio/iofdopen.c: Likewise.
2452         * libio/iofflush.c: Likewise.
2453         * libio/iofflush_u.c: Likewise.
2454         * libio/iofgets.c: Likewise.
2455         * libio/iofgets_u.c: Likewise.
2456         * libio/iofopen.c: Likewise.
2457         * libio/iofopncook.c: Likewise.
2458         * libio/iofread.c: Likewise.
2459         * libio/iofread_u.c: Likewise.
2460         * libio/ioftell.c: Likewise.
2461         * libio/iofwrite.c: Likewise.
2462         * libio/iogetline.c: Likewise.
2463         * libio/iogets.c: Likewise.
2464         * libio/iogetwline.c: Likewise.
2465         * libio/iopadn.c: Likewise.
2466         * libio/iopopen.c: Likewise.
2467         * libio/ioseekoff.c: Likewise.
2468         * libio/ioseekpos.c: Likewise.
2469         * libio/iosetbuffer.c: Likewise.
2470         * libio/iosetvbuf.c: Likewise.
2471         * libio/ioungetc.c: Likewise.
2472         * libio/ioungetwc.c: Likewise.
2473         * libio/iovdprintf.c: Likewise.
2474         * libio/iovsprintf.c: Likewise.
2475         * libio/iovsscanf.c: Likewise.
2476         * libio/memstream.c: Likewise.
2477         * libio/obprintf.c: Likewise.
2478         * libio/oldfileops.c: Likewise.
2479         * libio/oldiofclose.c: Likewise.
2480         * libio/oldiofdopen.c: Likewise.
2481         * libio/oldiofopen.c: Likewise.
2482         * libio/oldiopopen.c: Likewise.
2483         * libio/oldstdfiles.c: Likewise.
2484         * libio/putc.c: Likewise.
2485         * libio/setbuf.c: Likewise.
2486         * libio/setlinebuf.c: Likewise.
2487         * libio/stdfiles.c: Likewise.
2488         * libio/strops.c: Likewise.
2489         * libio/vasprintf.c: Likewise.
2490         * libio/vscanf.c: Likewise.
2491         * libio/vsnprintf.c: Likewise.
2492         * libio/vswprintf.c: Likewise.
2493         * libio/wfiledoalloc.c: Likewise.
2494         * libio/wfileops.c: Likewise.
2495         * libio/wgenops.c: Likewise.
2496         * libio/wmemstream.c: Likewise.
2497         * libio/wstrops.c: Likewise.
2498         * libio/__fpurge.c: Likewise.
2499         * libio/__fsetlocking.c: Likewise.
2500         * assert/assert.c: Likewise.
2501         * debug/fgets_chk.c: Likewise.
2502         * debug/fgets_u_chk.c: Likewise.
2503         * debug/fread_chk.c: Likewise.
2504         * debug/fread_u_chk.c: Likewise.
2505         * debug/gets_chk.c: Likewise.
2506         * debug/obprintf_chk.c: Likewise.
2507         * debug/vasprintf_chk.c: Likewise.
2508         * debug/vdprintf_chk.c: Likewise.
2509         * debug/vsnprintf_chk.c: Likewise.
2510         * debug/vsprintf_chk.c: Likewise.
2511         * malloc/mtrace.c: Likewise.
2512         * misc/error.c: Likewise.
2513         * misc/syslog.c: Likewise.
2514         * stdio-common/asprintf.c: Likewise.
2515         * stdio-common/fxprintf.c: Likewise.
2516         * stdio-common/getw.c: Likewise.
2517         * stdio-common/isoc99_fscanf.c: Likewise.
2518         * stdio-common/isoc99_scanf.c: Likewise.
2519         * stdio-common/isoc99_vfscanf.c: Likewise.
2520         * stdio-common/isoc99_vscanf.c: Likewise.
2521         * stdio-common/isoc99_vsscanf.c: Likewise.
2522         * stdio-common/printf-prs.c: Likewise.
2523         * stdio-common/printf_fp.c: Likewise.
2524         * stdio-common/printf_fphex.c: Likewise.
2525         * stdio-common/printf_size.c: Likewise.
2526         * stdio-common/putw.c: Likewise.
2527         * stdio-common/scanf.c: Likewise.
2528         * stdio-common/sprintf.c: Likewise.
2529         * stdio-common/tmpfile.c: Likewise.
2530         * stdio-common/vfprintf.c: Likewise.
2531         * stdio-common/vfscanf.c: Likewise.
2532         * stdlib/strfmon_l.c: Likewise.
2533         * sunrpc/openchild.c: Likewise.
2534         * sunrpc/xdr_stdio.c: Likewise.
2535         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
2536         * sysdeps/mach/hurd/tmpfile.c: Likewise.
2537
2538 2012-05-24  Roland McGrath  <roland@hack.frob.com>
2539
2540         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
2541
2542         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
2543         in the third column, to generate for the shared library an IFUNC
2544         that uses _dl_vdso_vsym.
2545         * Makerules (COMPILE.c, compile-stdin.c): New variables.
2546         * Makeconfig (object-suffixes-noshared): New variable.
2547
2548         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
2549         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
2550         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
2551         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
2552
2553         [BZ #14132]
2554         * include/sys/time.h (__gettimeofday): Remove macro.
2555         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
2556         * time/gettimeofday.c (__gettimeofday): Remove #undef.
2557         Remove INTDEF.
2558         (__gettimeofday): Add libc_hidden_def.
2559         (gettimeofday): Add libc_hidden_weak.
2560         * sysdeps/mach/gettimeofday.c: Likewise.
2561         * sysdeps/posix/gettimeofday.c: Likewise.
2562         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
2563         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
2564         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
2565         (__gettimeofday_internal): Remove strong_alias.
2566         (__gettimeofday): Add libc_hidden_def.
2567         (gettimeofday): Add libc_hidden_weak.
2568         * sysdeps/unix/syscalls.list (gettimeofday):
2569         Remove __gettimeofday_internal alias.
2570
2571 2012-05-24  Daniel Jacobowitz  <drow@false.org>
2572             H.J. Lu  <hongjiu.lu@intel.com>
2573
2574         [BZ #12495]
2575         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
2576         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
2577         (largebin_index_32_big): New.
2578         (largebin_index): Use it for 16-byte alignment.
2579         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
2580         correction with front_misalign.
2581
2582 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2583
2584         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
2585         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2586         Likewise.
2587         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
2588         Likewise.
2589         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
2590         Likewise.
2591         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
2592         Likewise.
2593         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
2594         Likewise.
2595         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
2596         Likewise.
2597         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
2598         Likewise.
2599         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
2600         Likewise.
2601         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
2602         Likewise.
2603         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
2604         Likewise.
2605         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2606         Likewise.
2607         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
2608         Likewise.
2609
2610         * scripts/data/c++-types-x32-linux-gnu.data: New file.
2611         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
2612
2613 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2614
2615         [BZ #10846]
2616         [BZ #14036]
2617         * math/libm-test.inc (exp_test): Add test from bug 14036.
2618         (pow_test): Add test from bug 10846.
2619
2620         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
2621         and other flags.
2622         (special_function): Do not include flags in test name.
2623         (parse_args): Likewise.
2624         * sysdeps/i386/fpu/libm-test-ulps: Update.
2625         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2626         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2627         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
2628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2629
2630         * math/gen-libm-test.pl (%beautify): Add entries for underflow
2631         exceptions.
2632         * math/libm-test.inc ("Philosophy"): Update comment about
2633         exception testing.
2634         (UNDERFLOW_EXCEPTION): New macro.
2635         (UNDERFLOW_EXCEPTION_OK): Likewise.
2636         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
2637         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
2638         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
2639         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
2640         (INVALID_EXCEPTION_OK): Update value.
2641         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
2642         (OVERFLOW_EXCEPTION_OK): Likewise.
2643         (IGNORE_ZERO_INF_SIGN): Likewise.
2644         (test_exceptions): Handle underflow exceptions.
2645         (acos_test): Update for underflow exception expectations.
2646         (cexp_test): Likewise.
2647         (clog_test): Likewise.
2648         (clog10_test): Likewise.
2649         (csqrt_test): Likewise.
2650         (ctan_test): Likewise.
2651         (ctanh_test): Likewise.
2652         (exp_test): Likewise.
2653         (exp10_test): Likewise.
2654         (exp2_test): Likewise.
2655         (expm1_test): Likewise.
2656         (fma_test): Likewise.
2657         (j0_test): Likewise.
2658         (jn_test): Likewise.
2659         (nexttoward_test): Likewise.
2660         (pow_test): Likewise.
2661         (scalbn_test): Likewise.
2662         (scalbln_test): Likewise.
2663         (tan_test): Likewise.
2664         (y1_test): Likewise.
2665         * sysdeps/i386/fpu/libm-test-ulps: Update.
2666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2667
2668 2012-05-23  David S. Miller  <davem@davemloft.net>
2669
2670         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2671         (__libc_sigaction): Remove unused local variables.
2672
2673 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2674
2675         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
2676
2677 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2678
2679         mktime: avoid signed integer overflow
2680         * time/mktime.c (__mktime_internal): Do not mishandle the case
2681         where diff == INT_MIN.
2682
2683         mktime: simplify computation of average
2684         * time/mktime.c (ranged_convert): Use new time_t_avg function
2685         instead of rolling our own (probably-slower) code.
2686
2687         mktime: do not assume signed right shift propagates sign bit
2688         * time/mktime.c (isdst_differ): New static function.
2689         (__mktime_internal): No need to normalize tm_isdst now.
2690         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
2691         tm_isdst values.
2692
2693         mktime: merge another wrapv change from gnulib
2694         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
2695         from some compilers.
2696
2697         mktime: remove incorrect attempt at unusual arithmetics
2698         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
2699         The code didn't really work on such machines anyway.
2700         (TYPE_MINIMUM): Assume two's complement.
2701         (twos_complement_arithmetic): Verify that long_int and time_t
2702         are two's complement (or unsigned, in the latter case).
2703
2704         mktime: check signed shifts on long_int and time_t, too
2705         * time/mktime.c (SHR): Check that shifts work as desired
2706         on the types long_int and time_t too, as SHR is used on
2707         such types.
2708
2709         mktime: do not assume 'long' is wide enough
2710         * time/mktime.c (verify): Move decl up.
2711         (long_int): New type.
2712         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
2713         to remove assumption in the code that 'long' is wide enough to
2714         store year values.  This assumption is not true on x32 and on
2715         some non-glibc platforms.
2716
2717         mktime: merge wrapv change from gnulib
2718         * time/mktime.c (WRAPV): New macro.
2719         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
2720         (guess_time_tm, __mktime_internal): Do not assume that signed
2721         integer overflow wraps around; modern compilers generate code
2722         where this assumption is no longer valid.
2723
2724 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2725
2726         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2727         Replace "jmp L(pseudo_end)" with "ret".
2728         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2729         Likewise.
2730
2731 2012-05-23  Andreas Jaeger  <aj@suse.de>
2732
2733         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
2734         * sysdeps/unix/sysv/linux/poll.c: Remove file.
2735
2736 2012-05-23  Andreas Jaeger  <aj@suse.de>
2737             Maximilian Attems  <max@stro.at>
2738
2739         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
2740         New macros.
2741
2742 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2743
2744         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
2745         code so that pseudo_end is just ret and the stack pointer is
2746         correct also for static library in error case.
2747
2748 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
2749
2750         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
2751         move to syscalls.list.
2752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
2753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
2754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
2755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
2756
2757         * manual/install.texi (Running make install): Do not mention Linux
2758         kernel version for which pt_chown is not needed.
2759         (Linux): Do not mention problems with nscd with 2.0 kernels.
2760         * INSTALL: Regenerated.
2761
2762 2012-05-23  Andreas Jaeger  <aj@suse.de>
2763
2764         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
2765         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
2766         macro.
2767         * sysdeps/unix/sysv/linux/s390/bits/mman.h
2768         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2769         * sysdeps/unix/sysv/linux/sh/bits/mman.h
2770         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2771         * sysdeps/unix/sysv/linux/i386/bits/mman.h
2772         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2773         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
2774         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2775         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
2776         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2777         * sysdeps/unix/sysv/linux/bits/in.h
2778         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
2779
2780 2012-05-22  Roland McGrath  <roland@hack.frob.com>
2781
2782         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
2783         (PREPARE_VERSION): Just use assert instead, it will be elided
2784         under [NDEBUG] anyway.
2785
2786 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2787
2788         * sysdeps/unix/sysv/linux/Makefile: Include
2789         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
2790         (sysdep_routines): Remove sysctl.
2791         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
2792         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
2793         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
2794         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
2795         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
2796
2797 2012-05-22  Andreas Jaeger  <aj@suse.de>
2798
2799         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
2800         that pseudo_end is just ret and the stack pointer is correct also
2801         for static library in error case.
2802
2803 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
2804
2805         [BZ #14122]
2806         * nss/nsswitch.c (defconfig_entries): New variable.
2807         (__nss_database_lookup): Don't leak defconfig entries.
2808         (nss_parse_service_list): Don't leak on error paths.
2809         (free_database_entries): New function.
2810         (free_defconfig): New function.
2811         (free_mem): Move common code to free_database_entries.
2812
2813 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2814
2815         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
2816         Add arch_prctl.
2817         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
2818
2819         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
2820         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
2821         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
2822         New macro.
2823         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
2824         (INTERNAL_SYSCALL_TYPES): Likewise.
2825         (LOAD_ARGS_TYPES_[1-6]): Likewise.
2826         (LOAD_REGS_TYPES_[1-6]): Likewise.
2827         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
2828         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
2829
2830 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2831
2832         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
2833         copysignl for GLIBC_2_0.
2834         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
2835         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
2836         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
2837         logbl for GLIBC_2_0.
2838         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
2839         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
2840
2841 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2842
2843         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
2844         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2845
2846         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2847         Use "neg %eax".
2848
2849         * time/mktime.c: Update copyright years.
2850
2851 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2852
2853         mktime: merge comment-quoting-style change from gnulib
2854         * time/mktime.c: Quote 'like this' in comments.
2855         The GNU coding standards suggest that we no longer quote `like this',
2856         as "`" and "'" are typically rendered asymmetrically nowadays.
2857         The typical gnulib style is to quote 'like this' when quoting
2858         code, and "like this" when quoting English.
2859
2860         * time/mktime.c (compile-command): Add "-I.".
2861
2862         mktime: merge mktime-internal.h change from gnulib
2863         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
2864
2865         mktime: merge time_r change from gnulib
2866         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
2867
2868         mktime: merge DEBUG change from gnulib
2869         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
2870         case system <time.h> has a #define.
2871
2872         mktime: merge <sys/types.h> change from gnulib
2873         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
2874         since <time.t> is now guaranteed to define time_t.
2875
2876         mktime: merge HAVE_CONFIG_H change from gnulib
2877         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
2878
2879 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2880
2881         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
2882         Use "neg %eax".
2883
2884         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
2885         __rlim_t cast.
2886         (struct rusage): Use anonymous union to pad each field to
2887         __syscall_slong_t.
2888
2889 2012-05-21  David S. Miller  <davem@davemloft.net>
2890
2891         * Makefules (o-iterator): Remove .s cases.
2892         (compile-command.s): Delete.
2893         (COMPILE.s): Delete.
2894         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
2895
2896 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
2897
2898         * configure.in (libc_cv_predef_stack_protector): Only consider
2899         "foobar" and "__stack_chk_fail" lines in libc_undefs.
2900         * configure: Regenerated.
2901
2902 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2903
2904         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
2905         New macro.  Use R*LP on int and pointer.
2906         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
2907         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
2908         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
2909         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
2910
2911         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
2912         [__WORDSIZE_TIME64_COMPAT32] instead of
2913         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
2914         (struct utmp): Likewise.
2915         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
2916         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
2917         Renamed to ...
2918         (__WORDSIZE_TIME64_COMPAT32): This.
2919         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
2920         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
2921         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
2922         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
2923         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
2924         (__WORDSIZE_TIME64_COMPAT32): New macro.
2925
2926 2012-05-21  Andreas Jaeger  <aj@suse.de>
2927
2928         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
2929         only if [SHARED]. Add prototype for __wcschr_ia32.
2930
2931 2012-05-21  Roland McGrath  <roland@hack.frob.com>
2932
2933         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
2934         of %rbp unmolested in the jmp_buf while mangling the low bits.
2935         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
2936         unmolested high bits of %rbp while demangling the low bits.
2937         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
2938
2939 2012-05-21  Andreas Jaeger  <aj@suse.de>
2940
2941         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
2942         * sunrpc/svc_simple.c: Use it for registerrpc.
2943         * sunrpc/xcrypt.c: Use it for passwd2des.
2944
2945         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
2946
2947 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2948
2949         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
2950         Don't define if [__SYSCALL_WORDSIZE != 32].
2951         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
2952         New macro.
2953
2954 2012-05-21  Bruno Haible  <bruno@clisp.org>
2955             Andreas Jaeger  <aj@suse.de>
2956
2957         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
2958         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
2959         inptr and inend for must_buffer_ch.
2960         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
2961         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
2962         * stdio-common/Makefile (tests): Remove bug15.
2963         (bug15-ENV): Remove macro.
2964         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
2965         anymore.
2966
2967 2012-05-19  Andreas Jaeger  <aj@suse.de>
2968             Roland McGrath  <roland@hack.frob.com>
2969
2970         * manual/contrib.texi: Completely rewritten. It contains now an
2971         alphabetical list of contributors and their contributions.
2972
2973 2012-05-21  Richard Henderson  <rth@twiddle.net>
2974
2975         * misc/getauxval.c (__getauxval): Use unsigned long int.
2976         * misc/sys/auxv.h: Include <sys/cdefs.h>.
2977         (getauxval): Use unsigned long int.
2978
2979 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2980
2981         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
2982
2983 2012-05-21  Roland McGrath  <roland@hack.frob.com>
2984
2985         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
2986         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
2987         __alignof__ (long double).
2988
2989 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2990
2991         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2992
2993 2012-05-20  Richard Henderson  <rth@twiddle.net>
2994
2995         * misc/getauxval.c: New file.
2996         * misc/sys/auxv.h: New file.
2997         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
2998         (routines): Add getauxval.
2999         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
3000         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
3001         * elf/dl-sysdep.c (_dl_auxv): Remove.
3002         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
3003         * elf/dl-support.c (_dl_auxv): New variable.
3004         (_dl_aux_init): Initialize it.
3005         * manual/startup.texi (Auxiliary Vector): New node.
3006         * sysdeps/generic/bits/hwcap.h: New file.
3007         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
3008         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
3009         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
3010         * sysdeps/sparc/sysdep.h: ... here.  Include it.
3011         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
3012         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
3013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3014         Update.
3015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
3016         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
3017         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
3018         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
3019         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3020         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3021         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
3022         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
3023
3024 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3025
3026         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3027
3028 2012-05-19  David S. Miller  <davem@davemloft.net>
3029
3030         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3031
3032 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
3033
3034         [BZ #14123]
3035         * math/s_ccosh.c: Include <float.h>
3036         (__ccosh): Avoid internal overflow calculating sinh and cosh
3037         values before multiplying by sin and cos values.
3038         * math/s_ccoshf.c: Likewise.
3039         * math/s_ccoshl.c: Likewise.
3040         * math/s_csin.c: Likewise.
3041         * math/s_csinf.c: Likewise.
3042         * math/s_csinl.c: Likewise.
3043         * math/s_csinh.c: Likewise.
3044         * math/s_csinhf.c: Likewise.
3045         * math/s_csinhl.c: Likewise.
3046         * math/libm-test.inc (ccos_test): Add more tests.
3047         (ccosh_test): Likewise.
3048         (csin_test): Likewise.
3049         (csinh_test): Likewise.
3050         * sysdeps/i386/fpu/libm-test-ulps: Update.
3051         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3052
3053 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
3054
3055         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
3056         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
3057
3058         * sysdeps/x86_64/x32/_itoa.h: Add comment.
3059
3060 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
3061
3062         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
3063         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
3064         * sysdeps/powerpc/soft-fp/Versions: Likewise.
3065         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
3066         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
3067         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
3068         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
3069         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
3070         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
3071         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
3072         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
3073         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
3074         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
3075         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
3076         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
3077         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
3078         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
3079         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
3080         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
3081         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
3082         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
3083         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
3084         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
3085         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
3086         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
3087         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
3088         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
3089         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
3090         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
3091         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
3092         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
3093
3094 2012-05-18  Andreas Jaeger  <aj@suse.de>
3095
3096         * csu/.gitignore: Delete.
3097
3098 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3099
3100         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
3101         (timex): Use __syscall_slong_t.
3102
3103 2012-05-18  Andreas Jaeger  <aj@suse.de>
3104             Carlos O'Donell  <carlos_odonell@mentor.com>
3105
3106         * manual/install.texi (Configuring and compiling): Update
3107         description about files modified in the source directory.
3108         * INSTALL: Regenerated.
3109
3110 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3111
3112         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
3113         value.  Use "or" to set return value to -1.
3114         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
3115         negate return value.
3116
3117 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3118
3119         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
3120         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
3121         failure if the compiler has Graphite support disabled.
3122         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
3123         Likewise.
3124         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
3125         CFLAGS-memmove.c): Likewise.
3126         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
3127         Likewise.
3128
3129 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3130
3131         * sysdeps/x86_64/x32/_itoa.h: New file.
3132
3133         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
3134         getdents system call only if kernel and user dirents have the
3135         same d_ino and d_off.
3136
3137         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
3138         LLONG_MAX != LONG_MAX.
3139         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3140         (_fitoa_word): Likewise.
3141
3142         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
3143         years.
3144         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
3145         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
3146         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
3147
3148         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
3149         include <bits/wordsize.h>.  Check __x86_64__ instead of
3150         __WORDSIZE.
3151         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
3152         if __x86_64__ is defined.  Use anonymous union on fpstate.
3153
3154         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
3155         anonymous union.
3156
3157 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
3158
3159         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
3160         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
3161         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
3162         Refer to _rtld_local_ro instead of _rtld_global_ro.
3163         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
3164         Likewise.
3165         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
3166         Likewise.
3167         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
3168         Likewise.
3169         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
3170         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
3171         of _rtld_global, and rtld_progname instead of _dl_argv[0].
3172
3173         * sysdeps/powerpc/powerpc32/dl-machine.c
3174         (__elf_machine_runtime_setup) [PROF]: Don't reference
3175         _dl_prof_resolve.
3176
3177 2012-05-18  Andreas Jaeger  <aj@suse.de>
3178
3179         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
3180         function only available for GCCs before 3.4 since GCC 3.4
3181         introduced a builtin.
3182         (lrint): Likewise.
3183         (llrintf): Likewise.
3184         (llrint): Likewise.
3185         (fmaxf): Likewise.
3186         (fmax): Likewise.
3187         (fminf): Likewise.
3188         (fmin): Likewise.
3189         (rint): Likewise.
3190         (rintf): Likewise.
3191         (nearbyint): Likewise.
3192         (nearbyintf): Likewise.
3193         (ceil): Likewise.
3194         (ceilf): Likewise.
3195         (floor): Likewise.
3196         (floorf): Likewise.
3197
3198 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3199
3200         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
3201         on both fields and cast pointer to __syscall_ulong_t.
3202
3203         * bits/types.h (__fsword_t): New type.
3204         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
3205         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
3206         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3207         (__FSWORD_T_TYPE): Likewise.
3208         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3209         (__FSWORD_T_TYPE): Likewise.
3210         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3211         (__FSWORD_T_TYPE): Likewise.
3212         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
3213         (__FSWORD_T_TYPE): Likewise.
3214         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
3215         __SWORD_TYPE with __fsword_t.
3216         (statfs64): Likewise.
3217
3218 2012-05-17  David S. Miller  <davem@davemloft.net>
3219
3220         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
3221
3222 2012-05-17  Andreas Jaeger  <aj@suse.de>
3223
3224         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
3225         warning.
3226
3227 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3228
3229         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
3230
3231 2012-05-17  Andreas Jaeger  <aj@suse.de>
3232
3233         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
3234         when it is used.
3235
3236 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
3237
3238         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
3239
3240 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3241
3242         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
3243         * sysdeps/x86_64/tst-mallocalign1.c: New file.
3244
3245 2012-05-17  Andreas Jaeger  <aj@suse.de>
3246             Carlos O'Donell  <carlos_odonell@mentor.com>
3247
3248         [BZ #14059]
3249         * sysdeps/x86_64/multiarch/init-arch.h
3250         (bit_YMM_Usable): Rename to...
3251         (bit_AVX_Usable): ... this.
3252         (bit_FMA4_Usable): New macro.
3253         (bit_XMM_state): New macro.
3254         (bit_YMM_state): New macro.
3255         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
3256         [__ASSEMBLER__] (index_AVX_Usable): ... this.
3257         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
3258         (CPUID_OSXSAVE): New macro.
3259         (CPUID_AVX): New macro.
3260         (CPUID_FMA4): New macro.
3261         (index_YMM_Usable): Rename to...
3262         (index_AVX_Usable): ... this.
3263         (HAS_AVX): Use HAS_ARCH_FEATURE.
3264         (HAS_FMA4): Likewise.
3265         (HAS_YMM_USABLE): Remove.
3266         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3267         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
3268         are present.
3269         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
3270         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
3271         * sysdeps/x86_64/multiarch/Makefile: Likewise.
3272         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
3273         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
3274
3275 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
3276
3277         * math/libm-test.c: Support platforms without multiple rounding modes.
3278         * math/bug-nextafter.c: Support platforms without FP exceptions.
3279         * math/bug-nexttoward.c: Likewise.
3280         * math/test-fenv.c: Likewise.
3281         * math/test-misc.c: Likewise.
3282         * stdlib/bug-getcontext.c: Likewise.
3283
3284 2012-05-17  Andreas Jaeger  <aj@suse.de>
3285
3286         * manual/examples/search.c (critter_cmp): Change signature to
3287         avoid warnings.
3288         * manual/string.texi (Collation Functions): Likewise.
3289
3290 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3291
3292         * bits/types.h: Fold copyright years.
3293         * bits/typesizes.h: Likewise.
3294         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
3295         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
3296         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
3297         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
3298         * time/time.h: Likewise.
3299
3300 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
3301
3302         [BZ #208]
3303         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
3304         in instead of returning them.  Return void.
3305         (__libc_mallinfo): Accumulate over all arenas.
3306         (__malloc_stats): Adjust for change in int_mallinfo interface.
3307
3308 2012-05-16  Roland McGrath  <roland@hack.frob.com>
3309
3310         [BZ #10375]
3311         * configure.in (NM): Add AC_CHECK_TOOL for it.
3312         (libc_extra_cflags): New substituted variable.
3313         Check for -fstack-protector being used implicitly.
3314         * configure: Regenerated.
3315         * config.make.in (config-extra-cflags): New variable,
3316         gets @libc_extra_cflags@.
3317         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
3318
3319         [BZ #10375]
3320         * configure.in: Check for _FORTIFY_SOURCE being predefined.
3321         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
3322         * configure: Regenerated.
3323         * config.make.in (CPPUNDEFS): New substituted variable.
3324         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
3325         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
3326         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
3327
3328 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3329
3330         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
3331         (mq_attr): Use __syscall_slong_t.
3332
3333 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3334
3335         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
3336         Check __x86_64__ instead of __WORDSIZE.
3337         (_STAT_VER_LINUX): Likewise.
3338         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
3339         __syscall_ulong_t and __syscall_slong_t.
3340         (stat64): Likewise.
3341
3342 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3343
3344         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
3345
3346 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3347
3348         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
3349
3350 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3351
3352         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
3353         __syscall_ulong_t.
3354
3355         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
3356         include <bits/wordsize.h>.  Check __x86_64__ instead of
3357         __WORDSIZE.
3358         (greg_t): Use "__extension__ long long int" if __x86_64__ is
3359         defined.
3360         (mcontext_t): Replace "unsigned long" with "unsigned long long".
3361
3362         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
3363         include <bits/wordsize.h>.  Check __x86_64__ instead of
3364         __WORDSIZE.
3365         (user_regs_struct): Use "__extension__ unsigned long long"
3366         instead of "unsigned long" if __x86_64__ is defined.
3367         (user): Likewise.  Pad after pointer field if __ILP32__ is
3368         defined.
3369
3370 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
3371
3372         * configure.in (makeinfo): Require version 4.5 or later.  Allow
3373         versions 5 to 9.
3374         * configure: Regenerated.
3375         * manual/install.texi (texinfo): Increase version requirement to
3376         4.5 or later.
3377         * INSTALL: Regenerated.
3378
3379         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
3380
3381 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3382
3383         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
3384
3385         * sysdeps/x86_64/x32/ffs.c: New file.
3386
3387         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
3388         __syscall_ulong_t.
3389         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
3390         defined.  Use __syscall_ulong_t.
3391         (shminfo): Use __syscall_ulong_t.
3392         (shm_info): Likewise.
3393
3394         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
3395         __syscall_ulong_t.
3396
3397         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
3398         <bits/wordsize.h>.
3399         (msgqnum_t): Use __syscall_ulong_t.
3400         (msglen_t): Likewise.
3401         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
3402         __syscall_ulong_t.
3403
3404         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
3405         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3406
3407         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
3408
3409         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
3410         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
3411
3412         * sysvipc/sys/msg.h (msgbuf): Replace long int with
3413         __syscall_slong_t.
3414
3415         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
3416         include <bits/wordsize.h>.  Check __x86_64__ instead of
3417         __WORDSIZE.
3418
3419         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
3420         "unsigned long long int" if __x86_64__ is defined.
3421         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
3422
3423         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
3424         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3425         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
3426
3427         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
3428         <stdint.h>.
3429         (GET_PC): Cast to uintptr_t first.
3430         (GET_FRAME): Likewise.
3431         (GET_STACK): Likewise.
3432
3433         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
3434         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
3435         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
3436         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
3437         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
3438         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
3439         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
3440         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
3441         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
3442         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
3443         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
3444         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
3445         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3446         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
3447         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
3448         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
3449         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
3450         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
3451         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
3452         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
3453         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
3454         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
3455         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
3456         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
3457         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
3458         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
3459         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
3460         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
3461         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
3462
3463 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
3464
3465         * Makerules (+depfiles): Also collect depfiles from .oS in
3466         $(extra-objs).
3467         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
3468         .oS, $(libnldbl-routines)).
3469
3470         * Makerules (native-compile-mkdep-flags): Define.
3471         * sunrpc/Makefile (extra-objs): Add $(addprefix
3472         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
3473         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
3474         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
3475         calling $(make-target-directory).
3476
3477 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3478
3479         * bits/types.h (__snseconds_t): Removed.
3480         * time/time.h (struct timespec): Replace __snseconds_t with
3481         __syscall_slong_t.
3482         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
3483         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
3484         Likewise.
3485         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3486         (__SNSECONDS_T_TYPE): Likewise.
3487         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3488         (__SNSECONDS_T_TYPE): Likewise.
3489         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3490         (__SNSECONDS_T_TYPE): Likewise.
3491
3492 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3493
3494         * sysdeps/mach/hurd/bits/typesizes.h
3495         (__SYSCALL_SLONG_TYPE): New macro.
3496         (__SYSCALL_ULONG_TYPE): Likewise.
3497
3498 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3499
3500         * bits/types.h (__syscall_slong_t): New type.
3501         (__syscall_ulong_t): Likewise.
3502
3503         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
3504         (__SYSCALL_ULONG_TYPE): Likewise.
3505         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3506         (__SYSCALL_SLONG_TYPE): Likewise.
3507         (__SYSCALL_ULONG_TYPE): Likewise.
3508         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3509         (__SYSCALL_SLONG_TYPE): Likewise.
3510         (__SYSCALL_ULONG_TYPE): Likewise.
3511         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3512         (__SYSCALL_SLONG_TYPE): Likewise.
3513         (__SYSCALL_ULONG_TYPE): Likewise.
3514
3515 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3516
3517         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
3518         Add sigaltstack-offsets.sym.
3519         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
3520         <sigaltstack-offsets.h>.
3521         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
3522         longjmp_msg pointer.
3523         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
3524         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
3525         signal stack.
3526         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
3527
3528 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
3529
3530         * elf/stackguard-macros.h: Remove file.
3531         * sysdeps/generic/stackguard-macros.h: New file.
3532         * sysdeps/i386/stackguard-macros.h: Likewise.
3533         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
3534         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
3535         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
3536         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
3537         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
3538         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
3539         * sysdeps/x86_64/stackguard-macros.h: Likewise.
3540         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
3541         <elf/stackguard-macros.h>.
3542
3543         [BZ #14109]
3544         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
3545         __aligned__ in attribute.
3546         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
3547         (gregset_t): Likewise.
3548
3549 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3550
3551         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
3552         * sysdeps/x86_64/64/Implies-after: Here.  New file.
3553         * sysdeps/x86_64/x32/Implies-after: New file.
3554
3555 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3556
3557         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
3558         and access return value for _dl_profile_fixup.  Use R10_LP to
3559         load frame size.
3560
3561 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3562
3563         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
3564
3565 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3566
3567         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
3568         * sysdeps/x86_64/x32/sysdep.h: New file.
3569
3570 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3571
3572         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
3573         * sysdeps/x86_64/setjmp.S: Likewise.
3574
3575 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3576
3577         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
3578         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
3579         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
3580         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
3581         remove unused global constant.
3582
3583 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
3584
3585         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
3586         include of <not-cancel.h>.
3587
3588 2012-05-15  Roland McGrath  <roland@hack.frob.com>
3589
3590         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
3591
3592 2012-05-15  Jeff Law  <law@redhat.com>
3593             Andreas Jaeger  <aj@suse.de>
3594
3595         [BZ #13594]
3596         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
3597         out from...
3598         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
3599         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
3600         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
3601         code changing __hst_map_handle.map.
3602
3603 2012-05-15  Roland McGrath  <roland@hack.frob.com>
3604
3605         * configure.in (sysnames): Look for Implies-before and Implies-after
3606         files.
3607         * configure: Regenerated.
3608
3609 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3610
3611         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
3612         8-byte data alignment with LP_SIZE alignment.
3613
3614 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3615
3616         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
3617         into R10_LP.
3618
3619 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3620
3621         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
3622
3623 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3624
3625         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
3626         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
3627         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
3628         Likewise.
3629         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3630
3631 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3632
3633         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
3634         (stackinfo_sub_sp): Likewise.
3635
3636 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3637
3638         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
3639         RAX_LP.
3640
3641 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3642
3643         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
3644         into R*_LP.
3645
3646 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3647
3648         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
3649         sizes into R*_LP.
3650
3651 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3652
3653         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
3654
3655 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3656
3657         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
3658         into R11_LP and load __x86_64_shared_cache_size_half into
3659         R8_LP.
3660
3661 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3662
3663         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
3664         R8_LP.
3665
3666 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3667
3668         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
3669         logb for POWER7.
3670         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
3671         logbf for POWER7.
3672         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
3673         logbl for POWER7.
3674         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
3675         powerpc32/power7/fpu/s_logb.c via #include.
3676         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
3677         powerpc32/power7/fpu/s_logbf.c via #include.
3678         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
3679         powerpc32/power7/fpu/s_logbl.c via #include.
3680
3681 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
3682
3683         * README.libm: Remove file.
3684
3685 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3686
3687         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
3688         count for x32.  Use R*_LP and omit operand-size suffix.
3689
3690 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3691
3692         * shlib-versions: Move x86_64-.*-linux.* entries to ...
3693         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
3694         * sysdeps/x86_64/x32/shlib-versions: New file.
3695
3696 2012-05-14  Roland McGrath  <roland@hack.frob.com>
3697
3698         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
3699         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
3700         Use _dl_fatal_printf instead.
3701
3702 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
3703
3704         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
3705         set if not set by the user.  Do not allow for being unset.
3706         * sysdeps/unix/sysv/linux/configure: Regenerated.
3707
3708 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3709
3710         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
3711         the `q' suffix from lea and replace .quad with ASM_ADDR.
3712
3713 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3714
3715         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
3716         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
3717         instead of $17.
3718         (PTR_DEMANGLE): Likewise.
3719
3720 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3721
3722         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
3723         (LP_OP): Likewise.
3724         (ASM_ADDR): Likewise.
3725         (RAX_LP): Likewise.
3726         (RBP_LP): Likewise.
3727         (RBX_LP): Likewise.
3728         (RCX_LP): Likewise.
3729         (RDI_LP): Likewise.
3730         (RSI_LP): Likewise.
3731         (RSP_LP): Likewise.
3732         (R8_LP): Likewise.
3733         (R9_LP): Likewise.
3734         (R10_LP): Likewise.
3735         (R10_LP): Likewise.
3736         (R11_LP): Likewise.
3737         (R12_LP): Likewise.
3738         (R13_LP): Likewise.
3739         (R14_LP): Likewise.
3740         (R15_LP): Likewise.
3741
3742 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3743
3744         * sysdeps/x86_64/x32/dl-machine.h: New file.
3745
3746 2012-05-14  Andreas Jaeger  <aj@suse.de>
3747
3748         * manual/Makefile (subdir): Remove export of subdir.
3749         (all): Remove target.
3750         (.PHONY): Remove all from list.
3751         (mkinstalldirs): Remove.
3752         (.PHONY): Remove installdirs from list.
3753         ($(inst_infodir)/libc.info): Use make-target-directory.
3754         (installdirs): Remove.
3755         (subdir_%): Remove.
3756         (glibc-targets): Remove.
3757         (lib): Remove.
3758         (stubs): Remove.
3759         ($(objpfx)stubs ../po/manual.pot): Remove.
3760         ($(objpfx)stamp%): Remove.
3761         (make-target-directory): Remove.
3762         (subdir_install): Remove.
3763         (routines): Remove.
3764         (aux): Remove.
3765         (sources): Remove.
3766         (objects): Remove.
3767         (headers): Remove.
3768
3769         [BZ #13750]
3770         * manual/.gitignore: Remove, it's not needed anymore.
3771         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
3772         all files in it.
3773         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
3774         directory.
3775         (texis): Renamed to $(objpfx)texis.
3776         (texis-path): New, contains path to generated files.
3777         (chapters.%): Use texis-path for complete path, add extra argument
3778         libc-texinfo.sh.
3779         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
3780         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
3781         (summary,texi, stamp-summary): Use complete path of
3782         files. Generate files in build dir.
3783         (dir-add.texi): Build in build dir.
3784         (libm-err.texi,stamp-libm-err): Likewise.
3785         (version.texi, stamp-version): Likewise.
3786         (.%c.texi): Likewise.
3787         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
3788         (mostlyclean): Remove target.
3789         (realclean): Remove target.
3790         (generated): Add new variable with contents from mostlyclean and
3791         realclean, remove entries duplicated in common-mostlyclean, add
3792         stamp-libm-err and stamp-version.
3793         (generated-dirs): Add libc directory.
3794         ($(inst_infodir)/libc.info): Install files from build dir.
3795
3796         * manual/install.texi (Configuring and compiling): Adjust since
3797         the info files are not part of the tar ball anymore.
3798
3799 2012-05-14  Andreas Jaeger  <aj@suse.de>
3800
3801         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
3802         variable.
3803
3804 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
3805
3806         [BZ #13717]
3807         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3808         to 2.2.0 where earlier.
3809         * sysdeps/unix/sysv/linux/configure: Regenerated.
3810         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
3811         Remove conditional code.
3812         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
3813         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
3814         Remove conditional code.
3815         [!__NR_lchown]: Likewise.
3816         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
3817         [__NR_lchown]: Likewise.
3818         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
3819         comment referencing __ASSUME_LCHOWN_SYSCALL.
3820         * sysdeps/unix/sysv/linux/i386/sigaction.c
3821         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3822         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3823         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
3824         Remove conditional code.
3825         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
3826         (__protocol_available): Remove #if 0 code.
3827         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
3828         conditional code.
3829         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
3830         * sysdeps/unix/sysv/linux/kernel-features.h
3831         (__ASSUME_GETCWD_SYSCALL): Don't define.
3832         (__ASSUME_REALTIME_SIGNALS): Likewise.
3833         (__ASSUME_PREAD_SYSCALL): Likewise.
3834         (__ASSUME_PWRITE_SYSCALL): Likewise.
3835         (__ASSUME_POLL_SYSCALL): Likewise.
3836         (__ASSUME_LCHOWN_SYSCALL): Likewise.
3837         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
3838         non-SPARC.
3839         (__ASSUME_SIOCGIFNAME): Don't define.
3840         (__ASSUME_MSG_NOSIGNAL): Likewise.
3841         (__ASSUME_SENDFILE): Define unconditionally.
3842         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
3843         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
3844         conditional code.
3845         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
3846         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
3847         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
3848         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
3849         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
3850         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
3851         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
3852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
3853         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3854         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
3856         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3857         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
3859         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3860         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
3862         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3863         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
3865         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3866         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
3868         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3869         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
3871         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3872         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
3874         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3875         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3876         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
3877         Remove conditional code.
3878         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3879         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
3880         Remove conditional code.
3881         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3882         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
3883         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
3884         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
3885         Remove conditional code.
3886         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3887         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
3888         Remove conditional code.
3889         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3890         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
3891         Remove conditional code.
3892         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3893         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
3894         Remove conditional code.
3895         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3896         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
3897         Remove conditional code.
3898         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3899         * sysdeps/unix/sysv/linux/sh/pwrite64.c
3900         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3901         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3902         * sysdeps/unix/sysv/linux/sigaction.c
3903         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3904         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3905         * sysdeps/unix/sysv/linux/sigpending.c
3906         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3907         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3908         * sysdeps/unix/sysv/linux/sigprocmask.c
3909         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3910         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3911         * sysdeps/unix/sysv/linux/sigsuspend.c
3912         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3913         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3914         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3915         (__libc_missing_rt_sigs): Remove.
3916         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
3917         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
3918         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
3919         Remove conditional code.
3920         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
3921         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
3922         return 1.
3923         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
3924         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
3925         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
3926         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
3927
3928 2012-05-14  Andreas Jaeger  <aj@suse.de>
3929
3930         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
3931         it's not used in glibc.
3932         (__coshm1): Likewise.
3933         (__acosh1p): Likewise.
3934         (__sgn): Likewise.
3935
3936         * manual/string.texi (Copying and Concatenation): Add missing
3937         variable in concat example.
3938         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
3939
3940 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3941
3942         [BZ #14103]
3943         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
3944         __builtin_clzl with __builtin_clzll.
3945
3946 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3947
3948         [BZ #14104]
3949         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
3950         libc_freeres_ptr.
3951
3952 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3953
3954         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
3955         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
3956         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
3957         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
3958
3959 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
3960
3961         * NEWS: Update ia64 info.
3962
3963 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
3964
3965         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
3966         used as bcopy.
3967
3968 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3969
3970         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
3971         * sysdeps/unix/syscalls.list (dup3): Likewise.
3972         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
3973         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
3974
3975 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3976
3977         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
3978         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
3979
3980 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3981
3982         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
3983         thread pointer.
3984         (TLS_IE): Use mov/add instead of movq/addq to load thread
3985         pointer.
3986         (TLS_GD_PREFIX): New.
3987         (TLS_GD): Use it.
3988
3989 2012-05-11  David S. Miller  <davem@davemloft.net>
3990
3991         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
3992         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
3993         (_FPU_SETCW): Likewise.
3994
3995 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3996
3997         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
3998         is 32-byte aligned.
3999
4000 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
4001
4002         [BZ #11837]
4003         * iconvdata/gb18030.c: Update tables.
4004         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
4005         characters specially.
4006         (BODY for TO_LOOP): Add encoding of missing ranges.
4007
4008 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
4009
4010         [BZ #13673]
4011         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
4012         * sysdeps/mach/hurd/dup3.c: Likewise.
4013         * sysdeps/mach/hurd/readlinkat.c: Likewise.
4014         * sysdeps/powerpc/memmove.c:: Likewise.
4015
4016 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4017
4018         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
4019         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
4020
4021 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4022
4023         * elf/elf.h (R_X86_64_RELATIVE64): New.
4024         (R_X86_64_NUM): Updated.
4025         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4026         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
4027         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
4028         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
4029         tst-quad1pie tst-quad2pie
4030         (modules-names): Add tst-quadmod1 tst-quadmod2.
4031         ($(objpfx)tst-quad1): New dependency.
4032         ($(objpfx)tst-quad2): Likewise.
4033         ($(objpfx)tst-quad1pie): Likewise.
4034         ($(objpfx)tst-quad2pie): Likewise.
4035         * sysdeps/x86_64/tst-quad1.c: New file.
4036         * sysdeps/x86_64/tst-quad1pie.c: New file.
4037         * sysdeps/x86_64/tst-quad2.c: Likewise.
4038         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
4039         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
4040         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
4041         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
4042         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
4043
4044 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4045
4046         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
4047         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
4048         * streams/stropts.h (t_scalar_t): Define type.
4049
4050         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
4051         (_PATH_PRESERVE): Set to "/var/lib".
4052         (_PATH_RWHODIR): Set to "/var/spool/rwho".
4053
4054         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
4055         instead of int.
4056
4057         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
4058         if __dir_mkfile succeeded.
4059
4060         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
4061         checking for _hurd_dtablesize.  Unlock it right after having
4062         finished _hurd_dtable allocation.
4063
4064 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4065
4066         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
4067         * sysdeps/mach/hurd/configure: Regenerated.
4068         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
4069         special-casing to...
4070         * sysdeps/gnu/configure.in: ... this new file.
4071         * sysdeps/unix/sysv/linux/configure: Regenerated.
4072         * sysdeps/gnu/configure: New generated file.
4073
4074         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
4075         for Linux: use nsec instead of usec, as well as:
4076         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
4077         members of type struct timespec.
4078         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
4079         New macros.
4080         (struct stat64): Likewise.
4081         (_STATBUF_ST_NSEC): New macro.
4082         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
4083
4084         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4085         __strtoul_internal rather than strtoul.
4086
4087 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4088
4089         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
4090         and reject them.
4091
4092 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4093
4094         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
4095         which preserves existing values.
4096         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
4097
4098 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4099
4100         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
4101         TIMEOUT values.  Return EINVAL for NFDS values either negative or
4102         greater than FD_SETSIZE.
4103
4104 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4105
4106         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
4107         allocated, call __vm_protect to finish enabling the existing space, and
4108         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
4109         allocate the remainder.
4110
4111 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4112
4113         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
4114         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
4115
4116 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4117
4118         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
4119         sysdeps/mach/hurd/readlink.c.
4120
4121         * posix/tst-sysconf.c (posix_options): Only use
4122         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
4123         _POSIX_SYNCHRONIZED_IO when they are defined
4124         * sysdeps/mach/hurd/bits/posix_opt.h:
4125         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
4126         (_XOPEN_REALTIME): Undefine macro.
4127         (_XOPEN_REALTIME_THREADS): Undefine macro.
4128         (_XOPEN_SHM): Undefine macro.
4129         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
4130         macro to -1.
4131         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
4132         macro to -1.
4133         (_POSIX_ASYNC_IO): Undefine macro.
4134         (_POSIX_PRIORITIZED_IO): Undefine macro.
4135         (_POSIX_SPIN_LOCKS): Define macro to -1.
4136
4137         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
4138         SA_NODEFER, SA_RESETHAND.
4139         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
4140         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
4141         F_DUPFD_CLOEXEC.
4142
4143 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4144
4145         * elf/Makefile (pldd-modules): Define unconditionally.
4146
4147 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4148
4149         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
4150
4151 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4152
4153         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
4154         Return ENOENT when name is empty.
4155         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
4156
4157 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4158
4159         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
4160
4161         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
4162
4163 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4164
4165         Fix mlock in all cases except non-readable pages.
4166         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
4167         instead of VM_PROT_ALL as parameter to __vm_wire function.
4168
4169         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
4170         (__mkdir): When path is `/', just fail with EEXIST.
4171         * sysdeps/mach/hurd/mkdirat.c: Likewise.
4172
4173 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4174
4175         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
4176         <sys/uio.h> (for writev).
4177         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
4178         and <sys/param.h> (for MIN).
4179
4180 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4181
4182         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
4183         REQUESTED_TIME.  Properly set the remaining time and return EINTR
4184         if interrupted.
4185
4186 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4187
4188         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
4189         Depend on against $(link-rpcuserlibs).
4190
4191 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4192
4193         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
4194         (__libc_stack_end): Do not use attribute_relro.
4195         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
4196         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
4197         to libthread-provided value.
4198         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
4199         attribute_relro.
4200
4201 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4202
4203         [BZ #3748]
4204         * bits/libc-lock.h (__libc_once_get): New macro.
4205         * sysdeps/mach/bits/libc-lock.h: Likewise.
4206         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
4207         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
4208         instead of using implementation details.
4209
4210         * libio/fileops.c: Unconditionally include <kernel-features.h>.
4211         * libio/freopen.c: Likewise.
4212         * libio/freopen64.c: Likewise.
4213         * misc/syslog.c: Likewise.
4214         * nscd/connections.c: Likewise.
4215         * nscd/netgroupcache.c: Likewise.
4216         * sysdeps/posix/getcwd.c: Likewise.
4217
4218 2012-05-10  Roland McGrath  <roland@hack.frob.com>
4219
4220         * math/w_ilogbf.c: Add #include <limits.h>.
4221
4222 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4223
4224         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
4225         path instead of returning without unlocking.
4226
4227         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
4228         immediate-write ioctls.
4229         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
4230
4231 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4232
4233         * sysdeps/mach/hurd/i386/init-first.c (init): Use
4234         __builtin_frame_address instead of making assumptions about the
4235         location of the return address relative to DATA.  Force early load of
4236         the return address.
4237         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
4238         __builtin_frame_address.
4239
4240         dup3 for GNU Hurd.
4241         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
4242         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
4243         implement dup3 and do some further code clean-ups.
4244         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
4245         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
4246
4247 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4248
4249         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
4250
4251         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
4252         HURD_CRITICAL_END around holding _hurd_dtable_lock.
4253         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
4254         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
4255         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
4256         d->port.lock.
4257
4258         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
4259         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
4260         when handler == SIG_ERR, not when handler != SIG_ERR.
4261
4262 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4263
4264         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
4265         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
4266         definitions.
4267
4268         accept4 for GNU Hurd.
4269         * include/sys/socket.h (__libc_accept4): New prototype.
4270         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
4271         to implement __libc_accept4.
4272         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
4273         __libc_accept4.
4274         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
4275
4276         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
4277         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
4278         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
4279         signal-defines.sym.
4280
4281 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4282
4283         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
4284
4285 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4286
4287         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
4288         assertion on O_CLOEXEC flag.
4289         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
4290         * hurd/intern-fd.c: Likewise.
4291         * hurd/port2fd.c: Likewise.
4292
4293 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4294
4295         [BZ #3906]
4296         * bits/in.h (IPV6_PKTINFO): Define new macro.
4297         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
4298
4299 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4300
4301         [BZ #13954]
4302         [BZ #13955]
4303         [BZ #13956]
4304         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
4305         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4306         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
4307         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4308         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4309         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4310         * math/libm-test.inc (logb_test) : Additional logb tests.
4311
4312 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
4313             Andreas Jaeger  <aj@suse.de>
4314
4315         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
4316         * configure: Regenerated.
4317         * config.h.in (LINK_OBSOLETE_RPC): New macro.
4318         * config.make.in (link-obsolete-rpc): New substituted variable.
4319         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
4320         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
4321         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4322         (shared-only-routines): Don't set it under [link-obsolete-rpc],
4323         so that libc.a contains the symbols.
4324         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4325         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
4326         * sunrpc/auth_none.c: Likewise.
4327         * sunrpc/auth_unix.c: Likewise.
4328         * sunrpc/authdes_prot.c: Likewise.
4329         * sunrpc/authuxprot.c: Likewise.
4330         * sunrpc/clnt_gen.c: Likewise.
4331         * sunrpc/clnt_perr.c: Likewise.
4332         * sunrpc/clnt_raw.c: Likewise.
4333         * sunrpc/clnt_simp.c: Likewise.
4334         * sunrpc/clnt_tcp.c: Likewise.
4335         * sunrpc/clnt_udp.c: Likewise.
4336         * sunrpc/clnt_unix.c: Likewise.
4337         * sunrpc/des_crypt.c: Likewise.
4338         * sunrpc/des_soft.c: Likewise.
4339         * sunrpc/get_myaddr.c: Likewise.
4340         * sunrpc/key_call.c: Likewise.
4341         * sunrpc/key_prot.c: Likewise.
4342         * sunrpc/netname.c: Likewise.
4343         * sunrpc/pm_getmaps.c: Likewise.
4344         * sunrpc/pm_getport.c: Likewise.
4345         * sunrpc/pmap_clnt.c: Likewise.
4346         * sunrpc/pmap_prot.c: Likewise.
4347         * sunrpc/pmap_prot2.c: Likewise.
4348         * sunrpc/pmap_rmt.c: Likewise.
4349         * sunrpc/publickey.c: Likewise.
4350         * sunrpc/rpc_cmsg.c: Likewise.
4351         * sunrpc/rpc_common.c: Likewise.
4352         * sunrpc/rpc_dtable.c: Likewise.
4353         * sunrpc/rpc_prot.c: Likewise.
4354         * sunrpc/rpc_thread.c: Likewise.
4355         * sunrpc/rtime.c: Likewise.
4356         * sunrpc/svc.c: Likewise.
4357         * sunrpc/svc_auth.c: Likewise.
4358         * sunrpc/svc_raw.c: Likewise.
4359         * sunrpc/svc_run.c: Likewise.
4360         * sunrpc/svc_tcp.c: Likewise.
4361         * sunrpc/svc_udp.c: Likewise.
4362         * sunrpc/svc_unix.c: Likewise.
4363         * sunrpc/svcauth_des.c: Likewise.
4364         * sunrpc/xcrypt.c: Likewise.
4365         * sunrpc/xdr.c: Likewise.
4366         * sunrpc/xdr_array.c: Likewise.
4367         * sunrpc/xdr_float.c: Likewise.
4368         * sunrpc/xdr_intXX_t.c: Likewise.
4369         * sunrpc/xdr_mem.c: Likewise.
4370         * sunrpc/xdr_rec.c: Likewise.
4371         * sunrpc/xdr_ref.c: Likewise.
4372         * sunrpc/xdr_sizeof.c: Likewise.
4373         * sunrpc/xdr_stdio.c: Likewise.
4374
4375 2012-05-10  Roland McGrath  <roland@hack.frob.com>
4376
4377         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
4378         change.  Update copyright years.
4379
4380 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
4381
4382         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
4383
4384 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
4385             Joseph Myers  <joseph@codesourcery.com>
4386             Paul Pluzhnikov  <ppluzhnikov@google.com>
4387
4388         [BZ #14012]
4389         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
4390         requiring rpcgen.
4391         [cross-compiling] (extra-libs): Likewise.
4392         [cross-compiling] (extra-libs-others): Likewise.
4393         [cross-compiling] (librpcsvc-routines): Likewise.
4394         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
4395         [cross-compiling] (omit-deps): Likewise.
4396         (sunrpc-CPPFLAGS): New variable.
4397         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
4398         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
4399         (cross-rpcgen-objs): New variable.
4400         (extra-objs): Append $(cross-rpcgen-objs).
4401         ($(cross-rpcgen-objs)): New rule.
4402         ($(objpfx)cross-rpcgen): Likewise.
4403         (rpcgen-cmd): Define to use $(built-program-file).  Expand
4404         comment.
4405         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
4406         ($(objpfx)x%.stmp): Likewise.
4407         * sunrpc/proto.h [IS_IN_build] (_): Define.
4408         [IS_IN_build] (_libc_intl_domainname): Likewise.
4409
4410 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4411
4412         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
4413         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
4414         and R_X86_64_TPOFF64.
4415
4416 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
4417
4418         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
4419         sysdeps/unix/sysv/syscalls.list.
4420         (stime): Likewise.
4421         (utime): Likewise.
4422         * sysdeps/unix/sysv/syscalls.list: Remove file.
4423
4424 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4425
4426         [BZ #3440]
4427         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
4428         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
4429         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
4430         (__LC_IDENTIFICATION): Make these macros useful in #if
4431         expressions, as required by C99.
4432
4433 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
4434
4435         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
4436         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
4437         after this.
4438
4439 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
4440
4441         * stdlib/longlong.h: Updated from GCC.
4442
4443 2012-05-09  Andreas Jaeger  <aj@suse.de>
4444
4445         * nscd/nscd.c (run_modes): Make named enum, reorder so that
4446         default is first entry.
4447         (run_mode): Set type.
4448         (main): Remove informal message about syslog.
4449         (options): Fix typo.
4450
4451         [BZ #14053]
4452         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
4453         to asm.
4454         (lrint): Likewise.
4455         (llrintf): Likewise.
4456         (llrint): Likewise.
4457         (rint): Likewise.
4458         (rintf): Likewise.
4459         (nearbyint): Likewise.
4460         (nearbyintf): Likewise.
4461
4462 2012-05-09  Andreas Jaeger  <aj@suse.de>
4463             Pedro Alves  <palves@redhat.com>
4464
4465         * nscd/nscd.c (run_mode): Use enum.
4466         (main): Cleanup coding style issue.
4467
4468 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
4469             Andreas Jaeger  <aj@suse.de>
4470
4471         * nscd/nscd.c (go_background): Replaced with...
4472         (run_mode): ... this.
4473         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
4474         (options): Add -F --foreground.
4475         (main): Implement it.
4476         (parse_opt): Parse it.
4477
4478 2012-05-09  Andreas Jaeger  <aj@suse.de>
4479
4480         [BZ #14083]
4481         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
4482         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
4483         -Wconversion warning.
4484         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
4485         Likewise.
4486
4487 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
4488
4489         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
4490         == 0.
4491         (LC_ALL): Use macro-int-constant.
4492         (LC_COLLATE): Likewise.
4493         (LC_CTYPE): Likewise.
4494         (LC_MESSAGES): Likewise.
4495         (LC_MONETARY): Likewise.
4496         (LC_NUMERIC): Likewise.
4497         (LC_TIME): Likewise.
4498         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
4499         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
4500         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4501         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
4502         Specify type.
4503         [C99-based standards] (float_t): Expect type.
4504         [C99-based standards] (double_t): Expect type.
4505         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
4506         type.
4507         [C99-based standards] (HUGE_VALL): Likewise.
4508         [C99-based standards] (INFINITY): Likewise.
4509         [C99-based standards] (NAN): Likewise.
4510         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
4511         [C99-based standards] (FP_NAN): Likewise.
4512         [C99-based standards] (FP_NORMAL): Likewise.
4513         [C99-based standards] (FP_SUBNORMAL): Likewise.
4514         [C99-based standards] (FP_ZERO): Likewise.
4515         [C99-based standards] (FP_FAST_FMA): Use
4516         optional-macro-int-constant.  Specify type.  Require == 1.
4517         [C99-based standards] (FP_FAST_FMAF): Likewise.
4518         [C99-based standards] (FP_FAST_FMAL): Likewise.
4519         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
4520         [C99-based standards] (FP_ILOGBNAN): Likewise.
4521         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
4522         Specify type.
4523         [C99-based standards] (MATH_ERREXCEPT): Likewise.
4524         [C99-based standards] (math_errhandling): Specify type.
4525         [ISO99 || ISO11] (signgam): Do not allow.
4526         [non-C99-based standards] (copysignf): Do not allow.
4527         [non-C99-based standards] (exp2f): Likewise.
4528         [non-C99-based standards] (log2f): Likewise.
4529         [non-C99-based standards] (modff): Allow.
4530         [non-C99-based standards] (erff): Do not allow.
4531         [non-C99-based standards] (erfcf): Likewise.
4532         [non-C99-based standards] (gammaf): Likewise.
4533         [non-C99-based standards] (hypotf): Likewise.
4534         [non-C99-based standards] (j0f): Likewise.
4535         [non-C99-based standards] (j1f): Likewise.
4536         [non-C99-based standards] (jnf): Likewise.
4537         [non-C99-based standards] (lgammaf): Likewise.
4538         [non-C99-based standards] (tgammaf): Likewise.
4539         [non-C99-based standards] (y0f): Likewise.
4540         [non-C99-based standards] (y1f): Likewise.
4541         [non-C99-based standards] (ynf): Likewise.
4542         [non-C99-based standards] (isnanf): Likewise.
4543         [non-C99-based standards] (acoshf): Likewise.
4544         [non-C99-based standards] (asinhf): Likewise.
4545         [non-C99-based standards] (atanhf): Likewise.
4546         [non-C99-based standards] (cbrtf): Likewise.
4547         [non-C99-based standards] (expm1f): Likewise.
4548         [non-C99-based standards] (ilogbf): Likewise.
4549         [non-C99-based standards] (log1pf): Likewise.
4550         [non-C99-based standards] (logbf): Likewise.
4551         [non-C99-based standards] (nextafterf): Likewise.
4552         [non-C99-based standards] (remainderf): Likewise.
4553         [non-C99-based standards] (rintf): Likewise.
4554         [non-C99-based standards] (scalbf): Likewise.
4555         [non-C99-based standards] (copysignl): Likewise.
4556         [non-C99-based standards] (exp2l): Likewise.
4557         [non-C99-based standards] (log2l): Likewise.
4558         [non-C99-based standards] (modfl): Allow.
4559         [non-C99-based standards] (erfl): Do not allow.
4560         [non-C99-based standards] (erfcl): Likewise.
4561         [non-C99-based standards] (gammal): Likewise.
4562         [non-C99-based standards] (hypotl): Likewise.
4563         [non-C99-based standards] (j0l): Likewise.
4564         [non-C99-based standards] (j1l): Likewise.
4565         [non-C99-based standards] (jnl): Likewise.
4566         [non-C99-based standards] (lgammal): Likewise.
4567         [non-C99-based standards] (tgammal): Likewise.
4568         [non-C99-based standards] (y0l): Likewise.
4569         [non-C99-based standards] (y1l): Likewise.
4570         [non-C99-based standards] (ynl): Likewise.
4571         [non-C99-based standards] (isnanl): Likewise.
4572         [non-C99-based standards] (acoshl): Likewise.
4573         [non-C99-based standards] (asinhl): Likewise.
4574         [non-C99-based standards] (atanhl): Likewise.
4575         [non-C99-based standards] (cbrtl): Likewise.
4576         [non-C99-based standards] (expm1l): Likewise.
4577         [non-C99-based standards] (ilogbl): Likewise.
4578         [non-C99-based standards] (log1pl): Likewise.
4579         [non-C99-based standards] (logbl): Likewise.
4580         [non-C99-based standards] (nextafterl): Likewise.
4581         [non-C99-based standards] (remainderl): Likewise.
4582         [non-C99-based standards] (rintl): Likewise.
4583         [non-C99-based standards] (scalbl): Likewise.
4584         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4585         [non-C99-based standards] (FP_*): Do not allow.
4586         [C99-based standards] (FP_*): Change to
4587         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
4588         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4589         allow.
4590         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
4591         (SIG_ERR): Likewise.
4592         [X/Open-based standards] (SIG_HOLD): Likewise.
4593         (SIG_IGN): Likewise.
4594         (SIGABRT): Use macro-int-constant.  Specify type.  Require
4595         positive value.
4596         (SIGFPE): Likewise.
4597         (SIGILL): Likewise.
4598         (SIGINT): Likewise.
4599         (SIGSEGV): Likewise.
4600         (SIGTER): Likewise.
4601         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
4602         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
4603         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
4604         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
4605         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
4606         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
4607         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
4608         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
4609         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
4610         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
4611         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
4612         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
4613         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
4614         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
4615         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
4616         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
4617         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
4618         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
4619         [X/Open-based standards] (SIGTRAP): Likewise.
4620         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
4621         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
4622         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
4623         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
4624         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4625         allow.
4626
4627 2012-05-08  Ian Wienand  <ianw@vmware.com>
4628
4629         [BZ #14080]
4630         * time/tzset.c (__tzset_parse_tz): Update default rules for
4631         daylight time changes in the Energy Policy Act of 2005.
4632
4633 2012-05-09  Andreas Jaeger  <aj@suse.de>
4634
4635         [BZ #13983]
4636         * elf/ldconfig.c (parse_conf): Change string to make clear that
4637         ldconfig only issued a warning if ld.so.conf does not exist.
4638
4639 2012-05-08  David S. Miller  <davem@davemloft.net>
4640
4641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
4642         movxtod instead of popping the value on the stack.
4643
4644         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4645
4646 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
4647
4648         * config.h.in: Add HAVE_ARM_PCS_VFP.
4649
4650 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
4651
4652         [BZ #13979]
4653         * include/features.h: Warn if user requests __FORTIFY_SOURCE
4654         checking but the checks are disabled for any reason.
4655
4656 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
4657
4658         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
4659         and ELF64_R_TYPE with ELFW(R_TYPE).
4660
4661 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
4662
4663         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
4664         (ulimit): Likewise.
4665
4666         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
4667         (settimeofday): Likewise.
4668
4669 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
4670
4671         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
4672         a struct th_u2 inside the union, and move tu_block/tu_code into
4673         a new th_u3 union of tu_block/tu_code inside of that.  Move
4674         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
4675         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
4676         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
4677         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
4678         (th_stuff): Change to th_u1.tu_stuff.
4679         (th_data): Define.
4680         (th_msg): Change to th_u1.th_u2.tu_data.
4681
4682 2012-05-07  David S. Miller  <davem@davemloft.net>
4683
4684         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4685
4686         [BZ #14074]
4687         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
4688         (SETUP_PIC_REG): Use it.
4689         (SETUP_PIC_REG_LEAF): Use it.
4690
4691 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
4692
4693         [BZ #13885]
4694         [BZ #13923]
4695         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4696         USE_AS_EXPM1L.
4697         (EXPL_FINITE): Likewise.
4698         (FLDLOG): Likewise.
4699         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
4700         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
4701         e_expl.S.
4702         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4703         USE_AS_EXPM1L.
4704         (EXPL_FINITE): Likewise.
4705         (FLDLOG): Likewise.
4706         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
4707         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
4708         e_expl.S.
4709         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
4710         test of -max_value argument for long double.
4711         * sysdeps/i386/fpu/libm-test-ulps: Update.
4712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4713
4714 2012-05-06  David S. Miller  <davem@davemloft.net>
4715
4716         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
4717         quad soft-float symbols whose references which are compiler
4718         generated.
4719         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
4720
4721 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
4722
4723         [BZ #13884]
4724         [BZ #13914]
4725         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4726         USE_AS_EXP10L.
4727         (EXPL_FINITE): Likewise.
4728         (FLDLOG): Likewise.
4729         (c0): Likewise.
4730         (c1): Likewise.
4731         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
4732         Adjust comments for base varying.
4733         (__expl_finite): Change alias to EXPL_FINITE.
4734         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
4735         e_expl.S.
4736         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
4737         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4738         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
4739         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
4740         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4741         USE_AS_EXP10L.
4742         (EXPL_FINITE): Likewise.
4743         (FLDLOG): Likewise.
4744         (c0): Likewise.
4745         (c1): Likewise.
4746         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
4747         Adjust comments for base varying.
4748         (__expl_finite): Change alias to EXPL_FINITE.
4749         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
4750         tests for bugs.
4751         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4752
4753         [BZ #14064]
4754         * math/libm-test.inc (check_float_internal): Correct ulp
4755         calculation for subnormal expected results.
4756
4757 2012-05-06  Andreas Jaeger  <aj@suse.de>
4758
4759         * Makeconfig (+math-flags): New, set to -frounding-math.
4760         (+cflags): Add +math-flags so that all of glibc gets compiled with
4761         it.
4762
4763         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
4764
4765 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
4766
4767         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
4768         Disable one test.
4769
4770         [BZ #13787]
4771         [BZ #13922]
4772         [BZ #14036]
4773         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
4774         (__ieee754_expl): Allow for and saturate large arguments.
4775         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
4776         (u_threshold): Likewise.
4777         (__exp): Call __ieee754_exp before checking for overflow and
4778         underflow.
4779         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
4780         (u_threshold): Likewise.
4781         (__expf): Call __ieee754_expf before checking for overflow and
4782         underflow.
4783         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
4784         (u_threshold): Likewise.
4785         (__expl): Call __ieee754_expl before checking for overflow and
4786         underflow.
4787         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
4788         (__ieee754_expl): Allow for and saturate large arguments.
4789         * math/libm-test.inc (exp_test): Add another test.  Do not allow
4790         missing overflow exception on overflow.
4791         (expm1_test): Do not allow missing overflow exception on overflow.
4792
4793         * sysdeps/i386/fpu/e_expl.c: Move to ...
4794         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
4795         rather than using inline asm.
4796         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
4797         * sysdeps/x86_64/fpu/e_expl.S: Copy from
4798         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
4799
4800         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
4801         (nice): Likewise.
4802         (poll): Likewise.
4803         (signal): Likewise.
4804         (time): Likewise.
4805         (times): Likewise.
4806
4807 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
4808
4809         * sysdeps/unix/syscalls.list (adjtime): Add entry from
4810         sysdeps/unix/common/syscalls.list.
4811         (fchmod): Likewise.
4812         (fchown): Likewise.
4813         (ftruncate): Likewise.
4814         (getrusage): Likewise.
4815         (gettimeofday): Likewise.
4816         (setpgid): Likewise.
4817         (setregid): Likewise.
4818         (setreuid): Likewise.
4819         (sigaction): Likewise.
4820         (truncate): Likewise.
4821         (vhangup): Likewise.
4822         * sysdeps/unix/common/syscalls.list: Remove file.
4823         * sysdeps/unix/bsd/Implies: Don't include unix/common.
4824         * sysdeps/unix/sysv/linux/Implies: Likewise.
4825
4826 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4827
4828         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
4829         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
4830         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
4831         Moved to ...
4832         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
4833         Here.
4834         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
4835         to ...
4836         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
4837         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
4838         to ...
4839         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
4840         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
4841         to ...
4842         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
4843         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
4844         to ...
4845         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
4846         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
4847         to ...
4848         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
4849         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
4850         to ...
4851         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
4852         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
4853         to ...
4854         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
4855         Here.
4856         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
4857         to ...
4858         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
4859         Here.
4860         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
4861         to ...
4862         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
4863         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
4864         Moved to ...
4865         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
4866         Here.
4867         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
4868         to ...
4869         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
4870
4871 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
4872
4873         * sysdeps/unix/common/bits/dirent.h: Remove file.
4874         * sysdeps/unix/common/bits/fcntl.h: Likewise.
4875
4876         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
4877         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
4878         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
4879         * sysdeps/unix/bsd/isatty.c: Likewise.
4880         * sysdeps/unix/bsd/tcdrain.c: Likewise.
4881         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
4882         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
4883
4884 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4885
4886         [BZ #13563]
4887         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
4888         long double comparison inaccuracies.
4889         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
4890         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4891
4892 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
4893
4894         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
4895         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
4896
4897 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
4898
4899         [BZ #14049]
4900         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
4901         nonzero digits before rounding a hex value.
4902         * stdlib/tst-strtod.c (tests): Add another test.
4903
4904 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4905
4906         * sysdeps/s390/fpu/libm-test-ulps: Update.
4907
4908 2012-05-03  Andreas Jaeger  <aj@suse.de>
4909
4910         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
4911         does not get optimized out.
4912         (malloc_opt_barrier): New.
4913
4914 2012-05-03  Andreas Jaeger  <aj@suse.de>
4915             Roland McGrath  <roland@hack.frob.com>
4916
4917         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
4918         intermediate file deletion.
4919         (generated): Add .symlist files.
4920
4921 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
4922
4923         [BZ #13775]
4924         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
4925         Redirect under this condition.
4926         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
4927         [__USE_GNU] (__dprintf_chk): Not under this condition.
4928         [__USE_GNU] (__vdprintf_chk): Likewise.
4929         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
4930         under this condition.
4931         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
4932         [__USE_XOPEN2K8] (dprintf): Define under this condition.
4933         [__USE_XOPEN2K8] (vdprintf): Likewise.
4934         [__USE_GNU] (__dprintf_chk): Not under this condition.
4935         [__USE_GNU] (__vdprintf_chk): Likewise.
4936         [__USE_GNU] (dprintf): Likewise.
4937         [__USE_GNU] (vdprintf): Likewise.
4938
4939 2012-05-03  Roland McGrath  <roland@hack.frob.com>
4940
4941         * elf/Makefile (common-generated): Set this instead of generated for
4942         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
4943         $(all-built-dso)-derived lists.
4944
4945 2012-05-03  Andreas Jaeger  <aj@suse.de>
4946
4947         * sysdeps/i386/fpu/libm-test-ulps: Update.
4948
4949         * FAQ: Removed.
4950         * FAQ.in: Likewise.
4951         * scripts/gen-FAQ.pl: Likewise.
4952         * manual/install.texi (Installation): Point to online location of
4953         FAQ.
4954         * Makefile (files-for-dist): Remove FAQ.
4955         (FAQ): Remove.
4956
4957 2012-05-02  Allan McRae  <allan@archlinux.org>
4958
4959         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
4960         (LDFLAGS-reldepmod5.so): Likewise.
4961         (LDFLAGS-reldep6mod1.so): Likewise.
4962         (LDFLAGS-reldep6mod4.so): Likewise.
4963         (LDFLAGS-reldep8mod3.so): Likewise.
4964         (LDFLAGS-unload4mod1.so): Likewise.
4965         (LDFLAGS-unload4mod2.so): Likewise.
4966         (LDFLAGS-tst-initorder): Likewise.
4967         (LDFLAGS-tst-initordera2.so): Likewise.
4968         (LDFLAGS-tst-initordera3.so): Likewise.
4969         (LDFLAGS-tst-initordera4.so): Likewise.
4970         (LDFLAGS-tst-initorderb2.so): Likewise.
4971         (LDFLAGS-noload): Likewise.
4972         (LDFLAGS-next): Likewise.
4973         (LDFLAGS-order2mod1.so): Likewise.
4974         (LDFLAGS-order2mod2.so): Likewise.
4975         (LDFLAGS-tst-initorder2): Likewise.
4976         (LDFLAGS-tst-initorder2a.so): Likewise.
4977         (LDFLAGS-tst-initorder2b.so): Likewise.
4978         (LDFLAGS-tst-initorder2c.so): Likewise.
4979         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
4980
4981 2012-05-02  David S. Miller  <davem@davemloft.net>
4982
4983         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4984
4985 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
4986
4987         [BZ #14055]
4988         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
4989
4990 2012-05-02  Andreas Jaeger  <aj@suse.de>
4991
4992         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
4993         since we manipulate rounding mode.
4994         (CPPFLAGS-test-idouble.c): Likewise.
4995         (CPPFLAGS-test-ifloat.c): Likewise.
4996         (CFLAGS-test-ldouble.c): Likewise.
4997         (CFLAGS-test-double.c): Likewise.
4998         (CFLAGS-test-float.c): Likewise.
4999         (CFLAGS-test-misc.c): Likewise.
5000         (CFLAGS-test-test-fenv.c): Likewise.
5001
5002 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5003
5004         [BZ #2550]
5005         [BZ #2570]
5006         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
5007         comparisons to determine direction to adjust input.
5008
5009 2012-05-01  Roland McGrath  <roland@hack.frob.com>
5010
5011         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
5012         output to the target.
5013
5014         * scripts/localplt.awk: New file.
5015         * elf/Makefile ($(objpfx)check-localplt): Target removed.
5016         (check-localplt-CFLAGS): Variable removed.
5017         ($(all-built-dso:=.jmprel)): New static pattern rule.
5018         (generated): Add those targets.
5019         (localplt-built-dso): New variable.
5020         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
5021
5022         * elf/check-localplt.c: File removed.
5023
5024         * scripts/check-execstack.awk: New file.
5025         * elf/Makefile ($(objpfx)check-execstack): Target removed.
5026         (check-execstack-CFLAGS): Variable removed.
5027         ($(objpfx)check-execstack.h): Target removed.
5028         ($(objpfx)execstack-default): New target.
5029         (generated): Add that instead of check-execstack.h.
5030         ($(all-built-dso:=.phdr)): New static pattern rule.
5031         (generated): Add those targets.
5032         * elf/check-execstack.c: File removed.
5033
5034         * scripts/check-textrel.awk: New file.
5035         * elf/Makefile ($(objpfx)check-textrel): Target removed.
5036         (check-textrel-CFLAGS): Variable removed.
5037         (all-built-dso): Use := to define.o
5038         ($(all-built-dso:=.dyn)): New static pattern rule.
5039         (generated): Add those targets.
5040         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
5041         * config.make.in (READELF): New substituted variable.
5042         * elf/check-textrel.c: File removed.
5043
5044 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
5045
5046         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5047         allow.
5048         * conform/data/ctype.h-data [C99-based standards] (isblank):
5049         Expect function.
5050         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
5051         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
5052         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5053         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
5054         Specify type.  Require positive value.
5055         (EILSEQ): Likewise.
5056         (ERANGE): Likewise.
5057         [ISO || POSIX] (EILSEQ): Do not expect.
5058         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
5059         Specify type.  Require positive value.
5060         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
5061         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
5062         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
5063         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
5064         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
5065         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
5066         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
5067         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
5068         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
5069         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
5070         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
5071         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
5072         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
5073         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
5074         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
5075         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
5076         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
5077         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
5078         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
5079         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
5080         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
5081         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
5082         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
5083         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
5084         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
5085         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
5086         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
5087         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
5088         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
5089         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
5090         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
5091         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
5092         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
5093         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
5094         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
5095         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
5096         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
5097         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
5098         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
5099         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
5100         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
5101         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
5102         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
5103         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
5104         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
5105         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
5106         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
5107         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
5108         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
5109         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
5110         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
5111         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
5112         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
5113         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
5114         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
5115         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
5116         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
5117         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
5118         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
5119         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
5120         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
5121         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
5122         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
5123         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
5124         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
5125         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
5126         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
5127         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
5128         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
5129         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
5130         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
5131         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
5132         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
5133         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
5134         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
5135         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
5136         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
5137         Require >= 2.
5138         (FLT_ROUNDS): Expect as macro, not constant.
5139         (FLT_MANT_DIG): Use macro-int-constant.
5140         (DBL_MANT_DIG): Likewise.
5141         (LDBL_MANT_DIG): Likewise.
5142         (FLT_DIG): Likewise.
5143         (DBL_DIG): Likewise.
5144         (LDBL_DIG): Likewise.
5145         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
5146         (DBL_MIN_EXP): Likewise.
5147         (LDBL_MIN_EXP): Likewise.
5148         (FLT_MAX_EXP): Use macro-int-constant.
5149         (DBL_MAX_EXP): Likewise.
5150         (LDBL_MAX_EXP): Likewise.
5151         (FLT_MAX_10_EXP): Likewise.
5152         (DBL_MAX_10_EXP): Likewise.
5153         (LDBL_MAX_10_EXP): Likewise.
5154         (FLT_MAX): Use macro-constant.
5155         (DBL_MAX): Likewise.
5156         (LDBL_MAX): Likewise.
5157         (FLT_EPSILON): Use macro-constant.  Give upper bound.
5158         (DBL_EPSILON): Likewise.
5159         (LDBL_EPSILON): Likewise.
5160         (FLT_MIN): Likewise.
5161         (DBL_MIN): Likewise.
5162         (LDBL_MIN): Likewise.
5163         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
5164         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
5165         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
5166         [ISO11] (FLT_HAS_SUBNORM): Likewise.
5167         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
5168         [ISO11] (DBL_DECIMAL_DIG): Likewise.
5169         [ISO11] (FLT_DECIMAL_DIG): Likewise.
5170         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
5171         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
5172         [ISO11] (FLT_TRUE_MIN): Likewise.
5173         [ISO11] (LDBL_TRUE_MIN): Likewise.
5174         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5175         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
5176         (SCHAR_MIN): Use macro-int-constant.  Specify type.
5177         (SCHAR_MAX): Likewise.
5178         (UCHAR_MAX): Likewise.
5179         (CHAR_MIN): Likewise.
5180         (CHAR_MAX): Likewise.
5181         (MB_LEN_MAX): Use macro-int-constant.
5182         (SHRT_MIN): Use macro-int-constant.  Specify type.
5183         (SHRT_MAX): Likewise.
5184         (USHRT_MAX): Likewise.
5185         (INT_MAX): Likewise.
5186         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
5187         bound negative.
5188         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5189         bound with "U".
5190         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5191         bound with "L".
5192         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
5193         bound negative.  Suffix upper bound with "L".
5194         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5195         bound with "UL".
5196         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
5197         Specify type.
5198         [C99-based standards] (LLONG_MAX): Likewise.
5199         [C99-based standards] (ULLONG_MAX): Likewise.
5200         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
5201         == 0.
5202         [ISO11] (max_align_t): Require type.
5203         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5204
5205         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
5206         from $CFLAGS, without defining away __attribute__ calls.
5207         (checknamespace): Use $CFLAGS_namespace.
5208
5209         * conform/conformtest.pl (@keywords): Only include C99 keywords
5210         for standards based on C99 or C11.
5211
5212         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
5213         Disable tests.
5214         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
5215         UNIX98]: Likewise.
5216
5217         * conform/conformtest.pl: Handle "macro-int-constant" and test for
5218         usability of symbols in #if.
5219
5220         * conform/conformtest.pl: If macro or constant types start
5221         "promoted:", expect the symbol to be of the following type
5222         promoted by the integer promotions.
5223
5224         * conform/conformtest.pl: Parse all "constant" and "macro" lines
5225         in one place.  Also handle "macro-constant".
5226
5227         * conform/conformtest.pl: Only accept expected macro values with
5228         "==".  Parse all "macro" lines in one place.
5229         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
5230
5231         * conform/conformtest.pl: Handle braced types on "constant" lines
5232         instead of handling "typed-constant".
5233         * conform/data/signal.h-data: Use "constant" instead of
5234         "typed-constant".
5235
5236         * conform/conformtest.pl: Handle "optional-" at start of lines in
5237         one place rather than duplicating several cases.  Handle each
5238         format of "macro" line with initial "optional-".
5239
5240         * conform/conformtest.pl: Only accept expected constant or
5241         optional-constant values with "==".  Parse all "constant" lines in
5242         one place.  Parse all "optional-constant" lines in one place.
5243         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
5244         * conform/data/fmtmsg.h-data: Likewise.
5245         * conform/data/netinet/in.h-data: Likewise.
5246         * conform/data/tar.h-data: Likewise.
5247         * conform/data/limits.h-data: Use "==" form on "constant" and
5248         "optional-constant" lines.
5249
5250         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
5251         Use -std=c99 for XOPEN2K.
5252         (@knownproblems): Remove.
5253         (newtoken): Don't check %isknown.
5254
5255         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
5256         Do not expect macro.
5257         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
5258         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
5259         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
5260         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
5261         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
5262         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
5263         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
5264         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
5265         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
5266         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
5267         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
5268         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
5269         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
5270         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
5271         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
5272         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
5273         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
5274         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
5275         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
5276         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
5277         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
5278         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
5279         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
5280         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
5281         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
5282         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
5283         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
5284         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
5285         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
5286         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
5287         [XPG3] (acosh): Likewise.
5288         [XPG3] (asinh): Likewise.
5289         [XPG3] (atanh): Likewise.
5290         [XPG3] (cbrt): Likewise.
5291         [XPG3] (expm1): Likewise.
5292         [XPG3] (ilogb): Likewise.
5293         [XPG3] (log1p): Likewise.
5294         [XPG3] (logb): Likewise.
5295         [XPG3] (nextafter): Likewise.
5296         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
5297         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
5298         [XPG3] (remainder): Likewise.
5299         [XPG3] (rint): Likewise.
5300         [XPG3 || XPG4 || UNIX98] (round): Likewise.
5301         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
5302         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
5303         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
5304         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
5305         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
5306         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
5307         [UNIX98 || XOPEN2K] (scalb): Expect.
5308         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
5309         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
5310         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
5311         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
5312         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
5313         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
5314         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
5315         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
5316         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
5317         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
5318         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
5319         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
5320         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
5321         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
5322         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
5323         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
5324         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
5325         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
5326         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
5327         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
5328         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
5329         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
5330         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
5331         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
5332         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
5333         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
5334         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
5335         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
5336         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
5337         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
5338         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
5339         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
5340         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
5341         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
5342         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
5343         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
5344         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
5345         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
5346         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
5347         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
5348         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
5349         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
5350         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
5351         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
5352         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
5353         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
5354         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
5355         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
5356         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
5357         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
5358         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
5359         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
5360         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
5361         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
5362         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
5363         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
5364         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
5365         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
5366         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
5367         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
5368         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
5369         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
5370         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
5371         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
5372         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
5373         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
5374         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
5375         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
5376         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
5377         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
5378         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
5379         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
5380         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
5381         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
5382         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
5383         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
5384         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
5385         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
5386         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
5387         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
5388         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
5389         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
5390         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
5391         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
5392         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
5393         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
5394         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
5395         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
5396         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
5397         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
5398         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
5399         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
5400         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
5401         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
5402         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
5403         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
5404         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
5405         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
5406         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
5407         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
5408         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
5409         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
5410         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
5411         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
5412         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
5413         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
5414         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
5415         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
5416         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
5417         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
5418         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
5419         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
5420         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
5421         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
5422         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
5423         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
5424         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
5425         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
5426         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
5427         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
5428         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
5429         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
5430         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
5431         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
5432         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
5433         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
5434         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
5435         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
5436         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
5437         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
5438         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
5439         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
5440         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
5441         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
5442         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
5443         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
5444         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
5445
5446         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
5447         _XOPEN_SOURCE_EXTENDED for XPG4.
5448
5449         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
5450
5451         * Makeconfig (localtime): Remove variable.
5452         (inst_localtime-file): Likewise.
5453
5454 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
5455
5456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
5457         Update.
5458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5459         Update.
5460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
5461         Update.
5462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
5463         Update.
5464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
5465         Update.
5466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
5467         Update.
5468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5469         Update.
5470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
5471         Update.
5472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
5473         Update.
5474
5475 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
5476
5477         [BZ #2550]
5478         [BZ #2570]
5479         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
5480         comparisons to determine direction to adjust input.
5481         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
5482         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
5483         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
5484         Likewise.
5485         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
5486         Likewise.
5487         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5488         Likewise.
5489         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
5490         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
5491         Likewise.
5492         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
5493         Likewise.
5494         * math/libm-test.inc (nexttoward_test): Add more tests.
5495
5496 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
5497
5498         [BZ #14040]
5499         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
5500         in version GLIBC_2.1, not GLIBC_2.0.
5501         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
5502         Likewise.
5503
5504 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
5505
5506         [BZ #13942]
5507         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
5508         (1 - x) * (1 + x).
5509         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
5510         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
5511         * math/libm-test.inc (acos_test): Add more tests.
5512         (asin_test): Likewise.
5513         * sysdeps/i386/fpu/libm-test-ulps: Update.
5514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5515
5516         [BZ #14034]
5517         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
5518         of square root.
5519         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
5520         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
5521         * math/libm-test.inc (acos_test_tonearest): New function.
5522         (acos_test_towardzero): Likewise.
5523         (acos_test_downward): Likewise.
5524         (acos_test_upward): Likewise.
5525         (asin_test_tonearest): Likewise.
5526         (asin_test_towardzero): Likewise.
5527         (asin_test_downward): Likewise.
5528         (asin_test_upward): Likewise.
5529         (main): Call the new functions.
5530         * sysdeps/i386/fpu/libm-test-ulps: Update.
5531         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5532
5533         [BZ #13884]
5534         [BZ #13924]
5535         * math/e_exp10.c: Include <float.h>.
5536         (__ieee754_exp10): Handle underflow here rather than multiplying
5537         large negative argument by M_LN10.
5538         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
5539         of __ieee754_expf.
5540         * math/e_exp10l.c: Include <float.h>.
5541         (__ieee754_exp10l): Handle underflow here rather than multiplying
5542         large negative argument by M_LN10l.
5543         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
5544         spurious overflow exception on underflow.
5545
5546 2012-04-29  Marek Polacek  <polacek@redhat.com>
5547
5548         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
5549         (__fortify_function): New macro.
5550         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
5551         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
5552         __extern_always_inline.
5553         * libio/bits/stdio2.h: Likewise.
5554         * libio/bits/stdio.h: Likewise.
5555         * string/string.h: Likewise.
5556         * string/bits/string3.h: Likewise.
5557         * include/stdio.h: Likewise.
5558         * stdlib/bits/stdlib.h: Likewise.
5559         * stdlib/stdlib.h: Likewise.
5560         * rt/bits/mqueue2.h: Likewise.
5561         * rt/mqueue.h: Likewise.
5562         * posix/bits/unistd.h: Likewise.
5563         * posix/unistd.h: Likewise.
5564         * io/bits/poll2.h: Likewise.
5565         * io/bits/fcntl2.h: Likewise.
5566         * io/fcntl.h: Likewise.
5567         * io/sys/poll.h: Likewise.
5568         * misc/bits/syslog.h: Likewise.
5569         * misc/bits/syslog-ldbl.h: Likewise.
5570         * misc/sys/syslog.h: Likewise.
5571         * socket/bits/socket2.h: Likewise.
5572         * socket/sys/socket.h: Likewise.
5573         * debug/tst-chk1.c: Likewise.
5574         * wcsmbs/bits/wchar2.h: Likewise.
5575         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5576         * wcsmbs/wchar.h: Likewise.
5577
5578 2012-04-29  Andreas Jaeger  <aj@suse.de>
5579
5580         * Makerules (tests): Remove enable-check-abi protection.
5581         (check-abi-warn): Remove.
5582         (check-abi-%): Remove check-abi-warn usage.
5583
5584         * configure.in: Remove check-abi configure option.
5585         * configure: Regenerated.
5586         * config.make.in (enable-check-abi): Remove.
5587
5588 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
5589
5590         [BZ #14033]
5591         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
5592         double functions to double *_finite functions.
5593
5594         [BZ #13941]
5595         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
5596         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
5597         LDBL_MIN_EXP.
5598         * stdio-common/Makefile (tests): Add tst-sprintf3.
5599         * stdio-common/tst-sprintf3.c: New file.
5600
5601         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
5602         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
5603
5604 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
5605
5606         * conform/conformtest.pl: Remove duplicate typed-constant
5607         handling.
5608
5609 2012-04-28  David S. Miller  <davem@davemloft.net>
5610
5611         * Makerules (%.abilist): Add vpath on sysdep_dirs.
5612         (check-abi-%): Remove AWK script prerequisite and explicit
5613         abilist directory.
5614         (check-abi): Rewrite to just diff the symlist with the abilist.
5615         (config-tls, config-abi-config): Delete, no longer used.
5616         (update-abi-%): Remove AWK script and explicit abilist directory.
5617         (update-abi): Rewrite to simply compare and conditionally copy the
5618         symlist and the sysdep abilist file.  Remove update-abi-config
5619         checks.
5620         * abilist/ld.abilist: Remove.
5621         * abilist/libBrokenLocale.abilist: Remove.
5622         * abilist/libanl.abilist: Remove.
5623         * abilist/libcrypt.abilist: Remove.
5624         * abilist/libdl.abilist: Remove.
5625         * abilist/librt.abilist: Remove.
5626         * abilist/libthread_db.abilist: Remove.
5627         * abilist/libutil.abilist: Remove.
5628         * scripts/extract-abilist.awk: Remove.
5629         * scripts/merge-abilist.awk: Remove.
5630         * sysdeps/generic/libcidn.abilist: New file.
5631         * sysdeps/generic/libnss_compat.abilist: New file.
5632         * sysdeps/generic/libnss_db.abilist: New file.
5633         * sysdeps/generic/libnss_dns.abilist: New file.
5634         * sysdeps/generic/libnss_files.abilist: New file.
5635         * sysdeps/generic/libnss_hesiod.abilist: New file.
5636         * sysdeps/generic/libnss_nis.abilist: New file.
5637         * sysdeps/generic/libnss_nisplus.abilist: New file.
5638         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
5639         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
5640         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
5641         file.
5642         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
5643         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
5644         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
5645         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
5646         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
5647         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
5648         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
5649         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
5650         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
5651         file.
5652         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
5653         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
5654         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
5655         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
5656         file.
5657         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
5658         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
5659         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
5660         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
5661         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
5662         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
5663         file.
5664         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
5665         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
5666         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
5667         file.
5668         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
5669         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
5670         New file.
5671         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
5672         New file.
5673         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
5674         New file.
5675         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
5676         New file.
5677         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
5678         New file.
5679         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
5680         New file.
5681         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
5682         New file.
5683         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
5684         New file.
5685         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
5686         New file.
5687         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
5688         New file.
5689         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
5690         New file.
5691         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
5692         New file.
5693         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
5694         New file.
5695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
5696         file.
5697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
5698         New file.
5699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
5700         New file.
5701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
5702         file.
5703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
5704         New file.
5705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
5706         New file.
5707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
5708         file.
5709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
5710         New file.
5711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
5712         New file.
5713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
5714         New file.
5715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
5716         New file.
5717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
5718         New file.
5719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
5720         New file.
5721         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
5722         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
5723         file.
5724         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
5725         New file.
5726         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
5727         file.
5728         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
5729         file.
5730         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
5731         file.
5732         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
5733         file.
5734         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
5735         file.
5736         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5737         New file.
5738         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
5739         file.
5740         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
5741         file.
5742         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
5743         New file.
5744         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
5745         file.
5746         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
5747         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
5748         file.
5749         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
5750         New file.
5751         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
5752         file.
5753         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
5754         file.
5755         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
5756         file.
5757         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
5758         file.
5759         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
5760         file.
5761         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5762         New file.
5763         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
5764         file.
5765         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
5766         file.
5767         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
5768         New file.
5769         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
5770         file.
5771         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5772         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
5773         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
5774         file.
5775         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
5776         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
5777         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
5778         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
5779         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
5780         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
5781         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
5782         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
5783         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
5784         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
5785         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
5786         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
5787         file.
5788         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
5789         New file.
5790         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
5791         file.
5792         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
5793         file.
5794         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
5795         file.
5796         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
5797         file.
5798         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
5799         file.
5800         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
5801         New file.
5802         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
5803         New file.
5804         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
5805         file.
5806         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
5807         New file.
5808         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
5809         file.
5810         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
5811         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
5812         file.
5813         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
5814         New file.
5815         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
5816         file.
5817         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
5818         file.
5819         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
5820         file.
5821         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
5822         file.
5823         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
5824         file.
5825         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
5826         New file.
5827         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
5828         New file.
5829         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
5830         file.
5831         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
5832         New file.
5833         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
5834         file.
5835
5836 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
5837
5838         * conform/conformtest.pl: Fix typo in handling typed-constant from
5839         allow-header.
5840
5841 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
5842
5843         * README: Cut down references to pre-2.6 Linux kernels and
5844         Linuxthreads.  Update lists of configurations in libc and ports
5845         and sort alphabetically.  Say "or newer" with Linux kernel version
5846         requirements.
5847
5848         * config.h.in [IS_IN_build]: Allow compiling without optimization.
5849
5850 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5851
5852         [BZ #887]
5853         * math/libm-test.inc (logb_test_downward): New test to expose
5854         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
5855         rounding mode.
5856
5857 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
5858
5859         [BZ #14027]
5860         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
5861         to be done.
5862         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
5863         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
5864
5865 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
5866
5867         * sysdeps/unix/i386/brk.S: Remove file.
5868         * sysdeps/unix/i386/dl-brk.S: Likewise.
5869         * sysdeps/unix/i386/pipe.S: Likewise.
5870         * sysdeps/unix/i386/sigreturn.S: Likewise.
5871         * sysdeps/unix/i386/syscall.S: Likewise.
5872         * sysdeps/unix/i386/vfork.S: Likewise.
5873         * sysdeps/unix/i386/wait.S: Likewise.
5874
5875         * sysdeps/unix/common/tcsendbrk.c: Move to ...
5876         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
5877
5878         * configure.in (arm*-none*): Do not allow without
5879         --enable-hacker-mode.
5880         (netbsd*): Remove case setting base_os.
5881         (386bsd*): Likewise.
5882         (freebsd*): Likewise.
5883         (bsdi*): Likewise.
5884         (osf*): Likewise.
5885         (sunos*): Likewise.
5886         (ultrix*): Likewise.
5887         (newsos*): Likewise.
5888         (dynix*): Likewise.
5889         (*bsd*): Likewise.
5890         (sysv*): Likewise.
5891         (isc*): Likewise.
5892         (esix*): Likewise.
5893         (sco*): Likewise.
5894         (minix*): Likewise.
5895         (irix4*): Likewise.
5896         (irix6*): Likewise.
5897         (solaris[2-9]*): Likewise.
5898         (none): Likewise.
5899         * configure: Regenerated.
5900
5901 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5902
5903         [BZ #11521]
5904         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
5905         overflow or cancellation in calculating denominator.
5906         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
5907         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
5908         down expression to avoid unexpected rounding in newer GCCs.
5909         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
5910
5911 2012-04-26  David S. Miller  <davem@davemloft.net>
5912
5913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
5914         long-double compat symbols.
5915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
5917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
5918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
5919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
5920         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
5921         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
5922         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
5923         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
5924         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
5925         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
5926         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
5927         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
5928
5929 2012-04-25  David S. Miller  <davem@davemloft.net>
5930
5931         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
5932         HWCAP_* values only after the memory barriers have been defined.
5933         (atomic_full_barrier): Define.
5934         (atomic_read_barrier): Define.
5935         (atomic_write_barrier): Define.
5936
5937 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5938
5939         * shlib-versions: Add libgcc_s version information.
5940         * sysdeps/generic/libgcc_s.h: Remove.
5941         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
5942         libgcc_s.h.
5943         * sysdeps/gnu/unwind-resume.c: Likewise.
5944         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
5945
5946 2012-04-25  David S. Miller  <davem@davemloft.net>
5947
5948         * sysdeps/unix/sparc/brk.S: Delete.
5949         * sysdeps/unix/sparc/dl-brk.S: Delete.
5950         * sysdeps/unix/sparc/pipe.S: Delete.
5951         * sysdeps/unix/sparc/sysdep.S: Delete.
5952         * sysdeps/unix/sparc/sysdep.h: Delete.
5953         * sysdeps/unix/sparc/vfork.S: Delete.
5954         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
5955         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
5956         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
5957         ret_ERRVAL, r0, r1, MOVE): Define.
5958         (JUMPTARGET): Remove.
5959         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
5960         sysdeps/unix/sparc/sysdep.h
5961         (ENTRY, END): Remove.
5962         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5963
5964 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
5965
5966         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
5967         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
5968         -DIS_IN_build.
5969
5970         * timezone/README: Update upstream location and email address for
5971         tzcode and tzdata.
5972         * timezone/zdump.c: Update from tzcode 2012b.
5973         * timezone/zic.c: Likewise.
5974
5975         * configure.in (libc_cv_as_needed): Remove test.
5976         * configure: Regenerated.
5977         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
5978         conditional definition.
5979         [$(have-as-needed) != yes] (no-as-needed): Likewise.
5980         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
5981         * config.make.in (have-as-needed): Remove variable.
5982
5983 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
5984             Paul Pluzhnikov  <ppluzhnikov@google.com>
5985
5986         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
5987         strings correctly.
5988
5989 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
5990
5991         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
5992         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
5993         * sysdeps/sh/strlen.S: Likewise.
5994
5995 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5996
5997         * sysdeps/unix/fork.S: Remove file.
5998         * sysdeps/unix/i386/fork.S: Likewise.
5999         * sysdeps/unix/sparc/fork.S: Likewise.
6000
6001         * sysdeps/unix/system.c: Remove file.
6002         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
6003
6004         * sysdeps/unix/getegid.S: Remove file.
6005         * sysdeps/unix/geteuid.S: Likewise.
6006
6007 2012-04-24  Roland McGrath  <roland@hack.frob.com>
6008
6009         * scripts/check-localplt.awk: New file.
6010         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
6011         of diff.
6012         * scripts/data/localplt-generic.data: Add a comment.
6013
6014         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
6015         NODE when __dir_mkfile failed.
6016         * sysdeps/mach/hurd/symlinkat.c: Likewise.
6017         Reported by Ludovic Courtès <ludo@gnu.org>.
6018
6019 2012-04-24  Andreas Jaeger  <aj@suse.de>
6020
6021         * Makerules (common-clean): Also remove gen-as-const-headers
6022         files.
6023
6024 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6025
6026         * Makerules (native-compile): Do not change working directory for
6027         build.  Use $(OUTPUT_OPTION) in command.
6028         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
6029
6030 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6031
6032         [BZ #13886]
6033         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
6034         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
6035         * math/libm-test.inc (floor_test): Add more tests.
6036         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
6037
6038 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6039
6040         * sysdeps/unix/getdents.c: Remove file.
6041         * sysdeps/unix/sysv/getdents.c: Likewise.
6042         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
6043
6044         * sysdeps/unix/syscalls.list (madvise): Add syscall from
6045         sysdeps/unix/mman/syscalls.list.
6046         (mmap): Likewise.
6047         (mprotect): Likewise.
6048         (msync): Likewise.
6049         (munmap): Likewise.
6050         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
6051         * sysdeps/unix/mman/syscalls.list: Remove.
6052         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
6053
6054         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
6055         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
6056         * configure: Regenerated.
6057         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
6058         $(libgcc_s_suffix).
6059         * config.make.in (libgcc_s_suffix): Remove variable.
6060
6061 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
6062
6063         * sysdeps/unix/sysv/gethostname.c: Move to ...
6064         * sysdeps/posix/gethostname.c: ... here.
6065
6066         * sysdeps/unix/execve.S: Remove file.
6067
6068         * sysdeps/unix/_exit.S: Remove file.
6069
6070 2012-04-23  Andreas Jaeger  <aj@suse.de>
6071
6072         [BZ #13739]
6073         * manual/Makefile: Remove make dist support, there's no
6074         need for a stand-alone documentation tar ball.
6075         (TEXI2DVI): Define always, it's not in Makeconfig.
6076         (dist): Removed.
6077         (tar-it): Removed.
6078         (edition): Removed.
6079         (glibc-doc-$(edition).tar): Removed
6080         (%.Z): Removed.
6081         (%.gz): Removed.
6082         (%.uu): Removed.
6083         (ETAGS): Remove, it's in Makeconfig.
6084         (move-if-change): Remove, it's in Makeconfig.
6085
6086 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6087
6088         [BZ #13970]
6089         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
6090         (strtod, strtof, strtold, strtol, strtoul, strtoq)
6091         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
6092         (strtod_l, strtof_l, strtold_l): Remove __wur.
6093         It is not necessarily an error to ignore strtol's return value.
6094         One can reliably look at the stored endptr to decide whether
6095         the number had valid syntax.
6096
6097 2012-04-21  Andreas Jaeger  <aj@suse.de>
6098
6099         [BZ #13739]
6100         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
6101
6102 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
6103
6104         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
6105         * sysdeps/unix/sysv/Versions: Remove file.
6106
6107 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
6108
6109         [BZ #13927]
6110         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6111
6112 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
6113
6114         [BZ #7064]
6115         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
6116         version from __vm86.
6117
6118 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
6119
6120         * sysdeps/unix/common/lxstat.c: Remove file.
6121         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
6122
6123         * sysdeps/unix/sysv/Makefile: Remove file.
6124
6125         * sysdeps/unix/sysv/direct.h: Remove file.
6126
6127         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
6128         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
6129         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
6130         * sysdeps/unix/sysv/bits/signum.h: Likewise.
6131         * sysdeps/unix/sysv/bits/stat.h: Likewise.
6132         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
6133         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
6134
6135         * sysdeps/unix/sysv/setrlimit.c: Remove file.
6136
6137         * sysdeps/unix/xmknod.c: Remove file.
6138         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
6139
6140         * sysdeps/unix/sysv/settimeofday.c: Remove file.
6141
6142         * sysdeps/unix/sysv/i386/time.S: Remove file.
6143
6144         * sysdeps/unix/fxstat.c: Remove file.
6145         * sysdeps/unix/xstat.c: Likewise.
6146         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
6147
6148         * sysdeps/unix/sysv/sigaction.c: Remove file.
6149
6150         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
6151         (sysdep_headers): Remove variable.
6152         [termio.h not in sysdep_headers] (generated): Likewise.
6153         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
6154         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
6155         * sysdeps/unix/sysv/tcdrain.c: Likewise.
6156         * sysdeps/unix/sysv/tcflow.c: Likewise.
6157         * sysdeps/unix/sysv/tcflush.c: Likewise.
6158         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
6159         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
6160         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
6161         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
6162         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
6163
6164         * sysdeps/unix/siglist.c: Remove file.
6165
6166         * sysdeps/unix/getppid.S: Remove file.
6167
6168         * sysdeps/unix/mkdir.c: Remove file.
6169         * sysdeps/unix/rmdir.c: Likewise.
6170
6171 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
6172
6173         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
6174         ERR_MAX value.
6175         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
6176         errlist-compat value.
6177
6178 2012-04-18  David S. Miller  <davem@davemloft.net>
6179
6180         * sysdeps/generic/memcopy.h (reg_char): Delete.
6181         * debug/strcat_chk.c: Use char, not reg_char.
6182         * debug/strcpy_chk.c: Likewise.
6183         * debug/strncat_chk.c: Likewise.
6184         * debug/strncpy_chk.c: Likewise.
6185         * string/memchr.c: Likewise.
6186         * string/memrchr.c: Likewise.
6187         * string/rawmemchr.c: Likewise.
6188         * string/strcat.c: Likewise.
6189         * string/strchr.c: Likewise.
6190         * string/strchrnul.c: Likewise.
6191         * string/strcmp.c: Likewise.
6192         * string/strcpy.c: Likewise.
6193         * string/strncat.c: Likewise.
6194         * string/strncmp.c: Likewise.
6195         * string/strncpy.c: Likewise.
6196
6197 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6198
6199         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
6200         __builtin_memcopy is called when src and dest ranges are known to not
6201         overlap.
6202
6203 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6204
6205         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
6206         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
6207         fwd_align_merge macro call.
6208         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
6209         bwd_align_merge macro call.
6210         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6211
6212 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6213
6214         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
6215         bwd_align_merge macros.
6216         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
6217         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
6218         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6219
6220 2012-04-18  David S. Miller  <davem@davemloft.net>
6221
6222         * sysdeps/sparc/sparc64/memcopy.h: Delete.
6223
6224 2012-04-18  Andreas Jaeger  <aj@suse.de>
6225
6226         [BZ# 6794]
6227         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
6228         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
6229         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6230
6231         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
6232         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
6233         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6234
6235         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
6236         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
6237         Adjust for changed ldbl-128 files.
6238
6239         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
6240         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
6241         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6242
6243 2012-04-17  David S. Miller  <davem@davemloft.net>
6244
6245         * sysdeps/sparc/sparc32/memcopy.h: Delete.
6246
6247 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
6248
6249         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
6250         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
6251         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
6252         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
6253         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
6254         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
6255
6256 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6257
6258         [BZ #6794]
6259         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
6260         * math/libm-test.inc: Add ilogb errno and exception tests.
6261         * math/w_ilogb.c: New file: ilogb wrapper.
6262         * math/w_ilogbf.c: New file: ilogbf wrapper.
6263         * math/w_ilogbl.c: New file: ilogbl wrapper.
6264         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
6265         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
6266         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
6267         exception being thrown with 0.0 as argument.
6268         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
6269         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
6270         exception being thrown with 0.0 as argument.
6271         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
6272         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6273         exception being thrown with 0.0 as argument.
6274         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
6275         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6276         exception being thrown with 0.0 as argument.
6277         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
6278         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
6279         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
6280         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
6281         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
6282         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
6283         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
6284         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
6285         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
6286
6287 2012-04-17  Petr Baudis  <pasky@ucw.cz>
6288
6289         * include/sys/uio.h: Change __vector to __iovec to avoid clash
6290         with altivec.
6291
6292 2012-04-16  Marek Polacek  <polacek@redhat.com>
6293
6294         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
6295
6296 2012-04-16  Marek Polacek  <polacek@redhat.com>
6297
6298         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
6299         operands of fdivp instruction.
6300
6301 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
6302
6303         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
6304         * elf/tst-auditmod3b.c: Likewise.
6305         * elf/tst-auditmod4b.c: Likewise.
6306         * elf/tst-auditmod5b.c: Likewise.
6307         * elf/tst-auditmod6b.c: Likewise.
6308         * elf/tst-auditmod6c.c: Likewise.
6309         * elf/tst-auditmod7b.c: Likewise.
6310         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
6311         * sysdeps/x86_64/preconfigure.in: Likewise.
6312         * sysdeps/x86_64/preconfigure: Regenerated.
6313
6314 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
6315
6316         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
6317         __ILP32__.
6318
6319 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
6320
6321         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6322         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
6323
6324 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
6325
6326         [BZ #13973]
6327         * locale/iso-639.def: Fix gl language name. Spotted by
6328         Yaron Shahrabani.
6329
6330 2012-04-12  Roland McGrath  <roland@hack.frob.com>
6331
6332         [BZ #2074]
6333         * libio/libio.h (__io_write_fn): Update comment.
6334
6335 2012-04-12  Petr Baudis  <pasky@ucw.cz>
6336
6337         [BZ #2074]
6338         * stdio.texi (Hook Functions): The user provided writer function
6339         is not allowed to return -1.
6340
6341 2012-04-11  David S. Miller  <davem@davemloft.net>
6342
6343         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6344
6345 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
6346
6347         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
6348         Add a leading slash to rtkaio.
6349
6350 2012-04-11  Jim Meyering  <meyering@redhat.com>
6351
6352         [BZ #11959]
6353         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
6354         It is not necessarily an error to ignore fwrite's return
6355         value.  One can reliably use ferror to test for errors after
6356         the fact.
6357
6358 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6359
6360         * bits/types.h (__snseconds_t): New type.
6361         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
6362
6363         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
6364         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6365         (__SNSECONDS_T_TYPE): Likewise.
6366         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6367         (__SNSECONDS_T_TYPE): Likewise.
6368         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6369         (__SNSECONDS_T_TYPE): Likewise.
6370
6371 2012-04-10  Andreas Jaeger  <aj@suse.de>
6372
6373         [BZ #2636]
6374         * manual/time.texi (Processor Time): Return type of times is
6375         elapsed real time since an arbitrary point in the past.
6376         (CPU Time): Move CLK_TCK from here...
6377         (Processor Time): ...to here.  Correct description.
6378         * manual/conf.texi (Constants for Sysconf): Correct description of
6379         _SC_CLK_TCK.
6380
6381 2012-04-10  David S. Miller  <davem@davemloft.net>
6382
6383         [BZ #13967]
6384         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
6385         where the is a gap between DT_REL(A) and DT_JMPREL.
6386
6387 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6388
6389         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
6390         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
6391         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
6392
6393 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6394
6395         * elf/dl-support.c (_dl_inhibit_cache): New variable.
6396         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
6397         (dl_main): Handle --inhibit-cache.
6398         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
6399         _dl_inhibit_cache.
6400         * elf/dl-load.c (_dl_map_object): Use it.
6401         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
6402
6403 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
6404
6405         [BZ #13872]
6406         * sysdeps/i386/fpu/e_powl.S (p78): New object.
6407         (__ieee754_powl): Saturate large exponents rather than testing for
6408         overflow of y*log2(x).
6409         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6410         * math/libm-test.inc (pow_test): Do not permit spurious overflow
6411         exceptions.
6412
6413         [BZ #11521]
6414         * math/s_ctan.c: Include <float.h>.
6415         (__ctan): Avoid internal overflow or cancellation in calculating
6416         denominator.
6417         * math/s_ctanf.c: Likewise.
6418         * math/s_ctanl.c: Likewise.
6419         * math/s_ctanh.c: Likewise.
6420         * math/s_ctanhf.c: Likewise.
6421         * math/s_ctanhl.c: Likewise.
6422         * math/libm-test.inc (ctan_test): Add more tests.
6423         (ctanh_test): Likewise.
6424         * sysdeps/i386/fpu/libm-test-ulps: Update.
6425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6426
6427 2012-04-09  Andreas Jaeger  <aj@suse.de>
6428
6429         [BZ #6894]
6430         * manual/filesys.texi (Directory Entries): Mention that d_namlen
6431         is an optional BSD extension.
6432
6433         [BZ #10254]
6434         * manual/stdio.texi (Opening Streams): Document additional fopen
6435         parameters.
6436
6437 2012-04-09  Roland McGrath  <roland@hack.frob.com>
6438
6439         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
6440         %eax without telling the compiler.
6441
6442 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
6443
6444         [BZ # 13963]
6445         * manual/install.texi: Use sourceware.org.
6446
6447 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
6448
6449         [BZ #13873]
6450         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
6451         (__ieee754_pow): Generate overflow and underflow using huge*huge
6452         and tiny*tiny rather than just returning constant infinity or zero
6453         for large exponents.
6454         * math/libm-test.inc (pow_test): Require overflow exceptions for
6455         applicable cases of large exponents.
6456
6457         [BZ #706]
6458         * sysdeps/i386/fpu/e_pow.S (p10): New object.
6459         (__ieee754_pow): Use iterative multiplication algorithm only for
6460         integer exponents with absolute value below 1024.  Check for odd
6461         integer exponents when using algorithm for real exponents.
6462         * math/libm-test.inc (pow_test): Add more tests.
6463         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6464
6465 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
6466
6467         [BZ #13705]
6468         * math/libm-test.inc (exp_test): Do not allow overflow exception
6469         on underflow test.
6470
6471 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
6472
6473         [BZ #13705]
6474         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
6475         instead of __kernel_standard_f.
6476
6477 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
6478
6479         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
6480         * sysdeps/x86_64/memset_chk.S: Likewise.
6481
6482 2012-04-08  Andreas Jaeger  <aj@suse.de>
6483
6484         [BZ #10153]
6485         * manual/startup.texi (Environment Access): Describe return value
6486         for putenv and setenv.
6487
6488         [BZ #6895]
6489         * manual/filesys.texi (Directory Entries): Add description for
6490         DT_LNK.
6491
6492         [BZ #6890]
6493         * manual/filesys.texi (Directory Entries): Clarify that it's file
6494         system not operating system in the description of DT_UNKNOWN.
6495
6496         [BZ #6578]
6497         * manual/syslog.texi (closelog): Fix reference, it's openlog.
6498
6499 2012-04-08  Stephen Compall  <s11@member.fsf.org>
6500
6501         [BZ #6649]
6502         * manual/llio.texi (Opening and Closing Files): Add cross
6503         reference to explain mode argument.
6504
6505 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
6506
6507         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
6508         * sysdeps/x86_64/memset_chk.S: Likewise.
6509
6510 2012-04-07  David S. Miller  <davem@davemloft.net>
6511
6512         * elf/elf.h (R_SPARC_WDISP10): Define.
6513         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
6514         R_SPARC_SIZE32.
6515         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
6516         R_SPARC_SIZE64 and R_SPARC_H34.
6517
6518 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
6519
6520         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
6521         conditions and remove no longer applicable assertion.
6522
6523 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
6524
6525         * bits/byteswap.h: Include <features.h>.
6526         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
6527         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
6528
6529 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
6530
6531         * bits/byteswap.h (__bswap_16): Removed.
6532         Include <bits/byteswap-16.h> to get __bswap_16.
6533         * sysdeps/i386/bits/byteswap.h: Likewise.
6534         * sysdeps/s390/bits/byteswap.h: Likewise.
6535         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6536         * bits/byteswap-16.h: New file.
6537         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6538         * sysdeps/s390/bits/byteswap-16.h: Likewise.
6539         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
6540         * string/Makefile (headers): Add bits/byteswap-16.h.
6541
6542 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
6543
6544         [BZ #13895]
6545         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
6546         extra indirection.
6547         * nss/Makefile (tests-static, tests): Add tst-nss-static.
6548         * nss/tst-nss-static.c: New.
6549
6550 2012-04-06  Robert Millan  <rmh@gnu.org>
6551
6552         [BZ #6486]
6553         * manual/llio.texi (File Position Primitive): lseek
6554         refers to WHENCE when it really means OFFSET.
6555
6556 2012-04-06  Andreas Jaeger  <aj@suse.de>
6557
6558         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
6559         strncmp declarations.
6560
6561         * abilist/libc.abilist: Add __poll and __ppoll.
6562
6563 2012-04-05  David S. Miller  <davem@davemloft.net>
6564
6565         * scripts/check-local-headers.sh: Accept a host triplet in the
6566         path matched by the exclude regexp.
6567
6568         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
6569         definition.
6570         * sysdeps/powerpc/powerpc32/dl-machine.h
6571         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
6572         * sysdeps/s390/s390-32/dl-machine.h
6573         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6574         * sysdeps/sparc/sparc32/dl-machine.h
6575         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6576         * sysdeps/sparc/sparc64/dl-machine.h
6577         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6578
6579         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
6580         lazy binding.
6581         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
6582         undefined symbol errors.
6583
6584         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
6585         DT_NEEDED entries.
6586
6587 2012-04-05  Michael Matz  <matz@suse.de>
6588
6589         [BZ #13592]
6590         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
6591
6592 2012-04-05  Andreas Jaeger  <aj@suse.de>
6593
6594         [BZ #13908]
6595         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
6596         comment.
6597
6598 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6599
6600         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
6601         which ROUND is no valid rounding mode.
6602
6603 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6604
6605         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
6606         read again.
6607         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
6608
6609 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6610
6611         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
6612         an exception using FPU order intentionally.
6613
6614 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6615
6616         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
6617         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
6618         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
6619         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
6620
6621 2012-04-05  Simon Josefsson  <simon@josefsson.org>
6622
6623         [BZ #12340]
6624         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
6625         EINVAL when BUFLEN is too smal.
6626
6627 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
6628
6629         [BZ #13553]
6630         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
6631         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6632
6633 2012-04-03  Andreas Jaeger  <aj@suse.de>
6634
6635         [BZ #13938]
6636         * manual/setjmp.texi (System V contexts): Fix sentence.
6637
6638         [BZ #13926]
6639         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
6640         New macro for this case.
6641         [!__GNUC__] (__bswap_64): New inline function for this case.
6642         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6643         * bits/byteswap.h: Likewise.
6644         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
6645         ull, guard with __GLIBC_HAVE_LONG_LONG.
6646
6647         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
6648         __GLIBC_HAVE_LONG_LONG.
6649
6650         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
6651         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
6652
6653 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
6654
6655         [BZ #13691]
6656         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
6657         inptr and inend, rather than using last_ch.
6658
6659 2012-04-02  David S. Miller  <davem@davemloft.net>
6660
6661         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
6662         * stdio-common/printf-parse.h (read_int): Change return type to
6663         'int', return -1 on INT_MAX overflow.
6664         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
6665         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
6666         overflows INT_MAX.  Check for overflow of in-format-string precision
6667         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
6668         SIZE_MAX not INT_MAX for integer overflow test.
6669         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
6670         skip the construct in the format string but do not record anything.
6671         * stdio-common/bug22.c: Adjust to test both width/prevision
6672         INT_MAX overflow as well as total length INT_MAX overflow.  Check
6673         explicitly for proper errno values.
6674
6675 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
6676
6677         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
6678         CHAR_MAX.
6679         * string/test-strcmp.c [! WIDE]: Likewise.
6680         * time/tst-mktime2.c: Likewise for INT_MAX.
6681         * string/test-string.h: #include <sys/param.h> for MIN.
6682
6683         * csu/init-first.c (__libc_init_first): Call __ctype_init.
6684         * sysdeps/i386/init-first.c (init): Likewise.
6685         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
6686         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
6687         * sysdeps/sh/init-first.c (init): Likewise.
6688
6689 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
6690
6691         * po/ru.po: Update from translation team.
6692         * po/vi.po: Likewise.
6693
6694 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
6695
6696         * resolv/nss_dns/dns-host.c: Merge copyright years.
6697
6698 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6699
6700         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6701         Optimize memcpy with prefetch if
6702         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
6703         src, dst pointers have unequal 16 byte alignments.
6704
6705 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6706
6707         [BZ #13928]
6708         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
6709         from a CNAME entry and return the minimum ttl for the query.
6710         (gaih_getanswer_slice): Likewise.
6711
6712 2012-03-30  Jeff Law  <law@redhat.com>
6713
6714         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
6715         due to long keys.
6716         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
6717         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
6718
6719         * resolv/nss_dns/dns-host.c: Update copyright year.
6720
6721 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
6722
6723         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
6724         requests to save a system call.  Fix check that all bytes are sent.
6725
6726         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
6727         comments for sendmmsg.
6728
6729 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6730
6731         [BZ #13691]
6732         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
6733         with only 1 character between 0x0041 and 0x01b0.
6734         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
6735         * wcsmbs/tst-mbsnrtowcs.c: New file.
6736
6737 2012-03-29  David S. Miller  <davem@davemloft.net>
6738
6739         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
6740         small copies by hand.
6741
6742 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6743
6744         [BZ #13761]
6745         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
6746         _nss_compat_initgroups_dyn): Fall back to malloc/free
6747         for large group memberships.
6748
6749 2012-03-28  David S. Miller  <davem@davemloft.net>
6750
6751         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
6752         that branches into memcpy.
6753         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6754         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
6755         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6756         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
6757         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
6758         bits.
6759         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
6760         implementation too.
6761         * sysdeps/sparc/mempcpy.S: New file.
6762
6763         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
6764         the IFUNC routine in the libc case.
6765         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6766
6767         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
6768         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
6769         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
6770         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
6771         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
6772         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
6773         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
6774         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
6775
6776         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
6777         loop to 256 bytes instead of 64 bytes and fix test signedness.
6778
6779         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
6780         * sysdeps/sparc/sparc32/Makefile: rather than here...
6781         * sysdeps/sparc/sparc64/Makefile: and here.
6782
6783 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
6784
6785         * malloc/mallocbug.c: Avoid warnings about unused variables.
6786
6787 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6788
6789         [BZ #13760]
6790         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
6791         in the right place. Discard and retry query if response is
6792         larger than input buffer size.
6793
6794 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
6795
6796         [BZ #369]
6797         [BZ #2678]
6798         [BZ #3866]
6799         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
6800         x for large integer exponent.
6801         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
6802         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
6803         sign of result as needed afterwards.
6804         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6805         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
6806         result for underflowing pow the same as for overflow.
6807         (__kernel_standard_l): Handle powl overflow and underflow here
6808         rather than calling __kernel_standard.
6809         * math/libm-test.inc (pow_test): Add more tests.
6810
6811         [BZ #3868]
6812         [BZ #13879]
6813         [BZ #13910]
6814         [BZ #13911]
6815         [BZ #13912]
6816         [BZ #13913]
6817         [BZ #13915]
6818         [BZ #13916]
6819         [BZ #13917]
6820         [BZ #13918]
6821         [BZ #13919]
6822         [BZ #13920]
6823         [BZ #13921]
6824         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
6825         * sysdeps/ieee754/k_standard.c: Include <float.h>.
6826         (__kernel_standard_l): New function.
6827         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
6828         __kernel_standard.
6829         * math/w_acosl.c (__acosl): Likewise.
6830         * math/w_asinl.c (__asinl): Likewise.
6831         * math/w_atan2l.c (__atan2l): Likewise.
6832         * math/w_atanhl.c (__atanhl): Likewise.
6833         * math/w_coshl.c (__coshl): Likewise.
6834         * math/w_exp10l.c (__exp10l): Likewise.
6835         * math/w_exp2l.c (__exp2l): Likewise.
6836         * math/w_fmodl.c (__fmodl): Likewise.
6837         * math/w_hypotl.c (__hypotl): Likewise.
6838         * math/w_j0l.c (__j0l, __y0l): Likewise.
6839         * math/w_j1l.c (__j1l, __y1l): Likewise.
6840         * math/w_jnl.c (__jnl, __ynl): Likewise.
6841         * math/w_lgammal.c (__lgammal): Likewise.
6842         * math/w_log10l.c (__log10l): Likewise.
6843         * math/w_log2l.c (__log2l): Likewise.
6844         * math/w_logl.c (__logl): Likewise.
6845         * math/w_powl.c (__powl): Likewise.
6846         * math/w_remainderl.c (__remainderl): Likewise.
6847         * math/w_scalbl.c (sysv_scalbl): Likewise.
6848         * math/w_sinhl.c (__sinhl): Likewise.
6849         * math/w_sqrtl.c (__sqrtl): Likewise.
6850         * math/w_tgammal.c (__tgammal): Likewise.
6851         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
6852         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
6853         * math/libm-test.inc (acos_test): Add more tests.
6854         (acosh_test): Likewise.
6855         (asin_test): Likewise.
6856         (atanh_test): Likewise.
6857         (exp_test): Likewise.
6858         (exp10_test): Likewise.
6859         (exp2_test): Likewise.
6860         (expm1_test): Likewise.
6861         (lgamma_test): Likewise.
6862         (log_test): Likewise.
6863         (log10_test): Likewise.
6864         (log1p_test): Likewise.
6865         (log2_test): Likewise.
6866         (pow_test): Do not allow some spurious overflow exceptions.
6867         (sqrt_test): Add more tests.
6868         (tgamma_test): Likewise.
6869         (y0_test): Likewise.
6870         (y1_test): Likewise.
6871         (yn_test): Likewise.
6872
6873 2012-03-27  Anton Blanchard  <anton@samba.org>
6874
6875         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
6876         MAP_HUGETLB.
6877         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6878         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6879         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
6880
6881 2012-03-27  David S. Miller  <davem@davemloft.net>
6882
6883         * conform/Makefile: Run run-conformtest.sh using $(BASH).
6884
6885         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
6886         have-as-vis3 check.
6887
6888 2012-03-27  Andreas Jaeger  <aj@suse.de>
6889
6890         * sysdeps/x86_64/elf/configure.in: Moved to ...
6891         * sysdeps/x86_64/configure.in: ... here.
6892         * sysdeps/x86_64/elf/start.S: Moved to ...
6893         * sysdeps/x86_64/start.S: ... here.
6894         * sysdeps/x86_64/elf/configure: Delete.
6895
6896         * sysdeps/x86_64/configure.in: Merge contents from
6897         sysdeps/i386/configure.in (without i686 check).
6898
6899         * sysdeps/i386/elf/Versions: Merge into ...
6900         * sysdeps/i386/Versions: ... this.
6901         * sysdeps/i386/elf/Versions: Delete file.
6902         * sysdeps/i386/elf/start.S: Moved to ...
6903         * sysdeps/i386/start.S: ...here.
6904         * sysdeps/i386/elf/configure.in: Merge into...
6905         * sysdeps/i386/configure.in: ...here.
6906         * sysdeps/i386/elf/configure.in: Delete file.
6907         * sysdeps/i386/elf/configure: Delete file.
6908
6909         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
6910         * debug/backtracesyms.c: ... here.
6911         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
6912         * debug/backtracesymsfd.c: ... here.
6913         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
6914         * sysdeps/generic/ifunc-sel.h: ... here.
6915
6916         * sysdeps/unix/i386/start.c: Delete file.
6917         * sysdeps/unix/sparc/start.c: Delete file.
6918         * sysdeps/unix/start.c: Delete file.
6919
6920         * sysdeps/sh/elf/configure.in: Moved to ...
6921         * sysdeps/sh/configure.in: ... here.
6922         * sysdeps/sh/elf/start.S: Moved to ...
6923         * sysdeps/sh/start.S: ... here.
6924         * sysdeps/sh/elf/configure: Delete file.
6925
6926         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
6927         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
6928         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
6929         * sysdeps/powerpc/powerpc64/entry.h: ... here.
6930         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
6931         * sysdeps/powerpc/powerpc64/start.S: here.
6932         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
6933         * sysdeps/powerpc/powerpc64/Makefile: ... this.
6934         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
6935         * sysdeps/powerpc/powerpc64/configure.in: ... this.
6936         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
6937
6938         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
6939         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
6940         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
6941         * sysdeps/powerpc/powerpc32/start.S: ... here.
6942         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
6943         * sysdeps/powerpc/powerpc32/configure.in: ... this.
6944         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
6945
6946         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
6947         * sysdeps/powerpc/ifunc-sel.h: ... here.
6948         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
6949         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
6950
6951         * sysdeps/sparc/elf/configure.in: Moved to ...
6952         * sysdeps/sparc/configure.in: ... here.
6953         * sysdeps/sparc/elf/configure: Delete file.
6954         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
6955         * sysdeps/sparc/sparc32/start.S: ... here.
6956         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
6957         * sysdeps/sparc/sparc64/start.S: ... here.
6958         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
6959         * sysdeps/sparc/sparc32/Makefile: ... this.
6960         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
6961         * sysdeps/sparc/sparc64/Makefile: ... this.
6962
6963         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
6964         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
6965         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
6966         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
6967         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
6968         * sysdeps/s390/s390-32/setjmp.S: ... here.
6969         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
6970         * sysdeps/s390/s390-32/configure.in: ... here.
6971         * sysdeps/s390/s390-32/elf/configure: Delete file.
6972         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
6973         * sysdeps/s390/s390-32/start.S: ... here.
6974
6975         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
6976         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
6977         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
6978         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
6979         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
6980         * sysdeps/s390/s390-64/setjmp.S: ... here.
6981         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
6982         * sysdeps/s390/s390-64/configure.in: ... here
6983         * sysdeps/s390/s390-64/elf/configure: Delete file.
6984         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
6985         * sysdeps/s390/s390-64/start.S: ... here.
6986         * sysdeps/s390/s390-64/elf/configure: Delete.
6987
6988         * configure.in: Remove support for elf directories in sysdeps.
6989
6990         * configure: Regenerated.
6991         * sysdeps/i386/configure: Regenerated.
6992         * sysdeps/powerpc/powerpc32/configure: Regenerated.
6993         * sysdeps/powerpc/powerpc64/configure: Regenerated.
6994         * sysdeps/s390/s390-32/configure: Regenerated.
6995         * sysdeps/s390/s390-64/configure: Regenerated.
6996         * sysdeps/sh/configure: Regenerated.
6997         * sysdeps/sparc/configure: Regenerated.
6998         * sysdeps/x86_64/configure: Regenerated.
6999
7000 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
7001
7002         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7003
7004         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
7005         denormal result into account.
7006
7007 2012-03-25  Roland McGrath  <roland@hack.frob.com>
7008
7009         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
7010         Reported by Allan McRae <allan@archlinux.org>.
7011
7012 2012-03-23  Jeff Law  <law@redhat.com>
7013
7014         * nss/getnssent.c (__nss_getent): Fix typo.
7015
7016 2012-03-23  David S. Miller  <davem@davemloft.net>
7017
7018         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7019
7020 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
7021
7022         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
7023         to pad to uint64_t for each field.
7024         (dl_tls_index): Replace unsigned long with uint64_t.
7025
7026 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
7027         Paul Pluzhnikov  <ppluzhnikov@google.com>
7028
7029         [BZ #6528]
7030         * grp/Makefile (otherlibs): Don't set it.
7031         * inet/Makefile (otherlibs): Likewise.
7032         * login/Makefile (otherlibs): Likewise.
7033         * nscd/Makefile (otherlibs): Likewise.
7034         * posix/Makefile (otherlibs): Likewise.
7035         * pwd/Makefile (otherlibs): Likewise.
7036         * rt/Makefile (otherlibs): Likewise.
7037         * sunrpc/Makefile (otherlibs): Likewise.
7038         * nss/Makefile (otherlibs): Likewise.
7039         Add libnss_files to routines and static-only-routines.
7040         ($(objpfx)getent): Remove rule.
7041         * resolv/Makefile: Add libnss_dns and libresolv to routines and
7042         static-only-routines.
7043
7044 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
7045
7046         [BZ #13892]
7047         * math/s_cexp.c: Include <float.h>.
7048         (__cexp): Handle exp result overflowing not necessarily
7049         overflowing both real and imaginary parts of result.
7050         * math/s_cexpf.c: Likewise.
7051         * math/s_cexpl.c: Likewise.
7052         * math/libm-test.inc (cexp_test): Add more tests.
7053         * sysdeps/i386/fpu/libm-test-ulps: Update.
7054         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7055
7056 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7057
7058         * include/link.h (ELFW): New macro.
7059         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
7060         Replace ELF64_R_TYPE with ELFW(R_TYPE).
7061
7062 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7063
7064         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
7065         with uint64_t.
7066
7067 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7068
7069         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
7070         declaration.
7071         (struct La_x32_retval): Likewise.
7072
7073 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7074
7075         * sysdeps/x86_64/preconfigure.in: New file.
7076         * sysdeps/x86_64/preconfigure: New generated file.
7077
7078 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
7079
7080         [BZ #13824]
7081         * math/e_exp2l.c: Include <float.h>.
7082         (__ieee754_exp2l): Handle overflow and underflow cases
7083         separately.  Only pass fractional part of argument to
7084         __ieee754_expl.
7085         * math/libm-test.inc (exp2_test): Add more tests.
7086
7087         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
7088         negating x to take absolute value.
7089         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
7090         Likewise.
7091         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
7092         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
7093         Likewise.
7094         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
7095         computing low part if x was negated.
7096         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
7097
7098 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7099
7100         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
7101         la_x32_gnu_pltexit.
7102         (pltexit): Cast int_retval to ptrdiff_t.
7103         * elf/tst-auditmod3b.c: Likewise.
7104         * elf/tst-auditmod4b.c: Likewise.
7105         * elf/tst-auditmod5b.c: Likewise.
7106         * elf/tst-auditmod6b.c: Likewise.
7107         * elf/tst-auditmod6c.c: Likewise.
7108         * elf/tst-auditmod7b.c: Likewise.
7109
7110         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
7111         and x32_gnu_pltexit.
7112
7113         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
7114         __ELF_NATIVE_CLASS.
7115         (La_x32_regs): New macro.
7116         (La_x32_retval): Likewise.
7117         (la_x32_gnu_pltenter): New function prototype.
7118         (la_x32_gnu_pltexit): Likewise.
7119
7120 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
7121
7122         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
7123         exponent.
7124
7125         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7126
7127         * configure.in (libc_cv_cc_nofma): Check for option to disable
7128         generation of FMA instructions.
7129         * configure: Regenerate.
7130         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
7131         * sysdeps/ieee754/dbl-64/Makefile: New file.
7132         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7133         Remove brandred-fma4.
7134         (CFLAGS-brandred-fma4.c): Remove.
7135         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
7136         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
7137         define.
7138         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
7139         define.
7140
7141 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7142
7143         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7144         LLONG_MAX != LONG_MAX.
7145         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7146         (_fitoa_word): Likewise.
7147         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
7148         LLONG_MAX != LONG_MAX.
7149         * stdio-common/_itowa.h: Include <_itoa.h>.
7150         (_itowa_word): Use _ITOA_WORD_TYPE on value.
7151         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
7152         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
7153         only if not defined.
7154         (_ITOA_WORD_TYPE): Likewise.
7155         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7156         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
7157
7158 2012-03-21  David S. Miller  <davem@davemloft.net>
7159
7160         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7161
7162 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7163
7164         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
7165         of x86_64 when setting libc_cv_slibdir, libdir and
7166         libc_cv_localedir.
7167         * sysdeps/unix/sysv/linux/configure: Regenerated.
7168
7169 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7170
7171         * manual/lang.texi (Old Varargs): Remove section.
7172         (How Variadic): Update menu.
7173         (va_start): Do not mention varargs.h.
7174
7175 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7176             Joseph Myers  <joseph@codesourcery.com>
7177
7178         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
7179         link test.
7180         * configure: Regenerated.
7181
7182 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7183
7184         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
7185         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
7186         conformtest.pl
7187
7188 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7189
7190         * NOTES: Remove.
7191         * Makefile (files-for-dist): Remove NOTES.
7192         (NOTES): Remove rule.
7193         * README: Don't refer to NOTES.
7194         * manual/creature.texi: Don't include macros.texi.
7195         * manual/intro.texi (creature.texi): Remove comment referring to
7196         NOTES.
7197
7198         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
7199         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
7200         * configure: Regenerated.
7201         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
7202         LIBC_TRY_CC_OPTION.
7203         (libc_cv_as_i686): Likewise.
7204         (libc_cv_cc_avx): Likewise.
7205         (libc_cv_cc_sse2avx): Likewise.
7206         (libc_cv_cc_fma4): Likewise.
7207         (libc_cv_cc_novzeroupper): Likewise.
7208         * sysdeps/i386/configure: Regenerated.
7209
7210         [BZ #13883]
7211         * sysdeps/i386/fpu/s_cexp.S: Remove.
7212         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7213         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7214         * math/libm-test.inc (cexp_test): Add more tests.
7215         * sysdeps/i386/fpu/libm-test-ulps: Update.
7216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7217
7218 2012-03-21  Allan McRae  <allan@archlinux.org>
7219
7220         * timezone/Makefile: Do not install iso3166.tab and zone.tab
7221
7222 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7223
7224         [BZ #13871]
7225         * math/w_exp2.c: Do not include <float.h>.
7226         (o_threshold, u_threshold): Remove.
7227         (__exp2): Calculate result before checking finiteness and calling
7228         __kernel_standard.
7229         * math/w_exp2f.c: Likewise.
7230         * math/w_exp2l.c: Likewise.
7231         * math/libm-test.inc (exp2_test): Require overflow exception for
7232         1e6 input.
7233
7234         [BZ #3866]
7235         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
7236         range of signed 64-bit integers before using fistpll.  Remove
7237         checks for whether integers fit in mantissa bits.
7238         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
7239         the range of signed 32-bit integers before using fistpl.  Remove
7240         checks for whether integers fit in mantissa bits.
7241         * sysdeps/i386/fpu/e_powl.S (p64): New object.
7242         (__ieee754_powl): Test for y outside the range of signed 64-bit
7243         integers before using fistpll.  Reduce 64-bit values to 63-bit
7244         ones as needed.
7245         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
7246         divide-by-zero is raised for zero to large negative powers.
7247         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
7248         (__ieee754_powl): Test for y outside the range of signed 64-bit
7249         integers before using fistpll.  Reduce 64-bit values to 63-bit
7250         ones as needed.
7251         * math/libm-test.inc (pow_test): Add more tests.
7252
7253 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7254
7255         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
7256         <stdio-common/_itoa.h>.
7257         * debug/segfault.c: Likewise.
7258         * elf/dl-cache.c: Likewise.
7259         * elf/dl-minimal.c: Likewise.
7260         * elf/dl-misc.c: Likewise.
7261         * elf/dl-sysdep.c: Likewise.
7262         * elf/dl-version.c: Likewise.
7263         * elf/rtld.c: Likewise.
7264         * hurd/hurdsock.c: Likewise.
7265         * hurd/lookup-retry.c: Likewise.
7266         * malloc/malloc.c: Likewise.
7267         * malloc/mtrace.c: Likewise.
7268         * nscd/nscd_getgr_r.c: Likewise.
7269         * nscd/nscd_getpw_r.c: Likewise.
7270         * nscd/nscd_getserv_r.c: Likewise.
7271         * posix/getopt_init.c: Likewise.
7272         * posix/wordexp.c: Likewise.
7273         * stdio-common/_itoa.c: Likewise.
7274         * stdio-common/printf_fphex.c: Likewise.
7275         * stdio-common/vfprintf.c: Likewise.
7276         * string/_strerror.c: Likewise.
7277         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7278         * sysdeps/i386/i686/hp-timing.h: Likewise.
7279         * sysdeps/mach/_strerror.c: Likewise.
7280         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
7281         * sysdeps/mach/hurd/sethostid.c: Likewise.
7282         * sysdeps/mach/hurd/xmknodat.c: Likewise.
7283         * sysdeps/mach/xpg-strerror.c: Likewise.
7284         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7285         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
7286         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
7287         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
7288         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
7289         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
7290         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7291         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7292         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
7293         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
7294         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
7295         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
7296         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
7297         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
7298         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
7299         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
7300         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
7301         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
7302         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7303         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7304         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
7305
7306         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
7307
7308         * stdio-common/_itoa.h: Moved to ...
7309         * sysdeps/generic/_itoa.h: Here.
7310
7311         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
7312
7313         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
7314         instead of "_itoa.h" and "_itowa.h".
7315         * stdio-common/vfprintf.: Likewise.
7316
7317 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7318
7319         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
7320         <bits/wordsize.h>.
7321         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
7322         (__signbit): Likwise.
7323         (llrintf): Likwise.
7324         (llrint): Likwise.
7325
7326 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7327
7328         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
7329         __WORDSIZE != 64.
7330
7331 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
7332
7333         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
7334         OVERFLOW_EXCEPTION_OK.
7335         * math/libm-test.inc ("Philosophy"): Update comment about
7336         exception testing.
7337         (OVERFLOW_EXCEPTION): Define.
7338         (OVERFLOW_EXCEPTION_OK): Likewise.
7339         (INVALID_EXCEPTION_OK): Renumber.
7340         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7341         (IGNORE_ZERO_INF_SIGN): Likewise.
7342         (test_exceptions): Handle FE_OVERFLOW.
7343         (exp10_test): Expect overflow exceptions.
7344         (exp2_test): Likewise.
7345         (expm1_test): Likewise.
7346         (nextafter_test): Likewise.
7347         (pow_test): Likewise.
7348         (scalbn_test): Likewise.
7349         (scalbln_test): Likewise.
7350
7351 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7352
7353         * sysdeps/x86_64/bits/atomic.h
7354         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
7355         64bit integer.
7356         (atomic_exchange_acq): Likewise.
7357         (__arch_exchange_and_add_body): Likewise.
7358         (__arch_add_body): Likewise.
7359         (atomic_add_negative): Likewise.
7360         (atomic_add_zero): Likewise.
7361
7362 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7363
7364         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
7365         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
7366
7367 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7368
7369         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
7370         Check __x86_64__ instead of __WORDSIZE.
7371
7372 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7373
7374         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
7375
7376 2012-03-19  David S. Miller  <davem@davemloft.net>
7377
7378         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7379
7380         * sysdeps/sparc/fpu/fenv_private.h: New file.
7381         * sysdeps/sparc/fpu/math_private.h: Use it.
7382         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
7383         Remove.
7384         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
7385         (libc_feholdexcept_setroundl): Remove.
7386         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
7387         Remove.
7388         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
7389         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
7390
7391 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7392
7393         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
7394         int64_t instead of long int.
7395         (INSERT_WORDS64): Likwise.
7396
7397 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7398
7399         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
7400         _Unwind_GetCFA return to _Unwind_Ptr first.
7401
7402 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
7403
7404         [BZ #13629]
7405         * math/s_clog.c: Include <float.h>.
7406         (__clog): Scale large or subnormal inputs.
7407         * math/s_clogf.c: Likewise.
7408         * math/s_clogl.c: Likewise.
7409         * math/s_clog10.c: Include <float.h>.
7410         (M_LOG10_2): Define.
7411         (__clog10): Scale large or subnormal inputs.
7412         * math/s_clog10f.c: Likewise.
7413         * math/s_clog10l.c: Likewise.
7414         * math/libm-test.inc (clog_test): Add more tests.
7415         (clog10_test): Likewise.
7416         * sysdeps/i386/fpu/libm-test-ulps: Update.
7417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7418
7419         [BZ #11451]
7420         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
7421         x and y.
7422         * math/libm-test.inc (atan2_test): Add another test.
7423
7424         * Makerules (common-objdir-compile): Remove.
7425         * sysdeps/unix/Makefile (config-generated): Do not add
7426         $(unix-generated) to variable.
7427         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
7428         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
7429         Remove rule.
7430         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
7431         Likewise.
7432         [generic bits/local_lim.h] (before-compile): Do not append to
7433         variable.
7434         [generic bits/local_lim.h] (common-generated): Likewise.
7435         [generic sys/param.h] (before-compile): Do not append to variable.
7436         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
7437         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
7438         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
7439         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
7440         include.
7441         [generic sys/param.h] (sys/param.h-includes): Remove variable.
7442         [generic sys/param.h] (sys/param.h-includes): Remove rule.
7443         [generic sys/param.h] ($(addprefix
7444         $(common-objpfx),$(sys/param.h-includes))): Likewise.
7445         [generic sys/param.h] (common-generated): Do not append to
7446         variable.
7447         [generic sys/param.h] (sysdep_headers): Likewise.
7448         [generic bits/errno.h] (before-compile): Do not append to
7449         variable.
7450         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
7451         rule.
7452         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
7453         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
7454         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
7455         [generic bits/errno.h] (common-generated): Do not append to
7456         variable.
7457         [generic bits/ioctls.h] (before-compile): Do not append to
7458         variable.
7459         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
7460         rule.
7461         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
7462         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
7463         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
7464         rule.
7465         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
7466         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
7467         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
7468         [generic bits/ioctls.h] (common-generated): Do not append to
7469         variable.
7470         [generic sys/syscall.h] (syscall.h): Remove variable.
7471         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
7472         rule.
7473         [generic sys/syscall.h] (before-compile): Do not append to
7474         variable.
7475         [generic sys/syscall.h] (common-generated): Likewise.
7476         * sysdeps/unix/errnos-tmpl.c: Remove file.
7477         * sysdeps/unix/errnos.awk: Likewise.
7478         * sysdeps/unix/ioctls-tmpl.c: Likewise.
7479         * sysdeps/unix/ioctls.awk: Likewise.
7480         * sysdeps/unix/mk-local_lim.c: Likewise.
7481         * sysdeps/unix/snarf-ioctls: Likewise.
7482
7483 2012-03-19  Richard Henderson  <rth@twiddle.net>
7484
7485         * sysdeps/i386/fpu/fenv_private.h: New file.
7486         * sysdeps/i386/fpu/math_private.h: Use it.
7487         (math_opt_barrier, math_force_eval): Remove.
7488         (libc_feholdexcept_setround_53bit): Remove.
7489         (libc_feupdateenv_53bit): Remove.
7490         * sysdeps/x86_64/fpu/math_private.h: Likewise.
7491         (math_opt_barrier, math_force_eval): Remove.
7492         (libc_feholdexcept): Remove.
7493         (libc_feholdexcept_setround): Remove.
7494         (libc_fetestexcept, libc_fesetenv): Remove.
7495         (libc_feupdateenv_test): Remove.
7496         (libc_feupdateenv, libc_feholdsetround): Remove.
7497         (libc_feresetround): Remove.
7498
7499         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
7500         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
7501
7502         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
7503         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
7504         (libc_feupdateenv_testl): New.
7505         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
7506         (libc_feupdateenv_testf): New.
7507         (libc_feupdateenv): Use libc_feupdateenv_test.
7508         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
7509         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
7510
7511         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
7512         (libc_feholdsetroundf, libc_feholdsetroundl): New.
7513         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
7514         (libc_feresetround_noex): New.
7515         (libc_feresetround_noexf): New.
7516         (libc_feresetround_noexl): New.
7517         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
7518         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
7519         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
7520         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
7521         SET_RESTORE_ROUND.
7522         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
7523         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
7524         (__cos): Likewise.
7525         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
7526         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
7527         SET_RESTORE_ROUND_NOEX.
7528         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
7529         SET_RESTORE_ROUND_NOEXF.
7530         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
7531         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
7532         (libc_feholdsetroundf): New.
7533         (libc_feresetround, libc_feresetroundf): New.
7534
7535         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
7536         (libc_feholdexcept_setround_53bit): Convert from macro to function.
7537         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
7538
7539         * sysdeps/generic/math_private.h: Include <fenv.h>.
7540         (default_libc_feholdexcept): New.
7541         (default_libc_feholdexcept_setround): New.
7542         (default_libc_fesetenv, default_libc_feupdateenv): New.
7543         (libc_feholdexcept): Only define if undefined.
7544         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
7545         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
7546         (libc_feholdexcept_setroundl): Likewise.
7547         (libc_feholdexcept_setround_53bit): Likewise.
7548         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
7549         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
7550         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
7551         (libc_feupdateenv_53bit): Likewise.
7552         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
7553         (libc_feholdexcept): Convert from macro to inline function.
7554         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
7555         (libc_fesetenv, libc_feupdateenv): Likewise.
7556
7557         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
7558         not previously defined.
7559         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
7560         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
7561         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
7562         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
7563         * sysdeps/ieee754/flt-32/math_private.h: New file.
7564         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
7565         math_private.h below SET_FLOAT_WORD.
7566         (__isnan, __isinf_ns, __finite): Remove.
7567         (__isnanf, __isinf_nsf, __finitef): Remove.
7568
7569 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
7570
7571         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7572
7573 2012-03-17  David S. Miller  <davem@davemloft.net>
7574
7575         [BZ #6471]
7576         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
7577         for 2.16.
7578
7579 2012-03-16  David S. Miller  <davem@davemloft.net>
7580
7581         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
7582         warnings.
7583
7584         [BZ #6471]
7585         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
7586         properly.
7587         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
7588         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
7589         sysdep_routines when subdir is sysvipc.
7590         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
7591         __getshmlba helper.
7592
7593         * sysdeps/sparc/fpu/libm-test/ulps: Update.
7594
7595 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7596
7597         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
7598         [__LP64__].
7599
7600 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7601
7602         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
7603         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
7604         (__lround): Renamed to ...
7605         (__llround): This.  Replace long int with long long int.
7606         Define lround functions as aliases of llround functions.
7607         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
7608
7609 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7610
7611         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7612         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
7613         adresses to uintptr_t.  Replace "long int" and "unsigned long
7614         int" with "greg_t" on va_arg.
7615
7616 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7617
7618         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
7619         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
7620
7621         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
7622         Move e_machine check before EI_CLASS check.  Handle x32
7623         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
7624         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
7625         SKIP_EM_IA_64 and include
7626         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
7627
7628         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
7629         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
7630         (add_system_dir): New macro.
7631
7632         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
7633         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
7634
7635 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
7636
7637         [BZ #2551]
7638         [BZ #2552]
7639         [BZ #2553]
7640         [BZ #2554]
7641         [BZ #2562]
7642         [BZ #2563]
7643         [BZ #2565]
7644         [BZ #2566]
7645         [BZ #2576]
7646         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
7647         (y0): Likewise.
7648         * math/w_j0f.c (j0f): Likewise.
7649         (y0f): Likewise.
7650         * math/w_j0l.c (__j0l): Likewise.
7651         (__y0l): Likewise.
7652         * math/w_j1.c (j1): Likewise.
7653         (y1): Likewise.
7654         * math/w_j1f.c (j1f): Likewise.
7655         (y1f): Likewise.
7656         * math/w_j1l.c (__j1l): Likewise.
7657         (__y1l): Likewise.
7658         * math/w_jn.c (jn): Likewise.
7659         (yn): Likewise.
7660         * math/w_jnf.c (jnf): Likewise.
7661         (ynf): Likewise.
7662         * math/w_jnl.c (__jnl): Likewise.
7663         (__ynl): Likewise.
7664         * math/libm-test.inc (j0_test): Add more tests.
7665         (j1_test): Likewise.
7666         (jn_test): Likewise.  Add trailing semicolon to existing test.
7667         (y0_test): Likewise.
7668         (y1_test): Likewise.
7669         * sysdeps/i386/fpu/libm-test-ulps: Update.
7670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7671
7672         [BZ #13851]
7673         [BZ #13854]
7674         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
7675         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
7676         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
7677         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
7678         (__tanl): Set errno for infinite argument.
7679         * sysdeps/i386/fpu/mptan.c: Remove.
7680         * sysdeps/i386/fpu/s_tan.S: Likewise.
7681         * sysdeps/i386/fpu/s_tanl.S: Likewise.
7682         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
7683         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
7684         * math/libm-test.inc (tan_test): Add more tests and enable more
7685         tests for double and long double.
7686         * sysdeps/i386/fpu/libm-test-ulps: Update.
7687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7688
7689 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7690
7691         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
7692         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
7693
7694 2012-03-16  Roland McGrath  <roland@hack.frob.com>
7695
7696         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
7697         * configure.in: Use it for both main tree and add-ons.
7698         * configure: Regenerated.
7699
7700 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7701
7702         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
7703
7704 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
7705
7706         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
7707         in comment.
7708
7709         [BZ #13851]
7710         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
7711         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
7712         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
7713         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
7714         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
7715         infinite argument.
7716         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
7717         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
7718         != 0 for prec == 2.
7719         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
7720         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
7721         * sysdeps/i386/fpu/s_cosl.S: Likewise.
7722         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
7723         * sysdeps/i386/fpu/s_sinl.S: Likewise.
7724         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
7725         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
7726         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
7727         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
7728         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
7729         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
7730         * math/libm-test.inc (cos_test): Add more tests and enable more
7731         tests for long double.
7732         (sin_test): Likewise.
7733         (sincos_test): Likewise.
7734         * sysdeps/i386/fpu/libm-test-ulps: Update.
7735         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7736
7737 2012-03-16  David S. Miller  <davem@davemloft.net>
7738
7739         * sysdeps/sparc/fpu/math_private.h: New file.
7740
7741 2012-03-15  David S. Miller  <davem@davemloft.net>
7742
7743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
7744         file.
7745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
7746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
7747         file.
7748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
7749         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
7750         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
7751         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
7752         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
7753         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
7754         sysdep routines.
7755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
7756
7757         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
7758         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
7759
7760         * sysdeps/sparc/sparc-ifunc.h: New file.
7761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
7762         sparc-ifunc.h
7763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
7764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
7765         Likewise.
7766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
7767         Likewise.
7768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
7769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
7770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
7772         Likewise.
7773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
7775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
7777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
7778         Likewise.
7779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
7780         Likewise.
7781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
7783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
7784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
7785         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
7786         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
7787         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
7788         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
7789         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
7790         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
7791         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
7792         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
7793         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
7794         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
7795         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
7796         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
7797         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
7798         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
7799         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
7800         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
7801         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
7802         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
7803         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
7804         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
7805
7806 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
7807
7808         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
7809         scaling.
7810         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7811
7812 2012-03-15  Andreas Jaeger  <aj@suse.de>
7813
7814         [BZ #13852]
7815         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
7816         ieee754/flt-32 implementation for sin, cos and sincos.
7817         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
7818         * sysdeps/i386/fpu/s_cosf.S: Likewise.
7819         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
7820         * sysdeps/i386/fpu/s_sinf.S: Likewise.
7821         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
7822         ieee754/flt-32 implementation for tan.
7823
7824         * math/libm-test.inc (cos_test): Enable some large input tests for
7825         float as well
7826         (sin_test): Likewise.
7827         (sincos_test): Likewise.
7828         (tan_test): Add tests for large input.
7829
7830         * sysdeps/i386/fpu/libm-test-ulps: Update.
7831
7832 2012-03-15  Andreas Jaeger  <aj@suse.de>
7833
7834         [BZ #13658]
7835         * math/libm-test.inc (cos_test): Add more test cases.
7836         (sin_test): Likewise.
7837         (sincos_test): Likewise.
7838
7839 2012-03-15  Andreas Jaeger  <aj@suse.de>
7840
7841         [BZ #13837]
7842         * math/libm-test.inc (cos_test): Add a test case for large input
7843         value.
7844         (sin_test): Likewise.
7845         (sincos_test): Likewise.
7846
7847 2012-03-15  Andreas Jaeger  <aj@suse.de>,
7848         Joseph Myers  <joseph@codesourcery.com>
7849
7850         [BZ #13658]
7851         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
7852         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
7853         * sysdeps/i386/fpu/branred.c: Likewise.
7854         * sysdeps/i386/fpu/dosincos.c: Likewise.
7855         * sysdeps/i386/fpu/mpa.c: Likewise.
7856         * sysdeps/i386/fpu/s_cos.S: Likewise.
7857         * sysdeps/i386/fpu/s_sin.S: Likewise.
7858         * sysdeps/i386/fpu/s_sincos.S: Likewise.
7859         * sysdeps/i386/fpu/sincos32.c: Likewise.
7860
7861         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
7862         Define.
7863         (libc_feupdateenv_53bit): Define.
7864         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
7865         Define.
7866         (libc_feupdateenv_53bit): Define.
7867
7868         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
7869         53 bit (without extend i386 double precision).
7870
7871         * math/libm-test.inc (sincos_test): Add tests for large input.
7872         (sin): Likewise.
7873         (cos): Likewise.
7874
7875         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
7876
7877 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
7878
7879         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7880
7881 2012-03-15  David S. Miller  <davem@davemloft.net>
7882
7883         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
7884         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
7885         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
7886         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
7887         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
7888         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
7889         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
7890         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
7891         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
7892         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
7893         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
7894         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
7895         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
7896         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
7897         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
7898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
7899         file.
7900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
7901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
7902         file.
7903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
7904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
7905         file.
7906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
7907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
7908         file.
7909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
7910         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
7911         fmin/fmax sysdep routines.
7912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
7913
7914 2012-03-14  David S. Miller  <davem@davemloft.net>
7915
7916         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
7917         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
7918         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
7919         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
7920         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
7921         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
7922         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
7923         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
7924         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
7925         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
7926         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
7927         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
7928         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
7929         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
7930         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
7931         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
7932         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
7933         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
7934         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
7935         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
7936         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
7937         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
7938         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
7939         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
7940         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
7941         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
7942         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
7943         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
7944         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
7945         routines.
7946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
7947         file.
7948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
7949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
7950         file.
7951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
7952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
7953         file.
7954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
7955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
7956         file.
7957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
7958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
7959         file.
7960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
7961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
7962         file.
7963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
7964         file.
7965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
7966         file.
7967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
7968         file.
7969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
7970         New file.
7971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
7972         file.
7973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
7974         file.
7975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
7976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
7977         file.
7978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
7979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
7980         file.
7981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
7982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
7983         file.
7984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
7985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
7986         VIS3 routines.
7987
7988         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
7989         New file.
7990
7991         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7992
7993         * sysdeps/sparc/configure.in: New file.
7994         * sysdeps/sparc/configure: Generate.
7995         * configure.in (libc_cv_sparc_as_vis3): Substitute.
7996         * configure: Regenerate.
7997         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
7998         * config.make.in (have-as-vis3): New.
7999         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
8000         available use -Av9d instead of -Av9a.
8001         * sysdeps/sparc/sparc64/Makefile: Likewise.
8002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
8003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
8004         New file.
8005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
8006         file.
8007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
8008         New file.
8009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
8010         file.
8011         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
8012         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
8013         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
8014         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
8015         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
8016
8017         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
8018         fzeros/fnegs to load 0x80000000 into a float register instead of
8019         using the stack.
8020         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
8021
8022 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
8023
8024         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8025         bits/syscall.h.
8026         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
8027         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
8028         ($(inst_includedir)/bits/syscall.h): Remove rule.
8029         ($(objpfx)bits/syscall.d): Include instead of
8030         $(objpfx)syscall-list.d.
8031         (generated): Change syscall-list.h and syscall-list.d to
8032         bits/syscall.h and bits/syscall.d.
8033
8034 2012-03-14  Roland McGrath  <roland@hack.frob.com>
8035
8036         [BZ #13846]
8037         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
8038
8039 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
8040
8041         [BZ #13841]
8042         * math/s_csqrt.c: Include <float.h>.
8043         (__csqrt): Scale large or subnormal inputs.
8044         * math/s_csqrtf.c: Likewise.
8045         * math/s_csqrtl.c: Likewise.
8046         * math/libm-test.inc (csqrt_test): Add more tests.
8047         * sysdeps/i386/fpu/libm-test-ulps: Update.
8048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8049
8050         [BZ #13840]
8051         * math/libm-test.inc (hypot_test): Add more tests.
8052
8053 2012-03-13  David S. Miller  <davem@davemloft.net>
8054
8055         [BZ #13840]
8056         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
8057         double-precision for the calculation instead of scaling.
8058
8059 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
8060
8061         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
8062         manipulate bits before adding and subtracting TWO52[sx].
8063         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
8064         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8065         Likewise.
8066         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
8067
8068 2012-03-13  David S. Miller  <davem@davemloft.net>
8069
8070         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
8071         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
8072         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
8073         rtld-global-offsets.h
8074         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8075
8076         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
8077         large parameters.
8078
8079         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
8080
8081         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
8082         'err' in the ifdef scope in which it is actually used.
8083
8084         * nss/nss_db/db-init.c: Include string.h
8085
8086 2012-03-12  David S. Miller  <davem@davemloft.net>
8087
8088         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
8089         masking out of the most significant byte of random value used.
8090         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8091         Fix coding style in previous change.
8092
8093         * sysdeps/unix/sysv/linux/kernel-features.h
8094         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
8095         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
8096         expression.
8097         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
8098         later.
8099
8100 2012-03-11  David S. Miller  <davem@davemloft.net>
8101
8102         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
8103         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
8104         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
8105         for 'resultvar' otherwise things get truncated on 64-bit.
8106
8107         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8108         Fix masking out of the most significant byte of random value used.
8109
8110         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8111
8112 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
8113
8114         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8115
8116 2012-03-09  David S. Miller  <davem@davemloft.net>
8117
8118         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
8119         variables with appropriate CPP guards.
8120         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
8121         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
8122         on resulting framesize and the management of the outregs buffer for pltexit.
8123         Preserve floating point return values across _dl_call_pltexit call.
8124         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
8125         framesize and the management of the outregs buffer for pltexit.
8126         Preserve floating point return values across _dl_call_pltexit
8127         call.
8128         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
8129         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
8130         (print_exit): Fix format string for return register value.
8131
8132 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
8133
8134         * sunrpc/Makefile (others): Add rpcgen.
8135         ($(objpfx)rpcgen): Remove special build rule and dependency on
8136         libc.
8137         * sunrpc/rpcgen.c: New file.
8138
8139 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
8140
8141         [BZ #13673]
8142         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
8143         * stdio-common/bug-vfprintf-nargs.c: Likewise.
8144         * sysdeps/i386/crti.S: Likewise.
8145         * sysdeps/i386/crtn.S: Likewise.
8146         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
8147         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
8148         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
8149         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
8150         * sysdeps/sh/crti.S: Likewise.
8151         * sysdeps/sh/crtn.S: Likewise.
8152         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
8153
8154         [BZ #13673]
8155         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
8156         with URL.
8157         * locale/programs/locfile-kw.gperf: Likewise.
8158         * locale/programs/charmap-kw.h: Regenerated.
8159         * locale/programs/locfile-kw.h: Likewise.
8160
8161         [BZ #13673]
8162         * intl/plural.y: Replace FSF snail mail address with URL.
8163         * intl/plural.c: Regenerated.
8164
8165 2012-03-09  Richard Henderson  <rth@twiddle.net>
8166
8167         * include/math_private.h: Remove file.
8168         * math/math_private.h: Move file ...
8169         * sysdeps/generic/math_private.h: ... here.
8170
8171         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
8172         * sysdeps/powerpc/fpu/math_private.h: Likewise.
8173         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8174
8175         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
8176         and <math_private.h>.
8177         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
8178         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
8179         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8180         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8181         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8182         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
8183         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
8184         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8185         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
8186         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8187         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8188         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8189         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8190         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8191         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
8192         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8193         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8194         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8195         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8196         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8197         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8198         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
8199         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
8200         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8201         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8202         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8203         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8204         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8205         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8206         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8207         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8208         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8209         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8210         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8211         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8212         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8213         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8214         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
8215         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
8216         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8217         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
8218         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
8219         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
8220         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
8221         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
8222         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
8223         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8224         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8225         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8226         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
8227         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8228         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8229         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
8230         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8231         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
8232         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8233         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8234         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
8235         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
8236         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
8237         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8238         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8239         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8240         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8241         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8242         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
8243         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
8244         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8245         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
8246         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
8247         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
8248         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8249         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
8250         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8251         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
8252         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
8253         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
8254         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8255         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
8256         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8257         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
8258         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8259         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
8260         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8261         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8262         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
8263         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
8264         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8265         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
8266         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8267         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8268         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
8269         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8270         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8271         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
8272         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
8273         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8274         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8275         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8276         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8277         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
8278         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
8279         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
8280         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
8281         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8282         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
8283         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8284         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
8285         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8286         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8287         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8288         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8289         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8290         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8291         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8292         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8293         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8294         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
8295         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8296         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8297         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8298         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
8299         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8300         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
8301         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8302         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
8303         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8304         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
8305         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
8306         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8307         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8308         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8309         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8310         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8311         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8312         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
8313         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8314         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8315         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
8316         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8317         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8318         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
8319         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
8320         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
8321         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
8322         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
8323         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
8324         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8325         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8326         * sysdeps/ieee754/k_standard.c: Likewise.
8327         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
8328         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
8329         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8330         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
8331         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8332         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
8333         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
8334         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8335         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
8336         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8337         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8338         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
8339         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8340         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
8341         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
8342         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8343         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
8344         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
8345         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8346         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
8347         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
8348         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
8349         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8350         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8351         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8352         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
8353         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8354         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8355         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
8356         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8357         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8358         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
8359         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
8360         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8361         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
8362         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
8363         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
8364         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
8365         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
8366         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
8367         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8368         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8369         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8370         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
8371         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8372         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8373         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
8374         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8375         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8376         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8377         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8378         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
8379         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8380         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8381         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8382         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8383         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
8384         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
8385         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
8386         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8387         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8388         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8389         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
8390         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
8391         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8392         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8393         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
8394         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8395         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
8396         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
8397         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8398         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8399         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
8400         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
8401         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
8402         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8403         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
8404         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
8405         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8406         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
8407         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8408         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8409         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8410         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8411         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
8412         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8413         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
8414         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
8415         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
8416         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
8417         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
8418         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
8419         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
8420         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
8421         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
8422         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
8423         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
8424         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
8425         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
8426         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
8427         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
8428         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
8429         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8430         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
8431         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
8432         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
8433         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
8434         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
8435         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
8436         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
8437         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
8438         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
8439         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
8440         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8441         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
8442         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8443         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
8444         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8445         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8446         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8447         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8448         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8449         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
8450         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8451         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8452         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8453         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
8454         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8455         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
8456         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8457         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
8458         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
8459         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
8460         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
8461         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
8462         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
8463         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
8464         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
8465         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
8466         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8467         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8468         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
8469         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8470         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8471         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
8472         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
8473         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
8474         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
8475         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
8476         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
8477         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
8478         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8479         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
8480         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
8481         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
8482         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
8483         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
8484         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
8485         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
8486         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
8487         * sysdeps/ieee754/s_lib_version.c: Likewise.
8488         * sysdeps/ieee754/s_matherr.c: Likewise.
8489         * sysdeps/ieee754/s_signgam.c: Likewise.
8490         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8491         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8492         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8493         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8494         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8495         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8496         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
8497         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
8498         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
8499         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8500         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8501         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8502         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
8503         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
8504         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
8505         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
8506         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
8507         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
8508         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
8509         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8510         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8511
8512 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
8513
8514         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
8515         * sunrpc/rpc_main.c: Likewise.
8516         * sunrpc/rpc_svcout.c: Likewise.
8517
8518 2012-03-09  David S. Miller  <davem@davemloft.net>
8519
8520         * include/math_private.h: New file.
8521
8522 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
8523
8524         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
8525         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
8526         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
8527         from <bits/socket_type.h>.
8528         (enum __socket_type): Don't define here.
8529         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
8530         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8531         bits/socket_type.h.
8532
8533         [BZ #13566]
8534         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
8535         checking __USE_GNU.
8536
8537         * Makerules ($(inst_includedir)/%.h): New rule.
8538         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
8539         (install-others): Remove variable setting.
8540         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
8541
8542 2012-03-08  Richard Henderson  <rth@twiddle.net>
8543
8544         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
8545         from macro to inline function; merge with the
8546         !__LIBC_INTERNAL_MATH_INLINES version.
8547         (__ieee754_sqrtf): Likewise.
8548
8549         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
8550         to inline function.
8551         (__rintf, __floor, __floorf): Likewise.
8552
8553         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
8554         macro to inline function.
8555         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
8556
8557         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
8558         not <math/math_private.h>.
8559
8560 2012-03-08  David S. Miller  <davem@davemloft.net>
8561
8562         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
8563         copyright year.
8564         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
8565
8566 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
8567
8568         * resolv/gai_misc.c (handle_requests): Fix struct timespec
8569         normalization.
8570         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
8571         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
8572
8573 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
8574
8575         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
8576         be defined individually, they must be defined as a block.  Define
8577         S for printing a string instead of hidint the different by using a
8578         macro for adding the 'l'.
8579         * stdio-common/tst-fphex-wide.c: Adjust.
8580
8581 2012-03-07  Marek Polacek  <polacek@redhat.com>
8582
8583         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
8584
8585 2012-03-08  Marek Polacek  <polacek@redhat.com>
8586
8587         [BZ #13806]
8588         * stdio-common/Makefile (tests): Add tst-fphex-wide.
8589         * stdio-common/tst-fphex.c: Define a few macros to make the
8590         test reusable.  Use them.
8591         * stdio-common/tst-fphex-wide.c: New file.
8592
8593 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
8594
8595         [BZ #6911]
8596         * manual/macros.texi (gnusystems): New macro.
8597         (nongnusystems): Likewise.
8598         (gnulinuxhurdsystems): Likewise.
8599         (gnuhurdsystems): Likewise..
8600         (gnulinuxsystems): Likewise.
8601         * manual/charset.texi: Use new macros or @theglibc{} to refer to
8602         variants of the GNU system, not "GNU system".
8603         * manual/conf.texi: Likewise.
8604         * manual/errno.texi: Likewise.  Update example of errno macro
8605         expansion.
8606         * manual/filesys.texi: Likewise.
8607         (getumask): Document as specific to GNU/Hurd.
8608         * manual/install.texi: Likewise.  Reword some references to
8609         GNU/Linux.
8610         * manual/intro.texi: Likewise.
8611         * manual/io.texi: Likewise.
8612         (File Name Portability): Detail which constraints are inapplicable
8613         to all GNU systems and which are only inapplicable to GNU/Hurd.
8614         * manual/job.texi: Likewise.
8615         * manual/llio.texi: Likewise.
8616         (O_NOCTTY): Document as present on GNU/Linux.
8617         * manual/maint.texi: Likewise.
8618         * manual/memory.texi: Likewise.
8619         * manual/pattern.texi: Likewise.
8620         * manual/pipe.texi: Likewise.
8621         * manual/process.texi: Likewise.
8622         * manual/resource.texi: Likewise.
8623         (RUSAGE_CHILDREN): Remove statement about specifying a particular
8624         child on GNU/Hurd.
8625         * manual/setjmp.texi: Likewise.
8626         * manual/signal.texi: Likewise.
8627         * manual/startup.texi: Likewise.
8628         * manual/stdio.texi: Likewise.
8629         * manual/terminal.texi: Likewise.
8630         (ONLCR): Document as POSIX.
8631         (OXTABS): Document availability on GNU/Linux as XTABS.
8632         (ONOEOT): Document availability separately from other bits.
8633         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
8634         * manual/time.texi: Likewise.
8635         * manual/users.texi: Likewise.
8636         * INSTALL: Regenerated.
8637         * sysdeps/gnu/errlist.c: Regenerated.
8638
8639         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
8640         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
8641         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
8642         puts.
8643         * configure: Regenerated.
8644
8645 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
8646
8647         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
8648         default includes instead of AC_HEADER_CHECK.
8649         * sysdeps/i386/configure: Regenerated.
8650
8651         [BZ #10716]
8652         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
8653         * math/s_cacoshf.c (__cacoshf): Likewise.
8654         * math/s_cacoshl.c (__cacoshl): Likewise.
8655         * math/s_casinh.c (__casinh): Set signs of result from argument.
8656         * math/s_casinhf.c (__casinhf): Likewise.
8657         * math/s_casinhl.c (__casinhl): Likewise.
8658         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
8659         (casinh_test): Add more tests.
8660         * sysdeps/i386/fpu/libm-test-ulps: Update.
8661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8662
8663 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
8664
8665         * po/zh_TW.po: Update from translation team.
8666
8667         * login/Makefile (distribute): Remove variable.
8668         * catgets/Makefile: Likewise.
8669         * mach/Makefile: Likewise.
8670         * malloc/Makefile: Likewise.
8671         * misc/Makefile: Likewise.
8672         * iconv/Makefile: Likewise.
8673         * nscd/Makefile: Likewise.
8674         * hurd/Makefile: Likewise.
8675         * manual/Makefile: Likewise.
8676         * locale/Makefile: Likewise.
8677         * intl/Makefile: Likewise.
8678         * conform/Makefile: Likewise.
8679         * nss/Makefile: Likewise.
8680         * time/Makefile: Likewise.
8681         * soft-fp/Makefile: Likewise.
8682         * dirent/Makefile: Likewise.
8683         * gmon/Makefile: Likewise.
8684         * po/Makefile: Likewise.
8685         * rt/Makefile: Likewise.
8686         * socket/Makefile: Likewise.
8687         * math/Makefile: Likewise.
8688         * signal/Makefile: Likewise.
8689         * debug/Makefile: Likewise.
8690         * elf/Makefile: Likewise.
8691         * timezone/Makefile: Likewise.
8692         * stdlib/Makefile: Likewise.
8693         * iconvdata/Makefile: Likewise.
8694         * sunrpc/Makefile: Likewise.
8695         * io/Makefile: Likewise.
8696         * argp/Makefile: Likewise.
8697         * inet/Makefile: Likewise.
8698         * hesiod/Makefile: Likewise.
8699         * grp/Makefile: Likewise.
8700         * csu/Makefile: Likewise.
8701         * wctype/Makefile: Likewise.
8702         * crypt/Makefile: Likewise.
8703         * libio/Makefile: Likewise.
8704         * string/Makefile: Likewise.
8705         * nis/Makefile: Likewise.
8706         * resolv/Makefile: Likewise.
8707         * stdio-common/Makefile: Likewise.
8708         * wcsmbs/Makefile: Likewise.
8709         * dlfcn/Makefile: Likewise.
8710         * posix/Makefile: Likewise.
8711
8712         [BZ #6959]
8713         * timezone/Makefile: Don't install timezone files, just the programs
8714         and scripts.
8715
8716 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
8717
8718         * nss/databases.def: Add missing gshadow entry.
8719
8720         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
8721
8722 2012-03-06  Marek Polacek  <polacek@redhat.com>
8723
8724         [BZ #13726]
8725         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
8726         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
8727         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
8728         * stdio-common/tst-long-dbl-fphex.c: New file.
8729
8730 2012-03-06  David S. Miller  <davem@davemloft.net>
8731
8732         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8733         (set_obp_int): New function.
8734         (get_obp_int): New function.
8735         (__get_clockfreq_via_dev_openprom): Likewise.
8736         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
8737         Avoid unused variable warnings on 'val' and use builtin_expect.
8738         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
8739         __builtin_expect.
8740         (INLINE_CLONE_SYSCALL): Likewise.
8741
8742 2012-03-05  David S. Miller  <davem@davemloft.net>
8743
8744         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8745
8746 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
8747
8748         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8749
8750         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
8751         only for |x| >= 40.
8752         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8753
8754 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
8755
8756         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
8757         Replace gettimeofday with __vdso_gettimeofday.
8758
8759         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8760         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
8761         __vdso_clock_gettime and __vdso_getcpu.
8762
8763         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
8764         time with __vdso_time.
8765
8766 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
8767
8768         * manual/lang.texi (size_t): Note types to which size_t may be
8769         equivalent with the GNU C Library, but do not describe when
8770         differences between them are significant.
8771
8772 2012-03-05  Andreas Jaeger  <aj@suse.de>
8773
8774         * sysdeps/i386/fpu/libm-test-ulps: Update.
8775
8776 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
8777
8778         [BZ #3976]
8779         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
8780         (__ieee754_pow): Save and restore rounding mode and use
8781         round-to-nearest for main computations.
8782         * math/libm-test.inc (pow_test_tonearest): New function.
8783         (pow_test_towardzero): Likewise.
8784         (pow_test_downward): Likewise.
8785         (pow_test_upward): Likewise.
8786         (main): Call the new functions.
8787         * sysdeps/i386/fpu/libm-test-ulps: Update.
8788         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8789
8790         [BZ #3976]
8791         * math/libm-test.inc (cosh_test_tonearest): New function.
8792         (cosh_test_towardzero): Likewise.
8793         (cosh_test_downward): Likewise.
8794         (cosh_test_upward): Likewise.
8795         (sinh_test_tonearest): Likewise.
8796         (sinh_test_towardzero): Likewise.
8797         (sinh_test_downward): Likewise.
8798         (sinh_test_upward): Likewise.
8799         (main): Call the new functions.
8800         * sysdeps/i386/fpu/libm-test-ulps: Update.
8801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8802
8803 2012-03-05  Tom de Vries  <tom@codesourcery.com>
8804
8805         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
8806         default stack guard is set in last bytes.
8807         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
8808
8809 2012-03-05  Kees Cook  <keescook@chromium.org>
8810
8811         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
8812
8813         [BZ #13656]
8814         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
8815         possibly allocate from heap instead of stack.
8816         * stdio-common/bug-vfprintf-nargs.c: New file.
8817         * stdio-common/Makefile (tests): Add nargs overflow test.
8818
8819 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
8820
8821         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8822
8823 2012-03-03  Marek Polacek  <polacek@redhat.com>
8824
8825         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
8826         * math/math_private.h: Likewise.
8827         * stdlib/tst-strtod.c: Likewise.
8828         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8829         * sysdeps/x86_64/bits/atomic.h: Likewise.
8830
8831 2012-03-02  David S. Miller  <davem@davemloft.net>
8832
8833         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
8834         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
8835         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
8836         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
8837         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
8838         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
8839         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
8840         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
8841
8842 2012-03-02  Roland McGrath  <roland@hack.frob.com>
8843
8844         [BZ #13792]
8845         * manual/examples/README: New file, says the example source files
8846         can be used under GPL>=2.
8847         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
8848         line containing just "*/".
8849         * manual/examples/add.c: Add copyright header (GPL>=2).
8850         * manual/examples/argp-ex1.c: Likewise.
8851         * manual/examples/argp-ex2.c: Likewise.
8852         * manual/examples/argp-ex3.c: Likewise.
8853         * manual/examples/argp-ex4.c: Likewise.
8854         * manual/examples/atexit.c: Likewise.
8855         * manual/examples/db.c: Likewise.
8856         * manual/examples/dir.c: Likewise.
8857         * manual/examples/dir2.c: Likewise.
8858         * manual/examples/execinfo.c: Likewise.
8859         * manual/examples/filecli.c: Likewise.
8860         * manual/examples/filesrv.c: Likewise.
8861         * manual/examples/fmtmsgexpl.c: Likewise.
8862         * manual/examples/genpass.c: Likewise.
8863         * manual/examples/inetcli.c: Likewise.
8864         * manual/examples/inetsrv.c: Likewise.
8865         * manual/examples/isockad.c: Likewise.
8866         * manual/examples/longopt.c: Likewise.
8867         * manual/examples/memopen.c: Likewise.
8868         * manual/examples/memstrm.c: Likewise.
8869         * manual/examples/mkfsock.c: Likewise.
8870         * manual/examples/mkisock.c: Likewise.
8871         * manual/examples/mygetpass.c: Likewise.
8872         * manual/examples/pipe.c: Likewise.
8873         * manual/examples/popen.c: Likewise.
8874         * manual/examples/rprintf.c: Likewise.
8875         * manual/examples/search.c: Likewise.
8876         * manual/examples/select.c: Likewise.
8877         * manual/examples/setjmp.c: Likewise.
8878         * manual/examples/sigh1.c: Likewise.
8879         * manual/examples/sigusr.c: Likewise.
8880         * manual/examples/stpcpy.c: Likewise.
8881         * manual/examples/strdupa.c: Likewise.
8882         * manual/examples/strftim.c: Likewise.
8883         * manual/examples/strncat.c: Likewise.
8884         * manual/examples/subopt.c: Likewise.
8885         * manual/examples/swapcontext.c: Likewise.
8886         * manual/examples/termios.c: Likewise.
8887         * manual/examples/testopt.c: Likewise.
8888         * manual/examples/testpass.c: Likewise.
8889         * manual/examples/timeval_subtract.c: Likewise.
8890
8891         [BZ #13792]
8892         * manual/time.texi (Elapsed Time): Move timeval_subtract example
8893         function to ...
8894         * manual/timeval_subtract.c.texi: ... here, new file.
8895
8896 2012-03-02  David S. Miller  <davem@davemloft.net>
8897
8898         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
8899
8900 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
8901
8902         [BZ #3976]
8903         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
8904         (__sin): Save and restore rounding mode and use round-to-nearest
8905         for all computations.
8906         (__cos): Save and restore rounding mode and use round-to-nearest
8907         for all computations.
8908         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
8909         <fenv.h>.
8910         (tan): Save and restore rounding mode and use round-to-nearest for
8911         all computations.
8912         * math/libm-test.inc (cos_test_tonearest): New function.
8913         (cos_test_towardzero): Likewise.
8914         (cos_test_downward): Likewise.
8915         (cos_test_upward): Likewise.
8916         (sin_test_tonearest): Likewise.
8917         (sin_test_towardzero): Likewise.
8918         (sin_test_downward): Likewise.
8919         (sin_test_upward): Likewise.
8920         (tan_test_tonearest): Likewise.
8921         (tan_test_towardzero): Likewise.
8922         (tan_test_downward): Likewise.
8923         (tan_test_upward): Likewise.
8924         (main): Call the new functions.
8925         * sysdeps/i386/fpu/libm-test-ulps: Update.
8926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8927
8928         [BZ #10135]
8929         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
8930         small n, then large n, before computing and testing k+n.
8931         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8932         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8933         Likewise.
8934         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8935         Likewise.
8936         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
8937         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8938         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8939         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8940         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8941         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8942         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8943         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
8944         * math/libm-test.inc (scalbn_test): Add more tests.
8945         (scalbln_test): Likewise.
8946
8947         * manual/filesys.texi (mode_t): Describe constraints on size and
8948         signedness, not exact equivalence to a particular type.
8949         (ino_t): Likewise.
8950         (ino64_t): Likewise.
8951         (dev_t): Likewise.
8952         (nlink_t): Likewise.
8953         (blkcnt_t): Likewise.
8954         (blkcnt64_t): Likewise.
8955         * manual/llio.texi (off_t): Likewise.
8956
8957         [BZ #3976]
8958         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
8959         (__ieee754_exp): Save and restore rounding mode and use
8960         round-to-nearest for all computations.
8961         * math/libm-test.inc (exp_test_tonearest): New function.
8962         (exp_test_towardzero): Likewise.
8963         (exp_test_downward): Likewise.
8964         (exp_test_upward): Likewise.
8965         (main): Call the new functions.
8966         * sysdeps/i386/fpu/libm-test-ulps: Update.
8967         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8968
8969 2012-03-01  Chris Demetriou  <cgd@google.com>
8970
8971         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
8972         have predictable order.
8973
8974 2012-03-01  David S. Miller  <davem@davemloft.net>
8975
8976         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
8977
8978         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
8979         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
8980         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
8981         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
8982
8983         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
8984         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
8985         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
8986         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
8987         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
8988         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
8989         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
8990         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
8991         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
8992
8993         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8994
8995         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
8996         * sysdeps/sparc/fpu/libm-test-ulps: to here.
8997         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
8998
8999         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
9000         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9001         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9002         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
9003         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
9004         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
9005         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
9006         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9007         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9008         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
9009         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
9010         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9011         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9012         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
9013         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
9014         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9015         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
9016         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
9017         * sysdeps/sparc/elf/configure: Regenerated.
9018
9019 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
9020
9021         * configure.in (AS, LD): Require binutils 2.20 or later.
9022         * configure: Regenerated.
9023         * manual/install.texi (Tools for Compilation): Give binutils 2.20
9024         as required minimum version.
9025         * INSTALL: Regenerated.
9026
9027         [BZ #2541]
9028         [BZ #4108]
9029         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
9030         before squaring exponent.
9031         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
9032         bottom long double and 27 bits of top long double before squaring
9033         exponent.
9034         * math/libm-test.inc (erfc_test): Add more tests.
9035         * sysdeps/i386/fpu/libm-test-ulps: Update.
9036         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9038
9039 2012-03-01  Kai Tietz  <ktietz@redhat.com>
9040
9041         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
9042         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
9043         containing bit-fields.
9044         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9045         * soft-fp/single.h (_FP_UNION_S): Likewise.
9046         * soft-fp/double.h (_FP_UNION_D): Likewise.
9047
9048 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
9049
9050         [BZ #13786]
9051         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
9052         not include ../strcmp.S.
9053         [USE_AS_STRNCASECMP_L]: Likewise.
9054         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
9055         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
9056         * sysdeps/i386/i686/multiarch/strncase_l-c.c
9057         (__strncasecmp_l_ia32): Define as alias to
9058         __strncasecmp_l_nonascii.
9059
9060         [BZ #5794]
9061         * math/libm-test.inc (expm1_test): Add test for bug 5794.
9062         * sysdeps/i386/fpu/libm-test-ulps: Update.
9063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9064
9065         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
9066         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9067
9068 2012-02-29  Jeff Law  <law@redhat.com>
9069
9070         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
9071         out of bounds read.
9072
9073 2012-02-29  Marek Polacek  <polacek@redhat.com>
9074
9075         [BZ #13706]
9076         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
9077         * elf/Makefile: Add rules to run tst-unused-dep.out.
9078
9079 2012-02-28  David S. Miller  <davem@davemloft.net>
9080
9081         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
9082         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
9083         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
9084         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
9085         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
9086         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
9087
9088 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
9089
9090         * math/libm-test.inc (llround_test): Move one test from
9091         lround_test.  Use TEST_f_L in moved test.
9092         (lround_test): Move misplaced test to llround_test.  Add testcase
9093         from bug 2561.
9094
9095 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
9096
9097         * sysdeps/x86_64/fpu/e_expf.S: New file.
9098         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
9099
9100 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
9101
9102         [BZ #13637]
9103         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
9104         of remain_len that may cause incomplete multi-byte character and
9105         false match.
9106         * posix/bug-regex33.c: New file.
9107         * posix/Makefile (tests): Add bug-regex33.
9108
9109 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
9110
9111         * manual/macros.texi: New file.
9112         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
9113         * manual/libc.texinfo: Include macros.texi.
9114         * manual/creatute.texi: Likewise.
9115         * manual/install.texi: Likewise.
9116         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
9117         @glibcadj{} in references to the GNU C Library.
9118         * manual/charset.texi: Likewise.
9119         * manual/conf.texi: Likewise.
9120         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
9121         when not using those macros.
9122         * manual/creature.texi: Likewise.
9123         * manual/crypt.texi: Likewise.
9124         * manual/errno.texi: Likewise.
9125         * manual/filesys.texi: Likewise.
9126         * manual/header.texi: Likewise.
9127         * manual/install.texi: Likewise.
9128         * manual/intro.texi: Likewise.
9129         * manual/io.texi: Likewise.
9130         * manual/job.texi: Likewise.
9131         * manual/lang.texi: Likewise.
9132         * manual/libc.texiinfo: Likewise.
9133         * manual/llio.texi: Likewise.
9134         * manual/locale.texi: Likewise.
9135         * manual/maint.texi: Likewise.
9136         * manual/math.texi: Likewise.
9137         * manual/memory.texi: Likewise.
9138         * manual/message.texi: Likewise.
9139         * manual/nss.texi: Likewise.
9140         * manual/pattern.texi: Likewise.
9141         * manual/process.texi: Likewise.
9142         * manual/resource.texi: Likewise.
9143         * manual/search.texi: Likewise.
9144         * manual/setjmp.texi: Likewise.
9145         * manual/signal.texi: Likewise.
9146         * manual/socket.texi: Likewise.
9147         * manual/startup.texi: Likewise.
9148         * manual/stdio.texi: Likewise.
9149         * manual/string.texi: Likewise.
9150         * manual/sysinfo.texi: Likewise.
9151         * manual/syslog.texi: Likewise.
9152         * manual/terminal.texi: Likewise.
9153         * manual/time.texi: Likewise.
9154         * manual/users.texi: Likewise.
9155         * INSTALL: Regenerated.
9156         * NOTES: Regenerated.
9157         * sysdeps/gnu/errlist.c: Regenerated.
9158
9159 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
9160
9161         * include/dirent.h: Include <dirstream.h> before
9162         <dirent/dirent.h>.
9163
9164 2012-02-28  David S. Miller  <davem@davemloft.net>
9165
9166         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
9167         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
9168         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
9169         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
9170
9171 2012-02-27  David S. Miller  <davem@davemloft.net>
9172
9173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
9174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
9175         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
9176         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
9177
9178         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
9179         frame pointer instead of stack pointer relative arg slot.
9180         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
9181         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
9182         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
9183
9184 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
9185
9186         [BZ #3992]
9187         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
9188
9189 2012-02-27  David S. Miller  <davem@davemloft.net>
9190
9191         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
9192         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
9193         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9194         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
9195         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
9196         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
9197         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
9198         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
9199
9200 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
9201
9202         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
9203         later.  Allow versions 5-9.
9204         * configure: Regenerated.
9205         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
9206         required minimum version and 4.6 as recommended version.  Do not
9207         mention bugs in GCC 2.7 and 2.8.
9208         * INSTALL: Regenerated.
9209
9210 2012-02-27  David S. Miller  <davem@davemloft.net>
9211
9212         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
9213         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
9214         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
9215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
9216         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
9217         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
9218         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
9219         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
9220
9221         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
9222         manipulate bits before adding and subtracting TWO112[sx].
9223         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9224
9225 2012-02-27  Roland McGrath  <roland@hack.frob.com>
9226
9227         [BZ #13775]
9228         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
9229         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
9230         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
9231         being in POSIX, because they are in 1003.1-2008.
9232
9233         * rt/tst-aio.c: Include <fcntl.h>.
9234         * rt/tst-aio7.c: Likewise.
9235         * rt/tst-aio64.c: Likewise.
9236
9237         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
9238
9239 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
9240
9241         * manual/install.texi (--with-headers): Describe headers as
9242         interface headers, not private headers.
9243         (Specific advice for GNU/Linux systems): Describe use of headers
9244         from "make headers_install", not private headers from older
9245         kernels.
9246         * INSTALL: Regenerated.
9247         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
9248         Change to 2.6.19.
9249         * sysdeps/unix/sysv/linux/configure: Regenerated.
9250
9251         * manual/llio.texi (fclean): Remove documentation.
9252
9253         * manual/Makefile (libc-texi-generated): New variable.  Include
9254         version.texi.
9255         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
9256         $(libc-texi-generated), not duplicated list of files.
9257         (version.texi, stamp-version): New rules.
9258         (realclean): Remove $(libc-texi-generated), not individual files
9259         from that list.  Do not remove dir-add.texinfo.
9260         * manual/libc.texinfo: Comment out uses of edition numbers and
9261         references to printed manual.  Remove last-updated dates.
9262         (EDITION): Comment out.
9263         (ISBN): Likewise.
9264         (VERSION, UPDATED): Remove.
9265         (version.texi): Include.
9266
9267 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
9268
9269         * sysdeps/posix/spawni.c: Include <signal.h>.
9270         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
9271         * sysdeps/pthread/aio_fsync.c: Likewise.
9272
9273 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
9274
9275         * conform/Makefile (tests): Run only when not cross-compiling and
9276         when fast-check is not defined.
9277
9278         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
9279         * conform/data/limits.h-data: Fixes for POSIX2008.
9280         * conform/run-conformtest.sh: Run all tests.
9281         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
9282         headers.
9283         * include/bits/dlfcn.h: Likewise.
9284         * include/langinfo.h: Likewise.
9285         * include/monetary.h: Likewise.
9286         * include/sys/poll.h: Likewise.
9287
9288         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
9289         for __USE_GNU.
9290         * posix/spawn.h: Define __need_sigset_t.
9291         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
9292         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
9293         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
9294         to get sigevent_t only.
9295         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
9296         only for __USE_GNU.
9297         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9298         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
9299         process_vm_writev only for __USE_GNU.
9300         * termios/termios.h: Declare tcgetsid also for POSIX2008.
9301
9302         * conform/Makefile: For now ignore errors from run-conformtest.
9303         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
9304         POSIX to avoid namespace pollution.  Don't prepend headers.
9305         * conform/data/aio.h-data: Fixes for POSIX testing.
9306         * conform/data/fcntl.h-data: Likewise.
9307         * conform/data/glob.h-data: Likewise.
9308         * conform/data/grp.h-data: Likewise.
9309         * conform/data/pthread.h-data: Likewise.
9310         * conform/data/pwd.h-data: Likewise.
9311         * conform/data/signal.h-data: Likewise.
9312         * conform/data/spawn.h-data: Likewise.
9313         * conform/data/stdio.h-data: Likewise.
9314         * conform/data/stdlib.h-data: Likewise.
9315         * conform/data/stropts.h-data: Likewise.
9316         * conform/data/sys/mman.h-data: Likewise.
9317         * conform/data/sys/stat.h-data: Likewise.
9318         * conform/data/sys/types.h-data: Likewise.
9319         * conform/data/sys/wait.h-data: Likewise.
9320         * conform/data/time.h-data: Likewise.
9321         * conform/data/unistd.h-data: Likewise.
9322         * conform/data/utime.h-data: Likewise.
9323
9324         * io/sys/stat.h: fchmod was always in POSIX.
9325         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
9326         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
9327         * rt/aio.h: Define __need_timespec before including <time.h>.
9328         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
9329         struct.  Add forward declaration of pthread_attr_t and use it in
9330         sigevent.
9331         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9332         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9333         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
9334         always remove CLK_TCK definition.
9335
9336 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
9337
9338         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
9339
9340 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
9341
9342         * conform/run-conformtest.sh: New file.
9343         * conform/Makefile: Run run-conformtest for tests.
9344         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
9345         support.
9346
9347         * conform/data/uchar.h-data: New file.
9348         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
9349         * conform/data/arpa/inet.h-data: Likewise.
9350         * conform/data/assert.h-data: Likewise.
9351         * conform/data/complex.h-data: Likewise.
9352         * conform/data/cpio.h-data: Likewise.
9353         * conform/data/ctype.h-data: Likewise.
9354         * conform/data/dirent.h-data: Likewise.
9355         * conform/data/dlfcn.h-data: Likewise.
9356         * conform/data/errno.h-data: Likewise.
9357         * conform/data/fcntl.h-data: Likewise.
9358         * conform/data/float.h-data: Likewise.
9359         * conform/data/fmtmsg.h-data: Likewise.
9360         * conform/data/fnmatch.h-data: Likewise.
9361         * conform/data/ftw.h-data: Likewise.
9362         * conform/data/glob.h-data: Likewise.
9363         * conform/data/grp.h-data: Likewise.
9364         * conform/data/iconv.h-data: Likewise.
9365         * conform/data/inttypes.h-data: Likewise.
9366         * conform/data/langinfo.h-data: Likewise.
9367         * conform/data/libgen.h-data: Likewise.
9368         * conform/data/limits.h-data: Likewise.
9369         * conform/data/locale.h-data: Likewise.
9370         * conform/data/math.h-data: Likewise.
9371         * conform/data/monetary.h-data: Likewise.
9372         * conform/data/mqueue.h-data: Likewise.
9373         * conform/data/ndbm.h-data: Likewise.
9374         * conform/data/net/if.h-data: Likewise.
9375         * conform/data/netdb.h-data: Likewise.
9376         * conform/data/netinet/in.h-data: Likewise.
9377         * conform/data/nl_types.h-data: Likewise.
9378         * conform/data/poll.h-data: Likewise.
9379         * conform/data/pthread.h-data: Likewise.
9380         * conform/data/pwd.h-data: Likewise.
9381         * conform/data/regex.h-data: Likewise.
9382         * conform/data/sched.h-data: Likewise.
9383         * conform/data/search.h-data: Likewise.
9384         * conform/data/semaphore.h-data: Likewise.
9385         * conform/data/setjmp.h-data: Likewise.
9386         * conform/data/signal.h-data: Likewise.
9387         * conform/data/spawn.h-data: Likewise.
9388         * conform/data/stdarg.h-data: Likewise.
9389         * conform/data/stdio.h-data: Likewise.
9390         * conform/data/stdlib.h-data: Likewise.
9391         * conform/data/string.h-data: Likewise.
9392         * conform/data/strings.h-data: Likewise.
9393         * conform/data/stropts.h-data: Likewise.
9394         * conform/data/sys/ipc.h-data: Likewise.
9395         * conform/data/sys/mman.h-data: Likewise.
9396         * conform/data/sys/msg.h-data: Likewise.
9397         * conform/data/sys/resource.h-data: Likewise.
9398         * conform/data/sys/select.h-data: Likewise.
9399         * conform/data/sys/sem.h-data: Likewise.
9400         * conform/data/sys/shm.h-data: Likewise.
9401         * conform/data/sys/socket.h-data: Likewise.
9402         * conform/data/sys/stat.h-data: Likewise.
9403         * conform/data/sys/statvfs.h-data: Likewise.
9404         * conform/data/sys/time.h-data: Likewise.
9405         * conform/data/sys/timeb.h-data: Likewise.
9406         * conform/data/sys/times.h-data: Likewise.
9407         * conform/data/sys/types.h-data: Likewise.
9408         * conform/data/sys/uio.h-data: Likewise.
9409         * conform/data/sys/un.h-data: Likewise.
9410         * conform/data/sys/utsname.h-data: Likewise.
9411         * conform/data/sys/wait.h-data: Likewise.
9412         * conform/data/syslog.h-data: Likewise.
9413         * conform/data/tar.h-data: Likewise.
9414         * conform/data/termios.h-data: Likewise.
9415         * conform/data/utime.h-data: Likewise.
9416         * conform/data/utmpx.h-data: Likewise.
9417         * conform/data/varargs.h-data: Likewise.
9418         * conform/data/wchar.h-data: Likewise.
9419         * conform/data/wctype.h-data: Likewise.
9420         * conform/data/wordexp.h-data: Likewise.
9421
9422         * include/stropts.h: New file.
9423         * include/uchar.h: New file.
9424         * include/aio.h: Changes to allow conformtest.pl to use the headers.
9425         * include/assert.h: Likewise.
9426         * include/ctype.h: Likewise.
9427         * include/dirent.h: Likewise.
9428         * include/dlfcn.h: Likewise.
9429         * include/fcntl.h: Likewise.
9430         * include/fnmatch.h: Likewise.
9431         * include/glob.h: Likewise.
9432         * include/grp.h: Likewise.
9433         * include/libio.h: Likewise.
9434         * include/locale.h: Likewise.
9435         * include/math.h: Likewise.
9436         * include/net/if.h: Likewise.
9437         * include/netdb.h: Likewise.
9438         * include/netinet/in.h: Likewise.
9439         * include/pthread.h: Likewise.
9440         * include/pwd.h: Likewise.
9441         * include/regex.h: Likewise.
9442         * include/sched.h: Likewise.
9443         * include/search.h: Likewise.
9444         * include/setjmp.h: Likewise.
9445         * include/signal.h: Likewise.
9446         * include/stdio.h: Likewise.
9447         * include/stdlib.h: Likewise.
9448         * include/string.h: Likewise.
9449         * include/sys/cdefs.h: Likewise.
9450         * include/sys/mman.h: Likewise.
9451         * include/sys/msg.h: Likewise.
9452         * include/sys/resource.h: Likewise.
9453         * include/sys/select.h: Likewise.
9454         * include/sys/socket.h: Likewise.
9455         * include/sys/stat.h: Likewise.
9456         * include/sys/statvfs.h: Likewise.
9457         * include/sys/time.h: Likewise.
9458         * include/sys/times.h: Likewise.
9459         * include/sys/uio.h: Likewise.
9460         * include/sys/utsname.h: Likewise.
9461         * include/sys/wait.h: Likewise.
9462         * include/termios.h: Likewise.
9463         * include/time.h: Likewise.
9464         * include/ulimit.h: Likewise.
9465         * include/unistd.h: Likewise.
9466         * include/utime.h: Likewise.
9467         * include/wchar.h: Likewise.
9468         * include/wctype.h: Likewise.
9469         * include/wordexp.h: Likewise.
9470
9471         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
9472
9473         * time/time.h: TIME_UTC must be a macro.
9474         Make timespec_get available for ISO C11 only as well.
9475
9476 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
9477
9478         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
9479         Reported by Peng Haitao <penght@cn.fujitsu.com>.
9480
9481 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9482
9483         * configure.in: Use -o not -a in test for unsupported multi-arch.
9484
9485 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9486
9487         * manual/texinfo.tex: Update to version 2012-01-19.16.
9488
9489 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9490
9491         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
9492
9493 2012-02-24  Roland McGrath  <roland@hack.frob.com>
9494
9495         [BZ #13738]
9496         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
9497         * manual/fdl-1.3.texi: New file.
9498         * manual/fdl-1.1.texi: File removed.
9499
9500         [BZ #13738]
9501         * manual/libc.texinfo (FDL_VERSION): New @set.
9502         Use it for mention of FDL in cover text.
9503         (Documentation License): Use it in @include file name.
9504
9505 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9506             Roland McGrath  <roland@hack.frob.com>
9507
9508         [BZ #5461]
9509         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
9510         not LONG_LONG_MAX and LONG_LONG_MIN.
9511         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
9512         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
9513         name.
9514         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
9515
9516 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9517
9518         [BZ #2547]
9519         [BZ #11365]
9520         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
9521         manipulate bits before adding and subtracting TWO23[sx].
9522         * math/libm-test.inc (nearbyint_test): Add more tests.
9523
9524 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9525
9526         [BZ #2548]
9527         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
9528         bits before adding and subtracting TWO23[sx].
9529         * math/libm-test.inc (rint_test): Add more tests.
9530         (rint_test_tonearest): Likewise.
9531         (rint_test_towardzero): Likewise.
9532         (rint_test_downward): Likewise.
9533         (rint_test_upward: Likewise.
9534
9535 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9536
9537         [BZ #10110]
9538         * include/stdc-predef.h: New file.  Extracted from features.h.
9539         * include/features.h: Include stdc-predef.h.
9540         * Makefile (headers): Add stdc-predef.h.
9541         * CONFORMANCE (Compiler limitations): Update.
9542
9543 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9544
9545         * manual/libc.texinfo (VERSION, UPDATED): Revert.
9546
9547 2012-02-21  David S. Miller  <davem@davemloft.net>
9548
9549         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
9550         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
9551
9552 2012-02-20  David S. Miller  <davem@davemloft.net>
9553
9554         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
9555         using a normal save/restore sequence, rather than allocating a
9556         dummy stack frame just to store a frame pointer and restore.
9557         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9558
9559 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9560
9561         * manual/install.texi: Fix stray word in line-wrapped comment.
9562
9563 2012-02-20  David S. Miller  <davem@davemloft.net>
9564
9565         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
9566         both binutils and gcc support GOTDATA.
9567
9568         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
9569         "rd %pc" in the PIC register setup sequences.
9570
9571         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
9572         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
9573         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9574         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9575         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9576         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9577         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9578         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9579         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
9580         (SYSCALL_ERROR_HANDLER): Likewise.
9581         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
9582         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
9583         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
9584         (SYSCALL_ERROR_HANDLER): Likewise.
9585
9586         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
9587         (HAVE_GCC_GOTDATA): New.
9588         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
9589         relocation support in both binutils and gcc.
9590         * sysdeps/sparc/elf/configure: Regenerate.
9591
9592         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
9593         * sysdeps/sparc/sparc32/elf/configure: Delete.
9594         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
9595         * sysdeps/sparc/sparc64/elf/configure: Delete.
9596         * sysdeps/sparc/elf/configure.in: New file.
9597         * sysdeps/sparc/elf/configure: Generate.
9598
9599         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
9600         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
9601         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
9602         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
9603         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
9604
9605 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9606
9607         * manual/install.texi: Do not mention specific glibc version
9608         numbers.
9609         * manual/libc.texinfo (VERSION, UPDATED): Update.
9610         (@copying): Use @copyright{} and range of years.
9611
9612 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9613
9614         [BZ #13695]
9615         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
9616         [crti.S not in sysdirs] (generated): Do not append.
9617         [crti.S not in sysdirs] (omit-deps): Likewise.
9618         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
9619         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
9620         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
9621         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
9622         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
9623         Likewise.
9624         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
9625         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
9626         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
9627         * csu/defs.awk: Remove file.
9628         * sysdeps/generic/initfini.c: Likewise.
9629         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
9630         variable.
9631         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
9632         Likewise.
9633
9634 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9635
9636         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
9637         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
9638         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
9639         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
9640         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9641         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
9642         <bits/epoll.h>.
9643         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
9644         (__EPOLL_PACKED): Define to empty if not defined by
9645         <bits/epoll.h>.
9646         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
9647         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9648         bits/epoll.h.
9649
9650 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9651
9652         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
9653         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
9654         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
9655         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
9656         <bits/timerfd.h>.
9657         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
9658         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9659         bits/timerfd.h.
9660
9661 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9662
9663         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
9664         in C locale.
9665         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9666         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
9667         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
9668         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9669
9670 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
9671
9672         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9673         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
9674
9675 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
9676
9677         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
9678         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
9679         defined.
9680         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
9681         Likewise.
9682         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
9683         entry for 2.16.
9684
9685 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
9686
9687         * math/w_acos.c: Use non-signaling floating-point comparisons.
9688         * math/w_acosf.c: Likewise.
9689         * math/w_acosh.c: Likewise.
9690         * math/w_acoshf.c: Likewise.
9691         * math/w_acoshl.c: Likewise.
9692         * math/w_acosl.c: Likewise.
9693         * math/w_asin.c: Likewise.
9694         * math/w_asinf.c: Likewise.
9695         * math/w_asinl.c: Likewise.
9696         * math/w_atanh.c: Likewise.
9697         * math/w_atanhf.c: Likewise.
9698         * math/w_atanhl.c: Likewise.
9699         * math/w_exp2.c: Likewise.
9700         * math/w_exp2f.c: Likewise.
9701         * math/w_exp2l.c: Likewise.
9702         * math/w_j0.c: Likewise.
9703         * math/w_j0f.c: Likewise.
9704         * math/w_j0l.c: Likewise.
9705         * math/w_j1.c: Likewise.
9706         * math/w_j1f.c: Likewise.
9707         * math/w_j1l.c: Likewise.
9708         * math/w_jn.c: Likewise.
9709         * math/w_jnf.c: Likewise.
9710         * math/w_log.c: Likewise.
9711         * math/w_log10.c: Likewise.
9712         * math/w_log10f.c: Likewise.
9713         * math/w_log10l.c: Likewise.
9714         * math/w_log2.c: Likewise.
9715         * math/w_log2f.c: Likewise.
9716         * math/w_log2l.c: Likewise.
9717         * math/w_logf.c: Likewise.
9718         * math/w_logl.c: Likewise.
9719         * math/w_sqrt.c: Likewise.
9720         * math/w_sqrtf.c: Likewise.
9721         * math/w_sqrtl.c: Likewise.
9722         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9723         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
9724         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9725         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9726         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9727
9728 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9729
9730         [BZ #9739]
9731         * manual/string.texi (strnlen): Use correct parameter name in
9732         equivalent expression.
9733
9734 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9735
9736         [BZ #11174]
9737         * manual/users.texi (seteuid): Consistently use neweuid for
9738         argument name.
9739
9740 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9741
9742         [BZ #13704]
9743         * manual/nss.texi (Services in the NSS configuration): Correct
9744         list of services in example configuration file.
9745
9746 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
9747
9748         [BZ #11322]
9749         * manual/arith.texi: Remove statements about negative zero
9750         behaving identically to zero.
9751
9752 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
9753
9754         [BZ #5993]
9755         * manual/install.texi: Do not document upgrading from libc5.
9756
9757 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
9758
9759         [BZ #4596]
9760         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
9761
9762 2012-02-18  David S. Miller  <davem@davemloft.net>
9763
9764         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
9765         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
9766         %o7 across the call.
9767         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
9768         instead.
9769         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
9770         SETUP_PIC_REG_LEAF.
9771         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9772         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
9773         * sysdeps/sparc/crtn.S: Likewise.
9774
9775 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
9776
9777         * aout/Makefile: Remove.
9778
9779 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
9780
9781         [BZ #13058]
9782         * manual/examples/argp-ex1.c (main): Format definition in GNU
9783         style.
9784         * manual/examples/argp-ex2.c (main): Likewise.
9785         * manual/examples/argp-ex3.c (main): Likewise.
9786         * manual/examples/argp-ex4.c (main): Likewise.
9787         * manual/examples/longopt.c (main): Use new-style prototype
9788         definition.
9789         * manual/examples/strncat.c (main): Specify return type and use
9790         (void) for arguments.
9791         * manual/examples/subopt.c (main): Use char **argv argument.
9792
9793 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9794
9795         [BZ #5077]
9796         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
9797         rounding modes.
9798
9799 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
9800
9801         [BZ #6907]
9802         * manual/string.texi (strchr): Change when strchrnul is
9803         recommended.
9804
9805 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
9806
9807         [BZ #174]
9808         * manual/locale.texi (setlocale): Document LOCPATH.
9809
9810 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9811
9812         [BZ #10210]
9813         * manual/process.texi (execle): Move @dots{} before last argument.
9814
9815 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
9816
9817         [BZ #12047]
9818         * manual/charset.texi (Generic Charset Conversion): Fix typo
9819         (LC_TYPE -> LC_CTYPE).
9820
9821 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
9822
9823         [BZ #5805]
9824         * manual/arith.texi (scalbn): Use @var{} on parameter names.
9825         (scalbnf): Likewise.
9826         (scalbnl): Likewise.
9827         (scalbln): Likewise.
9828         (scalblnf): Likewise.
9829         (scalblnl): Likewise.
9830         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
9831         (vwarnx): Likewise.
9832         (verr): Likewise.
9833         (verrx): Likewise.
9834         * manual/filesys.texi (telldir): Use braces around return type.
9835         * manual/llio.texi (mmap): Add space after comma.
9836         (mmap64): Likewise.
9837         * manual/math.texi (jn): Use @var{} on parameter names.
9838         (jnf): Likewise.
9839         (jnl): Likewise.
9840         (yn): Likewise.
9841         (ynf): Likewise.
9842         (ynl): Likewise.
9843         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
9844         line.
9845         * manual/resource.texi (ulimit): Use @dots{} instead of literal
9846         "...".
9847         (sched_get_priority_min): Remove semicolon on @deftypefun line.
9848         (sched_get_priority_max): Likewise.
9849         * manual/signal.texi (sigvec): Add space after comma.
9850         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
9851         names.
9852         (if_indextoname): Likewise.
9853         (if_freenameindex): Likewise.
9854         (sendto): Use ',' instead of '.' in prototype.
9855         * manual/startup.texi (syscall): Use @dots{} instead of literal
9856         "...".
9857         * manual/stdio.texi (__fpending): Separate initial words of
9858         paragraph from @deftypefun line.
9859         * manual/syslog.texi (syslog): Use @dots{} instead of literal
9860         "...".
9861         (vsyslog): Use @var{} on parameter names.
9862         * manual/terminal.texi (stty): Use @var{} on parameter names.
9863         * manual/users.texi (getutmp): Use @var{} on parameter names.
9864         (getutmpx): Likewise.
9865
9866 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9867
9868         [BZ #6884]
9869         * manual/stdio.texi (fopen): Fix typos in description of
9870         ",ccs=STRING".
9871
9872 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
9873
9874         [BZ #4026]
9875         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
9876         get clock_id definition.
9877
9878 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
9879
9880         [BZ #4822]
9881         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
9882         (madvise): Cast every argument to void on its own.
9883
9884 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9885
9886         [BZ #9902]
9887         * manual/startup.texi (Exit Status): Fix typo.
9888
9889 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9890
9891         [BZ #10140]
9892         * manual/examples/argp-ex1.c: Include <stdlib.h>.
9893         * manual/examples/argp-ex2.c: Likewise.
9894         * manual/examples/argp-ex3.c: Likewise.
9895
9896 2012-02-16  Richard Henderson  <rth@redhat.com>
9897
9898         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
9899         * sysdeps/s390/s390-32/initfini.c: Remove.
9900         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
9901         * sysdeps/s390/s390-64/initfini.c: Remove.
9902
9903 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9904
9905         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
9906         compiler output for sysdeps/generic/initfini.c.
9907         * sysdeps/sh/elf/initfini.c: Remove file.
9908
9909 2012-02-16  David S. Miller  <davem@davemloft.net>
9910
9911         [BZ #11494]
9912         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
9913
9914         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
9915         * sysdeps/sparc/crti.S: New file.
9916         * sysdeps/sparc/crtn.S: New file.
9917         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
9918         * sysdeps/sparc/sparc64/Makefile: Likewise.
9919
9920 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
9921
9922         [BZ #3335]
9923         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
9924
9925 2012-02-15  Roland McGrath  <roland@hack.frob.com>
9926
9927         [BZ #4822]
9928         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
9929
9930         * mach/devstream.c (cookie_io_functions_t): Macro removed.
9931         (write, read, close): Likewise.
9932         Patch by Aurelien Jarno <aurelien@aurel32.net>.
9933
9934 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
9935
9936         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
9937         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
9938         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
9939         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
9940         <bits/signalfd.h>.
9941         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
9942         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9943         bits/signalfd.h.
9944
9945 2012-02-14  Marek Polacek  <polacek@redhat.com>
9946
9947         * sysdeps/x86_64/crti.S: New file.
9948         * sysdeps/x86_64/crtn.S: New file.
9949         * sysdeps/x86_64/elf/initfini.c: Remove file.
9950
9951 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
9952
9953         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
9954         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
9955         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
9956         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
9957         <bits/inotify.h>.
9958         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
9959         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9960         bits/inotify.h.
9961
9962 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
9963
9964         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
9965         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
9966         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
9967         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
9968         <bits/eventfd.h>.
9969         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
9970         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9971         bits/eventfd.h.
9972
9973 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
9974
9975         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
9976         __feraiseexcept instead of feraiseexcept.
9977
9978         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
9979         nanosleep invocations.
9980         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
9981         strings, and add error checking for a nanosleep invocations.
9982
9983 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9984
9985         Replace FSF snail mail address with URLs, as per GNU coding standards.
9986         Most of the snail mail addresses were wrong anyway, and omitting
9987         them makes the source code easier to maintain.  Almost all of the
9988         changes are to license notices and to locale LC_IDENTIFICATION
9989         addresses, except for this one:
9990         * manual/libc.texinfo: In "Published by", give the FSF's URL,
9991         not its snail mail address.
9992
9993 2012-02-09  Richard Henderson  <rth@twiddle.net>
9994
9995         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
9996         of kernel-features.h.
9997
9998         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
9999
10000 2012-02-08  Marek Polacek  <polacek@redhat.com>
10001
10002         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
10003         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
10004         * sysdeps/gnu/_G_config.h: Likewise.
10005         * sysdeps/generic/_G_config.h: Likewise.
10006
10007 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
10008
10009         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
10010         tests.
10011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10012
10013         * sysdeps/powerpc/powerpc32/crti.S: New file.
10014         * sysdeps/powerpc/powerpc32/crtn.S: New file.
10015         * sysdeps/powerpc/powerpc64/crti.S: New file.
10016         * sysdeps/powerpc/powerpc64/crtn.S: New file.
10017
10018         * Makeconfig (have-initfini): Don't set.
10019         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
10020         * configure.in (nopic_initfini): Don't substitute.
10021         * config.h.in (HAVE_INITFINI): Don't #undef.
10022         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
10023         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
10024
10025 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
10026
10027         Support crti.S and crtn.S provided directly by architectures.
10028         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
10029         [crti.S in sysdirs] (omit-deps): Likewise.
10030         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
10031         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
10032         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
10033         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
10034         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
10035         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
10036         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
10037         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
10038         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
10039         compiler output for sysdeps/generic/initfini.c.
10040         * sysdeps/i386/elf/Makefile: Remove file.
10041         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
10042
10043 2012-02-07  Marek Polacek  <polacek@redhat.com>
10044
10045         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
10046         * sysdeps/gnu/_G_config.h: Likewise.
10047         * sysdeps/mach/hurd/_G_config.h: Likewise.
10048
10049 2012-02-07  Marek Polacek  <polacek@redhat.com>
10050
10051         * math/Makefile (tests): Add tst-CMPLX2.
10052         * math/tst-CMPLX2.c: New file.
10053
10054 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
10055
10056         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10057
10058         * math/libm-test.inc (jn_test): Add missing L suffix.
10059
10060 2012-02-06  Marek Polacek  <polacek@redhat.com>
10061
10062         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
10063         * sysdeps/i386/fpu/e_powf.S: Likewise.
10064         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10065         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10066         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10067         * sysdeps/i386/fpu/e_pow.S: Likewise.
10068         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
10069         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10070         * sysdeps/i386/fpu/s_expm1.S: Likewise.
10071         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
10072         * sysdeps/i386/fpu/e_log2.S: Likewise.
10073         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10074         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10075         * sysdeps/i386/fpu/e_powl.S: Likewise.
10076         * sysdeps/i386/fpu/s_log1p.S: Likewise.
10077         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10078         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
10079         * sysdeps/i386/fpu/e_logl.S: Likewise.
10080         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
10081         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
10082         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
10083         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
10084         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10085         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10086         * sysdeps/i386/fpu/e_log.S: Likewise.
10087         * sysdeps/i386/fpu/s_cexp.S: Likewise.
10088         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10089         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
10090         * sysdeps/i386/fpu/e_logf.S: Likewise.
10091         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10092         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10093         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
10094         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
10095         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10096         * sysdeps/i386/fpu/e_log10.S: Likewise.
10097         * sysdeps/i386/fpu/s_frexp.S: Likewise.
10098         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10099         * sysdeps/i386/fpu/s_asinh.S: Likewise.
10100         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
10101         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10102         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
10103         * sysdeps/i386/asm-syntax.h: Likewise.
10104         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10105         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10106         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10107         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
10108         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
10109         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10110         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
10111         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
10112         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10113         * sysdeps/powerpc/sysdep.h: Likewise.
10114         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
10115         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10116
10117 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
10118
10119         [BZ #411]
10120         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
10121
10122 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
10123
10124         * sysdeps/i386/sysdep.h: Include <features.h>.
10125         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
10126         version.
10127
10128 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
10129
10130         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
10131         Define.
10132         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
10133         LOAD_PIC_REG_STR.
10134
10135 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10136
10137         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
10138         (SETUP_PIC_REG): Use GET_PC_THUNK.
10139         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
10140         macro.
10141
10142 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10143
10144         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
10145         for non-PIC compilation.
10146         (SETUP_PIC_REG): Add .p2align directive.
10147         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
10148         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
10149         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10150         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10151         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
10152         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10153         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10154         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10155         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10156         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10157         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10158         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10159         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10160         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10161         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10162         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10163         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10164         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10165         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10166         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10167         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10168         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10169         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10170         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
10171         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
10172         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
10173         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10174         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10175         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10176         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10177         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10178         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10179         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10180         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10181         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10182         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10183         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10184         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10185         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10186         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10187         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10188
10189 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10190
10191         * math/tst-CMPLX.c: Include <stdio.h>.
10192
10193 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
10194
10195         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
10196         float.
10197         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
10198         * sysdeps/sparc/bits/mathdef.h: Likewise.
10199
10200 2012-01-31  Marek Polacek  <polacek@redhat.com>
10201
10202         * libio/libio.h: Don't define _PARAMS.
10203         * locale/programs/config.h: Don't define PARAMS.
10204         * stdlib/strtol_l.c: Likewise.
10205         (__strtol_l): Remove PARAMS from the prototype.
10206
10207 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
10208
10209         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
10210         names.  Just use the correct names.  Remove unnecessary wrapper
10211         functions.
10212         * malloc/arena.c: Likewise.
10213         * malloc/hooks.c: Likewise.
10214
10215         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
10216         ARENA_TEST says not to.  Simplify test for creation of a new arena.
10217         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
10218
10219 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
10220
10221         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
10222         into tail calls.
10223         (update_get_addr): New function.
10224         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
10225         GET_ADDR_MODULE parameter.
10226
10227 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
10228
10229         * crypt/cert.c: Remove __STDC__ conditionals.
10230         * crypt/crypt-entry.c: Likewise.
10231         * crypt/crypt_util.c: Likewise.
10232         * libio/filedoalloc.c: Likewise.
10233         * libio/fileops.c: Likewise.
10234         * libio/genops.c: Likewise.
10235         * libio/iofclose.c: Likewise.
10236         * libio/iofdopen.c: Likewise.
10237         * libio/iofopen.c: Likewise.
10238         * libio/iofopen64.c: Likewise.
10239         * libio/iogetdelim.c: Likewise.
10240         * libio/iopopen.c: Likewise.
10241         * libio/obprintf.c: Likewise.
10242         * libio/oldfileops.c: Likewise.
10243         * libio/oldiofclose.c: Likewise.
10244         * libio/oldiofdopen.c: Likewise.
10245         * libio/oldiofopen.c: Likewise.
10246         * libio/oldiopopen.c: Likewise.
10247         * libio/wfiledoalloc.c: Likewise.
10248         * libio/wgenops.c: Likewise.
10249         * locale/programs/xmalloc.c: Likewise.
10250         * misc/syslog.c: Likewise.
10251         * stdio-common/xbug.c: Likewise.
10252         * string/memchr.c: Likewise.
10253         * string/memcmp.c: Likewise.
10254         * string/memrchr.c: Likewise.
10255         * string/rawmemchr.c: Likewise.
10256         * sysdeps/posix/getcwd.c: Likewise.
10257         * time/strftime_l.c: Likewise.
10258
10259 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
10260
10261         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
10262         * config.make.in (config-cflags-sse2avx): Define.
10263         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
10264         Fix typo.
10265
10266 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
10267
10268         * scripts/config.guess: Update from upstream config git repository.
10269         * scripts/config.sub: Likewise.
10270
10271 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
10272
10273         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
10274         (EM_NUM): Update.
10275         (R_TILEPRO_*, R_TILEGX_*): New macros.
10276
10277         * scripts/firstversions.awk: Fix bug in version range handling.
10278
10279         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
10280
10281         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
10282
10283         * include/sys/epoll.h: New file.
10284         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
10285         libc_hidden_def.
10286
10287 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
10288
10289         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
10290         Avoid unnecessary __WORDSIZE == 64 test.
10291         (fmaxf): Use VEX format if possible.
10292         (fmax): Likewise.
10293         (fminf): Likewise.
10294         (fmin): Likewise.
10295
10296         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
10297         * math/math_private.h: Remove libc_fegetround* and
10298         libc_fesetround*.
10299         * sysdeps/i386/configure.in: Check for -msse2avx.
10300         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
10301         also if SSE2AVX is defined.
10302         Remove libc_fegetround* and libc_fesetround*.
10303         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
10304         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
10305         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
10306         of HAS_YMM_USABLE.
10307         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10308         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10309         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10310         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10311         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10312
10313         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
10314
10315 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10316
10317         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
10318         size is not set.
10319         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10320
10321 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
10322
10323         [BZ #13618]
10324         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
10325         relocation.
10326         * Makeconfig (libm): Define.
10327         * elf/Makefile: Add rules to build and run tst-relsort1.
10328         * elf/tst-relsort1.c: New file.
10329         * elf/tst-relsort1mod1.c: New file.
10330         * elf/tst-relsort1mod2.c: New file.
10331
10332 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
10333
10334         * math/s_ldexp.c: Remove __STDC__ conditionals.
10335         * math/s_ldexpf.c: Likewise.
10336         * math/s_ldexpl.c: Likewise.
10337         * math/s_nextafter.c: Likewise.
10338         * math/s_nexttowardf.c: Likewise.
10339         * math/s_significand.c: Likewise.
10340         * math/s_significandf.c: Likewise.
10341         * math/s_significandl.c: Likewise.
10342         * math/w_jnl.c: Likewise.
10343         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10344         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10345         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10346         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10347         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10348         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10349         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
10350         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10351         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10352         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10353         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10354         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10355         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10356         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10357         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10358         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10359         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10360         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10361         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10362         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10363         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10364         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10365         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10366         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10367         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10368         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10369         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10370         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10371         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10372         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10373         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10374         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10375         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10376         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10377         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10378         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10379         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10380         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10381         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10382         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10383         * sysdeps/ieee754/k_standard.c: Likewise.
10384         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10385         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10386         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10387         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10388         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10389         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10390         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10391         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10392         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10393         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10394         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10395         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10396         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10397         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10398         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10399         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10400         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10401         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10402         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10403         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10404         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10405         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10406         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10407         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10408         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10409         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10410         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10411         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10412         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10413         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10414         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10415         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
10416         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10417         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10418         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10419         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10420         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10421         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10422         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10423         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10424         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10425         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10426         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10427         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10428         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10429         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
10430         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
10431         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10432         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10433         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10434         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10435         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10436         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10437         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10438         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10439         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10440         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10441         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10442         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10443         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10444         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10445         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10446         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10447         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10448         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10449         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10450         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10451         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10452         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10453         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10454         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10455         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10456         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10457         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10458         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10459         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10460         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10461         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10462         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10463         * sysdeps/ieee754/s_matherr.c: Likewise.
10464         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10465         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10466         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10467         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10468
10469 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
10470
10471         * crypt/md5.h: Remove __STDC__ conditionals.
10472         * libio/libioP.h: Likewise.
10473         * locale/programs/config.h: Likewise.
10474         * sysdeps/generic/sysdep.h: Likewise.
10475         * sysdeps/i386/asm-syntax.h: Likewise.
10476         * sysdeps/s390/asm-syntax.h: Likewise.
10477         * sysdeps/unix/sysdep.h: Likewise.
10478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10480
10481 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
10482
10483         * libio/libio.h: Remove __STDC__ conditionals.
10484         * malloc/obstack.h: Likewise.
10485         * math/complex.h: Likewise.
10486         * math/math.h: Likewise.
10487         * sysdeps/generic/_G_config.h: Likewise.
10488         * sysdeps/gnu/_G_config.h: Likewise.
10489         * sysdeps/mach/hurd/_G_config.h: Likewise.
10490         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10491         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
10492         * sysdeps/sparc/bits/mathdef.h: Likewise.
10493
10494 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
10495
10496         [BZ #13583]
10497         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
10498         Clean up HAS_* macros.
10499         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
10500         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
10501         possible.
10502         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
10503         HAS_AVX.
10504         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10505         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10506         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10507         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10508         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10509
10510 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
10511
10512         * elf/tst-unique3.cc (gets): Remove declaration.
10513         * elf/tst-unique3lib.cc (gets): Likewise.
10514         * elf/tst-unique3lib2.cc (gets): Likewise.
10515         * elf/tst-unique4.cc (gets): Likewise.
10516
10517 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
10518
10519         * include/stdio.h: Add C++ protection.  Add gets declarations and
10520         definitions.
10521         * debug/tst-chk1.c: Don't declare gets here.
10522         * stdio-common/tst-gets.c: Likewise.
10523
10524 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
10525
10526         * posix/glob: Remove directory.
10527
10528 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
10529
10530         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
10531
10532 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
10533
10534         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
10535         of the non-standard EPFNOSUPPORT.
10536
10537 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10538
10539         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
10540         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
10541         ANYWHERE set to 1 only on KERN_NO_SPACE error.
10542
10543 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
10544
10545         * wcsmbs/uchar.h: Test __STDC_VERSION__.
10546
10547 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
10548
10549         * nscd/aicache.c (addhstaiX): Do not cache negative results of
10550         transient errors.
10551         * nscd/grpcache.c (cache_addgr): Likewise.
10552         * nscd/hstcache.c (cache_addhst): Likewise.
10553         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10554         * nscd/pwdcache.c (cache_addpw): Likewise.
10555         * nscd/servicescache.c (cache_addserv): Likewise.
10556
10557 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
10558
10559         * malloc/malloc.c: Various cleanups.
10560         * malloc/hooks.c: Likewise.
10561
10562         * stdlib/Makefile (tests): Add bug-fmtmsg1.
10563         * stdlib/bug-fmtmsg1.c: New file.
10564
10565         * stdlib/fmtmsg.c (init): Add missing unlock.
10566         Patch by Peng Haitao <penght@cn.fujitsu.com>.
10567
10568 2012-01-12  Marek Polacek  <polacek@redhat.com>
10569
10570         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
10571         and _GNU_SOURCE.
10572
10573 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
10574
10575         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
10576         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
10577         macro to ensure uniqueness of label name.
10578         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
10579         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
10580
10581 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
10582
10583         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
10584
10585         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
10586         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10587         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10588         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
10589
10590 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
10591
10592         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
10593
10594         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
10595         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10596         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10597
10598         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
10599
10600         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
10601         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10602         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10603         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
10604
10605         * math/bits/math-finite.h: Add ldexp support.
10606
10607 2012-01-10  Marek Polacek  <polacek@redhat.com>
10608
10609         * locale/programs/localedef.h (show_archive_content): Add noreturn
10610         attribute.
10611
10612 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
10613
10614         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
10615
10616 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10617
10618         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
10619
10620         * io/Makefile (headers): Add bits/poll2.h.
10621
10622 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
10623
10624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
10625         typo #include statement.
10626
10627 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10628
10629         * include/sys/cdefs.h: Define __attribute_alloc_size.
10630         * catgets/gencat.c: Add alloc_size attribute and apply consistently
10631         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
10632         * elf/pldd.c: Likewise.
10633         * iconv/iconv_charmap.c: Likewise.
10634         * iconv/iconvconfig.c: Likewise.
10635         * iconv/strtab.c: Likewise.
10636         * locale/programs/locale.c: Likewise.
10637         * locale/programs/localedef.h: Likewise.
10638         * locale/programs/simple-hash.c: Likewise.
10639         * nscd/nscd.h: Likewise.
10640         * nss/makedb.c: Likewise.
10641         * sysdeps/generic/ldconfig.h: Likewise.
10642         * locale/programs/localedef.c: Remove xmalloc prototype.
10643         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
10644
10645 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10646
10647         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
10648         appropriate.
10649
10650 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10651
10652         * math/Makefile (tests): Add tst-CMPLX.
10653         * math/tst-CMPLX.c: New file.
10654
10655         * math/complex.h (CMPLXL): Fix typo.
10656
10657         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
10658         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
10659         GLIBC_2.16.
10660         * debug/tst-chk1.c: Add poll and ppoll tests.
10661         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
10662         * include/sys/poll.h: Add hidden proto for ppoll.
10663         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
10664         * sysdeps/mach/hurd/ppoll.c: Likewise.
10665         * io/ppoll.c: Likewise.
10666         * debug/poll_chk.c: New file.
10667         * debug/ppoll_chk.c: New file.
10668         * include/bits/poll2.h: New file.
10669         * io/bits/poll2.h: New file.
10670
10671         [BZ #1350]
10672         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
10673
10674         * configure.in: static is always set to yes.  Remove.
10675         * config.make.in: Don't set build-static.
10676         * Makeconfig: Remove use of build-static.
10677         * dlfcn/Makefile: Likewise.
10678         * elf/Makefile: Likewise.
10679         * math/Makefile: Likewise.
10680         * misc/Makefile: Likewise.
10681         * nptl/Makefile: Likewise.
10682         * sysdeps/mach/hurd/Makefile: Likewise.
10683
10684         * configure.in: PWD_P is not used anymore.
10685         * config.make.in: Remove PWD_P entry.
10686
10687         * configure.in: Remove last remnants of RANLIB.
10688         No need to check for signed size_t anymore.
10689         Don't set libc_commonpagesize and libc_relro_required here for Alpha
10690         and IA-64.
10691         Remove __builtin_expect test because we require at least gcc 3.4.
10692         * aclocal.m4: Likewise.
10693
10694         * wcsmbs/mbrtoc16.c: Implement using towc function.
10695         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
10696         * wcsmbs/wcsmbsload.c: Likewise.
10697         * iconv/gconv_simple.c: Likewise.
10698         * iconv/gconv_int.h: Likewise.
10699         * iconv/gconv_builtin.h: Likewise.
10700         * iconv/iconv_prog.c: Remove CHAR16 handling.
10701
10702         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
10703
10704         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
10705
10706         * configure.in: Remove --with-elf and --enable-bounded options.
10707         Dont set base_machine for ia64.  More non-ELF conditions removed.
10708         Remove testing and setting of leading underscore information.
10709         * config.make.in (build-bounded): Set to no.
10710         * config.h.in: Remove NO_UNDERSCORES entry.
10711         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
10712         them.
10713         * csu/start.c: Remove !NO_UNDERSCORE code.
10714         * locale/localeinfo.h: Likewise.
10715         * sysdeps/generic/machine-gmon.h: Likewise.
10716         * sysdeps/generic/sysdep.h: Likewise.
10717         * sysdeps/i386/sysdep.h: Likewise.
10718         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
10719         * sysdeps/mach/sysdep.h: Likewise.
10720         * sysdeps/s390/s390-32/sysdep.h: Likewise.
10721         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10722         * sysdeps/sh/sysdep.h: Likewise.
10723         * sysdeps/sparc/sparc32/alloca.S: Likewise.
10724         * sysdeps/unix/i386/sysdep.S: Likewise.
10725         * sysdeps/unix/sparc/start.c: Likewise.
10726         * sysdeps/unix/sparc/sysdep.S: Likewise.
10727         * sysdeps/unix/sparc/sysdep.h: Likewise.
10728         * sysdeps/unix/start.c: Likewise.
10729         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10730         * sysdeps/x86_64/sysdep.h: Likewise.
10731
10732 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
10733
10734         [BZ #13553]
10735         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
10736         for non-gcc.
10737         * argp/argp-fmtstream.h: Use const instead __const.
10738         * argp/argp.h: Likewise.
10739         * assert/assert.h: Likewise.
10740         * bits/fenv.h: Likewise.
10741         * bits/sched.h: Likewise.
10742         * bits/sigset.h: Likewise.
10743         * bits/sigthread.h: Likewise.
10744         * catgets/nl_types.h: Likewise.
10745         * conform/data/pthread.h-data: Likewise.
10746         * crypt/crypt-private.h: Likewise.
10747         * crypt/crypt.h: Likewise.
10748         * crypt/crypt_util.c: Likewise.
10749         * ctype/ctype.h: Likewise.
10750         * debug/execinfo.h: Likewise.
10751         * debug/mbsnrtowcs_chk.c: Likewise.
10752         * debug/mbsrtowcs_chk.c: Likewise.
10753         * debug/wcsnrtombs_chk.c: Likewise.
10754         * debug/wcsrtombs_chk.c: Likewise.
10755         * debug/wcstombs_chk.c: Likewise.
10756         * dirent/dirent.h: Likewise.
10757         * dlfcn/dlfcn.h: Likewise.
10758         * elf/neededtest4.c: Likewise.
10759         * grp/grp.h: Likewise.
10760         * gshadow/gshadow.h: Likewise.
10761         * iconv/gconv.h: Likewise.
10762         * iconv/gconv_int.h: Likewise.
10763         * iconv/gconv_simple.c: Likewise.
10764         * iconv/iconv.h: Likewise.
10765         * iconv/loop.c: Likewise.
10766         * iconv/skeleton.c: Likewise.
10767         * include/aio.h: Likewise.
10768         * include/aliases.h: Likewise.
10769         * include/argz.h: Likewise.
10770         * include/arpa/inet.h: Likewise.
10771         * include/assert.h: Likewise.
10772         * include/dirent.h: Likewise.
10773         * include/dlfcn.h: Likewise.
10774         * include/execinfo.h: Likewise.
10775         * include/fcntl.h: Likewise.
10776         * include/fenv.h: Likewise.
10777         * include/glob.h: Likewise.
10778         * include/grp.h: Likewise.
10779         * include/libintl.h: Likewise.
10780         * include/mntent.h: Likewise.
10781         * include/netdb.h: Likewise.
10782         * include/pwd.h: Likewise.
10783         * include/rpc/netdb.h: Likewise.
10784         * include/sched.h: Likewise.
10785         * include/search.h: Likewise.
10786         * include/shadow.h: Likewise.
10787         * include/signal.h: Likewise.
10788         * include/stdio.h: Likewise.
10789         * include/stdlib.h: Likewise.
10790         * include/string.h: Likewise.
10791         * include/sys/socket.h: Likewise.
10792         * include/sys/stat.h: Likewise.
10793         * include/sys/statfs.h: Likewise.
10794         * include/sys/statvfs.h: Likewise.
10795         * include/sys/syslog.h: Likewise.
10796         * include/sys/time.h: Likewise.
10797         * include/sys/uio.h: Likewise.
10798         * include/time.h: Likewise.
10799         * include/unistd.h: Likewise.
10800         * include/utmp.h: Likewise.
10801         * include/wchar.h: Likewise.
10802         * include/wctype.h: Likewise.
10803         * inet/aliases.h: Likewise.
10804         * inet/arpa/inet.h: Likewise.
10805         * inet/netinet/ether.h: Likewise.
10806         * inet/netinet/in.h: Likewise.
10807         * intl/libintl.h: Likewise.
10808         * io/bits/fcntl2.h: Likewise.
10809         * io/fcntl.h: Likewise.
10810         * io/ftw.h: Likewise.
10811         * io/sys/poll.h: Likewise.
10812         * io/sys/stat.h: Likewise.
10813         * io/sys/statfs.h: Likewise.
10814         * io/sys/statvfs.h: Likewise.
10815         * io/utime.h: Likewise.
10816         * libio/bits/stdio.h: Likewise.
10817         * libio/bits/stdio2.h: Likewise.
10818         * libio/libio.h: Likewise.
10819         * libio/libioP.h: Likewise.
10820         * libio/stdio.h: Likewise.
10821         * locale/lc-ctype.c: Likewise.
10822         * locale/locale.h: Likewise.
10823         * login/utmp.h: Likewise.
10824         * malloc/arena.c: Likewise.
10825         * malloc/malloc.c: Likewise.
10826         * malloc/malloc.h: Likewise.
10827         * malloc/mcheck.c: Likewise.
10828         * malloc/mtrace.c: Likewise.
10829         * math/bits/mathcalls.h: Likewise.
10830         * math/fenv.h: Likewise.
10831         * math/math_private.h: Likewise.
10832         * misc/bits/error.h: Likewise.
10833         * misc/bits/syslog.h: Likewise.
10834         * misc/err.h: Likewise.
10835         * misc/error.h: Likewise.
10836         * misc/fstab.h: Likewise.
10837         * misc/mntent.h: Likewise.
10838         * misc/regexp.h: Likewise.
10839         * misc/search.h: Likewise.
10840         * misc/sgtty.h: Likewise.
10841         * misc/sys/mman.h: Likewise.
10842         * misc/sys/syslog.h: Likewise.
10843         * misc/sys/uio.h: Likewise.
10844         * misc/sys/xattr.h: Likewise.
10845         * misc/ttyent.h: Likewise.
10846         * nis/rpcsvc/ypclnt.h: Likewise.
10847         * nss/nss.h: Likewise.
10848         * posix/bits/unistd.h: Likewise.
10849         * posix/fnmatch.h: Likewise.
10850         * posix/glob.h: Likewise.
10851         * posix/sched.h: Likewise.
10852         * posix/spawn.h: Likewise.
10853         * posix/sys/wait.h: Likewise.
10854         * posix/unistd.h: Likewise.
10855         * posix/wordexp.h: Likewise.
10856         * pwd/pwd.h: Likewise.
10857         * resolv/netdb.h: Likewise.
10858         * resource/sys/resource.h: Likewise.
10859         * rt/aio.h: Likewise.
10860         * rt/bits/mqueue2.h: Likewise.
10861         * rt/mqueue.h: Likewise.
10862         * shadow/shadow.h: Likewise.
10863         * signal/signal.h: Likewise.
10864         * socket/send.c: Likewise.
10865         * socket/sendto.c: Likewise.
10866         * socket/sys/socket.h: Likewise.
10867         * stdio-common/printf.h: Likewise.
10868         * stdlib/bits/stdlib.h: Likewise.
10869         * stdlib/fmtmsg.h: Likewise.
10870         * stdlib/monetary.h: Likewise.
10871         * stdlib/stdlib.h: Likewise.
10872         * stdlib/ucontext.h: Likewise.
10873         * streams/stropts.h: Likewise.
10874         * string/argz.h: Likewise.
10875         * string/bits/string2.h: Likewise.
10876         * string/string.h: Likewise.
10877         * string/strings.h: Likewise.
10878         * sunrpc/rpc/auth.h: Likewise.
10879         * sunrpc/rpc/auth_des.h: Likewise.
10880         * sunrpc/rpc/clnt.h: Likewise.
10881         * sunrpc/rpc/netdb.h: Likewise.
10882         * sunrpc/rpc/pmap_clnt.h: Likewise.
10883         * sunrpc/rpc/xdr.h: Likewise.
10884         * sysdeps/generic/inttypes.h: Likewise.
10885         * sysdeps/generic/net/if.h: Likewise.
10886         * sysdeps/generic/sys/swap.h: Likewise.
10887         * sysdeps/gnu/net/if.h: Likewise.
10888         * sysdeps/gnu/utmpx.h: Likewise.
10889         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
10890         * sysdeps/i386/i486/bits/string.h: Likewise.
10891         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
10892         * sysdeps/s390/bits/string.h: Likewise.
10893         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
10894         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
10895         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10896         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
10897         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10898         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10899         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10900         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
10901         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
10902         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
10903         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
10904         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
10905         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
10906         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
10907         * sysdeps/unix/sysv/linux/readv.c: Likewise.
10908         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
10909         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
10910         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10911         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
10912         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
10913         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
10914         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
10915         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
10916         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
10917         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
10918         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
10919         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
10920         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10921         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
10922         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
10923         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
10924         * sysvipc/sys/ipc.h: Likewise.
10925         * sysvipc/sys/msg.h: Likewise.
10926         * sysvipc/sys/sem.h: Likewise.
10927         * sysvipc/sys/shm.h: Likewise.
10928         * termios/termios.h: Likewise.
10929         * time/sys/time.h: Likewise.
10930         * time/time.h: Likewise.
10931         * wcsmbs/bits/wchar2.h: Likewise.
10932         * wcsmbs/uchar.h: Likewise.
10933         * wcsmbs/wchar.h: Likewise.
10934         * wctype/wctype.h: Likewise.
10935
10936         [BZ #13551]
10937         * Makeconfig: Remove all but ELF support including AIX support.
10938         * Makerules: Likewise.
10939         * config.h.in: Likewise.
10940         * config.make.in: Likewise.
10941         * configure: Likewise.
10942         * configure.in: Likewise.
10943         * csu/Makefile: Likewise.
10944         * csu/version.c: Likewise.
10945         * debug/Makefile: Likewise.
10946         * dlfcn/Makefile: Likewise.
10947         * elf/Makefile: Likewise.
10948         * extra-lib.mk: Likewise.
10949         * iconv/Makefile: Likewise.
10950         * include/libc-symbols.h: Likewise.
10951         * include/shlib-compat.h: Likewise.
10952         * resolv/Makefile: Likewise.
10953         * resolv/res_libc.c: Likewise.
10954         * rt/Makefile: Likewise.
10955         * sysdeps/i386/asm-syntax.h: Likewise.
10956         * sysdeps/i386/sysdep.h: Likewise.
10957         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
10958         * sysdeps/mach/sysdep.h: Likewise.
10959         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
10960         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
10961         * sysdeps/s390/asm-syntax.h: Likewise.
10962         * sysdeps/s390/s390-32/sysdep.h: Likewise.
10963         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10964         * sysdeps/sh/sysdep.h: Likewise.
10965         * sysdeps/unix/sparc/sysdep.h: Likewise.
10966         * sysdeps/wordsize-32/divdi3.c: Likewise.
10967         * sysdeps/x86_64/sysdep.h: Likewise.
10968
10969         * argp/Versions: Remove _argp_unlock_xxx.
10970
10971         [BZ #13559]
10972         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
10973         * abilist/libBrokenLocale.abilist: Likewise.
10974         * abilist/libanl.abilist: Likewise.
10975         * abilist/libc.abilist: Likewise.
10976         * abilist/libcrypt.abilist: Likewise.
10977         * abilist/libdl.abilist: Likewise.
10978         * abilist/libm.abilist: Likewise.
10979         * abilist/libnsl.abilist: Likewise.
10980         * abilist/libpthread.abilist: Likewise.
10981         * abilist/libresolv.abilist: Likewise.
10982         * abilist/librt.abilist: Likewise.
10983         * abilist/libthread_db.abilist: Likewise.
10984         * abilist/libutil.abilist: Likewise.
10985         * abilist/libnss_db.abilist: New file.
10986
10987         * scripts/abilist.awk: Add support for indirect functions.
10988
10989         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
10990
10991         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
10992
10993         * shlib-versions: Remove entries for ports architectures.
10994
10995         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
10996         files in ports.
10997         * elf/stackguard-macros.h: Remove support for IA-64.
10998         * elf/tst-auditmod1.c: Likewise.
10999         * sysdeps/generic/ldsodefs.h: Likewise.
11000
11001         * sysdeps/unix/sysv/linux/configure.in: Ports should define
11002         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
11003         configure files.
11004
11005         [BZ #13552]
11006         * configure.in: Remove --enable-omitfp support.
11007         * FAQ.in: Adjust.
11008         * config.make.in: Likewise.
11009         * Makeconfig: Likewise.
11010         * manual/install.texi: Likewise.
11011
11012         In case anyone cares, the IA-64 architecture could move to ports.
11013         * sysdeps/ia64/*: Removed.
11014         * sysdeps/unix/sysv/linux/ia64/*: Removed.
11015         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
11016
11017         [BZ #13555]
11018         * configure.in: Remove entries for unsupported architectures.
11019
11020         [BZ #13533]
11021         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
11022         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
11023         routines.
11024         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
11025         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
11026         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
11027         fall back to using wcrtomb.
11028         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
11029         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
11030         renaming.
11031         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
11032         * wcsmbs/tst-c16c32-1.c: New file.
11033
11034         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
11035         local variable.
11036
11037         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
11038
11039         * elf/tst-unique3.cc: Add explicit declaration of gets.
11040         * elf/tst-unique3lib.cc: Likewise.
11041         * elf/tst-unique3lib2.cc: Likewise.
11042         * elf/tst-unique4.cc: Likewise.
11043
11044         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
11045
11046 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
11047
11048         [BZ #13566]
11049         * assert/assert.h (static_assert): Don't define for C++.
11050         * libio/stdio.h (gets): Do declare for C++ <= C++11.
11051         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
11052
11053 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
11054
11055         * iconv/loop.c (single loop): Fix assertion in storing of
11056         remaining bytes.
11057
11058         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
11059
11060 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
11061
11062         * posix/getconf.c: Update copyright year.
11063         * nss/getent.c: Likewise.
11064         * nss/makedb.c: Likewise.
11065         * iconv/iconvconfig.c: Likewise.
11066         * iconv/iconv_prog.c: Likewise.
11067         * elf/ldconfig.c: Likewise.
11068         * elf/pldd.c: Likewise.
11069         * elf/sotruss.ksh: Likewise.
11070         * catgets/gencat.c: Likewise.
11071         * csu/version.c: Likewise.
11072         * elf/ldd.bash.in: Likewise.
11073         * elf/sprof.c (print_version): Likewise.
11074         * locale/programs/locale.c: Likewise.
11075         * locale/programs/localedef.c: Likewise.
11076         * login/programs/pt_chown.c: Likewise.
11077         * nscd/nscd.c (print_version): Likewise.
11078         * debug/xtrace.sh: Likewise.
11079         * malloc/memusage.sh: Likewise.
11080         * malloc/mtrace.pl: Likewise.
11081         * debug/catchsegv.sh: Likewise.
11082
11083 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
11084
11085         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
11086         pure attribute.
11087
11088 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
11089
11090         [BZ #13533]
11091         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
11092         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
11093         transformations.
11094         * iconv/gconv_int.h: Likewise.
11095         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
11096         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
11097         from libc for GLIBC_2.16.
11098         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
11099         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
11100         * wcsmbs/uchar.h: Really define mbstate_t.
11101         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
11102         * wcsmbs/c16rtomb.c: New file.
11103         * wcsmbs/mbrtoc16.c: New file.
11104         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
11105         for C/POSIX locale.
11106         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
11107         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
11108
11109         * wcsmbs/wchar.h: Add missing __restrict.
11110
11111 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
11112
11113         [BZ #13532]
11114         * time/Makefile (routines): Add timespec_get.
11115         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
11116         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
11117         timespec for ISO C11.
11118         * time/timespec_get.c: New file.
11119         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
11120         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
11121
11122         [BZ #13531]
11123         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
11124         * stdlib/stdlib.h: Declare aligned_alloc.
11125         * Versions.def: Add GLIBC_2.16 for libc.
11126         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
11127
11128         [BZ 13527]
11129         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
11130         ISO C11.
11131
11132         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
11133         code.
11134
11135         [BZ #13528]
11136         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
11137
11138         [BZ #13529]
11139         * assert/assert.h (static_assert): Define.
11140
11141         * version.h: Update for 2.16 development version.
11142
11143         [BZ #13526]
11144         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
11145         _ISOC11_SOURCE.
11146
11147         * version.h (RELEASE): Bump for 2.15 release.
11148         * include/features.h (__GLIBC_MINOR__): Bump to 15.
11149
11150         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
11151         Patch by Marek Polacek <mpolacek@redhat.com>.
11152
11153         * bits/byteswap.h: Protect long long constants with __extension__.
11154         * sysdeps/i386/bits/byteswap.h: Likewise.
11155         * sysdeps/ia64/bits/byteswap.h: Likewise.
11156         * sysdeps/s390/bits/byteswap.h: Likewise.
11157         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11158
11159 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11160
11161         [BZ #13540]
11162         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
11163         destination buffer.
11164         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
11165
11166 2011-12-23  Marek Polacek  <polacek@redhat.com>
11167
11168         * elf/dl-addr.c (determine_info): Add inline keyword.
11169         * elf/tst-auditmod4b.c (check_avx): Likewise.
11170         * elf/tst-auditmod6b.c (check_avx): Likewise.
11171         * elf/tst-auditmod6c.c (check_avx): Likewise.
11172         * elf/tst-auditmod7b.c (check_avx): Likewise.
11173
11174 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
11175
11176         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
11177         !__SSE_MATH__.
11178
11179 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11180
11181         [BZ #13540]
11182         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
11183         processing for last bytes.
11184
11185 2011-08-06  Bruno Haible  <bruno@clisp.org>
11186
11187         [BZ #13061]
11188         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
11189         U+0385, not to U+1FEE.
11190
11191         [BZ #13062]
11192         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
11193         entry for U+00A5 U+0301.
11194
11195 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
11196
11197         [BZ #13166]
11198         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
11199         buffer for the output is too small.
11200
11201         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
11202         optimization.
11203
11204         [BZ #13185]
11205         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
11206         SSE flags if possible.
11207
11208 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11209
11210         [BZ #13540]
11211         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
11212         processing for last bytes.
11213
11214 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
11215
11216         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
11217         (syscall-list-default-options, syscall-list-default-condition)
11218         (syscall-list-includes): Define.
11219         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
11220         list of ABIs and options and #if conditions for each ABI.  Do not
11221         handle common syscalls between ABIs specially.
11222         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
11223         Remove.
11224         (syscall-list-variants, syscall-list-32bit-options)
11225         (syscall-list-32bit-condition, syscall-list-64bit-options)
11226         (syscall-list-64bit-condition): Define.
11227         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
11228         (syscall-list-variants, syscall-list-32bit-options)
11229         (syscall-list-32bit-condition, syscall-list-64bit-options)
11230         (syscall-list-64bit-condition): Define.
11231         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
11232         Remove.
11233         (syscall-list-variants, syscall-list-32bit-options)
11234         (syscall-list-32bit-condition, syscall-list-64bit-options)
11235         (syscall-list-64bit-condition): Define.
11236         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
11237         Remove.
11238         (syscall-list-variants, syscall-list-32bit-options)
11239         (syscall-list-32bit-condition, syscall-list-64bit-options)
11240         (syscall-list-64bit-condition): Define.
11241
11242 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
11243
11244         * locale/iso-639.def: Add brx entry.
11245
11246         [BZ #13328]
11247         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
11248         Proposed by Mariusz_Cukr <marcukr@op.pl>.
11249
11250         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
11251         __feraiseexcept_renamed.
11252
11253 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
11254
11255         [BZ #13538]
11256         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
11257         EPOLLET with unsigned values.
11258         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11259         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
11260
11261         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
11262         to large cancellation.
11263         * math/s_cacoshf.c: Likewise.
11264         * math/s_cacoshl.c: Likewise.
11265
11266 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
11267
11268         [BZ #13305]
11269         [BZ #12786]
11270         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
11271         * math/s_cacoshf.c: Likewise.
11272         * math/s_cacoshl.c: Likewise.
11273
11274 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
11275
11276         [BZ #13439]
11277         * iconv/gconv.h: Define __GCONV_SWAP.
11278         * iconvdata/unicode.c: The swap bit must be stored in __flags.
11279         * iconvdata/utf-16.c: Likewise.
11280         * iconvdata/utf-32.c: Likewise.
11281
11282 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
11283
11284         [BZ #13524]
11285         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
11286         numerator after shifting it by one limb.
11287
11288 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
11289
11290         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
11291         under [__USE_EXTERN_INLINES].
11292
11293 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
11294
11295         [BZ #13446]
11296         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
11297
11298 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11299
11300         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
11301         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
11302         optimized code.
11303         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
11304         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
11305         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
11306         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
11307         for strncasecmp/strncasecmp_l compilation.
11308         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
11309         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
11310
11311 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
11312
11313         [BZ #13484]
11314         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
11315         of __asm__.
11316
11317 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
11318
11319         [BZ #13506]
11320         * time/tzfile.c (__tzfile_read): Check values from file header.
11321
11322 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
11323
11324         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
11325         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
11326         * powerpc/powerpc32/dl-start.S: Likewise.
11327         * powerpc/powerpc32/elf/start.S: Likewise.
11328         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11329         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
11330         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
11331         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
11332         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
11333         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
11334         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
11335         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11336         * powerpc/powerpc32/fpu/s_round.S: Likewise.
11337         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
11338         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
11339         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
11340         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
11341         * powerpc/powerpc32/memset.S: Likewise.
11342         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
11343         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
11344         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
11345         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
11346         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
11347         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
11348         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
11349         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
11350         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
11351         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
11352         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
11353         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11354         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11355
11356 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11357
11358         * math/libm-test.inc: Added more nearbyint tests.
11359         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
11360         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
11361         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
11362         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
11363
11364 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
11365
11366         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
11367         FD_CLOEXEC.
11368
11369 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11370
11371         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
11372         Add wcscpy-ssse3 wcscpy-c.
11373         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
11374         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
11375         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
11376         * sysdeps/x86_64/wcschr.S: New file.
11377         * sysdeps/x86_64/wcsrchr.S: New file.
11378         * string/test-strcmp.c: Remove checking of wcscmp function for
11379         wrong alignments.
11380         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
11381         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
11382         wcsrchr-sse2 wcsrchr-c.
11383         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
11384         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
11385         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
11386         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
11387         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
11388         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
11389         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
11390         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
11391         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
11392         * wcsmbc/wcschr.c (WCSCHR): New macro.
11393
11394 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11395
11396         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
11397         * wcsmbs/test-wcsrchr.c: New file.
11398         * string/test-strrchr.c: Add wcsrchr support.
11399         (WIDE): New macro.
11400         * wcsmbs/test-wcscpy.c: New file.
11401         * string/test-strcpy.c: Add wcscpy support.
11402         (WIDE): New macro.
11403
11404 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
11405
11406         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
11407         the inner loop.
11408
11409 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
11410
11411         [BZ #13472]
11412         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
11413
11414 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
11415
11416         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
11417         Minor optimizations.
11418
11419         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
11420         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
11421         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
11422
11423 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
11424
11425         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
11426         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
11427         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
11428         for gcc to avoid warnings.
11429         * inet/Makefile (tests): Add tst-checks.
11430         * inet/tst-checks.c: New file.
11431
11432         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
11433         warning.
11434
11435         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
11436         __wmemcmp_sse2.
11437
11438         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
11439         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
11440
11441         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
11442
11443 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
11444
11445         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
11446         problem.
11447
11448         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
11449
11450 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
11451
11452         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
11453         conditional on GCC version.
11454         (__arch_compare_and_exchange_val_8_acq)
11455         (__arch_compare_and_exchange_val_16_acq)
11456         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
11457         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
11458         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
11459
11460 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
11461
11462         * sysdeps/sh/backtrace.c: New file.
11463
11464 2011-12-02  Andreas Schwab  <schwab@redhat.com>
11465
11466         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
11467         parenthesis.
11468
11469 2011-12-01  Andreas Schwab  <schwab@redhat.com>
11470
11471         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
11472         falling back to utime.
11473
11474 2011-11-30  Andreas Schwab  <schwab@redhat.com>
11475
11476         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
11477         expectations for float.
11478
11479 2011-11-29  Andreas Schwab  <schwab@redhat.com>
11480
11481         * locale/weight.h (findidx): Add parameter len.
11482         * locale/weightwc.h (findidx): Likewise.
11483         * posix/fnmatch_loop.c (FCT): Adjust caller.
11484         * posix/regcomp.c (build_equiv_class): Likewise.
11485         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
11486         * posix/regexec.c (check_node_accept_bytes): Likewise.
11487         * string/strcoll_l.c (STRCOLL): Likewise.
11488         * string/strxfrm_l.c (STRXFRM): Likewise.
11489
11490 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
11491
11492         * Makefile.in: Remove CVSOPT handling.
11493         * configure.in: Remove use of AC_REVISION.
11494         * iconvdata/Makefile (distribute): No need to filter out CVS.
11495         * scripts/list-sources.sh: Remove CVS, subversion and monotone
11496         handling.
11497
11498 2011-11-16  Andreas Schwab  <schwab@redhat.com>
11499
11500         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
11501         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
11502         [USE_AS_STRNCASECMP_L]: Likewise.
11503         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
11504         NO_TLS_DIRECT_SEG_REFS.
11505         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
11506         Fix argument offsets for non-PIC.
11507         [USE_AS_STRNCASECMP_L]: Likewise.
11508         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
11509         NO_TLS_DIRECT_SEG_REFS.
11510
11511 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
11512
11513         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
11514         O_CLOEXEC.
11515         * locale/loadlocale.c (_nl_load_locale): Likewise.
11516
11517 2011-11-15  Andreas Schwab  <schwab@redhat.com>
11518
11519         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
11520         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
11521         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
11522         (SYSCALL_GETTIME): Set errno on error.
11523
11524         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
11525         count references to noai6ai_cached.
11526
11527 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
11528
11529         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
11530
11531         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
11532         FD_CLOEXEC for /proc/self/maps.
11533
11534         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
11535         FD_CLOEXEC for /proc/meminfo.
11536
11537         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
11538         gai.conf.
11539
11540         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
11541         FD_CLOEXEC for given file.
11542
11543         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
11544
11545         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
11546         FD_CLOEXEC for /etc/hosts.
11547         (_gethtent): Likewise.
11548
11549         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
11550
11551         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
11552         cancellation and set FD_CLOEXEC for /etc/netgroup.
11553
11554         * nss/nss_files/files-key.c (search): Don't allow cancellation when
11555         reading /etc/publickey.
11556
11557         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
11558         allow cancellation when reading /etc/group.
11559
11560         * nss/nss_files/files-alias.c (internal_setent): Don't allow
11561         cancellation.
11562         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
11563
11564         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
11565         when using data file.
11566
11567         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
11568
11569         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
11570         (write_nis_obj): Use "c" and "e" in fopen.
11571
11572         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
11573
11574         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
11575
11576         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
11577
11578         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
11579
11580         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
11581         locale.alias.
11582
11583         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
11584
11585         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
11586
11587         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
11588
11589         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
11590         file parsing and set FD_CLOEXEC.
11591
11592 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
11593
11594         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
11595
11596 2011-11-14  Andreas Schwab  <schwab@redhat.com>
11597
11598         * malloc/arena.c (arena_get2): Don't call reused_arena when
11599         _int_new_arena failed.
11600
11601 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
11602
11603         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
11604         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
11605         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
11606         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11607         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11608         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
11609         to compile strcasecmp and strncasecmp.
11610         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
11611         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
11612
11613         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
11614
11615 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
11616
11617         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
11618         locale-defines.sym to gen-as-const-headers.
11619         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
11620         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
11621         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
11622         to compile strcasecmp and strncasecmp.
11623         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
11624         strcasecmp_l and strncasecmp_l.
11625         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
11626         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
11627         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
11628         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
11629         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
11630         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
11631         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
11632         * sysdeps/i386/i686/multiarch/strncase.S: New file.
11633         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
11634         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
11635         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
11636
11637 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
11638
11639         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
11640         result of SYSDEP_GETTIME_CPU to retval.
11641         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
11642         parameter list to macro.  Remove trailing semicolon.  Adjust users.
11643
11644         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
11645         variable.
11646
11647         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
11648         mantissa words.
11649         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
11650
11651         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
11652         from unused variable.
11653
11654         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
11655         DWARF definitions.
11656         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
11657         for assembling.
11658
11659         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
11660         over namespaces.
11661
11662         * sunrpc/rpc_prot.c (rejected): Fix case value.
11663
11664         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
11665         unsigned long long int to avoid warnings in shift.
11666
11667         * posix/regex_internal.c (re_string_reconstruct): Actually use result
11668         of use of trans.
11669         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
11670         variable tmp.
11671
11672         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
11673         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
11674         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
11675
11676         * nis/nis_table.c (nis_list): Use variable of correct type for
11677         result of __follow_path call.
11678
11679 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11680
11681         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
11682         of math functions ceil, trunc, floor, round, and sqrt, when
11683         avaliable on the platform.
11684         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
11685         name clash.
11686         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11687         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
11688         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
11689
11690 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
11691
11692         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
11693         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
11694
11695 2011-11-11  Roland McGrath  <roland@hack.frob.com>
11696
11697         * include/unistd.h: Fix __readlink return type.
11698         Reported by Chris Metcalf <cmetcalf@tilera.com>.
11699
11700 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
11701
11702         * stdlib/ucontext.h: Undo last change for makecontext.
11703
11704 2011-11-11  Andreas Schwab  <schwab@redhat.com>
11705
11706         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
11707
11708         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
11709         * setjmp/setjmp.h: Mark functions as non-leaf.
11710         * setjmp/bits/setjmp2.h: Likewise.
11711         * stdlib/ucontext.h: Likewise.
11712
11713 2011-11-10  Andreas Schwab  <schwab@redhat.com>
11714
11715         * malloc/arena.c (_int_new_arena): Don't increment narenas.
11716         (reused_arena): Don't check arena limit.
11717         (arena_get2): Atomically check arena limit.
11718
11719 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
11720
11721         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
11722         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
11723
11724         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
11725         instructions.
11726
11727 2011-11-07  Andreas Schwab  <schwab@redhat.com>
11728
11729         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
11730         handler when locking.
11731
11732         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11733         Fix size of allocated buffer.
11734
11735 2011-11-04  Andreas Schwab  <schwab@redhat.com>
11736
11737         [BZ #10103]
11738         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
11739         declarations for long double functions.
11740         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
11741
11742         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
11743
11744 2011-11-03  Andreas Schwab  <schwab@redhat.com>
11745
11746         * nscd/nscd.c (main): Don't start AVC thread until credentials are
11747         installed.
11748
11749         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
11750         is disabled.
11751
11752 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11753
11754         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
11755
11756 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
11757
11758         * include/alloca.h (stackinfo_alloca_round): Define.
11759         (extend_alloca): Use it.
11760         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
11761         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
11762         here.
11763
11764         * scripts/check-local-headers.sh: Ignore libaudit.h.
11765
11766         * nscd/Makefile (extra-objs): Make recursively expanded.
11767
11768 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
11769
11770         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
11771         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
11772
11773         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
11774         * posix/tst-rfc3484-2.c: Likewise.
11775         * posix/tst-rfc3484-3.c: Likewise.
11776
11777         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11778         process_vm_writev.
11779         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
11780         process_vm_writev.
11781         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
11782         process_vm_writev from libc using GLIBC_2.15 version.
11783
11784         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
11785
11786 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
11787
11788         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
11789         stack usage.
11790
11791 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
11792
11793         [BZ #13367]
11794         * nss/getent.c (initgroups_keys): Show error message in case no group
11795         names are given.
11796
11797         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
11798         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
11799         __bump_nl_timestamp.
11800         * nscd/connections (nscd_init): When host database is served open
11801         netlink socket and request notification about configuration changes.
11802         (main_loop_poll): Track netlink file descriptor and bump timestamp
11803         in case data becomes available.
11804         (main_loop_epoll): Likewise.
11805         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
11806         (database_pers_head): Add extra_data fileds.
11807         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
11808         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
11809         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
11810         Adjust caller.
11811         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
11812         in6ai data, call __free_in6ai.
11813         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
11814         Add -DHAVE_NETLINK.
11815         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
11816         interface information.  Reuse previous data if netlink timestamp
11817         is not changed.
11818         (__bump_nl_timestamp): New function.
11819         (__free_in6ai): New function.
11820
11821 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
11822
11823         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
11824         close_not_cancel_no_status here.
11825         (__check_pf): Reorganize code a bit to not call close twice if OOM.
11826
11827 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
11828
11829         [BZ #13276]
11830         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
11831         return value.
11832
11833         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
11834         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
11835         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
11836
11837 2011-07-03  Andreas Jaeger  <aj@suse.de>
11838
11839         [BZ #10709]
11840         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
11841         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
11842         * math/libm-test.inc (sin_test): Add test case.
11843
11844 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
11845
11846         [BZ #13337]
11847         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
11848         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
11849
11850         * elf/chroot_canon.c (chroot_canon): Cleanups.
11851
11852         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
11853
11854         [BZ #13335]
11855         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
11856         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
11857
11858         * string/test-strchr.c: Make usable for strchrnul testing.
11859         * string/test-strchrnul.c: New file.
11860         * string/Makefile (strop-tests): Add strchrnul.
11861
11862         * po/it.po: Update from translation team.
11863         * po/es.po: Likewise.
11864
11865 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
11866
11867         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
11868         the three constants needed as parameters.  Drop the others.
11869         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
11870         __m128i_strloadu_tolower.
11871         Create and initialize variable zero and use it in all the places
11872         where _mm_setzero_si128 was used.
11873
11874         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
11875         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
11876         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
11877         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
11878         anymore.
11879         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
11880         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
11881         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
11882         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
11883         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
11884         __mpranred, __mptan.
11885         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
11886         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
11887         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
11888         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
11889         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
11890         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
11891         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
11892         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
11893         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
11894
11895 2011-10-28  Andreas Schwab  <schwab@redhat.com>
11896
11897         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
11898         redefine if SHARED.
11899         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
11900
11901         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
11902         wide char related routines to wcsmbs subdir.
11903
11904 2011-10-27  Andreas Schwab  <schwab@redhat.com>
11905
11906         [BZ #13344]
11907         * misc/sys/cdefs.h (__THROWNL): Define.
11908         * posix/unistd.h: Use __THREADNL instead of __THREAD
11909         for memory synchronization functions.
11910
11911 2011-10-26  Roland McGrath  <roland@hack.frob.com>
11912
11913         [BZ #13349]
11914         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
11915         doesn't exist.
11916         * manual/stdio.texi (Obstack Streams): Node removed.
11917
11918 2011-10-26  Andreas Schwab  <schwab@redhat.com>
11919
11920         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
11921         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11922         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11923
11924         * math/math_private.h (math_force_eval): Allow non-addressable
11925         arguments.
11926         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
11927
11928 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11929
11930         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
11931         file is not needed.
11932
11933         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
11934         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
11935         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11936         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11937         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11938         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11939         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11940         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
11941         Add AVX variants.
11942         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
11943         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
11944         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
11945         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
11946         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
11947         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
11948         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
11949         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
11950         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
11951         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
11952         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
11953         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
11954         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
11955         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
11956         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
11957         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
11958         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
11959         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
11960         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
11961
11962         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
11963         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
11964
11965         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
11966         place.  Use VEX encoding when compiling for AVX.
11967
11968 2011-10-25  Andreas Schwab  <schwab@redhat.com>
11969
11970         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
11971         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
11972
11973         * string/test-strchr.c (do_test): Don't generate NUL bytes.
11974
11975 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11976
11977         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
11978         useless if() expression.
11979         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11980         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11981         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11982         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11983         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11984         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11985         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11986         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11987         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11988         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11989         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11990         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11991         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11992         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11993         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11994         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11995         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11996         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11997         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11998
11999         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
12000
12001 2011-10-25  Andreas Schwab  <schwab@redhat.com>
12002
12003         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
12004         condition.
12005         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12006
12007 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12008
12009         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
12010         .text section.  Avoid duplicate constants.
12011         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12012         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12013         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12014         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12015         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12016         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12017         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12018         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12019         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12020         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
12021         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12022         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
12023         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
12024         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
12025         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
12026         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
12027         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
12028         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12029         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12030         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12031         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12032         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12033         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12034         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
12035         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
12036         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
12037         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
12038         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
12039         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
12040         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
12041         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
12042         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
12043         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
12044         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
12045         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
12046         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
12047         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
12048         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
12049         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
12050         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
12051         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
12052         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
12053         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
12054         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
12055         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
12056
12057 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
12058
12059         * sysdeps/x86_64/dla.h: Move to ...
12060         * sysdeps/x86_64/fpu/dla.h: ...here.
12061         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
12062         situations.  Use __builtin_fma only for gcc 4.6 and up.
12063
12064         * config.make.in: Add have-mfma4 entry.
12065         * configure.in: Substitute libc_cv_cc_fma4.
12066         * math/Makefile (dbl-only-routines): Add sincostab.
12067         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
12068         Use __sincostab not sincos.
12069         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
12070         name is a macro.
12071         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12072         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12073         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12074         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
12075         using __copysign.
12076         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
12077         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
12078         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
12079         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
12080         and __inv.
12081         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
12082         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
12083         __copysign.
12084         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
12085         define aliases when function name is a macro.
12086         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
12087         sysdeps/ieee754/dbl-64/sincos.tbl.
12088         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
12089         fma4-enabled routines.
12090         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
12091         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
12092         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
12093         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
12094         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
12095         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
12096         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
12097         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
12098         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
12099         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
12100         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
12101         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
12102         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
12103         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
12104         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
12105         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
12106         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
12107         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
12108         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
12109         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
12110         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
12111         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
12112         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
12113         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
12114         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
12115         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
12116         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
12117         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
12118         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
12119         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
12120
12121         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
12122         rename.
12123         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12124         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12125         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12126         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12127         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12128         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12129         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12130         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12131
12132 2011-10-24  Andreas Schwab  <schwab@redhat.com>
12133
12134         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
12135
12136 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12137
12138         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
12139
12140         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
12141         prediction.
12142         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
12143
12144         * string/strnlen.c: Don't define STRNLEN, reverse logic.
12145         Remove unused variable magic_bits.
12146         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
12147
12148         * string/strnlen.c: Define and use STRNLEN macro.
12149         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
12150         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
12151         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
12152         * wcsmbs/wcslen.c: Define and use WCSLEN.
12153         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
12154         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
12155         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
12156         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
12157         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
12158         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
12159         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
12160
12161 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12162
12163         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12164         strnlen-sse2-no-bsf.
12165         Rename strlen-no-bsf to strlen-sse2-no-bsf.
12166         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
12167         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
12168         Add strnlen support.
12169         (USE_AS_STRNLEN): New macro.
12170         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
12171         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
12172         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
12173         * sysdeps/x86_64/wcslen.S: New file.
12174
12175 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
12176
12177         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
12178         XMM-moves are used for copying on small sizes.
12179
12180 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12181
12182         * wcsmbs/Makefile (strop-tests): Add wcschr.
12183         * wcsmbs/test-wcschr.c: New file.
12184         * string/test-strchr.c: Update.
12185         Add wcschr support.
12186         (WIDE): New macro.
12187
12188 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12189
12190         * wcsmbs/Makefile (strop-tests): Add wcslen.
12191         * wcsmbs/test-wcslen.c: New file.
12192         * string/test-strlen.c: Update.
12193         Add wcslen support.
12194         (WIDE): New macro.
12195
12196 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12197
12198         * po/it.po: Update from translation team.
12199
12200 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12201
12202         * sysdeps/x86_64/wcscmp.S: Update.
12203         Fix wrong comparison semantics.
12204         wcscmp shall use signed comparison not unsigned.
12205         Don't use substraction to avoid overflow bug.
12206         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
12207         * wcsmbc/wcscmp.c: Likewise.
12208         * string/test-strcmp.c: Likewise.
12209         Add new tests to check cases with negative values.
12210
12211 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12212
12213         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
12214         * sysdeps/x86_64/dla.h: ...here.  New file.
12215         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
12216         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12217         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12218         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12219         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12220         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12221         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12222         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12223         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12224
12225 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
12226
12227         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
12228         __ynl_finite aliases.
12229
12230 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
12231
12232         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12233
12234         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
12235         define DLA_FMA.
12236         [DLA_FMA] (EMULV): Use DLA_FMA.
12237         [DLA_FMA] (MUL12): Use EMULV.
12238         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
12239         that are not needed.
12240         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12241         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12242         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12243         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12244         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12245         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12246         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12247
12248 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
12249
12250         * math/s_nan.c: Undef __nan.
12251         * math/s_nanf.c: Undef __nanf.
12252         * math/s_nanl.c: Undef __nanl.
12253         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
12254         "math_private.h".
12255
12256 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
12257
12258         * math/s_catan.c: Add branch predictions.
12259         * math/s_catanf.c: Likewise.
12260         * math/s_catanh.c: Likewise.
12261         * math/s_catanhf.c: Likewise.
12262         * math/s_catanhl.c: Likewise.
12263         * math/s_catanl.c: Likewise.
12264         * math/s_cexp.c: Likewise.
12265         * math/s_cexpf.c: Likewise.
12266         * math/s_cexpl.c: Likewise.
12267         * math/s_clog.c: Likewise.
12268         * math/s_clog10.c: Likewise.
12269         * math/s_clog10f.c: Likewise.
12270         * math/s_clog10l.c: Likewise.
12271         * math/s_clogf.c: Likewise.
12272         * math/s_clogl.c: Likewise.
12273         * math/s_csqrt.c: Likewise.
12274         * math/s_csqrtf.c: Likewise.
12275         * math/s_csqrtl.c: Likewise.
12276         * math/s_ctanf.c: Likewise.
12277         * math/s_ctanh.c: Likewise.
12278         * math/s_ctanhf.c: Likewise.
12279         * math/s_ctanhl.c: Likewise.
12280         * math/s_ctanl.c: Likewise.
12281
12282         * math/math_private.h: Define __nan, __nanf, __nanl.
12283         * math/s_cacosh.c: Include <math_private.h>.
12284         * math/s_cacoshl.c: Likewise.
12285         * math/s_casinh.c: Likewise.
12286         * math/s_casinhf.c: Likewise.
12287         * math/s_casinhl.c: Likewise.
12288         * math/s_ccos.c: Rely entire on ccosh.
12289         * math/s_ccosf.c: Rely entire on ccoshf.
12290         * math/s_ccosl.c: Rely entirely on ccoshl.
12291         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
12292         Remove tests for FE_INVALID.
12293         * math/s_ccoshf.c: Likewise.
12294         * math/s_ccoshl.c: Likewise.
12295         * math/s_csin.c: Likewise.
12296         * math/s_csinf.c: Likewise.
12297         * math/s_csinh.c Likewise.
12298         * math/s_csinhf.c: Likewise.
12299         * math/s_csinhl.c: Likewise.
12300         * math/s_csinl.c: Likewise.
12301         * math/s_ctan.c: Likewise.
12302         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
12303         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
12304         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
12305
12306 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
12307
12308         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
12309         compilation problems.
12310
12311         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
12312         __builtin_expect.
12313
12314 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
12315
12316         * sysdeps/i386/configure.in: Test for -mfma4 option.
12317         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
12318         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
12319         COMMON_CPUID_INDEX_80000001.
12320         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
12321         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
12322         use it if FMA3 is not supported.
12323         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
12324
12325         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
12326         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12327
12328 2011-10-20  Andreas Schwab  <schwab@redhat.com>
12329
12330         [BZ #12892]
12331         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
12332         it would create a cycle with a link time dependency.
12333
12334 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
12335
12336         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
12337         instruction.
12338         * string/Makefile (strop-tests): Add rawmemchr.
12339         * string/test-rawmemchr.c: New file.
12340
12341         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
12342         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
12343         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
12344         when compiling str{,n}casecmp and when AVX is available.  Hook up
12345         new optimized code in initializers.
12346
12347 2011-10-19  Andreas Schwab  <schwab@redhat.com>
12348
12349         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
12350         __feraiseexcept instead of feraiseexcept.
12351
12352 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
12353
12354         * math/math_private.h: Define defaults for libc_fetestexcept and
12355         libc_feupdateenv.
12356         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
12357         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12358         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12359         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12360         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12361         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12362         libc_fetestexcept and libc_feupdateenv.
12363
12364         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
12365         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
12366         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
12367         * sysdeps/x86_64/fpu/math_private.h: Define special version of
12368         libc_feholdexcept_setround.
12369
12370         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
12371         Add s_nearbyint-c and s_nearbyintf-c.
12372         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
12373         nearbyintf inlines.
12374         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
12375         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
12376         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
12377         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
12378
12379         * math/math_private.h: Define defaults for libc_fegetround,
12380         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
12381         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
12382         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
12383         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
12384         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
12385         standard functions.
12386         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12387         Remove comments and hacks for old compiler versions.
12388         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12389         libc_fegetround, libc_fesetround, libc_feholdexcept, and
12390         libc_feholdexceptl.
12391
12392 2011-10-18  Andreas Schwab  <schwab@redhat.com>
12393
12394         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
12395         (__feraiseexcept_renamed): Add __NTH.
12396         (feraiseexcept): Add __NTH.  Rename local variables to fix
12397         namespace violations.
12398
12399 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
12400
12401         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
12402
12403         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
12404
12405         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
12406         recently added interfaces.
12407         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12408
12409         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
12410         about macro parameter expansion.
12411
12412         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
12413         __NO_MATH_INLINES is defined.  Cleanups.
12414
12415         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
12416         and __floorf is target has SSE4.1.
12417         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
12418         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
12419         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
12420         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
12421
12422         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
12423         name.
12424         (floorf): Likewise.
12425
12426         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
12427
12428 2011-10-17  Andreas Schwab  <schwab@redhat.com>
12429
12430         * misc/sys/cdefs.h: Fix last change.
12431
12432         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
12433         database lookup.
12434
12435 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
12436
12437         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
12438
12439         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
12440         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12441         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12442         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12443         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12444         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12445         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12446         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12447         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12448         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
12449         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
12450         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
12451         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
12452         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
12453         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
12454         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
12455         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
12456         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
12457         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
12458         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
12459         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
12460         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
12461
12462         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
12463         ceil, ceilf, floor, floorf.
12464
12465         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
12466         Perform IRELATIVE relocations last.
12467
12468         * elf/do-rel.h: Add another parameter nrelative, replacing the
12469         local variable with the same name.  Change name of the function
12470         to end in Rel or Rela (uppercase).
12471         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
12472         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
12473         elf_dynamic_do_##reloc function.
12474
12475 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
12476
12477         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
12478         is sufficient, at least on modern CPUs.
12479
12480         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
12481
12482         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
12483         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
12484
12485         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
12486         __expl_finite.
12487         * math/bits/math-finite.h: Add entries for exp.
12488         * math/e_expl.c: Add __*_finite alias.
12489         * sysdeps/i386/fpu/e_exp.S: Likewise.
12490         * sysdeps/i386/fpu/e_expf.S: Likewise.
12491         * sysdeps/i386/fpu/e_expl.c: Likewise.
12492         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12493         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12494         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12495         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12496         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
12497         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12498         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12499
12500         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
12501         is sufficient, at least on modern CPUs.
12502
12503         * ctype/ctype-info.c (__ctype_init): Define.
12504         * include/ctype.h (__ctype_init): Declare.
12505         (__ctype_b_loc): The variable is always initialized.
12506         (__ctype_toupper_loc): Likewise.
12507         (__ctype_tolower_loc): Likewise.
12508         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
12509         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
12510
12511 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
12512
12513         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
12514
12515         * configure.in: Also look in $cxxmachine/include for C++ system
12516         headers.
12517
12518 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12519
12520         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
12521         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
12522         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
12523         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
12524         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
12525         (USE_AS_WMEMCMP): New macro.
12526         Fixing indents.
12527         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
12528         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
12529         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
12530         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
12531         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12532         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
12533         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
12534         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
12535         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
12536         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
12537         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
12538         (USE_AS_WMEMCMP): New macro.
12539         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
12540         * sysdeps/string/test-memcmp.c: Update.
12541         Fix simple_wmemcmp.
12542         Add new tests.
12543         * wcsmbs/wmemcmp.c: Update.
12544         (WMEMCMP): New macro.
12545         Fix overflow bug.
12546
12547 2011-10-12  Andreas Jaeger  <aj@suse.de>
12548
12549         [BZ #13268]
12550         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
12551
12552 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
12553
12554         * libio/iofwide.c (do_length): Avoid warning.
12555
12556         * ctype/ctype.h (__isctype_f): Add missing __THROW.
12557
12558 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
12559
12560         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
12561
12562         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
12563         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
12564         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
12565         * sysdeps/i386/i686/fpu/e_log.S: New file.
12566         * sysdeps/i386/i686/fpu/e_logf.S: New file.
12567         * sysdeps/i386/i686/fpu/e_logl.S: New file.
12568
12569         * ctype/ctype.h: Add support for inlined isXXX functions when
12570         compiling C++ code.
12571
12572 2011-10-14  Andreas Schwab  <schwab@redhat.com>
12573
12574         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12575
12576         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
12577
12578 2011-10-13  Roland McGrath  <roland@hack.frob.com>
12579
12580         [BZ #13291]
12581         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
12582
12583 2011-10-13  Andreas Schwab  <schwab@redhat.com>
12584
12585         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
12586         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
12587         feraiseexcept.
12588
12589         * sysdeps/x86_64/memrchr.S: Check for zero size.
12590
12591         * string/stratcliff.c: Add memrchr tests.
12592
12593 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12594
12595         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12596         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
12597         rawmemchr-sse2 rawmemchr-sse2-bsf.
12598         * sysdeps/i386/i686/multiarch/memchr.S: New file.
12599         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
12600         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
12601         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
12602         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
12603         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
12604         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
12605         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
12606         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
12607         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
12608         * string/memrchr.c (MEMRCHR): New macro.
12609
12610 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
12611
12612         Add integration with gcc's -ffinite-math-only and optimize wrapper
12613         functions in libm.
12614         * Versions.def: Define GLIBC_2.15 version for libm.
12615         * math/Makefile (headers): Add bits/math-finite.h.
12616         * math/bits/math-finite.h: New file.
12617         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
12618         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
12619         * math/e_acoshl.c: Add __*_finite alias.
12620         * math/e_acosl.c: Likewise.
12621         * math/e_asinl.c: Likewise.
12622         * math/e_atan2l.c: Likewise.
12623         * math/e_atanhl.c: Likewise.
12624         * math/e_coshl.c: Likewise.
12625         * math/e_exp10.c: Likewise.
12626         * math/e_exp10f.c: Likewise.
12627         * math/e_exp10l.c: Likewise.
12628         * math/e_exp2l.c: Likewise.
12629         * math/e_fmodl.c: Likewise.
12630         * math/e_gammal_r.c: Likewise.
12631         * math/e_hypotl.c: Likewise.
12632         * math/e_j0l.c: Likewise.
12633         * math/e_j1l.c: Likewise.
12634         * math/e_jnl.c: Likewise.
12635         * math/e_lgammal_r.c: Likewise.
12636         * math/e_log10l.c: Likewise.
12637         * math/e_log2l.c: Likewise.
12638         * math/e_logl.c: Likewise.
12639         * math/e_powl.c: Likewise.
12640         * math/e_sinhl.c: Likewise.
12641         * math/e_sqrtl.c: Likewise.
12642         * math/e_scalb.c: Completely rewritten and optimized.
12643         * math/e_scalbf.c: Likewise.
12644         * math/e_scalbl.c: Likewise.
12645         * math/w_acos.c: Likewise.
12646         * math/w_acosf.c: Likewise.
12647         * math/w_acosl.c: Likewise.
12648         * math/w_acosh.c: Likewise.
12649         * math/w_acoshf.c: Likewise.
12650         * math/w_acoshl.c: Likewise.
12651         * math/w_asin.c: Likewise.
12652         * math/w_asinf.c: Likewise.
12653         * math/w_asinl.c: Likewise.
12654         * math/w_atan2.c: Likewise.
12655         * math/w_atan2f.c: Likewise.
12656         * math/w_atan2l.c: Likewise.
12657         * math/w_atanh.c: Likewise.
12658         * math/w_atanhf.c: Likewise.
12659         * math/w_atanhl.c: Likewise.
12660         * math/w_exp10.c: Likewise.
12661         * math/w_exp10f.c: Likewise.
12662         * math/w_exp10l.c: Likewise.
12663         * math/w_fmod.c: Likewise.
12664         * math/w_fmodf.c: Likewise.
12665         * math/w_fmodl.c: Likewise.
12666         * math/w_j0.c: Likewise.
12667         * math/w_j0f.c: Likewise.
12668         * math/w_j0l.c: Likewise.
12669         * math/w_j1.c: Likewise.
12670         * math/w_j1f.c: Likewise.
12671         * math/w_j1l.c: Likewise.
12672         * math/w_jn.c: Likewise.
12673         * math/w_jnf.c: Likewise.
12674         * math/w_log.c: Likewise.
12675         * math/w_logf.c: Likewise.
12676         * math/w_logl.c: Likewise.
12677         * math/w_log10.c: Likewise.
12678         * math/w_log10f.c: Likewise.
12679         * math/w_log10l.c: Likewise.
12680         * math/w_log2.c: Likewise.
12681         * math/w_log2f.c: Likewise.
12682         * math/w_log2l.c: Likewise.
12683         * math/w_pow.c: Likewise.
12684         * math/w_powf.c: Likewise.
12685         * math/w_powl.c: Likewise.
12686         * math/w_remainder.c: Likewise.
12687         * math/w_remainderf.c: Likewise.
12688         * math/w_remainderl.c: Likewise.
12689         * math/w_scalb.c: Likewise.
12690         * math/w_scalbf.c: Likewise.
12691         * math/w_scalbl.c: Likewise.
12692         * math/w_sqrt.c: Likewise.
12693         * math/w_sqrtf.c: Likewise.
12694         * math/w_sqrtl.c: Likewise.
12695         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
12696         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
12697         used.
12698         * math/math_private.h: Declare __kernel_standard_f.
12699         * math/w_cosh.c: Remove cruft and optimize a bit.
12700         * math/w_coshf.c: Likewise.
12701         * math/w_coshl.c: Likewise.
12702         * math/w_exp2.c: Likewise.
12703         * math/w_exp2f.c: Likewise.
12704         * math/w_exp2l.c: Likewise.
12705         * math/w_hypot.c: Likewise.
12706         * math/w_hypotf.c: Likewise.
12707         * math/w_hypotl.c: Likewise.
12708         * math/w_lgamma.c: Likewise.
12709         * math/w_lgamma_r.c: Likewise.
12710         * math/w_lgammaf.c: Likewise.
12711         * math/w_lgammaf_r.c: Likewise.
12712         * math/w_lgammal.c: Likewise.
12713         * math/w_lgammal_r.c: Likewise.
12714         * math/w_sinh.c: Likewise.
12715         * math/w_sinhf.c: Likewise.
12716         * math/w_sinhl.c: Likewise.
12717         * math/w_tgamma.c: Likewise.
12718         * math/w_tgammaf.c: Likewise.
12719         * math/w_tgammal.c: Likewise.
12720         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12721         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12722         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
12723         Minor optimizations.  Pretty printing.  Remove cruft.
12724         * sysdeps/i386/fpu/e_acosf.S: Likewise.
12725         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12726         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12727         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12728         * sysdeps/i386/fpu/e_acosl.c: Likewise.
12729         * sysdeps/i386/fpu/e_asin.S: Likewise.
12730         * sysdeps/i386/fpu/e_asinf.S: Likewise.
12731         * sysdeps/i386/fpu/e_atan2.S: Likewise.
12732         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
12733         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
12734         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12735         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12736         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12737         * sysdeps/i386/fpu/e_exp10.S: Likewise.
12738         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
12739         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
12740         * sysdeps/i386/fpu/e_exp2.S: Likewise.
12741         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
12742         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
12743         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12744         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
12745         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12746         * sysdeps/i386/fpu/e_hypot.S: Likewise.
12747         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
12748         * sysdeps/i386/fpu/e_log.S: Likewise.
12749         * sysdeps/i386/fpu/e_log10.S: Likewise.
12750         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12751         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12752         * sysdeps/i386/fpu/e_log2.S: Likewise.
12753         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12754         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12755         * sysdeps/i386/fpu/e_logf.S: Likewise.
12756         * sysdeps/i386/fpu/e_logl.S: Likewise.
12757         * sysdeps/i386/fpu/e_pow.S: Likewise.
12758         * sysdeps/i386/fpu/e_powf.S: Likewise.
12759         * sysdeps/i386/fpu/e_powl.S: Likewise.
12760         * sysdeps/i386/fpu/e_remainder.S: Likewise.
12761         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
12762         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
12763         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12764         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12765         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12766         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
12767         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
12768         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
12769         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12770         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12771         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12772         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12773         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12774         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12775         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12776         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12777         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12778         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12779         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12780         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12781         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12782         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12783         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12784         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12785         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12786         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12787         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12788         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12789         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12790         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12791         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12792         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12793         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12794         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12795         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12796         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12797         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12798         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12799         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12800         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12801         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12802         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12803         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12804         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12805         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12806         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12807         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12808         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12809         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12810         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12811         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12812         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12813         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12814         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12815         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12816         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12817         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12818         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12819         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12820         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12821         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12822         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12823         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12824         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12825         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12826         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12827         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12828         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12829         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12830         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12831         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12832         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12833         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12834         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12835         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12836         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12837         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12838         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12839         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12840         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12841         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12842         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12843         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12844         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12845         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
12846         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12847         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12848         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12849         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12850         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12851         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12852         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12853         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12854         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12855         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12856         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12857         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12858         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12859         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12860         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12861         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12862         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12863         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12864         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
12865         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
12866         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
12867         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
12868         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
12869         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
12870         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
12871         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
12872         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
12873         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12874         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12875         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12876         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12877         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
12878         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12879         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
12880         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
12881         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
12882         (__isnanf): Likewise.
12883         (__isinf_ns): Likewise.
12884         (__isinf_nsf): Likewise.
12885         (__finite): Likewise.
12886         (__finitef): Likewise.
12887         (__ieee754_sqrt): Define as macro.
12888         (__ieee754_sqrtf): Define as macro.
12889         (__ieee754_sqrtl): Define as macro.
12890         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
12891         inlined copy.
12892         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
12893         __FINITE_MATH_ONLY__ consistent.
12894         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
12895
12896 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
12897
12898         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
12899         of rawmemchr.
12900
12901         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
12902
12903 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
12904
12905         * po/ja.po: Update from translation team.
12906
12907 2011-10-08  Roland McGrath  <roland@hack.frob.com>
12908
12909         * locale/programs/locarchive.c (prepare_address_space): New function.
12910         (create_archive, enlarge_archive, open_archive): Use it.
12911
12912         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
12913         inside [SHARED], where it is used.
12914
12915         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
12916
12917         * nss/getent.c (netgroup_keys): Remove unused variable.
12918         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12919
12920 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
12921
12922         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
12923         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
12924         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
12925         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
12926         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
12927         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
12928         * math/Makefile (libm-calls): Add s_isinf_ns.
12929         * math/divtc3.c: Use __isinf_nsl instead of isinf.
12930         * math/multc3.c: Likewise.
12931         * math/s_casin.c: Likewise.
12932         * math/s_casinf.c: Likewise.
12933         * math/s_casinl.c: Likewise.
12934         * math/s_ccos.c: Likewise.
12935         * math/s_ccosf.c: Likewise.
12936         * math/s_ccosl.c: Likewise.
12937         * math/s_ctan.c: Likewise.
12938         * math/s_ctanf.c: Likewise.
12939         * math/s_ctanh.c: Likewise.
12940         * math/s_ctanhf.c: Likewise.
12941         * math/s_ctanhl.c: Likewise.
12942         * math/s_ctanl.c: Likewise.
12943         * math/w_fmod.c: Likewise.
12944         * math/w_fmodf.c: Likewise.
12945         * math/w_fmodl.c: Likewise.
12946         * math/w_remainder.c: Likewise.
12947         * math/w_remainderf.c: Likewise.
12948         * math/w_remainderl.c: Likewise.
12949         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
12950         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
12951         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
12952         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
12953         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
12954         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
12955         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
12956         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
12957
12958         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
12959         of the number.
12960         * stdio-common/printf_fphex.c: Likewise.
12961         * stdio-common/printf_size.c: Likewise.
12962
12963         * math/e_exp10.c: Include math_private.h using <...> not "...".
12964         * math/e_exp10f.c: Likewise.
12965         * math/e_exp10l.c: Likewise.
12966         * math/e_exp2l.c: Likewise.
12967         * math/e_j0l.c: Likewise.
12968         * math/e_j1l.c: Likewise.
12969         * math/e_jnl.c: Likewise.
12970         * math/e_lgammal_r.c: Likewise.
12971         * math/e_rem_pio2l.c: Likewise.
12972         * math/e_scalb.c: Likewise.
12973         * math/e_scalbf.c: Likewise.
12974         * math/e_scalbl.c: Likewise.
12975         * math/k_cosl.c: Likewise.
12976         * math/k_sinl.c: Likewise.
12977         * math/k_tanl.c: Likewise.
12978         * math/s_cacoshf.c: Likewise.
12979         * math/s_catan.c: Likewise.
12980         * math/s_catanf.c: Likewise.
12981         * math/s_catanh.c: Likewise.
12982         * math/s_catanhf.c: Likewise.
12983         * math/s_catanhl.c: Likewise.
12984         * math/s_catanl.c: Likewise.
12985         * math/s_ccosh.c: Likewise.
12986         * math/s_ccoshf.c: Likewise.
12987         * math/s_ccoshl.c: Likewise.
12988         * math/s_cexp.c: Likewise.
12989         * math/s_cexpf.c: Likewise.
12990         * math/s_cexpl.c: Likewise.
12991         * math/s_clog.c: Likewise.
12992         * math/s_clog10.c: Likewise.
12993         * math/s_clog10f.c: Likewise.
12994         * math/s_clog10l.c: Likewise.
12995         * math/s_clogf.c: Likewise.
12996         * math/s_clogl.c: Likewise.
12997         * math/s_csin.c: Likewise.
12998         * math/s_csinf.c: Likewise.
12999         * math/s_csinh.c: Likewise.
13000         * math/s_csinhf.c: Likewise.
13001         * math/s_csinhl.c: Likewise.
13002         * math/s_csinl.c: Likewise.
13003         * math/s_csqrt.c: Likewise.
13004         * math/s_csqrtf.c: Likewise.
13005         * math/s_csqrtl.c: Likewise.
13006         * math/s_ctan.c: Likewise.
13007         * math/s_ctanf.c: Likewise.
13008         * math/s_ctanh.c: Likewise.
13009         * math/s_ctanhf.c: Likewise.
13010         * math/s_ctanhl.c: Likewise.
13011         * math/s_ctanl.c: Likewise.
13012         * math/s_ldexp.c: Likewise.
13013         * math/s_ldexpf.c: Likewise.
13014         * math/s_ldexpl.c: Likewise.
13015         * math/s_significand.c: Likewise.
13016         * math/s_significandf.c: Likewise.
13017         * math/s_significandl.c: Likewise.
13018         * math/w_acos.c: Likewise.
13019         * math/w_acosf.c: Likewise.
13020         * math/w_acosh.c: Likewise.
13021         * math/w_acoshf.c: Likewise.
13022         * math/w_acoshl.c: Likewise.
13023         * math/w_acosl.c: Likewise.
13024         * math/w_asin.c: Likewise.
13025         * math/w_asinf.c: Likewise.
13026         * math/w_asinl.c: Likewise.
13027         * math/w_atan2.c: Likewise.
13028         * math/w_atan2f.c: Likewise.
13029         * math/w_atan2l.c: Likewise.
13030         * math/w_atanh.c: Likewise.
13031         * math/w_atanhf.c: Likewise.
13032         * math/w_atanhl.c: Likewise.
13033         * math/w_cosh.c: Likewise.
13034         * math/w_coshf.c: Likewise.
13035         * math/w_coshl.c: Likewise.
13036         * math/w_dremf.c: Likewise.
13037         * math/w_exp10.c: Likewise.
13038         * math/w_exp10f.c: Likewise.
13039         * math/w_exp10l.c: Likewise.
13040         * math/w_exp2.c: Likewise.
13041         * math/w_exp2f.c: Likewise.
13042         * math/w_fmod.c: Likewise.
13043         * math/w_fmodf.c: Likewise.
13044         * math/w_fmodl.c: Likewise.
13045         * math/w_hypot.c: Likewise.
13046         * math/w_hypotf.c: Likewise.
13047         * math/w_hypotl.c: Likewise.
13048         * math/w_j0.c: Likewise.
13049         * math/w_j0f.c: Likewise.
13050         * math/w_j0l.c: Likewise.
13051         * math/w_j1.c: Likewise.
13052         * math/w_j1f.c: Likewise.
13053         * math/w_j1l.c: Likewise.
13054         * math/w_jn.c: Likewise.
13055         * math/w_jnf.c: Likewise.
13056         * math/w_jnl.c: Likewise.
13057         * math/w_lgamma.c: Likewise.
13058         * math/w_lgamma_r.c: Likewise.
13059         * math/w_lgammaf.c: Likewise.
13060         * math/w_lgammaf_r.c: Likewise.
13061         * math/w_lgammal.c: Likewise.
13062         * math/w_lgammal_r.c: Likewise.
13063         * math/w_log.c: Likewise.
13064         * math/w_log10.c: Likewise.
13065         * math/w_log10f.c: Likewise.
13066         * math/w_log10l.c: Likewise.
13067         * math/w_log2.c: Likewise.
13068         * math/w_log2f.c: Likewise.
13069         * math/w_log2l.c: Likewise.
13070         * math/w_logf.c: Likewise.
13071         * math/w_logl.c: Likewise.
13072         * math/w_pow.c: Likewise.
13073         * math/w_powf.c: Likewise.
13074         * math/w_powl.c: Likewise.
13075         * math/w_remainder.c: Likewise.
13076         * math/w_remainderf.c: Likewise.
13077         * math/w_remainderl.c: Likewise.
13078         * math/w_scalb.c: Likewise.
13079         * math/w_scalbf.c: Likewise.
13080         * math/w_scalbl.c: Likewise.
13081         * math/w_sinh.c: Likewise.
13082         * math/w_sinhf.c: Likewise.
13083         * math/w_sinhl.c: Likewise.
13084         * math/w_sqrt.c: Likewise.
13085         * math/w_sqrtf.c: Likewise.
13086         * math/w_sqrtl.c: Likewise.
13087         * math/w_tgamma.c: Likewise.
13088         * math/w_tgammaf.c: Likewise.
13089         * math/w_tgammal.c: Likewise.
13090
13091         * po/ja.po: Update from translation team.
13092
13093 2011-09-29  Andreas Jaeger  <aj@suse.de>
13094
13095         [BZ #13179]
13096         * sunrpc/netname.c (netname2host): Fix logic.
13097
13098         [BZ #6779]
13099         [BZ #6783]
13100         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
13101         correctly.
13102         * math/w_remainder.c (__remainder): Likewise.
13103         * math/w_remainderf.c (__remainderf): Likewise.
13104         * math/libm-test.inc (remainder_test): Add test cases.
13105
13106 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13107
13108         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
13109         sdiv_qrnnd.
13110
13111 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
13112
13113         * string/test-memcmp.c: Avoid unncessary #defines.
13114         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13115
13116 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13117
13118         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
13119         Use new sse2 version for core i3 - i7 as it's faster
13120         than sse42 version.
13121         (bit_Prefer_PMINUB_for_stringop): New.
13122         * sysdeps/x86_64/rawmemchr.S: Update.
13123         Replace with faster SSE2 version.
13124         * sysdeps/x86_64/memrchr.S: New file.
13125         * sysdeps/x86_64/memchr.S: Update.
13126         Replace with faster SSE2 version.
13127
13128 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
13129
13130         * elf/dl-load.c (lose): Add cast to avoid warning.
13131
13132 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
13133
13134         * po/ca.po: Update from translation team.
13135
13136         * inet/getnetgrent_r.c: Hook up nscd.
13137         * nscd/Makefile (routines): Add nscd_netgroup.
13138         (nscd-modules): Add netgroupcache.
13139         (CFLAGS-netgroupcache.c): Define.
13140         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
13141         (cache_search): Add const to second parameter.
13142         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
13143         INNETGR.
13144         (dbs): Add netgrdb entry.
13145         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
13146         (verify_persistent_db): Handle netgrdb.
13147         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
13148         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
13149         GETFDNETGR.
13150         (netgroup_response_header): Define.
13151         (innetgroup_response_header): Define.
13152         (datahead): Add netgroup_response_header and innetgroup_response_header
13153         elements.
13154         * nscd/nscd.conf: Add entries for netgroup cache.
13155         * nscd/nscd.h (dbtype): Add netgrdb.
13156         (_PATH_NSCD_NETGROUP_DB): Define.
13157         (netgroup_iov_disabled): Declare.
13158         (xmalloc, xcalloc, xrealloc): Move declarations here.
13159         (cache_search): Adjust prototype.
13160         Add netgroup-related prototypes.
13161         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
13162         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
13163         (__nscd_innetgr): Declare.
13164         * nscd/selinux.c (perms): Use access_vector_t as element type and
13165         add netgroup-related initializers.
13166         * nscd/netgroupcache.c: New file.
13167         * nscd/nscd_netgroup.c: New file.
13168         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
13169         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
13170         For four parameters use innetgr.
13171         * nss/nss_files/files-init.c: Add definition and callback for netgr.
13172         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
13173         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
13174         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
13175
13176         * nscd/connections.c (register_traced_file): Don't register file
13177         for disabled databases.
13178
13179 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
13180
13181         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
13182
13183         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
13184         from tree and freeing node.
13185
13186 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
13187
13188         * nss/nsswitch.c (__nss_database_lookup): Handle
13189         nss_parse_service_list out of memory case.
13190
13191 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
13192
13193         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
13194         out of memory case.
13195
13196 2011-10-04  Andreas Schwab  <schwab@redhat.com>
13197
13198         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
13199         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
13200         pass it down.
13201         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
13202         elf_machine_rela, elf_machine_lazy_rel.
13203         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
13204         (ELF_DYNAMIC_DO_REL): Likewise.
13205         (ELF_DYNAMIC_DO_RELA): Likewise.
13206         (ELF_DYNAMIC_RELOCATE): Likewise.
13207         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
13208         to ELF_DYNAMIC_DO_REL.
13209         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
13210         (dl_main): In trace mode always set __RTLD_NOIFUNC.
13211         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
13212         elf_machine_rela.
13213         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
13214         skip_ifunc, don't call ifunc function if non-zero.
13215         (elf_machine_rela): Likewise.
13216         (elf_machine_lazy_rel): Likewise.
13217         (elf_machine_lazy_rela): Likewise.
13218         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13219         (elf_machine_lazy_rel): Likewise.
13220         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13221         Likewise.
13222         (elf_machine_lazy_rel): Likewise.
13223         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13224         Likewise.
13225         (elf_machine_lazy_rel): Likewise.
13226         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
13227         (elf_machine_lazy_rel): Likewise.
13228         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
13229         (elf_machine_lazy_rel): Likewise.
13230         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13231         (elf_machine_lazy_rel): Likewise.
13232         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
13233         (elf_machine_lazy_rel): Likewise.
13234         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
13235         (elf_machine_lazy_rel): Likewise.
13236         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13237         (elf_machine_lazy_rel): Likewise.
13238
13239 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
13240
13241         * nss/nss_files/files-init.c (_nss_files_init): Use static
13242         initialization for all the *_traced_file variables.
13243
13244 2011-09-28  Andreas Schwab  <schwab@redhat.com>
13245
13246         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13247
13248 2011-09-27  Roland McGrath  <roland@hack.frob.com>
13249
13250         [BZ #13226]
13251         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
13252
13253 2011-09-27  Andreas Schwab  <schwab@redhat.com>
13254
13255         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13256         Reread the line before reparsing it.
13257
13258 2011-09-26  Andreas Schwab  <schwab@redhat.com>
13259
13260         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
13261
13262 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
13263             Maxim Kuvyrkov  <maxim@codesourcery.com>
13264             Joseph Myers  <joseph@codesourcery.com>
13265
13266         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
13267         if needed for __stack_chk_guard.
13268
13269 2011-09-19  Roland McGrath  <roland@hack.frob.com>
13270
13271         * sysdeps/posix/spawni.c (script_execute): Always define it.
13272         It will be optimized away if unused.
13273         (maybe_script_execute): New function.
13274         (__spawni): Call it.
13275
13276         * Makerules: Don't include tls.make.
13277         (config-tls): Always set to thread.
13278         * tls.make.c: File removed.
13279
13280 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
13281
13282         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
13283         * config.make.in (CPPFLAGS-config): New substituted variable.
13284
13285 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
13286
13287         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
13288
13289         [BZ #13192]
13290         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
13291         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
13292
13293 2011-09-15  Roland McGrath  <roland@hack.frob.com>
13294
13295         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
13296         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
13297         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
13298         (CALL_FAIL): Likewise.
13299         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
13300         (CALL_FAIL): Macro removed.
13301         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
13302
13303 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
13304
13305         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
13306         for __FINITE_MATH_ONLY__ == 1.
13307
13308 2011-09-15  Andreas Schwab  <schwab@redhat.com>
13309
13310         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
13311         __ieee754_sqrt instead of sqrt.
13312         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
13313         __ieee754_sqrtf instead of sqrtf.
13314         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
13315         __floorf instead of floorf.
13316         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
13317         __floorf, __truncf instead of floorf, truncf.
13318
13319 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
13320
13321         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
13322
13323         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
13324         __extern_always_inline.
13325         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
13326         32-bit.
13327
13328 2011-09-14  Andreas Schwab  <schwab@redhat.com>
13329
13330         * elf/rtld.c (dl_main): Also relocate in dependency order when
13331         doing symbol dependency testing.
13332
13333 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
13334
13335         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13336         Always define `refsym'.
13337
13338 2011-09-13  Andreas Schwab  <schwab@redhat.com>
13339
13340         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
13341         (__FD_ELT): Renamed from __FDELT.
13342         * misc/bits/select2.h (__FD_ELT): Likewise.
13343         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
13344         __FD_MASK instead of __FDELT, __FDMASK.
13345         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13346         Likewise.
13347         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13348         Likewise.
13349
13350         * elf/Makefile (gen-ldd): Fix pattern.
13351
13352         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
13353         (init_tls): Likewise.
13354
13355 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
13356
13357         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
13358
13359 2011-09-12  Andreas Schwab  <schwab@redhat.com>
13360
13361         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
13362         `struct cmsghdr *' instead of `void *'.
13363         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
13364         Likewise.
13365
13366 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
13367
13368         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
13369         if non-absolute.
13370         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
13371         ldd_rewrite_script.
13372
13373 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
13374
13375         * configure.in: Remove --with-tls option.
13376         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
13377         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
13378         out in case it is missing.
13379         * sysdeps/ia64/elf/configure.in: Likewise.
13380         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
13381         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
13382         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
13383         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
13384         * sysdeps/sh/elf/configure.in: Likewise.
13385         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
13386         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13387         * sysdeps/x86_64/elf/configure.in: Likewise.
13388         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
13389         * sysdeps/mach/hurd/tls.h: Likewise.
13390
13391         [BZ #13067]
13392         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
13393
13394         [BZ #13090]
13395         * configure.in: Fix use of AC_INIT.
13396
13397         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
13398
13399 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
13400
13401         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
13402         __set_errno.
13403         * malloc/hooks.c: Likewise.
13404
13405         [BZ #11929]
13406         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
13407         variables statically.
13408         (narenas): Initialize.
13409         (list_lock): Initialize.
13410         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
13411         initializtion of main_arena and list_lock.  Small cleanups.
13412         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
13413         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
13414         Add initializers to main_arena and mp_.
13415         (malloc_state): Remove pagesize member.  Change all users to use
13416         GLRO(dl_pagesize).
13417
13418         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
13419         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
13420         is always initialized.
13421
13422         * malloc/malloc.c: Removed unused configurations and dead code.
13423         * malloc/arena.c: Likewise.
13424         * malloc/hooks.c: Likewise.
13425         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
13426
13427         * include/tls.h: Removed.  USE___THREAD must always be defined.
13428         * bits/libc-tsd.h: Don't handle !USE___THREAD.
13429         * elf/dl-libc.c: Likewise.
13430         * elf/dl-tsd.c: Likewise.
13431         * include/errno.h: Likewise.
13432         * include/netdb.h: Likewise.
13433         * include/resolv.h: Likewise.
13434         * inet/herrno-loc.c: Likewise.
13435         * inet/herrno.c: Likewise.
13436         * malloc/arena.c: Likewise.
13437         * malloc/hooks.c: Likewise.
13438         * malloc/malloc.c: Likewise.
13439         * resolv/res-state.c: Likewise.
13440         * resolv/res_libc.c: Likewise.
13441         * sysdeps/i386/dl-machine.h: Likewise.
13442         * sysdeps/ia64/dl-machine.h: Likewise.
13443         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13444         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13445         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13446         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13447         * sysdeps/sh/dl-machine.h: Likewise.
13448         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13449         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13450         * sysdeps/unix/i386/sysdep.S: Likewise.
13451         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
13452         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
13453         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
13454         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13455         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
13456         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13457         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
13458         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13459         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13460         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
13461         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13462         * sysdeps/x86_64/dl-machine.h: Likewise.
13463         * tls.make.c: Likewise.
13464
13465         * configure.in: Remove --with-__thread option.  Make tests for
13466         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
13467         tls_model attribute fail if no support is available.  Remove
13468         USE_IN_LIBIO.
13469         * Makeconfig: Adjust for dropped configure option.  All features are
13470         now mandatory.
13471         * Makerules: Likewise.
13472         * Versions.def: Likewise.
13473         * argp/argp-fmtstream.c: Likewise.
13474         * argp/argp-fmtstream.h: Likewise.
13475         * argp/argp-help.c: Likewise.
13476         * assert/assert.c: Likewise.
13477         * config.h.in: Likewise.
13478         * config.make.in: Likewise.
13479         * configure: Likewise.
13480         * configure.in: Likewise.
13481         * csu/Versions: Likewise.
13482         * csu/init.c: Likewise.
13483         * elf/tst-audit2.c: Likewise.
13484         * elf/tst-tls10.c: Likewise.
13485         * elf/tst-tls10.h: Likewise.
13486         * elf/tst-tls11.c: Likewise.
13487         * elf/tst-tls12.c: Likewise.
13488         * elf/tst-tls14.c: Likewise.
13489         * elf/tst-tlsmod11.c: Likewise.
13490         * elf/tst-tlsmod12.c: Likewise.
13491         * elf/tst-tlsmod13.c: Likewise.
13492         * elf/tst-tlsmod13a.c: Likewise.
13493         * elf/tst-tlsmod14a.c: Likewise.
13494         * elf/tst-tlsmod15b.c: Likewise.
13495         * elf/tst-tlsmod16a.c: Likewise.
13496         * elf/tst-tlsmod16b.c: Likewise.
13497         * elf/tst-tlsmod7.c: Likewise.
13498         * elf/tst-tlsmod8.c: Likewise.
13499         * elf/tst-tlsmod9.c: Likewise.
13500         * gmon/gmon.c: Likewise.
13501         * grp/fgetgrent_r.c: Likewise.
13502         * grp/putgrent.c: Likewise.
13503         * hurd/fopenport.c: Likewise.
13504         * include/libc-symbols.h: Likewise.
13505         * include/tls.h: Likewise.
13506         * intl/gettextP.h: Likewise.
13507         * intl/loadinfo.h: Likewise.
13508         * locale/global-locale.c: Likewise.
13509         * locale/localeinfo.h: Likewise.
13510         * mach/devstream.c: Likewise.
13511         * malloc/arena.c: Likewise.
13512         * malloc/set-freeres.c: Likewise.
13513         * misc/err.c: Likewise.
13514         * misc/getttyent.c: Likewise.
13515         * misc/mntent_r.c: Likewise.
13516         * posix/getopt.c: Likewise.
13517         * posix/wordexp.c: Likewise.
13518         * pwd/fgetpwent_r.c: Likewise.
13519         * resolv/Versions: Likewise.
13520         * resolv/res_hconf.c: Likewise.
13521         * shadow/fgetspent_r.c: Likewise.
13522         * shadow/putspent.c: Likewise.
13523         * stdio-common/printf_fphex.c: Likewise.
13524         * stdio-common/tmpfile.c: Likewise.
13525         * stdlib/abort.c: Likewise.
13526         * stdlib/fmtmsg.c: Likewise.
13527         * sunrpc/auth_unix.c: Likewise.
13528         * sunrpc/clnt_perr.c: Likewise.
13529         * sunrpc/clnt_tcp.c: Likewise.
13530         * sunrpc/clnt_udp.c: Likewise.
13531         * sunrpc/clnt_unix.c: Likewise.
13532         * sunrpc/openchild.c: Likewise.
13533         * sunrpc/svc_simple.c: Likewise.
13534         * sunrpc/svc_tcp.c: Likewise.
13535         * sunrpc/svc_udp.c: Likewise.
13536         * sunrpc/svc_unix.c: Likewise.
13537         * sunrpc/xdr.c: Likewise.
13538         * sunrpc/xdr_array.c: Likewise.
13539         * sunrpc/xdr_rec.c: Likewise.
13540         * sunrpc/xdr_ref.c: Likewise.
13541         * sunrpc/xdr_stdio.c: Likewise.
13542
13543 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13544
13545         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13546
13547 2011-07-03  Andreas Jaeger  <aj@suse.de>
13548
13549         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
13550         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
13551         regenerate with gen-libm-tests.pl.
13552
13553 2010-05-12  Petr Baudis  <pasky@suse.cz>
13554
13555         [BZ #11589]
13556         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
13557         around j0() zero points by switching to j1().
13558         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13559         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13560         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13561         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13562
13563 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13564
13565         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
13566         instead of 0.
13567         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
13568         instead of 0.                              .
13569         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13570         Patch in part by Pavel Roskin <proski@gnu.org>.
13571
13572         [BZ #13138]
13573         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
13574         realloc.
13575         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
13576         Free memory block if necessary.
13577
13578         [BZ #12847]
13579         * libio/genops.c (INTDEF): For string streams the _lock pointer can
13580         be NULL.  Don't lock in this case.
13581
13582 2011-09-09  Roland McGrath  <roland@hack.frob.com>
13583
13584         * elf/elf.h (ELFOSABI_GNU): New macro.
13585         (ELFOSABI_LINUX): Define to that.
13586
13587 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
13588
13589         * string/strncat.c (strncat): Undef the symbol in case it has been
13590         defined in bits/string.h.
13591
13592 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13593
13594         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
13595
13596         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
13597         link map.
13598
13599 2011-08-17  Andreas Jaeger  <aj@suse.de>
13600
13601         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
13602
13603 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
13604             Ian Lance Taylor  <iant@google.com>
13605
13606         * math/libm-test.inc (lround_test): New testcase.
13607         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
13608
13609 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
13610
13611         * Makefile: Remove support for automatic cvs check-ins.
13612         * Makerules: Likewise.
13613         * config.make.in: Likewise.
13614         * configure.in: Likewise.
13615         * intl/Makefile: Likewise.
13616         * locale/Makefile: Likewise.
13617         * po/Makefile: Likewise.
13618         * posix/Makefile: Likewise.
13619         * sysdeps/gnu/Makefile: Likewise.
13620         * sysdeps/mach/hurd/Makefile: Likewise.
13621         * sysdeps/sparc/sparc32/Makefile: Likewise.
13622
13623         [BZ #13118]
13624         * posix/Makefile (bug-regex32-ENV): Define.
13625         Patch by John Stanley <jpsinthemix@verizon.net>.
13626
13627         * misc/Makefile (headers): Add bits/select2.h.
13628         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
13629         * misc/bits/select2.h: New file.
13630         * include/bits/select2.h: New file.
13631         * debug/Makefile (routines): Add fdelt_chk.
13632         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
13633         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
13634         FD_ISSET.
13635         * debug/fdelt_chk.c: New file.
13636
13637         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
13638         * wcsmbs/test-wmemcmp.c: Likewise.
13639         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
13640         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
13641
13642 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13643
13644         * string/Makefile (strop-tests): Add memcmp.
13645         * string/test-wmemcmp.c: New file.
13646         * string/test-memcmp.c: Add wmemcmp support.
13647
13648 2011-09-08  Roland McGrath  <roland@hack.frob.com>
13649
13650         [BZ #13153]
13651         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
13652         2011-07-19 change.
13653
13654         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
13655         garbage value in a __mach_port_mod_refs call in the cases of the
13656         task-self and thread-self ports.
13657
13658 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13659
13660         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
13661
13662 2011-09-08  Andreas Schwab  <schwab@redhat.com>
13663
13664         * elf/dl-load.c (lose): Check for non-null L.
13665
13666 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
13667
13668         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
13669
13670         * elf/dl-libc.c (dlerror_run): Pass back error code from
13671         dl_catch_error.
13672
13673         [BZ #13123]
13674         * elf/dl-load.c (lose): Free l_origin if it is valid.
13675
13676         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
13677         names.
13678         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
13679         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
13680         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
13681         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
13682         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
13683         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
13684
13685 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13686
13687         * sysdeps/powerpc/fpu/e_hypot.c: New file.
13688         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
13689         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
13690         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
13691         * sysdeps/powerpc/fpu/k_cosf.c: New file.
13692         * sysdeps/powerpc/fpu/k_sinf.c: New file.
13693         * sysdeps/powerpc/fpu/s_cosf.c: New file.
13694         * sysdeps/powerpc/fpu/s_sinf.c: New file.
13695         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
13696         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
13697
13698 2011-08-15  Alan Modra  <amodra@gmail.com>
13699
13700         [BZ #13092]
13701         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
13702         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
13703         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
13704         ppc_mcount to static-only-routines.
13705         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
13706         __mcount_internal.
13707         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
13708         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
13709
13710 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
13711
13712         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
13713         for finite and infinity parameters.
13714
13715 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13716
13717         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
13718         and add nop instructions for throughput optimization.
13719         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13720
13721 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
13722
13723         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
13724         aligned copy for power7 with vector-scalar instructions.
13725         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13726
13727 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
13728
13729         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
13730         AVX check.
13731
13732 2011-09-07  Andreas Schwab  <schwab@redhat.com>
13733
13734         [BZ #13144]
13735         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
13736         last change.
13737
13738 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
13739
13740         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13741         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
13742         syscall wrapper around clock_gettime in __vdso_clock_gettime.
13743         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
13744         clock_gettime.
13745
13746 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
13747
13748         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
13749         Forgot to demangle the pointer.
13750
13751         * sysdeps/i386/sysdep.h: Define atom_text_section.
13752         * sysdeps/x86_64/sysdep.h: Likewise.
13753         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
13754         section with atom_text_section.
13755         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
13756         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
13757         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
13758         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
13759         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
13760
13761         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
13762         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
13763         already be defined.  Change to take two parameters and don't assign
13764         result to variable.  Adjust all users.
13765         Define INTERNAL_GETTIME if not already defined.
13766         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
13767         call.
13768         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
13769         HAVE_CLOCK_GETTIME_VSYSCALL.
13770         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
13771
13772         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
13773         gettimeofday vsyscall, just use time.
13774
13775 2011-09-06  Andreas Schwab  <schwab@redhat.com>
13776
13777         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
13778         <errno.h>.
13779
13780 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
13781
13782         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
13783         syscall on x86-64.
13784         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
13785         syscall.
13786         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
13787         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
13788         syscall if possible.
13789
13790 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
13791
13792         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
13793         e_ident.  Don't pass to find_mapsXX.
13794         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
13795
13796 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13797
13798         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13799         strchr-sse2-no-bsf strrchr-sse2-no-bsf
13800         * sysdeps/x86_64/multiarch/strchr.S: Update.
13801         Check bit_slow_BSF bit.
13802         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13803         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
13804         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
13805
13806 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
13807
13808         [BZ #13134]
13809         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
13810         before glibc 2.15.
13811         (tryshell): Define.
13812         (__spawni): Change last parameter to be flag.  Test
13813         SPAWN_XFLAGS_USE_PATH flag to use path or not.
13814         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
13815         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
13816         * posix/spawni.c: Likewise.
13817         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
13818         * posix/spawnp.c: Likewise.  Change normal version to use
13819         SPAWN_XFLAGS_USE_PATH.
13820         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
13821         SPAWN_XFLAGS_TRY_SHELL.
13822
13823         [BZ #13150]
13824         * posix/glob.h: Remove gcc 1.x support.
13825
13826         [BZ #13068]
13827         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
13828
13829 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13830
13831         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13832         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
13833         strrchr-sse2-bsf
13834         * sysdeps/i386/i686/multiarch/strchr.S: New file.
13835         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
13836         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
13837         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
13838         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
13839         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
13840
13841 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13842
13843         * sysdeps/x86_64/wcscmp.S: New file.
13844
13845         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
13846         wcscmp-c wcscmp-sse2
13847         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
13848         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
13849         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
13850         * wcsmbs/wcscmp.c: Allow renaming.
13851
13852 2011-09-05  David S. Miller  <davem@davemloft.net>
13853
13854         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
13855         stack slot, rather than the struct return pointer slot.
13856         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
13857         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
13858         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
13859         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
13860
13861 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
13862
13863         * po/ja.po: Update from translation team.
13864
13865         [BZ #13144]
13866         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
13867         kernel in 64-bit binaries.
13868
13869 2011-09-01  David S. Miller  <davem@davemloft.net>
13870
13871         * elf/elf.h (HWCAP_SPARC_*): Move to..
13872         * sysdeps/sparc/sysdep.h: this new file and add new values.
13873         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
13874         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
13875         _DL_HWCAP_COUNT to 24.
13876         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
13877         entries.
13878         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
13879         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
13880         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
13881         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
13882         instead of magic constants.
13883         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13884
13885 2011-08-31  David S. Miller  <davem@davemloft.net>
13886
13887         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
13888         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
13889         Reimplement to do errno handling inline.
13890         (SYSCALL_ERROR_HANDLER): New macro.
13891         (__SYSCALL_STRING): Do not do errno handling in asm.
13892         (__CLONE_SYSCALL_STRING): Delete.
13893         (__INTERNAL_SYSCALL_STRING): Delete.
13894         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
13895         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
13896         (PSEUDO): Reimplement to do errno handling inline.
13897         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
13898         (SYSCALL_ERROR_HANDLER): New macro.
13899         (__SYSCALL_STRING): Do not do errno handling in asm.
13900         (__CLONE_SYSCALL_STRING): Delete.
13901         (__INTERNAL_SYSCALL_STRING): Delete.
13902         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
13903         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
13904         i386.
13905         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
13906         (inline_syscall*): Add 'err' argument.
13907         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
13908         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
13909         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
13910         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
13911
13912         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
13913         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
13914
13915 2011-08-30  Andreas Schwab  <schwab@redhat.com>
13916
13917         * elf/rtld.c (dl_main): Relocate objects in dependency order.
13918
13919 2011-08-29  Jiri Olsa <jolsa@redhat.com>
13920
13921         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
13922         directive.
13923
13924 2011-08-24  David S. Miller  <davem@davemloft.net>
13925
13926         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
13927
13928 2011-08-24  Andreas Schwab  <schwab@redhat.com>
13929
13930         * elf/Makefile: Add rules to build and run unload8 test.
13931         * elf/unload8.c: New file.
13932         * elf/unload8mod1.c: New file.
13933         * elf/unload8mod1x.c: New file.
13934         * elf/unload8mod2.c: New file.
13935         * elf/unload8mod3.c: New file.
13936
13937         * elf/dl-close.c (_dl_close_worker): Reset private search list if
13938         it wasn't used.
13939
13940 2011-08-23  David S. Miller  <davem@davemloft.net>
13941
13942         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
13943         subtract stack bias.
13944         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
13945         %sp not %fp in calculations.
13946         (_JMPBUF_UNWINDS_ADJ): Likewise.
13947
13948         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
13949         (aio_suspend): Call it to force an exception region around the
13950         AIO_MISC_WAIT() invocation.
13951
13952 2011-08-23  Andreas Schwab  <schwab@redhat.com>
13953
13954         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
13955         backslash.
13956
13957 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
13958
13959         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
13960         protection macro.
13961         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
13962         and <dl-machine.h>.
13963         (Elf64_FuncDesc): Remove.
13964
13965 2011-08-22  David S. Miller  <davem@davemloft.net>
13966
13967         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
13968         sigaltstack check, add missing cfi directives.
13969         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
13970         missing cfi directives, and sigaltstack handling.
13971
13972 2011-08-16  Andreas Schwab  <schwab@redhat.com>
13973
13974         [BZ #11724]
13975         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
13976         object is seen twice.
13977         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13978
13979         * elf/Makefile (distribute): Add tst-initorder2.c.
13980         (tests): Add tst-initorder2.
13981         (modules-names): Add tst-initorder2a tst-initorder2b
13982         tst-initorder2c tst-initorder2d.  Add rules to build them.
13983         ($(objpfx)tst-initorder2.out): New rule.
13984         * elf/tst-initorder2.c: New file.
13985         * elf/tst-initorder2.exp: New file.
13986
13987 2011-08-22  Andreas Schwab  <schwab@redhat.com>
13988
13989         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
13990
13991         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
13992         dependencies back to end of function.
13993
13994         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
13995         $(elfobjdir)/ld.so.
13996
13997 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
13998
13999         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
14000         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
14001         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
14002         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
14003         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
14004         of __vdso_gettimeofday.
14005         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
14006         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
14007         attribute_hidden.
14008         (_libc_vdso_platform_setup): Remove initialization of
14009         __vdso_gettimeofday and __vdso_time.
14010
14011 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
14012
14013         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
14014         and fgetc_unlocked.
14015         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
14016         getc_unlocked.
14017
14018         * elf/dl-open.c (add_to_global): Report additions to the global scope
14019         for LD_DEBUG=scopes.
14020         (dl_open_worker): Also print scope of newly loaded dependencies.
14021         (_dl_show_scope): Indicate if there is no scope.
14022
14023         [BZ #13114]
14024         * stdio-common/Makefile (tests): Add bug24.
14025         * stdio-common/bug24.c: New file.
14026
14027 2011-08-19  Andreas Jaeger  <aj@suse.de>
14028
14029         [BZ #13114]
14030         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
14031         non-existant file when using close-on-exec mode.
14032
14033 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
14034
14035         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
14036         the very first instruction.
14037
14038         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
14039         the CFI state in the end.
14040         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
14041         inclusion of dl-trampoline.h.
14042         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
14043
14044 2011-08-19  Andreas Schwab  <schwab@redhat.com>
14045
14046         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
14047         expectations for long double.
14048
14049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
14050         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
14051
14052 2011-08-14  David S. Miller  <davem@davemloft.net>
14053
14054         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
14055         artificual limit depends upon the system page size.
14056
14057 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
14058
14059         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
14060         * resolv/Makefile: Define CFLAGS-libresolv.
14061
14062 2011-08-17  Andreas Schwab  <schwab@redhat.com>
14063
14064         * nss/makedb.c (compute_tables): Make variables used in nested
14065         function static.
14066
14067 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
14068
14069         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
14070         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
14071         if buffer was too small.
14072
14073         * elf/pldd.c (main): Attach to all threads in the process.
14074         Rewrite /proc handling to use *at functions.
14075
14076 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
14077
14078         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
14079         specifies first scope to show.
14080         (dl_open_worker): Update callers.  Move printing scope of new
14081         object to before the relocation.
14082         * elf/rtld.c (dl_main): Update _dl_show_scope call.
14083         * sysdeps/generic/ldsodefs.h: Update declaration.
14084
14085         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
14086         string for the scope number.
14087
14088 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
14089
14090         * nscd/servicescache.c (cache_addserv): Make sure written is always
14091         initialized.
14092
14093 2011-08-14  Roland McGrath  <roland@hack.frob.com>
14094
14095         * sysdeps/i386/i486/bits/atomic.h
14096         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
14097         statement expression, so as to suppress "set but not used" warning.
14098         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
14099
14100         * string/strncat.c (STRNCAT): Use prototype definition.
14101
14102         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
14103         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
14104         -Iprograms here.
14105         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
14106         (localedef-modules): Add localedef.
14107         (locale-modules): Add locale.
14108
14109         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
14110         * elf/rtld.c (dl_main): Invert order of assignment in last change,
14111         to avoid a warning.
14112
14113 2011-08-14  David S. Miller  <davem@davemloft.net>
14114
14115         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
14116         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
14117
14118 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
14119
14120         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
14121         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
14122         * elf/rtld.c (dl_main): Set l_name of vDSO.
14123         Call _dl_show_scope when DL_DEBUG_SCOPES.
14124         (process_dl_debug): Recognize scopes flag and also set it for all.
14125         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
14126         Declare _dl_show_scope.
14127
14128         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
14129         (do_dlopen): Pass caller_dlopen to dl_open.
14130         (__libc_dlopen_mode): Initialize caller_dlopen.
14131
14132         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
14133         of libc.  Make tolower call locale-independent.  Optimize a bit by
14134         using isdigit instead of isalnum.
14135         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
14136
14137 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
14138
14139         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
14140         was a dependency or dynamically loaded.
14141
14142 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
14143
14144         * intl/l10nflist.c: Allow architecture-specific pop function.
14145         * sysdeps/x86_64/l10nflist.c: New file.
14146
14147         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
14148         classification.
14149
14150 2011-08-10  Andreas Schwab  <schwab@redhat.com>
14151
14152         * include/dirent.h: Add libc_hidden_proto for scandirat and
14153         scandirat64.  Don't declare __scandirat64.
14154         * dirent/scandirat.c: Add libc_hidden_def.
14155         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
14156         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
14157
14158 2011-08-10  David S. Miller  <davem@davemloft.net>
14159
14160         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
14161         enum.
14162         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14163         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14164         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14165
14166 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
14167
14168         * Versions.def [libc]: Add GLIBC_2.15.
14169         * dirent/Makefile (routines): Add scandirat and scandirat64.
14170         * dirent/Versions [libc]: Export scandirat and scandirat64 for
14171         GLIBC_2.15.
14172         * dirent/dirent.h: Declare scandirat and scandirat64.
14173         * dirent/scandirat.c: New file.
14174         * dirent/scandirat64.c: New file.
14175         * sysdeps/wordsize-64/scandirat.c: New file.
14176         * sysdeps/wordsize-64/scandirat64.c: New file.
14177         * dirent/opendir.c: Define opendirat.
14178         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
14179         using scandirat.
14180         * dirent/scandir64.c: Adjust for scandir.c change.
14181         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
14182         __scandirat64, and __scandir_cancel_handler.
14183         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
14184         additional parameter and use openat instead of open (outside of ld.so).
14185         Add new __opendir as wrapper around __opendirat.
14186         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
14187         here without requiring old scandirat implementation.
14188
14189 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
14190
14191         * dirent/scandir.c (cancel_handler): Renamed to
14192         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
14193         defined.  Adjust users.
14194         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
14195         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14196
14197 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
14198
14199         * string/test-string.h (IMPL): Use __STRING to expand name and then
14200         stringify it.
14201
14202         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
14203         of cleanups.
14204
14205 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14206
14207         * string/Makefile: Update.
14208         (strop-tests): Append strncat.
14209         * string/test-wcscmp.c: New file.
14210         New comprehensive test for wcscmp.
14211         * string/test-strcmp.c: Update.
14212         (WIDE): New define.
14213
14214 2011-07-22  Andreas Schwab  <schwab@redhat.com>
14215
14216         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
14217         line.
14218
14219 2011-07-26  Andreas Schwab  <schwab@redhat.com>
14220
14221         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
14222         encoding to ACE if AI_IDN.
14223
14224 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
14225
14226         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
14227         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
14228
14229 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14230
14231         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
14232         Fix overflow bug in strncat.
14233         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
14234
14235         * string/test-strncat.c: Update.
14236         Add new tests for checking overflow bugs.
14237
14238 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14239
14240         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14241         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
14242         * sysdeps/i386/i686/multiarch/strcat.S: New file.
14243         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
14244         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
14245         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
14246         * sysdeps/i386/i686/multiarch/strncat.S: New file.
14247         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
14248         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
14249
14250         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
14251         (USE_AS_STRCAT): Define.
14252         Add strcat and strncat support.
14253         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14254
14255 2011-07-25  Andreas Schwab  <schwab@redhat.com>
14256
14257         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
14258         __n bigger than INT_MAX+1.
14259         (__strncmp_g): Likewise.
14260
14261 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
14262
14263         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
14264         * libio/stido.h: Likewise.
14265
14266         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
14267         (AF_NFC): Define.
14268         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
14269         (AF_NFC): Define.
14270
14271         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
14272         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14273         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14274         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14275         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14276
14277         [BZ #13021]
14278         * scripts/test-installation.pl: Don't expect libnss_test1 to be
14279         installed.
14280
14281         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
14282         typo.
14283         (_dl_x86_64_save_sse): Likewise.
14284
14285 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
14286
14287         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
14288         OSXSAVE.
14289         (_dl_x86_64_save_sse): Likewise.
14290
14291         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
14292
14293         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
14294
14295 2011-07-21  Andreas Schwab  <schwab@redhat.com>
14296
14297         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
14298         change.
14299         (_dl_x86_64_save_sse): Use correct AVX check.
14300
14301 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14302
14303         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
14304         bug in strncpy/strncat.
14305         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
14306
14307 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
14308
14309         * string/tester.c (test_strcat): Add tests for different alignments
14310         of source and destination.
14311         (test_strncat): Likewise.
14312
14313 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
14314
14315         [BZ #12852]
14316         * posix/glob.c (glob): Check passed in values before using them in
14317         expressions to avoid some overflows.
14318         (glob_in_dir): Likewise.
14319
14320         [BZ #13007]
14321         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
14322         check for AVX enablement so that we don't crash with old kernels and
14323         new hardware.
14324         * elf/tst-audit4.c: Add same checks here.
14325         * elf/tst-audit6.c: Likewise.
14326
14327         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
14328
14329 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
14330
14331         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
14332
14333 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
14334
14335         * po/cs.po: Update from translation team.
14336         * po/bg.po: Likewise.
14337
14338 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
14339
14340         * misc/sys/cdefs.h: Add support for const attribute.
14341         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
14342         to gnu_dev_{major,minor,makedev} functions.
14343
14344 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
14345
14346         * intl/dcigettext.c (get_output_charset): Add missing bracket.
14347
14348 2011-07-20  Andreas Schwab  <schwab@redhat.com>
14349
14350         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
14351         strlen results.
14352
14353 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14354
14355         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
14356         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
14357         register in order to avoid conflicts with the soft frame pointer
14358         being held in r11 when necessary.
14359         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
14360         (INTERNAL_VSYSCALL_NCS): Likewise.
14361
14362 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
14363
14364         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
14365         * elf/dl-fini.c (_dl_fini): Adjust caller.
14366         * elf/dl-close.c (_dl_close_worker): Likewise.
14367         * sysdeps/generic/ldsodefs.h: Adjust declaration.
14368
14369 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
14370
14371         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
14372         "aux_cache->nlibs < 0".
14373
14374         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
14375         in the reload-count case.
14376
14377 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14378
14379         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14380         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
14381         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
14382         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
14383         * sysdeps/x86_64/multiarch/strcat.S: New file.
14384         * sysdeps/x86_64/multiarch/strncat.S: New file.
14385         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
14386         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
14387         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
14388         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
14389         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
14390         (USE_AS_STRCAT): Define.
14391         Add strcat and strncat support.
14392         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14393         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14394         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
14395         * string/strncat.c: Update.
14396         (USE_AS_STRNCAT): Define.
14397         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14398         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
14399         and i7.
14400         * sysdeps/x86_64/multiarch/init-arch.h
14401         (bit_Prefer_PMINUB_for_stringop): New.
14402         (index_Prefer_PMINUB_for_stringop): Likewise.
14403         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
14404         bit_Prefer_PMINUB_for_stringop.
14405
14406 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
14407
14408         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
14409         buffer64.
14410         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
14411         of casting of buffer.
14412         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
14413         buffer32 and buffer64.
14414         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
14415         writes instead of casting of buffer.
14416         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
14417         buffer32.
14418         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
14419         casting of buffer.
14420
14421 2011-07-19  Andreas Schwab  <schwab@redhat.com>
14422
14423         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
14424
14425 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
14426
14427         * nscd/nscd.c (termination_handler): Don't do anything for a database
14428         if it has not yet been initialized.
14429
14430 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
14431
14432         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
14433
14434 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
14435
14436         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
14437
14438 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
14439
14440         * po/nl.po: Update from translation team.
14441         * po/sv.po: Likewise.
14442
14443 2011-07-16  Roland McGrath  <roland@hack.frob.com>
14444
14445         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
14446         now disallowed by GCC.
14447
14448         * configure.in (use-default-link): Default to yes if a test -shared
14449         link meets our qualifications.
14450         * configure: Regenerated.
14451
14452         * config.make.in (output-format): New variable.
14453         * configure.in: Check for ld --print-output-format support.
14454         * configure: Regenerated.
14455         * Makerules ($(common-objpfx)format.lds)
14456         [$(output-format) != unknown]: Just use $(output-format),
14457         instead of the linker-script munging.
14458
14459 2011-07-14  Roland McGrath  <roland@hack.frob.com>
14460
14461         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
14462         of $(common-objpfx)shlib.lds.
14463         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
14464
14465         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
14466         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
14467
14468         * configure.in (-z relro check): Adjust test code to add a large
14469         writable data section after it.
14470         * configure: Regenerated.
14471
14472 2011-07-11  Roland McGrath  <roland@hack.frob.com>
14473
14474         * configure.in (-z relro check): Fix test code to make the variable
14475         truly const.
14476         * configure: Regenerated.
14477
14478 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
14479
14480         * nscd/nscd.h (struct traced_file): Define.
14481         (struct database_dyn): Remove inotify_descr, reset_res, and filename
14482         elements.  Add traced_files.
14483         (inotify_fd): Declare.
14484         (register_traced_file): Declare.
14485         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
14486         (inotify_fd): Export.
14487         (resolv_conf_descr): Remove.
14488         (nscd_init): Move inotify descriptor creation to main.
14489         Don't register files for notification here.
14490         (register_traced_file): New function.
14491         (invalidate_cache): Don't use reset_res to determine whether to call
14492         res_init, go through the list of registered files.
14493         (main_loop_poll): The inotify descriptors are now stored in the
14494         structures for the traced files.
14495         (main_loop_epoll): Likewise
14496         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
14497         to __nss_disable_nscd.
14498         * nscd/cache.c (prune_cache): There is no single inotify descriptor
14499         for a database anymore.  Check the records for all the registered
14500         files instead.
14501         * nss/Makefile (libnss_files-routines): Add files-init.
14502         (libnss_db-routines): Add db-init.
14503         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
14504         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
14505         * nss/nss_db/db-init.c: New file.
14506         * nss/nss_files/files-init.c: New file.
14507         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
14508         __nss_lookup_function.
14509         (__nss_lookup_function): Call nss_load_library.
14510         (nss_load_all_libraries): New function.
14511         (__nss_disable_nscd): Take parameter with callback function for files
14512         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
14513         used for the cached services.
14514         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
14515         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
14516         options for features to all the files in nscd.
14517
14518         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
14519
14520 2011-07-10  Roland McGrath  <roland@hack.frob.com>
14521
14522         * csu/elf-init.c (__libc_csu_init): Comment typo.
14523
14524 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
14525
14526         * po/pl.po: Update from translation team.
14527         * po/ja.po: Likewise.
14528         * po/ru.po: Likewise.
14529         * po/ko.po: Likewise.
14530         * po/fr.po: Likewise.
14531
14532 2011-07-09  Roland McGrath  <roland@hack.frob.com>
14533
14534         * configure.in (.ctors/.dtors header and trailer check):
14535         Use an empirical test on a built program.
14536         * configure: Regenerated.
14537
14538         * configure.in (-z relro check): Use an empirical test on a built DSO.
14539         Detect, but do not require, on ia64.
14540         * configure: Regenerated.
14541
14542         * configure.in (READELF): Find it with AC_CHECK_TOOL.
14543         Update tests that use readelf to use $READELF instead.
14544         * configure: Regenerated.
14545
14546 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
14547
14548         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
14549         if the result is not used.
14550
14551 2011-07-05  Andreas Jaeger  <aj@suse.de>
14552
14553         [BZ#9696]
14554         * stdlib/tst-strtod.c: Add testcase.
14555
14556 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14557
14558         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
14559         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
14560         The latter has a higher limit.  Take additional parameter to pass to
14561         the new function.
14562         (__pathconf): Pass file to __statfs_link_max.
14563         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
14564         __statfs_link_max.
14565         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
14566         __statfs_link_max.
14567
14568         [BZ #12868]
14569         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
14570         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14571         Handle Lustre.
14572         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
14573         (__statfs_filesize_max): Likewise.
14574         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
14575
14576 2011-07-05  Andreas Jaeger  <aj@suse.de>
14577
14578         * resolv/res_comp.c (dn_skipname): Remove unused variable.
14579
14580 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
14581
14582         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
14583         `status' variable.
14584         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
14585         Likewise.
14586
14587 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
14588
14589         * Makefile (strop-tests): Add strncat.
14590         * string/test-strncat.c: New file.
14591
14592 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
14593
14594         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
14595
14596 2011-06-21  Andreas Jaeger  <aj@suse.de>
14597
14598         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
14599         Copy rule from iconvdata/Makefile.
14600
14601 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
14602
14603         [BZ #12922]
14604         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
14605         but no long options are defined, just return 'W'.
14606
14607 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
14608
14609         [BZ #9696]
14610         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
14611
14612 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
14613
14614         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
14615         netgroups to read.
14616         (innetgr): Likewise.
14617
14618 2011-07-05  Roland McGrath  <roland@hack.frob.com>
14619
14620         * config.make.in (install_root): Default to $(DESTDIR).
14621
14622 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
14623
14624         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
14625
14626 2011-07-02  Roland McGrath  <roland@hack.frob.com>
14627
14628         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
14629
14630         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
14631         containing directory rather than embedding absolute directory names.
14632
14633         * scripts/check-local-headers.sh: Rewritten using awk.
14634         Match by word, not by line.  Print error messages for matches.
14635         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
14636
14637         * Makerules [shlib-lds-flags empty]:
14638         ($(common-objpfx)libc_pic.opts): New target.
14639         ($(common-objpfx)libc_pic.os.clean): New target.
14640         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
14641
14642         * config.make.in (OBJCOPY): New variable.
14643         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
14644         * configure: Regenerated.
14645
14646         * config.make.in (use-default-link): New variable.
14647         * configure.in (use_default_link): Grok --with-default-link to set it.
14648         * configure: Regenerated.
14649         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
14650         (shlib-lds, shlib-lds-flags): Define to empty.
14651
14652         * Makerules (shlib-lds): New variable.
14653         (shlib-lds-flags): New variable.
14654         (build-shlib, build-moduile, build-module-asneeded): Use it.
14655         ($(common-objpfx)libc.so): Use $(shlib-lds).
14656         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
14657         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
14658
14659         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
14660         DT_FLAGS/DT_FLAGS_1 with zero flags.
14661
14662         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
14663         linker script munging.
14664
14665 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
14666
14667         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
14668         as 128-bit value.
14669         * crypt/sha512.c (sha512_process_block): Perform total addition using
14670         128-bit if possible.
14671         (__sha512_finish_ctx): Likewise.
14672         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
14673         as 64-bit value.
14674         * crypt/sha256.c (SWAP64): Define.
14675         (sha256_process_block): Perform total addition using 64-bit if
14676         possible.
14677         (__sha256_finish_ctx): Likewise.
14678
14679 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
14680
14681         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
14682         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14683         * nscd/hstcache.c (cache_addhst): Likewise.
14684         * nscd/grpcache.c (cache_addgr): Likewise.
14685         * nscd/aicache.c (addhstaiX): Likewise
14686         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
14687
14688 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
14689
14690         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
14691         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14692         * nscd/hstcache.c (cache_addhst): Likewise.
14693         * nscd/grpcache.c (cache_addgr): Likewise.
14694         * nscd/aicache.c (addhstaiX): Likewise
14695
14696 2011-07-01  Andreas Schwab  <schwab@redhat.com>
14697
14698         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
14699         domain only when needed.
14700
14701 2011-06-30  Andreas Schwab  <schwab@redhat.com>
14702
14703         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
14704         is always restored.
14705
14706 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
14707
14708         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
14709         are re-adding the entry.
14710         * nscd/servicescache.c (cache_addserv): Likewise.
14711
14712 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
14713
14714         * sysdeps/generic/dl-irel.h: fix protection against multiple
14715         inclusions.
14716         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
14717
14718 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
14719
14720         [BZ #12935]
14721         * malloc/memusage.sh: Fix quoting in message.
14722         * debug/xtrace.sh: Likewise.
14723
14724         * configure.in: Remove support for --experimental-malloc option, make
14725         it the default.
14726         * config.make.in: Likewise.
14727         * malloc/Makefile: Likewise.
14728
14729 2011-06-27  Andreas Schwab  <schwab@redhat.com>
14730
14731         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
14732         two-byte characters.
14733
14734 2011-06-27  Roland McGrath  <roland@hack.frob.com>
14735
14736         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
14737         AC_CACHE_CHECK invocation.
14738         * configure: Regenerated.
14739
14740         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
14741
14742 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
14743
14744         [BZ #12350]
14745         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
14746         bit from old_res_options.
14747
14748         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
14749
14750         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
14751         value type for setfct.
14752
14753 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
14754
14755         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
14756         __gettimeofday instead of gettimeofday.
14757
14758 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
14759
14760         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
14761
14762 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
14763
14764         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
14765
14766         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
14767         info.
14768
14769 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
14770
14771         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14772         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
14773         strcpy-sse2-unaligned strncpy-sse2-unaligned
14774         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
14775         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
14776         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
14777         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
14778         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
14779         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
14780         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
14781         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
14782         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
14783         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
14784         (STRCPY): Support SSE2 and SSSE3 versions.
14785
14786 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
14787
14788         [BZ #12874]
14789         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
14790         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
14791         kernels which artificially limit size of requests.
14792
14793 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
14794
14795         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14796         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
14797         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
14798         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
14799         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
14800         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
14801         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
14802         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
14803         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
14804         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
14805         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
14806         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
14807         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
14808         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
14809         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
14810         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14811         Enable unaligned load optimization for Intel Core i3, i5 and i7
14812         processors.
14813         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
14814         Define.
14815         (index_Fast_Unaligned_Load): Define.
14816         (HAS_FAST_UNALIGNED_LOAD): Define.
14817
14818 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
14819
14820         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
14821
14822 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
14823
14824         [BZ #12907]
14825         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
14826         until it is clear that the information is realy needed.
14827         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
14828
14829 2011-06-22  Andreas Schwab  <schwab@redhat.com>
14830
14831         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
14832
14833 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
14834
14835         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
14836         /sys/devices/system/cpu/online if it is usable.
14837
14838         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
14839         reading the information from the /proc filesystem to once a second.
14840
14841 2011-06-21  Andreas Jaeger  <aj@suse.de>
14842
14843         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
14844         NULL after inclusion of kernel headers.
14845
14846 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
14847
14848         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
14849         calls to internal_setent.
14850
14851         [BZ #12885]
14852         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
14853         addresses using gethostbyname4_r ignore IPv4 addresses.
14854
14855         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
14856         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
14857
14858         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
14859
14860 2011-06-20  David S. Miller  <davem@davemloft.net>
14861
14862         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
14863         inclusions.
14864         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
14865
14866         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
14867         (elf_irel): Use it.
14868         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
14869         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
14870         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
14871         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
14872         * sysdeps/x86_64/dl-irel.h: Likewise.
14873
14874         * elf/dl-runtime.c: Use elf_ifunc_invoke.
14875         * elf/dl-sym.c: Likewise.
14876
14877 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
14878
14879         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
14880         need to dereference resplen2.
14881
14882 2011-06-14  Andreas Schwab  <schwab@redhat.com>
14883
14884         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
14885
14886 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
14887
14888         * Makeconfig: Define vardbdir and inst_vardbdir.
14889         * nss/Makefile: Add rules to install db-Makefile.
14890
14891         * nss/nss_db/db-XXX.c: Cleanup.
14892
14893         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
14894         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
14895         GLIBC_PRIVATE.
14896         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
14897         * nss/makedb.c: Implement -g option to specify that value strings
14898         are generated and should not be added to table iterated over for
14899         get*ent calls.
14900         * nss/nss_db/db-initgroups.c: New file.
14901
14902         * nss/getent.c: Add support for initgroups lookups through getgrouplist
14903         interface.
14904
14905         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
14906         (internal_getgrouplist): Adjust to name change.
14907         Update use_initgroups_entry if this is not the first call.
14908         * nss/databases.def: Add initgroups entry.
14909
14910         * nss/makedb.c (compute_tables): Check result of multiple hash table
14911         sizes to minimize maximum chain length.
14912
14913 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
14914
14915         * Versions.def: Add entry for libnss_db.
14916         * shlib-versions: Likewise.
14917         * nss/Makefile: Add rules to build libnss_db.
14918         * nss/Versions: Add libnss_db information.  Organize libnss_files
14919         entries better.
14920         * nss/db-Makefile: Add gshadow support.  Change rules for the new
14921         makedb progra.  Some minor improvements to generate smaller files.
14922         * nss/nss_db/nss_db.h: Move NSS database header data structures to
14923         here from...
14924         * nss/makedb.c: ...here.
14925         Improve database format to be smaller and require less memory at
14926         runtime.
14927         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
14928         db anymore.
14929         * nss/nss_db/db-netgrp.c: Likewise.
14930         * nss/nss_db/db-open.c: Likewise.
14931         * nss/nss_files/flies-XXX.x: Adjust comments.
14932         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
14933         * nss/nss_files/files-grp.c: Likewise.
14934         * nss/nss_files/files-hosts.c: Likewise.
14935         * nss/nss_files/files-network.c: Likewise.
14936         * nss/nss_files/files-proto.c: Likewise.
14937         * nss/nss_files/files-pwd.c: Likewise.
14938         * nss/nss_files/files-rpc.c: Likewise.
14939         * nss/nss_files/files-service.c: Likewise.
14940         * nss/nss_files/files-sgrp.c: Likewise.
14941         * nss/nss_files/files-spwd.c: Likewise.
14942         * nss/nss_db/db-alias.c: Removed.
14943         * nss/nss_db/dummy-db.h: Removed.
14944
14945 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
14946
14947         * nss/makedb.c: Rewritten to not use database library.
14948         * nss/Makefile: Update to build new makedb program.
14949
14950 2011-06-14  Andreas Jaeger  <aj@suse.de>
14951
14952         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
14953         memset declaration.
14954
14955 2011-06-10  Andreas Schwab  <schwab@redhat.com>
14956
14957         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
14958         tmpbuf.
14959
14960 2011-06-10  Roland McGrath  <roland@hack.frob.com>
14961
14962         * Makerules (shlib.lds): Fail if the linker script comes out empty.
14963         * elf/Makefile ($(objpfx)ld.so): Likewise.
14964
14965         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
14966         Don't list ld.so twice in dependencies.
14967
14968         * posix/bug-regex31.c: Include <stdlib.h>.
14969
14970         * nscd/hstcache.c (cache_addhst): Remove unused variable.
14971
14972         * nis/nss_compat/compat-spwd.c
14973         (getspent_next_nss_netgr): Remove unused variable.
14974         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
14975
14976         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
14977         nonmembers" output to use the right array.
14978
14979         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
14980
14981         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
14982
14983         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
14984         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
14985         * catgets/gencat.c (read_input_file): Likewise.
14986         * locale/programs/locarchive.c (enlarge_archive): Likewise.
14987
14988         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
14989         variable definition inside #if's controlling its use.
14990
14991         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
14992
14993         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
14994
14995         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
14996
14997         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
14998         unreachable code.
14999
15000         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
15001
15002         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
15003         * configure: Regenerated.
15004
15005         * Makerules: Revert last change.
15006         * elf/Makefile: Likewise.
15007
15008 2011-06-09  Roland McGrath  <roland@hack.frob.com>
15009
15010         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
15011         * elf/Makefile ($(objpfx)librtld.os): Likewise.
15012         (reloc-link): Likewise.
15013
15014 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
15015
15016         * elf/Makefile: Add rules to build pldd.
15017         * elf/pldd.c: New file.
15018         * elf/pldd-xx.c: New file.
15019
15020 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
15021
15022         * version.h: Update for 2.15 development version.
15023
15024 2011-06-07  David S. Miller  <davem@davemloft.net>
15025
15026         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
15027         ifuncs.
15028         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
15029         elf_machine_lazy_rel): Likewise.
15030         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
15031         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
15032         elf_machine_lazy_rel): Likewise.
15033         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
15034         dl_hwcap via passed in argument.
15035         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
15036         Likewise.
15037
15038 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15039
15040         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
15041
15042 2011-06-06  Roland McGrath  <roland@hack.frob.com>
15043
15044         [BZ #12849]
15045         * manual/fdl-1.1.texi: New file, verbatim from:
15046         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
15047         * manual/lgpl-2.1.texi: New file, verbatim from:
15048         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
15049         * manual/Makefile (licenses): New variable, list those new file names.
15050         (texis): Use it.
15051         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
15052
15053         * manual/fdl.texi: File removed.
15054         * manual/lesser.texi: File removed.
15055         * manual/libc.texinfo (Copying, Documentation License):
15056         Use new @include file names, put @appendix directive before @include.
15057
15058 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
15059
15060         [BZ #12841]
15061         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
15062         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
15063         (mq_open): Add __NTH.
15064
15065 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
15066
15067         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15068         Assume Intel Core i3/i5/i7 processor if AVX is available.
15069
15070 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
15071
15072         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
15073         typo.
15074
15075 2011-05-31  Andreas Schwab  <schwab@redhat.com>
15076
15077         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
15078         memory.  Use alloca_account.  Fix memory leak when retrying.
15079
15080 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
15081
15082         * version.h (RELEASE): Bump for 2.14 release.
15083         * include/features.h (__GLIBC_MINOR__): Bump to 14.
15084
15085         * config.make.in (RANLIB): Remove entry.
15086
15087 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
15088
15089         * po/Makefile (po-sed-cmd): Add ksh to extensions.
15090         (libc.pot): Work around missing support for .ksh extension in xgettext.
15091
15092         [BZ #12684]
15093         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
15094         if both request failed.
15095         (send_dg): In case of server errors clear resplen or *resplen2.
15096
15097         [BZ #12454]
15098         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
15099         when there are multiple maps.
15100         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
15101         (_dl_fini): Remove test here.
15102
15103         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
15104
15105 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
15106
15107         [BZ #12350]
15108         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
15109         bit from old_res_options.
15110         (gaih_inet): Likewise.
15111
15112         [BZ #11099]
15113         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
15114         as signed.
15115
15116         * resolv/res_init.c (res_setoptions): Make the code more compact.
15117
15118         [BZ #11558]
15119         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
15120         set RES_USEVC.
15121
15122         [BZ #11634]
15123         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
15124
15125         * malloc/malloc.h: Mark malloc hook variables as deprecated.
15126
15127         [BZ #11781]
15128         * malloc/malloc.h: Declare malloc hook variables as volatile.
15129
15130         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
15131         in last patch.
15132
15133         [BZ #11799]
15134         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
15135         raise in the comment.
15136         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
15137         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
15138         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
15139
15140 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
15141
15142         [BZ #12811]
15143         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
15144         grow the buffers more if it already has to be sufficient.
15145         (build_wcs_upper_buffer): Likewise.
15146         * posix/regexec.c (check_matching): Likewise.
15147         (clean_state_log_if_needed): Likewise.
15148         (extend_buffers): Don't enlarge buffers beyond size of the input
15149         buffer.
15150         Patches mostly by Emil Wojak <emil@wojak.eu>.
15151         * posix/bug-regex32.c: New file.
15152         * posix/Makefile (tests): Add bug-regex32.
15153
15154         * locale/findlocale.c (_nl_find_locale): Return right away if
15155         _nl_explode_name failed.
15156         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
15157
15158         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
15159
15160         * debug/xtrace.sh: Unify messages.
15161         * malloc/memusage.sh: Likewise.
15162
15163         [BZ #12813]
15164         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
15165         time symbol from vDSO.  Substitute with vsyscall if not available.
15166         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
15167         __vdso_time.
15168
15169         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
15170         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
15171         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
15172         Add sendmmsg and internal_sendmmsg.
15173         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
15174         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
15175         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
15176
15177         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
15178         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
15179         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
15180
15181 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
15182
15183         [BZ #12813]
15184         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
15185         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
15186         available.
15187         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
15188         __vdso_getcpu.
15189
15190         [BZ #12814]
15191         * iconvdata/Makefile (tests): Add bug-iconv9.
15192         * iconvdata/bug-iconv9.c: New file.
15193
15194 2011-05-27  Andreas Schwab  <schwab@redhat.com>
15195
15196         [BZ #12814]
15197         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
15198
15199 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
15200
15201         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15202         (struct user_regs_struct): Change intcs field back to cs.
15203
15204 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
15205
15206         * po/ja.po: Update from translation team.
15207
15208 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
15209
15210         [BZ #12795]
15211         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
15212         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
15213
15214 2011-05-20  Andreas Schwab  <schwab@redhat.com>
15215
15216         * stdlib/longlong.h: Update from GCC.
15217
15218 2011-05-23  Andreas Schwab  <schwab@redhat.com>
15219
15220         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
15221         parameter name.
15222         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
15223         Add parameter name.
15224         (__sysconf): Pass it down.
15225
15226 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
15227
15228         [BZ #12671]
15229         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
15230         some situations.
15231         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
15232         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
15233         add in in __libc_use_alloca calls.  Adjust callers.
15234         (glob): Use malloc in some situations.
15235
15236         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
15237         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
15238         pltexit.
15239
15240 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
15241
15242         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
15243         and CLOCK_BOOTTIME_ALARM.
15244
15245         [BZ #12782]
15246         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
15247         is returned.
15248
15249         * string/_strerror.c (__strerror_r): Print negative errors as signed
15250         numbers.
15251
15252         [BZ #12777]
15253         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
15254         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
15255         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
15256
15257         * configure.in: Fix typo in redirection and correct removal of test
15258         files in two cases.
15259
15260         [BZ #12788]
15261         * locale/setlocale.c (new_composite_name): Fix test to check for
15262         identical name of all categories.
15263
15264         [BZ #12792]
15265         * libio/filedoalloc.c (local_isatty): New function.
15266         (_IO_file_doallocate): Use local_isatty.
15267         * stdio-common/perror.c (perror): In case a new stream is used
15268         forward the stream error.
15269         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
15270         error flag.
15271
15272 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
15273
15274         [BZ #11869]
15275         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
15276         alloca.
15277         * include/alloca.h (extend_alloca_account): Define.
15278
15279         [BZ #11857]
15280         * posix/regex.h: Fix comments with documentation of user-accessible
15281         fields after compilation and describe correct free'ing of pattern
15282         after re_compile_pattern.
15283         Patch by Reuben Thomas <rrt@sc3d.org>.
15284
15285 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
15286
15287         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
15288         and -mno-altivec to prevent the compiler from using Altivec and/or
15289         VSX instructions when the corresponding registers are not available.
15290
15291 2011-05-19  Andreas Schwab  <schwab@redhat.com>
15292
15293         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
15294
15295 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
15296
15297         * libio/freopen.c (freopen): Use __dup2, not dup2.
15298         * libio/freopen64.c (freopen64): Likewise.
15299
15300 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15301
15302         [BZ #12775]
15303         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
15304         * math/Makefile (tests): Add test-powl.
15305         (CFLAGS-test-powl.c): Define.
15306         * math/test-powl.c: New file.
15307
15308 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15309
15310         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
15311
15312 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
15313
15314         [BZ #11837]
15315         * iconvdata/gb18030.c: Update to GB18020-2005.
15316
15317 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
15318
15319         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
15320         RE_SYNTAX_POSIX_AWK): Update to match recent development.
15321         Patch by Aharon Robbins <arnold@skeeve.com>.
15322
15323         [BZ #11892]
15324         * stdlib/putenv.c (putenv): Don't always create copy of the variable
15325         on the stack.
15326
15327         [BZ #11895]
15328         * misc/pselect.c (__pselect): Handle timeout value errors hidden
15329         through underflows.
15330
15331         [BZ #12766]
15332         * misc/error.c (error_at_line): Ensure file_name and old_file_name
15333         point to strings before performing equality test for error_one_per_line
15334         mode.
15335
15336         [BZ #11697]
15337         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
15338
15339         [BZ #11820]
15340         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15341         (struct user_fpregs_struct): Avoid __uint*_t types.
15342
15343         [BZ #6420]
15344         * malloc/mtrace.c (tr_where): Add additional parameter to point to
15345         symbol info.  Use it instead of calling _dl_addr locally.
15346         (lock_and_info): New function.
15347         (tr_freehook): Call lock_and_info and pass symbol info as additional
15348         parameter to tr_where.
15349         (tr_mallochook): Likewise.
15350         (tr_reallochook): Likewise.
15351         (tr_memalignhook): Likewise.
15352
15353         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
15354         used and couldn't be at all thread-safe.
15355
15356 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
15357
15358         * libio/freopen.c (freopen): Don't close old file descriptor
15359         before the new one is opened.  Instead dup the new file descriptor
15360         to the old one after the new stream is created.
15361         * libio/freopen64.c (freopen64): Likewise.
15362         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
15363         * libio/fileops.c (_IO_new_file_close_it): Handle new
15364         _IO_FLAGS2_NOCLOSE flag.
15365         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
15366         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
15367         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
15368         _IO_FLAGS2_NOCLOSE flag.
15369         * include/unistd.h: Add hidden_proto for dup3.
15370         Define __have_dup3.
15371         * io/dup3.c: Define hidden symbol.
15372         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
15373
15374         [BZ #7101]
15375         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
15376         when an incomplete long option is used.
15377         * posix/tst-getopt_long1.c: New file.
15378         * posix/Makefile (tests): Add tst-getopt_long1.
15379
15380         [BZ #10138]
15381         * scripts/config.guess: Update from autoconf-2.68.
15382         * scripts/config.sub: Likewise.
15383
15384         [BZ #10157]
15385         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
15386         tests into ...
15387         (has_cpuclock): ...this.  New function.
15388         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
15389         macro here based on has_cpuclock code.
15390
15391         [BZ #10149]
15392         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15393         First byte (not low byte) is now always NUL.
15394         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
15395
15396         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15397         Use non-cancelable interfaces.
15398
15399         [BZ #9809]
15400         * locale/iso-639.def: Add entry for Sorani.
15401
15402         [BZ #11901]
15403         * include/stdlib.h: Move include protection to the right place.
15404         Define abort_msg_s.  Declare __abort_msg with it.
15405         * stdlib/abort.c (__abort_msg): Adjust type.
15406         * assert/assert.c (__assert_fail_base): New function.  Majority
15407         of code from __assert_fail.  Allocate memory for __abort_msg with
15408         mmap.
15409         (__assert_fail): Now call __assert_fail_base.
15410         * assert/assert-perr.c: Remove bulk of implementation.  Use
15411         __assert_fail_base.
15412         * include/assert.hL Declare __assert_fail_base.
15413         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
15414         mmap.
15415         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
15416
15417 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
15418
15419         [BZ #11952]
15420         [BZ #12453]
15421         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
15422         until all modules are registered in the DTV.
15423         * elf/Makefile: Add rules to build and run tst-tls19.
15424         * elf/tst-tls19.c: New file.
15425         * elf/tst-tls19mod1.c: New file.
15426         * elf/tst-tls19mod2.c: New file.
15427         * elf/tst-tls19mod3.c: New file.
15428         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
15429
15430         [BZ #12083]
15431         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
15432         correctly.
15433
15434         [BZ #12601]
15435         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
15436         two-byte sequence errors.
15437         * iconvdata/Makefile (tests): Add bug-iconv8.
15438         * iconvdata/bug-iconv8.c: New file.
15439
15440         [BZ #12626]
15441         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
15442         buf2 definition.
15443
15444         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
15445
15446         [BZ #12432]
15447         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
15448         (dummy_getcfa): New function.
15449         (init): Get _Unwind_GetCFA address, use dummy if not found.
15450         (backtrace_helper): In recursion check, also check whether CFA changes.
15451         (__backtrace): Completely initialize arg.
15452
15453         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
15454         storing incomplete byte sequence in state object.  Avoid testing for
15455         guaranteed too small input if we know there is enough data available.
15456
15457 2011-05-11  Andreas Schwab  <schwab@redhat.com>
15458
15459         * Makeconfig (+link-pie): Indent.
15460         * Rules (binaries-pie): Define if $(have-fpie) and
15461         $(build-shared).
15462         (binaries-shared): Also filter out $(binaries-pie).
15463         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
15464         * nscd/Makefile (others-pie): Add nscd.
15465         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
15466         ($(objpfx)nscd): Remove command override.
15467         * login/Makefile (others-pie): Add pt_chown.
15468         ($(objpfx)pt_chown): Remove command override.
15469         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
15470         remove command overrides.
15471
15472 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
15473
15474         * libio/tst_putwc.c: Fix error messages.
15475
15476         [BZ #12724]
15477         * libio/fileops.c (_IO_new_file_close_it): Always flush when
15478         currently writing and seek to current position when not.
15479         * libio/Makefile (tests): Add bug-fclose1.
15480         * libio/bug-fclose1.c: New file.
15481
15482 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
15483
15484         [BZ #12511]
15485         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
15486         don't set DF_1_NODELETE here.
15487         (do_lookup_x): When entering new entry test for copy relocation
15488         and if necessary set DF_1_NODELETE flag.
15489         * elf/tst-unique4.cc: New file.
15490         * elf/tst-unique4.h: New file.
15491         * elf/tst-unique4lib.cc: New file.
15492         * elf/Makefile: Add rules to build and run tst-unique4.
15493         Patch by Piotr Bury <pbury@goahead.com>.
15494
15495 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15496
15497         [BZ #12052]
15498         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
15499
15500         [BZ #12625]
15501         * misc/mntent_r.c (addmntent): Flush the stream after the output
15502
15503         [BZ #12393]
15504         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
15505         (is_trusted_path_normalize): Skip initial colon.  Append slash
15506         to empty buffer.  Duplicate is_trusted_path code but allow
15507         constructed patch to be prefix.
15508         (is_dst): Allow $ORIGIN followed by /.
15509         (_dl_dst_substitute): Correct clearing of check_for_trusted.
15510         Correct testing of result of is_trusted_path_normalize
15511         (decompose_rpath): Fix warning.
15512
15513 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
15514
15515         [BZ #11257]
15516         * grp/initgroups.c (internal_getgrouplist): When we found the service
15517         list through the initgroups entry in nsswitch.conf do not always
15518         continue on a successful lookup.  Don't always use the
15519         __nss_group_database value if it is set.
15520         * nss/nsswitch.conf (initgroups): Change action for successful db
15521         lookup to continue for compatibility.
15522
15523 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
15524
15525         [BZ #11532]
15526         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
15527         and CP774 modules.
15528         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
15529         and CP774 modules.
15530         * iconvdata/tst-tables.sh: Likewise.
15531         * iconvdata/cp770.c: New file.
15532         * iconvdata/cp771.c: New file.
15533         * iconvdata/cp772.c: New file.
15534         * iconvdata/cp773.c: New file.
15535         * iconvdata/cp774.c: New file.
15536         * iconvdata/testdata/CP770: New file.
15537         * iconvdata/testdata/CP770..UTF8: New file.
15538         * iconvdata/testdata/CP771: New file.
15539         * iconvdata/testdata/CP771..UTF8: New file.
15540         * iconvdata/testdata/CP772: New file.
15541         * iconvdata/testdata/CP772..UTF8: New file.
15542         * iconvdata/testdata/CP773: New file.
15543         * iconvdata/testdata/CP773..UTF8: New file.
15544         * iconvdata/testdata/CP774: New file.
15545         * iconvdata/testdata/CP774..UTF8: New file.
15546
15547         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
15548         END CHARMAP line.
15549         * iconvdata/gen-8bit-gap.sh: Likewise.
15550         * iconvdata/gen-8bit.sh: Likewise.
15551
15552         * locale/iso-639.def: Add ary entry.
15553
15554         [BZ #11258]
15555         * locale/C-translit.h.in: Add U20A1 transliteration.
15556
15557         [BZ #12178]
15558         * locale/iso-639.def: Add wae entry.
15559         Patch by Kevin Bortis <bortis@translate-wae.ch>.
15560
15561         [BZ #12545]
15562         * locale/programs/localedef.c (construct_output_path): Use ssize_t
15563         for n.
15564
15565         [BZ #12711]
15566         * locale/C-translit.h.in: Add entry for U20B9.
15567         Patch by pravin.d.s@gmail.com.
15568
15569 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
15570
15571         [BZ #12713]
15572         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
15573         ENAMETOOLONG use generic getcwd.
15574         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
15575         in rtld.  Use *stat64.
15576         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
15577         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
15578         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
15579         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
15580         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
15581         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
15582         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
15583         __fstatat64 macros.
15584         * include/dirent.h: Add libc_hidden_proto for rewinddir.
15585         * dirent/rewinddir.c: Add libc_hidden_def.
15586         * sysdeps/mach/hurd/rewinddir.c: Likewise.
15587         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
15588
15589         * include/dirent.h (__alloc_dir): Add flags parameter.
15590         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
15591         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
15592         __alloc_dir.
15593         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
15594         from fdopendir if O_CLOEXEC is already set.
15595
15596 2011-03-15  Alan Modra  <amodra@gmail.com>
15597
15598         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
15599         l_tls_firstbyte_offset non-zero.  Save padding offset in
15600         l_tls_firstbyte_offset for later use.
15601         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
15602         freeing static tls block.
15603
15604 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
15605
15606         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
15607         where #ifdef was intended.  The intent is to prevent ARG_MAX from
15608         being defined by the kernel headers.
15609
15610 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
15611
15612         [BZ #12734]
15613         * resolv/resolv.h: Define RES_NOTLDQUERY.
15614         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
15615         no-tld-query and set RES_NOTLDQUERY.
15616         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
15617         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
15618         modern BIND to search name as TLD unless forbidden.
15619
15620 2011-05-07  Petr Baudis  <pasky@suse.cz>
15621             Ulrich Drepper  <drepper@gmail.com>
15622
15623         [BZ #12393]
15624         * elf/dl-load.c (fillin_rpath): Move trusted path check...
15625         (is_trusted_path): ...to here.
15626         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
15627         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
15628         using is_trusted_path_normalize() in setuid scripts.
15629
15630 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
15631
15632         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
15633         __BEGIN/__END_DECLS.
15634
15635 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
15636
15637         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
15638         NSS_STATUS_NOTFOUND if no record was found.
15639
15640 2011-05-05  Andreas Schwab  <schwab@redhat.com>
15641
15642         * sunrpc/Makefile (headers): Add rpc/netdb.h.
15643         (headers-not-in-tirpc): Remove rpc/netdb.h
15644         * resolv/netdb.h: Revert last change.
15645
15646 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15647
15648         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
15649         circular dependency between libgcc.a and libc.a.
15650
15651 2011-05-05  Andreas Schwab  <schwab@redhat.com>
15652
15653         * resolv/netdb.h: Don't include <rpc/netdb.h>.
15654         * nis/Makefile: Don't install rpcsvc/*.
15655         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
15656         instead of <rpc/types.h>.
15657         (MAXHOSTNAMELEN): Define.
15658
15659 2011-05-03  Andreas Schwab  <schwab@redhat.com>
15660
15661         * elf/ldconfig.c (add_dir): Don't crash on empty path.
15662
15663 2011-04-28  Maciej Babinski  <mbabinski@google.com>
15664
15665         [BZ #12714]
15666         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
15667         gethostbyname4_r when IPv6 results are possible.
15668
15669 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
15670
15671         [BZ #12723]
15672         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
15673         _PC_PIPE_BUF handling.
15674
15675 2011-04-30  Bruno Haible  <bruno@clisp.org>
15676
15677         [BZ #12717]
15678         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
15679         * resolv/netdb.h (getnameinfo): Change type of flags parameter
15680         to 'int'.
15681         * inet/getnameinfo.c (getnameinfo): Likewise.
15682
15683 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
15684
15685         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
15686         to groups setting in database lookup.
15687         * nss/nsswitch.conf: Add initgroups entry.
15688
15689 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
15690
15691         [BZ #12685]
15692         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
15693         mode string.
15694         Patch by Eric Blake <eblake@redhat.com>.
15695
15696 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
15697
15698         * sunrpc/Makefile (need-export-routines): Add svc_run.
15699         (routines): Remove svc_run.
15700         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
15701         * sunrpc/clnt_perr.c (clnt_perrno): Export.
15702         * sunrpc/svc_run.c (svc_run): Likewise.
15703         * sunrpc/svc_udp.c (svcudp_create): Likewise.
15704
15705 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
15706
15707         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
15708         problem in reallocation in last patch.
15709
15710 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
15711
15712         * sunrpc/Makefile: Move inclusion of Rules.
15713
15714 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
15715
15716         * nss/nss_files/files-initgroups.c: New file.
15717         * nss/Makefile (libnss_files-routines): Add files-initgroups.
15718         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
15719         _nss_files_initgroups_dyn.
15720
15721 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
15722
15723         * elf/elf.h (R_ARM_IRELATIVE): Define.
15724
15725 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
15726
15727         * po/ru.po: Update from translation team.
15728
15729 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
15730
15731         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
15732         dependencies.
15733
15734 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
15735
15736         [BZ #12653]
15737         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
15738         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
15739         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
15740         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
15741         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
15742
15743 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
15744
15745         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
15746         differing bytes.
15747         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
15748         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
15749         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15750
15751 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
15752
15753         [BZ #12420]
15754         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
15755         storing it.
15756         * stdlib/bug-getcontext.c: New file.
15757         * stdlib/Makefile: Add rules to build and run bug-getcontext.
15758
15759 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15760
15761         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
15762         instructions into .machine "z9-109".
15763         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
15764         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
15765
15766 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15767
15768         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
15769         between environment variables and auxiliary vector.
15770
15771 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
15772
15773         * Makefile: Add rules to build linkobj/libc.so.
15774         * include/libc-symbols.h: Define libc_hidden_nolink.
15775         * include/rpc/auth.h: Mark functions which are to be hidden.
15776         * include/rpc/auth_des.h: Likewise.
15777         * include/rpc/auth_unix.h: Likewise.
15778         * include/rpc/clnt.h: Likewise.
15779         * include/rpc/des_crypt.h: Likewise.
15780         * include/rpc/key_prot.h: Likewise.
15781         * include/rpc/pmap_clnt.h: Likewise.
15782         * include/rpc/pmap_prot.h: Likewise.
15783         * include/rpc/pmap_rmt.h: Likewise.
15784         * include/rpc/rpc_msg.h: Likewise.
15785         * include/rpc/svc.h: Likewise.
15786         * include/rpc/svc_auth.h: Likewise.
15787         * include/rpc/xdr.h: Likewise.
15788         * nis/Makefile: Link all DSOs against linkobj/libc.so.
15789         * nss/Makefile: Likewise.
15790         * sunrpc/Makefile: Don't install headers.  Build library with normal
15791         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
15792         * sunrpc/auth_des.c: Hide exported symbols by default, export some
15793         for the compat linking library.  Remove use of INTDEF/INTUSE.
15794         * sunrpc/auth_none.c: Likewise.
15795         * sunrpc/auth_unix.c: Likewise.
15796         * sunrpc/authdes_prot.c: Likewise.
15797         * sunrpc/authuxprot.c: Likewise.
15798         * sunrpc/clnt_gen.c: Likewise.
15799         * sunrpc/clnt_perr.c: Likewise.
15800         * sunrpc/clnt_raw.c: Likewise.
15801         * sunrpc/clnt_simp.c: Likewise.
15802         * sunrpc/clnt_tcp.c: Likewise.
15803         * sunrpc/clnt_udp.c: Likewise.
15804         * sunrpc/clnt_unix.c: Likewise.
15805         * sunrpc/des_crypt.c: Likewise.
15806         * sunrpc/des_soft.c: Likewise.
15807         * sunrpc/get_myaddr.c: Likewise.
15808         * sunrpc/key_call.c: Likewise.
15809         * sunrpc/key_prot.c: Likewise.
15810         * sunrpc/netname.c: Likewise.
15811         * sunrpc/pm_getmaps.c: Likewise.
15812         * sunrpc/pm_getport.c: Likewise.
15813         * sunrpc/pmap_clnt.c: Likewise.
15814         * sunrpc/pmap_prot.c: Likewise.
15815         * sunrpc/pmap_prot2.c: Likewise.
15816         * sunrpc/pmap_rmt.c: Likewise.
15817         * sunrpc/publickey.c: Likewise.
15818         * sunrpc/rpc_cmsg.c: Likewise.
15819         * sunrpc/rpc_common.c: Likewise.
15820         * sunrpc/rpc_dtable.c: Likewise.
15821         * sunrpc/rpc_prot.c: Likewise.
15822         * sunrpc/rpc_thread.c: Likewise.
15823         * sunrpc/rtime.c: Likewise.
15824         * sunrpc/svc.c: Likewise.
15825         * sunrpc/svc_auth.c: Likewise.
15826         * sunrpc/svc_authux.c: Likewise.
15827         * sunrpc/svc_raw.c: Likewise.
15828         * sunrpc/svc_run.c: Likewise.
15829         * sunrpc/svc_simple.c: Likewise.
15830         * sunrpc/svc_tcp.c: Likewise.
15831         * sunrpc/svc_udp.c: Likewise.
15832         * sunrpc/svc_unix.c: Likewise.
15833         * sunrpc/svcauth_des.c: Likewise.
15834         * sunrpc/xcrypt.c: Likewise.
15835         * sunrpc/xdr.c: Likewise.
15836         * sunrpc/xdr_array.c: Likewise.
15837         * sunrpc/xdr_float.c: Likewise.
15838         * sunrpc/xdr_intXX_t.c: Likewise.
15839         * sunrpc/xdr_mem.c: Likewise.
15840         * sunrpc/xdr_rec.c: Likewise.
15841         * sunrpc/xdr_ref.c: Likewise.
15842         * sunrpc/xdr_sizeof.c: Likewise.
15843         * sunrpc/xdr_stdio.c: Likewise.
15844
15845 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
15846
15847         [BZ #12650]
15848         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
15849         * sysdeps/ia64/dl-tls.h: Likewise.
15850         * sysdeps/powerpc/dl-tls.h: Likewise.
15851         * sysdeps/s390/dl-tls.h: Likewise.
15852         * sysdeps/sh/dl-tls.h: Likewise.
15853         * sysdeps/sparc/dl-tls.h: Likewise.
15854         * sysdeps/x86_64/dl-tls.h: Likewise.
15855         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
15856
15857 2011-03-14  Andreas Schwab  <schwab@redhat.com>
15858
15859         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
15860         rpath element also skip the following colon.
15861         (expand_dynamic_string_token): Add is_path parameter and pass
15862         down to DL_DST_REQUIRED and _dl_dst_substitute.
15863         (decompose_rpath): Call expand_dynamic_string_token with
15864         non-zero is_path.  Ignore empty rpaths.
15865         (_dl_map_object_from_fd): Call expand_dynamic_string_token
15866         with zero is_path.
15867
15868 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
15869
15870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
15871         Make cancelable.
15872
15873 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
15874
15875         [BZ #12655]
15876         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
15877         Patch by Filipe David Manana <fdmanana@apache.org>.
15878
15879 2011-04-07  Andreas Schwab  <schwab@redhat.com>
15880
15881         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
15882         Maintain aligned stack.
15883         (CHECK_RSP): Remove unused macro.
15884
15885 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
15886
15887         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
15888         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
15889
15890 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
15891
15892         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
15893
15894         * include/features.h: Mention __USE_XOPEN2K8 in comment.
15895
15896 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
15897
15898         [BZ #12518]
15899         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
15900         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
15901         * sysdeps/x86_64/memmove.c: New file.
15902         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
15903         (memcpy): Renamed to ...
15904         (__new_memcpy): This.
15905         (memcpy): Provide GLIBC_2_14 memcpy.
15906         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
15907         (memcpy): Provide GLIBC_2_2_5 memcpy.
15908
15909 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15910
15911         [BZ #12631]
15912         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
15913
15914 2011-03-30  Andreas Schwab  <schwab@redhat.com>
15915
15916         * misc/syncfs.c: New file.
15917         * misc/Makefile (routines): Add syncfs.
15918         * posix/unistd.h: Declare syncfs.
15919         * sysdeps/unix/syscalls.list: Add syncfs.
15920
15921 2011-04-01  Andreas Schwab  <schwab@redhat.com>
15922
15923         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
15924         open_by_handle_at.
15925         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15926         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15927         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15928         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15929         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15930         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
15931         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15932
15933 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15934
15935         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
15936         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15937         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
15938         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15939         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15940         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15941         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15942
15943         * io/Makefile: Compile fallocate.c, fallocate64.c, and
15944         sync_file_range.c with -fexceptions.
15945         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
15946         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
15947         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
15948         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
15949         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
15950         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
15951         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
15952         sync_file_range as cancellation point
15953         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
15954         now a wrapper around __call_sync_file_range with cancellation handling.
15955         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
15956         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
15957         function name to __call_sync_file_range.
15958         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
15959         Add call_sync_file_range.
15960
15961 2011-04-01  Andreas Schwab  <schwab@redhat.com>
15962
15963         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15964         bits/timex.h.
15965
15966 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15967
15968         * iconv/iconv.h: Fix typo in comment.
15969         * io/fcntl.h: Likewise.
15970         * libio/stdio.h: Likewise.
15971         * posix/spawn.h: Likewise.
15972         * posix/unistd.h: Likewise.
15973         * stdlib/stdlib.h: Likewise.
15974         * time/time.h: Likewise.
15975         * wcsmbs/wchar.h: Likewise.
15976
15977         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
15978         open_by_handle): Add.
15979         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
15980         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
15981         Augment a few comments.
15982         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15983         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15984         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15985         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15986         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15987         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
15988         open_by_handle.
15989
15990         * io/fcntl.h (AT_EMPTY_PATH): Define.
15991
15992 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
15993
15994         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
15995         * sysdeps/unix/sysv/linux/bits/time.h: New file.
15996         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
15997         to...
15998         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
15999         * Versions.def: Add GLIBC_2.14.
16000         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
16001         Export.
16002
16003 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
16004
16005         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
16006         round counter.
16007         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16008
16009 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
16010
16011         [BZ #12597]
16012         * string/test-strncmp.c (do_page_test): New function.
16013         (check2): Likewise.
16014         (test_main): Call check2.
16015         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
16016
16017 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
16018
16019         [BZ #12587]
16020         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
16021         Handle cache information in CPU leaf 4.
16022         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16023
16024 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
16025
16026         [BZ #12583]
16027         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
16028         character representation.
16029         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
16030
16031 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
16032
16033         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
16034         END(__isnan) to END(__isnanf) to match function entry point/label
16035         EALIGN(__isnanf,...).
16036
16037 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
16038
16039         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
16040
16041 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
16042
16043         [BZ #12510]
16044         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
16045         copy from the symbol referenced in the relocation to initialize the
16046         used variable.
16047         Patch by Piotr Bury <pbury@goahead.com>.
16048         * elf/Makefile: Add rules to build and tst-unique3.
16049         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
16050         * elf/tst-unique3.cc: New file.
16051         * elf/tst-unique3.h: New file.
16052         * elf/tst-unique3lib.cc: New file.
16053         * elf/tst-unique3lib2.cc: New file.
16054
16055         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
16056
16057 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
16058
16059         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
16060         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
16061         to _start.
16062
16063 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
16064
16065         * elf/dl-load.c (_dl_map_object): If we are looking for the first
16066         to-be-loaded object along a path to loader is ld.so.
16067
16068 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
16069             Ulrich Drepper  <drepper@gmail.com>
16070
16071         * sysdeps/x86_64/memset.S: After aligning destination, code
16072         branches to different locations depending on the value of
16073         misalignment, when multiarch is enabled. Fix this.
16074
16075 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
16076
16077         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
16078         Set _x86_64_preferred_memory_instruction for AMD processsors.
16079         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16080         Set bit_Prefer_SSE_for_memop for AMD processors.
16081
16082 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
16083
16084         * libio/fmemopen.c (fmemopen): Optimize a bit.
16085
16086 2011-03-03  Andreas Schwab  <schwab@redhat.com>
16087
16088         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
16089
16090 2011-03-03  Roland McGrath  <roland@redhat.com>
16091
16092         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
16093
16094 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
16095
16096         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
16097         __bzero_ultra1 instead of __memset_ultra1.
16098
16099 2011-02-23  Andreas Schwab  <schwab@redhat.com>
16100             Ulrich Drepper  <drepper@gmail.com>
16101
16102         [BZ #12509]
16103         * include/link.h (struct link_map): Add l_orig_initfini.
16104         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
16105         returning unsuccessfully.
16106         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
16107         close of a file loaded at startup, restore the original l_initfini
16108         list.
16109         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
16110         list, store the pointer.
16111         * elf/Makefile ($(objpfx)noload-mem): New rule.
16112         (noload-ENV): Define.
16113         (tests): Add $(objpfx)noload-mem.
16114         * elf/noload.c: Include <memcheck.h>.
16115         (main): Call mtrace.  Close all opened handles.
16116
16117 2011-02-17  Andreas Schwab  <schwab@redhat.com>
16118
16119         [BZ #12454]
16120         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
16121         dependencies are missing.
16122
16123 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16124
16125         Fix __if_freereq crash: Unlike the generic version which uses free,
16126         Hurd needs munmap.
16127         * sysdeps/mach/hurd/ifreq.h: New file.
16128
16129 2011-01-27  Petr Baudis  <pasky@suse.cz>
16130             Ulrich Drepper  <drepper@gmail.com>
16131
16132         [BZ 12445]#
16133         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
16134         to extend_alloca().
16135         * stdio-common/bug23.c: New file.
16136         * stdio-common/Makefile (tests): Add bug23.
16137
16138 2010-09-28  Andreas Schwab  <schwab@redhat.com>
16139             Ulrich Drepper  <drepper@gmail.com>
16140
16141         [BZ #12489]
16142         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
16143         before performing relro protection.  At old place add assertion
16144         to make sure nothing changed.
16145
16146 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
16147             Glauber de Oliveira Costa  <glommer@gmail.com>
16148
16149         * elf/elf.h: Add new ARM TLS relocs.
16150
16151 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
16152
16153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16154         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
16155         cast from r3.
16156         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
16157         'tests' variable.
16158         * sysdeps/wordsize-64/tst-writev.c: New file.
16159
16160 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
16161
16162         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
16163         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
16164         insns in _dl_start to prevent a TOC reference before relocs are
16165         resolved.
16166
16167 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
16168
16169         [BZ #12469]
16170         * Makeconfig: Remove RANLIB definition.
16171         * Makerules: Don't use RANLIB.
16172         * aclocal.m4: Remove ranlib test.
16173         * configure.in: No need to check for ranlib.
16174         * elf/rtld-Rules: Don't use RANLIB.
16175
16176 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16177
16178         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
16179         protection macro.
16180         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
16181         inclusion protection macro.
16182
16183         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
16184         SIGRTMIN and SIGRTMAX and print information in that case only when
16185         SIGRTMIN is defined.
16186
16187 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16188
16189         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
16190         arginfo fn returning -1.
16191
16192         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
16193         and thousands string is zero terminated.
16194
16195 2011-02-03  Andreas Schwab  <schwab@redhat.com>
16196
16197         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
16198         sysdeps/unix/sysv/linux/bits/socket.h.
16199
16200 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16201
16202         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
16203         (__CPU_COUNT): Remove old macros.
16204         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
16205         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
16206         (__CPU_ALLOC, __CPU_FREE): Add macros.
16207         (__sched_cpualloc, __sched_cpufree): Add declarations.
16208
16209 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
16210
16211         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
16212         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
16213         * nscd/aicache.c (addhstaiX): Return timeout of added value.
16214         (readdhstai): Return value of addhstaiX call.
16215         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
16216         (addgrbyX): Return value returned by cache_addgr.
16217         (readdgrbyname): Return value returned by addgrbyX.
16218         (readdgrbygid): Likewise.
16219         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
16220         (addpwbyX): Return value returned by cache_addpw.
16221         (readdpwbyname): Return value returned by addhstbyX.
16222         (readdpwbyuid): Likewise.
16223         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
16224         (addservbyX): Return value returned by cache_addserv.
16225         (readdservbyname): Return value returned by addservbyX:
16226         (readdservbyport): Likewise.
16227         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
16228         (addhstbyX): Return value returned by cache_addhst.
16229         (readdhstbyname): Return value returned by addhstbyX.
16230         (readdhstbyaddr): Likewise.
16231         (readdhstbynamev6): Likewise.
16232         (readdhstbyaddrv6): Likewise.
16233         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
16234         (readdinitgroups): Return value returned by addinitgroupsX.
16235         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
16236         (prune_cache): Keep track of timeout value of re-added entries.
16237         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
16238         * nscd/nscd.h: Adjust prototypes of readd* functions.
16239
16240 2011-02-04  Roland McGrath  <roland@redhat.com>
16241
16242         * nis/nis_server.c (nis_servstate): Use the right name for 0.
16243         (nis_stats): Likewise.
16244         * nis/nis_modify.c (nis_modify): Likewise.
16245         * nis/nis_remove.c (nis_remove): Likewise.
16246         * nis/nis_add.c (nis_add): Likewise.
16247
16248         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
16249
16250         * posix/fnmatch_loop.c: Add some consts.
16251
16252         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
16253
16254 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
16255
16256         [BZ #12460]
16257         * config.make.in (config-cflags-novzeroupper): Define.
16258         * configure.in: Substitute libc_cv_cc_novzeroupper.
16259         * elf/Makefile (AVX-CFLAGS): Define.
16260         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
16261         (CFLAGS-tst-auditmod4a.c): Likewise.
16262         (CFLAGS-tst-auditmod4b.c): Likewise.
16263         (CFLAGS-tst-auditmod6b.c): Likewise.
16264         (CFLAGS-tst-auditmod6c.c): Likewise.
16265         (CFLAGS-tst-auditmod7b.c): Likewise.
16266         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
16267
16268 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
16269
16270         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
16271         function to the callback.
16272         Patch partly by Jiri Olsa <jolsa@redhat.com>.
16273
16274 2011-02-02  Andreas Schwab  <schwab@redhat.com>
16275
16276         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
16277         of errno.
16278
16279 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
16280
16281         [BZ #11724]
16282         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
16283         of constructors.
16284         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
16285         of destructors.
16286         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
16287
16288         [BZ #11724]
16289         * elf/Makefile: Add rules to build and run new test.
16290         * elf/tst-initorder.c: New file.
16291         * elf/tst-initorder.exp: New file.
16292         * elf/tst-initordera1.c: New file.
16293         * elf/tst-initordera2.c: New file.
16294         * elf/tst-initordera3.c: New file.
16295         * elf/tst-initordera4.c: New file.
16296         * elf/tst-initorderb1.c: New file.
16297         * elf/tst-initorderb2.c: New file.
16298         * elf/tst-order-a1.c: New file.
16299         * elf/tst-order-a2.c: New file.
16300         * elf/tst-order-a3.c: New file.
16301         * elf/tst-order-a4.c: New file.
16302         * elf/tst-order-b1.c: New file.
16303         * elf/tst-order-b2.c: New file.
16304         * elf/tst-order-main.c: New file.
16305         New test case by George Gensure <werkt0@gmail.com>.
16306
16307 2010-10-01  Andreas Schwab  <schwab@redhat.com>
16308
16309         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16310         decoding ACE if AI_CANONIDN.
16311
16312 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
16313
16314         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
16315
16316 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
16317
16318         * version.h (RELEASE): Bump for 2.13 release.
16319         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
16320
16321         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
16322
16323         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
16324         MADV_NOHUGEPAGE.
16325         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
16326         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
16327         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
16328         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
16329         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
16330         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
16331
16332         * posix/getconf.c: Update copyright year.
16333         * catgets/gencat.c: Likewise.
16334         * csu/version.c: Likewise.
16335         * debug/catchsegv.sh: Likewise.
16336         * debug/xtrace.sh: Likewise.
16337         * elf/ldconfig.c: Likewise.
16338         * elf/ldd.bash.in: Likewise.
16339         * elf/sprof.c (print_version): Likewise.
16340         * iconv/iconv_prog.c: Likewise.
16341         * iconv/iconvconfig.c: Likewise.
16342         * locale/programs/locale.c: Likewise.
16343         * locale/programs/localedef.c: Likewise.
16344         * malloc/memusage.sh: Likewise.
16345         * malloc/mtrace.pl: Likewise.
16346         * nscd/nscd.c (print_version): Likewise.
16347         * nss/getent.c: Likewise.
16348
16349         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
16350         PF_CAIF, and PF_ALG.
16351         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16352
16353 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
16354
16355         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
16356         (modules-names): Use them.
16357         (ifunc-test-modules, ifunc-pie-tests): Define.
16358         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
16359         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
16360         (test-extras): Likewise.
16361         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
16362         $(compile-command.c).
16363         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
16364         (all-built-dso): Define.
16365         (check-textrel.out, check-execstack.out): Depend on it.
16366
16367         * configure.in: Don't override --enable-multi-arch.
16368
16369 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
16370
16371         [BZ #6812]
16372         * nscd/hstcache.c (tryagain): Define.
16373         (cache_addhst): Return tryagain not notfound for temporary errors.
16374         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
16375         failed.
16376
16377 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
16378
16379         [BZ #10563]
16380         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
16381         to make the syscall.
16382         * sysdeps/unix/sysv/linux/setgroups.c: New file.
16383
16384         [BZ #12378]
16385         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
16386         and fall back to matching as normal character if the string ends before
16387         the matching ']' is found.  This is what POSIX requires.
16388         * posix/testfnm.c: Adjust test result.
16389         * posix/globtest.sh: Adjust test result.  Add new test.
16390         * posix/tst-fnmatch.input: Likewise.
16391         * posix/tst-fnmatch2.c: Add new test.
16392
16393 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
16394
16395         * elf/Makefile (check-execstack): Revert last change.  Depend on
16396         check-execstack.h.
16397         (check-execstack.h): New target.
16398         (generated): Add check-execstack.h.
16399         * elf/check-execstack.c: Include "check-execstack.h".
16400         (main): Revert last change.
16401         (handle_file): Return zero if GNU_STACK is absent and
16402         DEFAULT_STACK_PERMS doesn't include PF_X.
16403
16404 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
16405
16406         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
16407         in child fails because the descriptor is already closed.
16408         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
16409         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
16410         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
16411
16412         [BZ #12397]
16413         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
16414         syscall.
16415
16416         [BZ #10484]
16417         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
16418         temporary buffer used to handle multi lookups locally.
16419         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
16420
16421 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
16422
16423         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
16424         loader is ld.so.
16425
16426 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
16427
16428         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
16429         alignment for SSE2.
16430
16431 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
16432
16433         [BZ #12394]
16434         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
16435         characters.  When rounding increased number of integer digits recompute
16436         number of groups.
16437         * stdio-common/tst-grouping.c: New file.
16438         * stdio-common/Makefile: Add rules to build and run tst-grouping.
16439
16440 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
16441
16442         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
16443         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
16444
16445         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
16446         void.
16447         * bits/select.h: Likewise.
16448
16449 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
16450
16451         * po/ja.po: Update from translation team.
16452
16453 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
16454
16455         [BZ #11155]
16456         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
16457         implementation just like for lxstat, fxstatat, et al.
16458
16459 2010-12-27  Jim Meyering  <meyering@redhat.com>
16460
16461         [BZ #12348]
16462         * posix/regexec.c (build_trtable): Return failure indication upon
16463         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16464
16465 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
16466
16467         [BZ #12201]
16468         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
16469         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
16470         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
16471         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
16472
16473         [BZ #12207]
16474         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
16475
16476         [BZ #12204]
16477         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
16478         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
16479
16480 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
16481
16482         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
16483         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
16484         script has SORT_BY_INIT_PRIORITY.
16485         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
16486         NO_CTORS_DTORS_SECTIONS is defined.
16487         * elf/soinit.c: Likewise.
16488         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
16489         NO_CTORS_DTORS_SECTIONS is defined.
16490         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
16491         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
16492         * sysdeps/sh/init-first.c: Likewise.
16493         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
16494
16495 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
16496
16497         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
16498         always use the slow path.
16499
16500 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
16501
16502         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
16503         similar rule which adds the sysdep directories to the header search in
16504         order to pick up the correct platform stackinfo.h.
16505         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
16506         perform test if it is, otherwise return successfully without testing.
16507         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
16508         DEFAULT_STACK_PERMS define in stackinfo.h.
16509         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
16510         defined in stackinfo.h.
16511         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
16512         DEFAULT_STACK_PERMS defined in stackinfo.h.
16513         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
16514         * sysdeps/ia64/stackinfo.h: Likewise.
16515         * sysdeps/s390/stackinfo.h: Likewise.
16516         * sysdeps/sh/stackinfo.h: Likewise.
16517         * sysdeps/sparc/stackinfo.h: Likewise.
16518         * sysdeps/x86_64/stackinfo.h: Likewise.
16519         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
16520         PF_X for powerpc64.  Retain PF_X for powerpc32.
16521
16522 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
16523
16524         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
16525         accurately.
16526         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
16527         GETDENTS_64BIT_ALIGNED.
16528
16529 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
16530
16531         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
16532
16533 2010-12-10  Andreas Schwab  <schwab@redhat.com>
16534
16535         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
16536         _GNU_SOURCE.
16537
16538         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
16539         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
16540         Remove __restrict.
16541         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
16542         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
16543
16544 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
16545
16546         [BZ #11655]
16547         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
16548         are initialized.
16549
16550 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
16551
16552         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
16553
16554 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
16555
16556         * po/it.po: Update from translation team.
16557
16558 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
16559
16560         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
16561         unused codes.
16562
16563 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
16564
16565         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
16566
16567 2010-11-24  Andreas Schwab  <schwab@redhat.com>
16568
16569         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
16570         specially.
16571         (gaih_getanswer_slice): Likewise.
16572
16573 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
16574
16575         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
16576
16577 2010-05-31  Petr Baudis  <pasky@suse.cz>
16578
16579         [BZ #11149]
16580         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
16581         silently even in the chroot mode.
16582
16583 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
16584
16585         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
16586         last patch a bit.  Pretty printing
16587
16588 2010-05-31  Petr Baudis <pasky@suse.cz>
16589
16590         [BZ #10085]
16591         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
16592         initialization of skip_initgroups_dyn.
16593
16594 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
16595
16596         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
16597         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
16598
16599 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
16600
16601         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
16602
16603 2010-11-11  Andreas Schwab  <schwab@redhat.com>
16604
16605         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
16606         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
16607         (tst-fnmatch-ENV): Set MALLOC_TRACE.
16608         ($(objpfx)tst-fnmatch-mem): New rule.
16609         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
16610         * posix/tst-fnmatch.c (main): Call mtrace.
16611
16612 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
16613
16614         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16615         Support Intel processor model 6 and model 0x2c.
16616
16617 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
16618
16619         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
16620           signed comparison.
16621
16622 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
16623
16624         [BZ #12205]
16625         * string/test-strncasecmp.c (check_result): New function.
16626         (do_one_test): Use it.
16627         (check1): New function.
16628         (test_main): Use it.
16629         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
16630         Support strcasecmp and strncasecmp.
16631
16632 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
16633
16634         [BZ #12194]
16635         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
16636         * sysdeps/x86_64/bits/byteswap.h: Likewise.
16637
16638 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16639
16640         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
16641         IFUNC support.
16642         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16643         memset-x86-64.
16644         * sysdeps/x86_64/multiarch/bzero.S: New file.
16645         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
16646         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
16647         * sysdeps/x86_64/multiarch/memset.S: New file.
16648         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
16649         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16650         Set bit_Prefer_SSE_for_memop for Intel processors.
16651         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
16652         Define.
16653         (index_Prefer_SSE_for_memop): Define.
16654         (HAS_PREFER_SSE_FOR_MEMOP): Define.
16655
16656 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
16657
16658         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
16659         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
16660
16661 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
16662
16663         [BZ #12191]
16664         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
16665         (__x86_64_raw_data_cache_size_half): Likewise.
16666         (__x86_64_raw_shared_cache_size): Likewise.
16667         (__x86_64_raw_shared_cache_size_half): Likewise.
16668
16669         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
16670         (__x86_64_raw_data_cache_size_half): Likewise.
16671         (__x86_64_raw_shared_cache_size): Likewise.
16672         (__x86_64_raw_shared_cache_size_half): Likewise.
16673         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
16674         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
16675         and __x86_64_raw_shared_cache_size_half.  Round
16676         __x86_64_data_cache_size_half, __x86_64_data_cache_size
16677         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
16678         to multiple of 256 bytes.
16679
16680 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
16681
16682         [BZ #12167]
16683         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
16684         of inacessible symlinks.  Verify result of symlink before returning it.
16685         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
16686         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
16687
16688 2010-10-28  Erich Ritz  <erichritz@gmail.com>
16689
16690         * math/math.h (isinf): Fix typo in comment.
16691
16692 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
16693
16694         * po/da.po: Update from translation team.
16695
16696 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
16697
16698         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
16699         is added to the list.
16700
16701 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16702             Ulrich Drepper  <drepper@gmail.com>
16703
16704         * elf/dl-object.c (_dl_new_object): Don't append the new object to
16705         the global list here.  Move code to...
16706         (_dl_add_to_namespace_list): ...here.  New function.
16707         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
16708         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
16709         * elf/dl-load.c (lose): Don't remove the element from the list.
16710         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
16711         (_dl_map_object): Likewise.
16712
16713 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
16714
16715         [BZ #12159]
16716         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
16717         into all bytes of SSE register.
16718         Patch by Richard Li <richardpku@gmail.com>.
16719
16720 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
16721
16722         [BZ #12140]
16723         * malloc/malloc.c (_int_free): Fill correct number of bytes when
16724         perturbing.
16725
16726 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
16727
16728         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
16729         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
16730         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
16731         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
16732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
16733         submachine.
16734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
16735
16736 2010-10-22  Andreas Schwab  <schwab@redhat.com>
16737
16738         * include/dlfcn.h (__RTLD_SECURE): Define.
16739         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
16740         mode & __RTLD_SECURE instead.
16741         (open_path): Rename preloaded parameter to secure.
16742         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
16743         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
16744         * elf/dl-deps.c (openaux): Likewise.
16745         * elf/rtld.c (struct map_args): Remove is_preloaded.
16746         (map_doit): Don't use it.
16747         (dl_main): Likewise.
16748         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
16749         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
16750
16751 2010-09-09  Andreas Schwab  <schwab@redhat.com>
16752
16753         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
16754         (sysd-rules-targets): Remove duplicates.
16755         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
16756         rtld-%.$o dependency.
16757
16758 2010-10-18  Andreas Schwab  <schwab@redhat.com>
16759
16760         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
16761         _dl_map_object do it.
16762
16763 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
16764
16765         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
16766         fast fma builtins, define the macros in the C99 standard.
16767         (FP_FAST_FMAF): Likewise.
16768         (FP_FAST_FMAL): Likewise.
16769         * sysdeps/x86_64/bits/mathdef.h: Likewise.
16770
16771         * bits/mathdef.h: Update copyright year.
16772         * sysdeps/powerpc/bits/mathdef.h: Likewise.
16773
16774 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
16775
16776         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
16777         builtins, define the macros in the C99 standard.
16778         (FP_FAST_FMAF): Likewise.
16779         (FP_FAST_FMAL): Likewise.
16780         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
16781         multiply/add.
16782         (FP_FAST_FMAF): Likewise.
16783
16784 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
16785
16786         [BZ #3268]
16787         * math/libm-test.inc (fma_test): Some new testcases.
16788         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
16789         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
16790         y and infinite z.  Do multiplication by C already in long double.
16791         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
16792         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
16793         y and infinite z.  Do bitwise or of inexact bit into u.d.
16794         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
16795         * sysdeps/i386/fpu/s_fmaf.S: Removed.
16796         * sysdeps/i386/fpu/s_fma.S: Removed.
16797         * sysdeps/i386/fpu/s_fmal.S: Removed.
16798
16799 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
16800
16801         [BZ #3268]
16802         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
16803         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
16804         computation is not scheduled after fetestexcept.  Fix value
16805         of minimum denormal long double.
16806
16807 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
16808
16809         [BZ #3268]
16810         * math/libm-test.inc (fma_test): Add some more tests.
16811         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
16812         correctly.
16813
16814 2010-10-15  Andreas Schwab  <schwab@redhat.com>
16815
16816         * scripts/data/localplt-s390-linux-gnu.data: New file.
16817         * scripts/data/localplt-s390x-linux-gnu.data: New file.
16818
16819 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
16820
16821         [BZ #3268]
16822         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
16823         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
16824         instead of dbl-64.
16825         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
16826         inlines.
16827         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
16828         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
16829         if one of x and y is very large and the other is subnormal.
16830         * sysdeps/s390/fpu/s_fmaf.c: New file.
16831         * sysdeps/s390/fpu/s_fma.c: New file.
16832         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
16833         * sysdeps/powerpc/fpu/s_fma.S: New file.
16834         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
16835         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
16836         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
16837
16838 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
16839
16840         [BZ #3268]
16841         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
16842         fma tests.
16843         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
16844         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
16845         * sysdeps/i386/i686/multiarch/s_fma.c: Include
16846         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
16847         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
16848         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
16849         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
16850
16851 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
16852
16853         [BZ #12078]
16854         * posix/regcomp.c (parse_branch): One more memory leak plugged.
16855         * posix/bug-regex31.input: Add test case.
16856
16857 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
16858
16859         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
16860         * posix/bug-regex31.input: New file.
16861
16862         [BZ #12078]
16863         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
16864         (parse_sub_exp): Fix last change, use postorder.
16865
16866         * posix/bug-regex31.c: New file.
16867         * posix/Makefile: Add rules to build and run bug-regex31.
16868
16869         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
16870
16871         [BZ #12078]
16872         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
16873
16874         [BZ #12108]
16875         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
16876         to have entries in sys_siglist.
16877
16878         [BZ #12093]
16879         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
16880         be NULL.
16881
16882 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
16883
16884         [BZ #3268]
16885         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
16886         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
16887         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
16888         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
16889         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16890         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
16891         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
16892         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
16893         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
16894         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
16895         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
16896         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
16897         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
16898         * math/ftestexcept.c (fetestexcept): Likewise.
16899         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
16900         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
16901         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
16902         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
16903         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
16904         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
16905         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
16906
16907 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
16908
16909         [BZ #12107]
16910         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
16911         newline.
16912
16913 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
16914
16915         * string/bug-strstr1.c: New file.
16916         * string/Makefile: Add rules to build and run bug-strstr1.
16917
16918 2010-10-05  Eric Blake  <eblake@redhat.com>
16919
16920         [BZ #12092]
16921         * string/str-two-way.h (two_way_long_needle): Always clear memory
16922         when skipping input due to the shift table.
16923
16924 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
16925
16926         [BZ #12005]
16927         * malloc/mcheck.c: Handle large requests.
16928
16929         [BZ #12077]
16930         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
16931         for strncmp and strncasecmp.
16932         * string/stratcliff.c: Add tests for strcmp and strncmp.
16933         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
16934
16935 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16936
16937         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
16938         __set_fpscr.
16939
16940 2010-09-30  Andreas Jaeger  <aj@suse.de>
16941
16942         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
16943         (CGROUP_SUPER_MAGIC): Define.
16944         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16945         Handle btrfs and cgroup file systems.
16946         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
16947         Likewise.
16948
16949 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
16950
16951         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
16952         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
16953
16954 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16955
16956         [BZ #12067]
16957         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
16958         trying to locate the ELF header.
16959
16960 2010-09-27  Andreas Schwab  <schwab@redhat.com>
16961
16962         [BZ #11611]
16963         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
16964         Mask out sign-bit copies when constructing f_fsid.
16965
16966 2010-09-24  Petr Baudis <pasky@suse.cz>
16967
16968         * debug/stack_chk_fail_local.c: Add missing licence exception.
16969         * debug/warning-nop.c: Likewise.
16970
16971 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
16972
16973         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
16974         implementing getdents64 using getdents syscall, set d_type if
16975         __ASSUME_GETDENTS32_D_TYPE.
16976
16977 2010-09-16  Andreas Schwab  <schwab@redhat.com>
16978
16979         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
16980         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
16981
16982 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
16983
16984         [BZ #12037]
16985         * posix/unistd.h: Undo change of feature selection for ftruncate from
16986         2010-01-11.
16987
16988 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
16989
16990         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
16991         detection.
16992
16993 2010-09-20  Andreas Schwab  <schwab@redhat.com>
16994
16995         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
16996         fanotify_mark.
16997         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
16998
16999 2010-09-14  Andreas Schwab  <schwab@redhat.com>
17000
17001         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
17002         variables after CHECK_SP call.
17003         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
17004
17005 2010-09-13  Andreas Schwab  <schwab@redhat.com>
17006             Ulrich Drepper  <drepper@redhat.com>
17007
17008         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
17009         re-relocationg ld.so.
17010         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
17011         _dl_init_paths call.
17012         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
17013         here anymore.
17014
17015 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
17016
17017         * resolv/res_init.c (__res_vinit): Count the default server we added.
17018
17019 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
17020             Ulrich Drepper  <drepper@redhat.com>
17021
17022         [BZ #11968]
17023         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17024         (____longjmp_chk): Use %ebx for saving value across system call.
17025         Add unwind info.
17026
17027 2010-09-06  Andreas Schwab  <schwab@redhat.com>
17028
17029         * manual/Makefile: Don't mix pattern rules with normal rules.
17030
17031 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
17032
17033         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
17034         operation.
17035         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
17036         * libio/iofopncook.c (_IO_cookie_init): Likewise.
17037         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
17038         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17039         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17040         Likewise.
17041
17042 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
17043
17044         [BZ #11979]
17045         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
17046         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
17047
17048 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
17049
17050         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
17051         * sysdeps/x86_64/addmul_1.S: Likewise.
17052         * sysdeps/x86_64/lshift.S: Likewise.
17053         * sysdeps/x86_64/mul_1.S: Likewise.
17054         * sysdeps/x86_64/rshift.S: Likewise.
17055         * sysdeps/x86_64/sub_n.S: Likewise.
17056         * sysdeps/x86_64/submul_1.S: Likewise.
17057
17058 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17059
17060         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
17061         Define __sched_param instead of SCHED_* and sched_param when
17062         <bits/sched.h> is included with __need_schedparam defined.
17063         * bits/sched.h [__need_schedparam]
17064         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
17065         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
17066         (__defined_schedparam): Define to 1.
17067         (__sched_param): New structure, identical to sched_param.
17068         (__need_schedparam): Undefine.
17069
17070 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
17071
17072         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
17073         (epoll_create1): Declare.
17074
17075         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
17076
17077 2010-08-31  Andreas Schwab  <schwab@redhat.com>
17078
17079         [BZ #7066]
17080         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
17081         shifting retval into place.
17082
17083 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
17084
17085         * nis/rpcsvc/nis.h: Update copyright notice.
17086         * nis/rpcsvc/nis.x: Likewise.
17087         * nis/rpcsvc/nis_callback.h: Likewise.
17088         * nis/rpcsvc/nis_callback.x: Likewise.
17089         * nis/rpcsvc/nis_object.x: Likewise.
17090         * nis/rpcsvc/nis_tags.h: Likewise.
17091         * nis/rpcsvc/yp.h: Likewise.
17092         * nis/rpcsvc/yp.x: Likewise.
17093         * nis/rpcsvc/ypupd.h: Likewise.
17094         * nis/yp_xdr.c: Likewise.
17095         * nis/ypupdate_xdr.c: Likewise.
17096
17097         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
17098         mainly the body of pmap_getport.  Add parameters to specify timeouts.
17099         (pmap_getport): Use __libc_rpc_getport.
17100         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
17101         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
17102         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
17103
17104 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
17105
17106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
17107         fanotify_mark.
17108
17109 2010-08-27  Roland McGrath  <roland@redhat.com>
17110
17111         * sysdeps/i386/i686/multiarch/Makefile
17112         (CFLAGS-varshift.c): New variable.
17113
17114 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
17115
17116         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
17117         * sysdeps/i386/i686/multiarch/varshift.c: New file.
17118
17119         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
17120
17121         * sysdeps/x86_64/strlen.S: Minimal code improvement.
17122
17123 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
17124
17125         * sysdeps/x86_64/strlen.S: Unroll the loop.
17126         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17127         strlen-sse2 strlen-sse2-bsf.
17128         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
17129         __strlen_no_bsf if bit_Slow_BSF is set.
17130         (__strlen_sse42): Removed.
17131         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
17132         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
17133
17134 2010-08-25  Roland McGrath  <roland@redhat.com>
17135
17136         * sysdeps/x86_64/multiarch/varshift.S: File removed.
17137         * sysdeps/x86_64/multiarch/varshift.c: New file.
17138         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
17139         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
17140         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
17141         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17142
17143 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
17144
17145         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17146         strlen-sse2 strlen-sse2-bsf.
17147         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
17148         __strlen_sse2_bsf if bit_Slow_BSF is unset.
17149         (__strlen_sse2): Removed.
17150         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
17151         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
17152         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
17153         bit_Slow_BSF for Atom.
17154         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
17155         (index_Slow_BSF): Define.
17156         (HAS_SLOW_BSF): Define.
17157
17158 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
17159
17160         [BZ #10851]
17161         * resolv/res_init.c (__res_vinit): When no server address at all
17162         is given default to loopback.
17163
17164 2010-08-24  Roland McGrath  <roland@redhat.com>
17165
17166         * configure.in: Remove config-name.h generation.
17167         * configure: Regenerated.
17168         * config-name.in: File removed.
17169         * scripts/config-uname.sh: New file.
17170         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
17171         ($(objdir)config-name.h): New target.
17172
17173         * sunrpc/rpc_parse.h: Avoid nested comment.
17174
17175 2010-08-24  Richard Henderson  <rth@redhat.com>
17176             Ulrich Drepper  <drepper@redhat.com>
17177             H.J. Lu  <hongjiu.lu@intel.com>
17178
17179         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
17180         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
17181         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
17182         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
17183         _mm_alignr_epi8 with _mm_loadu_si128.
17184         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
17185         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
17186         (__m128i_shift_right): Removed.
17187         * sysdeps/i386/i686/multiarch/varshift.h: New file.
17188         * sysdeps/i386/i686/multiarch/varshift.S: New file.
17189         * sysdeps/x86_64/multiarch/varshift.h: New file.
17190         * sysdeps/x86_64/multiarch/varshift.S: New file.
17191
17192 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
17193
17194         * configure.in: Move assembler checks to before sysdep dir checking.
17195
17196 2010-08-20  Petr Baudis  <pasky@suse.cz>
17197
17198         * LICENSES: Sync the sunrpc license.
17199
17200 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
17201
17202         * sunrpc/auth_des.c: Update copyright notice once again.
17203         * sunrpc/auth_none.c: Likewise.
17204         * sunrpc/auth_unix.c: Likewise.
17205         * sunrpc/authdes_prot.c: Likewise.
17206         * sunrpc/authuxprot.c: Likewise.
17207         * sunrpc/bindrsvprt.c: Likewise.
17208         * sunrpc/clnt_gen.c: Likewise.
17209         * sunrpc/clnt_perr.c: Likewise.
17210         * sunrpc/clnt_raw.c: Likewise.
17211         * sunrpc/clnt_simp.c: Likewise.
17212         * sunrpc/clnt_tcp.c: Likewise.
17213         * sunrpc/clnt_udp.c: Likewise.
17214         * sunrpc/clnt_unix.c: Likewise.
17215         * sunrpc/des_crypt.c: Likewise.
17216         * sunrpc/des_soft.c: Likewise.
17217         * sunrpc/get_myaddr.c: Likewise.
17218         * sunrpc/getrpcport.c: Likewise.
17219         * sunrpc/key_call.c: Likewise.
17220         * sunrpc/key_prot.c: Likewise.
17221         * sunrpc/openchild.c: Likewise.
17222         * sunrpc/pm_getmaps.c: Likewise.
17223         * sunrpc/pm_getport.c: Likewise.
17224         * sunrpc/pmap_clnt.c: Likewise.
17225         * sunrpc/pmap_prot.c: Likewise.
17226         * sunrpc/pmap_prot2.c: Likewise.
17227         * sunrpc/pmap_rmt.c: Likewise.
17228         * sunrpc/rpc/auth.h: Likewise.
17229         * sunrpc/rpc/auth_unix.h: Likewise.
17230         * sunrpc/rpc/clnt.h: Likewise.
17231         * sunrpc/rpc/des_crypt.h: Likewise.
17232         * sunrpc/rpc/key_prot.h: Likewise.
17233         * sunrpc/rpc/netdb.h: Likewise.
17234         * sunrpc/rpc/pmap_clnt.h: Likewise.
17235         * sunrpc/rpc/pmap_prot.h: Likewise.
17236         * sunrpc/rpc/pmap_rmt.h: Likewise.
17237         * sunrpc/rpc/rpc.h: Likewise.
17238         * sunrpc/rpc/rpc_des.h: Likewise.
17239         * sunrpc/rpc/rpc_msg.h: Likewise.
17240         * sunrpc/rpc/svc.h: Likewise.
17241         * sunrpc/rpc/svc_auth.h: Likewise.
17242         * sunrpc/rpc/types.h: Likewise.
17243         * sunrpc/rpc/xdr.h: Likewise.
17244         * sunrpc/rpc_clntout.c: Likewise.
17245         * sunrpc/rpc_cmsg.c: Likewise.
17246         * sunrpc/rpc_common.c: Likewise.
17247         * sunrpc/rpc_cout.c: Likewise.
17248         * sunrpc/rpc_dtable.c: Likewise.
17249         * sunrpc/rpc_hout.c: Likewise.
17250         * sunrpc/rpc_main.c: Likewise.
17251         * sunrpc/rpc_parse.c: Likewise.
17252         * sunrpc/rpc_parse.h: Likewise.
17253         * sunrpc/rpc_prot.c: Likewise.
17254         * sunrpc/rpc_sample.c: Likewise.
17255         * sunrpc/rpc_scan.c: Likewise.
17256         * sunrpc/rpc_scan.h: Likewise.
17257         * sunrpc/rpc_svcout.c: Likewise.
17258         * sunrpc/rpc_tblout.c: Likewise.
17259         * sunrpc/rpc_util.c: Likewise.
17260         * sunrpc/rpc_util.h: Likewise.
17261         * sunrpc/rpcinfo.c: Likewise.
17262         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
17263         * sunrpc/rpcsvc/key_prot.x: Likewise.
17264         * sunrpc/rpcsvc/klm_prot.x: Likewise.
17265         * sunrpc/rpcsvc/mount.x: Likewise.
17266         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
17267         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
17268         * sunrpc/rpcsvc/rex.x: Likewise.
17269         * sunrpc/rpcsvc/rstat.x: Likewise.
17270         * sunrpc/rpcsvc/rusers.x: Likewise.
17271         * sunrpc/rpcsvc/sm_inter.x: Likewise.
17272         * sunrpc/rpcsvc/spray.x: Likewise.
17273         * sunrpc/rpcsvc/yppasswd.x: Likewise.
17274         * sunrpc/rtime.c: Likewise.
17275         * sunrpc/svc.c: Likewise.
17276         * sunrpc/svc_auth.c: Likewise.
17277         * sunrpc/svc_authux.c: Likewise.
17278         * sunrpc/svc_raw.c: Likewise.
17279         * sunrpc/svc_run.c: Likewise.
17280         * sunrpc/svc_simple.c: Likewise.
17281         * sunrpc/svc_tcp.c: Likewise.
17282         * sunrpc/svc_udp.c: Likewise.
17283         * sunrpc/svc_unix.c: Likewise.
17284         * sunrpc/svcauth_des.c: Likewise.
17285         * sunrpc/xcrypt.c: Likewise.
17286         * sunrpc/xdr.c: Likewise.
17287         * sunrpc/xdr_array.c: Likewise.
17288         * sunrpc/xdr_float.c: Likewise.
17289         * sunrpc/xdr_mem.c: Likewise.
17290         * sunrpc/xdr_rec.c: Likewise.
17291         * sunrpc/xdr_ref.c: Likewise.
17292         * sunrpc/xdr_sizeof.c: Likewise.
17293         * sunrpc/xdr_stdio.c: Likewise.
17294
17295         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
17296         handling.
17297
17298 2010-08-19  Andreas Schwab  <schwab@redhat.com>
17299
17300         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
17301
17302 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
17303
17304         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
17305         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
17306         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
17307         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
17308         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
17309         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
17310         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
17311         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
17312         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
17313         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
17314         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
17315         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
17316         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
17317         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
17318
17319 2010-07-26  Anton Blanchard  <anton@samba.org>
17320
17321         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
17322         * malloc/arena.c (heap_trim): Likewise.
17323
17324 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
17325
17326         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
17327         here.  Not...
17328         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
17329         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
17330
17331 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
17332
17333         * sysdeps/i386/elf/Makefile: New file.
17334
17335 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
17336
17337         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
17338         from fanotify_init.
17339         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
17340         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17341
17342 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
17343
17344         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
17345         of strncasecmp_l.
17346         * sysdeps/multiarch/strcmp.S: Likewise.
17347
17348 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
17349
17350         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
17351         strncase_l-nonascii.
17352         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
17353         Add strncase_l-ssse3.
17354         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
17355         * sysdeps/x86_64/strcmp.S: Likewise.
17356         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
17357         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
17358         * sysdeps/x86_64/strncase.S: New file.
17359         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
17360         * sysdeps/x86_64/strncase_l.S: New file.
17361         * string/Makefile (strop-tests): Add strncasecmp.
17362         * string/test-strncasecmp.c: New file.
17363
17364         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
17365         warning.
17366
17367         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
17368         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
17369
17370 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
17371
17372         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
17373
17374 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
17375
17376         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
17377         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
17378         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
17379
17380 2010-05-01  Alan Modra  <amodra@gmail.com>
17381
17382         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
17383         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
17384         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
17385         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
17386         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
17387         tidying.  Don't tail-call __sigjmp_save for static lib.
17388         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
17389         save location.
17390         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
17391         (CALL_MCOUNT): Add eh info, and nop after bl.
17392         (TAIL_CALL_SYSCALL_ERROR): New macro.
17393         (PSEUDO_RET): Use it.
17394         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
17395         Correct save location of integer regs and cr.
17396         (_dl_profile_resolve): Correct cr save location.  Delete nops
17397         after bl when SHARED.  Reduce cfi size a little by better
17398         placement of cfi directives.
17399         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
17400         make a stack frame.  Instead use parm save area as a temp.
17401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
17402         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
17403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
17404         Don't make a stack frame for parent, use parm save area.
17405         Increase child stack frame to 112 bytes.  Don't save unused reg,
17406         and adjust reg usage.  Set up cfi on error recovery and
17407         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
17408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
17409         (__makecontext): Add dummy nop after jump to exit.
17410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
17411         Use correct parm save area and cr save, reduce stack frame.
17412         Correct cfi for possible PSEUDO_RET frame setup.
17413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
17414         Branch to local label emitted by PSEUDO_RET rather than
17415         __syscall_error.
17416
17417 2010-08-12  Andreas Schwab  <schwab@redhat.com>
17418
17419         [BZ #11904]
17420         * locale/programs/locale.c (print_assignment): New function.
17421         (show_locale_vars): Use it.
17422
17423 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
17424
17425         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
17426         field.
17427         (struct statfs64): Likewise.
17428         (_STATFS_F_FLAGS): Define.
17429         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
17430         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17431         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
17432         (ST_VALID): Define locally.
17433         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
17434         __statvfs_getflags, use the provided value.
17435         * sysdeps/unix/sysv/linux/kernel-features.h: Define
17436         __ASSUME_STATFS_F_FLAGS.
17437
17438         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
17439
17440         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
17441         Add sys/fanotify.h.
17442         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
17443         fanotify_mask for GLIBC_2.13.
17444         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
17445         fanotify_init and fanotify_mark.
17446         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17447         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
17448
17449         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
17450         Add prlimit.
17451         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
17452         prlimit64 for GLIBC_2.13.
17453         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
17454         prlimit64.
17455         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
17456         syscall.
17457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
17458         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
17459         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
17460         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
17461         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
17462         add prlimit alias.
17463         * sysdeps/unix/sysv/linux/prlimit.c: New file.
17464
17465         [BZ #11903]
17466         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
17467         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
17468
17469         * nss/Makefile: Add rules to build and run tst-nss-test1.
17470         * shlib-versions: Add entry for libnss_test1.
17471         * nss/nss_test1.c: New file.
17472         * nss/tst-nss-test1.c: New file.
17473
17474         * nss/nsswitch.c (__nss_database_custom): Define new variable.
17475         (__nss_configure_lookup): Set appropriate entry in
17476         __nss_configure_lookup to true.
17477         * nss/nsswitch.h: Define enum with indeces of databases in
17478         databases and __nss_database_custom arrays.  Declare
17479         __nss_database_custom.
17480         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
17481         to avoid using nscd when custom rules are installed.
17482         * nss/getXXbyYY_r.c: Likewise.
17483         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
17484
17485         * nss/nss_files/files-parse.c: Whitespace fixes.
17486
17487 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
17488
17489         [BZ #11883]
17490         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
17491         * posix/fnmatch_loop.c: Likewise.
17492
17493 2010-07-17  Andi Kleen  <ak@linux.intel.com>
17494
17495         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
17496         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
17497         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
17498         * Versions.def [GLIBC_2.13]: Add.
17499
17500 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
17501
17502         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17503         Also fail if tpwd after pwuid call is NULL.
17504
17505 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17506
17507         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
17508         when converting to ms.
17509
17510 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17511
17512         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
17513         EOPNOTSUPP errors with ENOTTY.
17514         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
17515         EOPNOTSUPP errors with ENOTTY.
17516
17517 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
17518
17519         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
17520         Add strcasecmp_l-ssse3.
17521         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
17522         strcasecmp.
17523         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
17524         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
17525         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
17526
17527 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
17528
17529         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
17530
17531         * string/Makefile (strop-tests): Add strcasecmp.
17532         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
17533         strcasecmp_l-nonascii.
17534         (gen-as-const-headers): Add locale-defines.sym.
17535         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
17536         * sysdeps/x86_64/strcasecmp.S: New file.
17537         * sysdeps/x86_64/strcasecmp_l.S: New file.
17538         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
17539         * sysdeps/x86_64/locale-defines.sym: New file.
17540         * string/test-strcasecmp.c: New file.
17541
17542         * string/test-strcasestr.c: Test both ends of the range of characters.
17543         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
17544
17545 2010-07-29  Roland McGrath  <roland@redhat.com>
17546
17547         [BZ #11856]
17548         * manual/locale.texi (Yes-or-No Questions): Fix example code.
17549
17550 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
17551
17552         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
17553         for ld.so.
17554
17555 2010-07-27  Andreas Schwab  <schwab@redhat.com>
17556
17557         * manual/memory.texi (Malloc Tunable Parameters): Document
17558         M_PERTURB.
17559
17560 2010-07-26  Roland McGrath  <roland@redhat.com>
17561
17562         [BZ #11840]
17563         * configure.in (-fgnu89-inline check): Set and substitute
17564         gnu89_inline, not libc_cv_gnu89_inline.
17565         * configure: Regenerated.
17566         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
17567
17568 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
17569
17570         * string/test-strnlen.c: New file.
17571         * string/Makefile (strop-tests): Add strnlen.
17572         * string/tester.c (test_strnlen): Add a few more test cases.
17573         * string/tst-strlen.c: Better error reporting.
17574
17575         * sysdeps/x86_64/strnlen.S: New file.
17576
17577 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
17578
17579         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
17580         lower-latency instructions.
17581
17582 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
17583
17584         * string/test-strcasestr.c: New file.
17585         * string/test-strstr.c: New file.
17586         * string/Makefile (strop-tests): Add strstr and strcasestr.
17587         * string/str-two-way.h: Don't undefine MAX.
17588         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
17589
17590 2010-07-21  Andreas Schwab  <schwab@redhat.com>
17591
17592         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17593         strcasestr-nonascii.
17594         (CFLAGS-strcasestr-nonascii.c): Define.
17595         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
17596         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
17597         Remove unused attribute.
17598
17599 2010-07-20  Roland McGrath  <roland@redhat.com>
17600
17601         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
17602         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
17603         ld.so.cache was broken.  With it, there is no way to disable dsocaps
17604         like LD_HWCAP_MASK can disable hwcaps.
17605
17606 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
17607
17608         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
17609
17610 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
17611
17612         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
17613         call in strcasestr.
17614         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
17615         __strcasestr_sse42_nonascii.
17616         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
17617         strcasestr-nonascii.c.
17618         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
17619
17620 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
17621
17622         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
17623         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
17624         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
17625         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
17626
17627 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
17628
17629         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
17630         fcntl.
17631
17632 2010-07-06  Andreas Schwab  <schwab@redhat.com>
17633
17634         [BZ #11577]
17635         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
17636         dl_signal_cerror.
17637
17638 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
17639
17640         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
17641         _PC_PIPE_BUF using F_GETPIPE_SZ.
17642
17643 2010-07-05  Roland McGrath  <roland@redhat.com>
17644
17645         * manual/arith.texi (Rounding Functions): Fix rint description
17646         implicit in round description.
17647
17648 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
17649
17650         * elf/Makefile: Fix linking for a few tests to make recent linker
17651         happy.
17652
17653 2010-06-30  Andreas Schwab  <schwab@redhat.com>
17654
17655         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17656         $(common-objpfx)libc_nonshared.a.
17657
17658 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
17659
17660         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
17661         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
17662         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
17663         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
17664         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
17665         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
17666         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
17667         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
17668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
17669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
17670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
17671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
17672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
17673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
17674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
17675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
17676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
17677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
17678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
17679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
17680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
17681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
17682         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
17683         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
17684         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
17685         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
17686         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
17687         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
17688         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
17689         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
17690         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
17691         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
17692         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
17693         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
17694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
17695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
17696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
17697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
17698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
17699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
17700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
17701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
17702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
17703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
17704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
17705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
17706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
17707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
17708
17709 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
17710
17711         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
17712         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
17713         * string/memmove.c (memmove): Renamed to ...
17714         (MEMMOVE): ...this.  Default to memmove.
17715         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
17716         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
17717         (END_CHK): Define.
17718         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17719         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
17720         mempcpy-ssse3-back memmove-ssse3-back.
17721         * sysdeps/x86_64/multiarch/bcopy.S: New file .
17722         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
17723         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
17724         * sysdeps/x86_64/multiarch/memcpy.S: New file.
17725         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
17726         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
17727         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
17728         * sysdeps/x86_64/multiarch/memmove.c: New file.
17729         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
17730         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
17731         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
17732         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
17733         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
17734         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
17735         Define.
17736         (index_Fast_Copy_Backward): Define.
17737         (HAS_ARCH_FEATURE): Define.
17738         (HAS_FAST_REP_STRING): Define.
17739         (HAS_FAST_COPY_BACKWARD): Define.
17740
17741 2010-06-21  Andreas Schwab  <schwab@redhat.com>
17742
17743         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17744         Restore proper fallback handling.
17745
17746 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
17747
17748         [BZ #11701]
17749         * posix/group_member.c (__group_member): Correct checking loop.
17750
17751         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
17752         OOM in getpwuid_r correctly.  Return error number when the caller
17753         should return, otherwise -1.
17754         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
17755         call returning > 0 value.
17756         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
17757
17758 2010-06-07  Andreas Schwab  <schwab@redhat.com>
17759
17760         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
17761         libc_nonshared.a from targets in modules-names.
17762
17763 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
17764
17765         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
17766         requires it.
17767
17768 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
17769
17770         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
17771         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
17772         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
17773         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
17774
17775 2010-06-02  Andreas Schwab  <schwab@redhat.com>
17776
17777         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
17778
17779 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
17780
17781         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
17782         and F_GETPIPE_SZ.
17783         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17784         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17785         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17786         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17787         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17788         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
17789
17790 2010-06-14  Roland McGrath  <roland@redhat.com>
17791
17792         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
17793
17794 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
17795
17796         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
17797         __REDIRECT followed by __THROW.
17798         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
17799         * posix/getopt.h (getopt): Likewise.
17800
17801 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
17802
17803         * hurd/lookup-at.c (__file_name_lookup_at): Accept
17804         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
17805         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
17806         in AT_FLAGS.
17807         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
17808         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
17809
17810 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
17811
17812         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
17813
17814 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
17815
17816         [BZ #11640]
17817         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17818         Properly check family and model.
17819
17820 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
17821
17822         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
17823
17824 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
17825
17826         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
17827
17828 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
17829
17830         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
17831         symbol reference.
17832
17833 2010-05-19  Andreas Schwab  <schwab@redhat.com>
17834
17835         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
17836         symbol reference.
17837
17838 2010-05-21  Andreas Schwab  <schwab@redhat.com>
17839
17840         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
17841         and internal_recvmmsg.
17842         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
17843         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
17844         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
17845         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
17846
17847         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
17848         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
17849         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
17850
17851 2010-05-20  Andreas Schwab  <schwab@redhat.com>
17852
17853         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
17854
17855 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
17856
17857         POWER7 optimizations.
17858         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
17859         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
17860
17861 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
17862
17863         * version.h: Update for 2.13 development version.
17864
17865 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
17866
17867         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
17868         exceptions.  Return 0.
17869
17870 2010-05-07  Roland McGrath  <roland@redhat.com>
17871
17872         * elf/ldconfig.c (main): Add a const.
17873
17874 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
17875
17876         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
17877         (args_options): Add no-idn option.
17878         (ahosts_keys_int): Add idn_flags to ai_flags.
17879         (parse_option): Handle 'i' option to clear idn_flags.
17880
17881         * malloc/malloc.c (_int_free): Possible race in the most recently
17882         added check.  Only act on the data if no current modification
17883         happened.
17884
17885 See ChangeLog.17 for earlier changes.