Distinguish ELOOP diagnosis threshold from SYMLOOP_MAX.
[platform/upstream/glibc.git] / ChangeLog
1 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2
3         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
5         * sysdeps/mach/hurd/eloop-threshold.h: New file.
6         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7         __eloop_threshold instead of SYMLOOP_MAX.
8
9         * sysdeps/generic/eloop-threshold.h: New file.
10         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
11         of MAXSYMLINKS.
12         * elf/chroot_canon.c (chroot_canon): Likewise.
13
14 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
15
16         [BZ #13717]
17         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
18         Change to 2.6.0 everywhere.
19         * sysdeps/unix/sysv/linux/configure: Regenerated.
20         * sysdeps/unix/sysv/linux/kernel-features.h
21         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
22         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
23         kernel versions.
24         (__ASSUME_POSIX_TIMERS): Define unconditionally.
25         (__ASSUME_FUTEX_REQUEUE): Remove.
26         (__ASSUME_STATFS64): Define unconditionally.
27         (__ASSUME_AT_SECURE): Likewise.
28         (__ASSUME_CORRECT_SI_PID): Likewise.
29         (__ASSUME_TGKILL): Define without depending on kernel version for
30         i386.
31         (__ASSUME_UTIMES): Likewise.
32         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
33         kernel version.
34         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
35         (__ASSUME_TMPFS_NAME): Likewise.
36         * README: Update reference to Linux kernel versions.
37
38 2012-08-02  Marek Polacek  <polacek@redhat.com>
39
40         [BZ#14150]
41         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
42         libc_cv_asm_type_prefix with %.
43         * configure: Regenerated.
44         * include/libc-symbols.h: Remove comment about
45         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
46         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
47         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
48         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
49         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
50         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
51         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
52         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
53         * elf/tst-unique2mod1.c: Likewise.
54         * elf/tst-unique1mod2.c: Likewise.
55         * elf/tst-unique1mod1.c: Likewise.
56         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
57         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
58         Replace ASM_TYPE_DIRECTIVE with .type.
59         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60         * sysdeps/i386/sysdep.h: Likewise.
61         * sysdeps/x86_64/sysdep.h: Likewise.
62         * sysdeps/sh/sysdep.h: Likewise.
63         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
64         Do not define ASM_TYPE_DIRECTIVE.
65         * sysdeps/powerpc/sysdep.h: Likewise.
66         * sysdeps/powerpc/powerpc32/sysdep.h:
67         Replace ASM_TYPE_DIRECTIVE with .type.
68         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
69         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
70         * sysdeps/i386/fpu/e_powf.S: Likewise.
71         * sysdeps/i386/fpu/e_expl.S: Likewise.
72         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
73         * sysdeps/i386/fpu/e_acosh.S: Likewise.
74         * sysdeps/i386/fpu/e_pow.S: Likewise.
75         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
76         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
77         * sysdeps/i386/fpu/s_expm1.S: Likewise.
78         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
79         * sysdeps/i386/fpu/e_log2.S: Likewise.
80         * sysdeps/i386/fpu/e_log2l.S: Likewise.
81         * sysdeps/i386/fpu/e_scalb.S: Likewise.
82         * sysdeps/i386/fpu/e_powl.S: Likewise.
83         * sysdeps/i386/fpu/e_log10f.S: Likewise.
84         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
85         * sysdeps/i386/fpu/e_logl.S: Likewise.
86         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
87         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
88         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
89         * sysdeps/i386/fpu/e_log2f.S: Likewise.
90         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
91         * sysdeps/i386/fpu/e_log.S: Likewise.
92         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
93         * sysdeps/i386/fpu/e_logf.S: Likewise.
94         * sysdeps/i386/fpu/e_log10l.S: Likewise.
95         * sysdeps/i386/fpu/e_atanh.S: Likewise.
96         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
97         * sysdeps/i386/fpu/e_log10.S: Likewise.
98         * sysdeps/i386/fpu/s_frexp.S: Likewise.
99         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
100         * sysdeps/i386/fpu/s_asinh.S: Likewise.
101         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
102         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
103         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
104         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
105         * sysdeps/i386/i686/strtok.S: Likewise.
106         * sysdeps/i386/i386-mcount.S: Likewise.
107         * sysdeps/i386/strtok.S: Likewise.
108         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
109         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
110         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
111         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
112         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
113         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
114         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
115         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
116         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
117         * sysdeps/x86_64/_mcount.S: Likewise.
118         * sysdeps/x86_64/strtok.S: Likewise.
119         * sysdeps/sh/_mcount.S: Likewise.
120
121 2012-08-01  Roland McGrath  <roland@hack.frob.com>
122
123         * libio/iofopen.c: Include <fcntl.h>.
124         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
125         (_IO_fopen64, fopen64): Define as aliases.
126         * libio/iofopen64.c: Include <fcntl.h>.
127         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
128         Conditionalize body on this.
129         * sysdeps/wordsize-64/iofopen.c: File removed.
130         * sysdeps/wordsize-64/iofopen64.c: File removed.
131
132 2012-08-01  Marek Polacek  <polacek@redhat.com>
133
134         * libc/Makeconfig: Use elf in place of binfmt-subdir.
135         Use dlfcn directly instead of a variable.
136         (binfmt-subdir): Do not define.
137         (dlfcn): Likewise.
138
139 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
140
141         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
142         Remove all definitions.
143         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
144         <kernel-features.h>.
145         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
146         (miss_F_GETOWN_EX): Remove all definitions.
147         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
148         macro definition.
149         [!__ASSUME_FCNTL64]: Remove conditional code.
150         [__ASSUME_FCNTL64]: Make code unconditional.
151         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
152         <kernel-features.h>.
153         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
154         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
155         (lockf64) [__NR_fcntl64]: Make code unconditional.
156         (lockf64) [__ASSUME_FCNTL64]: Likewise.
157
158         * sysdeps/unix/sysv/linux/kernel-features.h
159         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
160         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
161         Make code unconditional.
162         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
163         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
165         [__NR_vfork]: Make code unconditional.
166         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
167         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
169         [__NR_vfork]: Make code unconditional.
170         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
171         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
172
173 2012-08-01  Roland McGrath  <roland@hack.frob.com>
174
175         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
176         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
177
178         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
179         Define mkstemp64 as an alias.
180         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
181         Define mkstemps64 as an alias.
182         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
183         Define mkostemp64 as an alias.
184         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
185         Define mkostemps64 as an alias.
186         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
187         Conditionalize body on this.
188         * misc/mkostemp64.c: Likewise.
189         * misc/mkostemps64.c: Likewise.
190         * misc/mkstemps64.c: Likewise.
191         * sysdeps/wordsize-64/mkstemp64.c: File removed.
192         * sysdeps/wordsize-64/mkostemp64.c: File removed.
193         * sysdeps/wordsize-64/mkostemp.c: File removed.
194         * sysdeps/wordsize-64/mkstemp.c: File removed.
195         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
196         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
197         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
198         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
199
200         [BZ #14138]
201         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
202         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
203         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
204         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
205
206         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
207         compat_symbol macros from <shlib-compat.h> rather than the underlying
208         default_symbol_version and symbol_version macros, so that DEFAULT
209         lines in shlib-versions are respected.
210         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
211
212 2012-08-01  Florian Weimer  <fweimer@redhat.com>
213
214         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
215         Declare with warn_unused_result.
216         (setgid, setregid, setegid, setresgid): Likewise.
217         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
218         Likewise.
219         * WUR-REPORT: Remove set*id functions.
220
221 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
222
223         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
224
225 2012-07-31  Roland McGrath  <roland@hack.frob.com>
226
227         * include/sys/socket.h (__libc_accept, __libc_accept4):
228         Add attribute_hidden.
229         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
230
231         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
232         use of PTR_MANGLE.
233         * inet/getnetgrent_r.c (setup): Likewise.
234
235         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
236
237 2012-07-31  David S. Miller  <davem@davemloft.net>
238
239         * sysdeps/sparc/fpu/libm-test-ulps: Update.
240
241 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
242
243         [BZ #13629]
244         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
245         value between 1.0 and 2.0 and smaller part has absolute value less
246         than 1.0.
247         * math/s_clog10.c (__clog10): Likewise.
248         * math/s_clog10f.c (__clog10f): Likewise.
249         * math/s_clog10l.c (__clog10l): Likewise.
250         * math/s_clogf.c (__clogf): Likewise.
251         * math/s_clogl.c (__clogl): Likewise.
252         * math/libm-test.inc (clog_test): Add more tests.
253         (clog10_test): Likewise.
254         * sysdeps/i386/fpu/libm-test-ulps: Update.
255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
256
257 2012-07-31  Florian Weimer  <fweimer@redhat.com>
258
259         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
260         Exit with zero in case no suitable GID is found, and write a
261         message to standard error.
262
263 2012-07-30  Roland McGrath  <roland@hack.frob.com>
264
265         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
266         rather than to 1.
267         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
268         (MAXPATHLEN): Removed.
269         (NOGROUP, NODEV): New macros.
270         (setbit, clrbit, isset, isclr): New macros.
271         (howmany, roundup, powerof2): New macros.
272         (DEV_BSIZE): New macro.
273
274         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
275         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
276
277         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
278         definition on [!__NO_LONG_DOUBLE_MATH].
279
280         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
281         PTR_MANGLE and PTR_DEMANGLE.
282
283         * socket/accept4.c (accept4): Rename to __libc_accept4.
284         Define accept4 as a weak alias.
285
286         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
287         on [_DIRENT_HAVE_D_TYPE].
288         * io/ftw.c (ftw_dir): Likewise.
289
290         * io/xmknod.c (__xmknod): Don't check PATH for being null.
291
292         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
293
294         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
295         Use the BSD numbers rather than the arbitrary ones we had.
296         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
297         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
298         (SIGXCPU, SIGXFSZ): New macros.
299         (_NSIG): Now 32.
300
301         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
302         initializer on [_LIBC_REENTRANT].
303
304         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
305         definitions inside [_POSIX_MAPPED_FILES].
306
307         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
308
309         * dirent/opendir.c: Include <fcntl.h>.
310
311         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
312         (__libc_getspecific): Likewise.
313         (__libc_key_create): Likewise.
314
315         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
316         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
317         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
318         (tmpfile64): Define as alias.
319         * sysdeps/wordsize-64/tmpfile.c: File removed.
320         * sysdeps/wordsize-64/tmpfile64.c: File removed.
321         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
322         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
323
324         * stdio-common/vfscanf.c: Include <stdbool.h>.
325         * nss/makedb.c: Likewise.
326         * stdio-common/_i18n_number.h: Likewise.
327         * argp/argp-help.c: Likewise.
328         * posix/wordexp.c: Likewise.
329         * sysdeps/posix/spawni.c: Likewise.
330         * nss/nss_files/files-initgroups.c: Likewise.
331         * stdio-common/reg-modifier.c: Include <stdlib.h>.
332         * nss/nss_files/files-initgroups.c: Likewise.
333         * nss/nss_db/db-netgrp.c: Likewise.
334         * nss/nss_db/db-initgroups.c: Likewise.
335         * io/fchmodat.c: Include <sys/stat.h>.
336
337         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
338         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
339
340         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
341         [HAVE_MMAP].
342
343         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
344         Add multiple inclusion protection.
345
346 2012-07-27  David S. Miller  <davem@davemloft.net>
347
348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
349
350 2012-07-27  Gary Benson  <gbenson@redhat.com>
351
352         [BZ #14298]
353         * elf/rtld.c: Include <stap-probe.h>.
354         (dl_main): Added static probes "init_start" and "init_complete".
355         * elf/dl-load.c: Include <stap-probe.h>.
356         (lose): Take new parameter "nsid".
357         Added static probe "map_failed".
358         (_dl_map_object_from_fd): Pass namespace id to lose.
359         Added static probe "map_start".
360         (open_verify): Pass namespace id to lose.
361         * elf/dl-open.c: Include <stap-probe.h>.
362         (dl_open_worker) Added static probes "map_complete", "reloc_start"
363         and "reloc_complete".
364         * elf/dl-close.c: Include <stap-probe.h>.
365         (_dl_close_worker): Added static probes "unmap_start" and
366         "unmap_complete".
367         * elf/rtld-debugger-interface.txt: New file documenting the above.
368
369 2012-07-26  Roland McGrath  <roland@hack.frob.com>
370
371         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
372         rather than a string variable.
373         * sunrpc/rpc_main.c (h_output): Likewise.
374         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
375
376 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
377
378         * inet/check_native.c: New file.
379
380 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
381
382         [BZ #13629]
383         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
384         if larger part has absolute value 1.0.
385         * math/s_clog10.c (__clog10): Likewise.
386         * math/s_clog10f.c (__clog10f): Likewise.
387         * math/s_clog10l.c (__clog10l): Likewise.
388         * math/s_clogf.c (__clogf): Likewise.
389         * math/s_clogl.c (__clogl): Likewise.
390         * math/libm-test.inc (clog_test): Add more tests.
391         (clog10_test): Likewise.
392         * sysdeps/i386/fpu/libm-test-ulps: Update.
393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
394
395         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
396         (pltexit): Likewise.
397         (La_regs): Likewise.
398         (La_retval): Likewise.
399         (int_retval): Likewise.
400         Update #error for removed macros to refer only to definitions in
401         tst-audit.h.
402         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
403         macro.
404         (pltexit): Likewise.
405         (La_regs): Likewise.
406         (La_retval): Likewise.
407         (int_retval): Likewise.
408         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
409         macro.
410         (pltexit): Likewise.
411         (La_regs): Likewise.
412         (La_retval): Likewise.
413         (int_retval): Likewise.
414         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
415         macro.
416         (pltexit): Likewise.
417         (La_regs): Likewise.
418         (La_retval): Likewise.
419         (int_retval): Likewise.
420         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
421         macro.
422         (pltexit): Likewise.
423         (La_regs): Likewise.
424         (La_retval): Likewise.
425         (int_retval): Likewise.
426         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
427         macro.
428         (pltexit): Likewise.
429         (La_regs): Likewise.
430         (La_retval): Likewise.
431         (int_retval): Likewise.
432         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
433         macro.
434         (pltexit): Likewise.
435         (La_regs): Likewise.
436         (La_retval): Likewise.
437         (int_retval): Likewise.
438         * sysdeps/generic/tst-audit.h: Update comment to refer only to
439         macro definitions in tst-audit.h.
440         * sysdeps/i386/tst-audit.h: New file.
441         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
442         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
443         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
444         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
445         * sysdeps/sh/tst-audit.h: Likewise.
446         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
447         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
448         * sysdeps/x86_64/tst-audit.h: Likewise.
449
450 2012-07-26  Andreas Jaeger  <aj@suse.de>
451
452         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
453         ptrace.
454
455         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
456         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
457         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
458         PTRACE_O_MASK.
459         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
460         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
461         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
462
463         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
464         value.
465
466         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
467         _sigsys.
468         (si_call_addr, si_syscall, si_arch): Define new macro.
469         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
470         _sigsys.
471         (si_call_addr, si_syscall, si_arch): Define new marcro.
472         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
473         _sigsys.
474         (si_call_addr, si_syscall, si_arch): Define new macro.
475         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
476         _sigsys.
477         (si_call_addr, si_syscall, si_arch): Define new macro.
478
479 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
480
481         [BZ #13717]
482         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
483         Change to 2.4.21 where previously 2.4.1.
484         * sysdeps/unix/sysv/linux/configure: Regenerated.
485         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
486         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
487         Linux kernel version.
488         (__ASSUME_STD_AUXV): Remove.
489         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
490         kernel version.
491         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
492         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
493         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
494         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
495         (__ASSUME_NETLINK_SUPPORT): Likewise.
496         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
497         (__no_netlink_support): Remove conditional definition.
498         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
499         Remove.
500         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
501         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
502         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
503         (if_nameindex_ioctl): Remove.
504         (if_nameindex_netlink): Do not handle __no_netlink_support.
505         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
506         code.
507         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
508         Remove conditional code.
509         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
510         code.
511         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
512         unconditional.
513         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
514         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
515         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
516         Remove.
517         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
518         [!__ASSUME_STD_AUXV]: Remove conditional code.
519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
520         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
521         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
523         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
524         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
525         code.
526         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
528         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
529         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
530         conditional code.
531         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
533         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
534         code.
535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
536         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
537         conditional code.
538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
539         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
540         code unconditional.
541         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
542         conditional code.
543         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
544         unconditional.
545         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
546         conditional code.
547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
548         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
549         unconditional.
550         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
551         conditional code.
552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
553         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
554         code unconditional.
555         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
556         conditional code.
557         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
558         unconditional.
559         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
560         conditional code.
561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
562         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
563         code unconditional.
564         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
565         conditional code.
566         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
567         unconditional.
568         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
569         conditional code.
570
571 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
572
573         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
574         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
575         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
576         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
577         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
578         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
579         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
580         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
581         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
582         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
583         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
584         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
585         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
586         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
587         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
588         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
589         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
590         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
591         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
592         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
593         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
594         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
595         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
596
597 2012-07-25  Florian Weimer  <fweimer@redhat.com>
598
599         * Versions.def: Add GLIBC_2.17.
600         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
601         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
602         Introduce __libc_secure_getenv.
603         * stdlib/Versions (2.17): Add secure_getenv
604         (GLIBC_PRIVATE): Add __libc_secure_getenv.
605         * stdlib/secure-getenv.c: Rename __secure_getenv to
606         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
607         symbol __secure_getenv for GLIBC_2.0.
608         * stdlib/tst-secure-getenv.c: New.
609         * stdlib/Makefile (tests): Add testcase.
610         * manual/startup.texi (Environment Access): Document
611         secure_getenv.
612         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
613         __libc_secure_getenv.
614         * inet/ruserpass.c (ruserpass): Likewise.
615         * malloc/mtrace.c (mtrace): Likewise.
616         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
617         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
618         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
619         * sysdeps/posix/tempname.c: Likewise.  Evaluate
620         HAVE_SECURE_GETENV.
621         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
622         __secure_getenv to __libc_secure_getenv.
623         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
625         Likewise.
626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
627         Likewise.
628         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
629         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
630         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
631         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
632         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
633         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
634         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
635
636 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
637
638         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
639         (struct La_i86_retval): Likewise.
640         (struct La_x86_64_regs): Likewise.
641         (struct La_x86_64_retval): Likewise.
642         (struct La_x32_regs): Likewise.
643         (struct La_x32_retval): Likewise.
644         (struct La_ppc32_regs): Likewise.
645         (struct La_ppc32_retval): Likewise.
646         (struct La_ppc64_regs): Likewise.
647         (struct La_ppc64_retval): Likewise.
648         (struct La_sh_regs): Likewise.
649         (struct La_sh_retval): Likewise.
650         (struct La_s390_32_regs): Likewise.
651         (struct La_s390_32_retval): Likewise.
652         (struct La_s390_64_regs): Likewise.
653         (struct La_s390_64_retval): Likewise.
654         (struct La_sparc32_regs): Likewise.
655         (struct La_sparc32_retval): Likewise.
656         (struct La_sparc64_regs): Likewise.
657         (struct La_sparc64_retval): Likewise.
658         (struct audit_ifaces): Remove architecture-specific pltenter and
659         pltexit members.
660         * sysdeps/i386/ldsodefs.h: New file.
661         * sysdeps/powerpc/ldsodefs.h: Likewise.
662         * sysdeps/s390/ldsodefs.h: Likewise.
663         * sysdeps/sh/ldsodefs.h: Likewise.
664         * sysdeps/sparc/ldsodefs.h: Likewise.
665         * sysdeps/x86_64/ldsodefs.h: Likewise.
666
667 2012-07-25  Marek Polacek  <polacek@redhat.com>
668
669         [BZ #6808]
670         * math/libm-test.inc (yn_test): Add another test.
671         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
672         to ERANGE when the result is +-Inf.
673         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
674         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
675         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
676         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
677
678 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
679
680         * conform/data/time.h-data (NULL): Use macro-constant.  Require
681         equal to 0.
682         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
683         clock_t.
684         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
685
686 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
687
688         * configure.in <sysdeps resolving>: Correct printing
689         Implies_before.
690         * configure: Regenerate.
691
692 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
693
694         * math/w_ilogb.c: Include <limits.h>.
695         * math/w_ilogbl.c: Likewise.
696
697 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
698
699         * manual/lang.texi (__va_copy): Document primarily as ISO C99
700         va_copy.  Document allowing for unavailable va_copy only as
701         pre-C99 compatibility.
702         * manual/string.texi (Copying and Concatenation): Use va_copy
703         instead of __va_copy in concat example.
704
705 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
706
707         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
708         (__sendto): Use create_address_port.  Initialize APORT and deallocate
709         it if not null.
710
711         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
712         with O_NOLINK passed to __file_name_lookup.
713
714         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
715         with O_NOLINK passed to __file_name_lookup.
716
717         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
718         negative N or less than NGIDS.
719
720         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
721         type to string_t.  Set ERANGE as errno and return it if NAME is not big
722         enough.  Use memcpy instead of strncpy.
723
724 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
725
726         * elf/Makefile (check-data): Remove.
727         (localplt.data): New vpath directive.
728         ($(objpfx)check-localplt.out): Use localplt.data from vpath
729         instead of $(check-data).
730         * scripts/data/localplt-generic.data: Move to ...
731         * sysdeps/generic/localplt.data: ... here.
732         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
733         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
734         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
736         ... here.
737         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
739         ... here.
740         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
741         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
742         ... here.
743         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
744         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
745         ... here.
746         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
747         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
748         ... here.
749         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
750         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
751         ... here.
752
753 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
754
755         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
756         PPC32 and PPC64 files.
757         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
758         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
759
760 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
761
762         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
763         __makecontext_ret to ...
764         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
765         ... here and call exit if uc_link is NULL.  New file.
766         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
767         __makecontext_ret.S.
768         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
769         __makecontext_ret to ...
770         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
771         ... here and call exit if uc_link is NULL.  New file.
772         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
773         __makecontext_ret.S.
774
775 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
776
777         * elf/elf.h (R_390_IRELATIVE): New definition.
778         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
779         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
780         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
781         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
782         (elf_machine_lazy_rel): Likewise.
783         * sysdeps/s390/dl-irel.h: New file.
784         * sysdeps/s390/s390-64/memcpy.S: New asm code.
785         * sysdeps/s390/s390-64/memset.S: New asm code.
786         * sysdeps/s390/s390-64/memcmp.S: New asm code.
787         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
788         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
789         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
790         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
791         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
792         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
793         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
794         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
795         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
796         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
797         * sysdeps/s390/s390-32/memcpy.S: New asm code.
798         * sysdeps/s390/s390-32/memset.S: New asm code.
799         * sysdeps/s390/s390-32/memcmp.S: New asm code.
800
801 2012-07-17  Marek Polacek  <polacek@redhat.com>
802
803         [BZ #14349]
804         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
805         * sysdeps/s390/s390-64/configure.in: Likewise.
806         * sysdeps/sparc/configure.in: Likewise.
807         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
808         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
809         * sysdeps/i386/configure.in: Likewise.
810         * sysdeps/x86_64/configure.in: Likewise.
811         * sysdeps/sh/configure.in: Likewise.
812         * sysdeps/s390/s390-32/configure: Regenerated.
813         * sysdeps/s390/s390-64/configure: Likewise.
814         * sysdeps/x86_64/configure: Likewise.
815         * sysdeps/sh/configure: Likewise.
816         * sysdeps/powerpc/powerpc64/configure: Likewise.
817         * sysdeps/powerpc/powerpc32/configure: Likewise.
818         * sysdeps/sparc/configure: Likwise.
819         * sysdeps/i386/configure: Likewise.
820
821         * elf/dl-open.c: Comment fixes.
822
823 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
824
825         * Makefile [CXX] (check-data): Remove.
826         [CXX] (c++-types.data): New vpath directive.
827         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
828         vpath.  Do not allow for C++ type data being missing.
829         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
830         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
831         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
832         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
833         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
834         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
835         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
837         ... here.
838         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
840         ... here.
841         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
842         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
843         ... here.
844         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
845         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
846         ... here.
847         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
848         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
849         ... here.
850         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
851         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
852         ... here.
853         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
854         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
855         ... here.
856         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
857         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
858
859         * elf/tls-macros.h (TLS_LE): Move architecture-specific
860         definitions to architecture-specific files.
861         (TLS_IE): Likewise.
862         (TLS_LD): Likewise.
863         (TLS_GD): Likewise.
864         * sysdeps/i386/tls-macros.h: New file.
865         * sysdeps/powerpc/tls-macros.h: Likewise.
866         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
867         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
868         * sysdeps/sh/tls-macros.h: Likewise.
869         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
870         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
871         * sysdeps/x86_64/tls-macros.h: Likewise.
872
873 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
874
875         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
876         zero value for regular exit case.
877
878         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
879         (__start_context): Preserve zero value for regular exit case.
880
881 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
882             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
883
884         * manual/setjmp.texi (setcontext): Clarify normal process
885         termination when uc_link is the null pointer.
886         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
887         exit call.
888
889 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
890
891         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
892         preprocessor.  Test for each exception mask separately.
893
894 2012-07-16  Andreas Jaeger  <aj@suse.de>
895
896         * po/ru.po: Update from translation team.
897
898 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
899
900         * conform/data/string.h-data (NULL): Use macro-constant.  Require
901         equal to 0.
902         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
903         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
904         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
905         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
906         [ISO || ISO99 || ISO11] (*_t): Do not allow.
907
908 2012-07-13  Andreas Jaeger  <aj@suse.de>
909
910         * po/fr.po: Update from translation team.
911
912 2012-07-12  Marek Polacek  <polacek@redhat.com>
913
914         [BZ #14173]
915         * math/libm-test.inc (yn_test): Add test for BZ #14173.
916         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
917         loop condition.
918
919 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
920
921         [BZ #13717]
922         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
923         Change to 2.4.1 where previously 2.4.0.
924         * sysdeps/unix/sysv/linux/configure: Regenerated.
925         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
926         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
927         version.
928         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
929         (__ASSUME_AT_CLKTCK): Remove.
930         (__ASSUME_AT_PAGESIZE): Likewise.
931         (__ASSUME_AT_XID): Likewise.
932         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
933         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
934         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
935         unconditionally.
936         (HAVE_AUX_PAGESIZE): Likewise.
937         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
938         [__ASSUME_AT_CLKTCK]: Make code unconditional.
939         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
940
941 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
942
943         [BZ #14307]
944         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
945         the temporary buffer used to invoke __gethostbyname2_r,
946         __gethostbyaddr_r and gethostbyname4_r to make room for struct
947         host_data / struct gaih_addrtuple.
948         * resolv/nss_dns/dns-host.c (global scope): Move definition of
949         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
950         header file nss/nsswitch.h.
951         * nss/nsswitch.h (global scope): Add definition of implementation
952         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
953         resolv/nss_dns/dns-host.c).
954
955 2012-07-11  Andreas Jaeger  <aj@suse.de>
956
957         * po/fr.po: Update from translation team.
958
959         * po/sv.po: Update from translation team
960         * po/fr.po: Another update from translation team.
961
962 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
963
964         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
965         for subnormals or multiply small sinh result by itself.
966         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
967         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
968
969 2012-07-11  David S. Miller  <davem@davemloft.net>
970
971         * sysdeps/sparc/fpu/libm-test-ulps: Update.
972
973 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
974
975         [BZ #14347]
976         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
977         (INTERNAL_MARK): Shift it here.
978
979 2012-07-10  Marek Polacek  <polacek@redhat.com>
980
981         [BZ #14151]
982         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
983         libc_cv_asm_global_directive with .globl.
984         * configure: Regenerated.
985         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
986         with .globl.
987         * sysdeps/i386/configure: Regenerated.
988         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
989         with .globl.
990         * sysdeps/x86_64/configure: Regenerated.
991         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
992         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
993         * elf/tst-unique2mod2.c: Likewise.
994         * elf/tst-unique2mod1.c: Likewise.
995         * elf/tst-unique1mod2.c: Likewise.
996         * elf/tst-unique1mod1.c: Likewise.
997         * sysdeps/s390/s390-32/sysdep.h: Likewise.
998         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
999         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1000         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1001         * sysdeps/mach/sysdep.h: Likewise.
1002         * sysdeps/i386/sysdep.h: Likewise.
1003         * sysdeps/i386/i386-mcount.S: Likewise.
1004         * sysdeps/x86_64/_mcount.S: Likewise.
1005         * sysdeps/x86_64/sysdep.h: Likewise.
1006         * sysdeps/sh/_mcount.S: Likewise.
1007         * sysdeps/sh/sysdep.h: Likewise.
1008         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
1009         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
1010         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
1011         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1012         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
1013         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
1014         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
1015         * locale/localeinfo.h: Likewise.
1016         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
1017         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
1018
1019 2012-07-09  Roland McGrath  <roland@hack.frob.com>
1020
1021         [BZ #14336]
1022         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
1023         system".
1024         * manual/message.texi (The Uniforum approach): Likewise.
1025         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
1026         (glibc iconv Implementation): Likewise.
1027
1028 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
1029
1030         [BZ #14337]
1031         * math/s_clog.c (__clog): Avoid scaling a value down where that
1032         could result in underflow.
1033         * math/s_clog10.c (__clog10): Likewise.
1034         * math/s_clog10f.c (__clog10f): Likewise.
1035         * math/s_clog10l.c (__clog10l): Likewise.
1036         * math/s_clogf.c (__clogf): Likewise.
1037         * math/s_clogl.c (__clogl): Likewise.
1038         * math/libm-test.inc (clog_test): Add more tests.
1039         (clog10_test): Likewise.
1040         * sysdeps/i386/fpu/libm-test-ulps: Update.
1041         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1042
1043 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
1044
1045         [BZ #14283]
1046         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
1047         by 7 not 8 to examine high bit of fractional part.
1048
1049         [BZ #14042]
1050         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
1051         for call to __mcount_internal.
1052         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
1053         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
1054         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
1055
1056 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
1057
1058         [BZ #14154]
1059         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
1060         approximation for values within 0x1p-13f of an odd multiple of
1061         pi/4.
1062         * math/libm-test.inc (tan_test): Do not allow spurious underflow
1063         exception.  Add more tests.
1064         * sysdeps/i386/fpu/libm-test-ulps: Update.
1065
1066         [BZ #6778]
1067         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
1068         inputs and return -1 for them.  Do not check for +Inf in case not
1069         reachable for +Inf.
1070         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
1071         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
1072         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1073         and return -1 for them.  Do not check for +Inf in case not
1074         reachable for +Inf.
1075         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
1076         define.
1077         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1078         and return -1 for them.  Do not check for +Inf in case not
1079         reachable for +Inf.
1080         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
1081         spurious underflow.
1082         * sysdeps/i386/fpu/libm-test-ulps: Update.
1083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1084
1085 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
1086
1087         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
1088
1089 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
1090
1091         [BZ #14157]
1092         [BZ #14331]
1093         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
1094         could result in spurious underflow.  Scale down values above
1095         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
1096         * math/s_csqrtf.c (__csqrtf): Likewise.
1097         * math/s_csqrtl.c (__csqrtl): Likewise.
1098         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
1099         spurious underflow.
1100         * sysdeps/i386/fpu/libm-test-ulps: Update.
1101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1102
1103 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
1104
1105         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
1106         xopen-msg.sed.
1107         * catgets/xopen-msg.awk: New file.
1108         * catgets/xopen-msg.sed: Removed.
1109
1110         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
1111         po2text.sed.
1112         * intl/po2test.awk: New file.
1113         * intl/po2test.sed: Removed.
1114
1115 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
1116
1117         [BZ #14328]
1118         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
1119         or multiply small sinh result by itself.
1120         * math/s_ctanf.c (__ctanf): Likewise.
1121         * math/s_ctanh.c (__ctanh): Likewise.
1122         * math/s_ctanhf.c (__ctanhf): Likewise.
1123         * math/s_ctanhl.c (__ctanhl): Likewise.
1124         * math/s_ctanl.c (__ctanl): Likewise.
1125         * math/libm-test.inc (ctan_test_tonearest): New function.
1126         (ctan_test_towardzero): Likewise.
1127         (ctan_test_downward): Likewise.
1128         (ctan_test_upward): Likewise.
1129         (ctanh_test_tonearest): Likewise.
1130         (ctanh_test_towardzero): Likewise.
1131         (ctanh_test_downward): Likewise.
1132         (ctanh_test_upward): Likewise.
1133         (main): Call these new functions.
1134         * sysdeps/i386/fpu/libm-test-ulps: Update.
1135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1136
1137 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
1138
1139         * .gitignore: Delete /ports entry.
1140
1141 2012-07-03  Andreas Jaeger  <aj@suse.de>
1142
1143         * po/bg.po: Update from translation team.
1144         * po/cs.po: Likewise.
1145         * po/de.po: Likewise.
1146         * po/hr.po: Likewise.
1147         * po/nl.pl: Likewise.
1148         * po/pl.po: Likewise.
1149         * po/vi.po: Likewise.
1150
1151 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
1152
1153         * Makeconfig [!+link] (+link-before-libc): New variable.
1154         [!+link] (+link-after-libc): Likewise.
1155         [!+link] (+link-tests): Likewise.
1156         [!+link] (+link): Define in terms of $(+link-before-libc) and
1157         $(+link-after-libc).
1158         [!+link-static] (+link-static-before-libc): New variable.
1159         [!+link-static] (+link-static-after-libc): Likewise.
1160         [!+link-static] (+link-static-tests): Likewise.
1161         [!+link-static] (+link-static): Define in terms of
1162         $(+link-static-before-libc) and $(+link-static-after-libc).
1163         [build-shared] (link-libc-before-gnulib): New variable.
1164         [build-shared] (link-libc-tests): Likewise.
1165         [build-shared] (link-libc): Define in terms of
1166         $(link-libc-before-gnulib).
1167         [!build-shared] (link-libc-tests): New variable.
1168         (link-libc-static-tests): New variable.
1169         [!gnulib] (gnulib-arch): New variable.
1170         [!gnulib] (gnulib-tests): Likewise.
1171         [!gnulib] (static-gnulib-arch): Likewise.
1172         [!gnulib] (static-gnulib-tests): Likewise.
1173         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
1174         Define with "=" instead of ":=".
1175         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
1176         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
1177         * Rules (binaries-all-notests): New variable.
1178         (binaries-all-tests): Likewise.
1179         (binaries-static-notests): Likewise.
1180         (binaries-static-tests): Likewise.
1181         (binaries-all): Define using $(binaries-all-notests) and
1182         $(binaries-all-tests).
1183         (binaries-static): Define using $(binaries-static-notests) and
1184         $(binaries-static-tests).
1185         (binaries-shared-tests): New variable.
1186         (binaries-shared-notests): Likewise.
1187         (binaries-shared): Remove variable.
1188         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
1189         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
1190         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
1191         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
1192         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
1193         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
1194         * elf/Makefile (sln-modules): New variable.
1195         (extra-objs): Add $(sln-modules:=.o).
1196         (ldconfig-modules): Add static-stubs.
1197         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
1198         * elf/static-stubs.c: New file.
1199
1200         [BZ #14283]
1201         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
1202         by 7 not 8 to examine high bit of fractional part.  Use volatile
1203         variables when splitting into final array of floats if
1204         __FLT_EVAL_METHOD__ != 0.
1205         * math/libm-test.inc (cos_test): Add another test.
1206         (sin_test): Likewise.
1207         * sysdeps/i386/fpu/libm-test-ulps: Update.
1208
1209         [BZ #14273]
1210         * math/libm-test.inc (cosh_test): Add more tests.
1211
1212         * version.h (RELEASE): Set to "development".
1213         (VERSION): Set to "2.16.90".
1214
1215 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
1216
1217         * NEWS: Update copyright. Remove last-updated date.
1218         Mention math library bug fixes and timezone data changes.
1219         * README: Mention GNU/Hurd, x32, and HPPA support status.
1220
1221 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
1222
1223         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
1224
1225 2012-06-27  Andreas Jaeger  <aj@suse.de>
1226
1227         * manual/contrib.texi (Contributors): Add Samuel Thibault.
1228
1229 2012-06-25  Andreas Jaeger  <aj@suse.de>
1230
1231         * sysdeps/s390/fpu/libm-test-ulps: Update.
1232
1233 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
1234             Thomas Schwinge  <thomas@codesourcery.com>
1235
1236         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
1237         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
1238         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
1239         fanotify_mark.
1240
1241 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
1242
1243         * sysdeps/mach/start.c: Remove file.
1244         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
1245         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
1246         * sysdeps/sh/init-first.c: Likewise.
1247
1248         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
1249         registers for frame unwinding purposes, add CFI directives.
1250         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1251         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
1252         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1253         Likewise.
1254
1255         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
1256         __fortify_fail returning.
1257         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1258
1259         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
1260         sysdeps/sh/____longjmp_chk.S.
1261         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
1262         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
1263         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
1264         (gen-as-const-headers): Append sigaltstack-offsets.sym.
1265
1266         * sysdeps/sh/abort-instr.h: New file.
1267         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
1268         process in case exit returns.
1269
1270         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
1271         initialize the GOT register before use.
1272
1273         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
1274         calculation of ARGC > 4.
1275
1276         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
1277         meaningful names to some local labels.
1278
1279 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1280             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1281
1282         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1283         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
1284         (__arch_compare_and_exchange_val_16_acq): Likewise.
1285         (__arch_compare_and_exchange_val_32_acq): Likewise.
1286         (atomic_exchange_and_add): Fix gUSA sequence.
1287         (atomic_add): Likewise.
1288         (atomic_add_negative): Likewise.
1289         (atomic_add_zero): Likewise.
1290         (atomic_bit_test_set): Likewise.
1291
1292 2012-06-22  Andreas Schwab  <schwab@redhat.com>
1293
1294         [BZ #13579]
1295         * include/link.h (struct link_map): Add l_free_initfini.
1296         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
1297         l_initfini.
1298         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
1299         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
1300         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
1301         set.
1302
1303 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
1304
1305         * configure.in: Use AC_LANG_SOURCE.
1306         * configure: Regenerate.
1307
1308 2012-06-22  Roland McGrath  <roland@hack.frob.com>
1309
1310         * configure.in (libc_cv_localstatedir): New substituted variable.
1311         * configure: Regenerated.
1312         * config.make.in (localstatedir): New variable, substituted from
1313         libc_cv_localstatedir.
1314         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
1315         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
1316         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
1317         * sysdeps/gnu/configure: Regenerated.
1318
1319 2012-06-21  Jeff Law  <law@redhat.com>
1320
1321         [BZ #14277]
1322         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
1323         free.  Simplify list management for _LIBC case.
1324
1325 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
1326
1327         [BZ #14273]
1328         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
1329         Clear sign bit of 64-bit integer value before comparing against
1330         overflow value.
1331
1332         * sysdeps/mach/configure: Regenerated.
1333
1334 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1335
1336         [BZ #14278]
1337         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
1338
1339 2012-06-21  Jeff Law  <law@redhat.com>
1340
1341         [BZ #13882]
1342         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
1343         uint16_t for elements in the "seen" array to avoid char overflows.
1344         * elf/dl-fini.c (_dl_sort_fini): Likewise.
1345         * elf/dl-open.c (dl_open_worker): Likewise.
1346
1347 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
1348
1349         * scripts/list-sources.sh: Scan PORTS for translations.
1350         * po/libc.pot: Regenerated.
1351
1352 2012-06-21  Andreas Jaeger  <aj@suse.de>
1353
1354         [BZ #12194]
1355         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
1356         warning.
1357         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
1358         * bits/byteswap-16.h (__bswap_16): Likewise.
1359         * bits/byteswap.h (__bswap_constant_16): Likewise.
1360
1361 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1362
1363         [BZ #14117]
1364         * sysdeps/i386/fpu_control.h: Removed.
1365         * sysdeps/x86_64/fpu_control.h: Moved to ...
1366         * sysdeps/x86/fpu_control.h: Here.
1367
1368         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
1369         (_FPU_SETCW): Likewise.
1370
1371 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
1372
1373         [BZ #14117]
1374         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
1375         * sysdeps/x86/fpu/bits/mathinline.h: This.
1376         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
1377
1378         [BZ #14050]
1379         [BZ #14117]
1380         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
1381         functions if __x86_64__ is defined.
1382
1383 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
1384
1385         * string/endian.h: Add !__ASSEMBLER__ condition for including
1386         conversion interfaces.
1387
1388 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
1389
1390         [BZ #14241]
1391         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
1392         of ABS(x) in calculating zero to negative powers other than odd
1393         integers.
1394         * math/libm-test.inc (pow_test): Add more tests.
1395
1396 2012-06-15  Andreas Jaeger  <aj@suse.de>
1397
1398         * manual/contrib.texi (Contributors): Update entry of Liubov
1399         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
1400         Machado Filho.
1401
1402 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
1403
1404         * string/string.h: Add __wur to GNU version of strerror_r.
1405
1406 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1407
1408         [BZ #14229]
1409         * string/Makefile (tests): Add tst-strtok_r.
1410         * string/tst-strtok_r.c: New file.
1411         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
1412         RAX_LP/RDX_LP on SAVE_PTR.
1413
1414 2012-06-14  Roland McGrath  <roland@hack.frob.com>
1415
1416         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
1417
1418 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
1419
1420         * libm_test.inc (csqrt_test): Allow more spurious underflow
1421         exceptions.
1422         (j0_test): Likewise.
1423         (j1_test): Likewise.
1424         (y0_test): Likewise.
1425         (y1_test): Likewise.
1426
1427 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
1428
1429         * po/Makefile (libc.pot): Use UTF-8 charset.
1430
1431 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
1432
1433         [BZ #14210]
1434         Suppress sign-conversion warning from FD_SET.
1435         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
1436         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
1437         not unsigned long int.
1438         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
1439
1440 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
1441
1442         [BZ #14050]
1443         [BZ #14117]
1444         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
1445         __extern_always_inline instead of __extern_inline.
1446         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
1447         (__signbit): Likewise.
1448         (__signbitl): Support C++ namespace.
1449         (lrintf): New inline function.
1450         (lrint): Likewise.
1451         (llrintf): Likewise.
1452         (llrint): Likewise.
1453         (fmaxf): Likewise.
1454         (fmax): Likewise.
1455         (fminf): Likewise.
1456         (fmin): Likewise.
1457         (rint): Likewise.
1458         (rintf): Likewise.
1459         (ceil): Likewise.
1460         (ceilf): Likewise.
1461         (floor): Likewise.
1462         (floorf): Likewise.
1463         (nearbyint): Likewise.
1464         (nearbyintf): Likewise.
1465
1466 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
1467
1468         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
1469         non-default versions.
1470
1471 2012-06-11  Roland McGrath  <roland@hack.frob.com>
1472
1473         [BZ #14218]
1474         * manual/argp.texi (Argp): Reword argp_parse description slightly.
1475
1476 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
1477
1478         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
1479         (FE_UPWARD, FE_DOWNWARD): Don't define.
1480         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
1481         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
1482
1483         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
1484         reading it.
1485         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
1486         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
1487
1488 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1489
1490         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
1491         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
1492         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
1493         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
1494
1495 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1496
1497         [BZ #14117]
1498         * sysdeps/i386/fpu/bits/fenv.h: Removed.
1499         * sysdeps/i386/fpu/Implies: New file.
1500         * sysdeps/x86_64/fpu/Implies: Likewise.
1501         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
1502         * sysdeps/x86/fpu/bits/fenv.h: This.
1503
1504         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
1505         __SSE_MATH__.
1506
1507 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
1508
1509         [BZ #14134]
1510         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
1511         character 0xffff that matches the last element of the
1512         conversion table.
1513
1514 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1515
1516         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
1517         fmodl commit.
1518
1519 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1520
1521         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
1522         values higher than 25.6283.
1523
1524 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1525
1526         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
1527         subnormal exponent extraction and add some __builtin_expect.
1528         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
1529         Fix for subnormal mantissa calculation.
1530
1531 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
1532
1533         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
1534         cpu2 is -1 and errno is not ENOSYS.
1535
1536 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
1537
1538         [BZ #14117]
1539         * sysdeps/i386/i486/bits/string.h: Renamed to ...
1540         * sysdeps/x86/bits/string.h: This.
1541         * sysdeps/x86_64/bits/string.h: Removed.
1542
1543         * sysdeps/i386/i486/bits/string.h: Define inline functions only
1544         if not compiling for x86-64, but compiling for >= i486.
1545
1546         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
1547         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
1548
1549         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
1550         New macro from Linux kernel 3.4.0.
1551         (FP_XSTATE_MAGIC2): Likewise.
1552         (FP_XSTATE_MAGIC2_SIZE): Likewise.
1553         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
1554         (struct _fpx_sw_bytes): New struct.
1555         (struct _xsave_hdr): Likewise.
1556         (struct _ymmh_state): Likewise.
1557         (struct _xstate): Likewise.
1558
1559         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
1560         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
1561         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
1562         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
1563         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
1564         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
1565
1566         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
1567         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
1568         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
1569         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
1570         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
1571         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
1572
1573 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1574
1575         [BZ #13743]
1576         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
1577         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
1578         (sysdep_headers): Include sys/platform/ppc.h.
1579         * sysdeps/powerpc/test-gettimebase.c: Test for
1580         __ppc_get_timebase() to catch future ISA opcode/insn changes.
1581         * manual/Makefile (appendices): Include platform.texi.
1582         * manual/contrib.texi (Contributors): Update @node pointers.
1583         * manual/maint.texi (Maintenance): Likewise.
1584         (Platform): New node.
1585         * manual/platform.texi: New file.  Document the new features.
1586
1587 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1588             Jakub Jelinek  <jakub@redhat.com>
1589
1590         [BZ #14188]
1591         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
1592         where __builtin_expect is unavailable.
1593
1594 2012-06-03  David S. Miller  <davem@davemloft.net>
1595
1596         * stdlib/longlong.h: Updated from GCC.
1597
1598 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
1599
1600         [BZ #14042]
1601         * sysdeps/powerpc/powerpc32/mcount.c: New file.
1602         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
1603         __mcount_internal.
1604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1605         (GLIBC_2.16): Likewise.
1606
1607 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1608
1609         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
1610
1611 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
1612
1613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1614         (default-abi): New variable.
1615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
1616         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
1617         variable.
1618         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
1619         Likewise.
1620         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
1621         Likewise.
1622         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
1623         Likewise.
1624
1625         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
1626         definition.  Document in comment.
1627
1628 2012-06-01  David S. Miller  <davem@davemloft.net>
1629
1630         * stdlib/longlong.h: Updated from GCC.
1631
1632 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1633
1634         [BZ #14117]
1635         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
1636         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
1637         sys/debugreg.h sys/io.h here.
1638         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
1639         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
1640         sys/io.h.
1641         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
1642         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
1643         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
1644         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
1645         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
1646         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
1647
1648         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
1649         Define only if __x86_64__ is defined.
1650
1651 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
1652
1653         [BZ #14048]
1654         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
1655         Use int64_t for variable i.
1656         * math/libm-test.inc (fmod_test): Add more tests.
1657
1658         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
1659         z computation is not scheduled after fetestexcept.
1660         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
1661         Use math_force_eval instead of asm to ensure calculation scheduled
1662         before exception test.
1663         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
1664         Ensure a1 + u.d computation is not scheduled after fetestexcept.
1665
1666 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
1667
1668         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
1669         computation is not scheduled after fetestexcept.
1670
1671 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1672
1673         [BZ #14117]
1674         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
1675         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
1676
1677 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1678
1679         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
1680         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
1681
1682 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
1683
1684         [BZ #14117]
1685         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
1686         <bits/wordsize.h>.
1687         (__WCHAR_MIN): Support __WORDSIZE == 64.
1688         (__WCHAR_MAX): Likewise.
1689
1690         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
1691         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
1692
1693         [BZ #14183]
1694         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
1695         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
1696
1697         [BZ #14117]
1698         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
1699         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
1700
1701         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
1702         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
1703
1704         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
1705         Defined to 1 if __x86_64__ isn't defined.
1706         (_STAT_VER_LINUX_OLD): New.
1707         (st_atime): Remove duplicate.
1708         (st_mtime): Likewise.
1709         (st_ctime): Likewise.
1710
1711 2012-05-31  David S. Miller  <davem@davemloft.net>
1712
1713         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
1714         entries.
1715
1716 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
1717
1718         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
1719         gen-libm-test.pl.
1720
1721         [BZ #14132]
1722         * elf/dl-reloc.c: Include <_itoa.h>.
1723         (_dl_reloc_bad_type): Remove use of INTUSE.
1724         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
1725         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
1726         * stdio-common/psiginfo.c (psiginfo): Likewise.
1727         * stdio-common/psignal.c (psignal): Likewise.
1728         * string/strsignal.c (strsignal): Likewise.
1729         * include/signal.h (_sys_siglist): Declare hidden proto.
1730         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
1731         INTVARDEF with libc_hidden_data_def.
1732         * stdio-common/itoa-udigits.c: Likewise.
1733         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
1734         (_itoa_lower_digits_internal): Remove declaration.
1735         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
1736         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
1737         (_sys_sigabbrev_internal): Remove aliases.
1738         (_sys_siglist): Define hidden alias.
1739
1740 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
1741
1742         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1743         bits/sysctl.h.
1744
1745 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
1746
1747         [BZ #14117]
1748         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
1749         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
1750
1751         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
1752         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
1753         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
1754         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
1755         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
1756         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
1757
1758         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
1759         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
1760         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
1761
1762         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
1763         with __addr.
1764         (insw): Likewise.
1765         (insl): Likewise.
1766         (outsb): Likewise.
1767         (outsw): Likewise.
1768         (outsl): Likewise.
1769
1770         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
1771         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
1772         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
1773
1774         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
1775         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
1776         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
1777         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
1778         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
1779         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
1780
1781         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
1782         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
1783
1784         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
1785         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
1786
1787         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
1788         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
1789         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
1790
1791         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
1792         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
1793         to ...
1794         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
1795
1796         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
1797         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
1798         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
1799
1800         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
1801         for x86-64.
1802         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
1803
1804 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
1805
1806         * math/math.h (M_El): Use two more decimal places.
1807         (M_LOG2El): Likewise.
1808         (M_LOG10El): Likewise.
1809         (M_LN2l): Likewise.
1810         (M_LN10l): Likewise.
1811         (M_PIl): Likewise.
1812         (M_PI_2l): Likewise.
1813         (M_PI_4l): Likewise.
1814         (M_1_PIl): Likewise.
1815         (M_2_PIl): Likewise.
1816         (M_2_SQRTPIl): Likewise.
1817         (M_SQRT2l): Likewise.
1818         (M_SQRT1_2l): Likewise.
1819
1820 2012-05-31  David S. Miller  <davem@davemloft.net>
1821
1822         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
1823         values between float registers.
1824         * sysdeps/sparc/sparc64/memset.S: Likewise.
1825         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
1826
1827 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
1828
1829         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
1830         -D_FORTIFY_SOURCE=1.
1831         (CPPFLAGS-tst-longjmp_chk.c): Define.
1832         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
1833         (CPPFLAGS-tst-longjmp_chk2.c): Define.
1834         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
1835         CFLAGS-tst-wchar-h.c.
1836
1837 2012-05-31  Marek Polacek  <polacek@redhat.com>
1838
1839         [BZ #14132]
1840         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
1841         __endmntent_internal): Remove declaration.
1842         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
1843         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
1844         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
1845
1846 2012-05-30  David S. Miller  <davem@davemloft.net>
1847
1848         * sysdeps/sparc/sparc32/soft-fp/q_util.c
1849         (___Q_simulate_exceptions): Use real FP ops rather than writing
1850         into the %fsr.
1851         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
1852         Likewise.
1853
1854 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1855
1856         [BZ #14117]
1857         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
1858         * sysdeps/x86/bits/xtitypes.h: This.
1859
1860         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
1861         * sysdeps/x86/bits/wordsize.h: This.
1862
1863         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
1864         * sysdeps/x86/bits/huge_vall.h: This.
1865
1866         * sysdeps/i386/bits/select.h: Removed.
1867         * sysdeps/x86_64/bits/select.h: Renamed to ...
1868         * sysdeps/x86/bits/select.h: This.
1869
1870         * sysdeps/i386/bits/setjmp.h: Removed.
1871         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
1872         * sysdeps/x86/bits/setjmp.h: This.
1873
1874         * sysdeps/i386/bits/mathdef.h: Removed.
1875         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
1876         * sysdeps/x86/bits/mathdef.h: This.
1877
1878 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1879
1880         [BZ #14132]
1881         * include/sys/socket.h (__connect_internal)
1882         (__libc_sa_len_internal): Remove declaration.
1883         (__connect, __libc_sa_len): Declare hidden_proto.
1884         (SA_LEN): Remove use of INTUSE.
1885         * socket/connect.c: Add libc_hidden_def.
1886         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
1887         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
1888         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
1889         alias.
1890         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1891         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1892         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
1893         of adding _internal alias.
1894
1895 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1896
1897         [BZ #14117]
1898         * sysdeps/i386/bits/link.h: Removed.
1899         * sysdeps/i386/bits/linkmap.h: Likewise.
1900         * sysdeps/x86_64/bits/link.h: Renamed to ...
1901         * sysdeps/x86/bits/link.h: This.
1902         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
1903         * sysdeps/x86/bits/linkmap.h: This.
1904
1905         * sysdeps/i386/bits/endian.h: Removed.
1906         * sysdeps/x86_64/bits/endian.h: Renamed to ...
1907         * sysdeps/x86/bits/endian.h: This.
1908
1909         * sysdeps/i386/bits/byteswap.h: Removed.
1910         * sysdeps/i386/bits/byteswap-16.h: Likewise.
1911         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
1912         * sysdeps/x86/bits/byteswap.h: This.
1913         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
1914         * sysdeps/x86/bits/byteswap-16.h: This.
1915         * sysdeps/i386/Implies: Add x86.
1916         * sysdeps/x86_64/Implies: Likewise.
1917
1918 2012-05-30  David S. Miller  <davem@davemloft.net>
1919
1920         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
1921         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
1922         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
1923         (FP_TRAPPING_EXCEPTIONS): Define.
1924         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
1925         (FP_TRAPPING_EXCEPTIONS): Define.
1926         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
1927         subnormals only when inexact has been signalled or underflow
1928         exceptions are enabled.
1929         (_FP_PACK_CANONICAL): Likewise.
1930
1931 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1932
1933         [BZ #14183]
1934         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
1935         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
1936
1937 2012-05-30  Richard Henderson  <rth@twiddle.net>
1938
1939         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
1940         with #ifndef NOT_IN_libc.
1941
1942         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
1943         marked to avoid plt entry.
1944
1945 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1946
1947         [BZ #14112]
1948         * Makeconfig (default-abi): New macro.
1949         (abi-includes): Likewise.
1950         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
1951         $(abi-$(default-abi)-lib-soname) for soname if defined.
1952         ($(common-objpfx)gnu/lib-names.stmp): Generate from
1953         abi-variants.
1954         * Makefile (installed-stubs): Likewise.
1955         * include/stubs-biarch.h: Removed.
1956         * scripts/lib-names.awk: Only handle one library at a time.
1957         * scripts/soversions.awk: Remove WORDSIZE support.
1958         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
1959         entries.
1960         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
1961         Removed.
1962         (syscall-list-default-condition): Likewise.
1963         (syscall-list-default-condition): Likewise.
1964         (syscall-list-includes): Likewise.
1965         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
1966         syscall-list-* with abi-*.  Handle undefined abi-variants.
1967         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
1968         * sysdeps/unix/sysv/linux/i386/Implies: New file.
1969         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
1970         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
1971         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
1972         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
1973         Removed.
1974         (syscall-list-32-options): Likewise.
1975         (syscall-list-32-condition): Likewise.
1976         (syscall-list-64-options): Likewise.
1977         (syscall-list-64-condition): Likewise.
1978         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
1979         macro.
1980         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
1981         Renamed to ...
1982         (abi-*): This.
1983         (abi-64-ld-soname): New macro.
1984         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
1985         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
1986         Renamed to ...
1987         (abi-*): This.
1988         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
1989         * sysdeps/x86_64/x32/shlib-versions: Likewise.
1990
1991 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
1992
1993         * sysdeps/unix/sysv/linux/kernel-features.h
1994         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
1995         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
1996         include <kernel-features.h>.
1997         [!__NR_ftruncate64]: Remove conditional code.
1998         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1999         [__NR_ftruncate64]: Make code unconditional.
2000         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2001         * sysdeps/unix/sysv/linux/truncate64.c: Do not
2002         include <kernel-features.h>.
2003         [!__NR_ftruncate64]: Remove conditional code.
2004         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2005         [__NR_ftruncate64]: Make code unconditional.
2006         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
2008         include <kernel-features.h>.
2009         [!__NR_ftruncate64]: Remove conditional code.
2010         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2011         [__NR_ftruncate64]: Make code unconditional.
2012         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
2014         include <kernel-features.h>.
2015         [!__NR_ftruncate64]: Remove conditional code.
2016         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2017         [__NR_ftruncate64]: Make code unconditional.
2018         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2019
2020         * configure.in (libc_cv_fpie): Weaken to a compile test using
2021         LIBC_TRY_CC_OPTION.
2022         * configure: Regenerated.
2023
2024 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2025
2026         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
2027         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
2028         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
2029         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2030         Refreshed.
2031         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
2032         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
2033         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
2034         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
2035         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
2036         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2037         Refreshed.
2038
2039 2012-05-27  David S. Miller  <davem@davemloft.net>
2040
2041         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
2042         (___Q_zero): New.
2043         (__Q_simulate_exceptions): Return void.  Change to simulate
2044         exceptions by writing into the %fsr.
2045         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
2046         (__Qp_handle_exceptions): Likewise.
2047         (numbers): Delete.
2048         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
2049         __Qp_handle_exceptions.
2050         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
2051         __Qp_handle_exceptions.
2052         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2053         as unused and give dummy FP_RND_NEAREST initializer.
2054         (FP_INHIBIT_RESULTS): Define.
2055         (___Q_simulate_exceptions): Update declaration.
2056         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
2057         formatting.
2058         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2059         as unused and give dummy FP_RND_NEAREST initializer.
2060         (__Qp_handle_exceptions): Update declaration.
2061         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
2062         formatting.
2063
2064 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
2065
2066         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
2067         the temporary FPU control word.
2068         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2069         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
2070         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
2071         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2072         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
2073         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
2074         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
2075         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2076         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
2077         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
2078         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2079
2080 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2081
2082         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
2083         fields.
2084
2085 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
2086
2087         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
2088         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
2089         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
2090         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
2091         Likewise.
2092         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
2093         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
2094         Likewise.
2095
2096 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
2097
2098         * po/h.po: Update from translation team.
2099
2100 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
2101
2102         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
2103
2104         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
2105         handling of denormals.
2106         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
2107         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
2108         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
2109         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
2110         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2111         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
2112         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
2113         Likewise.
2114
2115 2012-05-26  Marek Polacek  <polacek@redhat.com>
2116
2117         [BZ #14152]
2118         * math/libm-test.inc (fma_test): Don't always expect underflow
2119         exception.
2120
2121 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2122
2123         [BZ #12416]
2124         * elf/tst-execstack.c: Include stackinfo.h.
2125         (do_test): Adjust test case to ensure that pthread_getattr_np
2126         behaviour remains the same after marking stack executable.
2127
2128 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
2129
2130         * sysdeps/unix/sysv/linux/kernel-features.h
2131         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
2132         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
2133         kernel-features.h.
2134         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2135         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2136         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
2137         kernel-features.h.
2138         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2139         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2140
2141 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2142
2143         * configure.in: Define the default includes to being none.
2144         * configure: Regenerated.
2145
2146 2012-05-25  Roland McGrath  <roland@hack.frob.com>
2147
2148         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
2149         * sysdeps/x86_64/setjmp.S: Likewise.
2150         * sysdeps/i386/bsd-setjmp.S: Likewise.
2151         * sysdeps/i386/bsd-_setjmp.S: Likewise.
2152         * sysdeps/i386/setjmp.S: Likewise.
2153         * sysdeps/i386/__longjmp.S: Likewise.
2154         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
2155         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2156
2157         * include/stap-probe.h: New file.
2158         * configure.in: Handle --enable-systemtap.
2159         * configure: Regenerated.
2160         * config.h.in (USE_STAP_PROBE): New #undef.
2161         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
2162         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
2163         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
2164
2165 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
2166
2167         [BZ #13717]
2168         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2169         to 2.4.0 where earlier.
2170         * sysdeps/unix/sysv/linux/configure: Regenerated.
2171         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
2172         <kernel-features.h>.
2173         [__ASSUME_32BITUIDS]: Make code unconditional.
2174         [!__ASSUME_32BITUIDS]: Remove conditional code.
2175         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
2176         <kernel-features.h>.
2177         [__ASSUME_32BITUIDS]: Make code unconditional.
2178         [!__ASSUME_32BITUIDS]: Remove conditional code.
2179         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
2180         [__ASSUME_32BITUIDS]: Make code unconditional.
2181         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
2182         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
2183         <kernel-features.h>.
2184         [__ASSUME_32BITUIDS]: Make code unconditional.
2185         [!__ASSUME_32BITUIDS]: Remove conditional code.
2186         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
2187         <kernel-features.h>.
2188         [__ASSUME_32BITUIDS]: Make code unconditional.
2189         [!__ASSUME_32BITUIDS]: Remove conditional code.
2190         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
2191         <kernel-features.h>.
2192         [__ASSUME_32BITUIDS]: Make code unconditional.
2193         [!__ASSUME_32BITUIDS]: Remove conditional code.
2194         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
2195         <kernel-features.h>.
2196         [__ASSUME_32BITUIDS]: Make code unconditional.
2197         [!__ASSUME_32BITUIDS]: Remove conditional code.
2198         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
2199         <kernel-features.h>.
2200         [__ASSUME_32BITUIDS]: Make code unconditional.
2201         [!__ASSUME_32BITUIDS]: Remove conditional code.
2202         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
2203         <kernel-features.h>.
2204         [__ASSUME_32BITUIDS]: Make code unconditional.
2205         [!__ASSUME_32BITUIDS]: Remove conditional code.
2206         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
2207         <kernel-features.h>.
2208         [__ASSUME_32BITUIDS]: Make code unconditional.
2209         [!__ASSUME_32BITUIDS]: Remove conditional code.
2210         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
2211         <kernel-features.h>.
2212         [__ASSUME_32BITUIDS]: Make code unconditional.
2213         [!__ASSUME_32BITUIDS]: Remove conditional code.
2214         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
2215         <kernel-features.h>.
2216         [__ASSUME_32BITUIDS]: Make code unconditional.
2217         [!__ASSUME_32BITUIDS]: Remove conditional code.
2218         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
2219         <kernel-features.h>.
2220         [__ASSUME_32BITUIDS]: Make code unconditional.
2221         [!__ASSUME_32BITUIDS]: Remove conditional code.
2222         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
2223         <kernel-features.h>.
2224         [__NR_setresgid] (__setresgid): Do not declare.
2225         [__ASSUME_32BITUIDS]: Make code unconditional.
2226         [!__ASSUME_32BITUIDS]: Remove conditional code.
2227         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
2228         <kernel-features.h>.
2229         [__NR_setresuid] (__setresuid): Do not declare.
2230         [__ASSUME_32BITUIDS]: Make code unconditional.
2231         [!__ASSUME_32BITUIDS]: Remove conditional code.
2232         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
2233         <kernel-features.h>.
2234         [__ASSUME_32BITUIDS]: Make code unconditional.
2235         [!__ASSUME_32BITUIDS]: Remove conditional code.
2236         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
2237         <kernel-features.h>.
2238         [__ASSUME_32BITUIDS]: Make code unconditional.
2239         [!__ASSUME_32BITUIDS]: Remove conditional code.
2240         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
2241         <kernel-features.h>.
2242         [__ASSUME_32BITUIDS]: Make code unconditional.
2243         [!__ASSUME_32BITUIDS]: Remove conditional code.
2244         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
2245         <kernel-features.h>.
2246         [__ASSUME_32BITUIDS]: Make code unconditional.
2247         [!__ASSUME_32BITUIDS]: Remove conditional code.
2248         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
2249         <kernel-features.h>.
2250         [__ASSUME_32BITUIDS]: Make code unconditional.
2251         [!__ASSUME_32BITUIDS]: Remove conditional code.
2252         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
2253         <kernel-features.h>.
2254         [__ASSUME_32BITUIDS]: Make code unconditional.
2255         [!__ASSUME_32BITUIDS]: Remove conditional code.
2256         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
2257         <kernel-features.h>.
2258         [__ASSUME_32BITUIDS]: Make code unconditional.
2259         [!__ASSUME_32BITUIDS]: Remove conditional code.
2260         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
2261         <kernel-features.h>.
2262         [__ASSUME_32BITUIDS]: Make code unconditional.
2263         [!__ASSUME_32BITUIDS]: Remove conditional code.
2264         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
2265         <kernel-features.h>.
2266         [__ASSUME_32BITUIDS]: Make code unconditional.
2267         [!__ASSUME_32BITUIDS]: Remove conditional code.
2268         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
2269         <kernel-features.h>.
2270         [__ASSUME_32BITUIDS]: Make code unconditional.
2271         [!__ASSUME_32BITUIDS]: Remove conditional code.
2272         * sysdeps/unix/sysv/linux/kernel-features.h
2273         (__ASSUME_SETRESUID_SYSCALL): Remove.
2274         (__ASSUME_SETRESGID_SYSCALL): Likewise.
2275         (__ASSUME_32BITUIDS): Likewise.
2276         (__ASSUME_LDT_WORKS): Likewise.
2277         (__ASSUME_O_DIRECTORY): Likewise.
2278         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
2279         architecture but not kernel version.
2280         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
2281         (__ASSUME_MMAP2_SYSCALL): Likewise.
2282         (__ASSUME_STAT64_SYSCALL): Likewise.
2283         (__ASSUME_IPC64): Likewise.
2284         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
2285         <kernel-features.h>.
2286         [__ASSUME_32BITUIDS]: Make code unconditional.
2287         [!__ASSUME_32BITUIDS]: Remove conditional code.
2288         * sysdeps/unix/sysv/linux/opendir.c: Do not include
2289         <kernel-features.h>.
2290         [__ASSUME_O_DIRECTORY]: Make code unconditional.
2291         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
2292         132096]: Remove conditional code.
2293         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
2294         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
2295         <kernel-features.h>.
2296         [__ASSUME_32BITUIDS]: Make code unconditional.
2297         [!__ASSUME_32BITUIDS]: Remove conditional code.
2298         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
2299         <kernel-features.h>.
2300         [__ASSUME_32BITUIDS]: Make code unconditional.
2301         [!__ASSUME_32BITUIDS]: Remove conditional code.
2302         * sysdeps/unix/sysv/linux/setegid.c: Do not include
2303         <kernel-features.h>.
2304         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
2305         unconditional.
2306         (__setresgid): Do not declare.
2307         [__ASSUME_32BITUIDS]: Make code unconditional.
2308         [!__ASSUME_32BITUIDS]: Remove conditional code.
2309         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
2310         <kernel-features.h>.
2311         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
2312         unconditional.
2313         (__setresuid): Do not declare.
2314         [__ASSUME_32BITUIDS]: Make code unconditional.
2315         [!__ASSUME_32BITUIDS]: Remove conditional code.
2316         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
2317         <kernel-features.h>.
2318         [__ASSUME_32BITUIDS]: Make code unconditional.
2319         [!__ASSUME_32BITUIDS]: Remove conditional code.
2320         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
2321         <kernel-features.h>.
2322         [__ASSUME_32BITUIDS]: Make code unconditional.
2323         [!__ASSUME_32BITUIDS]: Remove conditional code.
2324
2325 2012-05-25  Richard Henderson  <rth@twiddle.net>
2326
2327         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
2328         dl_hwcap to ifunc resolver.
2329         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
2330         elf_ifunc_invoke.
2331         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
2332         dl_hwcap to ifunc resolver.
2333         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
2334
2335 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2336
2337         [BZ #14153]
2338         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
2339         for |x| <= 2**-26, not 2**-57.
2340         * math/libm-test.inc (acos_test): Do not allow spurious underflow
2341         exception.
2342
2343 2012-05-24  Jeff Law  <law@redhat.com>
2344
2345         * stdio-common/Makefile (tests): Add bug25.
2346         * stdio-common/bug25.c: New test.
2347
2348 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2349
2350         [BZ #13576]
2351         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
2352         multiple of MALLOC_ALIGNMENT in size.
2353         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
2354
2355 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2356
2357         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
2358         Require >= 256.
2359         (FILENAME_MAX): Use macro-int-constant.
2360         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
2361         (_IOFBF): Use macro-int-constant.
2362         (_IOLBF): Likewise.
2363         (_IONBF): Likewise.
2364         (SEEK_CUR): Likewise.
2365         (SEEK_END): Likewise.
2366         (SEEK_SET): Likewise.
2367         (TMP_MAX): Likewise.
2368         (EOF): Use macro-int-constant.  Require < 0.
2369         (NULL): Use macro-constant.  Require == 0.
2370         (stdin): Require type to be FILE *.
2371         (stdout): Likewise.
2372         (stderr): Likewise.
2373         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
2374         macro-int-constant.
2375         (EXIT_SUCCESS): Likewise.
2376         (NULL): Use macro-constant.  Require == 0.
2377         (RAND_MAX): Use macro-int-constant.
2378         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
2379         [C99-based standards] (strtof): Require function.
2380         [C99-based standards] (strtold): Likewise.
2381         [C99-based standards] (strtoll): Likewise.
2382         [C99-based standards] (strtoull): Likewise.
2383         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2384         [ISO || ISO99 || ISO11] (limits.h): Likewise.
2385         [ISO || ISO99 || ISO11] (math.h): Likewise.
2386         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
2387         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2388         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2389
2390 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
2391
2392         [BZ #14132]
2393         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
2394         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
2395         * intl/dgettext.c (DCGETTEXT): Likewise.
2396         * intl/gettext.c (DCGETTEXT): Likewise.
2397         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
2398         * posix/regex_internal.h (gettext): Likewise.
2399         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
2400         Remove declaration.
2401         * include/argz.h (__argz_count_internal)
2402         (__argz_stringify_internal): Remove declaration.
2403         (__argz_count, __argz_stringify): Declare hidden proto.
2404         * intl/dcgettext.c: Remove use of INTDEF.
2405         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
2406         * string/argz-stringify.c: Likewise.
2407         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2408         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2409         Declare hidden proto.
2410         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2411         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2412         Declare hidden proto.
2413         * include/stdio.h (__asprintf_internal): Don't declare.
2414         (__asprintf): Don't define as macro.  Declare hidden proto.
2415         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
2416         (__fsetlocking): Declare hidden proto.
2417         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
2418         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
2419         hidden proto.
2420         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
2421         (_IO_setlinebuf): Remove use of INTUSE.
2422         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
2423         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
2424         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
2425         Remove declaration.
2426         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
2427         (_IO_do_flush): Remove use of INTUSE.
2428         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
2429         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
2430         (_IO_adjust_column, _IO_least_wmarker)
2431         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
2432         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
2433         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
2434         (_IO_default_doallocate, _IO_wdefault_doallocate)
2435         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
2436         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
2437         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
2438         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
2439         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
2440         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
2441         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
2442         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
2443         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
2444         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
2445         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
2446         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
2447         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
2448         proto.
2449         (_IO_flush_all_internal, _IO_adjust_column_internal)
2450         (_IO_default_uflow_internal, _IO_default_finish_internal)
2451         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
2452         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
2453         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
2454         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
2455         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
2456         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
2457         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
2458         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
2459         (_IO_file_close_internal, _IO_file_close_it_internal)
2460         (_IO_file_underflow_internal, _IO_file_overflow_internal)
2461         (_IO_file_init_internal, _IO_file_attach_internal)
2462         (_IO_file_fopen_internal, _IO_file_read_internal)
2463         (_IO_file_sync_internal, _IO_file_seek_internal)
2464         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
2465         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
2466         (_IO_str_underflow_internal, _IO_str_overflow_internal)
2467         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
2468         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
2469         (_IO_list_all_internal, _IO_link_in_internal)
2470         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
2471         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
2472         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
2473         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
2474         (_IO_do_write_internal, _IO_padn_internal)
2475         (_IO_getline_info_internal, _IO_getline_internal)
2476         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
2477         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
2478         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
2479         (_IO_vfscanf_internal, _IO_vfprintf_internal)
2480         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
2481         (_IO_init_internal, _IO_un_link_internal): Don't declare.
2482         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
2483         with libc_hidden_ver, remove use of INTUSE.
2484         * libio/genops.c: Likewise.
2485         * libio/freopen.c: Likewise.
2486         * libio/freopen64.c: Likewise.
2487         * libio/iofclose.c: Likewise.
2488         * libio/iofdopen.c: Likewise.
2489         * libio/iofflush.c: Likewise.
2490         * libio/iofflush_u.c: Likewise.
2491         * libio/iofgets.c: Likewise.
2492         * libio/iofgets_u.c: Likewise.
2493         * libio/iofopen.c: Likewise.
2494         * libio/iofopncook.c: Likewise.
2495         * libio/iofread.c: Likewise.
2496         * libio/iofread_u.c: Likewise.
2497         * libio/ioftell.c: Likewise.
2498         * libio/iofwrite.c: Likewise.
2499         * libio/iogetline.c: Likewise.
2500         * libio/iogets.c: Likewise.
2501         * libio/iogetwline.c: Likewise.
2502         * libio/iopadn.c: Likewise.
2503         * libio/iopopen.c: Likewise.
2504         * libio/ioseekoff.c: Likewise.
2505         * libio/ioseekpos.c: Likewise.
2506         * libio/iosetbuffer.c: Likewise.
2507         * libio/iosetvbuf.c: Likewise.
2508         * libio/ioungetc.c: Likewise.
2509         * libio/ioungetwc.c: Likewise.
2510         * libio/iovdprintf.c: Likewise.
2511         * libio/iovsprintf.c: Likewise.
2512         * libio/iovsscanf.c: Likewise.
2513         * libio/memstream.c: Likewise.
2514         * libio/obprintf.c: Likewise.
2515         * libio/oldfileops.c: Likewise.
2516         * libio/oldiofclose.c: Likewise.
2517         * libio/oldiofdopen.c: Likewise.
2518         * libio/oldiofopen.c: Likewise.
2519         * libio/oldiopopen.c: Likewise.
2520         * libio/oldstdfiles.c: Likewise.
2521         * libio/putc.c: Likewise.
2522         * libio/setbuf.c: Likewise.
2523         * libio/setlinebuf.c: Likewise.
2524         * libio/stdfiles.c: Likewise.
2525         * libio/strops.c: Likewise.
2526         * libio/vasprintf.c: Likewise.
2527         * libio/vscanf.c: Likewise.
2528         * libio/vsnprintf.c: Likewise.
2529         * libio/vswprintf.c: Likewise.
2530         * libio/wfiledoalloc.c: Likewise.
2531         * libio/wfileops.c: Likewise.
2532         * libio/wgenops.c: Likewise.
2533         * libio/wmemstream.c: Likewise.
2534         * libio/wstrops.c: Likewise.
2535         * libio/__fpurge.c: Likewise.
2536         * libio/__fsetlocking.c: Likewise.
2537         * assert/assert.c: Likewise.
2538         * debug/fgets_chk.c: Likewise.
2539         * debug/fgets_u_chk.c: Likewise.
2540         * debug/fread_chk.c: Likewise.
2541         * debug/fread_u_chk.c: Likewise.
2542         * debug/gets_chk.c: Likewise.
2543         * debug/obprintf_chk.c: Likewise.
2544         * debug/vasprintf_chk.c: Likewise.
2545         * debug/vdprintf_chk.c: Likewise.
2546         * debug/vsnprintf_chk.c: Likewise.
2547         * debug/vsprintf_chk.c: Likewise.
2548         * malloc/mtrace.c: Likewise.
2549         * misc/error.c: Likewise.
2550         * misc/syslog.c: Likewise.
2551         * stdio-common/asprintf.c: Likewise.
2552         * stdio-common/fxprintf.c: Likewise.
2553         * stdio-common/getw.c: Likewise.
2554         * stdio-common/isoc99_fscanf.c: Likewise.
2555         * stdio-common/isoc99_scanf.c: Likewise.
2556         * stdio-common/isoc99_vfscanf.c: Likewise.
2557         * stdio-common/isoc99_vscanf.c: Likewise.
2558         * stdio-common/isoc99_vsscanf.c: Likewise.
2559         * stdio-common/printf-prs.c: Likewise.
2560         * stdio-common/printf_fp.c: Likewise.
2561         * stdio-common/printf_fphex.c: Likewise.
2562         * stdio-common/printf_size.c: Likewise.
2563         * stdio-common/putw.c: Likewise.
2564         * stdio-common/scanf.c: Likewise.
2565         * stdio-common/sprintf.c: Likewise.
2566         * stdio-common/tmpfile.c: Likewise.
2567         * stdio-common/vfprintf.c: Likewise.
2568         * stdio-common/vfscanf.c: Likewise.
2569         * stdlib/strfmon_l.c: Likewise.
2570         * sunrpc/openchild.c: Likewise.
2571         * sunrpc/xdr_stdio.c: Likewise.
2572         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
2573         * sysdeps/mach/hurd/tmpfile.c: Likewise.
2574
2575 2012-05-24  Roland McGrath  <roland@hack.frob.com>
2576
2577         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
2578
2579         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
2580         in the third column, to generate for the shared library an IFUNC
2581         that uses _dl_vdso_vsym.
2582         * Makerules (COMPILE.c, compile-stdin.c): New variables.
2583         * Makeconfig (object-suffixes-noshared): New variable.
2584
2585         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
2586         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
2587         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
2588         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
2589
2590         [BZ #14132]
2591         * include/sys/time.h (__gettimeofday): Remove macro.
2592         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
2593         * time/gettimeofday.c (__gettimeofday): Remove #undef.
2594         Remove INTDEF.
2595         (__gettimeofday): Add libc_hidden_def.
2596         (gettimeofday): Add libc_hidden_weak.
2597         * sysdeps/mach/gettimeofday.c: Likewise.
2598         * sysdeps/posix/gettimeofday.c: Likewise.
2599         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
2600         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
2601         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
2602         (__gettimeofday_internal): Remove strong_alias.
2603         (__gettimeofday): Add libc_hidden_def.
2604         (gettimeofday): Add libc_hidden_weak.
2605         * sysdeps/unix/syscalls.list (gettimeofday):
2606         Remove __gettimeofday_internal alias.
2607
2608 2012-05-24  Daniel Jacobowitz  <drow@false.org>
2609             H.J. Lu  <hongjiu.lu@intel.com>
2610
2611         [BZ #12495]
2612         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
2613         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
2614         (largebin_index_32_big): New.
2615         (largebin_index): Use it for 16-byte alignment.
2616         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
2617         correction with front_misalign.
2618
2619 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2620
2621         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
2622         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2623         Likewise.
2624         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
2625         Likewise.
2626         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
2627         Likewise.
2628         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
2629         Likewise.
2630         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
2631         Likewise.
2632         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
2633         Likewise.
2634         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
2635         Likewise.
2636         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
2637         Likewise.
2638         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
2639         Likewise.
2640         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
2641         Likewise.
2642         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2643         Likewise.
2644         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
2645         Likewise.
2646
2647         * scripts/data/c++-types-x32-linux-gnu.data: New file.
2648         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
2649
2650 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2651
2652         [BZ #10846]
2653         [BZ #14036]
2654         * math/libm-test.inc (exp_test): Add test from bug 14036.
2655         (pow_test): Add test from bug 10846.
2656
2657         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
2658         and other flags.
2659         (special_function): Do not include flags in test name.
2660         (parse_args): Likewise.
2661         * sysdeps/i386/fpu/libm-test-ulps: Update.
2662         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2663         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2664         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
2665         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2666
2667         * math/gen-libm-test.pl (%beautify): Add entries for underflow
2668         exceptions.
2669         * math/libm-test.inc ("Philosophy"): Update comment about
2670         exception testing.
2671         (UNDERFLOW_EXCEPTION): New macro.
2672         (UNDERFLOW_EXCEPTION_OK): Likewise.
2673         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
2674         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
2675         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
2676         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
2677         (INVALID_EXCEPTION_OK): Update value.
2678         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
2679         (OVERFLOW_EXCEPTION_OK): Likewise.
2680         (IGNORE_ZERO_INF_SIGN): Likewise.
2681         (test_exceptions): Handle underflow exceptions.
2682         (acos_test): Update for underflow exception expectations.
2683         (cexp_test): Likewise.
2684         (clog_test): Likewise.
2685         (clog10_test): Likewise.
2686         (csqrt_test): Likewise.
2687         (ctan_test): Likewise.
2688         (ctanh_test): Likewise.
2689         (exp_test): Likewise.
2690         (exp10_test): Likewise.
2691         (exp2_test): Likewise.
2692         (expm1_test): Likewise.
2693         (fma_test): Likewise.
2694         (j0_test): Likewise.
2695         (jn_test): Likewise.
2696         (nexttoward_test): Likewise.
2697         (pow_test): Likewise.
2698         (scalbn_test): Likewise.
2699         (scalbln_test): Likewise.
2700         (tan_test): Likewise.
2701         (y1_test): Likewise.
2702         * sysdeps/i386/fpu/libm-test-ulps: Update.
2703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2704
2705 2012-05-23  David S. Miller  <davem@davemloft.net>
2706
2707         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2708         (__libc_sigaction): Remove unused local variables.
2709
2710 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2711
2712         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
2713
2714 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2715
2716         mktime: avoid signed integer overflow
2717         * time/mktime.c (__mktime_internal): Do not mishandle the case
2718         where diff == INT_MIN.
2719
2720         mktime: simplify computation of average
2721         * time/mktime.c (ranged_convert): Use new time_t_avg function
2722         instead of rolling our own (probably-slower) code.
2723
2724         mktime: do not assume signed right shift propagates sign bit
2725         * time/mktime.c (isdst_differ): New static function.
2726         (__mktime_internal): No need to normalize tm_isdst now.
2727         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
2728         tm_isdst values.
2729
2730         mktime: merge another wrapv change from gnulib
2731         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
2732         from some compilers.
2733
2734         mktime: remove incorrect attempt at unusual arithmetics
2735         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
2736         The code didn't really work on such machines anyway.
2737         (TYPE_MINIMUM): Assume two's complement.
2738         (twos_complement_arithmetic): Verify that long_int and time_t
2739         are two's complement (or unsigned, in the latter case).
2740
2741         mktime: check signed shifts on long_int and time_t, too
2742         * time/mktime.c (SHR): Check that shifts work as desired
2743         on the types long_int and time_t too, as SHR is used on
2744         such types.
2745
2746         mktime: do not assume 'long' is wide enough
2747         * time/mktime.c (verify): Move decl up.
2748         (long_int): New type.
2749         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
2750         to remove assumption in the code that 'long' is wide enough to
2751         store year values.  This assumption is not true on x32 and on
2752         some non-glibc platforms.
2753
2754         mktime: merge wrapv change from gnulib
2755         * time/mktime.c (WRAPV): New macro.
2756         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
2757         (guess_time_tm, __mktime_internal): Do not assume that signed
2758         integer overflow wraps around; modern compilers generate code
2759         where this assumption is no longer valid.
2760
2761 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2762
2763         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2764         Replace "jmp L(pseudo_end)" with "ret".
2765         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2766         Likewise.
2767
2768 2012-05-23  Andreas Jaeger  <aj@suse.de>
2769
2770         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
2771         * sysdeps/unix/sysv/linux/poll.c: Remove file.
2772
2773 2012-05-23  Andreas Jaeger  <aj@suse.de>
2774             Maximilian Attems  <max@stro.at>
2775
2776         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
2777         New macros.
2778
2779 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2780
2781         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
2782         code so that pseudo_end is just ret and the stack pointer is
2783         correct also for static library in error case.
2784
2785 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
2786
2787         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
2788         move to syscalls.list.
2789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
2790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
2791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
2792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
2793
2794         * manual/install.texi (Running make install): Do not mention Linux
2795         kernel version for which pt_chown is not needed.
2796         (Linux): Do not mention problems with nscd with 2.0 kernels.
2797         * INSTALL: Regenerated.
2798
2799 2012-05-23  Andreas Jaeger  <aj@suse.de>
2800
2801         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
2802         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
2803         macro.
2804         * sysdeps/unix/sysv/linux/s390/bits/mman.h
2805         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2806         * sysdeps/unix/sysv/linux/sh/bits/mman.h
2807         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2808         * sysdeps/unix/sysv/linux/i386/bits/mman.h
2809         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2810         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
2811         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2812         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
2813         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2814         * sysdeps/unix/sysv/linux/bits/in.h
2815         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
2816
2817 2012-05-22  Roland McGrath  <roland@hack.frob.com>
2818
2819         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
2820         (PREPARE_VERSION): Just use assert instead, it will be elided
2821         under [NDEBUG] anyway.
2822
2823 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2824
2825         * sysdeps/unix/sysv/linux/Makefile: Include
2826         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
2827         (sysdep_routines): Remove sysctl.
2828         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
2829         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
2830         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
2831         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
2832         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
2833
2834 2012-05-22  Andreas Jaeger  <aj@suse.de>
2835
2836         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
2837         that pseudo_end is just ret and the stack pointer is correct also
2838         for static library in error case.
2839
2840 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
2841
2842         [BZ #14122]
2843         * nss/nsswitch.c (defconfig_entries): New variable.
2844         (__nss_database_lookup): Don't leak defconfig entries.
2845         (nss_parse_service_list): Don't leak on error paths.
2846         (free_database_entries): New function.
2847         (free_defconfig): New function.
2848         (free_mem): Move common code to free_database_entries.
2849
2850 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2851
2852         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
2853         Add arch_prctl.
2854         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
2855
2856         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
2857         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
2858         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
2859         New macro.
2860         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
2861         (INTERNAL_SYSCALL_TYPES): Likewise.
2862         (LOAD_ARGS_TYPES_[1-6]): Likewise.
2863         (LOAD_REGS_TYPES_[1-6]): Likewise.
2864         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
2865         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
2866
2867 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2868
2869         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
2870         copysignl for GLIBC_2_0.
2871         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
2872         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
2873         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
2874         logbl for GLIBC_2_0.
2875         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
2876         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
2877
2878 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2879
2880         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
2881         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2882
2883         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2884         Use "neg %eax".
2885
2886         * time/mktime.c: Update copyright years.
2887
2888 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2889
2890         mktime: merge comment-quoting-style change from gnulib
2891         * time/mktime.c: Quote 'like this' in comments.
2892         The GNU coding standards suggest that we no longer quote `like this',
2893         as "`" and "'" are typically rendered asymmetrically nowadays.
2894         The typical gnulib style is to quote 'like this' when quoting
2895         code, and "like this" when quoting English.
2896
2897         * time/mktime.c (compile-command): Add "-I.".
2898
2899         mktime: merge mktime-internal.h change from gnulib
2900         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
2901
2902         mktime: merge time_r change from gnulib
2903         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
2904
2905         mktime: merge DEBUG change from gnulib
2906         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
2907         case system <time.h> has a #define.
2908
2909         mktime: merge <sys/types.h> change from gnulib
2910         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
2911         since <time.t> is now guaranteed to define time_t.
2912
2913         mktime: merge HAVE_CONFIG_H change from gnulib
2914         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
2915
2916 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2917
2918         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
2919         Use "neg %eax".
2920
2921         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
2922         __rlim_t cast.
2923         (struct rusage): Use anonymous union to pad each field to
2924         __syscall_slong_t.
2925
2926 2012-05-21  David S. Miller  <davem@davemloft.net>
2927
2928         * Makefules (o-iterator): Remove .s cases.
2929         (compile-command.s): Delete.
2930         (COMPILE.s): Delete.
2931         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
2932
2933 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
2934
2935         * configure.in (libc_cv_predef_stack_protector): Only consider
2936         "foobar" and "__stack_chk_fail" lines in libc_undefs.
2937         * configure: Regenerated.
2938
2939 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2940
2941         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
2942         New macro.  Use R*LP on int and pointer.
2943         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
2944         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
2945         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
2946         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
2947
2948         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
2949         [__WORDSIZE_TIME64_COMPAT32] instead of
2950         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
2951         (struct utmp): Likewise.
2952         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
2953         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
2954         Renamed to ...
2955         (__WORDSIZE_TIME64_COMPAT32): This.
2956         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
2957         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
2958         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
2959         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
2960         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
2961         (__WORDSIZE_TIME64_COMPAT32): New macro.
2962
2963 2012-05-21  Andreas Jaeger  <aj@suse.de>
2964
2965         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
2966         only if [SHARED]. Add prototype for __wcschr_ia32.
2967
2968 2012-05-21  Roland McGrath  <roland@hack.frob.com>
2969
2970         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
2971         of %rbp unmolested in the jmp_buf while mangling the low bits.
2972         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
2973         unmolested high bits of %rbp while demangling the low bits.
2974         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
2975
2976 2012-05-21  Andreas Jaeger  <aj@suse.de>
2977
2978         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
2979         * sunrpc/svc_simple.c: Use it for registerrpc.
2980         * sunrpc/xcrypt.c: Use it for passwd2des.
2981
2982         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
2983
2984 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2985
2986         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
2987         Don't define if [__SYSCALL_WORDSIZE != 32].
2988         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
2989         New macro.
2990
2991 2012-05-21  Bruno Haible  <bruno@clisp.org>
2992             Andreas Jaeger  <aj@suse.de>
2993
2994         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
2995         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
2996         inptr and inend for must_buffer_ch.
2997         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
2998         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
2999         * stdio-common/Makefile (tests): Remove bug15.
3000         (bug15-ENV): Remove macro.
3001         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
3002         anymore.
3003
3004 2012-05-19  Andreas Jaeger  <aj@suse.de>
3005             Roland McGrath  <roland@hack.frob.com>
3006
3007         * manual/contrib.texi: Completely rewritten. It contains now an
3008         alphabetical list of contributors and their contributions.
3009
3010 2012-05-21  Richard Henderson  <rth@twiddle.net>
3011
3012         * misc/getauxval.c (__getauxval): Use unsigned long int.
3013         * misc/sys/auxv.h: Include <sys/cdefs.h>.
3014         (getauxval): Use unsigned long int.
3015
3016 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3017
3018         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3019
3020 2012-05-21  Roland McGrath  <roland@hack.frob.com>
3021
3022         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
3023         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
3024         __alignof__ (long double).
3025
3026 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3027
3028         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3029
3030 2012-05-20  Richard Henderson  <rth@twiddle.net>
3031
3032         * misc/getauxval.c: New file.
3033         * misc/sys/auxv.h: New file.
3034         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
3035         (routines): Add getauxval.
3036         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
3037         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
3038         * elf/dl-sysdep.c (_dl_auxv): Remove.
3039         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
3040         * elf/dl-support.c (_dl_auxv): New variable.
3041         (_dl_aux_init): Initialize it.
3042         * manual/startup.texi (Auxiliary Vector): New node.
3043         * sysdeps/generic/bits/hwcap.h: New file.
3044         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
3045         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
3046         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
3047         * sysdeps/sparc/sysdep.h: ... here.  Include it.
3048         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
3049         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
3050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3051         Update.
3052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
3053         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
3054         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
3055         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
3056         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3057         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3058         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
3059         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
3060
3061 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3062
3063         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3064
3065 2012-05-19  David S. Miller  <davem@davemloft.net>
3066
3067         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3068
3069 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
3070
3071         [BZ #14123]
3072         * math/s_ccosh.c: Include <float.h>
3073         (__ccosh): Avoid internal overflow calculating sinh and cosh
3074         values before multiplying by sin and cos values.
3075         * math/s_ccoshf.c: Likewise.
3076         * math/s_ccoshl.c: Likewise.
3077         * math/s_csin.c: Likewise.
3078         * math/s_csinf.c: Likewise.
3079         * math/s_csinl.c: Likewise.
3080         * math/s_csinh.c: Likewise.
3081         * math/s_csinhf.c: Likewise.
3082         * math/s_csinhl.c: Likewise.
3083         * math/libm-test.inc (ccos_test): Add more tests.
3084         (ccosh_test): Likewise.
3085         (csin_test): Likewise.
3086         (csinh_test): Likewise.
3087         * sysdeps/i386/fpu/libm-test-ulps: Update.
3088         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3089
3090 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
3091
3092         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
3093         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
3094
3095         * sysdeps/x86_64/x32/_itoa.h: Add comment.
3096
3097 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
3098
3099         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
3100         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
3101         * sysdeps/powerpc/soft-fp/Versions: Likewise.
3102         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
3103         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
3104         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
3105         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
3106         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
3107         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
3108         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
3109         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
3110         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
3111         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
3112         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
3113         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
3114         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
3115         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
3116         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
3117         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
3118         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
3119         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
3120         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
3121         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
3122         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
3123         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
3124         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
3125         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
3126         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
3127         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
3128         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
3129         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
3130
3131 2012-05-18  Andreas Jaeger  <aj@suse.de>
3132
3133         * csu/.gitignore: Delete.
3134
3135 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3136
3137         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
3138         (timex): Use __syscall_slong_t.
3139
3140 2012-05-18  Andreas Jaeger  <aj@suse.de>
3141             Carlos O'Donell  <carlos_odonell@mentor.com>
3142
3143         * manual/install.texi (Configuring and compiling): Update
3144         description about files modified in the source directory.
3145         * INSTALL: Regenerated.
3146
3147 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3148
3149         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
3150         value.  Use "or" to set return value to -1.
3151         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
3152         negate return value.
3153
3154 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3155
3156         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
3157         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
3158         failure if the compiler has Graphite support disabled.
3159         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
3160         Likewise.
3161         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
3162         CFLAGS-memmove.c): Likewise.
3163         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
3164         Likewise.
3165
3166 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3167
3168         * sysdeps/x86_64/x32/_itoa.h: New file.
3169
3170         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
3171         getdents system call only if kernel and user dirents have the
3172         same d_ino and d_off.
3173
3174         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
3175         LLONG_MAX != LONG_MAX.
3176         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3177         (_fitoa_word): Likewise.
3178
3179         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
3180         years.
3181         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
3182         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
3183         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
3184
3185         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
3186         include <bits/wordsize.h>.  Check __x86_64__ instead of
3187         __WORDSIZE.
3188         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
3189         if __x86_64__ is defined.  Use anonymous union on fpstate.
3190
3191         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
3192         anonymous union.
3193
3194 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
3195
3196         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
3197         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
3198         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
3199         Refer to _rtld_local_ro instead of _rtld_global_ro.
3200         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
3201         Likewise.
3202         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
3203         Likewise.
3204         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
3205         Likewise.
3206         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
3207         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
3208         of _rtld_global, and rtld_progname instead of _dl_argv[0].
3209
3210         * sysdeps/powerpc/powerpc32/dl-machine.c
3211         (__elf_machine_runtime_setup) [PROF]: Don't reference
3212         _dl_prof_resolve.
3213
3214 2012-05-18  Andreas Jaeger  <aj@suse.de>
3215
3216         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
3217         function only available for GCCs before 3.4 since GCC 3.4
3218         introduced a builtin.
3219         (lrint): Likewise.
3220         (llrintf): Likewise.
3221         (llrint): Likewise.
3222         (fmaxf): Likewise.
3223         (fmax): Likewise.
3224         (fminf): Likewise.
3225         (fmin): Likewise.
3226         (rint): Likewise.
3227         (rintf): Likewise.
3228         (nearbyint): Likewise.
3229         (nearbyintf): Likewise.
3230         (ceil): Likewise.
3231         (ceilf): Likewise.
3232         (floor): Likewise.
3233         (floorf): Likewise.
3234
3235 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3236
3237         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
3238         on both fields and cast pointer to __syscall_ulong_t.
3239
3240         * bits/types.h (__fsword_t): New type.
3241         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
3242         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
3243         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3244         (__FSWORD_T_TYPE): Likewise.
3245         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3246         (__FSWORD_T_TYPE): Likewise.
3247         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3248         (__FSWORD_T_TYPE): Likewise.
3249         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
3250         (__FSWORD_T_TYPE): Likewise.
3251         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
3252         __SWORD_TYPE with __fsword_t.
3253         (statfs64): Likewise.
3254
3255 2012-05-17  David S. Miller  <davem@davemloft.net>
3256
3257         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
3258
3259 2012-05-17  Andreas Jaeger  <aj@suse.de>
3260
3261         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
3262         warning.
3263
3264 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3265
3266         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
3267
3268 2012-05-17  Andreas Jaeger  <aj@suse.de>
3269
3270         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
3271         when it is used.
3272
3273 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
3274
3275         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
3276
3277 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3278
3279         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
3280         * sysdeps/x86_64/tst-mallocalign1.c: New file.
3281
3282 2012-05-17  Andreas Jaeger  <aj@suse.de>
3283             Carlos O'Donell  <carlos_odonell@mentor.com>
3284
3285         [BZ #14059]
3286         * sysdeps/x86_64/multiarch/init-arch.h
3287         (bit_YMM_Usable): Rename to...
3288         (bit_AVX_Usable): ... this.
3289         (bit_FMA4_Usable): New macro.
3290         (bit_XMM_state): New macro.
3291         (bit_YMM_state): New macro.
3292         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
3293         [__ASSEMBLER__] (index_AVX_Usable): ... this.
3294         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
3295         (CPUID_OSXSAVE): New macro.
3296         (CPUID_AVX): New macro.
3297         (CPUID_FMA4): New macro.
3298         (index_YMM_Usable): Rename to...
3299         (index_AVX_Usable): ... this.
3300         (HAS_AVX): Use HAS_ARCH_FEATURE.
3301         (HAS_FMA4): Likewise.
3302         (HAS_YMM_USABLE): Remove.
3303         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3304         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
3305         are present.
3306         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
3307         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
3308         * sysdeps/x86_64/multiarch/Makefile: Likewise.
3309         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
3310         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
3311
3312 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
3313
3314         * math/libm-test.c: Support platforms without multiple rounding modes.
3315         * math/bug-nextafter.c: Support platforms without FP exceptions.
3316         * math/bug-nexttoward.c: Likewise.
3317         * math/test-fenv.c: Likewise.
3318         * math/test-misc.c: Likewise.
3319         * stdlib/bug-getcontext.c: Likewise.
3320
3321 2012-05-17  Andreas Jaeger  <aj@suse.de>
3322
3323         * manual/examples/search.c (critter_cmp): Change signature to
3324         avoid warnings.
3325         * manual/string.texi (Collation Functions): Likewise.
3326
3327 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3328
3329         * bits/types.h: Fold copyright years.
3330         * bits/typesizes.h: Likewise.
3331         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
3332         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
3333         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
3334         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
3335         * time/time.h: Likewise.
3336
3337 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
3338
3339         [BZ #208]
3340         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
3341         in instead of returning them.  Return void.
3342         (__libc_mallinfo): Accumulate over all arenas.
3343         (__malloc_stats): Adjust for change in int_mallinfo interface.
3344
3345 2012-05-16  Roland McGrath  <roland@hack.frob.com>
3346
3347         [BZ #10375]
3348         * configure.in (NM): Add AC_CHECK_TOOL for it.
3349         (libc_extra_cflags): New substituted variable.
3350         Check for -fstack-protector being used implicitly.
3351         * configure: Regenerated.
3352         * config.make.in (config-extra-cflags): New variable,
3353         gets @libc_extra_cflags@.
3354         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
3355
3356         [BZ #10375]
3357         * configure.in: Check for _FORTIFY_SOURCE being predefined.
3358         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
3359         * configure: Regenerated.
3360         * config.make.in (CPPUNDEFS): New substituted variable.
3361         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
3362         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
3363         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
3364
3365 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3366
3367         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
3368         (mq_attr): Use __syscall_slong_t.
3369
3370 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3371
3372         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
3373         Check __x86_64__ instead of __WORDSIZE.
3374         (_STAT_VER_LINUX): Likewise.
3375         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
3376         __syscall_ulong_t and __syscall_slong_t.
3377         (stat64): Likewise.
3378
3379 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3380
3381         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
3382
3383 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3384
3385         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
3386
3387 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3388
3389         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
3390         __syscall_ulong_t.
3391
3392         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
3393         include <bits/wordsize.h>.  Check __x86_64__ instead of
3394         __WORDSIZE.
3395         (greg_t): Use "__extension__ long long int" if __x86_64__ is
3396         defined.
3397         (mcontext_t): Replace "unsigned long" with "unsigned long long".
3398
3399         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
3400         include <bits/wordsize.h>.  Check __x86_64__ instead of
3401         __WORDSIZE.
3402         (user_regs_struct): Use "__extension__ unsigned long long"
3403         instead of "unsigned long" if __x86_64__ is defined.
3404         (user): Likewise.  Pad after pointer field if __ILP32__ is
3405         defined.
3406
3407 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
3408
3409         * configure.in (makeinfo): Require version 4.5 or later.  Allow
3410         versions 5 to 9.
3411         * configure: Regenerated.
3412         * manual/install.texi (texinfo): Increase version requirement to
3413         4.5 or later.
3414         * INSTALL: Regenerated.
3415
3416         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
3417
3418 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3419
3420         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
3421
3422         * sysdeps/x86_64/x32/ffs.c: New file.
3423
3424         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
3425         __syscall_ulong_t.
3426         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
3427         defined.  Use __syscall_ulong_t.
3428         (shminfo): Use __syscall_ulong_t.
3429         (shm_info): Likewise.
3430
3431         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
3432         __syscall_ulong_t.
3433
3434         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
3435         <bits/wordsize.h>.
3436         (msgqnum_t): Use __syscall_ulong_t.
3437         (msglen_t): Likewise.
3438         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
3439         __syscall_ulong_t.
3440
3441         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
3442         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3443
3444         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
3445
3446         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
3447         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
3448
3449         * sysvipc/sys/msg.h (msgbuf): Replace long int with
3450         __syscall_slong_t.
3451
3452         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
3453         include <bits/wordsize.h>.  Check __x86_64__ instead of
3454         __WORDSIZE.
3455
3456         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
3457         "unsigned long long int" if __x86_64__ is defined.
3458         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
3459
3460         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
3461         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3462         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
3463
3464         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
3465         <stdint.h>.
3466         (GET_PC): Cast to uintptr_t first.
3467         (GET_FRAME): Likewise.
3468         (GET_STACK): Likewise.
3469
3470         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
3471         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
3472         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
3473         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
3474         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
3475         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
3476         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
3477         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
3478         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
3479         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
3480         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
3481         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
3482         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3483         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
3484         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
3485         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
3486         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
3487         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
3488         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
3489         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
3490         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
3491         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
3492         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
3493         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
3494         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
3495         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
3496         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
3497         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
3498         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
3499
3500 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
3501
3502         * Makerules (+depfiles): Also collect depfiles from .oS in
3503         $(extra-objs).
3504         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
3505         .oS, $(libnldbl-routines)).
3506
3507         * Makerules (native-compile-mkdep-flags): Define.
3508         * sunrpc/Makefile (extra-objs): Add $(addprefix
3509         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
3510         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
3511         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
3512         calling $(make-target-directory).
3513
3514 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3515
3516         * bits/types.h (__snseconds_t): Removed.
3517         * time/time.h (struct timespec): Replace __snseconds_t with
3518         __syscall_slong_t.
3519         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
3520         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
3521         Likewise.
3522         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3523         (__SNSECONDS_T_TYPE): Likewise.
3524         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3525         (__SNSECONDS_T_TYPE): Likewise.
3526         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3527         (__SNSECONDS_T_TYPE): Likewise.
3528
3529 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3530
3531         * sysdeps/mach/hurd/bits/typesizes.h
3532         (__SYSCALL_SLONG_TYPE): New macro.
3533         (__SYSCALL_ULONG_TYPE): Likewise.
3534
3535 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3536
3537         * bits/types.h (__syscall_slong_t): New type.
3538         (__syscall_ulong_t): Likewise.
3539
3540         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
3541         (__SYSCALL_ULONG_TYPE): Likewise.
3542         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3543         (__SYSCALL_SLONG_TYPE): Likewise.
3544         (__SYSCALL_ULONG_TYPE): Likewise.
3545         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3546         (__SYSCALL_SLONG_TYPE): Likewise.
3547         (__SYSCALL_ULONG_TYPE): Likewise.
3548         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3549         (__SYSCALL_SLONG_TYPE): Likewise.
3550         (__SYSCALL_ULONG_TYPE): Likewise.
3551
3552 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3553
3554         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
3555         Add sigaltstack-offsets.sym.
3556         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
3557         <sigaltstack-offsets.h>.
3558         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
3559         longjmp_msg pointer.
3560         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
3561         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
3562         signal stack.
3563         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
3564
3565 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
3566
3567         * elf/stackguard-macros.h: Remove file.
3568         * sysdeps/generic/stackguard-macros.h: New file.
3569         * sysdeps/i386/stackguard-macros.h: Likewise.
3570         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
3571         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
3572         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
3573         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
3574         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
3575         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
3576         * sysdeps/x86_64/stackguard-macros.h: Likewise.
3577         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
3578         <elf/stackguard-macros.h>.
3579
3580         [BZ #14109]
3581         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
3582         __aligned__ in attribute.
3583         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
3584         (gregset_t): Likewise.
3585
3586 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3587
3588         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
3589         * sysdeps/x86_64/64/Implies-after: Here.  New file.
3590         * sysdeps/x86_64/x32/Implies-after: New file.
3591
3592 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3593
3594         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
3595         and access return value for _dl_profile_fixup.  Use R10_LP to
3596         load frame size.
3597
3598 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3599
3600         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
3601
3602 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3603
3604         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
3605         * sysdeps/x86_64/x32/sysdep.h: New file.
3606
3607 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3608
3609         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
3610         * sysdeps/x86_64/setjmp.S: Likewise.
3611
3612 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3613
3614         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
3615         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
3616         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
3617         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
3618         remove unused global constant.
3619
3620 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
3621
3622         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
3623         include of <not-cancel.h>.
3624
3625 2012-05-15  Roland McGrath  <roland@hack.frob.com>
3626
3627         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
3628
3629 2012-05-15  Jeff Law  <law@redhat.com>
3630             Andreas Jaeger  <aj@suse.de>
3631
3632         [BZ #13594]
3633         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
3634         out from...
3635         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
3636         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
3637         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
3638         code changing __hst_map_handle.map.
3639
3640 2012-05-15  Roland McGrath  <roland@hack.frob.com>
3641
3642         * configure.in (sysnames): Look for Implies-before and Implies-after
3643         files.
3644         * configure: Regenerated.
3645
3646 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3647
3648         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
3649         8-byte data alignment with LP_SIZE alignment.
3650
3651 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3652
3653         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
3654         into R10_LP.
3655
3656 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3657
3658         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
3659
3660 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3661
3662         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
3663         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
3664         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
3665         Likewise.
3666         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3667
3668 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3669
3670         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
3671         (stackinfo_sub_sp): Likewise.
3672
3673 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3674
3675         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
3676         RAX_LP.
3677
3678 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3679
3680         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
3681         into R*_LP.
3682
3683 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3684
3685         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
3686         sizes into R*_LP.
3687
3688 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3689
3690         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
3691
3692 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3693
3694         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
3695         into R11_LP and load __x86_64_shared_cache_size_half into
3696         R8_LP.
3697
3698 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3699
3700         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
3701         R8_LP.
3702
3703 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3704
3705         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
3706         logb for POWER7.
3707         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
3708         logbf for POWER7.
3709         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
3710         logbl for POWER7.
3711         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
3712         powerpc32/power7/fpu/s_logb.c via #include.
3713         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
3714         powerpc32/power7/fpu/s_logbf.c via #include.
3715         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
3716         powerpc32/power7/fpu/s_logbl.c via #include.
3717
3718 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
3719
3720         * README.libm: Remove file.
3721
3722 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3723
3724         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
3725         count for x32.  Use R*_LP and omit operand-size suffix.
3726
3727 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3728
3729         * shlib-versions: Move x86_64-.*-linux.* entries to ...
3730         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
3731         * sysdeps/x86_64/x32/shlib-versions: New file.
3732
3733 2012-05-14  Roland McGrath  <roland@hack.frob.com>
3734
3735         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
3736         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
3737         Use _dl_fatal_printf instead.
3738
3739 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
3740
3741         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
3742         set if not set by the user.  Do not allow for being unset.
3743         * sysdeps/unix/sysv/linux/configure: Regenerated.
3744
3745 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3746
3747         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
3748         the `q' suffix from lea and replace .quad with ASM_ADDR.
3749
3750 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3751
3752         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
3753         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
3754         instead of $17.
3755         (PTR_DEMANGLE): Likewise.
3756
3757 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3758
3759         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
3760         (LP_OP): Likewise.
3761         (ASM_ADDR): Likewise.
3762         (RAX_LP): Likewise.
3763         (RBP_LP): Likewise.
3764         (RBX_LP): Likewise.
3765         (RCX_LP): Likewise.
3766         (RDI_LP): Likewise.
3767         (RSI_LP): Likewise.
3768         (RSP_LP): Likewise.
3769         (R8_LP): Likewise.
3770         (R9_LP): Likewise.
3771         (R10_LP): Likewise.
3772         (R10_LP): Likewise.
3773         (R11_LP): Likewise.
3774         (R12_LP): Likewise.
3775         (R13_LP): Likewise.
3776         (R14_LP): Likewise.
3777         (R15_LP): Likewise.
3778
3779 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3780
3781         * sysdeps/x86_64/x32/dl-machine.h: New file.
3782
3783 2012-05-14  Andreas Jaeger  <aj@suse.de>
3784
3785         * manual/Makefile (subdir): Remove export of subdir.
3786         (all): Remove target.
3787         (.PHONY): Remove all from list.
3788         (mkinstalldirs): Remove.
3789         (.PHONY): Remove installdirs from list.
3790         ($(inst_infodir)/libc.info): Use make-target-directory.
3791         (installdirs): Remove.
3792         (subdir_%): Remove.
3793         (glibc-targets): Remove.
3794         (lib): Remove.
3795         (stubs): Remove.
3796         ($(objpfx)stubs ../po/manual.pot): Remove.
3797         ($(objpfx)stamp%): Remove.
3798         (make-target-directory): Remove.
3799         (subdir_install): Remove.
3800         (routines): Remove.
3801         (aux): Remove.
3802         (sources): Remove.
3803         (objects): Remove.
3804         (headers): Remove.
3805
3806         [BZ #13750]
3807         * manual/.gitignore: Remove, it's not needed anymore.
3808         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
3809         all files in it.
3810         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
3811         directory.
3812         (texis): Renamed to $(objpfx)texis.
3813         (texis-path): New, contains path to generated files.
3814         (chapters.%): Use texis-path for complete path, add extra argument
3815         libc-texinfo.sh.
3816         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
3817         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
3818         (summary,texi, stamp-summary): Use complete path of
3819         files. Generate files in build dir.
3820         (dir-add.texi): Build in build dir.
3821         (libm-err.texi,stamp-libm-err): Likewise.
3822         (version.texi, stamp-version): Likewise.
3823         (.%c.texi): Likewise.
3824         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
3825         (mostlyclean): Remove target.
3826         (realclean): Remove target.
3827         (generated): Add new variable with contents from mostlyclean and
3828         realclean, remove entries duplicated in common-mostlyclean, add
3829         stamp-libm-err and stamp-version.
3830         (generated-dirs): Add libc directory.
3831         ($(inst_infodir)/libc.info): Install files from build dir.
3832
3833         * manual/install.texi (Configuring and compiling): Adjust since
3834         the info files are not part of the tar ball anymore.
3835
3836 2012-05-14  Andreas Jaeger  <aj@suse.de>
3837
3838         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
3839         variable.
3840
3841 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
3842
3843         [BZ #13717]
3844         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3845         to 2.2.0 where earlier.
3846         * sysdeps/unix/sysv/linux/configure: Regenerated.
3847         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
3848         Remove conditional code.
3849         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
3850         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
3851         Remove conditional code.
3852         [!__NR_lchown]: Likewise.
3853         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
3854         [__NR_lchown]: Likewise.
3855         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
3856         comment referencing __ASSUME_LCHOWN_SYSCALL.
3857         * sysdeps/unix/sysv/linux/i386/sigaction.c
3858         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3859         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3860         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
3861         Remove conditional code.
3862         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
3863         (__protocol_available): Remove #if 0 code.
3864         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
3865         conditional code.
3866         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
3867         * sysdeps/unix/sysv/linux/kernel-features.h
3868         (__ASSUME_GETCWD_SYSCALL): Don't define.
3869         (__ASSUME_REALTIME_SIGNALS): Likewise.
3870         (__ASSUME_PREAD_SYSCALL): Likewise.
3871         (__ASSUME_PWRITE_SYSCALL): Likewise.
3872         (__ASSUME_POLL_SYSCALL): Likewise.
3873         (__ASSUME_LCHOWN_SYSCALL): Likewise.
3874         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
3875         non-SPARC.
3876         (__ASSUME_SIOCGIFNAME): Don't define.
3877         (__ASSUME_MSG_NOSIGNAL): Likewise.
3878         (__ASSUME_SENDFILE): Define unconditionally.
3879         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
3880         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
3881         conditional code.
3882         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
3883         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
3884         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
3885         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
3886         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
3887         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
3888         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
3889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
3890         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3891         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
3893         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3894         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
3896         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3897         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
3899         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3900         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
3902         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3903         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
3905         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
3906         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
3908         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3909         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
3911         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3912         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3913         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
3914         Remove conditional code.
3915         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3916         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
3917         Remove conditional code.
3918         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3919         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
3920         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
3921         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
3922         Remove conditional code.
3923         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3924         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
3925         Remove conditional code.
3926         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3927         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
3928         Remove conditional code.
3929         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3930         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
3931         Remove conditional code.
3932         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3933         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
3934         Remove conditional code.
3935         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3936         * sysdeps/unix/sysv/linux/sh/pwrite64.c
3937         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3938         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3939         * sysdeps/unix/sysv/linux/sigaction.c
3940         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3941         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3942         * sysdeps/unix/sysv/linux/sigpending.c
3943         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3944         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3945         * sysdeps/unix/sysv/linux/sigprocmask.c
3946         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3947         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3948         * sysdeps/unix/sysv/linux/sigsuspend.c
3949         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3950         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3951         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3952         (__libc_missing_rt_sigs): Remove.
3953         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
3954         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
3955         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
3956         Remove conditional code.
3957         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
3958         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
3959         return 1.
3960         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
3961         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
3962         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
3963         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
3964
3965 2012-05-14  Andreas Jaeger  <aj@suse.de>
3966
3967         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
3968         it's not used in glibc.
3969         (__coshm1): Likewise.
3970         (__acosh1p): Likewise.
3971         (__sgn): Likewise.
3972
3973         * manual/string.texi (Copying and Concatenation): Add missing
3974         variable in concat example.
3975         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
3976
3977 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3978
3979         [BZ #14103]
3980         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
3981         __builtin_clzl with __builtin_clzll.
3982
3983 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3984
3985         [BZ #14104]
3986         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
3987         libc_freeres_ptr.
3988
3989 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3990
3991         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
3992         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
3993         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
3994         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
3995
3996 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
3997
3998         * NEWS: Update ia64 info.
3999
4000 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
4001
4002         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
4003         used as bcopy.
4004
4005 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
4006
4007         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
4008         * sysdeps/unix/syscalls.list (dup3): Likewise.
4009         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
4010         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
4011
4012 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4013
4014         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
4015         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
4016
4017 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4018
4019         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
4020         thread pointer.
4021         (TLS_IE): Use mov/add instead of movq/addq to load thread
4022         pointer.
4023         (TLS_GD_PREFIX): New.
4024         (TLS_GD): Use it.
4025
4026 2012-05-11  David S. Miller  <davem@davemloft.net>
4027
4028         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
4029         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
4030         (_FPU_SETCW): Likewise.
4031
4032 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4033
4034         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
4035         is 32-byte aligned.
4036
4037 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
4038
4039         [BZ #11837]
4040         * iconvdata/gb18030.c: Update tables.
4041         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
4042         characters specially.
4043         (BODY for TO_LOOP): Add encoding of missing ranges.
4044
4045 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
4046
4047         [BZ #13673]
4048         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
4049         * sysdeps/mach/hurd/dup3.c: Likewise.
4050         * sysdeps/mach/hurd/readlinkat.c: Likewise.
4051         * sysdeps/powerpc/memmove.c:: Likewise.
4052
4053 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4054
4055         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
4056         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
4057
4058 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4059
4060         * elf/elf.h (R_X86_64_RELATIVE64): New.
4061         (R_X86_64_NUM): Updated.
4062         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4063         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
4064         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
4065         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
4066         tst-quad1pie tst-quad2pie
4067         (modules-names): Add tst-quadmod1 tst-quadmod2.
4068         ($(objpfx)tst-quad1): New dependency.
4069         ($(objpfx)tst-quad2): Likewise.
4070         ($(objpfx)tst-quad1pie): Likewise.
4071         ($(objpfx)tst-quad2pie): Likewise.
4072         * sysdeps/x86_64/tst-quad1.c: New file.
4073         * sysdeps/x86_64/tst-quad1pie.c: New file.
4074         * sysdeps/x86_64/tst-quad2.c: Likewise.
4075         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
4076         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
4077         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
4078         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
4079         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
4080
4081 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4082
4083         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
4084         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
4085         * streams/stropts.h (t_scalar_t): Define type.
4086
4087         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
4088         (_PATH_PRESERVE): Set to "/var/lib".
4089         (_PATH_RWHODIR): Set to "/var/spool/rwho".
4090
4091         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
4092         instead of int.
4093
4094         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
4095         if __dir_mkfile succeeded.
4096
4097         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
4098         checking for _hurd_dtablesize.  Unlock it right after having
4099         finished _hurd_dtable allocation.
4100
4101 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4102
4103         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
4104         * sysdeps/mach/hurd/configure: Regenerated.
4105         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
4106         special-casing to...
4107         * sysdeps/gnu/configure.in: ... this new file.
4108         * sysdeps/unix/sysv/linux/configure: Regenerated.
4109         * sysdeps/gnu/configure: New generated file.
4110
4111         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
4112         for Linux: use nsec instead of usec, as well as:
4113         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
4114         members of type struct timespec.
4115         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
4116         New macros.
4117         (struct stat64): Likewise.
4118         (_STATBUF_ST_NSEC): New macro.
4119         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
4120
4121         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4122         __strtoul_internal rather than strtoul.
4123
4124 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4125
4126         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
4127         and reject them.
4128
4129 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4130
4131         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
4132         which preserves existing values.
4133         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
4134
4135 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4136
4137         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
4138         TIMEOUT values.  Return EINVAL for NFDS values either negative or
4139         greater than FD_SETSIZE.
4140
4141 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4142
4143         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
4144         allocated, call __vm_protect to finish enabling the existing space, and
4145         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
4146         allocate the remainder.
4147
4148 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4149
4150         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
4151         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
4152
4153 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4154
4155         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
4156         sysdeps/mach/hurd/readlink.c.
4157
4158         * posix/tst-sysconf.c (posix_options): Only use
4159         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
4160         _POSIX_SYNCHRONIZED_IO when they are defined
4161         * sysdeps/mach/hurd/bits/posix_opt.h:
4162         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
4163         (_XOPEN_REALTIME): Undefine macro.
4164         (_XOPEN_REALTIME_THREADS): Undefine macro.
4165         (_XOPEN_SHM): Undefine macro.
4166         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
4167         macro to -1.
4168         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
4169         macro to -1.
4170         (_POSIX_ASYNC_IO): Undefine macro.
4171         (_POSIX_PRIORITIZED_IO): Undefine macro.
4172         (_POSIX_SPIN_LOCKS): Define macro to -1.
4173
4174         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
4175         SA_NODEFER, SA_RESETHAND.
4176         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
4177         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
4178         F_DUPFD_CLOEXEC.
4179
4180 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4181
4182         * elf/Makefile (pldd-modules): Define unconditionally.
4183
4184 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4185
4186         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
4187
4188 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4189
4190         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
4191         Return ENOENT when name is empty.
4192         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
4193
4194 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4195
4196         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
4197
4198         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
4199
4200 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4201
4202         Fix mlock in all cases except non-readable pages.
4203         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
4204         instead of VM_PROT_ALL as parameter to __vm_wire function.
4205
4206         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
4207         (__mkdir): When path is `/', just fail with EEXIST.
4208         * sysdeps/mach/hurd/mkdirat.c: Likewise.
4209
4210 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4211
4212         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
4213         <sys/uio.h> (for writev).
4214         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
4215         and <sys/param.h> (for MIN).
4216
4217 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4218
4219         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
4220         REQUESTED_TIME.  Properly set the remaining time and return EINTR
4221         if interrupted.
4222
4223 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4224
4225         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
4226         Depend on against $(link-rpcuserlibs).
4227
4228 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4229
4230         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
4231         (__libc_stack_end): Do not use attribute_relro.
4232         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
4233         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
4234         to libthread-provided value.
4235         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
4236         attribute_relro.
4237
4238 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4239
4240         [BZ #3748]
4241         * bits/libc-lock.h (__libc_once_get): New macro.
4242         * sysdeps/mach/bits/libc-lock.h: Likewise.
4243         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
4244         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
4245         instead of using implementation details.
4246
4247         * libio/fileops.c: Unconditionally include <kernel-features.h>.
4248         * libio/freopen.c: Likewise.
4249         * libio/freopen64.c: Likewise.
4250         * misc/syslog.c: Likewise.
4251         * nscd/connections.c: Likewise.
4252         * nscd/netgroupcache.c: Likewise.
4253         * sysdeps/posix/getcwd.c: Likewise.
4254
4255 2012-05-10  Roland McGrath  <roland@hack.frob.com>
4256
4257         * math/w_ilogbf.c: Add #include <limits.h>.
4258
4259 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4260
4261         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
4262         path instead of returning without unlocking.
4263
4264         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
4265         immediate-write ioctls.
4266         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
4267
4268 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4269
4270         * sysdeps/mach/hurd/i386/init-first.c (init): Use
4271         __builtin_frame_address instead of making assumptions about the
4272         location of the return address relative to DATA.  Force early load of
4273         the return address.
4274         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
4275         __builtin_frame_address.
4276
4277         dup3 for GNU Hurd.
4278         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
4279         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
4280         implement dup3 and do some further code clean-ups.
4281         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
4282         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
4283
4284 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4285
4286         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
4287
4288         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
4289         HURD_CRITICAL_END around holding _hurd_dtable_lock.
4290         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
4291         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
4292         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
4293         d->port.lock.
4294
4295         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
4296         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
4297         when handler == SIG_ERR, not when handler != SIG_ERR.
4298
4299 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4300
4301         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
4302         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
4303         definitions.
4304
4305         accept4 for GNU Hurd.
4306         * include/sys/socket.h (__libc_accept4): New prototype.
4307         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
4308         to implement __libc_accept4.
4309         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
4310         __libc_accept4.
4311         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
4312
4313         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
4314         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
4315         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
4316         signal-defines.sym.
4317
4318 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4319
4320         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
4321
4322 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4323
4324         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
4325         assertion on O_CLOEXEC flag.
4326         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
4327         * hurd/intern-fd.c: Likewise.
4328         * hurd/port2fd.c: Likewise.
4329
4330 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4331
4332         [BZ #3906]
4333         * bits/in.h (IPV6_PKTINFO): Define new macro.
4334         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
4335
4336 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4337
4338         [BZ #13954]
4339         [BZ #13955]
4340         [BZ #13956]
4341         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
4342         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4343         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
4344         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4345         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4346         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4347         * math/libm-test.inc (logb_test) : Additional logb tests.
4348
4349 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
4350             Andreas Jaeger  <aj@suse.de>
4351
4352         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
4353         * configure: Regenerated.
4354         * config.h.in (LINK_OBSOLETE_RPC): New macro.
4355         * config.make.in (link-obsolete-rpc): New substituted variable.
4356         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
4357         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
4358         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4359         (shared-only-routines): Don't set it under [link-obsolete-rpc],
4360         so that libc.a contains the symbols.
4361         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4362         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
4363         * sunrpc/auth_none.c: Likewise.
4364         * sunrpc/auth_unix.c: Likewise.
4365         * sunrpc/authdes_prot.c: Likewise.
4366         * sunrpc/authuxprot.c: Likewise.
4367         * sunrpc/clnt_gen.c: Likewise.
4368         * sunrpc/clnt_perr.c: Likewise.
4369         * sunrpc/clnt_raw.c: Likewise.
4370         * sunrpc/clnt_simp.c: Likewise.
4371         * sunrpc/clnt_tcp.c: Likewise.
4372         * sunrpc/clnt_udp.c: Likewise.
4373         * sunrpc/clnt_unix.c: Likewise.
4374         * sunrpc/des_crypt.c: Likewise.
4375         * sunrpc/des_soft.c: Likewise.
4376         * sunrpc/get_myaddr.c: Likewise.
4377         * sunrpc/key_call.c: Likewise.
4378         * sunrpc/key_prot.c: Likewise.
4379         * sunrpc/netname.c: Likewise.
4380         * sunrpc/pm_getmaps.c: Likewise.
4381         * sunrpc/pm_getport.c: Likewise.
4382         * sunrpc/pmap_clnt.c: Likewise.
4383         * sunrpc/pmap_prot.c: Likewise.
4384         * sunrpc/pmap_prot2.c: Likewise.
4385         * sunrpc/pmap_rmt.c: Likewise.
4386         * sunrpc/publickey.c: Likewise.
4387         * sunrpc/rpc_cmsg.c: Likewise.
4388         * sunrpc/rpc_common.c: Likewise.
4389         * sunrpc/rpc_dtable.c: Likewise.
4390         * sunrpc/rpc_prot.c: Likewise.
4391         * sunrpc/rpc_thread.c: Likewise.
4392         * sunrpc/rtime.c: Likewise.
4393         * sunrpc/svc.c: Likewise.
4394         * sunrpc/svc_auth.c: Likewise.
4395         * sunrpc/svc_raw.c: Likewise.
4396         * sunrpc/svc_run.c: Likewise.
4397         * sunrpc/svc_tcp.c: Likewise.
4398         * sunrpc/svc_udp.c: Likewise.
4399         * sunrpc/svc_unix.c: Likewise.
4400         * sunrpc/svcauth_des.c: Likewise.
4401         * sunrpc/xcrypt.c: Likewise.
4402         * sunrpc/xdr.c: Likewise.
4403         * sunrpc/xdr_array.c: Likewise.
4404         * sunrpc/xdr_float.c: Likewise.
4405         * sunrpc/xdr_intXX_t.c: Likewise.
4406         * sunrpc/xdr_mem.c: Likewise.
4407         * sunrpc/xdr_rec.c: Likewise.
4408         * sunrpc/xdr_ref.c: Likewise.
4409         * sunrpc/xdr_sizeof.c: Likewise.
4410         * sunrpc/xdr_stdio.c: Likewise.
4411
4412 2012-05-10  Roland McGrath  <roland@hack.frob.com>
4413
4414         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
4415         change.  Update copyright years.
4416
4417 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
4418
4419         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
4420
4421 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
4422             Joseph Myers  <joseph@codesourcery.com>
4423             Paul Pluzhnikov  <ppluzhnikov@google.com>
4424
4425         [BZ #14012]
4426         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
4427         requiring rpcgen.
4428         [cross-compiling] (extra-libs): Likewise.
4429         [cross-compiling] (extra-libs-others): Likewise.
4430         [cross-compiling] (librpcsvc-routines): Likewise.
4431         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
4432         [cross-compiling] (omit-deps): Likewise.
4433         (sunrpc-CPPFLAGS): New variable.
4434         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
4435         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
4436         (cross-rpcgen-objs): New variable.
4437         (extra-objs): Append $(cross-rpcgen-objs).
4438         ($(cross-rpcgen-objs)): New rule.
4439         ($(objpfx)cross-rpcgen): Likewise.
4440         (rpcgen-cmd): Define to use $(built-program-file).  Expand
4441         comment.
4442         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
4443         ($(objpfx)x%.stmp): Likewise.
4444         * sunrpc/proto.h [IS_IN_build] (_): Define.
4445         [IS_IN_build] (_libc_intl_domainname): Likewise.
4446
4447 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4448
4449         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
4450         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
4451         and R_X86_64_TPOFF64.
4452
4453 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
4454
4455         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
4456         sysdeps/unix/sysv/syscalls.list.
4457         (stime): Likewise.
4458         (utime): Likewise.
4459         * sysdeps/unix/sysv/syscalls.list: Remove file.
4460
4461 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4462
4463         [BZ #3440]
4464         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
4465         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
4466         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
4467         (__LC_IDENTIFICATION): Make these macros useful in #if
4468         expressions, as required by C99.
4469
4470 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
4471
4472         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
4473         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
4474         after this.
4475
4476 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
4477
4478         * stdlib/longlong.h: Updated from GCC.
4479
4480 2012-05-09  Andreas Jaeger  <aj@suse.de>
4481
4482         * nscd/nscd.c (run_modes): Make named enum, reorder so that
4483         default is first entry.
4484         (run_mode): Set type.
4485         (main): Remove informal message about syslog.
4486         (options): Fix typo.
4487
4488         [BZ #14053]
4489         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
4490         to asm.
4491         (lrint): Likewise.
4492         (llrintf): Likewise.
4493         (llrint): Likewise.
4494         (rint): Likewise.
4495         (rintf): Likewise.
4496         (nearbyint): Likewise.
4497         (nearbyintf): Likewise.
4498
4499 2012-05-09  Andreas Jaeger  <aj@suse.de>
4500             Pedro Alves  <palves@redhat.com>
4501
4502         * nscd/nscd.c (run_mode): Use enum.
4503         (main): Cleanup coding style issue.
4504
4505 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
4506             Andreas Jaeger  <aj@suse.de>
4507
4508         * nscd/nscd.c (go_background): Replaced with...
4509         (run_mode): ... this.
4510         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
4511         (options): Add -F --foreground.
4512         (main): Implement it.
4513         (parse_opt): Parse it.
4514
4515 2012-05-09  Andreas Jaeger  <aj@suse.de>
4516
4517         [BZ #14083]
4518         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
4519         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
4520         -Wconversion warning.
4521         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
4522         Likewise.
4523
4524 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
4525
4526         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
4527         == 0.
4528         (LC_ALL): Use macro-int-constant.
4529         (LC_COLLATE): Likewise.
4530         (LC_CTYPE): Likewise.
4531         (LC_MESSAGES): Likewise.
4532         (LC_MONETARY): Likewise.
4533         (LC_NUMERIC): Likewise.
4534         (LC_TIME): Likewise.
4535         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
4536         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
4537         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4538         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
4539         Specify type.
4540         [C99-based standards] (float_t): Expect type.
4541         [C99-based standards] (double_t): Expect type.
4542         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
4543         type.
4544         [C99-based standards] (HUGE_VALL): Likewise.
4545         [C99-based standards] (INFINITY): Likewise.
4546         [C99-based standards] (NAN): Likewise.
4547         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
4548         [C99-based standards] (FP_NAN): Likewise.
4549         [C99-based standards] (FP_NORMAL): Likewise.
4550         [C99-based standards] (FP_SUBNORMAL): Likewise.
4551         [C99-based standards] (FP_ZERO): Likewise.
4552         [C99-based standards] (FP_FAST_FMA): Use
4553         optional-macro-int-constant.  Specify type.  Require == 1.
4554         [C99-based standards] (FP_FAST_FMAF): Likewise.
4555         [C99-based standards] (FP_FAST_FMAL): Likewise.
4556         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
4557         [C99-based standards] (FP_ILOGBNAN): Likewise.
4558         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
4559         Specify type.
4560         [C99-based standards] (MATH_ERREXCEPT): Likewise.
4561         [C99-based standards] (math_errhandling): Specify type.
4562         [ISO99 || ISO11] (signgam): Do not allow.
4563         [non-C99-based standards] (copysignf): Do not allow.
4564         [non-C99-based standards] (exp2f): Likewise.
4565         [non-C99-based standards] (log2f): Likewise.
4566         [non-C99-based standards] (modff): Allow.
4567         [non-C99-based standards] (erff): Do not allow.
4568         [non-C99-based standards] (erfcf): Likewise.
4569         [non-C99-based standards] (gammaf): Likewise.
4570         [non-C99-based standards] (hypotf): Likewise.
4571         [non-C99-based standards] (j0f): Likewise.
4572         [non-C99-based standards] (j1f): Likewise.
4573         [non-C99-based standards] (jnf): Likewise.
4574         [non-C99-based standards] (lgammaf): Likewise.
4575         [non-C99-based standards] (tgammaf): Likewise.
4576         [non-C99-based standards] (y0f): Likewise.
4577         [non-C99-based standards] (y1f): Likewise.
4578         [non-C99-based standards] (ynf): Likewise.
4579         [non-C99-based standards] (isnanf): Likewise.
4580         [non-C99-based standards] (acoshf): Likewise.
4581         [non-C99-based standards] (asinhf): Likewise.
4582         [non-C99-based standards] (atanhf): Likewise.
4583         [non-C99-based standards] (cbrtf): Likewise.
4584         [non-C99-based standards] (expm1f): Likewise.
4585         [non-C99-based standards] (ilogbf): Likewise.
4586         [non-C99-based standards] (log1pf): Likewise.
4587         [non-C99-based standards] (logbf): Likewise.
4588         [non-C99-based standards] (nextafterf): Likewise.
4589         [non-C99-based standards] (remainderf): Likewise.
4590         [non-C99-based standards] (rintf): Likewise.
4591         [non-C99-based standards] (scalbf): Likewise.
4592         [non-C99-based standards] (copysignl): Likewise.
4593         [non-C99-based standards] (exp2l): Likewise.
4594         [non-C99-based standards] (log2l): Likewise.
4595         [non-C99-based standards] (modfl): Allow.
4596         [non-C99-based standards] (erfl): Do not allow.
4597         [non-C99-based standards] (erfcl): Likewise.
4598         [non-C99-based standards] (gammal): Likewise.
4599         [non-C99-based standards] (hypotl): Likewise.
4600         [non-C99-based standards] (j0l): Likewise.
4601         [non-C99-based standards] (j1l): Likewise.
4602         [non-C99-based standards] (jnl): Likewise.
4603         [non-C99-based standards] (lgammal): Likewise.
4604         [non-C99-based standards] (tgammal): Likewise.
4605         [non-C99-based standards] (y0l): Likewise.
4606         [non-C99-based standards] (y1l): Likewise.
4607         [non-C99-based standards] (ynl): Likewise.
4608         [non-C99-based standards] (isnanl): Likewise.
4609         [non-C99-based standards] (acoshl): Likewise.
4610         [non-C99-based standards] (asinhl): Likewise.
4611         [non-C99-based standards] (atanhl): Likewise.
4612         [non-C99-based standards] (cbrtl): Likewise.
4613         [non-C99-based standards] (expm1l): Likewise.
4614         [non-C99-based standards] (ilogbl): Likewise.
4615         [non-C99-based standards] (log1pl): Likewise.
4616         [non-C99-based standards] (logbl): Likewise.
4617         [non-C99-based standards] (nextafterl): Likewise.
4618         [non-C99-based standards] (remainderl): Likewise.
4619         [non-C99-based standards] (rintl): Likewise.
4620         [non-C99-based standards] (scalbl): Likewise.
4621         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4622         [non-C99-based standards] (FP_*): Do not allow.
4623         [C99-based standards] (FP_*): Change to
4624         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
4625         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4626         allow.
4627         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
4628         (SIG_ERR): Likewise.
4629         [X/Open-based standards] (SIG_HOLD): Likewise.
4630         (SIG_IGN): Likewise.
4631         (SIGABRT): Use macro-int-constant.  Specify type.  Require
4632         positive value.
4633         (SIGFPE): Likewise.
4634         (SIGILL): Likewise.
4635         (SIGINT): Likewise.
4636         (SIGSEGV): Likewise.
4637         (SIGTER): Likewise.
4638         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
4639         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
4640         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
4641         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
4642         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
4643         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
4644         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
4645         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
4646         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
4647         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
4648         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
4649         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
4650         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
4651         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
4652         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
4653         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
4654         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
4655         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
4656         [X/Open-based standards] (SIGTRAP): Likewise.
4657         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
4658         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
4659         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
4660         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
4661         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4662         allow.
4663
4664 2012-05-08  Ian Wienand  <ianw@vmware.com>
4665
4666         [BZ #14080]
4667         * time/tzset.c (__tzset_parse_tz): Update default rules for
4668         daylight time changes in the Energy Policy Act of 2005.
4669
4670 2012-05-09  Andreas Jaeger  <aj@suse.de>
4671
4672         [BZ #13983]
4673         * elf/ldconfig.c (parse_conf): Change string to make clear that
4674         ldconfig only issued a warning if ld.so.conf does not exist.
4675
4676 2012-05-08  David S. Miller  <davem@davemloft.net>
4677
4678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
4679         movxtod instead of popping the value on the stack.
4680
4681         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4682
4683 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
4684
4685         * config.h.in: Add HAVE_ARM_PCS_VFP.
4686
4687 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
4688
4689         [BZ #13979]
4690         * include/features.h: Warn if user requests __FORTIFY_SOURCE
4691         checking but the checks are disabled for any reason.
4692
4693 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
4694
4695         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
4696         and ELF64_R_TYPE with ELFW(R_TYPE).
4697
4698 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
4699
4700         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
4701         (ulimit): Likewise.
4702
4703         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
4704         (settimeofday): Likewise.
4705
4706 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
4707
4708         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
4709         a struct th_u2 inside the union, and move tu_block/tu_code into
4710         a new th_u3 union of tu_block/tu_code inside of that.  Move
4711         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
4712         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
4713         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
4714         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
4715         (th_stuff): Change to th_u1.tu_stuff.
4716         (th_data): Define.
4717         (th_msg): Change to th_u1.th_u2.tu_data.
4718
4719 2012-05-07  David S. Miller  <davem@davemloft.net>
4720
4721         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4722
4723         [BZ #14074]
4724         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
4725         (SETUP_PIC_REG): Use it.
4726         (SETUP_PIC_REG_LEAF): Use it.
4727
4728 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
4729
4730         [BZ #13885]
4731         [BZ #13923]
4732         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4733         USE_AS_EXPM1L.
4734         (EXPL_FINITE): Likewise.
4735         (FLDLOG): Likewise.
4736         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
4737         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
4738         e_expl.S.
4739         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4740         USE_AS_EXPM1L.
4741         (EXPL_FINITE): Likewise.
4742         (FLDLOG): Likewise.
4743         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
4744         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
4745         e_expl.S.
4746         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
4747         test of -max_value argument for long double.
4748         * sysdeps/i386/fpu/libm-test-ulps: Update.
4749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4750
4751 2012-05-06  David S. Miller  <davem@davemloft.net>
4752
4753         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
4754         quad soft-float symbols whose references which are compiler
4755         generated.
4756         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
4757
4758 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
4759
4760         [BZ #13884]
4761         [BZ #13914]
4762         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4763         USE_AS_EXP10L.
4764         (EXPL_FINITE): Likewise.
4765         (FLDLOG): Likewise.
4766         (c0): Likewise.
4767         (c1): Likewise.
4768         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
4769         Adjust comments for base varying.
4770         (__expl_finite): Change alias to EXPL_FINITE.
4771         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
4772         e_expl.S.
4773         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
4774         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4775         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
4776         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
4777         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4778         USE_AS_EXP10L.
4779         (EXPL_FINITE): Likewise.
4780         (FLDLOG): Likewise.
4781         (c0): Likewise.
4782         (c1): Likewise.
4783         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
4784         Adjust comments for base varying.
4785         (__expl_finite): Change alias to EXPL_FINITE.
4786         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
4787         tests for bugs.
4788         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4789
4790         [BZ #14064]
4791         * math/libm-test.inc (check_float_internal): Correct ulp
4792         calculation for subnormal expected results.
4793
4794 2012-05-06  Andreas Jaeger  <aj@suse.de>
4795
4796         * Makeconfig (+math-flags): New, set to -frounding-math.
4797         (+cflags): Add +math-flags so that all of glibc gets compiled with
4798         it.
4799
4800         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
4801
4802 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
4803
4804         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
4805         Disable one test.
4806
4807         [BZ #13787]
4808         [BZ #13922]
4809         [BZ #14036]
4810         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
4811         (__ieee754_expl): Allow for and saturate large arguments.
4812         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
4813         (u_threshold): Likewise.
4814         (__exp): Call __ieee754_exp before checking for overflow and
4815         underflow.
4816         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
4817         (u_threshold): Likewise.
4818         (__expf): Call __ieee754_expf before checking for overflow and
4819         underflow.
4820         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
4821         (u_threshold): Likewise.
4822         (__expl): Call __ieee754_expl before checking for overflow and
4823         underflow.
4824         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
4825         (__ieee754_expl): Allow for and saturate large arguments.
4826         * math/libm-test.inc (exp_test): Add another test.  Do not allow
4827         missing overflow exception on overflow.
4828         (expm1_test): Do not allow missing overflow exception on overflow.
4829
4830         * sysdeps/i386/fpu/e_expl.c: Move to ...
4831         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
4832         rather than using inline asm.
4833         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
4834         * sysdeps/x86_64/fpu/e_expl.S: Copy from
4835         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
4836
4837         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
4838         (nice): Likewise.
4839         (poll): Likewise.
4840         (signal): Likewise.
4841         (time): Likewise.
4842         (times): Likewise.
4843
4844 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
4845
4846         * sysdeps/unix/syscalls.list (adjtime): Add entry from
4847         sysdeps/unix/common/syscalls.list.
4848         (fchmod): Likewise.
4849         (fchown): Likewise.
4850         (ftruncate): Likewise.
4851         (getrusage): Likewise.
4852         (gettimeofday): Likewise.
4853         (setpgid): Likewise.
4854         (setregid): Likewise.
4855         (setreuid): Likewise.
4856         (sigaction): Likewise.
4857         (truncate): Likewise.
4858         (vhangup): Likewise.
4859         * sysdeps/unix/common/syscalls.list: Remove file.
4860         * sysdeps/unix/bsd/Implies: Don't include unix/common.
4861         * sysdeps/unix/sysv/linux/Implies: Likewise.
4862
4863 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4864
4865         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
4866         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
4867         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
4868         Moved to ...
4869         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
4870         Here.
4871         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
4872         to ...
4873         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
4874         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
4875         to ...
4876         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
4877         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
4878         to ...
4879         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
4880         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
4881         to ...
4882         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
4883         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
4884         to ...
4885         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
4886         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
4887         to ...
4888         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
4889         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
4890         to ...
4891         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
4892         Here.
4893         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
4894         to ...
4895         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
4896         Here.
4897         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
4898         to ...
4899         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
4900         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
4901         Moved to ...
4902         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
4903         Here.
4904         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
4905         to ...
4906         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
4907
4908 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
4909
4910         * sysdeps/unix/common/bits/dirent.h: Remove file.
4911         * sysdeps/unix/common/bits/fcntl.h: Likewise.
4912
4913         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
4914         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
4915         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
4916         * sysdeps/unix/bsd/isatty.c: Likewise.
4917         * sysdeps/unix/bsd/tcdrain.c: Likewise.
4918         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
4919         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
4920
4921 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4922
4923         [BZ #13563]
4924         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
4925         long double comparison inaccuracies.
4926         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
4927         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4928
4929 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
4930
4931         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
4932         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
4933
4934 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
4935
4936         [BZ #14049]
4937         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
4938         nonzero digits before rounding a hex value.
4939         * stdlib/tst-strtod.c (tests): Add another test.
4940
4941 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4942
4943         * sysdeps/s390/fpu/libm-test-ulps: Update.
4944
4945 2012-05-03  Andreas Jaeger  <aj@suse.de>
4946
4947         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
4948         does not get optimized out.
4949         (malloc_opt_barrier): New.
4950
4951 2012-05-03  Andreas Jaeger  <aj@suse.de>
4952             Roland McGrath  <roland@hack.frob.com>
4953
4954         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
4955         intermediate file deletion.
4956         (generated): Add .symlist files.
4957
4958 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
4959
4960         [BZ #13775]
4961         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
4962         Redirect under this condition.
4963         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
4964         [__USE_GNU] (__dprintf_chk): Not under this condition.
4965         [__USE_GNU] (__vdprintf_chk): Likewise.
4966         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
4967         under this condition.
4968         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
4969         [__USE_XOPEN2K8] (dprintf): Define under this condition.
4970         [__USE_XOPEN2K8] (vdprintf): Likewise.
4971         [__USE_GNU] (__dprintf_chk): Not under this condition.
4972         [__USE_GNU] (__vdprintf_chk): Likewise.
4973         [__USE_GNU] (dprintf): Likewise.
4974         [__USE_GNU] (vdprintf): Likewise.
4975
4976 2012-05-03  Roland McGrath  <roland@hack.frob.com>
4977
4978         * elf/Makefile (common-generated): Set this instead of generated for
4979         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
4980         $(all-built-dso)-derived lists.
4981
4982 2012-05-03  Andreas Jaeger  <aj@suse.de>
4983
4984         * sysdeps/i386/fpu/libm-test-ulps: Update.
4985
4986         * FAQ: Removed.
4987         * FAQ.in: Likewise.
4988         * scripts/gen-FAQ.pl: Likewise.
4989         * manual/install.texi (Installation): Point to online location of
4990         FAQ.
4991         * Makefile (files-for-dist): Remove FAQ.
4992         (FAQ): Remove.
4993
4994 2012-05-02  Allan McRae  <allan@archlinux.org>
4995
4996         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
4997         (LDFLAGS-reldepmod5.so): Likewise.
4998         (LDFLAGS-reldep6mod1.so): Likewise.
4999         (LDFLAGS-reldep6mod4.so): Likewise.
5000         (LDFLAGS-reldep8mod3.so): Likewise.
5001         (LDFLAGS-unload4mod1.so): Likewise.
5002         (LDFLAGS-unload4mod2.so): Likewise.
5003         (LDFLAGS-tst-initorder): Likewise.
5004         (LDFLAGS-tst-initordera2.so): Likewise.
5005         (LDFLAGS-tst-initordera3.so): Likewise.
5006         (LDFLAGS-tst-initordera4.so): Likewise.
5007         (LDFLAGS-tst-initorderb2.so): Likewise.
5008         (LDFLAGS-noload): Likewise.
5009         (LDFLAGS-next): Likewise.
5010         (LDFLAGS-order2mod1.so): Likewise.
5011         (LDFLAGS-order2mod2.so): Likewise.
5012         (LDFLAGS-tst-initorder2): Likewise.
5013         (LDFLAGS-tst-initorder2a.so): Likewise.
5014         (LDFLAGS-tst-initorder2b.so): Likewise.
5015         (LDFLAGS-tst-initorder2c.so): Likewise.
5016         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
5017
5018 2012-05-02  David S. Miller  <davem@davemloft.net>
5019
5020         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5021
5022 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
5023
5024         [BZ #14055]
5025         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
5026
5027 2012-05-02  Andreas Jaeger  <aj@suse.de>
5028
5029         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
5030         since we manipulate rounding mode.
5031         (CPPFLAGS-test-idouble.c): Likewise.
5032         (CPPFLAGS-test-ifloat.c): Likewise.
5033         (CFLAGS-test-ldouble.c): Likewise.
5034         (CFLAGS-test-double.c): Likewise.
5035         (CFLAGS-test-float.c): Likewise.
5036         (CFLAGS-test-misc.c): Likewise.
5037         (CFLAGS-test-test-fenv.c): Likewise.
5038
5039 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5040
5041         [BZ #2550]
5042         [BZ #2570]
5043         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
5044         comparisons to determine direction to adjust input.
5045
5046 2012-05-01  Roland McGrath  <roland@hack.frob.com>
5047
5048         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
5049         output to the target.
5050
5051         * scripts/localplt.awk: New file.
5052         * elf/Makefile ($(objpfx)check-localplt): Target removed.
5053         (check-localplt-CFLAGS): Variable removed.
5054         ($(all-built-dso:=.jmprel)): New static pattern rule.
5055         (generated): Add those targets.
5056         (localplt-built-dso): New variable.
5057         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
5058
5059         * elf/check-localplt.c: File removed.
5060
5061         * scripts/check-execstack.awk: New file.
5062         * elf/Makefile ($(objpfx)check-execstack): Target removed.
5063         (check-execstack-CFLAGS): Variable removed.
5064         ($(objpfx)check-execstack.h): Target removed.
5065         ($(objpfx)execstack-default): New target.
5066         (generated): Add that instead of check-execstack.h.
5067         ($(all-built-dso:=.phdr)): New static pattern rule.
5068         (generated): Add those targets.
5069         * elf/check-execstack.c: File removed.
5070
5071         * scripts/check-textrel.awk: New file.
5072         * elf/Makefile ($(objpfx)check-textrel): Target removed.
5073         (check-textrel-CFLAGS): Variable removed.
5074         (all-built-dso): Use := to define.o
5075         ($(all-built-dso:=.dyn)): New static pattern rule.
5076         (generated): Add those targets.
5077         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
5078         * config.make.in (READELF): New substituted variable.
5079         * elf/check-textrel.c: File removed.
5080
5081 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
5082
5083         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5084         allow.
5085         * conform/data/ctype.h-data [C99-based standards] (isblank):
5086         Expect function.
5087         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
5088         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
5089         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5090         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
5091         Specify type.  Require positive value.
5092         (EILSEQ): Likewise.
5093         (ERANGE): Likewise.
5094         [ISO || POSIX] (EILSEQ): Do not expect.
5095         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
5096         Specify type.  Require positive value.
5097         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
5098         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
5099         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
5100         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
5101         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
5102         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
5103         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
5104         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
5105         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
5106         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
5107         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
5108         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
5109         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
5110         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
5111         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
5112         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
5113         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
5114         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
5115         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
5116         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
5117         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
5118         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
5119         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
5120         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
5121         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
5122         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
5123         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
5124         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
5125         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
5126         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
5127         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
5128         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
5129         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
5130         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
5131         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
5132         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
5133         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
5134         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
5135         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
5136         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
5137         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
5138         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
5139         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
5140         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
5141         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
5142         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
5143         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
5144         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
5145         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
5146         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
5147         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
5148         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
5149         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
5150         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
5151         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
5152         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
5153         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
5154         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
5155         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
5156         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
5157         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
5158         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
5159         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
5160         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
5161         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
5162         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
5163         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
5164         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
5165         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
5166         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
5167         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
5168         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
5169         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
5170         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
5171         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
5172         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
5173         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
5174         Require >= 2.
5175         (FLT_ROUNDS): Expect as macro, not constant.
5176         (FLT_MANT_DIG): Use macro-int-constant.
5177         (DBL_MANT_DIG): Likewise.
5178         (LDBL_MANT_DIG): Likewise.
5179         (FLT_DIG): Likewise.
5180         (DBL_DIG): Likewise.
5181         (LDBL_DIG): Likewise.
5182         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
5183         (DBL_MIN_EXP): Likewise.
5184         (LDBL_MIN_EXP): Likewise.
5185         (FLT_MAX_EXP): Use macro-int-constant.
5186         (DBL_MAX_EXP): Likewise.
5187         (LDBL_MAX_EXP): Likewise.
5188         (FLT_MAX_10_EXP): Likewise.
5189         (DBL_MAX_10_EXP): Likewise.
5190         (LDBL_MAX_10_EXP): Likewise.
5191         (FLT_MAX): Use macro-constant.
5192         (DBL_MAX): Likewise.
5193         (LDBL_MAX): Likewise.
5194         (FLT_EPSILON): Use macro-constant.  Give upper bound.
5195         (DBL_EPSILON): Likewise.
5196         (LDBL_EPSILON): Likewise.
5197         (FLT_MIN): Likewise.
5198         (DBL_MIN): Likewise.
5199         (LDBL_MIN): Likewise.
5200         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
5201         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
5202         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
5203         [ISO11] (FLT_HAS_SUBNORM): Likewise.
5204         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
5205         [ISO11] (DBL_DECIMAL_DIG): Likewise.
5206         [ISO11] (FLT_DECIMAL_DIG): Likewise.
5207         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
5208         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
5209         [ISO11] (FLT_TRUE_MIN): Likewise.
5210         [ISO11] (LDBL_TRUE_MIN): Likewise.
5211         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5212         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
5213         (SCHAR_MIN): Use macro-int-constant.  Specify type.
5214         (SCHAR_MAX): Likewise.
5215         (UCHAR_MAX): Likewise.
5216         (CHAR_MIN): Likewise.
5217         (CHAR_MAX): Likewise.
5218         (MB_LEN_MAX): Use macro-int-constant.
5219         (SHRT_MIN): Use macro-int-constant.  Specify type.
5220         (SHRT_MAX): Likewise.
5221         (USHRT_MAX): Likewise.
5222         (INT_MAX): Likewise.
5223         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
5224         bound negative.
5225         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5226         bound with "U".
5227         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5228         bound with "L".
5229         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
5230         bound negative.  Suffix upper bound with "L".
5231         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5232         bound with "UL".
5233         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
5234         Specify type.
5235         [C99-based standards] (LLONG_MAX): Likewise.
5236         [C99-based standards] (ULLONG_MAX): Likewise.
5237         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
5238         == 0.
5239         [ISO11] (max_align_t): Require type.
5240         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5241
5242         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
5243         from $CFLAGS, without defining away __attribute__ calls.
5244         (checknamespace): Use $CFLAGS_namespace.
5245
5246         * conform/conformtest.pl (@keywords): Only include C99 keywords
5247         for standards based on C99 or C11.
5248
5249         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
5250         Disable tests.
5251         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
5252         UNIX98]: Likewise.
5253
5254         * conform/conformtest.pl: Handle "macro-int-constant" and test for
5255         usability of symbols in #if.
5256
5257         * conform/conformtest.pl: If macro or constant types start
5258         "promoted:", expect the symbol to be of the following type
5259         promoted by the integer promotions.
5260
5261         * conform/conformtest.pl: Parse all "constant" and "macro" lines
5262         in one place.  Also handle "macro-constant".
5263
5264         * conform/conformtest.pl: Only accept expected macro values with
5265         "==".  Parse all "macro" lines in one place.
5266         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
5267
5268         * conform/conformtest.pl: Handle braced types on "constant" lines
5269         instead of handling "typed-constant".
5270         * conform/data/signal.h-data: Use "constant" instead of
5271         "typed-constant".
5272
5273         * conform/conformtest.pl: Handle "optional-" at start of lines in
5274         one place rather than duplicating several cases.  Handle each
5275         format of "macro" line with initial "optional-".
5276
5277         * conform/conformtest.pl: Only accept expected constant or
5278         optional-constant values with "==".  Parse all "constant" lines in
5279         one place.  Parse all "optional-constant" lines in one place.
5280         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
5281         * conform/data/fmtmsg.h-data: Likewise.
5282         * conform/data/netinet/in.h-data: Likewise.
5283         * conform/data/tar.h-data: Likewise.
5284         * conform/data/limits.h-data: Use "==" form on "constant" and
5285         "optional-constant" lines.
5286
5287         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
5288         Use -std=c99 for XOPEN2K.
5289         (@knownproblems): Remove.
5290         (newtoken): Don't check %isknown.
5291
5292         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
5293         Do not expect macro.
5294         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
5295         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
5296         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
5297         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
5298         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
5299         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
5300         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
5301         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
5302         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
5303         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
5304         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
5305         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
5306         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
5307         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
5308         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
5309         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
5310         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
5311         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
5312         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
5313         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
5314         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
5315         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
5316         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
5317         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
5318         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
5319         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
5320         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
5321         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
5322         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
5323         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
5324         [XPG3] (acosh): Likewise.
5325         [XPG3] (asinh): Likewise.
5326         [XPG3] (atanh): Likewise.
5327         [XPG3] (cbrt): Likewise.
5328         [XPG3] (expm1): Likewise.
5329         [XPG3] (ilogb): Likewise.
5330         [XPG3] (log1p): Likewise.
5331         [XPG3] (logb): Likewise.
5332         [XPG3] (nextafter): Likewise.
5333         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
5334         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
5335         [XPG3] (remainder): Likewise.
5336         [XPG3] (rint): Likewise.
5337         [XPG3 || XPG4 || UNIX98] (round): Likewise.
5338         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
5339         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
5340         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
5341         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
5342         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
5343         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
5344         [UNIX98 || XOPEN2K] (scalb): Expect.
5345         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
5346         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
5347         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
5348         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
5349         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
5350         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
5351         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
5352         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
5353         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
5354         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
5355         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
5356         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
5357         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
5358         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
5359         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
5360         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
5361         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
5362         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
5363         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
5364         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
5365         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
5366         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
5367         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
5368         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
5369         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
5370         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
5371         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
5372         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
5373         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
5374         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
5375         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
5376         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
5377         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
5378         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
5379         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
5380         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
5381         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
5382         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
5383         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
5384         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
5385         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
5386         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
5387         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
5388         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
5389         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
5390         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
5391         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
5392         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
5393         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
5394         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
5395         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
5396         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
5397         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
5398         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
5399         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
5400         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
5401         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
5402         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
5403         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
5404         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
5405         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
5406         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
5407         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
5408         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
5409         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
5410         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
5411         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
5412         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
5413         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
5414         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
5415         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
5416         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
5417         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
5418         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
5419         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
5420         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
5421         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
5422         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
5423         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
5424         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
5425         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
5426         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
5427         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
5428         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
5429         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
5430         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
5431         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
5432         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
5433         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
5434         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
5435         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
5436         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
5437         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
5438         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
5439         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
5440         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
5441         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
5442         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
5443         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
5444         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
5445         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
5446         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
5447         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
5448         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
5449         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
5450         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
5451         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
5452         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
5453         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
5454         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
5455         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
5456         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
5457         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
5458         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
5459         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
5460         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
5461         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
5462         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
5463         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
5464         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
5465         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
5466         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
5467         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
5468         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
5469         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
5470         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
5471         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
5472         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
5473         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
5474         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
5475         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
5476         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
5477         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
5478         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
5479         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
5480         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
5481         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
5482
5483         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
5484         _XOPEN_SOURCE_EXTENDED for XPG4.
5485
5486         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
5487
5488         * Makeconfig (localtime): Remove variable.
5489         (inst_localtime-file): Likewise.
5490
5491 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
5492
5493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
5494         Update.
5495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5496         Update.
5497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
5498         Update.
5499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
5500         Update.
5501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
5502         Update.
5503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
5504         Update.
5505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5506         Update.
5507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
5508         Update.
5509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
5510         Update.
5511
5512 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
5513
5514         [BZ #2550]
5515         [BZ #2570]
5516         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
5517         comparisons to determine direction to adjust input.
5518         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
5519         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
5520         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
5521         Likewise.
5522         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
5523         Likewise.
5524         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5525         Likewise.
5526         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
5527         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
5528         Likewise.
5529         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
5530         Likewise.
5531         * math/libm-test.inc (nexttoward_test): Add more tests.
5532
5533 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
5534
5535         [BZ #14040]
5536         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
5537         in version GLIBC_2.1, not GLIBC_2.0.
5538         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
5539         Likewise.
5540
5541 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
5542
5543         [BZ #13942]
5544         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
5545         (1 - x) * (1 + x).
5546         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
5547         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
5548         * math/libm-test.inc (acos_test): Add more tests.
5549         (asin_test): Likewise.
5550         * sysdeps/i386/fpu/libm-test-ulps: Update.
5551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5552
5553         [BZ #14034]
5554         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
5555         of square root.
5556         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
5557         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
5558         * math/libm-test.inc (acos_test_tonearest): New function.
5559         (acos_test_towardzero): Likewise.
5560         (acos_test_downward): Likewise.
5561         (acos_test_upward): Likewise.
5562         (asin_test_tonearest): Likewise.
5563         (asin_test_towardzero): Likewise.
5564         (asin_test_downward): Likewise.
5565         (asin_test_upward): Likewise.
5566         (main): Call the new functions.
5567         * sysdeps/i386/fpu/libm-test-ulps: Update.
5568         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5569
5570         [BZ #13884]
5571         [BZ #13924]
5572         * math/e_exp10.c: Include <float.h>.
5573         (__ieee754_exp10): Handle underflow here rather than multiplying
5574         large negative argument by M_LN10.
5575         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
5576         of __ieee754_expf.
5577         * math/e_exp10l.c: Include <float.h>.
5578         (__ieee754_exp10l): Handle underflow here rather than multiplying
5579         large negative argument by M_LN10l.
5580         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
5581         spurious overflow exception on underflow.
5582
5583 2012-04-29  Marek Polacek  <polacek@redhat.com>
5584
5585         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
5586         (__fortify_function): New macro.
5587         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
5588         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
5589         __extern_always_inline.
5590         * libio/bits/stdio2.h: Likewise.
5591         * libio/bits/stdio.h: Likewise.
5592         * string/string.h: Likewise.
5593         * string/bits/string3.h: Likewise.
5594         * include/stdio.h: Likewise.
5595         * stdlib/bits/stdlib.h: Likewise.
5596         * stdlib/stdlib.h: Likewise.
5597         * rt/bits/mqueue2.h: Likewise.
5598         * rt/mqueue.h: Likewise.
5599         * posix/bits/unistd.h: Likewise.
5600         * posix/unistd.h: Likewise.
5601         * io/bits/poll2.h: Likewise.
5602         * io/bits/fcntl2.h: Likewise.
5603         * io/fcntl.h: Likewise.
5604         * io/sys/poll.h: Likewise.
5605         * misc/bits/syslog.h: Likewise.
5606         * misc/bits/syslog-ldbl.h: Likewise.
5607         * misc/sys/syslog.h: Likewise.
5608         * socket/bits/socket2.h: Likewise.
5609         * socket/sys/socket.h: Likewise.
5610         * debug/tst-chk1.c: Likewise.
5611         * wcsmbs/bits/wchar2.h: Likewise.
5612         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5613         * wcsmbs/wchar.h: Likewise.
5614
5615 2012-04-29  Andreas Jaeger  <aj@suse.de>
5616
5617         * Makerules (tests): Remove enable-check-abi protection.
5618         (check-abi-warn): Remove.
5619         (check-abi-%): Remove check-abi-warn usage.
5620
5621         * configure.in: Remove check-abi configure option.
5622         * configure: Regenerated.
5623         * config.make.in (enable-check-abi): Remove.
5624
5625 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
5626
5627         [BZ #14033]
5628         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
5629         double functions to double *_finite functions.
5630
5631         [BZ #13941]
5632         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
5633         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
5634         LDBL_MIN_EXP.
5635         * stdio-common/Makefile (tests): Add tst-sprintf3.
5636         * stdio-common/tst-sprintf3.c: New file.
5637
5638         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
5639         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
5640
5641 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
5642
5643         * conform/conformtest.pl: Remove duplicate typed-constant
5644         handling.
5645
5646 2012-04-28  David S. Miller  <davem@davemloft.net>
5647
5648         * Makerules (%.abilist): Add vpath on sysdep_dirs.
5649         (check-abi-%): Remove AWK script prerequisite and explicit
5650         abilist directory.
5651         (check-abi): Rewrite to just diff the symlist with the abilist.
5652         (config-tls, config-abi-config): Delete, no longer used.
5653         (update-abi-%): Remove AWK script and explicit abilist directory.
5654         (update-abi): Rewrite to simply compare and conditionally copy the
5655         symlist and the sysdep abilist file.  Remove update-abi-config
5656         checks.
5657         * abilist/ld.abilist: Remove.
5658         * abilist/libBrokenLocale.abilist: Remove.
5659         * abilist/libanl.abilist: Remove.
5660         * abilist/libcrypt.abilist: Remove.
5661         * abilist/libdl.abilist: Remove.
5662         * abilist/librt.abilist: Remove.
5663         * abilist/libthread_db.abilist: Remove.
5664         * abilist/libutil.abilist: Remove.
5665         * scripts/extract-abilist.awk: Remove.
5666         * scripts/merge-abilist.awk: Remove.
5667         * sysdeps/generic/libcidn.abilist: New file.
5668         * sysdeps/generic/libnss_compat.abilist: New file.
5669         * sysdeps/generic/libnss_db.abilist: New file.
5670         * sysdeps/generic/libnss_dns.abilist: New file.
5671         * sysdeps/generic/libnss_files.abilist: New file.
5672         * sysdeps/generic/libnss_hesiod.abilist: New file.
5673         * sysdeps/generic/libnss_nis.abilist: New file.
5674         * sysdeps/generic/libnss_nisplus.abilist: New file.
5675         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
5676         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
5677         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
5678         file.
5679         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
5680         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
5681         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
5682         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
5683         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
5684         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
5685         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
5686         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
5687         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
5688         file.
5689         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
5690         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
5691         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
5692         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
5693         file.
5694         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
5695         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
5696         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
5697         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
5698         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
5699         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
5700         file.
5701         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
5702         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
5703         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
5704         file.
5705         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
5706         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
5707         New file.
5708         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
5709         New file.
5710         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
5711         New file.
5712         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
5713         New file.
5714         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
5715         New file.
5716         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
5717         New file.
5718         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
5719         New file.
5720         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
5721         New file.
5722         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
5723         New file.
5724         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
5725         New file.
5726         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
5727         New file.
5728         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
5729         New file.
5730         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
5731         New file.
5732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
5733         file.
5734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
5735         New file.
5736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
5737         New file.
5738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
5739         file.
5740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
5741         New file.
5742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
5743         New file.
5744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
5745         file.
5746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
5747         New file.
5748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
5749         New file.
5750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
5751         New file.
5752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
5753         New file.
5754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
5755         New file.
5756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
5757         New file.
5758         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
5759         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
5760         file.
5761         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
5762         New file.
5763         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
5764         file.
5765         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
5766         file.
5767         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
5768         file.
5769         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
5770         file.
5771         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
5772         file.
5773         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5774         New file.
5775         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
5776         file.
5777         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
5778         file.
5779         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
5780         New file.
5781         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
5782         file.
5783         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
5784         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
5785         file.
5786         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
5787         New file.
5788         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
5789         file.
5790         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
5791         file.
5792         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
5793         file.
5794         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
5795         file.
5796         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
5797         file.
5798         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5799         New file.
5800         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
5801         file.
5802         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
5803         file.
5804         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
5805         New file.
5806         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
5807         file.
5808         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5809         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
5810         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
5811         file.
5812         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
5813         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
5814         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
5815         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
5816         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
5817         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
5818         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
5819         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
5820         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
5821         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
5822         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
5823         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
5824         file.
5825         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
5826         New file.
5827         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
5828         file.
5829         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
5830         file.
5831         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
5832         file.
5833         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
5834         file.
5835         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
5836         file.
5837         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
5838         New file.
5839         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
5840         New file.
5841         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
5842         file.
5843         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
5844         New file.
5845         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
5846         file.
5847         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
5848         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
5849         file.
5850         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
5851         New file.
5852         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
5853         file.
5854         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
5855         file.
5856         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
5857         file.
5858         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
5859         file.
5860         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
5861         file.
5862         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
5863         New file.
5864         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
5865         New file.
5866         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
5867         file.
5868         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
5869         New file.
5870         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
5871         file.
5872
5873 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
5874
5875         * conform/conformtest.pl: Fix typo in handling typed-constant from
5876         allow-header.
5877
5878 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
5879
5880         * README: Cut down references to pre-2.6 Linux kernels and
5881         Linuxthreads.  Update lists of configurations in libc and ports
5882         and sort alphabetically.  Say "or newer" with Linux kernel version
5883         requirements.
5884
5885         * config.h.in [IS_IN_build]: Allow compiling without optimization.
5886
5887 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5888
5889         [BZ #887]
5890         * math/libm-test.inc (logb_test_downward): New test to expose
5891         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
5892         rounding mode.
5893
5894 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
5895
5896         [BZ #14027]
5897         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
5898         to be done.
5899         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
5900         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
5901
5902 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
5903
5904         * sysdeps/unix/i386/brk.S: Remove file.
5905         * sysdeps/unix/i386/dl-brk.S: Likewise.
5906         * sysdeps/unix/i386/pipe.S: Likewise.
5907         * sysdeps/unix/i386/sigreturn.S: Likewise.
5908         * sysdeps/unix/i386/syscall.S: Likewise.
5909         * sysdeps/unix/i386/vfork.S: Likewise.
5910         * sysdeps/unix/i386/wait.S: Likewise.
5911
5912         * sysdeps/unix/common/tcsendbrk.c: Move to ...
5913         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
5914
5915         * configure.in (arm*-none*): Do not allow without
5916         --enable-hacker-mode.
5917         (netbsd*): Remove case setting base_os.
5918         (386bsd*): Likewise.
5919         (freebsd*): Likewise.
5920         (bsdi*): Likewise.
5921         (osf*): Likewise.
5922         (sunos*): Likewise.
5923         (ultrix*): Likewise.
5924         (newsos*): Likewise.
5925         (dynix*): Likewise.
5926         (*bsd*): Likewise.
5927         (sysv*): Likewise.
5928         (isc*): Likewise.
5929         (esix*): Likewise.
5930         (sco*): Likewise.
5931         (minix*): Likewise.
5932         (irix4*): Likewise.
5933         (irix6*): Likewise.
5934         (solaris[2-9]*): Likewise.
5935         (none): Likewise.
5936         * configure: Regenerated.
5937
5938 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5939
5940         [BZ #11521]
5941         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
5942         overflow or cancellation in calculating denominator.
5943         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
5944         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
5945         down expression to avoid unexpected rounding in newer GCCs.
5946         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
5947
5948 2012-04-26  David S. Miller  <davem@davemloft.net>
5949
5950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
5951         long-double compat symbols.
5952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
5954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
5955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
5956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
5957         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
5958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
5959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
5960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
5961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
5962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
5963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
5964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
5965
5966 2012-04-25  David S. Miller  <davem@davemloft.net>
5967
5968         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
5969         HWCAP_* values only after the memory barriers have been defined.
5970         (atomic_full_barrier): Define.
5971         (atomic_read_barrier): Define.
5972         (atomic_write_barrier): Define.
5973
5974 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5975
5976         * shlib-versions: Add libgcc_s version information.
5977         * sysdeps/generic/libgcc_s.h: Remove.
5978         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
5979         libgcc_s.h.
5980         * sysdeps/gnu/unwind-resume.c: Likewise.
5981         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
5982
5983 2012-04-25  David S. Miller  <davem@davemloft.net>
5984
5985         * sysdeps/unix/sparc/brk.S: Delete.
5986         * sysdeps/unix/sparc/dl-brk.S: Delete.
5987         * sysdeps/unix/sparc/pipe.S: Delete.
5988         * sysdeps/unix/sparc/sysdep.S: Delete.
5989         * sysdeps/unix/sparc/sysdep.h: Delete.
5990         * sysdeps/unix/sparc/vfork.S: Delete.
5991         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
5992         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
5993         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
5994         ret_ERRVAL, r0, r1, MOVE): Define.
5995         (JUMPTARGET): Remove.
5996         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
5997         sysdeps/unix/sparc/sysdep.h
5998         (ENTRY, END): Remove.
5999         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6000
6001 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
6002
6003         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
6004         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
6005         -DIS_IN_build.
6006
6007         * timezone/README: Update upstream location and email address for
6008         tzcode and tzdata.
6009         * timezone/zdump.c: Update from tzcode 2012b.
6010         * timezone/zic.c: Likewise.
6011
6012         * configure.in (libc_cv_as_needed): Remove test.
6013         * configure: Regenerated.
6014         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
6015         conditional definition.
6016         [$(have-as-needed) != yes] (no-as-needed): Likewise.
6017         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
6018         * config.make.in (have-as-needed): Remove variable.
6019
6020 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6021             Paul Pluzhnikov  <ppluzhnikov@google.com>
6022
6023         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
6024         strings correctly.
6025
6026 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
6027
6028         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
6029         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
6030         * sysdeps/sh/strlen.S: Likewise.
6031
6032 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6033
6034         * sysdeps/unix/fork.S: Remove file.
6035         * sysdeps/unix/i386/fork.S: Likewise.
6036         * sysdeps/unix/sparc/fork.S: Likewise.
6037
6038         * sysdeps/unix/system.c: Remove file.
6039         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
6040
6041         * sysdeps/unix/getegid.S: Remove file.
6042         * sysdeps/unix/geteuid.S: Likewise.
6043
6044 2012-04-24  Roland McGrath  <roland@hack.frob.com>
6045
6046         * scripts/check-localplt.awk: New file.
6047         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
6048         of diff.
6049         * scripts/data/localplt-generic.data: Add a comment.
6050
6051         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
6052         NODE when __dir_mkfile failed.
6053         * sysdeps/mach/hurd/symlinkat.c: Likewise.
6054         Reported by Ludovic Courtès <ludo@gnu.org>.
6055
6056 2012-04-24  Andreas Jaeger  <aj@suse.de>
6057
6058         * Makerules (common-clean): Also remove gen-as-const-headers
6059         files.
6060
6061 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6062
6063         * Makerules (native-compile): Do not change working directory for
6064         build.  Use $(OUTPUT_OPTION) in command.
6065         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
6066
6067 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6068
6069         [BZ #13886]
6070         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
6071         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
6072         * math/libm-test.inc (floor_test): Add more tests.
6073         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
6074
6075 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6076
6077         * sysdeps/unix/getdents.c: Remove file.
6078         * sysdeps/unix/sysv/getdents.c: Likewise.
6079         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
6080
6081         * sysdeps/unix/syscalls.list (madvise): Add syscall from
6082         sysdeps/unix/mman/syscalls.list.
6083         (mmap): Likewise.
6084         (mprotect): Likewise.
6085         (msync): Likewise.
6086         (munmap): Likewise.
6087         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
6088         * sysdeps/unix/mman/syscalls.list: Remove.
6089         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
6090
6091         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
6092         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
6093         * configure: Regenerated.
6094         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
6095         $(libgcc_s_suffix).
6096         * config.make.in (libgcc_s_suffix): Remove variable.
6097
6098 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
6099
6100         * sysdeps/unix/sysv/gethostname.c: Move to ...
6101         * sysdeps/posix/gethostname.c: ... here.
6102
6103         * sysdeps/unix/execve.S: Remove file.
6104
6105         * sysdeps/unix/_exit.S: Remove file.
6106
6107 2012-04-23  Andreas Jaeger  <aj@suse.de>
6108
6109         [BZ #13739]
6110         * manual/Makefile: Remove make dist support, there's no
6111         need for a stand-alone documentation tar ball.
6112         (TEXI2DVI): Define always, it's not in Makeconfig.
6113         (dist): Removed.
6114         (tar-it): Removed.
6115         (edition): Removed.
6116         (glibc-doc-$(edition).tar): Removed
6117         (%.Z): Removed.
6118         (%.gz): Removed.
6119         (%.uu): Removed.
6120         (ETAGS): Remove, it's in Makeconfig.
6121         (move-if-change): Remove, it's in Makeconfig.
6122
6123 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6124
6125         [BZ #13970]
6126         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
6127         (strtod, strtof, strtold, strtol, strtoul, strtoq)
6128         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
6129         (strtod_l, strtof_l, strtold_l): Remove __wur.
6130         It is not necessarily an error to ignore strtol's return value.
6131         One can reliably look at the stored endptr to decide whether
6132         the number had valid syntax.
6133
6134 2012-04-21  Andreas Jaeger  <aj@suse.de>
6135
6136         [BZ #13739]
6137         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
6138
6139 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
6140
6141         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
6142         * sysdeps/unix/sysv/Versions: Remove file.
6143
6144 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
6145
6146         [BZ #13927]
6147         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6148
6149 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
6150
6151         [BZ #7064]
6152         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
6153         version from __vm86.
6154
6155 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
6156
6157         * sysdeps/unix/common/lxstat.c: Remove file.
6158         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
6159
6160         * sysdeps/unix/sysv/Makefile: Remove file.
6161
6162         * sysdeps/unix/sysv/direct.h: Remove file.
6163
6164         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
6165         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
6166         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
6167         * sysdeps/unix/sysv/bits/signum.h: Likewise.
6168         * sysdeps/unix/sysv/bits/stat.h: Likewise.
6169         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
6170         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
6171
6172         * sysdeps/unix/sysv/setrlimit.c: Remove file.
6173
6174         * sysdeps/unix/xmknod.c: Remove file.
6175         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
6176
6177         * sysdeps/unix/sysv/settimeofday.c: Remove file.
6178
6179         * sysdeps/unix/sysv/i386/time.S: Remove file.
6180
6181         * sysdeps/unix/fxstat.c: Remove file.
6182         * sysdeps/unix/xstat.c: Likewise.
6183         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
6184
6185         * sysdeps/unix/sysv/sigaction.c: Remove file.
6186
6187         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
6188         (sysdep_headers): Remove variable.
6189         [termio.h not in sysdep_headers] (generated): Likewise.
6190         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
6191         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
6192         * sysdeps/unix/sysv/tcdrain.c: Likewise.
6193         * sysdeps/unix/sysv/tcflow.c: Likewise.
6194         * sysdeps/unix/sysv/tcflush.c: Likewise.
6195         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
6196         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
6197         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
6198         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
6199         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
6200
6201         * sysdeps/unix/siglist.c: Remove file.
6202
6203         * sysdeps/unix/getppid.S: Remove file.
6204
6205         * sysdeps/unix/mkdir.c: Remove file.
6206         * sysdeps/unix/rmdir.c: Likewise.
6207
6208 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
6209
6210         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
6211         ERR_MAX value.
6212         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
6213         errlist-compat value.
6214
6215 2012-04-18  David S. Miller  <davem@davemloft.net>
6216
6217         * sysdeps/generic/memcopy.h (reg_char): Delete.
6218         * debug/strcat_chk.c: Use char, not reg_char.
6219         * debug/strcpy_chk.c: Likewise.
6220         * debug/strncat_chk.c: Likewise.
6221         * debug/strncpy_chk.c: Likewise.
6222         * string/memchr.c: Likewise.
6223         * string/memrchr.c: Likewise.
6224         * string/rawmemchr.c: Likewise.
6225         * string/strcat.c: Likewise.
6226         * string/strchr.c: Likewise.
6227         * string/strchrnul.c: Likewise.
6228         * string/strcmp.c: Likewise.
6229         * string/strcpy.c: Likewise.
6230         * string/strncat.c: Likewise.
6231         * string/strncmp.c: Likewise.
6232         * string/strncpy.c: Likewise.
6233
6234 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6235
6236         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
6237         __builtin_memcopy is called when src and dest ranges are known to not
6238         overlap.
6239
6240 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6241
6242         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
6243         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
6244         fwd_align_merge macro call.
6245         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
6246         bwd_align_merge macro call.
6247         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6248
6249 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6250
6251         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
6252         bwd_align_merge macros.
6253         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
6254         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
6255         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6256
6257 2012-04-18  David S. Miller  <davem@davemloft.net>
6258
6259         * sysdeps/sparc/sparc64/memcopy.h: Delete.
6260
6261 2012-04-18  Andreas Jaeger  <aj@suse.de>
6262
6263         [BZ# 6794]
6264         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
6265         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
6266         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6267
6268         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
6269         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
6270         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6271
6272         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
6273         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
6274         Adjust for changed ldbl-128 files.
6275
6276         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
6277         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
6278         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6279
6280 2012-04-17  David S. Miller  <davem@davemloft.net>
6281
6282         * sysdeps/sparc/sparc32/memcopy.h: Delete.
6283
6284 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
6285
6286         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
6287         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
6288         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
6289         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
6290         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
6291         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
6292
6293 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6294
6295         [BZ #6794]
6296         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
6297         * math/libm-test.inc: Add ilogb errno and exception tests.
6298         * math/w_ilogb.c: New file: ilogb wrapper.
6299         * math/w_ilogbf.c: New file: ilogbf wrapper.
6300         * math/w_ilogbl.c: New file: ilogbl wrapper.
6301         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
6302         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
6303         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
6304         exception being thrown with 0.0 as argument.
6305         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
6306         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
6307         exception being thrown with 0.0 as argument.
6308         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
6309         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6310         exception being thrown with 0.0 as argument.
6311         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
6312         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6313         exception being thrown with 0.0 as argument.
6314         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
6315         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
6316         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
6317         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
6318         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
6319         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
6320         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
6321         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
6322         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
6323
6324 2012-04-17  Petr Baudis  <pasky@ucw.cz>
6325
6326         * include/sys/uio.h: Change __vector to __iovec to avoid clash
6327         with altivec.
6328
6329 2012-04-16  Marek Polacek  <polacek@redhat.com>
6330
6331         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
6332
6333 2012-04-16  Marek Polacek  <polacek@redhat.com>
6334
6335         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
6336         operands of fdivp instruction.
6337
6338 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
6339
6340         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
6341         * elf/tst-auditmod3b.c: Likewise.
6342         * elf/tst-auditmod4b.c: Likewise.
6343         * elf/tst-auditmod5b.c: Likewise.
6344         * elf/tst-auditmod6b.c: Likewise.
6345         * elf/tst-auditmod6c.c: Likewise.
6346         * elf/tst-auditmod7b.c: Likewise.
6347         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
6348         * sysdeps/x86_64/preconfigure.in: Likewise.
6349         * sysdeps/x86_64/preconfigure: Regenerated.
6350
6351 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
6352
6353         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
6354         __ILP32__.
6355
6356 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
6357
6358         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6359         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
6360
6361 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
6362
6363         [BZ #13973]
6364         * locale/iso-639.def: Fix gl language name. Spotted by
6365         Yaron Shahrabani.
6366
6367 2012-04-12  Roland McGrath  <roland@hack.frob.com>
6368
6369         [BZ #2074]
6370         * libio/libio.h (__io_write_fn): Update comment.
6371
6372 2012-04-12  Petr Baudis  <pasky@ucw.cz>
6373
6374         [BZ #2074]
6375         * stdio.texi (Hook Functions): The user provided writer function
6376         is not allowed to return -1.
6377
6378 2012-04-11  David S. Miller  <davem@davemloft.net>
6379
6380         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6381
6382 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
6383
6384         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
6385         Add a leading slash to rtkaio.
6386
6387 2012-04-11  Jim Meyering  <meyering@redhat.com>
6388
6389         [BZ #11959]
6390         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
6391         It is not necessarily an error to ignore fwrite's return
6392         value.  One can reliably use ferror to test for errors after
6393         the fact.
6394
6395 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6396
6397         * bits/types.h (__snseconds_t): New type.
6398         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
6399
6400         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
6401         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6402         (__SNSECONDS_T_TYPE): Likewise.
6403         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6404         (__SNSECONDS_T_TYPE): Likewise.
6405         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6406         (__SNSECONDS_T_TYPE): Likewise.
6407
6408 2012-04-10  Andreas Jaeger  <aj@suse.de>
6409
6410         [BZ #2636]
6411         * manual/time.texi (Processor Time): Return type of times is
6412         elapsed real time since an arbitrary point in the past.
6413         (CPU Time): Move CLK_TCK from here...
6414         (Processor Time): ...to here.  Correct description.
6415         * manual/conf.texi (Constants for Sysconf): Correct description of
6416         _SC_CLK_TCK.
6417
6418 2012-04-10  David S. Miller  <davem@davemloft.net>
6419
6420         [BZ #13967]
6421         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
6422         where the is a gap between DT_REL(A) and DT_JMPREL.
6423
6424 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6425
6426         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
6427         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
6428         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
6429
6430 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6431
6432         * elf/dl-support.c (_dl_inhibit_cache): New variable.
6433         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
6434         (dl_main): Handle --inhibit-cache.
6435         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
6436         _dl_inhibit_cache.
6437         * elf/dl-load.c (_dl_map_object): Use it.
6438         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
6439
6440 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
6441
6442         [BZ #13872]
6443         * sysdeps/i386/fpu/e_powl.S (p78): New object.
6444         (__ieee754_powl): Saturate large exponents rather than testing for
6445         overflow of y*log2(x).
6446         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6447         * math/libm-test.inc (pow_test): Do not permit spurious overflow
6448         exceptions.
6449
6450         [BZ #11521]
6451         * math/s_ctan.c: Include <float.h>.
6452         (__ctan): Avoid internal overflow or cancellation in calculating
6453         denominator.
6454         * math/s_ctanf.c: Likewise.
6455         * math/s_ctanl.c: Likewise.
6456         * math/s_ctanh.c: Likewise.
6457         * math/s_ctanhf.c: Likewise.
6458         * math/s_ctanhl.c: Likewise.
6459         * math/libm-test.inc (ctan_test): Add more tests.
6460         (ctanh_test): Likewise.
6461         * sysdeps/i386/fpu/libm-test-ulps: Update.
6462         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6463
6464 2012-04-09  Andreas Jaeger  <aj@suse.de>
6465
6466         [BZ #6894]
6467         * manual/filesys.texi (Directory Entries): Mention that d_namlen
6468         is an optional BSD extension.
6469
6470         [BZ #10254]
6471         * manual/stdio.texi (Opening Streams): Document additional fopen
6472         parameters.
6473
6474 2012-04-09  Roland McGrath  <roland@hack.frob.com>
6475
6476         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
6477         %eax without telling the compiler.
6478
6479 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
6480
6481         [BZ # 13963]
6482         * manual/install.texi: Use sourceware.org.
6483
6484 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
6485
6486         [BZ #13873]
6487         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
6488         (__ieee754_pow): Generate overflow and underflow using huge*huge
6489         and tiny*tiny rather than just returning constant infinity or zero
6490         for large exponents.
6491         * math/libm-test.inc (pow_test): Require overflow exceptions for
6492         applicable cases of large exponents.
6493
6494         [BZ #706]
6495         * sysdeps/i386/fpu/e_pow.S (p10): New object.
6496         (__ieee754_pow): Use iterative multiplication algorithm only for
6497         integer exponents with absolute value below 1024.  Check for odd
6498         integer exponents when using algorithm for real exponents.
6499         * math/libm-test.inc (pow_test): Add more tests.
6500         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6501
6502 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
6503
6504         [BZ #13705]
6505         * math/libm-test.inc (exp_test): Do not allow overflow exception
6506         on underflow test.
6507
6508 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
6509
6510         [BZ #13705]
6511         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
6512         instead of __kernel_standard_f.
6513
6514 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
6515
6516         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
6517         * sysdeps/x86_64/memset_chk.S: Likewise.
6518
6519 2012-04-08  Andreas Jaeger  <aj@suse.de>
6520
6521         [BZ #10153]
6522         * manual/startup.texi (Environment Access): Describe return value
6523         for putenv and setenv.
6524
6525         [BZ #6895]
6526         * manual/filesys.texi (Directory Entries): Add description for
6527         DT_LNK.
6528
6529         [BZ #6890]
6530         * manual/filesys.texi (Directory Entries): Clarify that it's file
6531         system not operating system in the description of DT_UNKNOWN.
6532
6533         [BZ #6578]
6534         * manual/syslog.texi (closelog): Fix reference, it's openlog.
6535
6536 2012-04-08  Stephen Compall  <s11@member.fsf.org>
6537
6538         [BZ #6649]
6539         * manual/llio.texi (Opening and Closing Files): Add cross
6540         reference to explain mode argument.
6541
6542 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
6543
6544         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
6545         * sysdeps/x86_64/memset_chk.S: Likewise.
6546
6547 2012-04-07  David S. Miller  <davem@davemloft.net>
6548
6549         * elf/elf.h (R_SPARC_WDISP10): Define.
6550         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
6551         R_SPARC_SIZE32.
6552         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
6553         R_SPARC_SIZE64 and R_SPARC_H34.
6554
6555 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
6556
6557         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
6558         conditions and remove no longer applicable assertion.
6559
6560 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
6561
6562         * bits/byteswap.h: Include <features.h>.
6563         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
6564         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
6565
6566 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
6567
6568         * bits/byteswap.h (__bswap_16): Removed.
6569         Include <bits/byteswap-16.h> to get __bswap_16.
6570         * sysdeps/i386/bits/byteswap.h: Likewise.
6571         * sysdeps/s390/bits/byteswap.h: Likewise.
6572         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6573         * bits/byteswap-16.h: New file.
6574         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6575         * sysdeps/s390/bits/byteswap-16.h: Likewise.
6576         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
6577         * string/Makefile (headers): Add bits/byteswap-16.h.
6578
6579 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
6580
6581         [BZ #13895]
6582         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
6583         extra indirection.
6584         * nss/Makefile (tests-static, tests): Add tst-nss-static.
6585         * nss/tst-nss-static.c: New.
6586
6587 2012-04-06  Robert Millan  <rmh@gnu.org>
6588
6589         [BZ #6486]
6590         * manual/llio.texi (File Position Primitive): lseek
6591         refers to WHENCE when it really means OFFSET.
6592
6593 2012-04-06  Andreas Jaeger  <aj@suse.de>
6594
6595         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
6596         strncmp declarations.
6597
6598         * abilist/libc.abilist: Add __poll and __ppoll.
6599
6600 2012-04-05  David S. Miller  <davem@davemloft.net>
6601
6602         * scripts/check-local-headers.sh: Accept a host triplet in the
6603         path matched by the exclude regexp.
6604
6605         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
6606         definition.
6607         * sysdeps/powerpc/powerpc32/dl-machine.h
6608         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
6609         * sysdeps/s390/s390-32/dl-machine.h
6610         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6611         * sysdeps/sparc/sparc32/dl-machine.h
6612         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6613         * sysdeps/sparc/sparc64/dl-machine.h
6614         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6615
6616         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
6617         lazy binding.
6618         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
6619         undefined symbol errors.
6620
6621         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
6622         DT_NEEDED entries.
6623
6624 2012-04-05  Michael Matz  <matz@suse.de>
6625
6626         [BZ #13592]
6627         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
6628
6629 2012-04-05  Andreas Jaeger  <aj@suse.de>
6630
6631         [BZ #13908]
6632         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
6633         comment.
6634
6635 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6636
6637         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
6638         which ROUND is no valid rounding mode.
6639
6640 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6641
6642         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
6643         read again.
6644         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
6645
6646 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6647
6648         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
6649         an exception using FPU order intentionally.
6650
6651 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6652
6653         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
6654         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
6655         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
6656         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
6657
6658 2012-04-05  Simon Josefsson  <simon@josefsson.org>
6659
6660         [BZ #12340]
6661         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
6662         EINVAL when BUFLEN is too smal.
6663
6664 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
6665
6666         [BZ #13553]
6667         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
6668         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6669
6670 2012-04-03  Andreas Jaeger  <aj@suse.de>
6671
6672         [BZ #13938]
6673         * manual/setjmp.texi (System V contexts): Fix sentence.
6674
6675         [BZ #13926]
6676         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
6677         New macro for this case.
6678         [!__GNUC__] (__bswap_64): New inline function for this case.
6679         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6680         * bits/byteswap.h: Likewise.
6681         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
6682         ull, guard with __GLIBC_HAVE_LONG_LONG.
6683
6684         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
6685         __GLIBC_HAVE_LONG_LONG.
6686
6687         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
6688         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
6689
6690 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
6691
6692         [BZ #13691]
6693         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
6694         inptr and inend, rather than using last_ch.
6695
6696 2012-04-02  David S. Miller  <davem@davemloft.net>
6697
6698         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
6699         * stdio-common/printf-parse.h (read_int): Change return type to
6700         'int', return -1 on INT_MAX overflow.
6701         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
6702         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
6703         overflows INT_MAX.  Check for overflow of in-format-string precision
6704         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
6705         SIZE_MAX not INT_MAX for integer overflow test.
6706         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
6707         skip the construct in the format string but do not record anything.
6708         * stdio-common/bug22.c: Adjust to test both width/prevision
6709         INT_MAX overflow as well as total length INT_MAX overflow.  Check
6710         explicitly for proper errno values.
6711
6712 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
6713
6714         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
6715         CHAR_MAX.
6716         * string/test-strcmp.c [! WIDE]: Likewise.
6717         * time/tst-mktime2.c: Likewise for INT_MAX.
6718         * string/test-string.h: #include <sys/param.h> for MIN.
6719
6720         * csu/init-first.c (__libc_init_first): Call __ctype_init.
6721         * sysdeps/i386/init-first.c (init): Likewise.
6722         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
6723         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
6724         * sysdeps/sh/init-first.c (init): Likewise.
6725
6726 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
6727
6728         * po/ru.po: Update from translation team.
6729         * po/vi.po: Likewise.
6730
6731 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
6732
6733         * resolv/nss_dns/dns-host.c: Merge copyright years.
6734
6735 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6736
6737         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6738         Optimize memcpy with prefetch if
6739         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
6740         src, dst pointers have unequal 16 byte alignments.
6741
6742 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6743
6744         [BZ #13928]
6745         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
6746         from a CNAME entry and return the minimum ttl for the query.
6747         (gaih_getanswer_slice): Likewise.
6748
6749 2012-03-30  Jeff Law  <law@redhat.com>
6750
6751         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
6752         due to long keys.
6753         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
6754         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
6755
6756         * resolv/nss_dns/dns-host.c: Update copyright year.
6757
6758 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
6759
6760         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
6761         requests to save a system call.  Fix check that all bytes are sent.
6762
6763         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
6764         comments for sendmmsg.
6765
6766 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6767
6768         [BZ #13691]
6769         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
6770         with only 1 character between 0x0041 and 0x01b0.
6771         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
6772         * wcsmbs/tst-mbsnrtowcs.c: New file.
6773
6774 2012-03-29  David S. Miller  <davem@davemloft.net>
6775
6776         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
6777         small copies by hand.
6778
6779 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6780
6781         [BZ #13761]
6782         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
6783         _nss_compat_initgroups_dyn): Fall back to malloc/free
6784         for large group memberships.
6785
6786 2012-03-28  David S. Miller  <davem@davemloft.net>
6787
6788         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
6789         that branches into memcpy.
6790         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6791         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
6792         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6793         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
6794         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
6795         bits.
6796         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
6797         implementation too.
6798         * sysdeps/sparc/mempcpy.S: New file.
6799
6800         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
6801         the IFUNC routine in the libc case.
6802         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6803
6804         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
6805         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
6806         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
6807         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
6808         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
6809         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
6810         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
6811         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
6812
6813         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
6814         loop to 256 bytes instead of 64 bytes and fix test signedness.
6815
6816         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
6817         * sysdeps/sparc/sparc32/Makefile: rather than here...
6818         * sysdeps/sparc/sparc64/Makefile: and here.
6819
6820 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
6821
6822         * malloc/mallocbug.c: Avoid warnings about unused variables.
6823
6824 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6825
6826         [BZ #13760]
6827         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
6828         in the right place. Discard and retry query if response is
6829         larger than input buffer size.
6830
6831 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
6832
6833         [BZ #369]
6834         [BZ #2678]
6835         [BZ #3866]
6836         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
6837         x for large integer exponent.
6838         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
6839         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
6840         sign of result as needed afterwards.
6841         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6842         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
6843         result for underflowing pow the same as for overflow.
6844         (__kernel_standard_l): Handle powl overflow and underflow here
6845         rather than calling __kernel_standard.
6846         * math/libm-test.inc (pow_test): Add more tests.
6847
6848         [BZ #3868]
6849         [BZ #13879]
6850         [BZ #13910]
6851         [BZ #13911]
6852         [BZ #13912]
6853         [BZ #13913]
6854         [BZ #13915]
6855         [BZ #13916]
6856         [BZ #13917]
6857         [BZ #13918]
6858         [BZ #13919]
6859         [BZ #13920]
6860         [BZ #13921]
6861         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
6862         * sysdeps/ieee754/k_standard.c: Include <float.h>.
6863         (__kernel_standard_l): New function.
6864         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
6865         __kernel_standard.
6866         * math/w_acosl.c (__acosl): Likewise.
6867         * math/w_asinl.c (__asinl): Likewise.
6868         * math/w_atan2l.c (__atan2l): Likewise.
6869         * math/w_atanhl.c (__atanhl): Likewise.
6870         * math/w_coshl.c (__coshl): Likewise.
6871         * math/w_exp10l.c (__exp10l): Likewise.
6872         * math/w_exp2l.c (__exp2l): Likewise.
6873         * math/w_fmodl.c (__fmodl): Likewise.
6874         * math/w_hypotl.c (__hypotl): Likewise.
6875         * math/w_j0l.c (__j0l, __y0l): Likewise.
6876         * math/w_j1l.c (__j1l, __y1l): Likewise.
6877         * math/w_jnl.c (__jnl, __ynl): Likewise.
6878         * math/w_lgammal.c (__lgammal): Likewise.
6879         * math/w_log10l.c (__log10l): Likewise.
6880         * math/w_log2l.c (__log2l): Likewise.
6881         * math/w_logl.c (__logl): Likewise.
6882         * math/w_powl.c (__powl): Likewise.
6883         * math/w_remainderl.c (__remainderl): Likewise.
6884         * math/w_scalbl.c (sysv_scalbl): Likewise.
6885         * math/w_sinhl.c (__sinhl): Likewise.
6886         * math/w_sqrtl.c (__sqrtl): Likewise.
6887         * math/w_tgammal.c (__tgammal): Likewise.
6888         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
6889         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
6890         * math/libm-test.inc (acos_test): Add more tests.
6891         (acosh_test): Likewise.
6892         (asin_test): Likewise.
6893         (atanh_test): Likewise.
6894         (exp_test): Likewise.
6895         (exp10_test): Likewise.
6896         (exp2_test): Likewise.
6897         (expm1_test): Likewise.
6898         (lgamma_test): Likewise.
6899         (log_test): Likewise.
6900         (log10_test): Likewise.
6901         (log1p_test): Likewise.
6902         (log2_test): Likewise.
6903         (pow_test): Do not allow some spurious overflow exceptions.
6904         (sqrt_test): Add more tests.
6905         (tgamma_test): Likewise.
6906         (y0_test): Likewise.
6907         (y1_test): Likewise.
6908         (yn_test): Likewise.
6909
6910 2012-03-27  Anton Blanchard  <anton@samba.org>
6911
6912         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
6913         MAP_HUGETLB.
6914         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6915         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6916         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
6917
6918 2012-03-27  David S. Miller  <davem@davemloft.net>
6919
6920         * conform/Makefile: Run run-conformtest.sh using $(BASH).
6921
6922         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
6923         have-as-vis3 check.
6924
6925 2012-03-27  Andreas Jaeger  <aj@suse.de>
6926
6927         * sysdeps/x86_64/elf/configure.in: Moved to ...
6928         * sysdeps/x86_64/configure.in: ... here.
6929         * sysdeps/x86_64/elf/start.S: Moved to ...
6930         * sysdeps/x86_64/start.S: ... here.
6931         * sysdeps/x86_64/elf/configure: Delete.
6932
6933         * sysdeps/x86_64/configure.in: Merge contents from
6934         sysdeps/i386/configure.in (without i686 check).
6935
6936         * sysdeps/i386/elf/Versions: Merge into ...
6937         * sysdeps/i386/Versions: ... this.
6938         * sysdeps/i386/elf/Versions: Delete file.
6939         * sysdeps/i386/elf/start.S: Moved to ...
6940         * sysdeps/i386/start.S: ...here.
6941         * sysdeps/i386/elf/configure.in: Merge into...
6942         * sysdeps/i386/configure.in: ...here.
6943         * sysdeps/i386/elf/configure.in: Delete file.
6944         * sysdeps/i386/elf/configure: Delete file.
6945
6946         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
6947         * debug/backtracesyms.c: ... here.
6948         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
6949         * debug/backtracesymsfd.c: ... here.
6950         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
6951         * sysdeps/generic/ifunc-sel.h: ... here.
6952
6953         * sysdeps/unix/i386/start.c: Delete file.
6954         * sysdeps/unix/sparc/start.c: Delete file.
6955         * sysdeps/unix/start.c: Delete file.
6956
6957         * sysdeps/sh/elf/configure.in: Moved to ...
6958         * sysdeps/sh/configure.in: ... here.
6959         * sysdeps/sh/elf/start.S: Moved to ...
6960         * sysdeps/sh/start.S: ... here.
6961         * sysdeps/sh/elf/configure: Delete file.
6962
6963         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
6964         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
6965         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
6966         * sysdeps/powerpc/powerpc64/entry.h: ... here.
6967         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
6968         * sysdeps/powerpc/powerpc64/start.S: here.
6969         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
6970         * sysdeps/powerpc/powerpc64/Makefile: ... this.
6971         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
6972         * sysdeps/powerpc/powerpc64/configure.in: ... this.
6973         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
6974
6975         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
6976         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
6977         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
6978         * sysdeps/powerpc/powerpc32/start.S: ... here.
6979         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
6980         * sysdeps/powerpc/powerpc32/configure.in: ... this.
6981         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
6982
6983         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
6984         * sysdeps/powerpc/ifunc-sel.h: ... here.
6985         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
6986         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
6987
6988         * sysdeps/sparc/elf/configure.in: Moved to ...
6989         * sysdeps/sparc/configure.in: ... here.
6990         * sysdeps/sparc/elf/configure: Delete file.
6991         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
6992         * sysdeps/sparc/sparc32/start.S: ... here.
6993         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
6994         * sysdeps/sparc/sparc64/start.S: ... here.
6995         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
6996         * sysdeps/sparc/sparc32/Makefile: ... this.
6997         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
6998         * sysdeps/sparc/sparc64/Makefile: ... this.
6999
7000         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
7001         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
7002         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
7003         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
7004         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
7005         * sysdeps/s390/s390-32/setjmp.S: ... here.
7006         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
7007         * sysdeps/s390/s390-32/configure.in: ... here.
7008         * sysdeps/s390/s390-32/elf/configure: Delete file.
7009         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
7010         * sysdeps/s390/s390-32/start.S: ... here.
7011
7012         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
7013         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
7014         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
7015         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
7016         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
7017         * sysdeps/s390/s390-64/setjmp.S: ... here.
7018         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
7019         * sysdeps/s390/s390-64/configure.in: ... here
7020         * sysdeps/s390/s390-64/elf/configure: Delete file.
7021         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
7022         * sysdeps/s390/s390-64/start.S: ... here.
7023         * sysdeps/s390/s390-64/elf/configure: Delete.
7024
7025         * configure.in: Remove support for elf directories in sysdeps.
7026
7027         * configure: Regenerated.
7028         * sysdeps/i386/configure: Regenerated.
7029         * sysdeps/powerpc/powerpc32/configure: Regenerated.
7030         * sysdeps/powerpc/powerpc64/configure: Regenerated.
7031         * sysdeps/s390/s390-32/configure: Regenerated.
7032         * sysdeps/s390/s390-64/configure: Regenerated.
7033         * sysdeps/sh/configure: Regenerated.
7034         * sysdeps/sparc/configure: Regenerated.
7035         * sysdeps/x86_64/configure: Regenerated.
7036
7037 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
7038
7039         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7040
7041         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
7042         denormal result into account.
7043
7044 2012-03-25  Roland McGrath  <roland@hack.frob.com>
7045
7046         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
7047         Reported by Allan McRae <allan@archlinux.org>.
7048
7049 2012-03-23  Jeff Law  <law@redhat.com>
7050
7051         * nss/getnssent.c (__nss_getent): Fix typo.
7052
7053 2012-03-23  David S. Miller  <davem@davemloft.net>
7054
7055         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7056
7057 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
7058
7059         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
7060         to pad to uint64_t for each field.
7061         (dl_tls_index): Replace unsigned long with uint64_t.
7062
7063 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
7064         Paul Pluzhnikov  <ppluzhnikov@google.com>
7065
7066         [BZ #6528]
7067         * grp/Makefile (otherlibs): Don't set it.
7068         * inet/Makefile (otherlibs): Likewise.
7069         * login/Makefile (otherlibs): Likewise.
7070         * nscd/Makefile (otherlibs): Likewise.
7071         * posix/Makefile (otherlibs): Likewise.
7072         * pwd/Makefile (otherlibs): Likewise.
7073         * rt/Makefile (otherlibs): Likewise.
7074         * sunrpc/Makefile (otherlibs): Likewise.
7075         * nss/Makefile (otherlibs): Likewise.
7076         Add libnss_files to routines and static-only-routines.
7077         ($(objpfx)getent): Remove rule.
7078         * resolv/Makefile: Add libnss_dns and libresolv to routines and
7079         static-only-routines.
7080
7081 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
7082
7083         [BZ #13892]
7084         * math/s_cexp.c: Include <float.h>.
7085         (__cexp): Handle exp result overflowing not necessarily
7086         overflowing both real and imaginary parts of result.
7087         * math/s_cexpf.c: Likewise.
7088         * math/s_cexpl.c: Likewise.
7089         * math/libm-test.inc (cexp_test): Add more tests.
7090         * sysdeps/i386/fpu/libm-test-ulps: Update.
7091         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7092
7093 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7094
7095         * include/link.h (ELFW): New macro.
7096         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
7097         Replace ELF64_R_TYPE with ELFW(R_TYPE).
7098
7099 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7100
7101         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
7102         with uint64_t.
7103
7104 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7105
7106         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
7107         declaration.
7108         (struct La_x32_retval): Likewise.
7109
7110 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7111
7112         * sysdeps/x86_64/preconfigure.in: New file.
7113         * sysdeps/x86_64/preconfigure: New generated file.
7114
7115 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
7116
7117         [BZ #13824]
7118         * math/e_exp2l.c: Include <float.h>.
7119         (__ieee754_exp2l): Handle overflow and underflow cases
7120         separately.  Only pass fractional part of argument to
7121         __ieee754_expl.
7122         * math/libm-test.inc (exp2_test): Add more tests.
7123
7124         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
7125         negating x to take absolute value.
7126         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
7127         Likewise.
7128         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
7129         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
7130         Likewise.
7131         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
7132         computing low part if x was negated.
7133         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
7134
7135 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7136
7137         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
7138         la_x32_gnu_pltexit.
7139         (pltexit): Cast int_retval to ptrdiff_t.
7140         * elf/tst-auditmod3b.c: Likewise.
7141         * elf/tst-auditmod4b.c: Likewise.
7142         * elf/tst-auditmod5b.c: Likewise.
7143         * elf/tst-auditmod6b.c: Likewise.
7144         * elf/tst-auditmod6c.c: Likewise.
7145         * elf/tst-auditmod7b.c: Likewise.
7146
7147         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
7148         and x32_gnu_pltexit.
7149
7150         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
7151         __ELF_NATIVE_CLASS.
7152         (La_x32_regs): New macro.
7153         (La_x32_retval): Likewise.
7154         (la_x32_gnu_pltenter): New function prototype.
7155         (la_x32_gnu_pltexit): Likewise.
7156
7157 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
7158
7159         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
7160         exponent.
7161
7162         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7163
7164         * configure.in (libc_cv_cc_nofma): Check for option to disable
7165         generation of FMA instructions.
7166         * configure: Regenerate.
7167         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
7168         * sysdeps/ieee754/dbl-64/Makefile: New file.
7169         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7170         Remove brandred-fma4.
7171         (CFLAGS-brandred-fma4.c): Remove.
7172         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
7173         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
7174         define.
7175         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
7176         define.
7177
7178 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7179
7180         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7181         LLONG_MAX != LONG_MAX.
7182         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7183         (_fitoa_word): Likewise.
7184         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
7185         LLONG_MAX != LONG_MAX.
7186         * stdio-common/_itowa.h: Include <_itoa.h>.
7187         (_itowa_word): Use _ITOA_WORD_TYPE on value.
7188         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
7189         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
7190         only if not defined.
7191         (_ITOA_WORD_TYPE): Likewise.
7192         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7193         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
7194
7195 2012-03-21  David S. Miller  <davem@davemloft.net>
7196
7197         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7198
7199 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7200
7201         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
7202         of x86_64 when setting libc_cv_slibdir, libdir and
7203         libc_cv_localedir.
7204         * sysdeps/unix/sysv/linux/configure: Regenerated.
7205
7206 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7207
7208         * manual/lang.texi (Old Varargs): Remove section.
7209         (How Variadic): Update menu.
7210         (va_start): Do not mention varargs.h.
7211
7212 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7213             Joseph Myers  <joseph@codesourcery.com>
7214
7215         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
7216         link test.
7217         * configure: Regenerated.
7218
7219 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7220
7221         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
7222         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
7223         conformtest.pl
7224
7225 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7226
7227         * NOTES: Remove.
7228         * Makefile (files-for-dist): Remove NOTES.
7229         (NOTES): Remove rule.
7230         * README: Don't refer to NOTES.
7231         * manual/creature.texi: Don't include macros.texi.
7232         * manual/intro.texi (creature.texi): Remove comment referring to
7233         NOTES.
7234
7235         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
7236         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
7237         * configure: Regenerated.
7238         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
7239         LIBC_TRY_CC_OPTION.
7240         (libc_cv_as_i686): Likewise.
7241         (libc_cv_cc_avx): Likewise.
7242         (libc_cv_cc_sse2avx): Likewise.
7243         (libc_cv_cc_fma4): Likewise.
7244         (libc_cv_cc_novzeroupper): Likewise.
7245         * sysdeps/i386/configure: Regenerated.
7246
7247         [BZ #13883]
7248         * sysdeps/i386/fpu/s_cexp.S: Remove.
7249         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7250         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7251         * math/libm-test.inc (cexp_test): Add more tests.
7252         * sysdeps/i386/fpu/libm-test-ulps: Update.
7253         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7254
7255 2012-03-21  Allan McRae  <allan@archlinux.org>
7256
7257         * timezone/Makefile: Do not install iso3166.tab and zone.tab
7258
7259 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7260
7261         [BZ #13871]
7262         * math/w_exp2.c: Do not include <float.h>.
7263         (o_threshold, u_threshold): Remove.
7264         (__exp2): Calculate result before checking finiteness and calling
7265         __kernel_standard.
7266         * math/w_exp2f.c: Likewise.
7267         * math/w_exp2l.c: Likewise.
7268         * math/libm-test.inc (exp2_test): Require overflow exception for
7269         1e6 input.
7270
7271         [BZ #3866]
7272         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
7273         range of signed 64-bit integers before using fistpll.  Remove
7274         checks for whether integers fit in mantissa bits.
7275         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
7276         the range of signed 32-bit integers before using fistpl.  Remove
7277         checks for whether integers fit in mantissa bits.
7278         * sysdeps/i386/fpu/e_powl.S (p64): New object.
7279         (__ieee754_powl): Test for y outside the range of signed 64-bit
7280         integers before using fistpll.  Reduce 64-bit values to 63-bit
7281         ones as needed.
7282         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
7283         divide-by-zero is raised for zero to large negative powers.
7284         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
7285         (__ieee754_powl): Test for y outside the range of signed 64-bit
7286         integers before using fistpll.  Reduce 64-bit values to 63-bit
7287         ones as needed.
7288         * math/libm-test.inc (pow_test): Add more tests.
7289
7290 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7291
7292         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
7293         <stdio-common/_itoa.h>.
7294         * debug/segfault.c: Likewise.
7295         * elf/dl-cache.c: Likewise.
7296         * elf/dl-minimal.c: Likewise.
7297         * elf/dl-misc.c: Likewise.
7298         * elf/dl-sysdep.c: Likewise.
7299         * elf/dl-version.c: Likewise.
7300         * elf/rtld.c: Likewise.
7301         * hurd/hurdsock.c: Likewise.
7302         * hurd/lookup-retry.c: Likewise.
7303         * malloc/malloc.c: Likewise.
7304         * malloc/mtrace.c: Likewise.
7305         * nscd/nscd_getgr_r.c: Likewise.
7306         * nscd/nscd_getpw_r.c: Likewise.
7307         * nscd/nscd_getserv_r.c: Likewise.
7308         * posix/getopt_init.c: Likewise.
7309         * posix/wordexp.c: Likewise.
7310         * stdio-common/_itoa.c: Likewise.
7311         * stdio-common/printf_fphex.c: Likewise.
7312         * stdio-common/vfprintf.c: Likewise.
7313         * string/_strerror.c: Likewise.
7314         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7315         * sysdeps/i386/i686/hp-timing.h: Likewise.
7316         * sysdeps/mach/_strerror.c: Likewise.
7317         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
7318         * sysdeps/mach/hurd/sethostid.c: Likewise.
7319         * sysdeps/mach/hurd/xmknodat.c: Likewise.
7320         * sysdeps/mach/xpg-strerror.c: Likewise.
7321         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7322         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
7323         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
7324         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
7325         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
7326         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
7327         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7328         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7329         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
7330         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
7331         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
7332         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
7333         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
7334         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
7335         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
7336         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
7337         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
7338         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
7339         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7340         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7341         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
7342
7343         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
7344
7345         * stdio-common/_itoa.h: Moved to ...
7346         * sysdeps/generic/_itoa.h: Here.
7347
7348         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
7349
7350         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
7351         instead of "_itoa.h" and "_itowa.h".
7352         * stdio-common/vfprintf.: Likewise.
7353
7354 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7355
7356         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
7357         <bits/wordsize.h>.
7358         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
7359         (__signbit): Likwise.
7360         (llrintf): Likwise.
7361         (llrint): Likwise.
7362
7363 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7364
7365         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
7366         __WORDSIZE != 64.
7367
7368 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
7369
7370         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
7371         OVERFLOW_EXCEPTION_OK.
7372         * math/libm-test.inc ("Philosophy"): Update comment about
7373         exception testing.
7374         (OVERFLOW_EXCEPTION): Define.
7375         (OVERFLOW_EXCEPTION_OK): Likewise.
7376         (INVALID_EXCEPTION_OK): Renumber.
7377         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7378         (IGNORE_ZERO_INF_SIGN): Likewise.
7379         (test_exceptions): Handle FE_OVERFLOW.
7380         (exp10_test): Expect overflow exceptions.
7381         (exp2_test): Likewise.
7382         (expm1_test): Likewise.
7383         (nextafter_test): Likewise.
7384         (pow_test): Likewise.
7385         (scalbn_test): Likewise.
7386         (scalbln_test): Likewise.
7387
7388 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7389
7390         * sysdeps/x86_64/bits/atomic.h
7391         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
7392         64bit integer.
7393         (atomic_exchange_acq): Likewise.
7394         (__arch_exchange_and_add_body): Likewise.
7395         (__arch_add_body): Likewise.
7396         (atomic_add_negative): Likewise.
7397         (atomic_add_zero): Likewise.
7398
7399 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7400
7401         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
7402         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
7403
7404 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7405
7406         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
7407         Check __x86_64__ instead of __WORDSIZE.
7408
7409 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7410
7411         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
7412
7413 2012-03-19  David S. Miller  <davem@davemloft.net>
7414
7415         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7416
7417         * sysdeps/sparc/fpu/fenv_private.h: New file.
7418         * sysdeps/sparc/fpu/math_private.h: Use it.
7419         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
7420         Remove.
7421         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
7422         (libc_feholdexcept_setroundl): Remove.
7423         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
7424         Remove.
7425         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
7426         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
7427
7428 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7429
7430         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
7431         int64_t instead of long int.
7432         (INSERT_WORDS64): Likwise.
7433
7434 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7435
7436         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
7437         _Unwind_GetCFA return to _Unwind_Ptr first.
7438
7439 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
7440
7441         [BZ #13629]
7442         * math/s_clog.c: Include <float.h>.
7443         (__clog): Scale large or subnormal inputs.
7444         * math/s_clogf.c: Likewise.
7445         * math/s_clogl.c: Likewise.
7446         * math/s_clog10.c: Include <float.h>.
7447         (M_LOG10_2): Define.
7448         (__clog10): Scale large or subnormal inputs.
7449         * math/s_clog10f.c: Likewise.
7450         * math/s_clog10l.c: Likewise.
7451         * math/libm-test.inc (clog_test): Add more tests.
7452         (clog10_test): Likewise.
7453         * sysdeps/i386/fpu/libm-test-ulps: Update.
7454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7455
7456         [BZ #11451]
7457         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
7458         x and y.
7459         * math/libm-test.inc (atan2_test): Add another test.
7460
7461         * Makerules (common-objdir-compile): Remove.
7462         * sysdeps/unix/Makefile (config-generated): Do not add
7463         $(unix-generated) to variable.
7464         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
7465         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
7466         Remove rule.
7467         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
7468         Likewise.
7469         [generic bits/local_lim.h] (before-compile): Do not append to
7470         variable.
7471         [generic bits/local_lim.h] (common-generated): Likewise.
7472         [generic sys/param.h] (before-compile): Do not append to variable.
7473         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
7474         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
7475         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
7476         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
7477         include.
7478         [generic sys/param.h] (sys/param.h-includes): Remove variable.
7479         [generic sys/param.h] (sys/param.h-includes): Remove rule.
7480         [generic sys/param.h] ($(addprefix
7481         $(common-objpfx),$(sys/param.h-includes))): Likewise.
7482         [generic sys/param.h] (common-generated): Do not append to
7483         variable.
7484         [generic sys/param.h] (sysdep_headers): Likewise.
7485         [generic bits/errno.h] (before-compile): Do not append to
7486         variable.
7487         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
7488         rule.
7489         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
7490         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
7491         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
7492         [generic bits/errno.h] (common-generated): Do not append to
7493         variable.
7494         [generic bits/ioctls.h] (before-compile): Do not append to
7495         variable.
7496         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
7497         rule.
7498         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
7499         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
7500         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
7501         rule.
7502         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
7503         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
7504         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
7505         [generic bits/ioctls.h] (common-generated): Do not append to
7506         variable.
7507         [generic sys/syscall.h] (syscall.h): Remove variable.
7508         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
7509         rule.
7510         [generic sys/syscall.h] (before-compile): Do not append to
7511         variable.
7512         [generic sys/syscall.h] (common-generated): Likewise.
7513         * sysdeps/unix/errnos-tmpl.c: Remove file.
7514         * sysdeps/unix/errnos.awk: Likewise.
7515         * sysdeps/unix/ioctls-tmpl.c: Likewise.
7516         * sysdeps/unix/ioctls.awk: Likewise.
7517         * sysdeps/unix/mk-local_lim.c: Likewise.
7518         * sysdeps/unix/snarf-ioctls: Likewise.
7519
7520 2012-03-19  Richard Henderson  <rth@twiddle.net>
7521
7522         * sysdeps/i386/fpu/fenv_private.h: New file.
7523         * sysdeps/i386/fpu/math_private.h: Use it.
7524         (math_opt_barrier, math_force_eval): Remove.
7525         (libc_feholdexcept_setround_53bit): Remove.
7526         (libc_feupdateenv_53bit): Remove.
7527         * sysdeps/x86_64/fpu/math_private.h: Likewise.
7528         (math_opt_barrier, math_force_eval): Remove.
7529         (libc_feholdexcept): Remove.
7530         (libc_feholdexcept_setround): Remove.
7531         (libc_fetestexcept, libc_fesetenv): Remove.
7532         (libc_feupdateenv_test): Remove.
7533         (libc_feupdateenv, libc_feholdsetround): Remove.
7534         (libc_feresetround): Remove.
7535
7536         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
7537         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
7538
7539         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
7540         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
7541         (libc_feupdateenv_testl): New.
7542         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
7543         (libc_feupdateenv_testf): New.
7544         (libc_feupdateenv): Use libc_feupdateenv_test.
7545         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
7546         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
7547
7548         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
7549         (libc_feholdsetroundf, libc_feholdsetroundl): New.
7550         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
7551         (libc_feresetround_noex): New.
7552         (libc_feresetround_noexf): New.
7553         (libc_feresetround_noexl): New.
7554         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
7555         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
7556         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
7557         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
7558         SET_RESTORE_ROUND.
7559         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
7560         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
7561         (__cos): Likewise.
7562         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
7563         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
7564         SET_RESTORE_ROUND_NOEX.
7565         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
7566         SET_RESTORE_ROUND_NOEXF.
7567         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
7568         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
7569         (libc_feholdsetroundf): New.
7570         (libc_feresetround, libc_feresetroundf): New.
7571
7572         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
7573         (libc_feholdexcept_setround_53bit): Convert from macro to function.
7574         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
7575
7576         * sysdeps/generic/math_private.h: Include <fenv.h>.
7577         (default_libc_feholdexcept): New.
7578         (default_libc_feholdexcept_setround): New.
7579         (default_libc_fesetenv, default_libc_feupdateenv): New.
7580         (libc_feholdexcept): Only define if undefined.
7581         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
7582         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
7583         (libc_feholdexcept_setroundl): Likewise.
7584         (libc_feholdexcept_setround_53bit): Likewise.
7585         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
7586         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
7587         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
7588         (libc_feupdateenv_53bit): Likewise.
7589         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
7590         (libc_feholdexcept): Convert from macro to inline function.
7591         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
7592         (libc_fesetenv, libc_feupdateenv): Likewise.
7593
7594         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
7595         not previously defined.
7596         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
7597         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
7598         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
7599         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
7600         * sysdeps/ieee754/flt-32/math_private.h: New file.
7601         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
7602         math_private.h below SET_FLOAT_WORD.
7603         (__isnan, __isinf_ns, __finite): Remove.
7604         (__isnanf, __isinf_nsf, __finitef): Remove.
7605
7606 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
7607
7608         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7609
7610 2012-03-17  David S. Miller  <davem@davemloft.net>
7611
7612         [BZ #6471]
7613         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
7614         for 2.16.
7615
7616 2012-03-16  David S. Miller  <davem@davemloft.net>
7617
7618         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
7619         warnings.
7620
7621         [BZ #6471]
7622         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
7623         properly.
7624         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
7625         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
7626         sysdep_routines when subdir is sysvipc.
7627         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
7628         __getshmlba helper.
7629
7630         * sysdeps/sparc/fpu/libm-test/ulps: Update.
7631
7632 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7633
7634         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
7635         [__LP64__].
7636
7637 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7638
7639         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
7640         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
7641         (__lround): Renamed to ...
7642         (__llround): This.  Replace long int with long long int.
7643         Define lround functions as aliases of llround functions.
7644         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
7645
7646 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7647
7648         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7649         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
7650         adresses to uintptr_t.  Replace "long int" and "unsigned long
7651         int" with "greg_t" on va_arg.
7652
7653 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7654
7655         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
7656         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
7657
7658         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
7659         Move e_machine check before EI_CLASS check.  Handle x32
7660         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
7661         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
7662         SKIP_EM_IA_64 and include
7663         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
7664
7665         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
7666         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
7667         (add_system_dir): New macro.
7668
7669         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
7670         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
7671
7672 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
7673
7674         [BZ #2551]
7675         [BZ #2552]
7676         [BZ #2553]
7677         [BZ #2554]
7678         [BZ #2562]
7679         [BZ #2563]
7680         [BZ #2565]
7681         [BZ #2566]
7682         [BZ #2576]
7683         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
7684         (y0): Likewise.
7685         * math/w_j0f.c (j0f): Likewise.
7686         (y0f): Likewise.
7687         * math/w_j0l.c (__j0l): Likewise.
7688         (__y0l): Likewise.
7689         * math/w_j1.c (j1): Likewise.
7690         (y1): Likewise.
7691         * math/w_j1f.c (j1f): Likewise.
7692         (y1f): Likewise.
7693         * math/w_j1l.c (__j1l): Likewise.
7694         (__y1l): Likewise.
7695         * math/w_jn.c (jn): Likewise.
7696         (yn): Likewise.
7697         * math/w_jnf.c (jnf): Likewise.
7698         (ynf): Likewise.
7699         * math/w_jnl.c (__jnl): Likewise.
7700         (__ynl): Likewise.
7701         * math/libm-test.inc (j0_test): Add more tests.
7702         (j1_test): Likewise.
7703         (jn_test): Likewise.  Add trailing semicolon to existing test.
7704         (y0_test): Likewise.
7705         (y1_test): Likewise.
7706         * sysdeps/i386/fpu/libm-test-ulps: Update.
7707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7708
7709         [BZ #13851]
7710         [BZ #13854]
7711         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
7712         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
7713         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
7714         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
7715         (__tanl): Set errno for infinite argument.
7716         * sysdeps/i386/fpu/mptan.c: Remove.
7717         * sysdeps/i386/fpu/s_tan.S: Likewise.
7718         * sysdeps/i386/fpu/s_tanl.S: Likewise.
7719         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
7720         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
7721         * math/libm-test.inc (tan_test): Add more tests and enable more
7722         tests for double and long double.
7723         * sysdeps/i386/fpu/libm-test-ulps: Update.
7724         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7725
7726 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7727
7728         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
7729         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
7730
7731 2012-03-16  Roland McGrath  <roland@hack.frob.com>
7732
7733         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
7734         * configure.in: Use it for both main tree and add-ons.
7735         * configure: Regenerated.
7736
7737 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7738
7739         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
7740
7741 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
7742
7743         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
7744         in comment.
7745
7746         [BZ #13851]
7747         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
7748         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
7749         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
7750         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
7751         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
7752         infinite argument.
7753         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
7754         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
7755         != 0 for prec == 2.
7756         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
7757         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
7758         * sysdeps/i386/fpu/s_cosl.S: Likewise.
7759         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
7760         * sysdeps/i386/fpu/s_sinl.S: Likewise.
7761         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
7762         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
7763         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
7764         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
7765         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
7766         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
7767         * math/libm-test.inc (cos_test): Add more tests and enable more
7768         tests for long double.
7769         (sin_test): Likewise.
7770         (sincos_test): Likewise.
7771         * sysdeps/i386/fpu/libm-test-ulps: Update.
7772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7773
7774 2012-03-16  David S. Miller  <davem@davemloft.net>
7775
7776         * sysdeps/sparc/fpu/math_private.h: New file.
7777
7778 2012-03-15  David S. Miller  <davem@davemloft.net>
7779
7780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
7781         file.
7782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
7783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
7784         file.
7785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
7786         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
7787         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
7788         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
7789         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
7790         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
7791         sysdep routines.
7792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
7793
7794         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
7795         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
7796
7797         * sysdeps/sparc/sparc-ifunc.h: New file.
7798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
7799         sparc-ifunc.h
7800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
7801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
7802         Likewise.
7803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
7804         Likewise.
7805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
7806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
7807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
7809         Likewise.
7810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
7812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
7814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
7815         Likewise.
7816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
7817         Likewise.
7818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
7820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
7821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
7822         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
7823         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
7824         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
7825         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
7826         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
7827         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
7828         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
7829         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
7830         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
7831         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
7832         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
7833         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
7834         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
7835         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
7836         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
7837         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
7838         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
7839         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
7840         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
7841         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
7842
7843 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
7844
7845         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
7846         scaling.
7847         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7848
7849 2012-03-15  Andreas Jaeger  <aj@suse.de>
7850
7851         [BZ #13852]
7852         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
7853         ieee754/flt-32 implementation for sin, cos and sincos.
7854         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
7855         * sysdeps/i386/fpu/s_cosf.S: Likewise.
7856         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
7857         * sysdeps/i386/fpu/s_sinf.S: Likewise.
7858         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
7859         ieee754/flt-32 implementation for tan.
7860
7861         * math/libm-test.inc (cos_test): Enable some large input tests for
7862         float as well
7863         (sin_test): Likewise.
7864         (sincos_test): Likewise.
7865         (tan_test): Add tests for large input.
7866
7867         * sysdeps/i386/fpu/libm-test-ulps: Update.
7868
7869 2012-03-15  Andreas Jaeger  <aj@suse.de>
7870
7871         [BZ #13658]
7872         * math/libm-test.inc (cos_test): Add more test cases.
7873         (sin_test): Likewise.
7874         (sincos_test): Likewise.
7875
7876 2012-03-15  Andreas Jaeger  <aj@suse.de>
7877
7878         [BZ #13837]
7879         * math/libm-test.inc (cos_test): Add a test case for large input
7880         value.
7881         (sin_test): Likewise.
7882         (sincos_test): Likewise.
7883
7884 2012-03-15  Andreas Jaeger  <aj@suse.de>,
7885         Joseph Myers  <joseph@codesourcery.com>
7886
7887         [BZ #13658]
7888         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
7889         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
7890         * sysdeps/i386/fpu/branred.c: Likewise.
7891         * sysdeps/i386/fpu/dosincos.c: Likewise.
7892         * sysdeps/i386/fpu/mpa.c: Likewise.
7893         * sysdeps/i386/fpu/s_cos.S: Likewise.
7894         * sysdeps/i386/fpu/s_sin.S: Likewise.
7895         * sysdeps/i386/fpu/s_sincos.S: Likewise.
7896         * sysdeps/i386/fpu/sincos32.c: Likewise.
7897
7898         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
7899         Define.
7900         (libc_feupdateenv_53bit): Define.
7901         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
7902         Define.
7903         (libc_feupdateenv_53bit): Define.
7904
7905         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
7906         53 bit (without extend i386 double precision).
7907
7908         * math/libm-test.inc (sincos_test): Add tests for large input.
7909         (sin): Likewise.
7910         (cos): Likewise.
7911
7912         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
7913
7914 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
7915
7916         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7917
7918 2012-03-15  David S. Miller  <davem@davemloft.net>
7919
7920         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
7921         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
7922         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
7923         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
7924         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
7925         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
7926         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
7927         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
7928         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
7929         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
7930         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
7931         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
7932         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
7933         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
7934         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
7935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
7936         file.
7937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
7938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
7939         file.
7940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
7941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
7942         file.
7943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
7944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
7945         file.
7946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
7947         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
7948         fmin/fmax sysdep routines.
7949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
7950
7951 2012-03-14  David S. Miller  <davem@davemloft.net>
7952
7953         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
7954         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
7955         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
7956         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
7957         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
7958         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
7959         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
7960         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
7961         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
7962         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
7963         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
7964         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
7965         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
7966         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
7967         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
7968         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
7969         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
7970         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
7971         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
7972         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
7973         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
7974         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
7975         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
7976         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
7977         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
7978         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
7979         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
7980         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
7981         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
7982         routines.
7983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
7984         file.
7985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
7986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
7987         file.
7988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
7989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
7990         file.
7991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
7992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
7993         file.
7994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
7995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
7996         file.
7997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
7998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
7999         file.
8000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
8001         file.
8002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
8003         file.
8004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
8005         file.
8006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
8007         New file.
8008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
8009         file.
8010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
8011         file.
8012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
8013         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
8014         file.
8015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
8016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
8017         file.
8018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
8019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
8020         file.
8021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
8022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
8023         VIS3 routines.
8024
8025         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
8026         New file.
8027
8028         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8029
8030         * sysdeps/sparc/configure.in: New file.
8031         * sysdeps/sparc/configure: Generate.
8032         * configure.in (libc_cv_sparc_as_vis3): Substitute.
8033         * configure: Regenerate.
8034         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
8035         * config.make.in (have-as-vis3): New.
8036         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
8037         available use -Av9d instead of -Av9a.
8038         * sysdeps/sparc/sparc64/Makefile: Likewise.
8039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
8040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
8041         New file.
8042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
8043         file.
8044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
8045         New file.
8046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
8047         file.
8048         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
8049         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
8050         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
8051         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
8052         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
8053
8054         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
8055         fzeros/fnegs to load 0x80000000 into a float register instead of
8056         using the stack.
8057         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
8058
8059 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
8060
8061         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8062         bits/syscall.h.
8063         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
8064         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
8065         ($(inst_includedir)/bits/syscall.h): Remove rule.
8066         ($(objpfx)bits/syscall.d): Include instead of
8067         $(objpfx)syscall-list.d.
8068         (generated): Change syscall-list.h and syscall-list.d to
8069         bits/syscall.h and bits/syscall.d.
8070
8071 2012-03-14  Roland McGrath  <roland@hack.frob.com>
8072
8073         [BZ #13846]
8074         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
8075
8076 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
8077
8078         [BZ #13841]
8079         * math/s_csqrt.c: Include <float.h>.
8080         (__csqrt): Scale large or subnormal inputs.
8081         * math/s_csqrtf.c: Likewise.
8082         * math/s_csqrtl.c: Likewise.
8083         * math/libm-test.inc (csqrt_test): Add more tests.
8084         * sysdeps/i386/fpu/libm-test-ulps: Update.
8085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8086
8087         [BZ #13840]
8088         * math/libm-test.inc (hypot_test): Add more tests.
8089
8090 2012-03-13  David S. Miller  <davem@davemloft.net>
8091
8092         [BZ #13840]
8093         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
8094         double-precision for the calculation instead of scaling.
8095
8096 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
8097
8098         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
8099         manipulate bits before adding and subtracting TWO52[sx].
8100         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
8101         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8102         Likewise.
8103         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
8104
8105 2012-03-13  David S. Miller  <davem@davemloft.net>
8106
8107         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
8108         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
8109         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
8110         rtld-global-offsets.h
8111         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8112
8113         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
8114         large parameters.
8115
8116         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
8117
8118         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
8119         'err' in the ifdef scope in which it is actually used.
8120
8121         * nss/nss_db/db-init.c: Include string.h
8122
8123 2012-03-12  David S. Miller  <davem@davemloft.net>
8124
8125         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
8126         masking out of the most significant byte of random value used.
8127         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8128         Fix coding style in previous change.
8129
8130         * sysdeps/unix/sysv/linux/kernel-features.h
8131         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
8132         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
8133         expression.
8134         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
8135         later.
8136
8137 2012-03-11  David S. Miller  <davem@davemloft.net>
8138
8139         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
8140         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
8141         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
8142         for 'resultvar' otherwise things get truncated on 64-bit.
8143
8144         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8145         Fix masking out of the most significant byte of random value used.
8146
8147         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8148
8149 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
8150
8151         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8152
8153 2012-03-09  David S. Miller  <davem@davemloft.net>
8154
8155         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
8156         variables with appropriate CPP guards.
8157         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
8158         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
8159         on resulting framesize and the management of the outregs buffer for pltexit.
8160         Preserve floating point return values across _dl_call_pltexit call.
8161         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
8162         framesize and the management of the outregs buffer for pltexit.
8163         Preserve floating point return values across _dl_call_pltexit
8164         call.
8165         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
8166         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
8167         (print_exit): Fix format string for return register value.
8168
8169 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
8170
8171         * sunrpc/Makefile (others): Add rpcgen.
8172         ($(objpfx)rpcgen): Remove special build rule and dependency on
8173         libc.
8174         * sunrpc/rpcgen.c: New file.
8175
8176 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
8177
8178         [BZ #13673]
8179         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
8180         * stdio-common/bug-vfprintf-nargs.c: Likewise.
8181         * sysdeps/i386/crti.S: Likewise.
8182         * sysdeps/i386/crtn.S: Likewise.
8183         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
8184         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
8185         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
8186         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
8187         * sysdeps/sh/crti.S: Likewise.
8188         * sysdeps/sh/crtn.S: Likewise.
8189         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
8190
8191         [BZ #13673]
8192         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
8193         with URL.
8194         * locale/programs/locfile-kw.gperf: Likewise.
8195         * locale/programs/charmap-kw.h: Regenerated.
8196         * locale/programs/locfile-kw.h: Likewise.
8197
8198         [BZ #13673]
8199         * intl/plural.y: Replace FSF snail mail address with URL.
8200         * intl/plural.c: Regenerated.
8201
8202 2012-03-09  Richard Henderson  <rth@twiddle.net>
8203
8204         * include/math_private.h: Remove file.
8205         * math/math_private.h: Move file ...
8206         * sysdeps/generic/math_private.h: ... here.
8207
8208         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
8209         * sysdeps/powerpc/fpu/math_private.h: Likewise.
8210         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8211
8212         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
8213         and <math_private.h>.
8214         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
8215         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
8216         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8217         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8218         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8219         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
8220         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
8221         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8222         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
8223         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8224         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8225         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8226         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8227         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8228         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
8229         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8230         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8231         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8232         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8233         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8234         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8235         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
8236         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
8237         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8238         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8239         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8240         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8241         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8242         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8243         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8244         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8245         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8246         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8247         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8248         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8249         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8250         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8251         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
8252         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
8253         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8254         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
8255         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
8256         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
8257         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
8258         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
8259         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
8260         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8261         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8262         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8263         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
8264         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8265         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8266         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
8267         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8268         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
8269         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8270         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8271         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
8272         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
8273         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
8274         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8275         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8276         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8277         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8278         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8279         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
8280         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
8281         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8282         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
8283         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
8284         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
8285         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8286         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
8287         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8288         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
8289         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
8290         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
8291         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8292         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
8293         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8294         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
8295         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8296         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
8297         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8298         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8299         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
8300         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
8301         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8302         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
8303         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8304         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8305         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
8306         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8307         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8308         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
8309         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
8310         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8311         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8312         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8313         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8314         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
8315         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
8316         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
8317         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
8318         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8319         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
8320         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8321         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
8322         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8323         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8324         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8325         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8326         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8327         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8328         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8329         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8330         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8331         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
8332         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8333         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8334         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8335         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
8336         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8337         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
8338         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8339         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
8340         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8341         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
8342         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
8343         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8344         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8345         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8346         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8347         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8348         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8349         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
8350         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8351         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8352         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
8353         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8354         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8355         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
8356         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
8357         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
8358         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
8359         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
8360         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
8361         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8362         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8363         * sysdeps/ieee754/k_standard.c: Likewise.
8364         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
8365         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
8366         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8367         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
8368         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8369         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
8370         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
8371         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8372         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
8373         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8374         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8375         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
8376         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8377         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
8378         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
8379         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8380         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
8381         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
8382         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8383         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
8384         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
8385         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
8386         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8387         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8388         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8389         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
8390         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8391         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8392         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
8393         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8394         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8395         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
8396         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
8397         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8398         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
8399         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
8400         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
8401         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
8402         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
8403         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
8404         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8405         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8406         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8407         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
8408         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8409         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8410         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
8411         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8412         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8413         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8414         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8415         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
8416         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8417         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8418         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8419         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8420         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
8421         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
8422         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
8423         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8424         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8425         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8426         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
8427         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
8428         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8429         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8430         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
8431         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8432         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
8433         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
8434         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8435         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8436         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
8437         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
8438         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
8439         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8440         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
8441         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
8442         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8443         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
8444         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8445         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8446         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8447         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8448         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
8449         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8450         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
8451         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
8452         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
8453         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
8454         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
8455         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
8456         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
8457         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
8458         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
8459         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
8460         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
8461         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
8462         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
8463         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
8464         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
8465         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
8466         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8467         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
8468         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
8469         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
8470         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
8471         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
8472         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
8473         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
8474         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
8475         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
8476         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
8477         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8478         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
8479         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8480         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
8481         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8482         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8483         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8484         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8485         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8486         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
8487         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8488         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8489         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8490         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
8491         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8492         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
8493         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8494         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
8495         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
8496         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
8497         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
8498         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
8499         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
8500         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
8501         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
8502         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
8503         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8504         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8505         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
8506         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8507         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8508         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
8509         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
8510         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
8511         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
8512         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
8513         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
8514         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
8515         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8516         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
8517         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
8518         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
8519         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
8520         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
8521         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
8522         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
8523         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
8524         * sysdeps/ieee754/s_lib_version.c: Likewise.
8525         * sysdeps/ieee754/s_matherr.c: Likewise.
8526         * sysdeps/ieee754/s_signgam.c: Likewise.
8527         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8528         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8529         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8530         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8531         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8532         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8533         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
8534         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
8535         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
8536         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8537         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8538         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8539         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
8540         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
8541         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
8542         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
8543         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
8544         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
8545         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
8546         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8547         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8548
8549 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
8550
8551         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
8552         * sunrpc/rpc_main.c: Likewise.
8553         * sunrpc/rpc_svcout.c: Likewise.
8554
8555 2012-03-09  David S. Miller  <davem@davemloft.net>
8556
8557         * include/math_private.h: New file.
8558
8559 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
8560
8561         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
8562         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
8563         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
8564         from <bits/socket_type.h>.
8565         (enum __socket_type): Don't define here.
8566         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
8567         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8568         bits/socket_type.h.
8569
8570         [BZ #13566]
8571         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
8572         checking __USE_GNU.
8573
8574         * Makerules ($(inst_includedir)/%.h): New rule.
8575         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
8576         (install-others): Remove variable setting.
8577         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
8578
8579 2012-03-08  Richard Henderson  <rth@twiddle.net>
8580
8581         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
8582         from macro to inline function; merge with the
8583         !__LIBC_INTERNAL_MATH_INLINES version.
8584         (__ieee754_sqrtf): Likewise.
8585
8586         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
8587         to inline function.
8588         (__rintf, __floor, __floorf): Likewise.
8589
8590         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
8591         macro to inline function.
8592         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
8593
8594         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
8595         not <math/math_private.h>.
8596
8597 2012-03-08  David S. Miller  <davem@davemloft.net>
8598
8599         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
8600         copyright year.
8601         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
8602
8603 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
8604
8605         * resolv/gai_misc.c (handle_requests): Fix struct timespec
8606         normalization.
8607         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
8608         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
8609
8610 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
8611
8612         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
8613         be defined individually, they must be defined as a block.  Define
8614         S for printing a string instead of hidint the different by using a
8615         macro for adding the 'l'.
8616         * stdio-common/tst-fphex-wide.c: Adjust.
8617
8618 2012-03-07  Marek Polacek  <polacek@redhat.com>
8619
8620         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
8621
8622 2012-03-08  Marek Polacek  <polacek@redhat.com>
8623
8624         [BZ #13806]
8625         * stdio-common/Makefile (tests): Add tst-fphex-wide.
8626         * stdio-common/tst-fphex.c: Define a few macros to make the
8627         test reusable.  Use them.
8628         * stdio-common/tst-fphex-wide.c: New file.
8629
8630 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
8631
8632         [BZ #6911]
8633         * manual/macros.texi (gnusystems): New macro.
8634         (nongnusystems): Likewise.
8635         (gnulinuxhurdsystems): Likewise.
8636         (gnuhurdsystems): Likewise..
8637         (gnulinuxsystems): Likewise.
8638         * manual/charset.texi: Use new macros or @theglibc{} to refer to
8639         variants of the GNU system, not "GNU system".
8640         * manual/conf.texi: Likewise.
8641         * manual/errno.texi: Likewise.  Update example of errno macro
8642         expansion.
8643         * manual/filesys.texi: Likewise.
8644         (getumask): Document as specific to GNU/Hurd.
8645         * manual/install.texi: Likewise.  Reword some references to
8646         GNU/Linux.
8647         * manual/intro.texi: Likewise.
8648         * manual/io.texi: Likewise.
8649         (File Name Portability): Detail which constraints are inapplicable
8650         to all GNU systems and which are only inapplicable to GNU/Hurd.
8651         * manual/job.texi: Likewise.
8652         * manual/llio.texi: Likewise.
8653         (O_NOCTTY): Document as present on GNU/Linux.
8654         * manual/maint.texi: Likewise.
8655         * manual/memory.texi: Likewise.
8656         * manual/pattern.texi: Likewise.
8657         * manual/pipe.texi: Likewise.
8658         * manual/process.texi: Likewise.
8659         * manual/resource.texi: Likewise.
8660         (RUSAGE_CHILDREN): Remove statement about specifying a particular
8661         child on GNU/Hurd.
8662         * manual/setjmp.texi: Likewise.
8663         * manual/signal.texi: Likewise.
8664         * manual/startup.texi: Likewise.
8665         * manual/stdio.texi: Likewise.
8666         * manual/terminal.texi: Likewise.
8667         (ONLCR): Document as POSIX.
8668         (OXTABS): Document availability on GNU/Linux as XTABS.
8669         (ONOEOT): Document availability separately from other bits.
8670         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
8671         * manual/time.texi: Likewise.
8672         * manual/users.texi: Likewise.
8673         * INSTALL: Regenerated.
8674         * sysdeps/gnu/errlist.c: Regenerated.
8675
8676         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
8677         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
8678         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
8679         puts.
8680         * configure: Regenerated.
8681
8682 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
8683
8684         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
8685         default includes instead of AC_HEADER_CHECK.
8686         * sysdeps/i386/configure: Regenerated.
8687
8688         [BZ #10716]
8689         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
8690         * math/s_cacoshf.c (__cacoshf): Likewise.
8691         * math/s_cacoshl.c (__cacoshl): Likewise.
8692         * math/s_casinh.c (__casinh): Set signs of result from argument.
8693         * math/s_casinhf.c (__casinhf): Likewise.
8694         * math/s_casinhl.c (__casinhl): Likewise.
8695         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
8696         (casinh_test): Add more tests.
8697         * sysdeps/i386/fpu/libm-test-ulps: Update.
8698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8699
8700 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
8701
8702         * po/zh_TW.po: Update from translation team.
8703
8704         * login/Makefile (distribute): Remove variable.
8705         * catgets/Makefile: Likewise.
8706         * mach/Makefile: Likewise.
8707         * malloc/Makefile: Likewise.
8708         * misc/Makefile: Likewise.
8709         * iconv/Makefile: Likewise.
8710         * nscd/Makefile: Likewise.
8711         * hurd/Makefile: Likewise.
8712         * manual/Makefile: Likewise.
8713         * locale/Makefile: Likewise.
8714         * intl/Makefile: Likewise.
8715         * conform/Makefile: Likewise.
8716         * nss/Makefile: Likewise.
8717         * time/Makefile: Likewise.
8718         * soft-fp/Makefile: Likewise.
8719         * dirent/Makefile: Likewise.
8720         * gmon/Makefile: Likewise.
8721         * po/Makefile: Likewise.
8722         * rt/Makefile: Likewise.
8723         * socket/Makefile: Likewise.
8724         * math/Makefile: Likewise.
8725         * signal/Makefile: Likewise.
8726         * debug/Makefile: Likewise.
8727         * elf/Makefile: Likewise.
8728         * timezone/Makefile: Likewise.
8729         * stdlib/Makefile: Likewise.
8730         * iconvdata/Makefile: Likewise.
8731         * sunrpc/Makefile: Likewise.
8732         * io/Makefile: Likewise.
8733         * argp/Makefile: Likewise.
8734         * inet/Makefile: Likewise.
8735         * hesiod/Makefile: Likewise.
8736         * grp/Makefile: Likewise.
8737         * csu/Makefile: Likewise.
8738         * wctype/Makefile: Likewise.
8739         * crypt/Makefile: Likewise.
8740         * libio/Makefile: Likewise.
8741         * string/Makefile: Likewise.
8742         * nis/Makefile: Likewise.
8743         * resolv/Makefile: Likewise.
8744         * stdio-common/Makefile: Likewise.
8745         * wcsmbs/Makefile: Likewise.
8746         * dlfcn/Makefile: Likewise.
8747         * posix/Makefile: Likewise.
8748
8749         [BZ #6959]
8750         * timezone/Makefile: Don't install timezone files, just the programs
8751         and scripts.
8752
8753 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
8754
8755         * nss/databases.def: Add missing gshadow entry.
8756
8757         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
8758
8759 2012-03-06  Marek Polacek  <polacek@redhat.com>
8760
8761         [BZ #13726]
8762         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
8763         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
8764         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
8765         * stdio-common/tst-long-dbl-fphex.c: New file.
8766
8767 2012-03-06  David S. Miller  <davem@davemloft.net>
8768
8769         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8770         (set_obp_int): New function.
8771         (get_obp_int): New function.
8772         (__get_clockfreq_via_dev_openprom): Likewise.
8773         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
8774         Avoid unused variable warnings on 'val' and use builtin_expect.
8775         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
8776         __builtin_expect.
8777         (INLINE_CLONE_SYSCALL): Likewise.
8778
8779 2012-03-05  David S. Miller  <davem@davemloft.net>
8780
8781         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8782
8783 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
8784
8785         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8786
8787         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
8788         only for |x| >= 40.
8789         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8790
8791 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
8792
8793         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
8794         Replace gettimeofday with __vdso_gettimeofday.
8795
8796         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8797         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
8798         __vdso_clock_gettime and __vdso_getcpu.
8799
8800         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
8801         time with __vdso_time.
8802
8803 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
8804
8805         * manual/lang.texi (size_t): Note types to which size_t may be
8806         equivalent with the GNU C Library, but do not describe when
8807         differences between them are significant.
8808
8809 2012-03-05  Andreas Jaeger  <aj@suse.de>
8810
8811         * sysdeps/i386/fpu/libm-test-ulps: Update.
8812
8813 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
8814
8815         [BZ #3976]
8816         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
8817         (__ieee754_pow): Save and restore rounding mode and use
8818         round-to-nearest for main computations.
8819         * math/libm-test.inc (pow_test_tonearest): New function.
8820         (pow_test_towardzero): Likewise.
8821         (pow_test_downward): Likewise.
8822         (pow_test_upward): Likewise.
8823         (main): Call the new functions.
8824         * sysdeps/i386/fpu/libm-test-ulps: Update.
8825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8826
8827         [BZ #3976]
8828         * math/libm-test.inc (cosh_test_tonearest): New function.
8829         (cosh_test_towardzero): Likewise.
8830         (cosh_test_downward): Likewise.
8831         (cosh_test_upward): Likewise.
8832         (sinh_test_tonearest): Likewise.
8833         (sinh_test_towardzero): Likewise.
8834         (sinh_test_downward): Likewise.
8835         (sinh_test_upward): Likewise.
8836         (main): Call the new functions.
8837         * sysdeps/i386/fpu/libm-test-ulps: Update.
8838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8839
8840 2012-03-05  Tom de Vries  <tom@codesourcery.com>
8841
8842         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
8843         default stack guard is set in last bytes.
8844         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
8845
8846 2012-03-05  Kees Cook  <keescook@chromium.org>
8847
8848         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
8849
8850         [BZ #13656]
8851         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
8852         possibly allocate from heap instead of stack.
8853         * stdio-common/bug-vfprintf-nargs.c: New file.
8854         * stdio-common/Makefile (tests): Add nargs overflow test.
8855
8856 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
8857
8858         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8859
8860 2012-03-03  Marek Polacek  <polacek@redhat.com>
8861
8862         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
8863         * math/math_private.h: Likewise.
8864         * stdlib/tst-strtod.c: Likewise.
8865         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8866         * sysdeps/x86_64/bits/atomic.h: Likewise.
8867
8868 2012-03-02  David S. Miller  <davem@davemloft.net>
8869
8870         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
8871         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
8872         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
8873         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
8874         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
8875         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
8876         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
8877         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
8878
8879 2012-03-02  Roland McGrath  <roland@hack.frob.com>
8880
8881         [BZ #13792]
8882         * manual/examples/README: New file, says the example source files
8883         can be used under GPL>=2.
8884         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
8885         line containing just "*/".
8886         * manual/examples/add.c: Add copyright header (GPL>=2).
8887         * manual/examples/argp-ex1.c: Likewise.
8888         * manual/examples/argp-ex2.c: Likewise.
8889         * manual/examples/argp-ex3.c: Likewise.
8890         * manual/examples/argp-ex4.c: Likewise.
8891         * manual/examples/atexit.c: Likewise.
8892         * manual/examples/db.c: Likewise.
8893         * manual/examples/dir.c: Likewise.
8894         * manual/examples/dir2.c: Likewise.
8895         * manual/examples/execinfo.c: Likewise.
8896         * manual/examples/filecli.c: Likewise.
8897         * manual/examples/filesrv.c: Likewise.
8898         * manual/examples/fmtmsgexpl.c: Likewise.
8899         * manual/examples/genpass.c: Likewise.
8900         * manual/examples/inetcli.c: Likewise.
8901         * manual/examples/inetsrv.c: Likewise.
8902         * manual/examples/isockad.c: Likewise.
8903         * manual/examples/longopt.c: Likewise.
8904         * manual/examples/memopen.c: Likewise.
8905         * manual/examples/memstrm.c: Likewise.
8906         * manual/examples/mkfsock.c: Likewise.
8907         * manual/examples/mkisock.c: Likewise.
8908         * manual/examples/mygetpass.c: Likewise.
8909         * manual/examples/pipe.c: Likewise.
8910         * manual/examples/popen.c: Likewise.
8911         * manual/examples/rprintf.c: Likewise.
8912         * manual/examples/search.c: Likewise.
8913         * manual/examples/select.c: Likewise.
8914         * manual/examples/setjmp.c: Likewise.
8915         * manual/examples/sigh1.c: Likewise.
8916         * manual/examples/sigusr.c: Likewise.
8917         * manual/examples/stpcpy.c: Likewise.
8918         * manual/examples/strdupa.c: Likewise.
8919         * manual/examples/strftim.c: Likewise.
8920         * manual/examples/strncat.c: Likewise.
8921         * manual/examples/subopt.c: Likewise.
8922         * manual/examples/swapcontext.c: Likewise.
8923         * manual/examples/termios.c: Likewise.
8924         * manual/examples/testopt.c: Likewise.
8925         * manual/examples/testpass.c: Likewise.
8926         * manual/examples/timeval_subtract.c: Likewise.
8927
8928         [BZ #13792]
8929         * manual/time.texi (Elapsed Time): Move timeval_subtract example
8930         function to ...
8931         * manual/timeval_subtract.c.texi: ... here, new file.
8932
8933 2012-03-02  David S. Miller  <davem@davemloft.net>
8934
8935         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
8936
8937 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
8938
8939         [BZ #3976]
8940         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
8941         (__sin): Save and restore rounding mode and use round-to-nearest
8942         for all computations.
8943         (__cos): Save and restore rounding mode and use round-to-nearest
8944         for all computations.
8945         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
8946         <fenv.h>.
8947         (tan): Save and restore rounding mode and use round-to-nearest for
8948         all computations.
8949         * math/libm-test.inc (cos_test_tonearest): New function.
8950         (cos_test_towardzero): Likewise.
8951         (cos_test_downward): Likewise.
8952         (cos_test_upward): Likewise.
8953         (sin_test_tonearest): Likewise.
8954         (sin_test_towardzero): Likewise.
8955         (sin_test_downward): Likewise.
8956         (sin_test_upward): Likewise.
8957         (tan_test_tonearest): Likewise.
8958         (tan_test_towardzero): Likewise.
8959         (tan_test_downward): Likewise.
8960         (tan_test_upward): Likewise.
8961         (main): Call the new functions.
8962         * sysdeps/i386/fpu/libm-test-ulps: Update.
8963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8964
8965         [BZ #10135]
8966         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
8967         small n, then large n, before computing and testing k+n.
8968         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8969         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8970         Likewise.
8971         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8972         Likewise.
8973         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
8974         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8975         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8976         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8977         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8978         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8979         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8980         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
8981         * math/libm-test.inc (scalbn_test): Add more tests.
8982         (scalbln_test): Likewise.
8983
8984         * manual/filesys.texi (mode_t): Describe constraints on size and
8985         signedness, not exact equivalence to a particular type.
8986         (ino_t): Likewise.
8987         (ino64_t): Likewise.
8988         (dev_t): Likewise.
8989         (nlink_t): Likewise.
8990         (blkcnt_t): Likewise.
8991         (blkcnt64_t): Likewise.
8992         * manual/llio.texi (off_t): Likewise.
8993
8994         [BZ #3976]
8995         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
8996         (__ieee754_exp): Save and restore rounding mode and use
8997         round-to-nearest for all computations.
8998         * math/libm-test.inc (exp_test_tonearest): New function.
8999         (exp_test_towardzero): Likewise.
9000         (exp_test_downward): Likewise.
9001         (exp_test_upward): Likewise.
9002         (main): Call the new functions.
9003         * sysdeps/i386/fpu/libm-test-ulps: Update.
9004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9005
9006 2012-03-01  Chris Demetriou  <cgd@google.com>
9007
9008         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
9009         have predictable order.
9010
9011 2012-03-01  David S. Miller  <davem@davemloft.net>
9012
9013         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
9014
9015         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
9016         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
9017         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
9018         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
9019
9020         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
9021         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
9022         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
9023         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
9024         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
9025         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
9026         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
9027         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
9028         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
9029
9030         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9031
9032         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
9033         * sysdeps/sparc/fpu/libm-test-ulps: to here.
9034         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
9035
9036         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
9037         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9038         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9039         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
9040         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
9041         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
9042         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
9043         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9044         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9045         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
9046         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
9047         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9048         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9049         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
9050         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
9051         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9052         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
9053         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
9054         * sysdeps/sparc/elf/configure: Regenerated.
9055
9056 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
9057
9058         * configure.in (AS, LD): Require binutils 2.20 or later.
9059         * configure: Regenerated.
9060         * manual/install.texi (Tools for Compilation): Give binutils 2.20
9061         as required minimum version.
9062         * INSTALL: Regenerated.
9063
9064         [BZ #2541]
9065         [BZ #4108]
9066         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
9067         before squaring exponent.
9068         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
9069         bottom long double and 27 bits of top long double before squaring
9070         exponent.
9071         * math/libm-test.inc (erfc_test): Add more tests.
9072         * sysdeps/i386/fpu/libm-test-ulps: Update.
9073         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9074         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9075
9076 2012-03-01  Kai Tietz  <ktietz@redhat.com>
9077
9078         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
9079         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
9080         containing bit-fields.
9081         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9082         * soft-fp/single.h (_FP_UNION_S): Likewise.
9083         * soft-fp/double.h (_FP_UNION_D): Likewise.
9084
9085 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
9086
9087         [BZ #13786]
9088         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
9089         not include ../strcmp.S.
9090         [USE_AS_STRNCASECMP_L]: Likewise.
9091         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
9092         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
9093         * sysdeps/i386/i686/multiarch/strncase_l-c.c
9094         (__strncasecmp_l_ia32): Define as alias to
9095         __strncasecmp_l_nonascii.
9096
9097         [BZ #5794]
9098         * math/libm-test.inc (expm1_test): Add test for bug 5794.
9099         * sysdeps/i386/fpu/libm-test-ulps: Update.
9100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9101
9102         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
9103         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9104
9105 2012-02-29  Jeff Law  <law@redhat.com>
9106
9107         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
9108         out of bounds read.
9109
9110 2012-02-29  Marek Polacek  <polacek@redhat.com>
9111
9112         [BZ #13706]
9113         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
9114         * elf/Makefile: Add rules to run tst-unused-dep.out.
9115
9116 2012-02-28  David S. Miller  <davem@davemloft.net>
9117
9118         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
9119         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
9120         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
9121         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
9122         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
9123         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
9124
9125 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
9126
9127         * math/libm-test.inc (llround_test): Move one test from
9128         lround_test.  Use TEST_f_L in moved test.
9129         (lround_test): Move misplaced test to llround_test.  Add testcase
9130         from bug 2561.
9131
9132 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
9133
9134         * sysdeps/x86_64/fpu/e_expf.S: New file.
9135         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
9136
9137 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
9138
9139         [BZ #13637]
9140         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
9141         of remain_len that may cause incomplete multi-byte character and
9142         false match.
9143         * posix/bug-regex33.c: New file.
9144         * posix/Makefile (tests): Add bug-regex33.
9145
9146 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
9147
9148         * manual/macros.texi: New file.
9149         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
9150         * manual/libc.texinfo: Include macros.texi.
9151         * manual/creatute.texi: Likewise.
9152         * manual/install.texi: Likewise.
9153         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
9154         @glibcadj{} in references to the GNU C Library.
9155         * manual/charset.texi: Likewise.
9156         * manual/conf.texi: Likewise.
9157         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
9158         when not using those macros.
9159         * manual/creature.texi: Likewise.
9160         * manual/crypt.texi: Likewise.
9161         * manual/errno.texi: Likewise.
9162         * manual/filesys.texi: Likewise.
9163         * manual/header.texi: Likewise.
9164         * manual/install.texi: Likewise.
9165         * manual/intro.texi: Likewise.
9166         * manual/io.texi: Likewise.
9167         * manual/job.texi: Likewise.
9168         * manual/lang.texi: Likewise.
9169         * manual/libc.texiinfo: Likewise.
9170         * manual/llio.texi: Likewise.
9171         * manual/locale.texi: Likewise.
9172         * manual/maint.texi: Likewise.
9173         * manual/math.texi: Likewise.
9174         * manual/memory.texi: Likewise.
9175         * manual/message.texi: Likewise.
9176         * manual/nss.texi: Likewise.
9177         * manual/pattern.texi: Likewise.
9178         * manual/process.texi: Likewise.
9179         * manual/resource.texi: Likewise.
9180         * manual/search.texi: Likewise.
9181         * manual/setjmp.texi: Likewise.
9182         * manual/signal.texi: Likewise.
9183         * manual/socket.texi: Likewise.
9184         * manual/startup.texi: Likewise.
9185         * manual/stdio.texi: Likewise.
9186         * manual/string.texi: Likewise.
9187         * manual/sysinfo.texi: Likewise.
9188         * manual/syslog.texi: Likewise.
9189         * manual/terminal.texi: Likewise.
9190         * manual/time.texi: Likewise.
9191         * manual/users.texi: Likewise.
9192         * INSTALL: Regenerated.
9193         * NOTES: Regenerated.
9194         * sysdeps/gnu/errlist.c: Regenerated.
9195
9196 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
9197
9198         * include/dirent.h: Include <dirstream.h> before
9199         <dirent/dirent.h>.
9200
9201 2012-02-28  David S. Miller  <davem@davemloft.net>
9202
9203         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
9204         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
9205         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
9206         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
9207
9208 2012-02-27  David S. Miller  <davem@davemloft.net>
9209
9210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
9211         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
9212         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
9213         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
9214
9215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
9216         frame pointer instead of stack pointer relative arg slot.
9217         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
9218         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
9219         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
9220
9221 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
9222
9223         [BZ #3992]
9224         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
9225
9226 2012-02-27  David S. Miller  <davem@davemloft.net>
9227
9228         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
9229         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
9230         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9231         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
9232         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
9233         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
9234         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
9235         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
9236
9237 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
9238
9239         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
9240         later.  Allow versions 5-9.
9241         * configure: Regenerated.
9242         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
9243         required minimum version and 4.6 as recommended version.  Do not
9244         mention bugs in GCC 2.7 and 2.8.
9245         * INSTALL: Regenerated.
9246
9247 2012-02-27  David S. Miller  <davem@davemloft.net>
9248
9249         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
9250         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
9251         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
9252         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
9253         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
9254         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
9255         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
9256         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
9257
9258         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
9259         manipulate bits before adding and subtracting TWO112[sx].
9260         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9261
9262 2012-02-27  Roland McGrath  <roland@hack.frob.com>
9263
9264         [BZ #13775]
9265         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
9266         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
9267         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
9268         being in POSIX, because they are in 1003.1-2008.
9269
9270         * rt/tst-aio.c: Include <fcntl.h>.
9271         * rt/tst-aio7.c: Likewise.
9272         * rt/tst-aio64.c: Likewise.
9273
9274         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
9275
9276 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
9277
9278         * manual/install.texi (--with-headers): Describe headers as
9279         interface headers, not private headers.
9280         (Specific advice for GNU/Linux systems): Describe use of headers
9281         from "make headers_install", not private headers from older
9282         kernels.
9283         * INSTALL: Regenerated.
9284         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
9285         Change to 2.6.19.
9286         * sysdeps/unix/sysv/linux/configure: Regenerated.
9287
9288         * manual/llio.texi (fclean): Remove documentation.
9289
9290         * manual/Makefile (libc-texi-generated): New variable.  Include
9291         version.texi.
9292         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
9293         $(libc-texi-generated), not duplicated list of files.
9294         (version.texi, stamp-version): New rules.
9295         (realclean): Remove $(libc-texi-generated), not individual files
9296         from that list.  Do not remove dir-add.texinfo.
9297         * manual/libc.texinfo: Comment out uses of edition numbers and
9298         references to printed manual.  Remove last-updated dates.
9299         (EDITION): Comment out.
9300         (ISBN): Likewise.
9301         (VERSION, UPDATED): Remove.
9302         (version.texi): Include.
9303
9304 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
9305
9306         * sysdeps/posix/spawni.c: Include <signal.h>.
9307         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
9308         * sysdeps/pthread/aio_fsync.c: Likewise.
9309
9310 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
9311
9312         * conform/Makefile (tests): Run only when not cross-compiling and
9313         when fast-check is not defined.
9314
9315         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
9316         * conform/data/limits.h-data: Fixes for POSIX2008.
9317         * conform/run-conformtest.sh: Run all tests.
9318         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
9319         headers.
9320         * include/bits/dlfcn.h: Likewise.
9321         * include/langinfo.h: Likewise.
9322         * include/monetary.h: Likewise.
9323         * include/sys/poll.h: Likewise.
9324
9325         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
9326         for __USE_GNU.
9327         * posix/spawn.h: Define __need_sigset_t.
9328         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
9329         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
9330         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
9331         to get sigevent_t only.
9332         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
9333         only for __USE_GNU.
9334         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9335         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
9336         process_vm_writev only for __USE_GNU.
9337         * termios/termios.h: Declare tcgetsid also for POSIX2008.
9338
9339         * conform/Makefile: For now ignore errors from run-conformtest.
9340         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
9341         POSIX to avoid namespace pollution.  Don't prepend headers.
9342         * conform/data/aio.h-data: Fixes for POSIX testing.
9343         * conform/data/fcntl.h-data: Likewise.
9344         * conform/data/glob.h-data: Likewise.
9345         * conform/data/grp.h-data: Likewise.
9346         * conform/data/pthread.h-data: Likewise.
9347         * conform/data/pwd.h-data: Likewise.
9348         * conform/data/signal.h-data: Likewise.
9349         * conform/data/spawn.h-data: Likewise.
9350         * conform/data/stdio.h-data: Likewise.
9351         * conform/data/stdlib.h-data: Likewise.
9352         * conform/data/stropts.h-data: Likewise.
9353         * conform/data/sys/mman.h-data: Likewise.
9354         * conform/data/sys/stat.h-data: Likewise.
9355         * conform/data/sys/types.h-data: Likewise.
9356         * conform/data/sys/wait.h-data: Likewise.
9357         * conform/data/time.h-data: Likewise.
9358         * conform/data/unistd.h-data: Likewise.
9359         * conform/data/utime.h-data: Likewise.
9360
9361         * io/sys/stat.h: fchmod was always in POSIX.
9362         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
9363         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
9364         * rt/aio.h: Define __need_timespec before including <time.h>.
9365         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
9366         struct.  Add forward declaration of pthread_attr_t and use it in
9367         sigevent.
9368         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9369         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9370         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
9371         always remove CLK_TCK definition.
9372
9373 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
9374
9375         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
9376
9377 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
9378
9379         * conform/run-conformtest.sh: New file.
9380         * conform/Makefile: Run run-conformtest for tests.
9381         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
9382         support.
9383
9384         * conform/data/uchar.h-data: New file.
9385         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
9386         * conform/data/arpa/inet.h-data: Likewise.
9387         * conform/data/assert.h-data: Likewise.
9388         * conform/data/complex.h-data: Likewise.
9389         * conform/data/cpio.h-data: Likewise.
9390         * conform/data/ctype.h-data: Likewise.
9391         * conform/data/dirent.h-data: Likewise.
9392         * conform/data/dlfcn.h-data: Likewise.
9393         * conform/data/errno.h-data: Likewise.
9394         * conform/data/fcntl.h-data: Likewise.
9395         * conform/data/float.h-data: Likewise.
9396         * conform/data/fmtmsg.h-data: Likewise.
9397         * conform/data/fnmatch.h-data: Likewise.
9398         * conform/data/ftw.h-data: Likewise.
9399         * conform/data/glob.h-data: Likewise.
9400         * conform/data/grp.h-data: Likewise.
9401         * conform/data/iconv.h-data: Likewise.
9402         * conform/data/inttypes.h-data: Likewise.
9403         * conform/data/langinfo.h-data: Likewise.
9404         * conform/data/libgen.h-data: Likewise.
9405         * conform/data/limits.h-data: Likewise.
9406         * conform/data/locale.h-data: Likewise.
9407         * conform/data/math.h-data: Likewise.
9408         * conform/data/monetary.h-data: Likewise.
9409         * conform/data/mqueue.h-data: Likewise.
9410         * conform/data/ndbm.h-data: Likewise.
9411         * conform/data/net/if.h-data: Likewise.
9412         * conform/data/netdb.h-data: Likewise.
9413         * conform/data/netinet/in.h-data: Likewise.
9414         * conform/data/nl_types.h-data: Likewise.
9415         * conform/data/poll.h-data: Likewise.
9416         * conform/data/pthread.h-data: Likewise.
9417         * conform/data/pwd.h-data: Likewise.
9418         * conform/data/regex.h-data: Likewise.
9419         * conform/data/sched.h-data: Likewise.
9420         * conform/data/search.h-data: Likewise.
9421         * conform/data/semaphore.h-data: Likewise.
9422         * conform/data/setjmp.h-data: Likewise.
9423         * conform/data/signal.h-data: Likewise.
9424         * conform/data/spawn.h-data: Likewise.
9425         * conform/data/stdarg.h-data: Likewise.
9426         * conform/data/stdio.h-data: Likewise.
9427         * conform/data/stdlib.h-data: Likewise.
9428         * conform/data/string.h-data: Likewise.
9429         * conform/data/strings.h-data: Likewise.
9430         * conform/data/stropts.h-data: Likewise.
9431         * conform/data/sys/ipc.h-data: Likewise.
9432         * conform/data/sys/mman.h-data: Likewise.
9433         * conform/data/sys/msg.h-data: Likewise.
9434         * conform/data/sys/resource.h-data: Likewise.
9435         * conform/data/sys/select.h-data: Likewise.
9436         * conform/data/sys/sem.h-data: Likewise.
9437         * conform/data/sys/shm.h-data: Likewise.
9438         * conform/data/sys/socket.h-data: Likewise.
9439         * conform/data/sys/stat.h-data: Likewise.
9440         * conform/data/sys/statvfs.h-data: Likewise.
9441         * conform/data/sys/time.h-data: Likewise.
9442         * conform/data/sys/timeb.h-data: Likewise.
9443         * conform/data/sys/times.h-data: Likewise.
9444         * conform/data/sys/types.h-data: Likewise.
9445         * conform/data/sys/uio.h-data: Likewise.
9446         * conform/data/sys/un.h-data: Likewise.
9447         * conform/data/sys/utsname.h-data: Likewise.
9448         * conform/data/sys/wait.h-data: Likewise.
9449         * conform/data/syslog.h-data: Likewise.
9450         * conform/data/tar.h-data: Likewise.
9451         * conform/data/termios.h-data: Likewise.
9452         * conform/data/utime.h-data: Likewise.
9453         * conform/data/utmpx.h-data: Likewise.
9454         * conform/data/varargs.h-data: Likewise.
9455         * conform/data/wchar.h-data: Likewise.
9456         * conform/data/wctype.h-data: Likewise.
9457         * conform/data/wordexp.h-data: Likewise.
9458
9459         * include/stropts.h: New file.
9460         * include/uchar.h: New file.
9461         * include/aio.h: Changes to allow conformtest.pl to use the headers.
9462         * include/assert.h: Likewise.
9463         * include/ctype.h: Likewise.
9464         * include/dirent.h: Likewise.
9465         * include/dlfcn.h: Likewise.
9466         * include/fcntl.h: Likewise.
9467         * include/fnmatch.h: Likewise.
9468         * include/glob.h: Likewise.
9469         * include/grp.h: Likewise.
9470         * include/libio.h: Likewise.
9471         * include/locale.h: Likewise.
9472         * include/math.h: Likewise.
9473         * include/net/if.h: Likewise.
9474         * include/netdb.h: Likewise.
9475         * include/netinet/in.h: Likewise.
9476         * include/pthread.h: Likewise.
9477         * include/pwd.h: Likewise.
9478         * include/regex.h: Likewise.
9479         * include/sched.h: Likewise.
9480         * include/search.h: Likewise.
9481         * include/setjmp.h: Likewise.
9482         * include/signal.h: Likewise.
9483         * include/stdio.h: Likewise.
9484         * include/stdlib.h: Likewise.
9485         * include/string.h: Likewise.
9486         * include/sys/cdefs.h: Likewise.
9487         * include/sys/mman.h: Likewise.
9488         * include/sys/msg.h: Likewise.
9489         * include/sys/resource.h: Likewise.
9490         * include/sys/select.h: Likewise.
9491         * include/sys/socket.h: Likewise.
9492         * include/sys/stat.h: Likewise.
9493         * include/sys/statvfs.h: Likewise.
9494         * include/sys/time.h: Likewise.
9495         * include/sys/times.h: Likewise.
9496         * include/sys/uio.h: Likewise.
9497         * include/sys/utsname.h: Likewise.
9498         * include/sys/wait.h: Likewise.
9499         * include/termios.h: Likewise.
9500         * include/time.h: Likewise.
9501         * include/ulimit.h: Likewise.
9502         * include/unistd.h: Likewise.
9503         * include/utime.h: Likewise.
9504         * include/wchar.h: Likewise.
9505         * include/wctype.h: Likewise.
9506         * include/wordexp.h: Likewise.
9507
9508         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
9509
9510         * time/time.h: TIME_UTC must be a macro.
9511         Make timespec_get available for ISO C11 only as well.
9512
9513 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
9514
9515         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
9516         Reported by Peng Haitao <penght@cn.fujitsu.com>.
9517
9518 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9519
9520         * configure.in: Use -o not -a in test for unsupported multi-arch.
9521
9522 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9523
9524         * manual/texinfo.tex: Update to version 2012-01-19.16.
9525
9526 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9527
9528         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
9529
9530 2012-02-24  Roland McGrath  <roland@hack.frob.com>
9531
9532         [BZ #13738]
9533         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
9534         * manual/fdl-1.3.texi: New file.
9535         * manual/fdl-1.1.texi: File removed.
9536
9537         [BZ #13738]
9538         * manual/libc.texinfo (FDL_VERSION): New @set.
9539         Use it for mention of FDL in cover text.
9540         (Documentation License): Use it in @include file name.
9541
9542 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9543             Roland McGrath  <roland@hack.frob.com>
9544
9545         [BZ #5461]
9546         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
9547         not LONG_LONG_MAX and LONG_LONG_MIN.
9548         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
9549         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
9550         name.
9551         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
9552
9553 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9554
9555         [BZ #2547]
9556         [BZ #11365]
9557         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
9558         manipulate bits before adding and subtracting TWO23[sx].
9559         * math/libm-test.inc (nearbyint_test): Add more tests.
9560
9561 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9562
9563         [BZ #2548]
9564         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
9565         bits before adding and subtracting TWO23[sx].
9566         * math/libm-test.inc (rint_test): Add more tests.
9567         (rint_test_tonearest): Likewise.
9568         (rint_test_towardzero): Likewise.
9569         (rint_test_downward): Likewise.
9570         (rint_test_upward: Likewise.
9571
9572 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9573
9574         [BZ #10110]
9575         * include/stdc-predef.h: New file.  Extracted from features.h.
9576         * include/features.h: Include stdc-predef.h.
9577         * Makefile (headers): Add stdc-predef.h.
9578         * CONFORMANCE (Compiler limitations): Update.
9579
9580 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9581
9582         * manual/libc.texinfo (VERSION, UPDATED): Revert.
9583
9584 2012-02-21  David S. Miller  <davem@davemloft.net>
9585
9586         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
9587         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
9588
9589 2012-02-20  David S. Miller  <davem@davemloft.net>
9590
9591         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
9592         using a normal save/restore sequence, rather than allocating a
9593         dummy stack frame just to store a frame pointer and restore.
9594         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9595
9596 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9597
9598         * manual/install.texi: Fix stray word in line-wrapped comment.
9599
9600 2012-02-20  David S. Miller  <davem@davemloft.net>
9601
9602         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
9603         both binutils and gcc support GOTDATA.
9604
9605         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
9606         "rd %pc" in the PIC register setup sequences.
9607
9608         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
9609         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
9610         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9611         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9612         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9613         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9614         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9615         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9616         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
9617         (SYSCALL_ERROR_HANDLER): Likewise.
9618         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
9619         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
9620         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
9621         (SYSCALL_ERROR_HANDLER): Likewise.
9622
9623         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
9624         (HAVE_GCC_GOTDATA): New.
9625         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
9626         relocation support in both binutils and gcc.
9627         * sysdeps/sparc/elf/configure: Regenerate.
9628
9629         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
9630         * sysdeps/sparc/sparc32/elf/configure: Delete.
9631         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
9632         * sysdeps/sparc/sparc64/elf/configure: Delete.
9633         * sysdeps/sparc/elf/configure.in: New file.
9634         * sysdeps/sparc/elf/configure: Generate.
9635
9636         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
9637         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
9638         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
9639         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
9640         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
9641
9642 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9643
9644         * manual/install.texi: Do not mention specific glibc version
9645         numbers.
9646         * manual/libc.texinfo (VERSION, UPDATED): Update.
9647         (@copying): Use @copyright{} and range of years.
9648
9649 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9650
9651         [BZ #13695]
9652         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
9653         [crti.S not in sysdirs] (generated): Do not append.
9654         [crti.S not in sysdirs] (omit-deps): Likewise.
9655         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
9656         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
9657         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
9658         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
9659         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
9660         Likewise.
9661         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
9662         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
9663         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
9664         * csu/defs.awk: Remove file.
9665         * sysdeps/generic/initfini.c: Likewise.
9666         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
9667         variable.
9668         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
9669         Likewise.
9670
9671 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9672
9673         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
9674         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
9675         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
9676         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
9677         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9678         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
9679         <bits/epoll.h>.
9680         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
9681         (__EPOLL_PACKED): Define to empty if not defined by
9682         <bits/epoll.h>.
9683         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
9684         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9685         bits/epoll.h.
9686
9687 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9688
9689         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
9690         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
9691         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
9692         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
9693         <bits/timerfd.h>.
9694         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
9695         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9696         bits/timerfd.h.
9697
9698 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9699
9700         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
9701         in C locale.
9702         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9703         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
9704         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
9705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9706
9707 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
9708
9709         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9710         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
9711
9712 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
9713
9714         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
9715         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
9716         defined.
9717         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
9718         Likewise.
9719         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
9720         entry for 2.16.
9721
9722 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
9723
9724         * math/w_acos.c: Use non-signaling floating-point comparisons.
9725         * math/w_acosf.c: Likewise.
9726         * math/w_acosh.c: Likewise.
9727         * math/w_acoshf.c: Likewise.
9728         * math/w_acoshl.c: Likewise.
9729         * math/w_acosl.c: Likewise.
9730         * math/w_asin.c: Likewise.
9731         * math/w_asinf.c: Likewise.
9732         * math/w_asinl.c: Likewise.
9733         * math/w_atanh.c: Likewise.
9734         * math/w_atanhf.c: Likewise.
9735         * math/w_atanhl.c: Likewise.
9736         * math/w_exp2.c: Likewise.
9737         * math/w_exp2f.c: Likewise.
9738         * math/w_exp2l.c: Likewise.
9739         * math/w_j0.c: Likewise.
9740         * math/w_j0f.c: Likewise.
9741         * math/w_j0l.c: Likewise.
9742         * math/w_j1.c: Likewise.
9743         * math/w_j1f.c: Likewise.
9744         * math/w_j1l.c: Likewise.
9745         * math/w_jn.c: Likewise.
9746         * math/w_jnf.c: Likewise.
9747         * math/w_log.c: Likewise.
9748         * math/w_log10.c: Likewise.
9749         * math/w_log10f.c: Likewise.
9750         * math/w_log10l.c: Likewise.
9751         * math/w_log2.c: Likewise.
9752         * math/w_log2f.c: Likewise.
9753         * math/w_log2l.c: Likewise.
9754         * math/w_logf.c: Likewise.
9755         * math/w_logl.c: Likewise.
9756         * math/w_sqrt.c: Likewise.
9757         * math/w_sqrtf.c: Likewise.
9758         * math/w_sqrtl.c: Likewise.
9759         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9760         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
9761         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9762         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9763         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9764
9765 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9766
9767         [BZ #9739]
9768         * manual/string.texi (strnlen): Use correct parameter name in
9769         equivalent expression.
9770
9771 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9772
9773         [BZ #11174]
9774         * manual/users.texi (seteuid): Consistently use neweuid for
9775         argument name.
9776
9777 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9778
9779         [BZ #13704]
9780         * manual/nss.texi (Services in the NSS configuration): Correct
9781         list of services in example configuration file.
9782
9783 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
9784
9785         [BZ #11322]
9786         * manual/arith.texi: Remove statements about negative zero
9787         behaving identically to zero.
9788
9789 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
9790
9791         [BZ #5993]
9792         * manual/install.texi: Do not document upgrading from libc5.
9793
9794 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
9795
9796         [BZ #4596]
9797         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
9798
9799 2012-02-18  David S. Miller  <davem@davemloft.net>
9800
9801         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
9802         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
9803         %o7 across the call.
9804         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
9805         instead.
9806         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
9807         SETUP_PIC_REG_LEAF.
9808         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9809         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
9810         * sysdeps/sparc/crtn.S: Likewise.
9811
9812 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
9813
9814         * aout/Makefile: Remove.
9815
9816 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
9817
9818         [BZ #13058]
9819         * manual/examples/argp-ex1.c (main): Format definition in GNU
9820         style.
9821         * manual/examples/argp-ex2.c (main): Likewise.
9822         * manual/examples/argp-ex3.c (main): Likewise.
9823         * manual/examples/argp-ex4.c (main): Likewise.
9824         * manual/examples/longopt.c (main): Use new-style prototype
9825         definition.
9826         * manual/examples/strncat.c (main): Specify return type and use
9827         (void) for arguments.
9828         * manual/examples/subopt.c (main): Use char **argv argument.
9829
9830 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9831
9832         [BZ #5077]
9833         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
9834         rounding modes.
9835
9836 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
9837
9838         [BZ #6907]
9839         * manual/string.texi (strchr): Change when strchrnul is
9840         recommended.
9841
9842 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
9843
9844         [BZ #174]
9845         * manual/locale.texi (setlocale): Document LOCPATH.
9846
9847 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9848
9849         [BZ #10210]
9850         * manual/process.texi (execle): Move @dots{} before last argument.
9851
9852 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
9853
9854         [BZ #12047]
9855         * manual/charset.texi (Generic Charset Conversion): Fix typo
9856         (LC_TYPE -> LC_CTYPE).
9857
9858 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
9859
9860         [BZ #5805]
9861         * manual/arith.texi (scalbn): Use @var{} on parameter names.
9862         (scalbnf): Likewise.
9863         (scalbnl): Likewise.
9864         (scalbln): Likewise.
9865         (scalblnf): Likewise.
9866         (scalblnl): Likewise.
9867         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
9868         (vwarnx): Likewise.
9869         (verr): Likewise.
9870         (verrx): Likewise.
9871         * manual/filesys.texi (telldir): Use braces around return type.
9872         * manual/llio.texi (mmap): Add space after comma.
9873         (mmap64): Likewise.
9874         * manual/math.texi (jn): Use @var{} on parameter names.
9875         (jnf): Likewise.
9876         (jnl): Likewise.
9877         (yn): Likewise.
9878         (ynf): Likewise.
9879         (ynl): Likewise.
9880         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
9881         line.
9882         * manual/resource.texi (ulimit): Use @dots{} instead of literal
9883         "...".
9884         (sched_get_priority_min): Remove semicolon on @deftypefun line.
9885         (sched_get_priority_max): Likewise.
9886         * manual/signal.texi (sigvec): Add space after comma.
9887         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
9888         names.
9889         (if_indextoname): Likewise.
9890         (if_freenameindex): Likewise.
9891         (sendto): Use ',' instead of '.' in prototype.
9892         * manual/startup.texi (syscall): Use @dots{} instead of literal
9893         "...".
9894         * manual/stdio.texi (__fpending): Separate initial words of
9895         paragraph from @deftypefun line.
9896         * manual/syslog.texi (syslog): Use @dots{} instead of literal
9897         "...".
9898         (vsyslog): Use @var{} on parameter names.
9899         * manual/terminal.texi (stty): Use @var{} on parameter names.
9900         * manual/users.texi (getutmp): Use @var{} on parameter names.
9901         (getutmpx): Likewise.
9902
9903 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9904
9905         [BZ #6884]
9906         * manual/stdio.texi (fopen): Fix typos in description of
9907         ",ccs=STRING".
9908
9909 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
9910
9911         [BZ #4026]
9912         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
9913         get clock_id definition.
9914
9915 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
9916
9917         [BZ #4822]
9918         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
9919         (madvise): Cast every argument to void on its own.
9920
9921 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9922
9923         [BZ #9902]
9924         * manual/startup.texi (Exit Status): Fix typo.
9925
9926 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9927
9928         [BZ #10140]
9929         * manual/examples/argp-ex1.c: Include <stdlib.h>.
9930         * manual/examples/argp-ex2.c: Likewise.
9931         * manual/examples/argp-ex3.c: Likewise.
9932
9933 2012-02-16  Richard Henderson  <rth@redhat.com>
9934
9935         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
9936         * sysdeps/s390/s390-32/initfini.c: Remove.
9937         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
9938         * sysdeps/s390/s390-64/initfini.c: Remove.
9939
9940 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9941
9942         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
9943         compiler output for sysdeps/generic/initfini.c.
9944         * sysdeps/sh/elf/initfini.c: Remove file.
9945
9946 2012-02-16  David S. Miller  <davem@davemloft.net>
9947
9948         [BZ #11494]
9949         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
9950
9951         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
9952         * sysdeps/sparc/crti.S: New file.
9953         * sysdeps/sparc/crtn.S: New file.
9954         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
9955         * sysdeps/sparc/sparc64/Makefile: Likewise.
9956
9957 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
9958
9959         [BZ #3335]
9960         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
9961
9962 2012-02-15  Roland McGrath  <roland@hack.frob.com>
9963
9964         [BZ #4822]
9965         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
9966
9967         * mach/devstream.c (cookie_io_functions_t): Macro removed.
9968         (write, read, close): Likewise.
9969         Patch by Aurelien Jarno <aurelien@aurel32.net>.
9970
9971 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
9972
9973         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
9974         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
9975         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
9976         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
9977         <bits/signalfd.h>.
9978         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
9979         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9980         bits/signalfd.h.
9981
9982 2012-02-14  Marek Polacek  <polacek@redhat.com>
9983
9984         * sysdeps/x86_64/crti.S: New file.
9985         * sysdeps/x86_64/crtn.S: New file.
9986         * sysdeps/x86_64/elf/initfini.c: Remove file.
9987
9988 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
9989
9990         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
9991         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
9992         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
9993         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
9994         <bits/inotify.h>.
9995         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
9996         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9997         bits/inotify.h.
9998
9999 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
10000
10001         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
10002         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
10003         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
10004         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
10005         <bits/eventfd.h>.
10006         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
10007         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10008         bits/eventfd.h.
10009
10010 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
10011
10012         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
10013         __feraiseexcept instead of feraiseexcept.
10014
10015         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
10016         nanosleep invocations.
10017         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
10018         strings, and add error checking for a nanosleep invocations.
10019
10020 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10021
10022         Replace FSF snail mail address with URLs, as per GNU coding standards.
10023         Most of the snail mail addresses were wrong anyway, and omitting
10024         them makes the source code easier to maintain.  Almost all of the
10025         changes are to license notices and to locale LC_IDENTIFICATION
10026         addresses, except for this one:
10027         * manual/libc.texinfo: In "Published by", give the FSF's URL,
10028         not its snail mail address.
10029
10030 2012-02-09  Richard Henderson  <rth@twiddle.net>
10031
10032         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
10033         of kernel-features.h.
10034
10035         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
10036
10037 2012-02-08  Marek Polacek  <polacek@redhat.com>
10038
10039         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
10040         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
10041         * sysdeps/gnu/_G_config.h: Likewise.
10042         * sysdeps/generic/_G_config.h: Likewise.
10043
10044 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
10045
10046         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
10047         tests.
10048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10049
10050         * sysdeps/powerpc/powerpc32/crti.S: New file.
10051         * sysdeps/powerpc/powerpc32/crtn.S: New file.
10052         * sysdeps/powerpc/powerpc64/crti.S: New file.
10053         * sysdeps/powerpc/powerpc64/crtn.S: New file.
10054
10055         * Makeconfig (have-initfini): Don't set.
10056         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
10057         * configure.in (nopic_initfini): Don't substitute.
10058         * config.h.in (HAVE_INITFINI): Don't #undef.
10059         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
10060         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
10061
10062 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
10063
10064         Support crti.S and crtn.S provided directly by architectures.
10065         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
10066         [crti.S in sysdirs] (omit-deps): Likewise.
10067         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
10068         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
10069         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
10070         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
10071         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
10072         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
10073         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
10074         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
10075         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
10076         compiler output for sysdeps/generic/initfini.c.
10077         * sysdeps/i386/elf/Makefile: Remove file.
10078         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
10079
10080 2012-02-07  Marek Polacek  <polacek@redhat.com>
10081
10082         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
10083         * sysdeps/gnu/_G_config.h: Likewise.
10084         * sysdeps/mach/hurd/_G_config.h: Likewise.
10085
10086 2012-02-07  Marek Polacek  <polacek@redhat.com>
10087
10088         * math/Makefile (tests): Add tst-CMPLX2.
10089         * math/tst-CMPLX2.c: New file.
10090
10091 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
10092
10093         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10094
10095         * math/libm-test.inc (jn_test): Add missing L suffix.
10096
10097 2012-02-06  Marek Polacek  <polacek@redhat.com>
10098
10099         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
10100         * sysdeps/i386/fpu/e_powf.S: Likewise.
10101         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10102         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10103         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10104         * sysdeps/i386/fpu/e_pow.S: Likewise.
10105         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
10106         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10107         * sysdeps/i386/fpu/s_expm1.S: Likewise.
10108         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
10109         * sysdeps/i386/fpu/e_log2.S: Likewise.
10110         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10111         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10112         * sysdeps/i386/fpu/e_powl.S: Likewise.
10113         * sysdeps/i386/fpu/s_log1p.S: Likewise.
10114         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10115         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
10116         * sysdeps/i386/fpu/e_logl.S: Likewise.
10117         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
10118         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
10119         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
10120         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
10121         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10122         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10123         * sysdeps/i386/fpu/e_log.S: Likewise.
10124         * sysdeps/i386/fpu/s_cexp.S: Likewise.
10125         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10126         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
10127         * sysdeps/i386/fpu/e_logf.S: Likewise.
10128         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10129         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10130         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
10131         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
10132         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10133         * sysdeps/i386/fpu/e_log10.S: Likewise.
10134         * sysdeps/i386/fpu/s_frexp.S: Likewise.
10135         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10136         * sysdeps/i386/fpu/s_asinh.S: Likewise.
10137         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
10138         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10139         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
10140         * sysdeps/i386/asm-syntax.h: Likewise.
10141         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10142         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10143         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10144         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
10145         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
10146         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10147         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
10148         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
10149         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10150         * sysdeps/powerpc/sysdep.h: Likewise.
10151         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
10152         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10153
10154 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
10155
10156         [BZ #411]
10157         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
10158
10159 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
10160
10161         * sysdeps/i386/sysdep.h: Include <features.h>.
10162         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
10163         version.
10164
10165 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
10166
10167         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
10168         Define.
10169         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
10170         LOAD_PIC_REG_STR.
10171
10172 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10173
10174         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
10175         (SETUP_PIC_REG): Use GET_PC_THUNK.
10176         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
10177         macro.
10178
10179 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10180
10181         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
10182         for non-PIC compilation.
10183         (SETUP_PIC_REG): Add .p2align directive.
10184         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
10185         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
10186         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10187         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10188         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
10189         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10190         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10191         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10192         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10193         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10194         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10195         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10196         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10197         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10198         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10199         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10200         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10201         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10202         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10203         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10204         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10205         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10206         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10207         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
10208         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
10209         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
10210         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10211         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10212         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10213         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10214         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10215         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10216         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10217         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10218         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10219         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10220         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10221         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10222         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10223         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10224         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10225
10226 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10227
10228         * math/tst-CMPLX.c: Include <stdio.h>.
10229
10230 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
10231
10232         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
10233         float.
10234         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
10235         * sysdeps/sparc/bits/mathdef.h: Likewise.
10236
10237 2012-01-31  Marek Polacek  <polacek@redhat.com>
10238
10239         * libio/libio.h: Don't define _PARAMS.
10240         * locale/programs/config.h: Don't define PARAMS.
10241         * stdlib/strtol_l.c: Likewise.
10242         (__strtol_l): Remove PARAMS from the prototype.
10243
10244 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
10245
10246         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
10247         names.  Just use the correct names.  Remove unnecessary wrapper
10248         functions.
10249         * malloc/arena.c: Likewise.
10250         * malloc/hooks.c: Likewise.
10251
10252         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
10253         ARENA_TEST says not to.  Simplify test for creation of a new arena.
10254         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
10255
10256 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
10257
10258         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
10259         into tail calls.
10260         (update_get_addr): New function.
10261         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
10262         GET_ADDR_MODULE parameter.
10263
10264 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
10265
10266         * crypt/cert.c: Remove __STDC__ conditionals.
10267         * crypt/crypt-entry.c: Likewise.
10268         * crypt/crypt_util.c: Likewise.
10269         * libio/filedoalloc.c: Likewise.
10270         * libio/fileops.c: Likewise.
10271         * libio/genops.c: Likewise.
10272         * libio/iofclose.c: Likewise.
10273         * libio/iofdopen.c: Likewise.
10274         * libio/iofopen.c: Likewise.
10275         * libio/iofopen64.c: Likewise.
10276         * libio/iogetdelim.c: Likewise.
10277         * libio/iopopen.c: Likewise.
10278         * libio/obprintf.c: Likewise.
10279         * libio/oldfileops.c: Likewise.
10280         * libio/oldiofclose.c: Likewise.
10281         * libio/oldiofdopen.c: Likewise.
10282         * libio/oldiofopen.c: Likewise.
10283         * libio/oldiopopen.c: Likewise.
10284         * libio/wfiledoalloc.c: Likewise.
10285         * libio/wgenops.c: Likewise.
10286         * locale/programs/xmalloc.c: Likewise.
10287         * misc/syslog.c: Likewise.
10288         * stdio-common/xbug.c: Likewise.
10289         * string/memchr.c: Likewise.
10290         * string/memcmp.c: Likewise.
10291         * string/memrchr.c: Likewise.
10292         * string/rawmemchr.c: Likewise.
10293         * sysdeps/posix/getcwd.c: Likewise.
10294         * time/strftime_l.c: Likewise.
10295
10296 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
10297
10298         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
10299         * config.make.in (config-cflags-sse2avx): Define.
10300         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
10301         Fix typo.
10302
10303 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
10304
10305         * scripts/config.guess: Update from upstream config git repository.
10306         * scripts/config.sub: Likewise.
10307
10308 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
10309
10310         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
10311         (EM_NUM): Update.
10312         (R_TILEPRO_*, R_TILEGX_*): New macros.
10313
10314         * scripts/firstversions.awk: Fix bug in version range handling.
10315
10316         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
10317
10318         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
10319
10320         * include/sys/epoll.h: New file.
10321         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
10322         libc_hidden_def.
10323
10324 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
10325
10326         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
10327         Avoid unnecessary __WORDSIZE == 64 test.
10328         (fmaxf): Use VEX format if possible.
10329         (fmax): Likewise.
10330         (fminf): Likewise.
10331         (fmin): Likewise.
10332
10333         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
10334         * math/math_private.h: Remove libc_fegetround* and
10335         libc_fesetround*.
10336         * sysdeps/i386/configure.in: Check for -msse2avx.
10337         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
10338         also if SSE2AVX is defined.
10339         Remove libc_fegetround* and libc_fesetround*.
10340         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
10341         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
10342         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
10343         of HAS_YMM_USABLE.
10344         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10345         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10346         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10347         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10348         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10349
10350         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
10351
10352 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10353
10354         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
10355         size is not set.
10356         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10357
10358 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
10359
10360         [BZ #13618]
10361         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
10362         relocation.
10363         * Makeconfig (libm): Define.
10364         * elf/Makefile: Add rules to build and run tst-relsort1.
10365         * elf/tst-relsort1.c: New file.
10366         * elf/tst-relsort1mod1.c: New file.
10367         * elf/tst-relsort1mod2.c: New file.
10368
10369 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
10370
10371         * math/s_ldexp.c: Remove __STDC__ conditionals.
10372         * math/s_ldexpf.c: Likewise.
10373         * math/s_ldexpl.c: Likewise.
10374         * math/s_nextafter.c: Likewise.
10375         * math/s_nexttowardf.c: Likewise.
10376         * math/s_significand.c: Likewise.
10377         * math/s_significandf.c: Likewise.
10378         * math/s_significandl.c: Likewise.
10379         * math/w_jnl.c: Likewise.
10380         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10381         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10382         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10383         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10384         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10385         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10386         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
10387         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10388         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10389         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10390         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10391         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10392         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10393         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10394         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10395         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10396         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10397         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10398         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10399         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10400         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10401         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10402         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10403         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10404         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10405         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10406         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10407         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10408         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10409         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10410         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10411         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10412         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10413         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10414         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10415         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10416         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10417         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10418         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10419         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10420         * sysdeps/ieee754/k_standard.c: Likewise.
10421         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10422         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10423         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10424         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10425         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10426         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10427         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10428         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10429         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10430         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10431         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10432         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10433         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10434         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10435         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10436         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10437         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10438         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10439         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10440         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10441         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10442         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10443         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10444         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10445         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10446         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10447         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10448         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10449         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10450         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10451         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10452         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
10453         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10454         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10455         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10456         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10457         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10458         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10459         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10460         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10461         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10462         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10463         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10464         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10465         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10466         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
10467         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
10468         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10469         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10470         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10471         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10472         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10473         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10474         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10475         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10476         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10477         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10478         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10479         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10480         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10481         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10482         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10483         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10484         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10485         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10486         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10487         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10488         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10489         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10490         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10491         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10492         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10493         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10494         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10495         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10496         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10497         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10498         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10499         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10500         * sysdeps/ieee754/s_matherr.c: Likewise.
10501         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10502         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10503         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10504         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10505
10506 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
10507
10508         * crypt/md5.h: Remove __STDC__ conditionals.
10509         * libio/libioP.h: Likewise.
10510         * locale/programs/config.h: Likewise.
10511         * sysdeps/generic/sysdep.h: Likewise.
10512         * sysdeps/i386/asm-syntax.h: Likewise.
10513         * sysdeps/s390/asm-syntax.h: Likewise.
10514         * sysdeps/unix/sysdep.h: Likewise.
10515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10517
10518 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
10519
10520         * libio/libio.h: Remove __STDC__ conditionals.
10521         * malloc/obstack.h: Likewise.
10522         * math/complex.h: Likewise.
10523         * math/math.h: Likewise.
10524         * sysdeps/generic/_G_config.h: Likewise.
10525         * sysdeps/gnu/_G_config.h: Likewise.
10526         * sysdeps/mach/hurd/_G_config.h: Likewise.
10527         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10528         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
10529         * sysdeps/sparc/bits/mathdef.h: Likewise.
10530
10531 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
10532
10533         [BZ #13583]
10534         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
10535         Clean up HAS_* macros.
10536         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
10537         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
10538         possible.
10539         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
10540         HAS_AVX.
10541         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10542         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10543         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10544         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10545         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10546
10547 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
10548
10549         * elf/tst-unique3.cc (gets): Remove declaration.
10550         * elf/tst-unique3lib.cc (gets): Likewise.
10551         * elf/tst-unique3lib2.cc (gets): Likewise.
10552         * elf/tst-unique4.cc (gets): Likewise.
10553
10554 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
10555
10556         * include/stdio.h: Add C++ protection.  Add gets declarations and
10557         definitions.
10558         * debug/tst-chk1.c: Don't declare gets here.
10559         * stdio-common/tst-gets.c: Likewise.
10560
10561 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
10562
10563         * posix/glob: Remove directory.
10564
10565 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
10566
10567         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
10568
10569 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
10570
10571         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
10572         of the non-standard EPFNOSUPPORT.
10573
10574 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10575
10576         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
10577         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
10578         ANYWHERE set to 1 only on KERN_NO_SPACE error.
10579
10580 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
10581
10582         * wcsmbs/uchar.h: Test __STDC_VERSION__.
10583
10584 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
10585
10586         * nscd/aicache.c (addhstaiX): Do not cache negative results of
10587         transient errors.
10588         * nscd/grpcache.c (cache_addgr): Likewise.
10589         * nscd/hstcache.c (cache_addhst): Likewise.
10590         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10591         * nscd/pwdcache.c (cache_addpw): Likewise.
10592         * nscd/servicescache.c (cache_addserv): Likewise.
10593
10594 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
10595
10596         * malloc/malloc.c: Various cleanups.
10597         * malloc/hooks.c: Likewise.
10598
10599         * stdlib/Makefile (tests): Add bug-fmtmsg1.
10600         * stdlib/bug-fmtmsg1.c: New file.
10601
10602         * stdlib/fmtmsg.c (init): Add missing unlock.
10603         Patch by Peng Haitao <penght@cn.fujitsu.com>.
10604
10605 2012-01-12  Marek Polacek  <polacek@redhat.com>
10606
10607         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
10608         and _GNU_SOURCE.
10609
10610 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
10611
10612         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
10613         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
10614         macro to ensure uniqueness of label name.
10615         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
10616         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
10617
10618 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
10619
10620         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
10621
10622         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
10623         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10624         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10625         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
10626
10627 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
10628
10629         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
10630
10631         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
10632         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10633         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10634
10635         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
10636
10637         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
10638         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10639         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10640         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
10641
10642         * math/bits/math-finite.h: Add ldexp support.
10643
10644 2012-01-10  Marek Polacek  <polacek@redhat.com>
10645
10646         * locale/programs/localedef.h (show_archive_content): Add noreturn
10647         attribute.
10648
10649 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
10650
10651         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
10652
10653 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10654
10655         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
10656
10657         * io/Makefile (headers): Add bits/poll2.h.
10658
10659 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
10660
10661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
10662         typo #include statement.
10663
10664 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10665
10666         * include/sys/cdefs.h: Define __attribute_alloc_size.
10667         * catgets/gencat.c: Add alloc_size attribute and apply consistently
10668         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
10669         * elf/pldd.c: Likewise.
10670         * iconv/iconv_charmap.c: Likewise.
10671         * iconv/iconvconfig.c: Likewise.
10672         * iconv/strtab.c: Likewise.
10673         * locale/programs/locale.c: Likewise.
10674         * locale/programs/localedef.h: Likewise.
10675         * locale/programs/simple-hash.c: Likewise.
10676         * nscd/nscd.h: Likewise.
10677         * nss/makedb.c: Likewise.
10678         * sysdeps/generic/ldconfig.h: Likewise.
10679         * locale/programs/localedef.c: Remove xmalloc prototype.
10680         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
10681
10682 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10683
10684         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
10685         appropriate.
10686
10687 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10688
10689         * math/Makefile (tests): Add tst-CMPLX.
10690         * math/tst-CMPLX.c: New file.
10691
10692         * math/complex.h (CMPLXL): Fix typo.
10693
10694         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
10695         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
10696         GLIBC_2.16.
10697         * debug/tst-chk1.c: Add poll and ppoll tests.
10698         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
10699         * include/sys/poll.h: Add hidden proto for ppoll.
10700         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
10701         * sysdeps/mach/hurd/ppoll.c: Likewise.
10702         * io/ppoll.c: Likewise.
10703         * debug/poll_chk.c: New file.
10704         * debug/ppoll_chk.c: New file.
10705         * include/bits/poll2.h: New file.
10706         * io/bits/poll2.h: New file.
10707
10708         [BZ #1350]
10709         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
10710
10711         * configure.in: static is always set to yes.  Remove.
10712         * config.make.in: Don't set build-static.
10713         * Makeconfig: Remove use of build-static.
10714         * dlfcn/Makefile: Likewise.
10715         * elf/Makefile: Likewise.
10716         * math/Makefile: Likewise.
10717         * misc/Makefile: Likewise.
10718         * nptl/Makefile: Likewise.
10719         * sysdeps/mach/hurd/Makefile: Likewise.
10720
10721         * configure.in: PWD_P is not used anymore.
10722         * config.make.in: Remove PWD_P entry.
10723
10724         * configure.in: Remove last remnants of RANLIB.
10725         No need to check for signed size_t anymore.
10726         Don't set libc_commonpagesize and libc_relro_required here for Alpha
10727         and IA-64.
10728         Remove __builtin_expect test because we require at least gcc 3.4.
10729         * aclocal.m4: Likewise.
10730
10731         * wcsmbs/mbrtoc16.c: Implement using towc function.
10732         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
10733         * wcsmbs/wcsmbsload.c: Likewise.
10734         * iconv/gconv_simple.c: Likewise.
10735         * iconv/gconv_int.h: Likewise.
10736         * iconv/gconv_builtin.h: Likewise.
10737         * iconv/iconv_prog.c: Remove CHAR16 handling.
10738
10739         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
10740
10741         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
10742
10743         * configure.in: Remove --with-elf and --enable-bounded options.
10744         Dont set base_machine for ia64.  More non-ELF conditions removed.
10745         Remove testing and setting of leading underscore information.
10746         * config.make.in (build-bounded): Set to no.
10747         * config.h.in: Remove NO_UNDERSCORES entry.
10748         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
10749         them.
10750         * csu/start.c: Remove !NO_UNDERSCORE code.
10751         * locale/localeinfo.h: Likewise.
10752         * sysdeps/generic/machine-gmon.h: Likewise.
10753         * sysdeps/generic/sysdep.h: Likewise.
10754         * sysdeps/i386/sysdep.h: Likewise.
10755         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
10756         * sysdeps/mach/sysdep.h: Likewise.
10757         * sysdeps/s390/s390-32/sysdep.h: Likewise.
10758         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10759         * sysdeps/sh/sysdep.h: Likewise.
10760         * sysdeps/sparc/sparc32/alloca.S: Likewise.
10761         * sysdeps/unix/i386/sysdep.S: Likewise.
10762         * sysdeps/unix/sparc/start.c: Likewise.
10763         * sysdeps/unix/sparc/sysdep.S: Likewise.
10764         * sysdeps/unix/sparc/sysdep.h: Likewise.
10765         * sysdeps/unix/start.c: Likewise.
10766         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10767         * sysdeps/x86_64/sysdep.h: Likewise.
10768
10769 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
10770
10771         [BZ #13553]
10772         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
10773         for non-gcc.
10774         * argp/argp-fmtstream.h: Use const instead __const.
10775         * argp/argp.h: Likewise.
10776         * assert/assert.h: Likewise.
10777         * bits/fenv.h: Likewise.
10778         * bits/sched.h: Likewise.
10779         * bits/sigset.h: Likewise.
10780         * bits/sigthread.h: Likewise.
10781         * catgets/nl_types.h: Likewise.
10782         * conform/data/pthread.h-data: Likewise.
10783         * crypt/crypt-private.h: Likewise.
10784         * crypt/crypt.h: Likewise.
10785         * crypt/crypt_util.c: Likewise.
10786         * ctype/ctype.h: Likewise.
10787         * debug/execinfo.h: Likewise.
10788         * debug/mbsnrtowcs_chk.c: Likewise.
10789         * debug/mbsrtowcs_chk.c: Likewise.
10790         * debug/wcsnrtombs_chk.c: Likewise.
10791         * debug/wcsrtombs_chk.c: Likewise.
10792         * debug/wcstombs_chk.c: Likewise.
10793         * dirent/dirent.h: Likewise.
10794         * dlfcn/dlfcn.h: Likewise.
10795         * elf/neededtest4.c: Likewise.
10796         * grp/grp.h: Likewise.
10797         * gshadow/gshadow.h: Likewise.
10798         * iconv/gconv.h: Likewise.
10799         * iconv/gconv_int.h: Likewise.
10800         * iconv/gconv_simple.c: Likewise.
10801         * iconv/iconv.h: Likewise.
10802         * iconv/loop.c: Likewise.
10803         * iconv/skeleton.c: Likewise.
10804         * include/aio.h: Likewise.
10805         * include/aliases.h: Likewise.
10806         * include/argz.h: Likewise.
10807         * include/arpa/inet.h: Likewise.
10808         * include/assert.h: Likewise.
10809         * include/dirent.h: Likewise.
10810         * include/dlfcn.h: Likewise.
10811         * include/execinfo.h: Likewise.
10812         * include/fcntl.h: Likewise.
10813         * include/fenv.h: Likewise.
10814         * include/glob.h: Likewise.
10815         * include/grp.h: Likewise.
10816         * include/libintl.h: Likewise.
10817         * include/mntent.h: Likewise.
10818         * include/netdb.h: Likewise.
10819         * include/pwd.h: Likewise.
10820         * include/rpc/netdb.h: Likewise.
10821         * include/sched.h: Likewise.
10822         * include/search.h: Likewise.
10823         * include/shadow.h: Likewise.
10824         * include/signal.h: Likewise.
10825         * include/stdio.h: Likewise.
10826         * include/stdlib.h: Likewise.
10827         * include/string.h: Likewise.
10828         * include/sys/socket.h: Likewise.
10829         * include/sys/stat.h: Likewise.
10830         * include/sys/statfs.h: Likewise.
10831         * include/sys/statvfs.h: Likewise.
10832         * include/sys/syslog.h: Likewise.
10833         * include/sys/time.h: Likewise.
10834         * include/sys/uio.h: Likewise.
10835         * include/time.h: Likewise.
10836         * include/unistd.h: Likewise.
10837         * include/utmp.h: Likewise.
10838         * include/wchar.h: Likewise.
10839         * include/wctype.h: Likewise.
10840         * inet/aliases.h: Likewise.
10841         * inet/arpa/inet.h: Likewise.
10842         * inet/netinet/ether.h: Likewise.
10843         * inet/netinet/in.h: Likewise.
10844         * intl/libintl.h: Likewise.
10845         * io/bits/fcntl2.h: Likewise.
10846         * io/fcntl.h: Likewise.
10847         * io/ftw.h: Likewise.
10848         * io/sys/poll.h: Likewise.
10849         * io/sys/stat.h: Likewise.
10850         * io/sys/statfs.h: Likewise.
10851         * io/sys/statvfs.h: Likewise.
10852         * io/utime.h: Likewise.
10853         * libio/bits/stdio.h: Likewise.
10854         * libio/bits/stdio2.h: Likewise.
10855         * libio/libio.h: Likewise.
10856         * libio/libioP.h: Likewise.
10857         * libio/stdio.h: Likewise.
10858         * locale/lc-ctype.c: Likewise.
10859         * locale/locale.h: Likewise.
10860         * login/utmp.h: Likewise.
10861         * malloc/arena.c: Likewise.
10862         * malloc/malloc.c: Likewise.
10863         * malloc/malloc.h: Likewise.
10864         * malloc/mcheck.c: Likewise.
10865         * malloc/mtrace.c: Likewise.
10866         * math/bits/mathcalls.h: Likewise.
10867         * math/fenv.h: Likewise.
10868         * math/math_private.h: Likewise.
10869         * misc/bits/error.h: Likewise.
10870         * misc/bits/syslog.h: Likewise.
10871         * misc/err.h: Likewise.
10872         * misc/error.h: Likewise.
10873         * misc/fstab.h: Likewise.
10874         * misc/mntent.h: Likewise.
10875         * misc/regexp.h: Likewise.
10876         * misc/search.h: Likewise.
10877         * misc/sgtty.h: Likewise.
10878         * misc/sys/mman.h: Likewise.
10879         * misc/sys/syslog.h: Likewise.
10880         * misc/sys/uio.h: Likewise.
10881         * misc/sys/xattr.h: Likewise.
10882         * misc/ttyent.h: Likewise.
10883         * nis/rpcsvc/ypclnt.h: Likewise.
10884         * nss/nss.h: Likewise.
10885         * posix/bits/unistd.h: Likewise.
10886         * posix/fnmatch.h: Likewise.
10887         * posix/glob.h: Likewise.
10888         * posix/sched.h: Likewise.
10889         * posix/spawn.h: Likewise.
10890         * posix/sys/wait.h: Likewise.
10891         * posix/unistd.h: Likewise.
10892         * posix/wordexp.h: Likewise.
10893         * pwd/pwd.h: Likewise.
10894         * resolv/netdb.h: Likewise.
10895         * resource/sys/resource.h: Likewise.
10896         * rt/aio.h: Likewise.
10897         * rt/bits/mqueue2.h: Likewise.
10898         * rt/mqueue.h: Likewise.
10899         * shadow/shadow.h: Likewise.
10900         * signal/signal.h: Likewise.
10901         * socket/send.c: Likewise.
10902         * socket/sendto.c: Likewise.
10903         * socket/sys/socket.h: Likewise.
10904         * stdio-common/printf.h: Likewise.
10905         * stdlib/bits/stdlib.h: Likewise.
10906         * stdlib/fmtmsg.h: Likewise.
10907         * stdlib/monetary.h: Likewise.
10908         * stdlib/stdlib.h: Likewise.
10909         * stdlib/ucontext.h: Likewise.
10910         * streams/stropts.h: Likewise.
10911         * string/argz.h: Likewise.
10912         * string/bits/string2.h: Likewise.
10913         * string/string.h: Likewise.
10914         * string/strings.h: Likewise.
10915         * sunrpc/rpc/auth.h: Likewise.
10916         * sunrpc/rpc/auth_des.h: Likewise.
10917         * sunrpc/rpc/clnt.h: Likewise.
10918         * sunrpc/rpc/netdb.h: Likewise.
10919         * sunrpc/rpc/pmap_clnt.h: Likewise.
10920         * sunrpc/rpc/xdr.h: Likewise.
10921         * sysdeps/generic/inttypes.h: Likewise.
10922         * sysdeps/generic/net/if.h: Likewise.
10923         * sysdeps/generic/sys/swap.h: Likewise.
10924         * sysdeps/gnu/net/if.h: Likewise.
10925         * sysdeps/gnu/utmpx.h: Likewise.
10926         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
10927         * sysdeps/i386/i486/bits/string.h: Likewise.
10928         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
10929         * sysdeps/s390/bits/string.h: Likewise.
10930         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
10931         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
10932         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10933         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
10934         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10935         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10936         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10937         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
10938         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
10939         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
10940         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
10941         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
10942         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
10943         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
10944         * sysdeps/unix/sysv/linux/readv.c: Likewise.
10945         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
10946         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
10947         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10948         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
10949         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
10950         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
10951         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
10952         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
10953         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
10954         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
10955         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
10956         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
10957         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10958         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
10959         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
10960         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
10961         * sysvipc/sys/ipc.h: Likewise.
10962         * sysvipc/sys/msg.h: Likewise.
10963         * sysvipc/sys/sem.h: Likewise.
10964         * sysvipc/sys/shm.h: Likewise.
10965         * termios/termios.h: Likewise.
10966         * time/sys/time.h: Likewise.
10967         * time/time.h: Likewise.
10968         * wcsmbs/bits/wchar2.h: Likewise.
10969         * wcsmbs/uchar.h: Likewise.
10970         * wcsmbs/wchar.h: Likewise.
10971         * wctype/wctype.h: Likewise.
10972
10973         [BZ #13551]
10974         * Makeconfig: Remove all but ELF support including AIX support.
10975         * Makerules: Likewise.
10976         * config.h.in: Likewise.
10977         * config.make.in: Likewise.
10978         * configure: Likewise.
10979         * configure.in: Likewise.
10980         * csu/Makefile: Likewise.
10981         * csu/version.c: Likewise.
10982         * debug/Makefile: Likewise.
10983         * dlfcn/Makefile: Likewise.
10984         * elf/Makefile: Likewise.
10985         * extra-lib.mk: Likewise.
10986         * iconv/Makefile: Likewise.
10987         * include/libc-symbols.h: Likewise.
10988         * include/shlib-compat.h: Likewise.
10989         * resolv/Makefile: Likewise.
10990         * resolv/res_libc.c: Likewise.
10991         * rt/Makefile: Likewise.
10992         * sysdeps/i386/asm-syntax.h: Likewise.
10993         * sysdeps/i386/sysdep.h: Likewise.
10994         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
10995         * sysdeps/mach/sysdep.h: Likewise.
10996         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
10997         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
10998         * sysdeps/s390/asm-syntax.h: Likewise.
10999         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11000         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11001         * sysdeps/sh/sysdep.h: Likewise.
11002         * sysdeps/unix/sparc/sysdep.h: Likewise.
11003         * sysdeps/wordsize-32/divdi3.c: Likewise.
11004         * sysdeps/x86_64/sysdep.h: Likewise.
11005
11006         * argp/Versions: Remove _argp_unlock_xxx.
11007
11008         [BZ #13559]
11009         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
11010         * abilist/libBrokenLocale.abilist: Likewise.
11011         * abilist/libanl.abilist: Likewise.
11012         * abilist/libc.abilist: Likewise.
11013         * abilist/libcrypt.abilist: Likewise.
11014         * abilist/libdl.abilist: Likewise.
11015         * abilist/libm.abilist: Likewise.
11016         * abilist/libnsl.abilist: Likewise.
11017         * abilist/libpthread.abilist: Likewise.
11018         * abilist/libresolv.abilist: Likewise.
11019         * abilist/librt.abilist: Likewise.
11020         * abilist/libthread_db.abilist: Likewise.
11021         * abilist/libutil.abilist: Likewise.
11022         * abilist/libnss_db.abilist: New file.
11023
11024         * scripts/abilist.awk: Add support for indirect functions.
11025
11026         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
11027
11028         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
11029
11030         * shlib-versions: Remove entries for ports architectures.
11031
11032         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
11033         files in ports.
11034         * elf/stackguard-macros.h: Remove support for IA-64.
11035         * elf/tst-auditmod1.c: Likewise.
11036         * sysdeps/generic/ldsodefs.h: Likewise.
11037
11038         * sysdeps/unix/sysv/linux/configure.in: Ports should define
11039         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
11040         configure files.
11041
11042         [BZ #13552]
11043         * configure.in: Remove --enable-omitfp support.
11044         * FAQ.in: Adjust.
11045         * config.make.in: Likewise.
11046         * Makeconfig: Likewise.
11047         * manual/install.texi: Likewise.
11048
11049         In case anyone cares, the IA-64 architecture could move to ports.
11050         * sysdeps/ia64/*: Removed.
11051         * sysdeps/unix/sysv/linux/ia64/*: Removed.
11052         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
11053
11054         [BZ #13555]
11055         * configure.in: Remove entries for unsupported architectures.
11056
11057         [BZ #13533]
11058         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
11059         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
11060         routines.
11061         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
11062         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
11063         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
11064         fall back to using wcrtomb.
11065         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
11066         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
11067         renaming.
11068         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
11069         * wcsmbs/tst-c16c32-1.c: New file.
11070
11071         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
11072         local variable.
11073
11074         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
11075
11076         * elf/tst-unique3.cc: Add explicit declaration of gets.
11077         * elf/tst-unique3lib.cc: Likewise.
11078         * elf/tst-unique3lib2.cc: Likewise.
11079         * elf/tst-unique4.cc: Likewise.
11080
11081         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
11082
11083 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
11084
11085         [BZ #13566]
11086         * assert/assert.h (static_assert): Don't define for C++.
11087         * libio/stdio.h (gets): Do declare for C++ <= C++11.
11088         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
11089
11090 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
11091
11092         * iconv/loop.c (single loop): Fix assertion in storing of
11093         remaining bytes.
11094
11095         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
11096
11097 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
11098
11099         * posix/getconf.c: Update copyright year.
11100         * nss/getent.c: Likewise.
11101         * nss/makedb.c: Likewise.
11102         * iconv/iconvconfig.c: Likewise.
11103         * iconv/iconv_prog.c: Likewise.
11104         * elf/ldconfig.c: Likewise.
11105         * elf/pldd.c: Likewise.
11106         * elf/sotruss.ksh: Likewise.
11107         * catgets/gencat.c: Likewise.
11108         * csu/version.c: Likewise.
11109         * elf/ldd.bash.in: Likewise.
11110         * elf/sprof.c (print_version): Likewise.
11111         * locale/programs/locale.c: Likewise.
11112         * locale/programs/localedef.c: Likewise.
11113         * login/programs/pt_chown.c: Likewise.
11114         * nscd/nscd.c (print_version): Likewise.
11115         * debug/xtrace.sh: Likewise.
11116         * malloc/memusage.sh: Likewise.
11117         * malloc/mtrace.pl: Likewise.
11118         * debug/catchsegv.sh: Likewise.
11119
11120 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
11121
11122         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
11123         pure attribute.
11124
11125 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
11126
11127         [BZ #13533]
11128         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
11129         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
11130         transformations.
11131         * iconv/gconv_int.h: Likewise.
11132         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
11133         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
11134         from libc for GLIBC_2.16.
11135         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
11136         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
11137         * wcsmbs/uchar.h: Really define mbstate_t.
11138         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
11139         * wcsmbs/c16rtomb.c: New file.
11140         * wcsmbs/mbrtoc16.c: New file.
11141         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
11142         for C/POSIX locale.
11143         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
11144         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
11145
11146         * wcsmbs/wchar.h: Add missing __restrict.
11147
11148 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
11149
11150         [BZ #13532]
11151         * time/Makefile (routines): Add timespec_get.
11152         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
11153         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
11154         timespec for ISO C11.
11155         * time/timespec_get.c: New file.
11156         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
11157         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
11158
11159         [BZ #13531]
11160         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
11161         * stdlib/stdlib.h: Declare aligned_alloc.
11162         * Versions.def: Add GLIBC_2.16 for libc.
11163         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
11164
11165         [BZ 13527]
11166         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
11167         ISO C11.
11168
11169         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
11170         code.
11171
11172         [BZ #13528]
11173         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
11174
11175         [BZ #13529]
11176         * assert/assert.h (static_assert): Define.
11177
11178         * version.h: Update for 2.16 development version.
11179
11180         [BZ #13526]
11181         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
11182         _ISOC11_SOURCE.
11183
11184         * version.h (RELEASE): Bump for 2.15 release.
11185         * include/features.h (__GLIBC_MINOR__): Bump to 15.
11186
11187         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
11188         Patch by Marek Polacek <mpolacek@redhat.com>.
11189
11190         * bits/byteswap.h: Protect long long constants with __extension__.
11191         * sysdeps/i386/bits/byteswap.h: Likewise.
11192         * sysdeps/ia64/bits/byteswap.h: Likewise.
11193         * sysdeps/s390/bits/byteswap.h: Likewise.
11194         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11195
11196 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11197
11198         [BZ #13540]
11199         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
11200         destination buffer.
11201         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
11202
11203 2011-12-23  Marek Polacek  <polacek@redhat.com>
11204
11205         * elf/dl-addr.c (determine_info): Add inline keyword.
11206         * elf/tst-auditmod4b.c (check_avx): Likewise.
11207         * elf/tst-auditmod6b.c (check_avx): Likewise.
11208         * elf/tst-auditmod6c.c (check_avx): Likewise.
11209         * elf/tst-auditmod7b.c (check_avx): Likewise.
11210
11211 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
11212
11213         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
11214         !__SSE_MATH__.
11215
11216 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11217
11218         [BZ #13540]
11219         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
11220         processing for last bytes.
11221
11222 2011-08-06  Bruno Haible  <bruno@clisp.org>
11223
11224         [BZ #13061]
11225         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
11226         U+0385, not to U+1FEE.
11227
11228         [BZ #13062]
11229         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
11230         entry for U+00A5 U+0301.
11231
11232 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
11233
11234         [BZ #13166]
11235         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
11236         buffer for the output is too small.
11237
11238         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
11239         optimization.
11240
11241         [BZ #13185]
11242         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
11243         SSE flags if possible.
11244
11245 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11246
11247         [BZ #13540]
11248         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
11249         processing for last bytes.
11250
11251 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
11252
11253         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
11254         (syscall-list-default-options, syscall-list-default-condition)
11255         (syscall-list-includes): Define.
11256         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
11257         list of ABIs and options and #if conditions for each ABI.  Do not
11258         handle common syscalls between ABIs specially.
11259         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
11260         Remove.
11261         (syscall-list-variants, syscall-list-32bit-options)
11262         (syscall-list-32bit-condition, syscall-list-64bit-options)
11263         (syscall-list-64bit-condition): Define.
11264         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
11265         (syscall-list-variants, syscall-list-32bit-options)
11266         (syscall-list-32bit-condition, syscall-list-64bit-options)
11267         (syscall-list-64bit-condition): Define.
11268         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
11269         Remove.
11270         (syscall-list-variants, syscall-list-32bit-options)
11271         (syscall-list-32bit-condition, syscall-list-64bit-options)
11272         (syscall-list-64bit-condition): Define.
11273         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
11274         Remove.
11275         (syscall-list-variants, syscall-list-32bit-options)
11276         (syscall-list-32bit-condition, syscall-list-64bit-options)
11277         (syscall-list-64bit-condition): Define.
11278
11279 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
11280
11281         * locale/iso-639.def: Add brx entry.
11282
11283         [BZ #13328]
11284         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
11285         Proposed by Mariusz_Cukr <marcukr@op.pl>.
11286
11287         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
11288         __feraiseexcept_renamed.
11289
11290 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
11291
11292         [BZ #13538]
11293         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
11294         EPOLLET with unsigned values.
11295         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11296         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
11297
11298         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
11299         to large cancellation.
11300         * math/s_cacoshf.c: Likewise.
11301         * math/s_cacoshl.c: Likewise.
11302
11303 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
11304
11305         [BZ #13305]
11306         [BZ #12786]
11307         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
11308         * math/s_cacoshf.c: Likewise.
11309         * math/s_cacoshl.c: Likewise.
11310
11311 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
11312
11313         [BZ #13439]
11314         * iconv/gconv.h: Define __GCONV_SWAP.
11315         * iconvdata/unicode.c: The swap bit must be stored in __flags.
11316         * iconvdata/utf-16.c: Likewise.
11317         * iconvdata/utf-32.c: Likewise.
11318
11319 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
11320
11321         [BZ #13524]
11322         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
11323         numerator after shifting it by one limb.
11324
11325 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
11326
11327         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
11328         under [__USE_EXTERN_INLINES].
11329
11330 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
11331
11332         [BZ #13446]
11333         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
11334
11335 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11336
11337         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
11338         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
11339         optimized code.
11340         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
11341         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
11342         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
11343         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
11344         for strncasecmp/strncasecmp_l compilation.
11345         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
11346         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
11347
11348 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
11349
11350         [BZ #13484]
11351         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
11352         of __asm__.
11353
11354 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
11355
11356         [BZ #13506]
11357         * time/tzfile.c (__tzfile_read): Check values from file header.
11358
11359 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
11360
11361         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
11362         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
11363         * powerpc/powerpc32/dl-start.S: Likewise.
11364         * powerpc/powerpc32/elf/start.S: Likewise.
11365         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11366         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
11367         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
11368         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
11369         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
11370         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
11371         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
11372         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11373         * powerpc/powerpc32/fpu/s_round.S: Likewise.
11374         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
11375         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
11376         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
11377         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
11378         * powerpc/powerpc32/memset.S: Likewise.
11379         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
11380         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
11381         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
11382         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
11383         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
11384         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
11385         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
11386         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
11387         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
11388         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
11389         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
11390         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11391         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11392
11393 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11394
11395         * math/libm-test.inc: Added more nearbyint tests.
11396         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
11397         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
11398         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
11399         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
11400
11401 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
11402
11403         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
11404         FD_CLOEXEC.
11405
11406 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11407
11408         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
11409         Add wcscpy-ssse3 wcscpy-c.
11410         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
11411         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
11412         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
11413         * sysdeps/x86_64/wcschr.S: New file.
11414         * sysdeps/x86_64/wcsrchr.S: New file.
11415         * string/test-strcmp.c: Remove checking of wcscmp function for
11416         wrong alignments.
11417         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
11418         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
11419         wcsrchr-sse2 wcsrchr-c.
11420         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
11421         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
11422         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
11423         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
11424         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
11425         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
11426         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
11427         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
11428         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
11429         * wcsmbc/wcschr.c (WCSCHR): New macro.
11430
11431 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11432
11433         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
11434         * wcsmbs/test-wcsrchr.c: New file.
11435         * string/test-strrchr.c: Add wcsrchr support.
11436         (WIDE): New macro.
11437         * wcsmbs/test-wcscpy.c: New file.
11438         * string/test-strcpy.c: Add wcscpy support.
11439         (WIDE): New macro.
11440
11441 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
11442
11443         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
11444         the inner loop.
11445
11446 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
11447
11448         [BZ #13472]
11449         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
11450
11451 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
11452
11453         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
11454         Minor optimizations.
11455
11456         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
11457         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
11458         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
11459
11460 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
11461
11462         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
11463         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
11464         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
11465         for gcc to avoid warnings.
11466         * inet/Makefile (tests): Add tst-checks.
11467         * inet/tst-checks.c: New file.
11468
11469         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
11470         warning.
11471
11472         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
11473         __wmemcmp_sse2.
11474
11475         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
11476         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
11477
11478         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
11479
11480 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
11481
11482         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
11483         problem.
11484
11485         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
11486
11487 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
11488
11489         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
11490         conditional on GCC version.
11491         (__arch_compare_and_exchange_val_8_acq)
11492         (__arch_compare_and_exchange_val_16_acq)
11493         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
11494         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
11495         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
11496
11497 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
11498
11499         * sysdeps/sh/backtrace.c: New file.
11500
11501 2011-12-02  Andreas Schwab  <schwab@redhat.com>
11502
11503         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
11504         parenthesis.
11505
11506 2011-12-01  Andreas Schwab  <schwab@redhat.com>
11507
11508         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
11509         falling back to utime.
11510
11511 2011-11-30  Andreas Schwab  <schwab@redhat.com>
11512
11513         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
11514         expectations for float.
11515
11516 2011-11-29  Andreas Schwab  <schwab@redhat.com>
11517
11518         * locale/weight.h (findidx): Add parameter len.
11519         * locale/weightwc.h (findidx): Likewise.
11520         * posix/fnmatch_loop.c (FCT): Adjust caller.
11521         * posix/regcomp.c (build_equiv_class): Likewise.
11522         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
11523         * posix/regexec.c (check_node_accept_bytes): Likewise.
11524         * string/strcoll_l.c (STRCOLL): Likewise.
11525         * string/strxfrm_l.c (STRXFRM): Likewise.
11526
11527 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
11528
11529         * Makefile.in: Remove CVSOPT handling.
11530         * configure.in: Remove use of AC_REVISION.
11531         * iconvdata/Makefile (distribute): No need to filter out CVS.
11532         * scripts/list-sources.sh: Remove CVS, subversion and monotone
11533         handling.
11534
11535 2011-11-16  Andreas Schwab  <schwab@redhat.com>
11536
11537         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
11538         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
11539         [USE_AS_STRNCASECMP_L]: Likewise.
11540         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
11541         NO_TLS_DIRECT_SEG_REFS.
11542         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
11543         Fix argument offsets for non-PIC.
11544         [USE_AS_STRNCASECMP_L]: Likewise.
11545         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
11546         NO_TLS_DIRECT_SEG_REFS.
11547
11548 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
11549
11550         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
11551         O_CLOEXEC.
11552         * locale/loadlocale.c (_nl_load_locale): Likewise.
11553
11554 2011-11-15  Andreas Schwab  <schwab@redhat.com>
11555
11556         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
11557         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
11558         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
11559         (SYSCALL_GETTIME): Set errno on error.
11560
11561         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
11562         count references to noai6ai_cached.
11563
11564 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
11565
11566         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
11567
11568         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
11569         FD_CLOEXEC for /proc/self/maps.
11570
11571         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
11572         FD_CLOEXEC for /proc/meminfo.
11573
11574         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
11575         gai.conf.
11576
11577         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
11578         FD_CLOEXEC for given file.
11579
11580         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
11581
11582         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
11583         FD_CLOEXEC for /etc/hosts.
11584         (_gethtent): Likewise.
11585
11586         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
11587
11588         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
11589         cancellation and set FD_CLOEXEC for /etc/netgroup.
11590
11591         * nss/nss_files/files-key.c (search): Don't allow cancellation when
11592         reading /etc/publickey.
11593
11594         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
11595         allow cancellation when reading /etc/group.
11596
11597         * nss/nss_files/files-alias.c (internal_setent): Don't allow
11598         cancellation.
11599         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
11600
11601         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
11602         when using data file.
11603
11604         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
11605
11606         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
11607         (write_nis_obj): Use "c" and "e" in fopen.
11608
11609         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
11610
11611         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
11612
11613         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
11614
11615         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
11616
11617         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
11618         locale.alias.
11619
11620         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
11621
11622         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
11623
11624         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
11625
11626         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
11627         file parsing and set FD_CLOEXEC.
11628
11629 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
11630
11631         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
11632
11633 2011-11-14  Andreas Schwab  <schwab@redhat.com>
11634
11635         * malloc/arena.c (arena_get2): Don't call reused_arena when
11636         _int_new_arena failed.
11637
11638 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
11639
11640         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
11641         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
11642         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
11643         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11644         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11645         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
11646         to compile strcasecmp and strncasecmp.
11647         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
11648         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
11649
11650         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
11651
11652 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
11653
11654         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
11655         locale-defines.sym to gen-as-const-headers.
11656         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
11657         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
11658         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
11659         to compile strcasecmp and strncasecmp.
11660         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
11661         strcasecmp_l and strncasecmp_l.
11662         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
11663         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
11664         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
11665         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
11666         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
11667         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
11668         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
11669         * sysdeps/i386/i686/multiarch/strncase.S: New file.
11670         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
11671         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
11672         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
11673
11674 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
11675
11676         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
11677         result of SYSDEP_GETTIME_CPU to retval.
11678         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
11679         parameter list to macro.  Remove trailing semicolon.  Adjust users.
11680
11681         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
11682         variable.
11683
11684         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
11685         mantissa words.
11686         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
11687
11688         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
11689         from unused variable.
11690
11691         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
11692         DWARF definitions.
11693         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
11694         for assembling.
11695
11696         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
11697         over namespaces.
11698
11699         * sunrpc/rpc_prot.c (rejected): Fix case value.
11700
11701         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
11702         unsigned long long int to avoid warnings in shift.
11703
11704         * posix/regex_internal.c (re_string_reconstruct): Actually use result
11705         of use of trans.
11706         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
11707         variable tmp.
11708
11709         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
11710         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
11711         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
11712
11713         * nis/nis_table.c (nis_list): Use variable of correct type for
11714         result of __follow_path call.
11715
11716 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11717
11718         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
11719         of math functions ceil, trunc, floor, round, and sqrt, when
11720         avaliable on the platform.
11721         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
11722         name clash.
11723         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11724         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
11725         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
11726
11727 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
11728
11729         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
11730         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
11731
11732 2011-11-11  Roland McGrath  <roland@hack.frob.com>
11733
11734         * include/unistd.h: Fix __readlink return type.
11735         Reported by Chris Metcalf <cmetcalf@tilera.com>.
11736
11737 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
11738
11739         * stdlib/ucontext.h: Undo last change for makecontext.
11740
11741 2011-11-11  Andreas Schwab  <schwab@redhat.com>
11742
11743         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
11744
11745         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
11746         * setjmp/setjmp.h: Mark functions as non-leaf.
11747         * setjmp/bits/setjmp2.h: Likewise.
11748         * stdlib/ucontext.h: Likewise.
11749
11750 2011-11-10  Andreas Schwab  <schwab@redhat.com>
11751
11752         * malloc/arena.c (_int_new_arena): Don't increment narenas.
11753         (reused_arena): Don't check arena limit.
11754         (arena_get2): Atomically check arena limit.
11755
11756 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
11757
11758         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
11759         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
11760
11761         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
11762         instructions.
11763
11764 2011-11-07  Andreas Schwab  <schwab@redhat.com>
11765
11766         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
11767         handler when locking.
11768
11769         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11770         Fix size of allocated buffer.
11771
11772 2011-11-04  Andreas Schwab  <schwab@redhat.com>
11773
11774         [BZ #10103]
11775         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
11776         declarations for long double functions.
11777         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
11778
11779         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
11780
11781 2011-11-03  Andreas Schwab  <schwab@redhat.com>
11782
11783         * nscd/nscd.c (main): Don't start AVC thread until credentials are
11784         installed.
11785
11786         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
11787         is disabled.
11788
11789 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11790
11791         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
11792
11793 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
11794
11795         * include/alloca.h (stackinfo_alloca_round): Define.
11796         (extend_alloca): Use it.
11797         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
11798         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
11799         here.
11800
11801         * scripts/check-local-headers.sh: Ignore libaudit.h.
11802
11803         * nscd/Makefile (extra-objs): Make recursively expanded.
11804
11805 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
11806
11807         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
11808         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
11809
11810         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
11811         * posix/tst-rfc3484-2.c: Likewise.
11812         * posix/tst-rfc3484-3.c: Likewise.
11813
11814         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11815         process_vm_writev.
11816         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
11817         process_vm_writev.
11818         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
11819         process_vm_writev from libc using GLIBC_2.15 version.
11820
11821         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
11822
11823 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
11824
11825         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
11826         stack usage.
11827
11828 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
11829
11830         [BZ #13367]
11831         * nss/getent.c (initgroups_keys): Show error message in case no group
11832         names are given.
11833
11834         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
11835         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
11836         __bump_nl_timestamp.
11837         * nscd/connections (nscd_init): When host database is served open
11838         netlink socket and request notification about configuration changes.
11839         (main_loop_poll): Track netlink file descriptor and bump timestamp
11840         in case data becomes available.
11841         (main_loop_epoll): Likewise.
11842         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
11843         (database_pers_head): Add extra_data fileds.
11844         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
11845         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
11846         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
11847         Adjust caller.
11848         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
11849         in6ai data, call __free_in6ai.
11850         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
11851         Add -DHAVE_NETLINK.
11852         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
11853         interface information.  Reuse previous data if netlink timestamp
11854         is not changed.
11855         (__bump_nl_timestamp): New function.
11856         (__free_in6ai): New function.
11857
11858 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
11859
11860         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
11861         close_not_cancel_no_status here.
11862         (__check_pf): Reorganize code a bit to not call close twice if OOM.
11863
11864 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
11865
11866         [BZ #13276]
11867         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
11868         return value.
11869
11870         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
11871         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
11872         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
11873
11874 2011-07-03  Andreas Jaeger  <aj@suse.de>
11875
11876         [BZ #10709]
11877         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
11878         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
11879         * math/libm-test.inc (sin_test): Add test case.
11880
11881 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
11882
11883         [BZ #13337]
11884         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
11885         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
11886
11887         * elf/chroot_canon.c (chroot_canon): Cleanups.
11888
11889         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
11890
11891         [BZ #13335]
11892         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
11893         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
11894
11895         * string/test-strchr.c: Make usable for strchrnul testing.
11896         * string/test-strchrnul.c: New file.
11897         * string/Makefile (strop-tests): Add strchrnul.
11898
11899         * po/it.po: Update from translation team.
11900         * po/es.po: Likewise.
11901
11902 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
11903
11904         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
11905         the three constants needed as parameters.  Drop the others.
11906         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
11907         __m128i_strloadu_tolower.
11908         Create and initialize variable zero and use it in all the places
11909         where _mm_setzero_si128 was used.
11910
11911         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
11912         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
11913         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
11914         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
11915         anymore.
11916         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
11917         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
11918         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
11919         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
11920         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
11921         __mpranred, __mptan.
11922         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
11923         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
11924         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
11925         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
11926         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
11927         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
11928         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
11929         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
11930         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
11931
11932 2011-10-28  Andreas Schwab  <schwab@redhat.com>
11933
11934         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
11935         redefine if SHARED.
11936         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
11937
11938         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
11939         wide char related routines to wcsmbs subdir.
11940
11941 2011-10-27  Andreas Schwab  <schwab@redhat.com>
11942
11943         [BZ #13344]
11944         * misc/sys/cdefs.h (__THROWNL): Define.
11945         * posix/unistd.h: Use __THREADNL instead of __THREAD
11946         for memory synchronization functions.
11947
11948 2011-10-26  Roland McGrath  <roland@hack.frob.com>
11949
11950         [BZ #13349]
11951         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
11952         doesn't exist.
11953         * manual/stdio.texi (Obstack Streams): Node removed.
11954
11955 2011-10-26  Andreas Schwab  <schwab@redhat.com>
11956
11957         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
11958         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11959         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11960
11961         * math/math_private.h (math_force_eval): Allow non-addressable
11962         arguments.
11963         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
11964
11965 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11966
11967         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
11968         file is not needed.
11969
11970         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
11971         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
11972         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11973         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11974         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11975         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11976         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11977         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
11978         Add AVX variants.
11979         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
11980         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
11981         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
11982         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
11983         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
11984         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
11985         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
11986         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
11987         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
11988         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
11989         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
11990         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
11991         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
11992         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
11993         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
11994         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
11995         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
11996         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
11997         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
11998
11999         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
12000         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
12001
12002         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
12003         place.  Use VEX encoding when compiling for AVX.
12004
12005 2011-10-25  Andreas Schwab  <schwab@redhat.com>
12006
12007         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
12008         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
12009
12010         * string/test-strchr.c (do_test): Don't generate NUL bytes.
12011
12012 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12013
12014         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
12015         useless if() expression.
12016         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12017         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12018         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12019         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12020         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12021         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12022         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12023         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12024         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12025         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12026         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12027         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12028         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12029         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12030         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12031         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12032         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12033         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12034         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12035
12036         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
12037
12038 2011-10-25  Andreas Schwab  <schwab@redhat.com>
12039
12040         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
12041         condition.
12042         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12043
12044 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12045
12046         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
12047         .text section.  Avoid duplicate constants.
12048         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12049         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12050         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12051         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12052         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12053         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12054         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12055         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12056         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12057         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
12058         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12059         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
12060         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
12061         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
12062         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
12063         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
12064         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
12065         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12066         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12067         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12068         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12069         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12070         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12071         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
12072         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
12073         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
12074         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
12075         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
12076         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
12077         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
12078         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
12079         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
12080         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
12081         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
12082         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
12083         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
12084         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
12085         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
12086         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
12087         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
12088         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
12089         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
12090         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
12091         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
12092         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
12093
12094 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
12095
12096         * sysdeps/x86_64/dla.h: Move to ...
12097         * sysdeps/x86_64/fpu/dla.h: ...here.
12098         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
12099         situations.  Use __builtin_fma only for gcc 4.6 and up.
12100
12101         * config.make.in: Add have-mfma4 entry.
12102         * configure.in: Substitute libc_cv_cc_fma4.
12103         * math/Makefile (dbl-only-routines): Add sincostab.
12104         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
12105         Use __sincostab not sincos.
12106         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
12107         name is a macro.
12108         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12109         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12110         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12111         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
12112         using __copysign.
12113         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
12114         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
12115         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
12116         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
12117         and __inv.
12118         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
12119         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
12120         __copysign.
12121         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
12122         define aliases when function name is a macro.
12123         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
12124         sysdeps/ieee754/dbl-64/sincos.tbl.
12125         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
12126         fma4-enabled routines.
12127         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
12128         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
12129         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
12130         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
12131         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
12132         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
12133         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
12134         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
12135         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
12136         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
12137         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
12138         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
12139         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
12140         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
12141         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
12142         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
12143         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
12144         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
12145         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
12146         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
12147         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
12148         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
12149         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
12150         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
12151         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
12152         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
12153         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
12154         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
12155         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
12156         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
12157
12158         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
12159         rename.
12160         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12161         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12162         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12163         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12164         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12165         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12166         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12167         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12168
12169 2011-10-24  Andreas Schwab  <schwab@redhat.com>
12170
12171         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
12172
12173 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12174
12175         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
12176
12177         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
12178         prediction.
12179         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
12180
12181         * string/strnlen.c: Don't define STRNLEN, reverse logic.
12182         Remove unused variable magic_bits.
12183         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
12184
12185         * string/strnlen.c: Define and use STRNLEN macro.
12186         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
12187         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
12188         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
12189         * wcsmbs/wcslen.c: Define and use WCSLEN.
12190         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
12191         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
12192         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
12193         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
12194         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
12195         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
12196         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
12197
12198 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12199
12200         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12201         strnlen-sse2-no-bsf.
12202         Rename strlen-no-bsf to strlen-sse2-no-bsf.
12203         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
12204         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
12205         Add strnlen support.
12206         (USE_AS_STRNLEN): New macro.
12207         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
12208         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
12209         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
12210         * sysdeps/x86_64/wcslen.S: New file.
12211
12212 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
12213
12214         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
12215         XMM-moves are used for copying on small sizes.
12216
12217 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12218
12219         * wcsmbs/Makefile (strop-tests): Add wcschr.
12220         * wcsmbs/test-wcschr.c: New file.
12221         * string/test-strchr.c: Update.
12222         Add wcschr support.
12223         (WIDE): New macro.
12224
12225 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12226
12227         * wcsmbs/Makefile (strop-tests): Add wcslen.
12228         * wcsmbs/test-wcslen.c: New file.
12229         * string/test-strlen.c: Update.
12230         Add wcslen support.
12231         (WIDE): New macro.
12232
12233 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12234
12235         * po/it.po: Update from translation team.
12236
12237 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12238
12239         * sysdeps/x86_64/wcscmp.S: Update.
12240         Fix wrong comparison semantics.
12241         wcscmp shall use signed comparison not unsigned.
12242         Don't use substraction to avoid overflow bug.
12243         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
12244         * wcsmbc/wcscmp.c: Likewise.
12245         * string/test-strcmp.c: Likewise.
12246         Add new tests to check cases with negative values.
12247
12248 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12249
12250         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
12251         * sysdeps/x86_64/dla.h: ...here.  New file.
12252         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
12253         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12254         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12255         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12256         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12257         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12258         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12259         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12260         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12261
12262 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
12263
12264         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
12265         __ynl_finite aliases.
12266
12267 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
12268
12269         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12270
12271         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
12272         define DLA_FMA.
12273         [DLA_FMA] (EMULV): Use DLA_FMA.
12274         [DLA_FMA] (MUL12): Use EMULV.
12275         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
12276         that are not needed.
12277         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12278         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12279         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12280         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12281         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12282         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12283         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12284
12285 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
12286
12287         * math/s_nan.c: Undef __nan.
12288         * math/s_nanf.c: Undef __nanf.
12289         * math/s_nanl.c: Undef __nanl.
12290         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
12291         "math_private.h".
12292
12293 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
12294
12295         * math/s_catan.c: Add branch predictions.
12296         * math/s_catanf.c: Likewise.
12297         * math/s_catanh.c: Likewise.
12298         * math/s_catanhf.c: Likewise.
12299         * math/s_catanhl.c: Likewise.
12300         * math/s_catanl.c: Likewise.
12301         * math/s_cexp.c: Likewise.
12302         * math/s_cexpf.c: Likewise.
12303         * math/s_cexpl.c: Likewise.
12304         * math/s_clog.c: Likewise.
12305         * math/s_clog10.c: Likewise.
12306         * math/s_clog10f.c: Likewise.
12307         * math/s_clog10l.c: Likewise.
12308         * math/s_clogf.c: Likewise.
12309         * math/s_clogl.c: Likewise.
12310         * math/s_csqrt.c: Likewise.
12311         * math/s_csqrtf.c: Likewise.
12312         * math/s_csqrtl.c: Likewise.
12313         * math/s_ctanf.c: Likewise.
12314         * math/s_ctanh.c: Likewise.
12315         * math/s_ctanhf.c: Likewise.
12316         * math/s_ctanhl.c: Likewise.
12317         * math/s_ctanl.c: Likewise.
12318
12319         * math/math_private.h: Define __nan, __nanf, __nanl.
12320         * math/s_cacosh.c: Include <math_private.h>.
12321         * math/s_cacoshl.c: Likewise.
12322         * math/s_casinh.c: Likewise.
12323         * math/s_casinhf.c: Likewise.
12324         * math/s_casinhl.c: Likewise.
12325         * math/s_ccos.c: Rely entire on ccosh.
12326         * math/s_ccosf.c: Rely entire on ccoshf.
12327         * math/s_ccosl.c: Rely entirely on ccoshl.
12328         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
12329         Remove tests for FE_INVALID.
12330         * math/s_ccoshf.c: Likewise.
12331         * math/s_ccoshl.c: Likewise.
12332         * math/s_csin.c: Likewise.
12333         * math/s_csinf.c: Likewise.
12334         * math/s_csinh.c Likewise.
12335         * math/s_csinhf.c: Likewise.
12336         * math/s_csinhl.c: Likewise.
12337         * math/s_csinl.c: Likewise.
12338         * math/s_ctan.c: Likewise.
12339         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
12340         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
12341         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
12342
12343 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
12344
12345         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
12346         compilation problems.
12347
12348         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
12349         __builtin_expect.
12350
12351 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
12352
12353         * sysdeps/i386/configure.in: Test for -mfma4 option.
12354         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
12355         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
12356         COMMON_CPUID_INDEX_80000001.
12357         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
12358         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
12359         use it if FMA3 is not supported.
12360         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
12361
12362         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
12363         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12364
12365 2011-10-20  Andreas Schwab  <schwab@redhat.com>
12366
12367         [BZ #12892]
12368         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
12369         it would create a cycle with a link time dependency.
12370
12371 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
12372
12373         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
12374         instruction.
12375         * string/Makefile (strop-tests): Add rawmemchr.
12376         * string/test-rawmemchr.c: New file.
12377
12378         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
12379         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
12380         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
12381         when compiling str{,n}casecmp and when AVX is available.  Hook up
12382         new optimized code in initializers.
12383
12384 2011-10-19  Andreas Schwab  <schwab@redhat.com>
12385
12386         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
12387         __feraiseexcept instead of feraiseexcept.
12388
12389 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
12390
12391         * math/math_private.h: Define defaults for libc_fetestexcept and
12392         libc_feupdateenv.
12393         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
12394         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12395         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12396         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12397         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12398         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12399         libc_fetestexcept and libc_feupdateenv.
12400
12401         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
12402         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
12403         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
12404         * sysdeps/x86_64/fpu/math_private.h: Define special version of
12405         libc_feholdexcept_setround.
12406
12407         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
12408         Add s_nearbyint-c and s_nearbyintf-c.
12409         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
12410         nearbyintf inlines.
12411         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
12412         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
12413         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
12414         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
12415
12416         * math/math_private.h: Define defaults for libc_fegetround,
12417         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
12418         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
12419         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
12420         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
12421         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
12422         standard functions.
12423         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12424         Remove comments and hacks for old compiler versions.
12425         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12426         libc_fegetround, libc_fesetround, libc_feholdexcept, and
12427         libc_feholdexceptl.
12428
12429 2011-10-18  Andreas Schwab  <schwab@redhat.com>
12430
12431         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
12432         (__feraiseexcept_renamed): Add __NTH.
12433         (feraiseexcept): Add __NTH.  Rename local variables to fix
12434         namespace violations.
12435
12436 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
12437
12438         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
12439
12440         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
12441
12442         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
12443         recently added interfaces.
12444         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12445
12446         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
12447         about macro parameter expansion.
12448
12449         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
12450         __NO_MATH_INLINES is defined.  Cleanups.
12451
12452         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
12453         and __floorf is target has SSE4.1.
12454         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
12455         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
12456         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
12457         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
12458
12459         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
12460         name.
12461         (floorf): Likewise.
12462
12463         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
12464
12465 2011-10-17  Andreas Schwab  <schwab@redhat.com>
12466
12467         * misc/sys/cdefs.h: Fix last change.
12468
12469         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
12470         database lookup.
12471
12472 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
12473
12474         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
12475
12476         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
12477         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12478         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12479         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12480         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12481         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12482         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12483         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12484         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12485         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
12486         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
12487         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
12488         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
12489         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
12490         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
12491         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
12492         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
12493         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
12494         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
12495         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
12496         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
12497         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
12498
12499         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
12500         ceil, ceilf, floor, floorf.
12501
12502         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
12503         Perform IRELATIVE relocations last.
12504
12505         * elf/do-rel.h: Add another parameter nrelative, replacing the
12506         local variable with the same name.  Change name of the function
12507         to end in Rel or Rela (uppercase).
12508         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
12509         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
12510         elf_dynamic_do_##reloc function.
12511
12512 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
12513
12514         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
12515         is sufficient, at least on modern CPUs.
12516
12517         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
12518
12519         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
12520         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
12521
12522         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
12523         __expl_finite.
12524         * math/bits/math-finite.h: Add entries for exp.
12525         * math/e_expl.c: Add __*_finite alias.
12526         * sysdeps/i386/fpu/e_exp.S: Likewise.
12527         * sysdeps/i386/fpu/e_expf.S: Likewise.
12528         * sysdeps/i386/fpu/e_expl.c: Likewise.
12529         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12530         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12531         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12532         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12533         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
12534         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12535         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12536
12537         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
12538         is sufficient, at least on modern CPUs.
12539
12540         * ctype/ctype-info.c (__ctype_init): Define.
12541         * include/ctype.h (__ctype_init): Declare.
12542         (__ctype_b_loc): The variable is always initialized.
12543         (__ctype_toupper_loc): Likewise.
12544         (__ctype_tolower_loc): Likewise.
12545         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
12546         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
12547
12548 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
12549
12550         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
12551
12552         * configure.in: Also look in $cxxmachine/include for C++ system
12553         headers.
12554
12555 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12556
12557         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
12558         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
12559         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
12560         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
12561         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
12562         (USE_AS_WMEMCMP): New macro.
12563         Fixing indents.
12564         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
12565         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
12566         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
12567         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
12568         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12569         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
12570         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
12571         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
12572         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
12573         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
12574         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
12575         (USE_AS_WMEMCMP): New macro.
12576         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
12577         * sysdeps/string/test-memcmp.c: Update.
12578         Fix simple_wmemcmp.
12579         Add new tests.
12580         * wcsmbs/wmemcmp.c: Update.
12581         (WMEMCMP): New macro.
12582         Fix overflow bug.
12583
12584 2011-10-12  Andreas Jaeger  <aj@suse.de>
12585
12586         [BZ #13268]
12587         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
12588
12589 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
12590
12591         * libio/iofwide.c (do_length): Avoid warning.
12592
12593         * ctype/ctype.h (__isctype_f): Add missing __THROW.
12594
12595 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
12596
12597         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
12598
12599         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
12600         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
12601         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
12602         * sysdeps/i386/i686/fpu/e_log.S: New file.
12603         * sysdeps/i386/i686/fpu/e_logf.S: New file.
12604         * sysdeps/i386/i686/fpu/e_logl.S: New file.
12605
12606         * ctype/ctype.h: Add support for inlined isXXX functions when
12607         compiling C++ code.
12608
12609 2011-10-14  Andreas Schwab  <schwab@redhat.com>
12610
12611         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12612
12613         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
12614
12615 2011-10-13  Roland McGrath  <roland@hack.frob.com>
12616
12617         [BZ #13291]
12618         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
12619
12620 2011-10-13  Andreas Schwab  <schwab@redhat.com>
12621
12622         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
12623         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
12624         feraiseexcept.
12625
12626         * sysdeps/x86_64/memrchr.S: Check for zero size.
12627
12628         * string/stratcliff.c: Add memrchr tests.
12629
12630 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12631
12632         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12633         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
12634         rawmemchr-sse2 rawmemchr-sse2-bsf.
12635         * sysdeps/i386/i686/multiarch/memchr.S: New file.
12636         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
12637         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
12638         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
12639         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
12640         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
12641         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
12642         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
12643         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
12644         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
12645         * string/memrchr.c (MEMRCHR): New macro.
12646
12647 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
12648
12649         Add integration with gcc's -ffinite-math-only and optimize wrapper
12650         functions in libm.
12651         * Versions.def: Define GLIBC_2.15 version for libm.
12652         * math/Makefile (headers): Add bits/math-finite.h.
12653         * math/bits/math-finite.h: New file.
12654         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
12655         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
12656         * math/e_acoshl.c: Add __*_finite alias.
12657         * math/e_acosl.c: Likewise.
12658         * math/e_asinl.c: Likewise.
12659         * math/e_atan2l.c: Likewise.
12660         * math/e_atanhl.c: Likewise.
12661         * math/e_coshl.c: Likewise.
12662         * math/e_exp10.c: Likewise.
12663         * math/e_exp10f.c: Likewise.
12664         * math/e_exp10l.c: Likewise.
12665         * math/e_exp2l.c: Likewise.
12666         * math/e_fmodl.c: Likewise.
12667         * math/e_gammal_r.c: Likewise.
12668         * math/e_hypotl.c: Likewise.
12669         * math/e_j0l.c: Likewise.
12670         * math/e_j1l.c: Likewise.
12671         * math/e_jnl.c: Likewise.
12672         * math/e_lgammal_r.c: Likewise.
12673         * math/e_log10l.c: Likewise.
12674         * math/e_log2l.c: Likewise.
12675         * math/e_logl.c: Likewise.
12676         * math/e_powl.c: Likewise.
12677         * math/e_sinhl.c: Likewise.
12678         * math/e_sqrtl.c: Likewise.
12679         * math/e_scalb.c: Completely rewritten and optimized.
12680         * math/e_scalbf.c: Likewise.
12681         * math/e_scalbl.c: Likewise.
12682         * math/w_acos.c: Likewise.
12683         * math/w_acosf.c: Likewise.
12684         * math/w_acosl.c: Likewise.
12685         * math/w_acosh.c: Likewise.
12686         * math/w_acoshf.c: Likewise.
12687         * math/w_acoshl.c: Likewise.
12688         * math/w_asin.c: Likewise.
12689         * math/w_asinf.c: Likewise.
12690         * math/w_asinl.c: Likewise.
12691         * math/w_atan2.c: Likewise.
12692         * math/w_atan2f.c: Likewise.
12693         * math/w_atan2l.c: Likewise.
12694         * math/w_atanh.c: Likewise.
12695         * math/w_atanhf.c: Likewise.
12696         * math/w_atanhl.c: Likewise.
12697         * math/w_exp10.c: Likewise.
12698         * math/w_exp10f.c: Likewise.
12699         * math/w_exp10l.c: Likewise.
12700         * math/w_fmod.c: Likewise.
12701         * math/w_fmodf.c: Likewise.
12702         * math/w_fmodl.c: Likewise.
12703         * math/w_j0.c: Likewise.
12704         * math/w_j0f.c: Likewise.
12705         * math/w_j0l.c: Likewise.
12706         * math/w_j1.c: Likewise.
12707         * math/w_j1f.c: Likewise.
12708         * math/w_j1l.c: Likewise.
12709         * math/w_jn.c: Likewise.
12710         * math/w_jnf.c: Likewise.
12711         * math/w_log.c: Likewise.
12712         * math/w_logf.c: Likewise.
12713         * math/w_logl.c: Likewise.
12714         * math/w_log10.c: Likewise.
12715         * math/w_log10f.c: Likewise.
12716         * math/w_log10l.c: Likewise.
12717         * math/w_log2.c: Likewise.
12718         * math/w_log2f.c: Likewise.
12719         * math/w_log2l.c: Likewise.
12720         * math/w_pow.c: Likewise.
12721         * math/w_powf.c: Likewise.
12722         * math/w_powl.c: Likewise.
12723         * math/w_remainder.c: Likewise.
12724         * math/w_remainderf.c: Likewise.
12725         * math/w_remainderl.c: Likewise.
12726         * math/w_scalb.c: Likewise.
12727         * math/w_scalbf.c: Likewise.
12728         * math/w_scalbl.c: Likewise.
12729         * math/w_sqrt.c: Likewise.
12730         * math/w_sqrtf.c: Likewise.
12731         * math/w_sqrtl.c: Likewise.
12732         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
12733         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
12734         used.
12735         * math/math_private.h: Declare __kernel_standard_f.
12736         * math/w_cosh.c: Remove cruft and optimize a bit.
12737         * math/w_coshf.c: Likewise.
12738         * math/w_coshl.c: Likewise.
12739         * math/w_exp2.c: Likewise.
12740         * math/w_exp2f.c: Likewise.
12741         * math/w_exp2l.c: Likewise.
12742         * math/w_hypot.c: Likewise.
12743         * math/w_hypotf.c: Likewise.
12744         * math/w_hypotl.c: Likewise.
12745         * math/w_lgamma.c: Likewise.
12746         * math/w_lgamma_r.c: Likewise.
12747         * math/w_lgammaf.c: Likewise.
12748         * math/w_lgammaf_r.c: Likewise.
12749         * math/w_lgammal.c: Likewise.
12750         * math/w_lgammal_r.c: Likewise.
12751         * math/w_sinh.c: Likewise.
12752         * math/w_sinhf.c: Likewise.
12753         * math/w_sinhl.c: Likewise.
12754         * math/w_tgamma.c: Likewise.
12755         * math/w_tgammaf.c: Likewise.
12756         * math/w_tgammal.c: Likewise.
12757         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12758         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12759         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
12760         Minor optimizations.  Pretty printing.  Remove cruft.
12761         * sysdeps/i386/fpu/e_acosf.S: Likewise.
12762         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12763         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12764         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12765         * sysdeps/i386/fpu/e_acosl.c: Likewise.
12766         * sysdeps/i386/fpu/e_asin.S: Likewise.
12767         * sysdeps/i386/fpu/e_asinf.S: Likewise.
12768         * sysdeps/i386/fpu/e_atan2.S: Likewise.
12769         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
12770         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
12771         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12772         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12773         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12774         * sysdeps/i386/fpu/e_exp10.S: Likewise.
12775         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
12776         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
12777         * sysdeps/i386/fpu/e_exp2.S: Likewise.
12778         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
12779         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
12780         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12781         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
12782         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12783         * sysdeps/i386/fpu/e_hypot.S: Likewise.
12784         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
12785         * sysdeps/i386/fpu/e_log.S: Likewise.
12786         * sysdeps/i386/fpu/e_log10.S: Likewise.
12787         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12788         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12789         * sysdeps/i386/fpu/e_log2.S: Likewise.
12790         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12791         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12792         * sysdeps/i386/fpu/e_logf.S: Likewise.
12793         * sysdeps/i386/fpu/e_logl.S: Likewise.
12794         * sysdeps/i386/fpu/e_pow.S: Likewise.
12795         * sysdeps/i386/fpu/e_powf.S: Likewise.
12796         * sysdeps/i386/fpu/e_powl.S: Likewise.
12797         * sysdeps/i386/fpu/e_remainder.S: Likewise.
12798         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
12799         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
12800         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12801         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12802         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12803         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
12804         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
12805         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
12806         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12807         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12808         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12809         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12810         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12811         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12812         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12813         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12814         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12815         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12816         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12817         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12818         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12819         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12820         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12821         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12822         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12823         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12824         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12825         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12826         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12827         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12828         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12829         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12830         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12831         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12832         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12833         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12834         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12835         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12836         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12837         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12838         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12839         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12840         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12841         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12842         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12843         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12844         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12845         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12846         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12847         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12848         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12849         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12850         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12851         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12852         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12853         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12854         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12855         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12856         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12857         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12858         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12859         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12860         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12861         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12862         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12863         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12864         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12865         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12866         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12867         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12868         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12869         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12870         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12871         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12872         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12873         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12874         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12875         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12876         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12877         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12878         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12879         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12880         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12881         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12882         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
12883         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12884         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12885         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12886         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12887         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12888         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12889         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12890         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12891         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12892         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12893         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12894         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12895         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12896         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12897         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12898         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12899         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12900         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12901         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
12902         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
12903         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
12904         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
12905         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
12906         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
12907         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
12908         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
12909         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
12910         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12911         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12912         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12913         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12914         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
12915         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12916         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
12917         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
12918         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
12919         (__isnanf): Likewise.
12920         (__isinf_ns): Likewise.
12921         (__isinf_nsf): Likewise.
12922         (__finite): Likewise.
12923         (__finitef): Likewise.
12924         (__ieee754_sqrt): Define as macro.
12925         (__ieee754_sqrtf): Define as macro.
12926         (__ieee754_sqrtl): Define as macro.
12927         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
12928         inlined copy.
12929         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
12930         __FINITE_MATH_ONLY__ consistent.
12931         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
12932
12933 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
12934
12935         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
12936         of rawmemchr.
12937
12938         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
12939
12940 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
12941
12942         * po/ja.po: Update from translation team.
12943
12944 2011-10-08  Roland McGrath  <roland@hack.frob.com>
12945
12946         * locale/programs/locarchive.c (prepare_address_space): New function.
12947         (create_archive, enlarge_archive, open_archive): Use it.
12948
12949         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
12950         inside [SHARED], where it is used.
12951
12952         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
12953
12954         * nss/getent.c (netgroup_keys): Remove unused variable.
12955         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12956
12957 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
12958
12959         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
12960         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
12961         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
12962         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
12963         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
12964         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
12965         * math/Makefile (libm-calls): Add s_isinf_ns.
12966         * math/divtc3.c: Use __isinf_nsl instead of isinf.
12967         * math/multc3.c: Likewise.
12968         * math/s_casin.c: Likewise.
12969         * math/s_casinf.c: Likewise.
12970         * math/s_casinl.c: Likewise.
12971         * math/s_ccos.c: Likewise.
12972         * math/s_ccosf.c: Likewise.
12973         * math/s_ccosl.c: Likewise.
12974         * math/s_ctan.c: Likewise.
12975         * math/s_ctanf.c: Likewise.
12976         * math/s_ctanh.c: Likewise.
12977         * math/s_ctanhf.c: Likewise.
12978         * math/s_ctanhl.c: Likewise.
12979         * math/s_ctanl.c: Likewise.
12980         * math/w_fmod.c: Likewise.
12981         * math/w_fmodf.c: Likewise.
12982         * math/w_fmodl.c: Likewise.
12983         * math/w_remainder.c: Likewise.
12984         * math/w_remainderf.c: Likewise.
12985         * math/w_remainderl.c: Likewise.
12986         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
12987         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
12988         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
12989         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
12990         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
12991         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
12992         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
12993         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
12994
12995         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
12996         of the number.
12997         * stdio-common/printf_fphex.c: Likewise.
12998         * stdio-common/printf_size.c: Likewise.
12999
13000         * math/e_exp10.c: Include math_private.h using <...> not "...".
13001         * math/e_exp10f.c: Likewise.
13002         * math/e_exp10l.c: Likewise.
13003         * math/e_exp2l.c: Likewise.
13004         * math/e_j0l.c: Likewise.
13005         * math/e_j1l.c: Likewise.
13006         * math/e_jnl.c: Likewise.
13007         * math/e_lgammal_r.c: Likewise.
13008         * math/e_rem_pio2l.c: Likewise.
13009         * math/e_scalb.c: Likewise.
13010         * math/e_scalbf.c: Likewise.
13011         * math/e_scalbl.c: Likewise.
13012         * math/k_cosl.c: Likewise.
13013         * math/k_sinl.c: Likewise.
13014         * math/k_tanl.c: Likewise.
13015         * math/s_cacoshf.c: Likewise.
13016         * math/s_catan.c: Likewise.
13017         * math/s_catanf.c: Likewise.
13018         * math/s_catanh.c: Likewise.
13019         * math/s_catanhf.c: Likewise.
13020         * math/s_catanhl.c: Likewise.
13021         * math/s_catanl.c: Likewise.
13022         * math/s_ccosh.c: Likewise.
13023         * math/s_ccoshf.c: Likewise.
13024         * math/s_ccoshl.c: Likewise.
13025         * math/s_cexp.c: Likewise.
13026         * math/s_cexpf.c: Likewise.
13027         * math/s_cexpl.c: Likewise.
13028         * math/s_clog.c: Likewise.
13029         * math/s_clog10.c: Likewise.
13030         * math/s_clog10f.c: Likewise.
13031         * math/s_clog10l.c: Likewise.
13032         * math/s_clogf.c: Likewise.
13033         * math/s_clogl.c: Likewise.
13034         * math/s_csin.c: Likewise.
13035         * math/s_csinf.c: Likewise.
13036         * math/s_csinh.c: Likewise.
13037         * math/s_csinhf.c: Likewise.
13038         * math/s_csinhl.c: Likewise.
13039         * math/s_csinl.c: Likewise.
13040         * math/s_csqrt.c: Likewise.
13041         * math/s_csqrtf.c: Likewise.
13042         * math/s_csqrtl.c: Likewise.
13043         * math/s_ctan.c: Likewise.
13044         * math/s_ctanf.c: Likewise.
13045         * math/s_ctanh.c: Likewise.
13046         * math/s_ctanhf.c: Likewise.
13047         * math/s_ctanhl.c: Likewise.
13048         * math/s_ctanl.c: Likewise.
13049         * math/s_ldexp.c: Likewise.
13050         * math/s_ldexpf.c: Likewise.
13051         * math/s_ldexpl.c: Likewise.
13052         * math/s_significand.c: Likewise.
13053         * math/s_significandf.c: Likewise.
13054         * math/s_significandl.c: Likewise.
13055         * math/w_acos.c: Likewise.
13056         * math/w_acosf.c: Likewise.
13057         * math/w_acosh.c: Likewise.
13058         * math/w_acoshf.c: Likewise.
13059         * math/w_acoshl.c: Likewise.
13060         * math/w_acosl.c: Likewise.
13061         * math/w_asin.c: Likewise.
13062         * math/w_asinf.c: Likewise.
13063         * math/w_asinl.c: Likewise.
13064         * math/w_atan2.c: Likewise.
13065         * math/w_atan2f.c: Likewise.
13066         * math/w_atan2l.c: Likewise.
13067         * math/w_atanh.c: Likewise.
13068         * math/w_atanhf.c: Likewise.
13069         * math/w_atanhl.c: Likewise.
13070         * math/w_cosh.c: Likewise.
13071         * math/w_coshf.c: Likewise.
13072         * math/w_coshl.c: Likewise.
13073         * math/w_dremf.c: Likewise.
13074         * math/w_exp10.c: Likewise.
13075         * math/w_exp10f.c: Likewise.
13076         * math/w_exp10l.c: Likewise.
13077         * math/w_exp2.c: Likewise.
13078         * math/w_exp2f.c: Likewise.
13079         * math/w_fmod.c: Likewise.
13080         * math/w_fmodf.c: Likewise.
13081         * math/w_fmodl.c: Likewise.
13082         * math/w_hypot.c: Likewise.
13083         * math/w_hypotf.c: Likewise.
13084         * math/w_hypotl.c: Likewise.
13085         * math/w_j0.c: Likewise.
13086         * math/w_j0f.c: Likewise.
13087         * math/w_j0l.c: Likewise.
13088         * math/w_j1.c: Likewise.
13089         * math/w_j1f.c: Likewise.
13090         * math/w_j1l.c: Likewise.
13091         * math/w_jn.c: Likewise.
13092         * math/w_jnf.c: Likewise.
13093         * math/w_jnl.c: Likewise.
13094         * math/w_lgamma.c: Likewise.
13095         * math/w_lgamma_r.c: Likewise.
13096         * math/w_lgammaf.c: Likewise.
13097         * math/w_lgammaf_r.c: Likewise.
13098         * math/w_lgammal.c: Likewise.
13099         * math/w_lgammal_r.c: Likewise.
13100         * math/w_log.c: Likewise.
13101         * math/w_log10.c: Likewise.
13102         * math/w_log10f.c: Likewise.
13103         * math/w_log10l.c: Likewise.
13104         * math/w_log2.c: Likewise.
13105         * math/w_log2f.c: Likewise.
13106         * math/w_log2l.c: Likewise.
13107         * math/w_logf.c: Likewise.
13108         * math/w_logl.c: Likewise.
13109         * math/w_pow.c: Likewise.
13110         * math/w_powf.c: Likewise.
13111         * math/w_powl.c: Likewise.
13112         * math/w_remainder.c: Likewise.
13113         * math/w_remainderf.c: Likewise.
13114         * math/w_remainderl.c: Likewise.
13115         * math/w_scalb.c: Likewise.
13116         * math/w_scalbf.c: Likewise.
13117         * math/w_scalbl.c: Likewise.
13118         * math/w_sinh.c: Likewise.
13119         * math/w_sinhf.c: Likewise.
13120         * math/w_sinhl.c: Likewise.
13121         * math/w_sqrt.c: Likewise.
13122         * math/w_sqrtf.c: Likewise.
13123         * math/w_sqrtl.c: Likewise.
13124         * math/w_tgamma.c: Likewise.
13125         * math/w_tgammaf.c: Likewise.
13126         * math/w_tgammal.c: Likewise.
13127
13128         * po/ja.po: Update from translation team.
13129
13130 2011-09-29  Andreas Jaeger  <aj@suse.de>
13131
13132         [BZ #13179]
13133         * sunrpc/netname.c (netname2host): Fix logic.
13134
13135         [BZ #6779]
13136         [BZ #6783]
13137         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
13138         correctly.
13139         * math/w_remainder.c (__remainder): Likewise.
13140         * math/w_remainderf.c (__remainderf): Likewise.
13141         * math/libm-test.inc (remainder_test): Add test cases.
13142
13143 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13144
13145         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
13146         sdiv_qrnnd.
13147
13148 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
13149
13150         * string/test-memcmp.c: Avoid unncessary #defines.
13151         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13152
13153 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13154
13155         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
13156         Use new sse2 version for core i3 - i7 as it's faster
13157         than sse42 version.
13158         (bit_Prefer_PMINUB_for_stringop): New.
13159         * sysdeps/x86_64/rawmemchr.S: Update.
13160         Replace with faster SSE2 version.
13161         * sysdeps/x86_64/memrchr.S: New file.
13162         * sysdeps/x86_64/memchr.S: Update.
13163         Replace with faster SSE2 version.
13164
13165 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
13166
13167         * elf/dl-load.c (lose): Add cast to avoid warning.
13168
13169 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
13170
13171         * po/ca.po: Update from translation team.
13172
13173         * inet/getnetgrent_r.c: Hook up nscd.
13174         * nscd/Makefile (routines): Add nscd_netgroup.
13175         (nscd-modules): Add netgroupcache.
13176         (CFLAGS-netgroupcache.c): Define.
13177         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
13178         (cache_search): Add const to second parameter.
13179         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
13180         INNETGR.
13181         (dbs): Add netgrdb entry.
13182         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
13183         (verify_persistent_db): Handle netgrdb.
13184         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
13185         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
13186         GETFDNETGR.
13187         (netgroup_response_header): Define.
13188         (innetgroup_response_header): Define.
13189         (datahead): Add netgroup_response_header and innetgroup_response_header
13190         elements.
13191         * nscd/nscd.conf: Add entries for netgroup cache.
13192         * nscd/nscd.h (dbtype): Add netgrdb.
13193         (_PATH_NSCD_NETGROUP_DB): Define.
13194         (netgroup_iov_disabled): Declare.
13195         (xmalloc, xcalloc, xrealloc): Move declarations here.
13196         (cache_search): Adjust prototype.
13197         Add netgroup-related prototypes.
13198         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
13199         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
13200         (__nscd_innetgr): Declare.
13201         * nscd/selinux.c (perms): Use access_vector_t as element type and
13202         add netgroup-related initializers.
13203         * nscd/netgroupcache.c: New file.
13204         * nscd/nscd_netgroup.c: New file.
13205         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
13206         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
13207         For four parameters use innetgr.
13208         * nss/nss_files/files-init.c: Add definition and callback for netgr.
13209         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
13210         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
13211         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
13212
13213         * nscd/connections.c (register_traced_file): Don't register file
13214         for disabled databases.
13215
13216 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
13217
13218         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
13219
13220         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
13221         from tree and freeing node.
13222
13223 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
13224
13225         * nss/nsswitch.c (__nss_database_lookup): Handle
13226         nss_parse_service_list out of memory case.
13227
13228 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
13229
13230         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
13231         out of memory case.
13232
13233 2011-10-04  Andreas Schwab  <schwab@redhat.com>
13234
13235         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
13236         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
13237         pass it down.
13238         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
13239         elf_machine_rela, elf_machine_lazy_rel.
13240         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
13241         (ELF_DYNAMIC_DO_REL): Likewise.
13242         (ELF_DYNAMIC_DO_RELA): Likewise.
13243         (ELF_DYNAMIC_RELOCATE): Likewise.
13244         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
13245         to ELF_DYNAMIC_DO_REL.
13246         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
13247         (dl_main): In trace mode always set __RTLD_NOIFUNC.
13248         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
13249         elf_machine_rela.
13250         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
13251         skip_ifunc, don't call ifunc function if non-zero.
13252         (elf_machine_rela): Likewise.
13253         (elf_machine_lazy_rel): Likewise.
13254         (elf_machine_lazy_rela): Likewise.
13255         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13256         (elf_machine_lazy_rel): Likewise.
13257         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13258         Likewise.
13259         (elf_machine_lazy_rel): Likewise.
13260         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13261         Likewise.
13262         (elf_machine_lazy_rel): Likewise.
13263         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
13264         (elf_machine_lazy_rel): Likewise.
13265         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
13266         (elf_machine_lazy_rel): Likewise.
13267         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13268         (elf_machine_lazy_rel): Likewise.
13269         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
13270         (elf_machine_lazy_rel): Likewise.
13271         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
13272         (elf_machine_lazy_rel): Likewise.
13273         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13274         (elf_machine_lazy_rel): Likewise.
13275
13276 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
13277
13278         * nss/nss_files/files-init.c (_nss_files_init): Use static
13279         initialization for all the *_traced_file variables.
13280
13281 2011-09-28  Andreas Schwab  <schwab@redhat.com>
13282
13283         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13284
13285 2011-09-27  Roland McGrath  <roland@hack.frob.com>
13286
13287         [BZ #13226]
13288         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
13289
13290 2011-09-27  Andreas Schwab  <schwab@redhat.com>
13291
13292         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13293         Reread the line before reparsing it.
13294
13295 2011-09-26  Andreas Schwab  <schwab@redhat.com>
13296
13297         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
13298
13299 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
13300             Maxim Kuvyrkov  <maxim@codesourcery.com>
13301             Joseph Myers  <joseph@codesourcery.com>
13302
13303         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
13304         if needed for __stack_chk_guard.
13305
13306 2011-09-19  Roland McGrath  <roland@hack.frob.com>
13307
13308         * sysdeps/posix/spawni.c (script_execute): Always define it.
13309         It will be optimized away if unused.
13310         (maybe_script_execute): New function.
13311         (__spawni): Call it.
13312
13313         * Makerules: Don't include tls.make.
13314         (config-tls): Always set to thread.
13315         * tls.make.c: File removed.
13316
13317 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
13318
13319         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
13320         * config.make.in (CPPFLAGS-config): New substituted variable.
13321
13322 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
13323
13324         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
13325
13326         [BZ #13192]
13327         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
13328         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
13329
13330 2011-09-15  Roland McGrath  <roland@hack.frob.com>
13331
13332         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
13333         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
13334         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
13335         (CALL_FAIL): Likewise.
13336         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
13337         (CALL_FAIL): Macro removed.
13338         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
13339
13340 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
13341
13342         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
13343         for __FINITE_MATH_ONLY__ == 1.
13344
13345 2011-09-15  Andreas Schwab  <schwab@redhat.com>
13346
13347         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
13348         __ieee754_sqrt instead of sqrt.
13349         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
13350         __ieee754_sqrtf instead of sqrtf.
13351         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
13352         __floorf instead of floorf.
13353         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
13354         __floorf, __truncf instead of floorf, truncf.
13355
13356 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
13357
13358         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
13359
13360         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
13361         __extern_always_inline.
13362         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
13363         32-bit.
13364
13365 2011-09-14  Andreas Schwab  <schwab@redhat.com>
13366
13367         * elf/rtld.c (dl_main): Also relocate in dependency order when
13368         doing symbol dependency testing.
13369
13370 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
13371
13372         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13373         Always define `refsym'.
13374
13375 2011-09-13  Andreas Schwab  <schwab@redhat.com>
13376
13377         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
13378         (__FD_ELT): Renamed from __FDELT.
13379         * misc/bits/select2.h (__FD_ELT): Likewise.
13380         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
13381         __FD_MASK instead of __FDELT, __FDMASK.
13382         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13383         Likewise.
13384         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13385         Likewise.
13386
13387         * elf/Makefile (gen-ldd): Fix pattern.
13388
13389         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
13390         (init_tls): Likewise.
13391
13392 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
13393
13394         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
13395
13396 2011-09-12  Andreas Schwab  <schwab@redhat.com>
13397
13398         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
13399         `struct cmsghdr *' instead of `void *'.
13400         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
13401         Likewise.
13402
13403 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
13404
13405         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
13406         if non-absolute.
13407         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
13408         ldd_rewrite_script.
13409
13410 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
13411
13412         * configure.in: Remove --with-tls option.
13413         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
13414         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
13415         out in case it is missing.
13416         * sysdeps/ia64/elf/configure.in: Likewise.
13417         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
13418         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
13419         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
13420         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
13421         * sysdeps/sh/elf/configure.in: Likewise.
13422         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
13423         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13424         * sysdeps/x86_64/elf/configure.in: Likewise.
13425         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
13426         * sysdeps/mach/hurd/tls.h: Likewise.
13427
13428         [BZ #13067]
13429         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
13430
13431         [BZ #13090]
13432         * configure.in: Fix use of AC_INIT.
13433
13434         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
13435
13436 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
13437
13438         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
13439         __set_errno.
13440         * malloc/hooks.c: Likewise.
13441
13442         [BZ #11929]
13443         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
13444         variables statically.
13445         (narenas): Initialize.
13446         (list_lock): Initialize.
13447         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
13448         initializtion of main_arena and list_lock.  Small cleanups.
13449         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
13450         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
13451         Add initializers to main_arena and mp_.
13452         (malloc_state): Remove pagesize member.  Change all users to use
13453         GLRO(dl_pagesize).
13454
13455         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
13456         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
13457         is always initialized.
13458
13459         * malloc/malloc.c: Removed unused configurations and dead code.
13460         * malloc/arena.c: Likewise.
13461         * malloc/hooks.c: Likewise.
13462         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
13463
13464         * include/tls.h: Removed.  USE___THREAD must always be defined.
13465         * bits/libc-tsd.h: Don't handle !USE___THREAD.
13466         * elf/dl-libc.c: Likewise.
13467         * elf/dl-tsd.c: Likewise.
13468         * include/errno.h: Likewise.
13469         * include/netdb.h: Likewise.
13470         * include/resolv.h: Likewise.
13471         * inet/herrno-loc.c: Likewise.
13472         * inet/herrno.c: Likewise.
13473         * malloc/arena.c: Likewise.
13474         * malloc/hooks.c: Likewise.
13475         * malloc/malloc.c: Likewise.
13476         * resolv/res-state.c: Likewise.
13477         * resolv/res_libc.c: Likewise.
13478         * sysdeps/i386/dl-machine.h: Likewise.
13479         * sysdeps/ia64/dl-machine.h: Likewise.
13480         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13481         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13482         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13483         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13484         * sysdeps/sh/dl-machine.h: Likewise.
13485         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13486         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13487         * sysdeps/unix/i386/sysdep.S: Likewise.
13488         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
13489         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
13490         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
13491         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13492         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
13493         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13494         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
13495         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13496         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13497         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
13498         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13499         * sysdeps/x86_64/dl-machine.h: Likewise.
13500         * tls.make.c: Likewise.
13501
13502         * configure.in: Remove --with-__thread option.  Make tests for
13503         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
13504         tls_model attribute fail if no support is available.  Remove
13505         USE_IN_LIBIO.
13506         * Makeconfig: Adjust for dropped configure option.  All features are
13507         now mandatory.
13508         * Makerules: Likewise.
13509         * Versions.def: Likewise.
13510         * argp/argp-fmtstream.c: Likewise.
13511         * argp/argp-fmtstream.h: Likewise.
13512         * argp/argp-help.c: Likewise.
13513         * assert/assert.c: Likewise.
13514         * config.h.in: Likewise.
13515         * config.make.in: Likewise.
13516         * configure: Likewise.
13517         * configure.in: Likewise.
13518         * csu/Versions: Likewise.
13519         * csu/init.c: Likewise.
13520         * elf/tst-audit2.c: Likewise.
13521         * elf/tst-tls10.c: Likewise.
13522         * elf/tst-tls10.h: Likewise.
13523         * elf/tst-tls11.c: Likewise.
13524         * elf/tst-tls12.c: Likewise.
13525         * elf/tst-tls14.c: Likewise.
13526         * elf/tst-tlsmod11.c: Likewise.
13527         * elf/tst-tlsmod12.c: Likewise.
13528         * elf/tst-tlsmod13.c: Likewise.
13529         * elf/tst-tlsmod13a.c: Likewise.
13530         * elf/tst-tlsmod14a.c: Likewise.
13531         * elf/tst-tlsmod15b.c: Likewise.
13532         * elf/tst-tlsmod16a.c: Likewise.
13533         * elf/tst-tlsmod16b.c: Likewise.
13534         * elf/tst-tlsmod7.c: Likewise.
13535         * elf/tst-tlsmod8.c: Likewise.
13536         * elf/tst-tlsmod9.c: Likewise.
13537         * gmon/gmon.c: Likewise.
13538         * grp/fgetgrent_r.c: Likewise.
13539         * grp/putgrent.c: Likewise.
13540         * hurd/fopenport.c: Likewise.
13541         * include/libc-symbols.h: Likewise.
13542         * include/tls.h: Likewise.
13543         * intl/gettextP.h: Likewise.
13544         * intl/loadinfo.h: Likewise.
13545         * locale/global-locale.c: Likewise.
13546         * locale/localeinfo.h: Likewise.
13547         * mach/devstream.c: Likewise.
13548         * malloc/arena.c: Likewise.
13549         * malloc/set-freeres.c: Likewise.
13550         * misc/err.c: Likewise.
13551         * misc/getttyent.c: Likewise.
13552         * misc/mntent_r.c: Likewise.
13553         * posix/getopt.c: Likewise.
13554         * posix/wordexp.c: Likewise.
13555         * pwd/fgetpwent_r.c: Likewise.
13556         * resolv/Versions: Likewise.
13557         * resolv/res_hconf.c: Likewise.
13558         * shadow/fgetspent_r.c: Likewise.
13559         * shadow/putspent.c: Likewise.
13560         * stdio-common/printf_fphex.c: Likewise.
13561         * stdio-common/tmpfile.c: Likewise.
13562         * stdlib/abort.c: Likewise.
13563         * stdlib/fmtmsg.c: Likewise.
13564         * sunrpc/auth_unix.c: Likewise.
13565         * sunrpc/clnt_perr.c: Likewise.
13566         * sunrpc/clnt_tcp.c: Likewise.
13567         * sunrpc/clnt_udp.c: Likewise.
13568         * sunrpc/clnt_unix.c: Likewise.
13569         * sunrpc/openchild.c: Likewise.
13570         * sunrpc/svc_simple.c: Likewise.
13571         * sunrpc/svc_tcp.c: Likewise.
13572         * sunrpc/svc_udp.c: Likewise.
13573         * sunrpc/svc_unix.c: Likewise.
13574         * sunrpc/xdr.c: Likewise.
13575         * sunrpc/xdr_array.c: Likewise.
13576         * sunrpc/xdr_rec.c: Likewise.
13577         * sunrpc/xdr_ref.c: Likewise.
13578         * sunrpc/xdr_stdio.c: Likewise.
13579
13580 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13581
13582         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13583
13584 2011-07-03  Andreas Jaeger  <aj@suse.de>
13585
13586         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
13587         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
13588         regenerate with gen-libm-tests.pl.
13589
13590 2010-05-12  Petr Baudis  <pasky@suse.cz>
13591
13592         [BZ #11589]
13593         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
13594         around j0() zero points by switching to j1().
13595         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13596         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13597         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13598         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13599
13600 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13601
13602         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
13603         instead of 0.
13604         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
13605         instead of 0.                              .
13606         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13607         Patch in part by Pavel Roskin <proski@gnu.org>.
13608
13609         [BZ #13138]
13610         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
13611         realloc.
13612         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
13613         Free memory block if necessary.
13614
13615         [BZ #12847]
13616         * libio/genops.c (INTDEF): For string streams the _lock pointer can
13617         be NULL.  Don't lock in this case.
13618
13619 2011-09-09  Roland McGrath  <roland@hack.frob.com>
13620
13621         * elf/elf.h (ELFOSABI_GNU): New macro.
13622         (ELFOSABI_LINUX): Define to that.
13623
13624 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
13625
13626         * string/strncat.c (strncat): Undef the symbol in case it has been
13627         defined in bits/string.h.
13628
13629 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13630
13631         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
13632
13633         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
13634         link map.
13635
13636 2011-08-17  Andreas Jaeger  <aj@suse.de>
13637
13638         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
13639
13640 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
13641             Ian Lance Taylor  <iant@google.com>
13642
13643         * math/libm-test.inc (lround_test): New testcase.
13644         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
13645
13646 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
13647
13648         * Makefile: Remove support for automatic cvs check-ins.
13649         * Makerules: Likewise.
13650         * config.make.in: Likewise.
13651         * configure.in: Likewise.
13652         * intl/Makefile: Likewise.
13653         * locale/Makefile: Likewise.
13654         * po/Makefile: Likewise.
13655         * posix/Makefile: Likewise.
13656         * sysdeps/gnu/Makefile: Likewise.
13657         * sysdeps/mach/hurd/Makefile: Likewise.
13658         * sysdeps/sparc/sparc32/Makefile: Likewise.
13659
13660         [BZ #13118]
13661         * posix/Makefile (bug-regex32-ENV): Define.
13662         Patch by John Stanley <jpsinthemix@verizon.net>.
13663
13664         * misc/Makefile (headers): Add bits/select2.h.
13665         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
13666         * misc/bits/select2.h: New file.
13667         * include/bits/select2.h: New file.
13668         * debug/Makefile (routines): Add fdelt_chk.
13669         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
13670         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
13671         FD_ISSET.
13672         * debug/fdelt_chk.c: New file.
13673
13674         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
13675         * wcsmbs/test-wmemcmp.c: Likewise.
13676         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
13677         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
13678
13679 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13680
13681         * string/Makefile (strop-tests): Add memcmp.
13682         * string/test-wmemcmp.c: New file.
13683         * string/test-memcmp.c: Add wmemcmp support.
13684
13685 2011-09-08  Roland McGrath  <roland@hack.frob.com>
13686
13687         [BZ #13153]
13688         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
13689         2011-07-19 change.
13690
13691         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
13692         garbage value in a __mach_port_mod_refs call in the cases of the
13693         task-self and thread-self ports.
13694
13695 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13696
13697         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
13698
13699 2011-09-08  Andreas Schwab  <schwab@redhat.com>
13700
13701         * elf/dl-load.c (lose): Check for non-null L.
13702
13703 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
13704
13705         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
13706
13707         * elf/dl-libc.c (dlerror_run): Pass back error code from
13708         dl_catch_error.
13709
13710         [BZ #13123]
13711         * elf/dl-load.c (lose): Free l_origin if it is valid.
13712
13713         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
13714         names.
13715         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
13716         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
13717         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
13718         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
13719         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
13720         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
13721
13722 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13723
13724         * sysdeps/powerpc/fpu/e_hypot.c: New file.
13725         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
13726         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
13727         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
13728         * sysdeps/powerpc/fpu/k_cosf.c: New file.
13729         * sysdeps/powerpc/fpu/k_sinf.c: New file.
13730         * sysdeps/powerpc/fpu/s_cosf.c: New file.
13731         * sysdeps/powerpc/fpu/s_sinf.c: New file.
13732         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
13733         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
13734
13735 2011-08-15  Alan Modra  <amodra@gmail.com>
13736
13737         [BZ #13092]
13738         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
13739         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
13740         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
13741         ppc_mcount to static-only-routines.
13742         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
13743         __mcount_internal.
13744         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
13745         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
13746
13747 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
13748
13749         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
13750         for finite and infinity parameters.
13751
13752 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13753
13754         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
13755         and add nop instructions for throughput optimization.
13756         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13757
13758 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
13759
13760         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
13761         aligned copy for power7 with vector-scalar instructions.
13762         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13763
13764 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
13765
13766         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
13767         AVX check.
13768
13769 2011-09-07  Andreas Schwab  <schwab@redhat.com>
13770
13771         [BZ #13144]
13772         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
13773         last change.
13774
13775 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
13776
13777         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13778         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
13779         syscall wrapper around clock_gettime in __vdso_clock_gettime.
13780         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
13781         clock_gettime.
13782
13783 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
13784
13785         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
13786         Forgot to demangle the pointer.
13787
13788         * sysdeps/i386/sysdep.h: Define atom_text_section.
13789         * sysdeps/x86_64/sysdep.h: Likewise.
13790         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
13791         section with atom_text_section.
13792         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
13793         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
13794         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
13795         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
13796         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
13797
13798         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
13799         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
13800         already be defined.  Change to take two parameters and don't assign
13801         result to variable.  Adjust all users.
13802         Define INTERNAL_GETTIME if not already defined.
13803         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
13804         call.
13805         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
13806         HAVE_CLOCK_GETTIME_VSYSCALL.
13807         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
13808
13809         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
13810         gettimeofday vsyscall, just use time.
13811
13812 2011-09-06  Andreas Schwab  <schwab@redhat.com>
13813
13814         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
13815         <errno.h>.
13816
13817 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
13818
13819         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
13820         syscall on x86-64.
13821         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
13822         syscall.
13823         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
13824         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
13825         syscall if possible.
13826
13827 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
13828
13829         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
13830         e_ident.  Don't pass to find_mapsXX.
13831         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
13832
13833 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13834
13835         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13836         strchr-sse2-no-bsf strrchr-sse2-no-bsf
13837         * sysdeps/x86_64/multiarch/strchr.S: Update.
13838         Check bit_slow_BSF bit.
13839         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13840         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
13841         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
13842
13843 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
13844
13845         [BZ #13134]
13846         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
13847         before glibc 2.15.
13848         (tryshell): Define.
13849         (__spawni): Change last parameter to be flag.  Test
13850         SPAWN_XFLAGS_USE_PATH flag to use path or not.
13851         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
13852         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
13853         * posix/spawni.c: Likewise.
13854         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
13855         * posix/spawnp.c: Likewise.  Change normal version to use
13856         SPAWN_XFLAGS_USE_PATH.
13857         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
13858         SPAWN_XFLAGS_TRY_SHELL.
13859
13860         [BZ #13150]
13861         * posix/glob.h: Remove gcc 1.x support.
13862
13863         [BZ #13068]
13864         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
13865
13866 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13867
13868         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13869         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
13870         strrchr-sse2-bsf
13871         * sysdeps/i386/i686/multiarch/strchr.S: New file.
13872         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
13873         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
13874         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
13875         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
13876         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
13877
13878 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13879
13880         * sysdeps/x86_64/wcscmp.S: New file.
13881
13882         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
13883         wcscmp-c wcscmp-sse2
13884         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
13885         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
13886         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
13887         * wcsmbs/wcscmp.c: Allow renaming.
13888
13889 2011-09-05  David S. Miller  <davem@davemloft.net>
13890
13891         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
13892         stack slot, rather than the struct return pointer slot.
13893         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
13894         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
13895         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
13896         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
13897
13898 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
13899
13900         * po/ja.po: Update from translation team.
13901
13902         [BZ #13144]
13903         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
13904         kernel in 64-bit binaries.
13905
13906 2011-09-01  David S. Miller  <davem@davemloft.net>
13907
13908         * elf/elf.h (HWCAP_SPARC_*): Move to..
13909         * sysdeps/sparc/sysdep.h: this new file and add new values.
13910         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
13911         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
13912         _DL_HWCAP_COUNT to 24.
13913         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
13914         entries.
13915         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
13916         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
13917         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
13918         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
13919         instead of magic constants.
13920         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13921
13922 2011-08-31  David S. Miller  <davem@davemloft.net>
13923
13924         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
13925         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
13926         Reimplement to do errno handling inline.
13927         (SYSCALL_ERROR_HANDLER): New macro.
13928         (__SYSCALL_STRING): Do not do errno handling in asm.
13929         (__CLONE_SYSCALL_STRING): Delete.
13930         (__INTERNAL_SYSCALL_STRING): Delete.
13931         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
13932         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
13933         (PSEUDO): Reimplement to do errno handling inline.
13934         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
13935         (SYSCALL_ERROR_HANDLER): New macro.
13936         (__SYSCALL_STRING): Do not do errno handling in asm.
13937         (__CLONE_SYSCALL_STRING): Delete.
13938         (__INTERNAL_SYSCALL_STRING): Delete.
13939         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
13940         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
13941         i386.
13942         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
13943         (inline_syscall*): Add 'err' argument.
13944         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
13945         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
13946         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
13947         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
13948
13949         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
13950         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
13951
13952 2011-08-30  Andreas Schwab  <schwab@redhat.com>
13953
13954         * elf/rtld.c (dl_main): Relocate objects in dependency order.
13955
13956 2011-08-29  Jiri Olsa <jolsa@redhat.com>
13957
13958         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
13959         directive.
13960
13961 2011-08-24  David S. Miller  <davem@davemloft.net>
13962
13963         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
13964
13965 2011-08-24  Andreas Schwab  <schwab@redhat.com>
13966
13967         * elf/Makefile: Add rules to build and run unload8 test.
13968         * elf/unload8.c: New file.
13969         * elf/unload8mod1.c: New file.
13970         * elf/unload8mod1x.c: New file.
13971         * elf/unload8mod2.c: New file.
13972         * elf/unload8mod3.c: New file.
13973
13974         * elf/dl-close.c (_dl_close_worker): Reset private search list if
13975         it wasn't used.
13976
13977 2011-08-23  David S. Miller  <davem@davemloft.net>
13978
13979         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
13980         subtract stack bias.
13981         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
13982         %sp not %fp in calculations.
13983         (_JMPBUF_UNWINDS_ADJ): Likewise.
13984
13985         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
13986         (aio_suspend): Call it to force an exception region around the
13987         AIO_MISC_WAIT() invocation.
13988
13989 2011-08-23  Andreas Schwab  <schwab@redhat.com>
13990
13991         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
13992         backslash.
13993
13994 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
13995
13996         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
13997         protection macro.
13998         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
13999         and <dl-machine.h>.
14000         (Elf64_FuncDesc): Remove.
14001
14002 2011-08-22  David S. Miller  <davem@davemloft.net>
14003
14004         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
14005         sigaltstack check, add missing cfi directives.
14006         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
14007         missing cfi directives, and sigaltstack handling.
14008
14009 2011-08-16  Andreas Schwab  <schwab@redhat.com>
14010
14011         [BZ #11724]
14012         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
14013         object is seen twice.
14014         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14015
14016         * elf/Makefile (distribute): Add tst-initorder2.c.
14017         (tests): Add tst-initorder2.
14018         (modules-names): Add tst-initorder2a tst-initorder2b
14019         tst-initorder2c tst-initorder2d.  Add rules to build them.
14020         ($(objpfx)tst-initorder2.out): New rule.
14021         * elf/tst-initorder2.c: New file.
14022         * elf/tst-initorder2.exp: New file.
14023
14024 2011-08-22  Andreas Schwab  <schwab@redhat.com>
14025
14026         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
14027
14028         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
14029         dependencies back to end of function.
14030
14031         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14032         $(elfobjdir)/ld.so.
14033
14034 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
14035
14036         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
14037         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
14038         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
14039         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
14040         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
14041         of __vdso_gettimeofday.
14042         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
14043         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
14044         attribute_hidden.
14045         (_libc_vdso_platform_setup): Remove initialization of
14046         __vdso_gettimeofday and __vdso_time.
14047
14048 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
14049
14050         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
14051         and fgetc_unlocked.
14052         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
14053         getc_unlocked.
14054
14055         * elf/dl-open.c (add_to_global): Report additions to the global scope
14056         for LD_DEBUG=scopes.
14057         (dl_open_worker): Also print scope of newly loaded dependencies.
14058         (_dl_show_scope): Indicate if there is no scope.
14059
14060         [BZ #13114]
14061         * stdio-common/Makefile (tests): Add bug24.
14062         * stdio-common/bug24.c: New file.
14063
14064 2011-08-19  Andreas Jaeger  <aj@suse.de>
14065
14066         [BZ #13114]
14067         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
14068         non-existant file when using close-on-exec mode.
14069
14070 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
14071
14072         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
14073         the very first instruction.
14074
14075         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
14076         the CFI state in the end.
14077         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
14078         inclusion of dl-trampoline.h.
14079         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
14080
14081 2011-08-19  Andreas Schwab  <schwab@redhat.com>
14082
14083         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
14084         expectations for long double.
14085
14086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
14087         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
14088
14089 2011-08-14  David S. Miller  <davem@davemloft.net>
14090
14091         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
14092         artificual limit depends upon the system page size.
14093
14094 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
14095
14096         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
14097         * resolv/Makefile: Define CFLAGS-libresolv.
14098
14099 2011-08-17  Andreas Schwab  <schwab@redhat.com>
14100
14101         * nss/makedb.c (compute_tables): Make variables used in nested
14102         function static.
14103
14104 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
14105
14106         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
14107         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
14108         if buffer was too small.
14109
14110         * elf/pldd.c (main): Attach to all threads in the process.
14111         Rewrite /proc handling to use *at functions.
14112
14113 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
14114
14115         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
14116         specifies first scope to show.
14117         (dl_open_worker): Update callers.  Move printing scope of new
14118         object to before the relocation.
14119         * elf/rtld.c (dl_main): Update _dl_show_scope call.
14120         * sysdeps/generic/ldsodefs.h: Update declaration.
14121
14122         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
14123         string for the scope number.
14124
14125 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
14126
14127         * nscd/servicescache.c (cache_addserv): Make sure written is always
14128         initialized.
14129
14130 2011-08-14  Roland McGrath  <roland@hack.frob.com>
14131
14132         * sysdeps/i386/i486/bits/atomic.h
14133         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
14134         statement expression, so as to suppress "set but not used" warning.
14135         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
14136
14137         * string/strncat.c (STRNCAT): Use prototype definition.
14138
14139         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
14140         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
14141         -Iprograms here.
14142         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
14143         (localedef-modules): Add localedef.
14144         (locale-modules): Add locale.
14145
14146         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
14147         * elf/rtld.c (dl_main): Invert order of assignment in last change,
14148         to avoid a warning.
14149
14150 2011-08-14  David S. Miller  <davem@davemloft.net>
14151
14152         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
14153         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
14154
14155 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
14156
14157         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
14158         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
14159         * elf/rtld.c (dl_main): Set l_name of vDSO.
14160         Call _dl_show_scope when DL_DEBUG_SCOPES.
14161         (process_dl_debug): Recognize scopes flag and also set it for all.
14162         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
14163         Declare _dl_show_scope.
14164
14165         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
14166         (do_dlopen): Pass caller_dlopen to dl_open.
14167         (__libc_dlopen_mode): Initialize caller_dlopen.
14168
14169         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
14170         of libc.  Make tolower call locale-independent.  Optimize a bit by
14171         using isdigit instead of isalnum.
14172         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
14173
14174 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
14175
14176         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
14177         was a dependency or dynamically loaded.
14178
14179 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
14180
14181         * intl/l10nflist.c: Allow architecture-specific pop function.
14182         * sysdeps/x86_64/l10nflist.c: New file.
14183
14184         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
14185         classification.
14186
14187 2011-08-10  Andreas Schwab  <schwab@redhat.com>
14188
14189         * include/dirent.h: Add libc_hidden_proto for scandirat and
14190         scandirat64.  Don't declare __scandirat64.
14191         * dirent/scandirat.c: Add libc_hidden_def.
14192         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
14193         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
14194
14195 2011-08-10  David S. Miller  <davem@davemloft.net>
14196
14197         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
14198         enum.
14199         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14200         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14201         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14202
14203 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
14204
14205         * Versions.def [libc]: Add GLIBC_2.15.
14206         * dirent/Makefile (routines): Add scandirat and scandirat64.
14207         * dirent/Versions [libc]: Export scandirat and scandirat64 for
14208         GLIBC_2.15.
14209         * dirent/dirent.h: Declare scandirat and scandirat64.
14210         * dirent/scandirat.c: New file.
14211         * dirent/scandirat64.c: New file.
14212         * sysdeps/wordsize-64/scandirat.c: New file.
14213         * sysdeps/wordsize-64/scandirat64.c: New file.
14214         * dirent/opendir.c: Define opendirat.
14215         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
14216         using scandirat.
14217         * dirent/scandir64.c: Adjust for scandir.c change.
14218         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
14219         __scandirat64, and __scandir_cancel_handler.
14220         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
14221         additional parameter and use openat instead of open (outside of ld.so).
14222         Add new __opendir as wrapper around __opendirat.
14223         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
14224         here without requiring old scandirat implementation.
14225
14226 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
14227
14228         * dirent/scandir.c (cancel_handler): Renamed to
14229         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
14230         defined.  Adjust users.
14231         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
14232         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14233
14234 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
14235
14236         * string/test-string.h (IMPL): Use __STRING to expand name and then
14237         stringify it.
14238
14239         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
14240         of cleanups.
14241
14242 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14243
14244         * string/Makefile: Update.
14245         (strop-tests): Append strncat.
14246         * string/test-wcscmp.c: New file.
14247         New comprehensive test for wcscmp.
14248         * string/test-strcmp.c: Update.
14249         (WIDE): New define.
14250
14251 2011-07-22  Andreas Schwab  <schwab@redhat.com>
14252
14253         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
14254         line.
14255
14256 2011-07-26  Andreas Schwab  <schwab@redhat.com>
14257
14258         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
14259         encoding to ACE if AI_IDN.
14260
14261 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
14262
14263         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
14264         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
14265
14266 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14267
14268         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
14269         Fix overflow bug in strncat.
14270         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
14271
14272         * string/test-strncat.c: Update.
14273         Add new tests for checking overflow bugs.
14274
14275 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14276
14277         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14278         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
14279         * sysdeps/i386/i686/multiarch/strcat.S: New file.
14280         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
14281         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
14282         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
14283         * sysdeps/i386/i686/multiarch/strncat.S: New file.
14284         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
14285         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
14286
14287         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
14288         (USE_AS_STRCAT): Define.
14289         Add strcat and strncat support.
14290         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14291
14292 2011-07-25  Andreas Schwab  <schwab@redhat.com>
14293
14294         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
14295         __n bigger than INT_MAX+1.
14296         (__strncmp_g): Likewise.
14297
14298 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
14299
14300         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
14301         * libio/stido.h: Likewise.
14302
14303         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
14304         (AF_NFC): Define.
14305         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
14306         (AF_NFC): Define.
14307
14308         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
14309         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14310         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14311         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14312         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14313
14314         [BZ #13021]
14315         * scripts/test-installation.pl: Don't expect libnss_test1 to be
14316         installed.
14317
14318         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
14319         typo.
14320         (_dl_x86_64_save_sse): Likewise.
14321
14322 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
14323
14324         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
14325         OSXSAVE.
14326         (_dl_x86_64_save_sse): Likewise.
14327
14328         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
14329
14330         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
14331
14332 2011-07-21  Andreas Schwab  <schwab@redhat.com>
14333
14334         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
14335         change.
14336         (_dl_x86_64_save_sse): Use correct AVX check.
14337
14338 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14339
14340         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
14341         bug in strncpy/strncat.
14342         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
14343
14344 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
14345
14346         * string/tester.c (test_strcat): Add tests for different alignments
14347         of source and destination.
14348         (test_strncat): Likewise.
14349
14350 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
14351
14352         [BZ #12852]
14353         * posix/glob.c (glob): Check passed in values before using them in
14354         expressions to avoid some overflows.
14355         (glob_in_dir): Likewise.
14356
14357         [BZ #13007]
14358         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
14359         check for AVX enablement so that we don't crash with old kernels and
14360         new hardware.
14361         * elf/tst-audit4.c: Add same checks here.
14362         * elf/tst-audit6.c: Likewise.
14363
14364         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
14365
14366 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
14367
14368         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
14369
14370 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
14371
14372         * po/cs.po: Update from translation team.
14373         * po/bg.po: Likewise.
14374
14375 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
14376
14377         * misc/sys/cdefs.h: Add support for const attribute.
14378         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
14379         to gnu_dev_{major,minor,makedev} functions.
14380
14381 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
14382
14383         * intl/dcigettext.c (get_output_charset): Add missing bracket.
14384
14385 2011-07-20  Andreas Schwab  <schwab@redhat.com>
14386
14387         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
14388         strlen results.
14389
14390 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14391
14392         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
14393         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
14394         register in order to avoid conflicts with the soft frame pointer
14395         being held in r11 when necessary.
14396         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
14397         (INTERNAL_VSYSCALL_NCS): Likewise.
14398
14399 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
14400
14401         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
14402         * elf/dl-fini.c (_dl_fini): Adjust caller.
14403         * elf/dl-close.c (_dl_close_worker): Likewise.
14404         * sysdeps/generic/ldsodefs.h: Adjust declaration.
14405
14406 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
14407
14408         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
14409         "aux_cache->nlibs < 0".
14410
14411         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
14412         in the reload-count case.
14413
14414 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14415
14416         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14417         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
14418         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
14419         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
14420         * sysdeps/x86_64/multiarch/strcat.S: New file.
14421         * sysdeps/x86_64/multiarch/strncat.S: New file.
14422         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
14423         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
14424         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
14425         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
14426         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
14427         (USE_AS_STRCAT): Define.
14428         Add strcat and strncat support.
14429         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14430         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14431         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
14432         * string/strncat.c: Update.
14433         (USE_AS_STRNCAT): Define.
14434         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14435         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
14436         and i7.
14437         * sysdeps/x86_64/multiarch/init-arch.h
14438         (bit_Prefer_PMINUB_for_stringop): New.
14439         (index_Prefer_PMINUB_for_stringop): Likewise.
14440         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
14441         bit_Prefer_PMINUB_for_stringop.
14442
14443 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
14444
14445         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
14446         buffer64.
14447         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
14448         of casting of buffer.
14449         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
14450         buffer32 and buffer64.
14451         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
14452         writes instead of casting of buffer.
14453         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
14454         buffer32.
14455         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
14456         casting of buffer.
14457
14458 2011-07-19  Andreas Schwab  <schwab@redhat.com>
14459
14460         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
14461
14462 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
14463
14464         * nscd/nscd.c (termination_handler): Don't do anything for a database
14465         if it has not yet been initialized.
14466
14467 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
14468
14469         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
14470
14471 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
14472
14473         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
14474
14475 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
14476
14477         * po/nl.po: Update from translation team.
14478         * po/sv.po: Likewise.
14479
14480 2011-07-16  Roland McGrath  <roland@hack.frob.com>
14481
14482         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
14483         now disallowed by GCC.
14484
14485         * configure.in (use-default-link): Default to yes if a test -shared
14486         link meets our qualifications.
14487         * configure: Regenerated.
14488
14489         * config.make.in (output-format): New variable.
14490         * configure.in: Check for ld --print-output-format support.
14491         * configure: Regenerated.
14492         * Makerules ($(common-objpfx)format.lds)
14493         [$(output-format) != unknown]: Just use $(output-format),
14494         instead of the linker-script munging.
14495
14496 2011-07-14  Roland McGrath  <roland@hack.frob.com>
14497
14498         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
14499         of $(common-objpfx)shlib.lds.
14500         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
14501
14502         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
14503         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
14504
14505         * configure.in (-z relro check): Adjust test code to add a large
14506         writable data section after it.
14507         * configure: Regenerated.
14508
14509 2011-07-11  Roland McGrath  <roland@hack.frob.com>
14510
14511         * configure.in (-z relro check): Fix test code to make the variable
14512         truly const.
14513         * configure: Regenerated.
14514
14515 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
14516
14517         * nscd/nscd.h (struct traced_file): Define.
14518         (struct database_dyn): Remove inotify_descr, reset_res, and filename
14519         elements.  Add traced_files.
14520         (inotify_fd): Declare.
14521         (register_traced_file): Declare.
14522         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
14523         (inotify_fd): Export.
14524         (resolv_conf_descr): Remove.
14525         (nscd_init): Move inotify descriptor creation to main.
14526         Don't register files for notification here.
14527         (register_traced_file): New function.
14528         (invalidate_cache): Don't use reset_res to determine whether to call
14529         res_init, go through the list of registered files.
14530         (main_loop_poll): The inotify descriptors are now stored in the
14531         structures for the traced files.
14532         (main_loop_epoll): Likewise
14533         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
14534         to __nss_disable_nscd.
14535         * nscd/cache.c (prune_cache): There is no single inotify descriptor
14536         for a database anymore.  Check the records for all the registered
14537         files instead.
14538         * nss/Makefile (libnss_files-routines): Add files-init.
14539         (libnss_db-routines): Add db-init.
14540         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
14541         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
14542         * nss/nss_db/db-init.c: New file.
14543         * nss/nss_files/files-init.c: New file.
14544         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
14545         __nss_lookup_function.
14546         (__nss_lookup_function): Call nss_load_library.
14547         (nss_load_all_libraries): New function.
14548         (__nss_disable_nscd): Take parameter with callback function for files
14549         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
14550         used for the cached services.
14551         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
14552         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
14553         options for features to all the files in nscd.
14554
14555         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
14556
14557 2011-07-10  Roland McGrath  <roland@hack.frob.com>
14558
14559         * csu/elf-init.c (__libc_csu_init): Comment typo.
14560
14561 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
14562
14563         * po/pl.po: Update from translation team.
14564         * po/ja.po: Likewise.
14565         * po/ru.po: Likewise.
14566         * po/ko.po: Likewise.
14567         * po/fr.po: Likewise.
14568
14569 2011-07-09  Roland McGrath  <roland@hack.frob.com>
14570
14571         * configure.in (.ctors/.dtors header and trailer check):
14572         Use an empirical test on a built program.
14573         * configure: Regenerated.
14574
14575         * configure.in (-z relro check): Use an empirical test on a built DSO.
14576         Detect, but do not require, on ia64.
14577         * configure: Regenerated.
14578
14579         * configure.in (READELF): Find it with AC_CHECK_TOOL.
14580         Update tests that use readelf to use $READELF instead.
14581         * configure: Regenerated.
14582
14583 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
14584
14585         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
14586         if the result is not used.
14587
14588 2011-07-05  Andreas Jaeger  <aj@suse.de>
14589
14590         [BZ#9696]
14591         * stdlib/tst-strtod.c: Add testcase.
14592
14593 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14594
14595         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
14596         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
14597         The latter has a higher limit.  Take additional parameter to pass to
14598         the new function.
14599         (__pathconf): Pass file to __statfs_link_max.
14600         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
14601         __statfs_link_max.
14602         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
14603         __statfs_link_max.
14604
14605         [BZ #12868]
14606         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
14607         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14608         Handle Lustre.
14609         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
14610         (__statfs_filesize_max): Likewise.
14611         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
14612
14613 2011-07-05  Andreas Jaeger  <aj@suse.de>
14614
14615         * resolv/res_comp.c (dn_skipname): Remove unused variable.
14616
14617 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
14618
14619         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
14620         `status' variable.
14621         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
14622         Likewise.
14623
14624 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
14625
14626         * Makefile (strop-tests): Add strncat.
14627         * string/test-strncat.c: New file.
14628
14629 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
14630
14631         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
14632
14633 2011-06-21  Andreas Jaeger  <aj@suse.de>
14634
14635         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
14636         Copy rule from iconvdata/Makefile.
14637
14638 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
14639
14640         [BZ #12922]
14641         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
14642         but no long options are defined, just return 'W'.
14643
14644 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
14645
14646         [BZ #9696]
14647         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
14648
14649 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
14650
14651         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
14652         netgroups to read.
14653         (innetgr): Likewise.
14654
14655 2011-07-05  Roland McGrath  <roland@hack.frob.com>
14656
14657         * config.make.in (install_root): Default to $(DESTDIR).
14658
14659 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
14660
14661         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
14662
14663 2011-07-02  Roland McGrath  <roland@hack.frob.com>
14664
14665         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
14666
14667         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
14668         containing directory rather than embedding absolute directory names.
14669
14670         * scripts/check-local-headers.sh: Rewritten using awk.
14671         Match by word, not by line.  Print error messages for matches.
14672         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
14673
14674         * Makerules [shlib-lds-flags empty]:
14675         ($(common-objpfx)libc_pic.opts): New target.
14676         ($(common-objpfx)libc_pic.os.clean): New target.
14677         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
14678
14679         * config.make.in (OBJCOPY): New variable.
14680         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
14681         * configure: Regenerated.
14682
14683         * config.make.in (use-default-link): New variable.
14684         * configure.in (use_default_link): Grok --with-default-link to set it.
14685         * configure: Regenerated.
14686         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
14687         (shlib-lds, shlib-lds-flags): Define to empty.
14688
14689         * Makerules (shlib-lds): New variable.
14690         (shlib-lds-flags): New variable.
14691         (build-shlib, build-moduile, build-module-asneeded): Use it.
14692         ($(common-objpfx)libc.so): Use $(shlib-lds).
14693         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
14694         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
14695
14696         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
14697         DT_FLAGS/DT_FLAGS_1 with zero flags.
14698
14699         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
14700         linker script munging.
14701
14702 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
14703
14704         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
14705         as 128-bit value.
14706         * crypt/sha512.c (sha512_process_block): Perform total addition using
14707         128-bit if possible.
14708         (__sha512_finish_ctx): Likewise.
14709         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
14710         as 64-bit value.
14711         * crypt/sha256.c (SWAP64): Define.
14712         (sha256_process_block): Perform total addition using 64-bit if
14713         possible.
14714         (__sha256_finish_ctx): Likewise.
14715
14716 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
14717
14718         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
14719         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14720         * nscd/hstcache.c (cache_addhst): Likewise.
14721         * nscd/grpcache.c (cache_addgr): Likewise.
14722         * nscd/aicache.c (addhstaiX): Likewise
14723         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
14724
14725 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
14726
14727         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
14728         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14729         * nscd/hstcache.c (cache_addhst): Likewise.
14730         * nscd/grpcache.c (cache_addgr): Likewise.
14731         * nscd/aicache.c (addhstaiX): Likewise
14732
14733 2011-07-01  Andreas Schwab  <schwab@redhat.com>
14734
14735         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
14736         domain only when needed.
14737
14738 2011-06-30  Andreas Schwab  <schwab@redhat.com>
14739
14740         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
14741         is always restored.
14742
14743 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
14744
14745         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
14746         are re-adding the entry.
14747         * nscd/servicescache.c (cache_addserv): Likewise.
14748
14749 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
14750
14751         * sysdeps/generic/dl-irel.h: fix protection against multiple
14752         inclusions.
14753         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
14754
14755 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
14756
14757         [BZ #12935]
14758         * malloc/memusage.sh: Fix quoting in message.
14759         * debug/xtrace.sh: Likewise.
14760
14761         * configure.in: Remove support for --experimental-malloc option, make
14762         it the default.
14763         * config.make.in: Likewise.
14764         * malloc/Makefile: Likewise.
14765
14766 2011-06-27  Andreas Schwab  <schwab@redhat.com>
14767
14768         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
14769         two-byte characters.
14770
14771 2011-06-27  Roland McGrath  <roland@hack.frob.com>
14772
14773         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
14774         AC_CACHE_CHECK invocation.
14775         * configure: Regenerated.
14776
14777         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
14778
14779 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
14780
14781         [BZ #12350]
14782         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
14783         bit from old_res_options.
14784
14785         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
14786
14787         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
14788         value type for setfct.
14789
14790 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
14791
14792         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
14793         __gettimeofday instead of gettimeofday.
14794
14795 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
14796
14797         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
14798
14799 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
14800
14801         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
14802
14803         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
14804         info.
14805
14806 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
14807
14808         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14809         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
14810         strcpy-sse2-unaligned strncpy-sse2-unaligned
14811         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
14812         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
14813         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
14814         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
14815         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
14816         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
14817         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
14818         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
14819         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
14820         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
14821         (STRCPY): Support SSE2 and SSSE3 versions.
14822
14823 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
14824
14825         [BZ #12874]
14826         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
14827         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
14828         kernels which artificially limit size of requests.
14829
14830 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
14831
14832         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14833         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
14834         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
14835         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
14836         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
14837         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
14838         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
14839         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
14840         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
14841         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
14842         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
14843         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
14844         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
14845         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
14846         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
14847         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14848         Enable unaligned load optimization for Intel Core i3, i5 and i7
14849         processors.
14850         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
14851         Define.
14852         (index_Fast_Unaligned_Load): Define.
14853         (HAS_FAST_UNALIGNED_LOAD): Define.
14854
14855 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
14856
14857         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
14858
14859 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
14860
14861         [BZ #12907]
14862         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
14863         until it is clear that the information is realy needed.
14864         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
14865
14866 2011-06-22  Andreas Schwab  <schwab@redhat.com>
14867
14868         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
14869
14870 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
14871
14872         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
14873         /sys/devices/system/cpu/online if it is usable.
14874
14875         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
14876         reading the information from the /proc filesystem to once a second.
14877
14878 2011-06-21  Andreas Jaeger  <aj@suse.de>
14879
14880         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
14881         NULL after inclusion of kernel headers.
14882
14883 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
14884
14885         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
14886         calls to internal_setent.
14887
14888         [BZ #12885]
14889         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
14890         addresses using gethostbyname4_r ignore IPv4 addresses.
14891
14892         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
14893         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
14894
14895         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
14896
14897 2011-06-20  David S. Miller  <davem@davemloft.net>
14898
14899         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
14900         inclusions.
14901         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
14902
14903         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
14904         (elf_irel): Use it.
14905         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
14906         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
14907         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
14908         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
14909         * sysdeps/x86_64/dl-irel.h: Likewise.
14910
14911         * elf/dl-runtime.c: Use elf_ifunc_invoke.
14912         * elf/dl-sym.c: Likewise.
14913
14914 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
14915
14916         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
14917         need to dereference resplen2.
14918
14919 2011-06-14  Andreas Schwab  <schwab@redhat.com>
14920
14921         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
14922
14923 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
14924
14925         * Makeconfig: Define vardbdir and inst_vardbdir.
14926         * nss/Makefile: Add rules to install db-Makefile.
14927
14928         * nss/nss_db/db-XXX.c: Cleanup.
14929
14930         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
14931         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
14932         GLIBC_PRIVATE.
14933         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
14934         * nss/makedb.c: Implement -g option to specify that value strings
14935         are generated and should not be added to table iterated over for
14936         get*ent calls.
14937         * nss/nss_db/db-initgroups.c: New file.
14938
14939         * nss/getent.c: Add support for initgroups lookups through getgrouplist
14940         interface.
14941
14942         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
14943         (internal_getgrouplist): Adjust to name change.
14944         Update use_initgroups_entry if this is not the first call.
14945         * nss/databases.def: Add initgroups entry.
14946
14947         * nss/makedb.c (compute_tables): Check result of multiple hash table
14948         sizes to minimize maximum chain length.
14949
14950 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
14951
14952         * Versions.def: Add entry for libnss_db.
14953         * shlib-versions: Likewise.
14954         * nss/Makefile: Add rules to build libnss_db.
14955         * nss/Versions: Add libnss_db information.  Organize libnss_files
14956         entries better.
14957         * nss/db-Makefile: Add gshadow support.  Change rules for the new
14958         makedb progra.  Some minor improvements to generate smaller files.
14959         * nss/nss_db/nss_db.h: Move NSS database header data structures to
14960         here from...
14961         * nss/makedb.c: ...here.
14962         Improve database format to be smaller and require less memory at
14963         runtime.
14964         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
14965         db anymore.
14966         * nss/nss_db/db-netgrp.c: Likewise.
14967         * nss/nss_db/db-open.c: Likewise.
14968         * nss/nss_files/flies-XXX.x: Adjust comments.
14969         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
14970         * nss/nss_files/files-grp.c: Likewise.
14971         * nss/nss_files/files-hosts.c: Likewise.
14972         * nss/nss_files/files-network.c: Likewise.
14973         * nss/nss_files/files-proto.c: Likewise.
14974         * nss/nss_files/files-pwd.c: Likewise.
14975         * nss/nss_files/files-rpc.c: Likewise.
14976         * nss/nss_files/files-service.c: Likewise.
14977         * nss/nss_files/files-sgrp.c: Likewise.
14978         * nss/nss_files/files-spwd.c: Likewise.
14979         * nss/nss_db/db-alias.c: Removed.
14980         * nss/nss_db/dummy-db.h: Removed.
14981
14982 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
14983
14984         * nss/makedb.c: Rewritten to not use database library.
14985         * nss/Makefile: Update to build new makedb program.
14986
14987 2011-06-14  Andreas Jaeger  <aj@suse.de>
14988
14989         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
14990         memset declaration.
14991
14992 2011-06-10  Andreas Schwab  <schwab@redhat.com>
14993
14994         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
14995         tmpbuf.
14996
14997 2011-06-10  Roland McGrath  <roland@hack.frob.com>
14998
14999         * Makerules (shlib.lds): Fail if the linker script comes out empty.
15000         * elf/Makefile ($(objpfx)ld.so): Likewise.
15001
15002         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
15003         Don't list ld.so twice in dependencies.
15004
15005         * posix/bug-regex31.c: Include <stdlib.h>.
15006
15007         * nscd/hstcache.c (cache_addhst): Remove unused variable.
15008
15009         * nis/nss_compat/compat-spwd.c
15010         (getspent_next_nss_netgr): Remove unused variable.
15011         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
15012
15013         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
15014         nonmembers" output to use the right array.
15015
15016         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
15017
15018         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
15019
15020         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
15021         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
15022         * catgets/gencat.c (read_input_file): Likewise.
15023         * locale/programs/locarchive.c (enlarge_archive): Likewise.
15024
15025         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
15026         variable definition inside #if's controlling its use.
15027
15028         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
15029
15030         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
15031
15032         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
15033
15034         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
15035         unreachable code.
15036
15037         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
15038
15039         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
15040         * configure: Regenerated.
15041
15042         * Makerules: Revert last change.
15043         * elf/Makefile: Likewise.
15044
15045 2011-06-09  Roland McGrath  <roland@hack.frob.com>
15046
15047         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
15048         * elf/Makefile ($(objpfx)librtld.os): Likewise.
15049         (reloc-link): Likewise.
15050
15051 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
15052
15053         * elf/Makefile: Add rules to build pldd.
15054         * elf/pldd.c: New file.
15055         * elf/pldd-xx.c: New file.
15056
15057 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
15058
15059         * version.h: Update for 2.15 development version.
15060
15061 2011-06-07  David S. Miller  <davem@davemloft.net>
15062
15063         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
15064         ifuncs.
15065         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
15066         elf_machine_lazy_rel): Likewise.
15067         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
15068         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
15069         elf_machine_lazy_rel): Likewise.
15070         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
15071         dl_hwcap via passed in argument.
15072         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
15073         Likewise.
15074
15075 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15076
15077         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
15078
15079 2011-06-06  Roland McGrath  <roland@hack.frob.com>
15080
15081         [BZ #12849]
15082         * manual/fdl-1.1.texi: New file, verbatim from:
15083         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
15084         * manual/lgpl-2.1.texi: New file, verbatim from:
15085         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
15086         * manual/Makefile (licenses): New variable, list those new file names.
15087         (texis): Use it.
15088         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
15089
15090         * manual/fdl.texi: File removed.
15091         * manual/lesser.texi: File removed.
15092         * manual/libc.texinfo (Copying, Documentation License):
15093         Use new @include file names, put @appendix directive before @include.
15094
15095 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
15096
15097         [BZ #12841]
15098         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
15099         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
15100         (mq_open): Add __NTH.
15101
15102 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
15103
15104         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15105         Assume Intel Core i3/i5/i7 processor if AVX is available.
15106
15107 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
15108
15109         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
15110         typo.
15111
15112 2011-05-31  Andreas Schwab  <schwab@redhat.com>
15113
15114         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
15115         memory.  Use alloca_account.  Fix memory leak when retrying.
15116
15117 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
15118
15119         * version.h (RELEASE): Bump for 2.14 release.
15120         * include/features.h (__GLIBC_MINOR__): Bump to 14.
15121
15122         * config.make.in (RANLIB): Remove entry.
15123
15124 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
15125
15126         * po/Makefile (po-sed-cmd): Add ksh to extensions.
15127         (libc.pot): Work around missing support for .ksh extension in xgettext.
15128
15129         [BZ #12684]
15130         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
15131         if both request failed.
15132         (send_dg): In case of server errors clear resplen or *resplen2.
15133
15134         [BZ #12454]
15135         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
15136         when there are multiple maps.
15137         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
15138         (_dl_fini): Remove test here.
15139
15140         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
15141
15142 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
15143
15144         [BZ #12350]
15145         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
15146         bit from old_res_options.
15147         (gaih_inet): Likewise.
15148
15149         [BZ #11099]
15150         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
15151         as signed.
15152
15153         * resolv/res_init.c (res_setoptions): Make the code more compact.
15154
15155         [BZ #11558]
15156         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
15157         set RES_USEVC.
15158
15159         [BZ #11634]
15160         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
15161
15162         * malloc/malloc.h: Mark malloc hook variables as deprecated.
15163
15164         [BZ #11781]
15165         * malloc/malloc.h: Declare malloc hook variables as volatile.
15166
15167         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
15168         in last patch.
15169
15170         [BZ #11799]
15171         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
15172         raise in the comment.
15173         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
15174         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
15175         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
15176
15177 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
15178
15179         [BZ #12811]
15180         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
15181         grow the buffers more if it already has to be sufficient.
15182         (build_wcs_upper_buffer): Likewise.
15183         * posix/regexec.c (check_matching): Likewise.
15184         (clean_state_log_if_needed): Likewise.
15185         (extend_buffers): Don't enlarge buffers beyond size of the input
15186         buffer.
15187         Patches mostly by Emil Wojak <emil@wojak.eu>.
15188         * posix/bug-regex32.c: New file.
15189         * posix/Makefile (tests): Add bug-regex32.
15190
15191         * locale/findlocale.c (_nl_find_locale): Return right away if
15192         _nl_explode_name failed.
15193         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
15194
15195         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
15196
15197         * debug/xtrace.sh: Unify messages.
15198         * malloc/memusage.sh: Likewise.
15199
15200         [BZ #12813]
15201         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
15202         time symbol from vDSO.  Substitute with vsyscall if not available.
15203         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
15204         __vdso_time.
15205
15206         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
15207         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
15208         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
15209         Add sendmmsg and internal_sendmmsg.
15210         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
15211         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
15212         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
15213
15214         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
15215         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
15216         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
15217
15218 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
15219
15220         [BZ #12813]
15221         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
15222         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
15223         available.
15224         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
15225         __vdso_getcpu.
15226
15227         [BZ #12814]
15228         * iconvdata/Makefile (tests): Add bug-iconv9.
15229         * iconvdata/bug-iconv9.c: New file.
15230
15231 2011-05-27  Andreas Schwab  <schwab@redhat.com>
15232
15233         [BZ #12814]
15234         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
15235
15236 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
15237
15238         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15239         (struct user_regs_struct): Change intcs field back to cs.
15240
15241 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
15242
15243         * po/ja.po: Update from translation team.
15244
15245 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
15246
15247         [BZ #12795]
15248         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
15249         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
15250
15251 2011-05-20  Andreas Schwab  <schwab@redhat.com>
15252
15253         * stdlib/longlong.h: Update from GCC.
15254
15255 2011-05-23  Andreas Schwab  <schwab@redhat.com>
15256
15257         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
15258         parameter name.
15259         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
15260         Add parameter name.
15261         (__sysconf): Pass it down.
15262
15263 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
15264
15265         [BZ #12671]
15266         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
15267         some situations.
15268         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
15269         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
15270         add in in __libc_use_alloca calls.  Adjust callers.
15271         (glob): Use malloc in some situations.
15272
15273         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
15274         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
15275         pltexit.
15276
15277 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
15278
15279         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
15280         and CLOCK_BOOTTIME_ALARM.
15281
15282         [BZ #12782]
15283         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
15284         is returned.
15285
15286         * string/_strerror.c (__strerror_r): Print negative errors as signed
15287         numbers.
15288
15289         [BZ #12777]
15290         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
15291         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
15292         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
15293
15294         * configure.in: Fix typo in redirection and correct removal of test
15295         files in two cases.
15296
15297         [BZ #12788]
15298         * locale/setlocale.c (new_composite_name): Fix test to check for
15299         identical name of all categories.
15300
15301         [BZ #12792]
15302         * libio/filedoalloc.c (local_isatty): New function.
15303         (_IO_file_doallocate): Use local_isatty.
15304         * stdio-common/perror.c (perror): In case a new stream is used
15305         forward the stream error.
15306         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
15307         error flag.
15308
15309 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
15310
15311         [BZ #11869]
15312         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
15313         alloca.
15314         * include/alloca.h (extend_alloca_account): Define.
15315
15316         [BZ #11857]
15317         * posix/regex.h: Fix comments with documentation of user-accessible
15318         fields after compilation and describe correct free'ing of pattern
15319         after re_compile_pattern.
15320         Patch by Reuben Thomas <rrt@sc3d.org>.
15321
15322 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
15323
15324         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
15325         and -mno-altivec to prevent the compiler from using Altivec and/or
15326         VSX instructions when the corresponding registers are not available.
15327
15328 2011-05-19  Andreas Schwab  <schwab@redhat.com>
15329
15330         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
15331
15332 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
15333
15334         * libio/freopen.c (freopen): Use __dup2, not dup2.
15335         * libio/freopen64.c (freopen64): Likewise.
15336
15337 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15338
15339         [BZ #12775]
15340         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
15341         * math/Makefile (tests): Add test-powl.
15342         (CFLAGS-test-powl.c): Define.
15343         * math/test-powl.c: New file.
15344
15345 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15346
15347         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
15348
15349 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
15350
15351         [BZ #11837]
15352         * iconvdata/gb18030.c: Update to GB18020-2005.
15353
15354 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
15355
15356         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
15357         RE_SYNTAX_POSIX_AWK): Update to match recent development.
15358         Patch by Aharon Robbins <arnold@skeeve.com>.
15359
15360         [BZ #11892]
15361         * stdlib/putenv.c (putenv): Don't always create copy of the variable
15362         on the stack.
15363
15364         [BZ #11895]
15365         * misc/pselect.c (__pselect): Handle timeout value errors hidden
15366         through underflows.
15367
15368         [BZ #12766]
15369         * misc/error.c (error_at_line): Ensure file_name and old_file_name
15370         point to strings before performing equality test for error_one_per_line
15371         mode.
15372
15373         [BZ #11697]
15374         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
15375
15376         [BZ #11820]
15377         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15378         (struct user_fpregs_struct): Avoid __uint*_t types.
15379
15380         [BZ #6420]
15381         * malloc/mtrace.c (tr_where): Add additional parameter to point to
15382         symbol info.  Use it instead of calling _dl_addr locally.
15383         (lock_and_info): New function.
15384         (tr_freehook): Call lock_and_info and pass symbol info as additional
15385         parameter to tr_where.
15386         (tr_mallochook): Likewise.
15387         (tr_reallochook): Likewise.
15388         (tr_memalignhook): Likewise.
15389
15390         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
15391         used and couldn't be at all thread-safe.
15392
15393 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
15394
15395         * libio/freopen.c (freopen): Don't close old file descriptor
15396         before the new one is opened.  Instead dup the new file descriptor
15397         to the old one after the new stream is created.
15398         * libio/freopen64.c (freopen64): Likewise.
15399         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
15400         * libio/fileops.c (_IO_new_file_close_it): Handle new
15401         _IO_FLAGS2_NOCLOSE flag.
15402         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
15403         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
15404         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
15405         _IO_FLAGS2_NOCLOSE flag.
15406         * include/unistd.h: Add hidden_proto for dup3.
15407         Define __have_dup3.
15408         * io/dup3.c: Define hidden symbol.
15409         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
15410
15411         [BZ #7101]
15412         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
15413         when an incomplete long option is used.
15414         * posix/tst-getopt_long1.c: New file.
15415         * posix/Makefile (tests): Add tst-getopt_long1.
15416
15417         [BZ #10138]
15418         * scripts/config.guess: Update from autoconf-2.68.
15419         * scripts/config.sub: Likewise.
15420
15421         [BZ #10157]
15422         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
15423         tests into ...
15424         (has_cpuclock): ...this.  New function.
15425         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
15426         macro here based on has_cpuclock code.
15427
15428         [BZ #10149]
15429         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15430         First byte (not low byte) is now always NUL.
15431         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
15432
15433         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15434         Use non-cancelable interfaces.
15435
15436         [BZ #9809]
15437         * locale/iso-639.def: Add entry for Sorani.
15438
15439         [BZ #11901]
15440         * include/stdlib.h: Move include protection to the right place.
15441         Define abort_msg_s.  Declare __abort_msg with it.
15442         * stdlib/abort.c (__abort_msg): Adjust type.
15443         * assert/assert.c (__assert_fail_base): New function.  Majority
15444         of code from __assert_fail.  Allocate memory for __abort_msg with
15445         mmap.
15446         (__assert_fail): Now call __assert_fail_base.
15447         * assert/assert-perr.c: Remove bulk of implementation.  Use
15448         __assert_fail_base.
15449         * include/assert.hL Declare __assert_fail_base.
15450         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
15451         mmap.
15452         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
15453
15454 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
15455
15456         [BZ #11952]
15457         [BZ #12453]
15458         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
15459         until all modules are registered in the DTV.
15460         * elf/Makefile: Add rules to build and run tst-tls19.
15461         * elf/tst-tls19.c: New file.
15462         * elf/tst-tls19mod1.c: New file.
15463         * elf/tst-tls19mod2.c: New file.
15464         * elf/tst-tls19mod3.c: New file.
15465         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
15466
15467         [BZ #12083]
15468         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
15469         correctly.
15470
15471         [BZ #12601]
15472         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
15473         two-byte sequence errors.
15474         * iconvdata/Makefile (tests): Add bug-iconv8.
15475         * iconvdata/bug-iconv8.c: New file.
15476
15477         [BZ #12626]
15478         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
15479         buf2 definition.
15480
15481         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
15482
15483         [BZ #12432]
15484         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
15485         (dummy_getcfa): New function.
15486         (init): Get _Unwind_GetCFA address, use dummy if not found.
15487         (backtrace_helper): In recursion check, also check whether CFA changes.
15488         (__backtrace): Completely initialize arg.
15489
15490         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
15491         storing incomplete byte sequence in state object.  Avoid testing for
15492         guaranteed too small input if we know there is enough data available.
15493
15494 2011-05-11  Andreas Schwab  <schwab@redhat.com>
15495
15496         * Makeconfig (+link-pie): Indent.
15497         * Rules (binaries-pie): Define if $(have-fpie) and
15498         $(build-shared).
15499         (binaries-shared): Also filter out $(binaries-pie).
15500         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
15501         * nscd/Makefile (others-pie): Add nscd.
15502         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
15503         ($(objpfx)nscd): Remove command override.
15504         * login/Makefile (others-pie): Add pt_chown.
15505         ($(objpfx)pt_chown): Remove command override.
15506         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
15507         remove command overrides.
15508
15509 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
15510
15511         * libio/tst_putwc.c: Fix error messages.
15512
15513         [BZ #12724]
15514         * libio/fileops.c (_IO_new_file_close_it): Always flush when
15515         currently writing and seek to current position when not.
15516         * libio/Makefile (tests): Add bug-fclose1.
15517         * libio/bug-fclose1.c: New file.
15518
15519 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
15520
15521         [BZ #12511]
15522         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
15523         don't set DF_1_NODELETE here.
15524         (do_lookup_x): When entering new entry test for copy relocation
15525         and if necessary set DF_1_NODELETE flag.
15526         * elf/tst-unique4.cc: New file.
15527         * elf/tst-unique4.h: New file.
15528         * elf/tst-unique4lib.cc: New file.
15529         * elf/Makefile: Add rules to build and run tst-unique4.
15530         Patch by Piotr Bury <pbury@goahead.com>.
15531
15532 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15533
15534         [BZ #12052]
15535         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
15536
15537         [BZ #12625]
15538         * misc/mntent_r.c (addmntent): Flush the stream after the output
15539
15540         [BZ #12393]
15541         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
15542         (is_trusted_path_normalize): Skip initial colon.  Append slash
15543         to empty buffer.  Duplicate is_trusted_path code but allow
15544         constructed patch to be prefix.
15545         (is_dst): Allow $ORIGIN followed by /.
15546         (_dl_dst_substitute): Correct clearing of check_for_trusted.
15547         Correct testing of result of is_trusted_path_normalize
15548         (decompose_rpath): Fix warning.
15549
15550 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
15551
15552         [BZ #11257]
15553         * grp/initgroups.c (internal_getgrouplist): When we found the service
15554         list through the initgroups entry in nsswitch.conf do not always
15555         continue on a successful lookup.  Don't always use the
15556         __nss_group_database value if it is set.
15557         * nss/nsswitch.conf (initgroups): Change action for successful db
15558         lookup to continue for compatibility.
15559
15560 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
15561
15562         [BZ #11532]
15563         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
15564         and CP774 modules.
15565         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
15566         and CP774 modules.
15567         * iconvdata/tst-tables.sh: Likewise.
15568         * iconvdata/cp770.c: New file.
15569         * iconvdata/cp771.c: New file.
15570         * iconvdata/cp772.c: New file.
15571         * iconvdata/cp773.c: New file.
15572         * iconvdata/cp774.c: New file.
15573         * iconvdata/testdata/CP770: New file.
15574         * iconvdata/testdata/CP770..UTF8: New file.
15575         * iconvdata/testdata/CP771: New file.
15576         * iconvdata/testdata/CP771..UTF8: New file.
15577         * iconvdata/testdata/CP772: New file.
15578         * iconvdata/testdata/CP772..UTF8: New file.
15579         * iconvdata/testdata/CP773: New file.
15580         * iconvdata/testdata/CP773..UTF8: New file.
15581         * iconvdata/testdata/CP774: New file.
15582         * iconvdata/testdata/CP774..UTF8: New file.
15583
15584         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
15585         END CHARMAP line.
15586         * iconvdata/gen-8bit-gap.sh: Likewise.
15587         * iconvdata/gen-8bit.sh: Likewise.
15588
15589         * locale/iso-639.def: Add ary entry.
15590
15591         [BZ #11258]
15592         * locale/C-translit.h.in: Add U20A1 transliteration.
15593
15594         [BZ #12178]
15595         * locale/iso-639.def: Add wae entry.
15596         Patch by Kevin Bortis <bortis@translate-wae.ch>.
15597
15598         [BZ #12545]
15599         * locale/programs/localedef.c (construct_output_path): Use ssize_t
15600         for n.
15601
15602         [BZ #12711]
15603         * locale/C-translit.h.in: Add entry for U20B9.
15604         Patch by pravin.d.s@gmail.com.
15605
15606 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
15607
15608         [BZ #12713]
15609         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
15610         ENAMETOOLONG use generic getcwd.
15611         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
15612         in rtld.  Use *stat64.
15613         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
15614         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
15615         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
15616         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
15617         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
15618         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
15619         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
15620         __fstatat64 macros.
15621         * include/dirent.h: Add libc_hidden_proto for rewinddir.
15622         * dirent/rewinddir.c: Add libc_hidden_def.
15623         * sysdeps/mach/hurd/rewinddir.c: Likewise.
15624         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
15625
15626         * include/dirent.h (__alloc_dir): Add flags parameter.
15627         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
15628         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
15629         __alloc_dir.
15630         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
15631         from fdopendir if O_CLOEXEC is already set.
15632
15633 2011-03-15  Alan Modra  <amodra@gmail.com>
15634
15635         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
15636         l_tls_firstbyte_offset non-zero.  Save padding offset in
15637         l_tls_firstbyte_offset for later use.
15638         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
15639         freeing static tls block.
15640
15641 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
15642
15643         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
15644         where #ifdef was intended.  The intent is to prevent ARG_MAX from
15645         being defined by the kernel headers.
15646
15647 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
15648
15649         [BZ #12734]
15650         * resolv/resolv.h: Define RES_NOTLDQUERY.
15651         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
15652         no-tld-query and set RES_NOTLDQUERY.
15653         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
15654         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
15655         modern BIND to search name as TLD unless forbidden.
15656
15657 2011-05-07  Petr Baudis  <pasky@suse.cz>
15658             Ulrich Drepper  <drepper@gmail.com>
15659
15660         [BZ #12393]
15661         * elf/dl-load.c (fillin_rpath): Move trusted path check...
15662         (is_trusted_path): ...to here.
15663         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
15664         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
15665         using is_trusted_path_normalize() in setuid scripts.
15666
15667 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
15668
15669         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
15670         __BEGIN/__END_DECLS.
15671
15672 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
15673
15674         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
15675         NSS_STATUS_NOTFOUND if no record was found.
15676
15677 2011-05-05  Andreas Schwab  <schwab@redhat.com>
15678
15679         * sunrpc/Makefile (headers): Add rpc/netdb.h.
15680         (headers-not-in-tirpc): Remove rpc/netdb.h
15681         * resolv/netdb.h: Revert last change.
15682
15683 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15684
15685         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
15686         circular dependency between libgcc.a and libc.a.
15687
15688 2011-05-05  Andreas Schwab  <schwab@redhat.com>
15689
15690         * resolv/netdb.h: Don't include <rpc/netdb.h>.
15691         * nis/Makefile: Don't install rpcsvc/*.
15692         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
15693         instead of <rpc/types.h>.
15694         (MAXHOSTNAMELEN): Define.
15695
15696 2011-05-03  Andreas Schwab  <schwab@redhat.com>
15697
15698         * elf/ldconfig.c (add_dir): Don't crash on empty path.
15699
15700 2011-04-28  Maciej Babinski  <mbabinski@google.com>
15701
15702         [BZ #12714]
15703         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
15704         gethostbyname4_r when IPv6 results are possible.
15705
15706 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
15707
15708         [BZ #12723]
15709         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
15710         _PC_PIPE_BUF handling.
15711
15712 2011-04-30  Bruno Haible  <bruno@clisp.org>
15713
15714         [BZ #12717]
15715         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
15716         * resolv/netdb.h (getnameinfo): Change type of flags parameter
15717         to 'int'.
15718         * inet/getnameinfo.c (getnameinfo): Likewise.
15719
15720 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
15721
15722         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
15723         to groups setting in database lookup.
15724         * nss/nsswitch.conf: Add initgroups entry.
15725
15726 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
15727
15728         [BZ #12685]
15729         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
15730         mode string.
15731         Patch by Eric Blake <eblake@redhat.com>.
15732
15733 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
15734
15735         * sunrpc/Makefile (need-export-routines): Add svc_run.
15736         (routines): Remove svc_run.
15737         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
15738         * sunrpc/clnt_perr.c (clnt_perrno): Export.
15739         * sunrpc/svc_run.c (svc_run): Likewise.
15740         * sunrpc/svc_udp.c (svcudp_create): Likewise.
15741
15742 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
15743
15744         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
15745         problem in reallocation in last patch.
15746
15747 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
15748
15749         * sunrpc/Makefile: Move inclusion of Rules.
15750
15751 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
15752
15753         * nss/nss_files/files-initgroups.c: New file.
15754         * nss/Makefile (libnss_files-routines): Add files-initgroups.
15755         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
15756         _nss_files_initgroups_dyn.
15757
15758 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
15759
15760         * elf/elf.h (R_ARM_IRELATIVE): Define.
15761
15762 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
15763
15764         * po/ru.po: Update from translation team.
15765
15766 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
15767
15768         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
15769         dependencies.
15770
15771 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
15772
15773         [BZ #12653]
15774         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
15775         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
15776         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
15777         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
15778         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
15779
15780 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
15781
15782         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
15783         differing bytes.
15784         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
15785         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
15786         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15787
15788 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
15789
15790         [BZ #12420]
15791         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
15792         storing it.
15793         * stdlib/bug-getcontext.c: New file.
15794         * stdlib/Makefile: Add rules to build and run bug-getcontext.
15795
15796 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15797
15798         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
15799         instructions into .machine "z9-109".
15800         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
15801         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
15802
15803 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15804
15805         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
15806         between environment variables and auxiliary vector.
15807
15808 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
15809
15810         * Makefile: Add rules to build linkobj/libc.so.
15811         * include/libc-symbols.h: Define libc_hidden_nolink.
15812         * include/rpc/auth.h: Mark functions which are to be hidden.
15813         * include/rpc/auth_des.h: Likewise.
15814         * include/rpc/auth_unix.h: Likewise.
15815         * include/rpc/clnt.h: Likewise.
15816         * include/rpc/des_crypt.h: Likewise.
15817         * include/rpc/key_prot.h: Likewise.
15818         * include/rpc/pmap_clnt.h: Likewise.
15819         * include/rpc/pmap_prot.h: Likewise.
15820         * include/rpc/pmap_rmt.h: Likewise.
15821         * include/rpc/rpc_msg.h: Likewise.
15822         * include/rpc/svc.h: Likewise.
15823         * include/rpc/svc_auth.h: Likewise.
15824         * include/rpc/xdr.h: Likewise.
15825         * nis/Makefile: Link all DSOs against linkobj/libc.so.
15826         * nss/Makefile: Likewise.
15827         * sunrpc/Makefile: Don't install headers.  Build library with normal
15828         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
15829         * sunrpc/auth_des.c: Hide exported symbols by default, export some
15830         for the compat linking library.  Remove use of INTDEF/INTUSE.
15831         * sunrpc/auth_none.c: Likewise.
15832         * sunrpc/auth_unix.c: Likewise.
15833         * sunrpc/authdes_prot.c: Likewise.
15834         * sunrpc/authuxprot.c: Likewise.
15835         * sunrpc/clnt_gen.c: Likewise.
15836         * sunrpc/clnt_perr.c: Likewise.
15837         * sunrpc/clnt_raw.c: Likewise.
15838         * sunrpc/clnt_simp.c: Likewise.
15839         * sunrpc/clnt_tcp.c: Likewise.
15840         * sunrpc/clnt_udp.c: Likewise.
15841         * sunrpc/clnt_unix.c: Likewise.
15842         * sunrpc/des_crypt.c: Likewise.
15843         * sunrpc/des_soft.c: Likewise.
15844         * sunrpc/get_myaddr.c: Likewise.
15845         * sunrpc/key_call.c: Likewise.
15846         * sunrpc/key_prot.c: Likewise.
15847         * sunrpc/netname.c: Likewise.
15848         * sunrpc/pm_getmaps.c: Likewise.
15849         * sunrpc/pm_getport.c: Likewise.
15850         * sunrpc/pmap_clnt.c: Likewise.
15851         * sunrpc/pmap_prot.c: Likewise.
15852         * sunrpc/pmap_prot2.c: Likewise.
15853         * sunrpc/pmap_rmt.c: Likewise.
15854         * sunrpc/publickey.c: Likewise.
15855         * sunrpc/rpc_cmsg.c: Likewise.
15856         * sunrpc/rpc_common.c: Likewise.
15857         * sunrpc/rpc_dtable.c: Likewise.
15858         * sunrpc/rpc_prot.c: Likewise.
15859         * sunrpc/rpc_thread.c: Likewise.
15860         * sunrpc/rtime.c: Likewise.
15861         * sunrpc/svc.c: Likewise.
15862         * sunrpc/svc_auth.c: Likewise.
15863         * sunrpc/svc_authux.c: Likewise.
15864         * sunrpc/svc_raw.c: Likewise.
15865         * sunrpc/svc_run.c: Likewise.
15866         * sunrpc/svc_simple.c: Likewise.
15867         * sunrpc/svc_tcp.c: Likewise.
15868         * sunrpc/svc_udp.c: Likewise.
15869         * sunrpc/svc_unix.c: Likewise.
15870         * sunrpc/svcauth_des.c: Likewise.
15871         * sunrpc/xcrypt.c: Likewise.
15872         * sunrpc/xdr.c: Likewise.
15873         * sunrpc/xdr_array.c: Likewise.
15874         * sunrpc/xdr_float.c: Likewise.
15875         * sunrpc/xdr_intXX_t.c: Likewise.
15876         * sunrpc/xdr_mem.c: Likewise.
15877         * sunrpc/xdr_rec.c: Likewise.
15878         * sunrpc/xdr_ref.c: Likewise.
15879         * sunrpc/xdr_sizeof.c: Likewise.
15880         * sunrpc/xdr_stdio.c: Likewise.
15881
15882 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
15883
15884         [BZ #12650]
15885         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
15886         * sysdeps/ia64/dl-tls.h: Likewise.
15887         * sysdeps/powerpc/dl-tls.h: Likewise.
15888         * sysdeps/s390/dl-tls.h: Likewise.
15889         * sysdeps/sh/dl-tls.h: Likewise.
15890         * sysdeps/sparc/dl-tls.h: Likewise.
15891         * sysdeps/x86_64/dl-tls.h: Likewise.
15892         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
15893
15894 2011-03-14  Andreas Schwab  <schwab@redhat.com>
15895
15896         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
15897         rpath element also skip the following colon.
15898         (expand_dynamic_string_token): Add is_path parameter and pass
15899         down to DL_DST_REQUIRED and _dl_dst_substitute.
15900         (decompose_rpath): Call expand_dynamic_string_token with
15901         non-zero is_path.  Ignore empty rpaths.
15902         (_dl_map_object_from_fd): Call expand_dynamic_string_token
15903         with zero is_path.
15904
15905 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
15906
15907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
15908         Make cancelable.
15909
15910 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
15911
15912         [BZ #12655]
15913         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
15914         Patch by Filipe David Manana <fdmanana@apache.org>.
15915
15916 2011-04-07  Andreas Schwab  <schwab@redhat.com>
15917
15918         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
15919         Maintain aligned stack.
15920         (CHECK_RSP): Remove unused macro.
15921
15922 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
15923
15924         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
15925         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
15926
15927 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
15928
15929         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
15930
15931         * include/features.h: Mention __USE_XOPEN2K8 in comment.
15932
15933 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
15934
15935         [BZ #12518]
15936         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
15937         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
15938         * sysdeps/x86_64/memmove.c: New file.
15939         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
15940         (memcpy): Renamed to ...
15941         (__new_memcpy): This.
15942         (memcpy): Provide GLIBC_2_14 memcpy.
15943         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
15944         (memcpy): Provide GLIBC_2_2_5 memcpy.
15945
15946 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15947
15948         [BZ #12631]
15949         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
15950
15951 2011-03-30  Andreas Schwab  <schwab@redhat.com>
15952
15953         * misc/syncfs.c: New file.
15954         * misc/Makefile (routines): Add syncfs.
15955         * posix/unistd.h: Declare syncfs.
15956         * sysdeps/unix/syscalls.list: Add syncfs.
15957
15958 2011-04-01  Andreas Schwab  <schwab@redhat.com>
15959
15960         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
15961         open_by_handle_at.
15962         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15963         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15964         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15965         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15966         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15967         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
15968         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15969
15970 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15971
15972         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
15973         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15974         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
15975         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15976         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15977         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15978         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15979
15980         * io/Makefile: Compile fallocate.c, fallocate64.c, and
15981         sync_file_range.c with -fexceptions.
15982         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
15983         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
15984         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
15985         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
15986         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
15987         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
15988         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
15989         sync_file_range as cancellation point
15990         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
15991         now a wrapper around __call_sync_file_range with cancellation handling.
15992         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
15993         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
15994         function name to __call_sync_file_range.
15995         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
15996         Add call_sync_file_range.
15997
15998 2011-04-01  Andreas Schwab  <schwab@redhat.com>
15999
16000         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16001         bits/timex.h.
16002
16003 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16004
16005         * iconv/iconv.h: Fix typo in comment.
16006         * io/fcntl.h: Likewise.
16007         * libio/stdio.h: Likewise.
16008         * posix/spawn.h: Likewise.
16009         * posix/unistd.h: Likewise.
16010         * stdlib/stdlib.h: Likewise.
16011         * time/time.h: Likewise.
16012         * wcsmbs/wchar.h: Likewise.
16013
16014         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
16015         open_by_handle): Add.
16016         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
16017         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
16018         Augment a few comments.
16019         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16020         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16021         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16022         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16023         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16024         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
16025         open_by_handle.
16026
16027         * io/fcntl.h (AT_EMPTY_PATH): Define.
16028
16029 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
16030
16031         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
16032         * sysdeps/unix/sysv/linux/bits/time.h: New file.
16033         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
16034         to...
16035         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
16036         * Versions.def: Add GLIBC_2.14.
16037         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
16038         Export.
16039
16040 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
16041
16042         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
16043         round counter.
16044         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16045
16046 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
16047
16048         [BZ #12597]
16049         * string/test-strncmp.c (do_page_test): New function.
16050         (check2): Likewise.
16051         (test_main): Call check2.
16052         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
16053
16054 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
16055
16056         [BZ #12587]
16057         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
16058         Handle cache information in CPU leaf 4.
16059         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16060
16061 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
16062
16063         [BZ #12583]
16064         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
16065         character representation.
16066         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
16067
16068 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
16069
16070         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
16071         END(__isnan) to END(__isnanf) to match function entry point/label
16072         EALIGN(__isnanf,...).
16073
16074 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
16075
16076         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
16077
16078 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
16079
16080         [BZ #12510]
16081         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
16082         copy from the symbol referenced in the relocation to initialize the
16083         used variable.
16084         Patch by Piotr Bury <pbury@goahead.com>.
16085         * elf/Makefile: Add rules to build and tst-unique3.
16086         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
16087         * elf/tst-unique3.cc: New file.
16088         * elf/tst-unique3.h: New file.
16089         * elf/tst-unique3lib.cc: New file.
16090         * elf/tst-unique3lib2.cc: New file.
16091
16092         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
16093
16094 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
16095
16096         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
16097         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
16098         to _start.
16099
16100 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
16101
16102         * elf/dl-load.c (_dl_map_object): If we are looking for the first
16103         to-be-loaded object along a path to loader is ld.so.
16104
16105 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
16106             Ulrich Drepper  <drepper@gmail.com>
16107
16108         * sysdeps/x86_64/memset.S: After aligning destination, code
16109         branches to different locations depending on the value of
16110         misalignment, when multiarch is enabled. Fix this.
16111
16112 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
16113
16114         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
16115         Set _x86_64_preferred_memory_instruction for AMD processsors.
16116         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16117         Set bit_Prefer_SSE_for_memop for AMD processors.
16118
16119 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
16120
16121         * libio/fmemopen.c (fmemopen): Optimize a bit.
16122
16123 2011-03-03  Andreas Schwab  <schwab@redhat.com>
16124
16125         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
16126
16127 2011-03-03  Roland McGrath  <roland@redhat.com>
16128
16129         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
16130
16131 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
16132
16133         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
16134         __bzero_ultra1 instead of __memset_ultra1.
16135
16136 2011-02-23  Andreas Schwab  <schwab@redhat.com>
16137             Ulrich Drepper  <drepper@gmail.com>
16138
16139         [BZ #12509]
16140         * include/link.h (struct link_map): Add l_orig_initfini.
16141         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
16142         returning unsuccessfully.
16143         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
16144         close of a file loaded at startup, restore the original l_initfini
16145         list.
16146         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
16147         list, store the pointer.
16148         * elf/Makefile ($(objpfx)noload-mem): New rule.
16149         (noload-ENV): Define.
16150         (tests): Add $(objpfx)noload-mem.
16151         * elf/noload.c: Include <memcheck.h>.
16152         (main): Call mtrace.  Close all opened handles.
16153
16154 2011-02-17  Andreas Schwab  <schwab@redhat.com>
16155
16156         [BZ #12454]
16157         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
16158         dependencies are missing.
16159
16160 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16161
16162         Fix __if_freereq crash: Unlike the generic version which uses free,
16163         Hurd needs munmap.
16164         * sysdeps/mach/hurd/ifreq.h: New file.
16165
16166 2011-01-27  Petr Baudis  <pasky@suse.cz>
16167             Ulrich Drepper  <drepper@gmail.com>
16168
16169         [BZ 12445]#
16170         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
16171         to extend_alloca().
16172         * stdio-common/bug23.c: New file.
16173         * stdio-common/Makefile (tests): Add bug23.
16174
16175 2010-09-28  Andreas Schwab  <schwab@redhat.com>
16176             Ulrich Drepper  <drepper@gmail.com>
16177
16178         [BZ #12489]
16179         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
16180         before performing relro protection.  At old place add assertion
16181         to make sure nothing changed.
16182
16183 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
16184             Glauber de Oliveira Costa  <glommer@gmail.com>
16185
16186         * elf/elf.h: Add new ARM TLS relocs.
16187
16188 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
16189
16190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16191         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
16192         cast from r3.
16193         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
16194         'tests' variable.
16195         * sysdeps/wordsize-64/tst-writev.c: New file.
16196
16197 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
16198
16199         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
16200         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
16201         insns in _dl_start to prevent a TOC reference before relocs are
16202         resolved.
16203
16204 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
16205
16206         [BZ #12469]
16207         * Makeconfig: Remove RANLIB definition.
16208         * Makerules: Don't use RANLIB.
16209         * aclocal.m4: Remove ranlib test.
16210         * configure.in: No need to check for ranlib.
16211         * elf/rtld-Rules: Don't use RANLIB.
16212
16213 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16214
16215         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
16216         protection macro.
16217         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
16218         inclusion protection macro.
16219
16220         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
16221         SIGRTMIN and SIGRTMAX and print information in that case only when
16222         SIGRTMIN is defined.
16223
16224 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16225
16226         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
16227         arginfo fn returning -1.
16228
16229         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
16230         and thousands string is zero terminated.
16231
16232 2011-02-03  Andreas Schwab  <schwab@redhat.com>
16233
16234         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
16235         sysdeps/unix/sysv/linux/bits/socket.h.
16236
16237 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16238
16239         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
16240         (__CPU_COUNT): Remove old macros.
16241         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
16242         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
16243         (__CPU_ALLOC, __CPU_FREE): Add macros.
16244         (__sched_cpualloc, __sched_cpufree): Add declarations.
16245
16246 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
16247
16248         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
16249         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
16250         * nscd/aicache.c (addhstaiX): Return timeout of added value.
16251         (readdhstai): Return value of addhstaiX call.
16252         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
16253         (addgrbyX): Return value returned by cache_addgr.
16254         (readdgrbyname): Return value returned by addgrbyX.
16255         (readdgrbygid): Likewise.
16256         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
16257         (addpwbyX): Return value returned by cache_addpw.
16258         (readdpwbyname): Return value returned by addhstbyX.
16259         (readdpwbyuid): Likewise.
16260         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
16261         (addservbyX): Return value returned by cache_addserv.
16262         (readdservbyname): Return value returned by addservbyX:
16263         (readdservbyport): Likewise.
16264         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
16265         (addhstbyX): Return value returned by cache_addhst.
16266         (readdhstbyname): Return value returned by addhstbyX.
16267         (readdhstbyaddr): Likewise.
16268         (readdhstbynamev6): Likewise.
16269         (readdhstbyaddrv6): Likewise.
16270         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
16271         (readdinitgroups): Return value returned by addinitgroupsX.
16272         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
16273         (prune_cache): Keep track of timeout value of re-added entries.
16274         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
16275         * nscd/nscd.h: Adjust prototypes of readd* functions.
16276
16277 2011-02-04  Roland McGrath  <roland@redhat.com>
16278
16279         * nis/nis_server.c (nis_servstate): Use the right name for 0.
16280         (nis_stats): Likewise.
16281         * nis/nis_modify.c (nis_modify): Likewise.
16282         * nis/nis_remove.c (nis_remove): Likewise.
16283         * nis/nis_add.c (nis_add): Likewise.
16284
16285         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
16286
16287         * posix/fnmatch_loop.c: Add some consts.
16288
16289         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
16290
16291 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
16292
16293         [BZ #12460]
16294         * config.make.in (config-cflags-novzeroupper): Define.
16295         * configure.in: Substitute libc_cv_cc_novzeroupper.
16296         * elf/Makefile (AVX-CFLAGS): Define.
16297         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
16298         (CFLAGS-tst-auditmod4a.c): Likewise.
16299         (CFLAGS-tst-auditmod4b.c): Likewise.
16300         (CFLAGS-tst-auditmod6b.c): Likewise.
16301         (CFLAGS-tst-auditmod6c.c): Likewise.
16302         (CFLAGS-tst-auditmod7b.c): Likewise.
16303         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
16304
16305 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
16306
16307         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
16308         function to the callback.
16309         Patch partly by Jiri Olsa <jolsa@redhat.com>.
16310
16311 2011-02-02  Andreas Schwab  <schwab@redhat.com>
16312
16313         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
16314         of errno.
16315
16316 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
16317
16318         [BZ #11724]
16319         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
16320         of constructors.
16321         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
16322         of destructors.
16323         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
16324
16325         [BZ #11724]
16326         * elf/Makefile: Add rules to build and run new test.
16327         * elf/tst-initorder.c: New file.
16328         * elf/tst-initorder.exp: New file.
16329         * elf/tst-initordera1.c: New file.
16330         * elf/tst-initordera2.c: New file.
16331         * elf/tst-initordera3.c: New file.
16332         * elf/tst-initordera4.c: New file.
16333         * elf/tst-initorderb1.c: New file.
16334         * elf/tst-initorderb2.c: New file.
16335         * elf/tst-order-a1.c: New file.
16336         * elf/tst-order-a2.c: New file.
16337         * elf/tst-order-a3.c: New file.
16338         * elf/tst-order-a4.c: New file.
16339         * elf/tst-order-b1.c: New file.
16340         * elf/tst-order-b2.c: New file.
16341         * elf/tst-order-main.c: New file.
16342         New test case by George Gensure <werkt0@gmail.com>.
16343
16344 2010-10-01  Andreas Schwab  <schwab@redhat.com>
16345
16346         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16347         decoding ACE if AI_CANONIDN.
16348
16349 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
16350
16351         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
16352
16353 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
16354
16355         * version.h (RELEASE): Bump for 2.13 release.
16356         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
16357
16358         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
16359
16360         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
16361         MADV_NOHUGEPAGE.
16362         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
16363         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
16364         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
16365         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
16366         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
16367         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
16368
16369         * posix/getconf.c: Update copyright year.
16370         * catgets/gencat.c: Likewise.
16371         * csu/version.c: Likewise.
16372         * debug/catchsegv.sh: Likewise.
16373         * debug/xtrace.sh: Likewise.
16374         * elf/ldconfig.c: Likewise.
16375         * elf/ldd.bash.in: Likewise.
16376         * elf/sprof.c (print_version): Likewise.
16377         * iconv/iconv_prog.c: Likewise.
16378         * iconv/iconvconfig.c: Likewise.
16379         * locale/programs/locale.c: Likewise.
16380         * locale/programs/localedef.c: Likewise.
16381         * malloc/memusage.sh: Likewise.
16382         * malloc/mtrace.pl: Likewise.
16383         * nscd/nscd.c (print_version): Likewise.
16384         * nss/getent.c: Likewise.
16385
16386         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
16387         PF_CAIF, and PF_ALG.
16388         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16389
16390 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
16391
16392         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
16393         (modules-names): Use them.
16394         (ifunc-test-modules, ifunc-pie-tests): Define.
16395         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
16396         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
16397         (test-extras): Likewise.
16398         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
16399         $(compile-command.c).
16400         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
16401         (all-built-dso): Define.
16402         (check-textrel.out, check-execstack.out): Depend on it.
16403
16404         * configure.in: Don't override --enable-multi-arch.
16405
16406 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
16407
16408         [BZ #6812]
16409         * nscd/hstcache.c (tryagain): Define.
16410         (cache_addhst): Return tryagain not notfound for temporary errors.
16411         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
16412         failed.
16413
16414 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
16415
16416         [BZ #10563]
16417         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
16418         to make the syscall.
16419         * sysdeps/unix/sysv/linux/setgroups.c: New file.
16420
16421         [BZ #12378]
16422         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
16423         and fall back to matching as normal character if the string ends before
16424         the matching ']' is found.  This is what POSIX requires.
16425         * posix/testfnm.c: Adjust test result.
16426         * posix/globtest.sh: Adjust test result.  Add new test.
16427         * posix/tst-fnmatch.input: Likewise.
16428         * posix/tst-fnmatch2.c: Add new test.
16429
16430 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
16431
16432         * elf/Makefile (check-execstack): Revert last change.  Depend on
16433         check-execstack.h.
16434         (check-execstack.h): New target.
16435         (generated): Add check-execstack.h.
16436         * elf/check-execstack.c: Include "check-execstack.h".
16437         (main): Revert last change.
16438         (handle_file): Return zero if GNU_STACK is absent and
16439         DEFAULT_STACK_PERMS doesn't include PF_X.
16440
16441 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
16442
16443         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
16444         in child fails because the descriptor is already closed.
16445         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
16446         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
16447         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
16448
16449         [BZ #12397]
16450         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
16451         syscall.
16452
16453         [BZ #10484]
16454         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
16455         temporary buffer used to handle multi lookups locally.
16456         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
16457
16458 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
16459
16460         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
16461         loader is ld.so.
16462
16463 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
16464
16465         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
16466         alignment for SSE2.
16467
16468 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
16469
16470         [BZ #12394]
16471         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
16472         characters.  When rounding increased number of integer digits recompute
16473         number of groups.
16474         * stdio-common/tst-grouping.c: New file.
16475         * stdio-common/Makefile: Add rules to build and run tst-grouping.
16476
16477 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
16478
16479         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
16480         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
16481
16482         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
16483         void.
16484         * bits/select.h: Likewise.
16485
16486 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
16487
16488         * po/ja.po: Update from translation team.
16489
16490 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
16491
16492         [BZ #11155]
16493         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
16494         implementation just like for lxstat, fxstatat, et al.
16495
16496 2010-12-27  Jim Meyering  <meyering@redhat.com>
16497
16498         [BZ #12348]
16499         * posix/regexec.c (build_trtable): Return failure indication upon
16500         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16501
16502 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
16503
16504         [BZ #12201]
16505         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
16506         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
16507         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
16508         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
16509
16510         [BZ #12207]
16511         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
16512
16513         [BZ #12204]
16514         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
16515         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
16516
16517 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
16518
16519         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
16520         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
16521         script has SORT_BY_INIT_PRIORITY.
16522         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
16523         NO_CTORS_DTORS_SECTIONS is defined.
16524         * elf/soinit.c: Likewise.
16525         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
16526         NO_CTORS_DTORS_SECTIONS is defined.
16527         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
16528         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
16529         * sysdeps/sh/init-first.c: Likewise.
16530         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
16531
16532 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
16533
16534         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
16535         always use the slow path.
16536
16537 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
16538
16539         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
16540         similar rule which adds the sysdep directories to the header search in
16541         order to pick up the correct platform stackinfo.h.
16542         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
16543         perform test if it is, otherwise return successfully without testing.
16544         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
16545         DEFAULT_STACK_PERMS define in stackinfo.h.
16546         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
16547         defined in stackinfo.h.
16548         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
16549         DEFAULT_STACK_PERMS defined in stackinfo.h.
16550         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
16551         * sysdeps/ia64/stackinfo.h: Likewise.
16552         * sysdeps/s390/stackinfo.h: Likewise.
16553         * sysdeps/sh/stackinfo.h: Likewise.
16554         * sysdeps/sparc/stackinfo.h: Likewise.
16555         * sysdeps/x86_64/stackinfo.h: Likewise.
16556         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
16557         PF_X for powerpc64.  Retain PF_X for powerpc32.
16558
16559 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
16560
16561         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
16562         accurately.
16563         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
16564         GETDENTS_64BIT_ALIGNED.
16565
16566 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
16567
16568         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
16569
16570 2010-12-10  Andreas Schwab  <schwab@redhat.com>
16571
16572         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
16573         _GNU_SOURCE.
16574
16575         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
16576         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
16577         Remove __restrict.
16578         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
16579         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
16580
16581 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
16582
16583         [BZ #11655]
16584         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
16585         are initialized.
16586
16587 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
16588
16589         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
16590
16591 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
16592
16593         * po/it.po: Update from translation team.
16594
16595 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
16596
16597         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
16598         unused codes.
16599
16600 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
16601
16602         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
16603
16604 2010-11-24  Andreas Schwab  <schwab@redhat.com>
16605
16606         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
16607         specially.
16608         (gaih_getanswer_slice): Likewise.
16609
16610 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
16611
16612         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
16613
16614 2010-05-31  Petr Baudis  <pasky@suse.cz>
16615
16616         [BZ #11149]
16617         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
16618         silently even in the chroot mode.
16619
16620 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
16621
16622         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
16623         last patch a bit.  Pretty printing
16624
16625 2010-05-31  Petr Baudis <pasky@suse.cz>
16626
16627         [BZ #10085]
16628         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
16629         initialization of skip_initgroups_dyn.
16630
16631 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
16632
16633         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
16634         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
16635
16636 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
16637
16638         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
16639
16640 2010-11-11  Andreas Schwab  <schwab@redhat.com>
16641
16642         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
16643         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
16644         (tst-fnmatch-ENV): Set MALLOC_TRACE.
16645         ($(objpfx)tst-fnmatch-mem): New rule.
16646         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
16647         * posix/tst-fnmatch.c (main): Call mtrace.
16648
16649 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
16650
16651         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16652         Support Intel processor model 6 and model 0x2c.
16653
16654 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
16655
16656         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
16657           signed comparison.
16658
16659 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
16660
16661         [BZ #12205]
16662         * string/test-strncasecmp.c (check_result): New function.
16663         (do_one_test): Use it.
16664         (check1): New function.
16665         (test_main): Use it.
16666         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
16667         Support strcasecmp and strncasecmp.
16668
16669 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
16670
16671         [BZ #12194]
16672         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
16673         * sysdeps/x86_64/bits/byteswap.h: Likewise.
16674
16675 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16676
16677         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
16678         IFUNC support.
16679         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16680         memset-x86-64.
16681         * sysdeps/x86_64/multiarch/bzero.S: New file.
16682         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
16683         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
16684         * sysdeps/x86_64/multiarch/memset.S: New file.
16685         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
16686         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16687         Set bit_Prefer_SSE_for_memop for Intel processors.
16688         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
16689         Define.
16690         (index_Prefer_SSE_for_memop): Define.
16691         (HAS_PREFER_SSE_FOR_MEMOP): Define.
16692
16693 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
16694
16695         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
16696         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
16697
16698 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
16699
16700         [BZ #12191]
16701         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
16702         (__x86_64_raw_data_cache_size_half): Likewise.
16703         (__x86_64_raw_shared_cache_size): Likewise.
16704         (__x86_64_raw_shared_cache_size_half): Likewise.
16705
16706         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
16707         (__x86_64_raw_data_cache_size_half): Likewise.
16708         (__x86_64_raw_shared_cache_size): Likewise.
16709         (__x86_64_raw_shared_cache_size_half): Likewise.
16710         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
16711         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
16712         and __x86_64_raw_shared_cache_size_half.  Round
16713         __x86_64_data_cache_size_half, __x86_64_data_cache_size
16714         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
16715         to multiple of 256 bytes.
16716
16717 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
16718
16719         [BZ #12167]
16720         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
16721         of inacessible symlinks.  Verify result of symlink before returning it.
16722         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
16723         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
16724
16725 2010-10-28  Erich Ritz  <erichritz@gmail.com>
16726
16727         * math/math.h (isinf): Fix typo in comment.
16728
16729 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
16730
16731         * po/da.po: Update from translation team.
16732
16733 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
16734
16735         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
16736         is added to the list.
16737
16738 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16739             Ulrich Drepper  <drepper@gmail.com>
16740
16741         * elf/dl-object.c (_dl_new_object): Don't append the new object to
16742         the global list here.  Move code to...
16743         (_dl_add_to_namespace_list): ...here.  New function.
16744         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
16745         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
16746         * elf/dl-load.c (lose): Don't remove the element from the list.
16747         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
16748         (_dl_map_object): Likewise.
16749
16750 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
16751
16752         [BZ #12159]
16753         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
16754         into all bytes of SSE register.
16755         Patch by Richard Li <richardpku@gmail.com>.
16756
16757 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
16758
16759         [BZ #12140]
16760         * malloc/malloc.c (_int_free): Fill correct number of bytes when
16761         perturbing.
16762
16763 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
16764
16765         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
16766         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
16767         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
16768         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
16769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
16770         submachine.
16771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
16772
16773 2010-10-22  Andreas Schwab  <schwab@redhat.com>
16774
16775         * include/dlfcn.h (__RTLD_SECURE): Define.
16776         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
16777         mode & __RTLD_SECURE instead.
16778         (open_path): Rename preloaded parameter to secure.
16779         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
16780         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
16781         * elf/dl-deps.c (openaux): Likewise.
16782         * elf/rtld.c (struct map_args): Remove is_preloaded.
16783         (map_doit): Don't use it.
16784         (dl_main): Likewise.
16785         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
16786         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
16787
16788 2010-09-09  Andreas Schwab  <schwab@redhat.com>
16789
16790         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
16791         (sysd-rules-targets): Remove duplicates.
16792         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
16793         rtld-%.$o dependency.
16794
16795 2010-10-18  Andreas Schwab  <schwab@redhat.com>
16796
16797         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
16798         _dl_map_object do it.
16799
16800 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
16801
16802         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
16803         fast fma builtins, define the macros in the C99 standard.
16804         (FP_FAST_FMAF): Likewise.
16805         (FP_FAST_FMAL): Likewise.
16806         * sysdeps/x86_64/bits/mathdef.h: Likewise.
16807
16808         * bits/mathdef.h: Update copyright year.
16809         * sysdeps/powerpc/bits/mathdef.h: Likewise.
16810
16811 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
16812
16813         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
16814         builtins, define the macros in the C99 standard.
16815         (FP_FAST_FMAF): Likewise.
16816         (FP_FAST_FMAL): Likewise.
16817         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
16818         multiply/add.
16819         (FP_FAST_FMAF): Likewise.
16820
16821 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
16822
16823         [BZ #3268]
16824         * math/libm-test.inc (fma_test): Some new testcases.
16825         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
16826         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
16827         y and infinite z.  Do multiplication by C already in long double.
16828         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
16829         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
16830         y and infinite z.  Do bitwise or of inexact bit into u.d.
16831         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
16832         * sysdeps/i386/fpu/s_fmaf.S: Removed.
16833         * sysdeps/i386/fpu/s_fma.S: Removed.
16834         * sysdeps/i386/fpu/s_fmal.S: Removed.
16835
16836 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
16837
16838         [BZ #3268]
16839         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
16840         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
16841         computation is not scheduled after fetestexcept.  Fix value
16842         of minimum denormal long double.
16843
16844 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
16845
16846         [BZ #3268]
16847         * math/libm-test.inc (fma_test): Add some more tests.
16848         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
16849         correctly.
16850
16851 2010-10-15  Andreas Schwab  <schwab@redhat.com>
16852
16853         * scripts/data/localplt-s390-linux-gnu.data: New file.
16854         * scripts/data/localplt-s390x-linux-gnu.data: New file.
16855
16856 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
16857
16858         [BZ #3268]
16859         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
16860         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
16861         instead of dbl-64.
16862         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
16863         inlines.
16864         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
16865         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
16866         if one of x and y is very large and the other is subnormal.
16867         * sysdeps/s390/fpu/s_fmaf.c: New file.
16868         * sysdeps/s390/fpu/s_fma.c: New file.
16869         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
16870         * sysdeps/powerpc/fpu/s_fma.S: New file.
16871         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
16872         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
16873         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
16874
16875 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
16876
16877         [BZ #3268]
16878         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
16879         fma tests.
16880         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
16881         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
16882         * sysdeps/i386/i686/multiarch/s_fma.c: Include
16883         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
16884         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
16885         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
16886         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
16887
16888 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
16889
16890         [BZ #12078]
16891         * posix/regcomp.c (parse_branch): One more memory leak plugged.
16892         * posix/bug-regex31.input: Add test case.
16893
16894 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
16895
16896         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
16897         * posix/bug-regex31.input: New file.
16898
16899         [BZ #12078]
16900         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
16901         (parse_sub_exp): Fix last change, use postorder.
16902
16903         * posix/bug-regex31.c: New file.
16904         * posix/Makefile: Add rules to build and run bug-regex31.
16905
16906         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
16907
16908         [BZ #12078]
16909         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
16910
16911         [BZ #12108]
16912         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
16913         to have entries in sys_siglist.
16914
16915         [BZ #12093]
16916         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
16917         be NULL.
16918
16919 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
16920
16921         [BZ #3268]
16922         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
16923         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
16924         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
16925         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
16926         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16927         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
16928         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
16929         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
16930         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
16931         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
16932         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
16933         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
16934         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
16935         * math/ftestexcept.c (fetestexcept): Likewise.
16936         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
16937         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
16938         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
16939         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
16940         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
16941         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
16942         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
16943
16944 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
16945
16946         [BZ #12107]
16947         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
16948         newline.
16949
16950 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
16951
16952         * string/bug-strstr1.c: New file.
16953         * string/Makefile: Add rules to build and run bug-strstr1.
16954
16955 2010-10-05  Eric Blake  <eblake@redhat.com>
16956
16957         [BZ #12092]
16958         * string/str-two-way.h (two_way_long_needle): Always clear memory
16959         when skipping input due to the shift table.
16960
16961 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
16962
16963         [BZ #12005]
16964         * malloc/mcheck.c: Handle large requests.
16965
16966         [BZ #12077]
16967         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
16968         for strncmp and strncasecmp.
16969         * string/stratcliff.c: Add tests for strcmp and strncmp.
16970         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
16971
16972 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16973
16974         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
16975         __set_fpscr.
16976
16977 2010-09-30  Andreas Jaeger  <aj@suse.de>
16978
16979         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
16980         (CGROUP_SUPER_MAGIC): Define.
16981         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16982         Handle btrfs and cgroup file systems.
16983         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
16984         Likewise.
16985
16986 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
16987
16988         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
16989         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
16990
16991 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16992
16993         [BZ #12067]
16994         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
16995         trying to locate the ELF header.
16996
16997 2010-09-27  Andreas Schwab  <schwab@redhat.com>
16998
16999         [BZ #11611]
17000         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
17001         Mask out sign-bit copies when constructing f_fsid.
17002
17003 2010-09-24  Petr Baudis <pasky@suse.cz>
17004
17005         * debug/stack_chk_fail_local.c: Add missing licence exception.
17006         * debug/warning-nop.c: Likewise.
17007
17008 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
17009
17010         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
17011         implementing getdents64 using getdents syscall, set d_type if
17012         __ASSUME_GETDENTS32_D_TYPE.
17013
17014 2010-09-16  Andreas Schwab  <schwab@redhat.com>
17015
17016         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
17017         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
17018
17019 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
17020
17021         [BZ #12037]
17022         * posix/unistd.h: Undo change of feature selection for ftruncate from
17023         2010-01-11.
17024
17025 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
17026
17027         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
17028         detection.
17029
17030 2010-09-20  Andreas Schwab  <schwab@redhat.com>
17031
17032         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
17033         fanotify_mark.
17034         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
17035
17036 2010-09-14  Andreas Schwab  <schwab@redhat.com>
17037
17038         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
17039         variables after CHECK_SP call.
17040         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
17041
17042 2010-09-13  Andreas Schwab  <schwab@redhat.com>
17043             Ulrich Drepper  <drepper@redhat.com>
17044
17045         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
17046         re-relocationg ld.so.
17047         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
17048         _dl_init_paths call.
17049         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
17050         here anymore.
17051
17052 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
17053
17054         * resolv/res_init.c (__res_vinit): Count the default server we added.
17055
17056 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
17057             Ulrich Drepper  <drepper@redhat.com>
17058
17059         [BZ #11968]
17060         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17061         (____longjmp_chk): Use %ebx for saving value across system call.
17062         Add unwind info.
17063
17064 2010-09-06  Andreas Schwab  <schwab@redhat.com>
17065
17066         * manual/Makefile: Don't mix pattern rules with normal rules.
17067
17068 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
17069
17070         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
17071         operation.
17072         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
17073         * libio/iofopncook.c (_IO_cookie_init): Likewise.
17074         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
17075         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17076         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17077         Likewise.
17078
17079 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
17080
17081         [BZ #11979]
17082         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
17083         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
17084
17085 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
17086
17087         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
17088         * sysdeps/x86_64/addmul_1.S: Likewise.
17089         * sysdeps/x86_64/lshift.S: Likewise.
17090         * sysdeps/x86_64/mul_1.S: Likewise.
17091         * sysdeps/x86_64/rshift.S: Likewise.
17092         * sysdeps/x86_64/sub_n.S: Likewise.
17093         * sysdeps/x86_64/submul_1.S: Likewise.
17094
17095 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17096
17097         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
17098         Define __sched_param instead of SCHED_* and sched_param when
17099         <bits/sched.h> is included with __need_schedparam defined.
17100         * bits/sched.h [__need_schedparam]
17101         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
17102         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
17103         (__defined_schedparam): Define to 1.
17104         (__sched_param): New structure, identical to sched_param.
17105         (__need_schedparam): Undefine.
17106
17107 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
17108
17109         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
17110         (epoll_create1): Declare.
17111
17112         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
17113
17114 2010-08-31  Andreas Schwab  <schwab@redhat.com>
17115
17116         [BZ #7066]
17117         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
17118         shifting retval into place.
17119
17120 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
17121
17122         * nis/rpcsvc/nis.h: Update copyright notice.
17123         * nis/rpcsvc/nis.x: Likewise.
17124         * nis/rpcsvc/nis_callback.h: Likewise.
17125         * nis/rpcsvc/nis_callback.x: Likewise.
17126         * nis/rpcsvc/nis_object.x: Likewise.
17127         * nis/rpcsvc/nis_tags.h: Likewise.
17128         * nis/rpcsvc/yp.h: Likewise.
17129         * nis/rpcsvc/yp.x: Likewise.
17130         * nis/rpcsvc/ypupd.h: Likewise.
17131         * nis/yp_xdr.c: Likewise.
17132         * nis/ypupdate_xdr.c: Likewise.
17133
17134         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
17135         mainly the body of pmap_getport.  Add parameters to specify timeouts.
17136         (pmap_getport): Use __libc_rpc_getport.
17137         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
17138         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
17139         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
17140
17141 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
17142
17143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
17144         fanotify_mark.
17145
17146 2010-08-27  Roland McGrath  <roland@redhat.com>
17147
17148         * sysdeps/i386/i686/multiarch/Makefile
17149         (CFLAGS-varshift.c): New variable.
17150
17151 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
17152
17153         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
17154         * sysdeps/i386/i686/multiarch/varshift.c: New file.
17155
17156         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
17157
17158         * sysdeps/x86_64/strlen.S: Minimal code improvement.
17159
17160 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
17161
17162         * sysdeps/x86_64/strlen.S: Unroll the loop.
17163         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17164         strlen-sse2 strlen-sse2-bsf.
17165         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
17166         __strlen_no_bsf if bit_Slow_BSF is set.
17167         (__strlen_sse42): Removed.
17168         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
17169         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
17170
17171 2010-08-25  Roland McGrath  <roland@redhat.com>
17172
17173         * sysdeps/x86_64/multiarch/varshift.S: File removed.
17174         * sysdeps/x86_64/multiarch/varshift.c: New file.
17175         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
17176         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
17177         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
17178         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17179
17180 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
17181
17182         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17183         strlen-sse2 strlen-sse2-bsf.
17184         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
17185         __strlen_sse2_bsf if bit_Slow_BSF is unset.
17186         (__strlen_sse2): Removed.
17187         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
17188         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
17189         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
17190         bit_Slow_BSF for Atom.
17191         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
17192         (index_Slow_BSF): Define.
17193         (HAS_SLOW_BSF): Define.
17194
17195 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
17196
17197         [BZ #10851]
17198         * resolv/res_init.c (__res_vinit): When no server address at all
17199         is given default to loopback.
17200
17201 2010-08-24  Roland McGrath  <roland@redhat.com>
17202
17203         * configure.in: Remove config-name.h generation.
17204         * configure: Regenerated.
17205         * config-name.in: File removed.
17206         * scripts/config-uname.sh: New file.
17207         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
17208         ($(objdir)config-name.h): New target.
17209
17210         * sunrpc/rpc_parse.h: Avoid nested comment.
17211
17212 2010-08-24  Richard Henderson  <rth@redhat.com>
17213             Ulrich Drepper  <drepper@redhat.com>
17214             H.J. Lu  <hongjiu.lu@intel.com>
17215
17216         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
17217         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
17218         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
17219         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
17220         _mm_alignr_epi8 with _mm_loadu_si128.
17221         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
17222         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
17223         (__m128i_shift_right): Removed.
17224         * sysdeps/i386/i686/multiarch/varshift.h: New file.
17225         * sysdeps/i386/i686/multiarch/varshift.S: New file.
17226         * sysdeps/x86_64/multiarch/varshift.h: New file.
17227         * sysdeps/x86_64/multiarch/varshift.S: New file.
17228
17229 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
17230
17231         * configure.in: Move assembler checks to before sysdep dir checking.
17232
17233 2010-08-20  Petr Baudis  <pasky@suse.cz>
17234
17235         * LICENSES: Sync the sunrpc license.
17236
17237 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
17238
17239         * sunrpc/auth_des.c: Update copyright notice once again.
17240         * sunrpc/auth_none.c: Likewise.
17241         * sunrpc/auth_unix.c: Likewise.
17242         * sunrpc/authdes_prot.c: Likewise.
17243         * sunrpc/authuxprot.c: Likewise.
17244         * sunrpc/bindrsvprt.c: Likewise.
17245         * sunrpc/clnt_gen.c: Likewise.
17246         * sunrpc/clnt_perr.c: Likewise.
17247         * sunrpc/clnt_raw.c: Likewise.
17248         * sunrpc/clnt_simp.c: Likewise.
17249         * sunrpc/clnt_tcp.c: Likewise.
17250         * sunrpc/clnt_udp.c: Likewise.
17251         * sunrpc/clnt_unix.c: Likewise.
17252         * sunrpc/des_crypt.c: Likewise.
17253         * sunrpc/des_soft.c: Likewise.
17254         * sunrpc/get_myaddr.c: Likewise.
17255         * sunrpc/getrpcport.c: Likewise.
17256         * sunrpc/key_call.c: Likewise.
17257         * sunrpc/key_prot.c: Likewise.
17258         * sunrpc/openchild.c: Likewise.
17259         * sunrpc/pm_getmaps.c: Likewise.
17260         * sunrpc/pm_getport.c: Likewise.
17261         * sunrpc/pmap_clnt.c: Likewise.
17262         * sunrpc/pmap_prot.c: Likewise.
17263         * sunrpc/pmap_prot2.c: Likewise.
17264         * sunrpc/pmap_rmt.c: Likewise.
17265         * sunrpc/rpc/auth.h: Likewise.
17266         * sunrpc/rpc/auth_unix.h: Likewise.
17267         * sunrpc/rpc/clnt.h: Likewise.
17268         * sunrpc/rpc/des_crypt.h: Likewise.
17269         * sunrpc/rpc/key_prot.h: Likewise.
17270         * sunrpc/rpc/netdb.h: Likewise.
17271         * sunrpc/rpc/pmap_clnt.h: Likewise.
17272         * sunrpc/rpc/pmap_prot.h: Likewise.
17273         * sunrpc/rpc/pmap_rmt.h: Likewise.
17274         * sunrpc/rpc/rpc.h: Likewise.
17275         * sunrpc/rpc/rpc_des.h: Likewise.
17276         * sunrpc/rpc/rpc_msg.h: Likewise.
17277         * sunrpc/rpc/svc.h: Likewise.
17278         * sunrpc/rpc/svc_auth.h: Likewise.
17279         * sunrpc/rpc/types.h: Likewise.
17280         * sunrpc/rpc/xdr.h: Likewise.
17281         * sunrpc/rpc_clntout.c: Likewise.
17282         * sunrpc/rpc_cmsg.c: Likewise.
17283         * sunrpc/rpc_common.c: Likewise.
17284         * sunrpc/rpc_cout.c: Likewise.
17285         * sunrpc/rpc_dtable.c: Likewise.
17286         * sunrpc/rpc_hout.c: Likewise.
17287         * sunrpc/rpc_main.c: Likewise.
17288         * sunrpc/rpc_parse.c: Likewise.
17289         * sunrpc/rpc_parse.h: Likewise.
17290         * sunrpc/rpc_prot.c: Likewise.
17291         * sunrpc/rpc_sample.c: Likewise.
17292         * sunrpc/rpc_scan.c: Likewise.
17293         * sunrpc/rpc_scan.h: Likewise.
17294         * sunrpc/rpc_svcout.c: Likewise.
17295         * sunrpc/rpc_tblout.c: Likewise.
17296         * sunrpc/rpc_util.c: Likewise.
17297         * sunrpc/rpc_util.h: Likewise.
17298         * sunrpc/rpcinfo.c: Likewise.
17299         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
17300         * sunrpc/rpcsvc/key_prot.x: Likewise.
17301         * sunrpc/rpcsvc/klm_prot.x: Likewise.
17302         * sunrpc/rpcsvc/mount.x: Likewise.
17303         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
17304         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
17305         * sunrpc/rpcsvc/rex.x: Likewise.
17306         * sunrpc/rpcsvc/rstat.x: Likewise.
17307         * sunrpc/rpcsvc/rusers.x: Likewise.
17308         * sunrpc/rpcsvc/sm_inter.x: Likewise.
17309         * sunrpc/rpcsvc/spray.x: Likewise.
17310         * sunrpc/rpcsvc/yppasswd.x: Likewise.
17311         * sunrpc/rtime.c: Likewise.
17312         * sunrpc/svc.c: Likewise.
17313         * sunrpc/svc_auth.c: Likewise.
17314         * sunrpc/svc_authux.c: Likewise.
17315         * sunrpc/svc_raw.c: Likewise.
17316         * sunrpc/svc_run.c: Likewise.
17317         * sunrpc/svc_simple.c: Likewise.
17318         * sunrpc/svc_tcp.c: Likewise.
17319         * sunrpc/svc_udp.c: Likewise.
17320         * sunrpc/svc_unix.c: Likewise.
17321         * sunrpc/svcauth_des.c: Likewise.
17322         * sunrpc/xcrypt.c: Likewise.
17323         * sunrpc/xdr.c: Likewise.
17324         * sunrpc/xdr_array.c: Likewise.
17325         * sunrpc/xdr_float.c: Likewise.
17326         * sunrpc/xdr_mem.c: Likewise.
17327         * sunrpc/xdr_rec.c: Likewise.
17328         * sunrpc/xdr_ref.c: Likewise.
17329         * sunrpc/xdr_sizeof.c: Likewise.
17330         * sunrpc/xdr_stdio.c: Likewise.
17331
17332         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
17333         handling.
17334
17335 2010-08-19  Andreas Schwab  <schwab@redhat.com>
17336
17337         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
17338
17339 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
17340
17341         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
17342         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
17343         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
17344         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
17345         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
17346         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
17347         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
17348         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
17349         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
17350         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
17351         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
17352         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
17353         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
17354         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
17355
17356 2010-07-26  Anton Blanchard  <anton@samba.org>
17357
17358         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
17359         * malloc/arena.c (heap_trim): Likewise.
17360
17361 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
17362
17363         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
17364         here.  Not...
17365         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
17366         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
17367
17368 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
17369
17370         * sysdeps/i386/elf/Makefile: New file.
17371
17372 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
17373
17374         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
17375         from fanotify_init.
17376         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
17377         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17378
17379 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
17380
17381         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
17382         of strncasecmp_l.
17383         * sysdeps/multiarch/strcmp.S: Likewise.
17384
17385 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
17386
17387         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
17388         strncase_l-nonascii.
17389         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
17390         Add strncase_l-ssse3.
17391         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
17392         * sysdeps/x86_64/strcmp.S: Likewise.
17393         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
17394         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
17395         * sysdeps/x86_64/strncase.S: New file.
17396         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
17397         * sysdeps/x86_64/strncase_l.S: New file.
17398         * string/Makefile (strop-tests): Add strncasecmp.
17399         * string/test-strncasecmp.c: New file.
17400
17401         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
17402         warning.
17403
17404         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
17405         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
17406
17407 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
17408
17409         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
17410
17411 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
17412
17413         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
17414         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
17415         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
17416
17417 2010-05-01  Alan Modra  <amodra@gmail.com>
17418
17419         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
17420         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
17421         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
17422         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
17423         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
17424         tidying.  Don't tail-call __sigjmp_save for static lib.
17425         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
17426         save location.
17427         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
17428         (CALL_MCOUNT): Add eh info, and nop after bl.
17429         (TAIL_CALL_SYSCALL_ERROR): New macro.
17430         (PSEUDO_RET): Use it.
17431         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
17432         Correct save location of integer regs and cr.
17433         (_dl_profile_resolve): Correct cr save location.  Delete nops
17434         after bl when SHARED.  Reduce cfi size a little by better
17435         placement of cfi directives.
17436         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
17437         make a stack frame.  Instead use parm save area as a temp.
17438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
17439         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
17440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
17441         Don't make a stack frame for parent, use parm save area.
17442         Increase child stack frame to 112 bytes.  Don't save unused reg,
17443         and adjust reg usage.  Set up cfi on error recovery and
17444         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
17445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
17446         (__makecontext): Add dummy nop after jump to exit.
17447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
17448         Use correct parm save area and cr save, reduce stack frame.
17449         Correct cfi for possible PSEUDO_RET frame setup.
17450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
17451         Branch to local label emitted by PSEUDO_RET rather than
17452         __syscall_error.
17453
17454 2010-08-12  Andreas Schwab  <schwab@redhat.com>
17455
17456         [BZ #11904]
17457         * locale/programs/locale.c (print_assignment): New function.
17458         (show_locale_vars): Use it.
17459
17460 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
17461
17462         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
17463         field.
17464         (struct statfs64): Likewise.
17465         (_STATFS_F_FLAGS): Define.
17466         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
17467         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17468         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
17469         (ST_VALID): Define locally.
17470         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
17471         __statvfs_getflags, use the provided value.
17472         * sysdeps/unix/sysv/linux/kernel-features.h: Define
17473         __ASSUME_STATFS_F_FLAGS.
17474
17475         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
17476
17477         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
17478         Add sys/fanotify.h.
17479         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
17480         fanotify_mask for GLIBC_2.13.
17481         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
17482         fanotify_init and fanotify_mark.
17483         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17484         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
17485
17486         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
17487         Add prlimit.
17488         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
17489         prlimit64 for GLIBC_2.13.
17490         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
17491         prlimit64.
17492         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
17493         syscall.
17494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
17495         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
17496         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
17497         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
17498         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
17499         add prlimit alias.
17500         * sysdeps/unix/sysv/linux/prlimit.c: New file.
17501
17502         [BZ #11903]
17503         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
17504         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
17505
17506         * nss/Makefile: Add rules to build and run tst-nss-test1.
17507         * shlib-versions: Add entry for libnss_test1.
17508         * nss/nss_test1.c: New file.
17509         * nss/tst-nss-test1.c: New file.
17510
17511         * nss/nsswitch.c (__nss_database_custom): Define new variable.
17512         (__nss_configure_lookup): Set appropriate entry in
17513         __nss_configure_lookup to true.
17514         * nss/nsswitch.h: Define enum with indeces of databases in
17515         databases and __nss_database_custom arrays.  Declare
17516         __nss_database_custom.
17517         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
17518         to avoid using nscd when custom rules are installed.
17519         * nss/getXXbyYY_r.c: Likewise.
17520         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
17521
17522         * nss/nss_files/files-parse.c: Whitespace fixes.
17523
17524 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
17525
17526         [BZ #11883]
17527         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
17528         * posix/fnmatch_loop.c: Likewise.
17529
17530 2010-07-17  Andi Kleen  <ak@linux.intel.com>
17531
17532         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
17533         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
17534         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
17535         * Versions.def [GLIBC_2.13]: Add.
17536
17537 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
17538
17539         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17540         Also fail if tpwd after pwuid call is NULL.
17541
17542 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17543
17544         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
17545         when converting to ms.
17546
17547 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17548
17549         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
17550         EOPNOTSUPP errors with ENOTTY.
17551         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
17552         EOPNOTSUPP errors with ENOTTY.
17553
17554 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
17555
17556         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
17557         Add strcasecmp_l-ssse3.
17558         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
17559         strcasecmp.
17560         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
17561         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
17562         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
17563
17564 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
17565
17566         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
17567
17568         * string/Makefile (strop-tests): Add strcasecmp.
17569         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
17570         strcasecmp_l-nonascii.
17571         (gen-as-const-headers): Add locale-defines.sym.
17572         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
17573         * sysdeps/x86_64/strcasecmp.S: New file.
17574         * sysdeps/x86_64/strcasecmp_l.S: New file.
17575         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
17576         * sysdeps/x86_64/locale-defines.sym: New file.
17577         * string/test-strcasecmp.c: New file.
17578
17579         * string/test-strcasestr.c: Test both ends of the range of characters.
17580         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
17581
17582 2010-07-29  Roland McGrath  <roland@redhat.com>
17583
17584         [BZ #11856]
17585         * manual/locale.texi (Yes-or-No Questions): Fix example code.
17586
17587 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
17588
17589         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
17590         for ld.so.
17591
17592 2010-07-27  Andreas Schwab  <schwab@redhat.com>
17593
17594         * manual/memory.texi (Malloc Tunable Parameters): Document
17595         M_PERTURB.
17596
17597 2010-07-26  Roland McGrath  <roland@redhat.com>
17598
17599         [BZ #11840]
17600         * configure.in (-fgnu89-inline check): Set and substitute
17601         gnu89_inline, not libc_cv_gnu89_inline.
17602         * configure: Regenerated.
17603         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
17604
17605 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
17606
17607         * string/test-strnlen.c: New file.
17608         * string/Makefile (strop-tests): Add strnlen.
17609         * string/tester.c (test_strnlen): Add a few more test cases.
17610         * string/tst-strlen.c: Better error reporting.
17611
17612         * sysdeps/x86_64/strnlen.S: New file.
17613
17614 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
17615
17616         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
17617         lower-latency instructions.
17618
17619 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
17620
17621         * string/test-strcasestr.c: New file.
17622         * string/test-strstr.c: New file.
17623         * string/Makefile (strop-tests): Add strstr and strcasestr.
17624         * string/str-two-way.h: Don't undefine MAX.
17625         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
17626
17627 2010-07-21  Andreas Schwab  <schwab@redhat.com>
17628
17629         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17630         strcasestr-nonascii.
17631         (CFLAGS-strcasestr-nonascii.c): Define.
17632         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
17633         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
17634         Remove unused attribute.
17635
17636 2010-07-20  Roland McGrath  <roland@redhat.com>
17637
17638         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
17639         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
17640         ld.so.cache was broken.  With it, there is no way to disable dsocaps
17641         like LD_HWCAP_MASK can disable hwcaps.
17642
17643 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
17644
17645         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
17646
17647 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
17648
17649         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
17650         call in strcasestr.
17651         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
17652         __strcasestr_sse42_nonascii.
17653         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
17654         strcasestr-nonascii.c.
17655         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
17656
17657 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
17658
17659         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
17660         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
17661         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
17662         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
17663
17664 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
17665
17666         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
17667         fcntl.
17668
17669 2010-07-06  Andreas Schwab  <schwab@redhat.com>
17670
17671         [BZ #11577]
17672         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
17673         dl_signal_cerror.
17674
17675 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
17676
17677         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
17678         _PC_PIPE_BUF using F_GETPIPE_SZ.
17679
17680 2010-07-05  Roland McGrath  <roland@redhat.com>
17681
17682         * manual/arith.texi (Rounding Functions): Fix rint description
17683         implicit in round description.
17684
17685 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
17686
17687         * elf/Makefile: Fix linking for a few tests to make recent linker
17688         happy.
17689
17690 2010-06-30  Andreas Schwab  <schwab@redhat.com>
17691
17692         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17693         $(common-objpfx)libc_nonshared.a.
17694
17695 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
17696
17697         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
17698         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
17699         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
17700         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
17701         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
17702         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
17703         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
17704         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
17705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
17706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
17707         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
17708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
17709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
17710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
17711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
17712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
17713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
17714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
17715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
17716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
17717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
17718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
17719         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
17720         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
17721         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
17722         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
17723         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
17724         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
17725         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
17726         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
17727         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
17728         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
17729         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
17730         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
17731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
17732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
17733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
17734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
17735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
17736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
17737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
17738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
17739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
17740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
17741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
17742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
17743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
17744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
17745
17746 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
17747
17748         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
17749         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
17750         * string/memmove.c (memmove): Renamed to ...
17751         (MEMMOVE): ...this.  Default to memmove.
17752         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
17753         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
17754         (END_CHK): Define.
17755         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17756         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
17757         mempcpy-ssse3-back memmove-ssse3-back.
17758         * sysdeps/x86_64/multiarch/bcopy.S: New file .
17759         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
17760         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
17761         * sysdeps/x86_64/multiarch/memcpy.S: New file.
17762         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
17763         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
17764         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
17765         * sysdeps/x86_64/multiarch/memmove.c: New file.
17766         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
17767         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
17768         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
17769         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
17770         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
17771         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
17772         Define.
17773         (index_Fast_Copy_Backward): Define.
17774         (HAS_ARCH_FEATURE): Define.
17775         (HAS_FAST_REP_STRING): Define.
17776         (HAS_FAST_COPY_BACKWARD): Define.
17777
17778 2010-06-21  Andreas Schwab  <schwab@redhat.com>
17779
17780         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17781         Restore proper fallback handling.
17782
17783 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
17784
17785         [BZ #11701]
17786         * posix/group_member.c (__group_member): Correct checking loop.
17787
17788         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
17789         OOM in getpwuid_r correctly.  Return error number when the caller
17790         should return, otherwise -1.
17791         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
17792         call returning > 0 value.
17793         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
17794
17795 2010-06-07  Andreas Schwab  <schwab@redhat.com>
17796
17797         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
17798         libc_nonshared.a from targets in modules-names.
17799
17800 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
17801
17802         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
17803         requires it.
17804
17805 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
17806
17807         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
17808         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
17809         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
17810         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
17811
17812 2010-06-02  Andreas Schwab  <schwab@redhat.com>
17813
17814         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
17815
17816 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
17817
17818         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
17819         and F_GETPIPE_SZ.
17820         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17821         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17822         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17823         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17824         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17825         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
17826
17827 2010-06-14  Roland McGrath  <roland@redhat.com>
17828
17829         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
17830
17831 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
17832
17833         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
17834         __REDIRECT followed by __THROW.
17835         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
17836         * posix/getopt.h (getopt): Likewise.
17837
17838 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
17839
17840         * hurd/lookup-at.c (__file_name_lookup_at): Accept
17841         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
17842         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
17843         in AT_FLAGS.
17844         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
17845         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
17846
17847 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
17848
17849         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
17850
17851 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
17852
17853         [BZ #11640]
17854         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17855         Properly check family and model.
17856
17857 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
17858
17859         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
17860
17861 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
17862
17863         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
17864
17865 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
17866
17867         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
17868         symbol reference.
17869
17870 2010-05-19  Andreas Schwab  <schwab@redhat.com>
17871
17872         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
17873         symbol reference.
17874
17875 2010-05-21  Andreas Schwab  <schwab@redhat.com>
17876
17877         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
17878         and internal_recvmmsg.
17879         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
17880         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
17881         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
17882         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
17883
17884         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
17885         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
17886         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
17887
17888 2010-05-20  Andreas Schwab  <schwab@redhat.com>
17889
17890         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
17891
17892 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
17893
17894         POWER7 optimizations.
17895         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
17896         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
17897
17898 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
17899
17900         * version.h: Update for 2.13 development version.
17901
17902 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
17903
17904         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
17905         exceptions.  Return 0.
17906
17907 2010-05-07  Roland McGrath  <roland@redhat.com>
17908
17909         * elf/ldconfig.c (main): Add a const.
17910
17911 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
17912
17913         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
17914         (args_options): Add no-idn option.
17915         (ahosts_keys_int): Add idn_flags to ai_flags.
17916         (parse_option): Handle 'i' option to clear idn_flags.
17917
17918         * malloc/malloc.c (_int_free): Possible race in the most recently
17919         added check.  Only act on the data if no current modification
17920         happened.
17921
17922 See ChangeLog.17 for earlier changes.