Update bsd4.4/bits/fcntl.h to match modern NetBSD bits.
[platform/upstream/glibc.git] / ChangeLog
1 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2
3         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4         not 0.
5         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
6         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
7         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
8         (struct flock): Move l_start, l_len to the beginning.
9         Use __pid_t for l_pid.
10         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
11         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
12         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
13         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
14         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
15         [__USE_LARGEFILE64] (struct flock64): New type.
16         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
17
18         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
19         * bits/dirent.h: ... here.
20
21         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
22         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
23
24 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
25
26         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
27         Change from 2.6.0 to 2.6.16.
28         * sysdeps/unix/sysv/linux/configure: Regenerated.
29         * sysdeps/unix/sysv/linux/kernel-features.h
30         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
31         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
32         version.
33         (__ASSUME_UTIMES): Likewise.
34         (__ASSUME_CLONE_STOPPED): Remove.
35         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
36         architectures, not kernel version.
37         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
38         (__ASSUME_NO_CLONE_DETACHED): Likewise.
39         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
40         (__ASSUME_WAITID_SYSCALL): Likewise.
41         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
42         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
43         * README: State 2.6.16 as minimum Linux kernel version.  Do not
44         refer to older versions.
45
46 2012-08-06  Roland McGrath  <roland@hack.frob.com>
47
48         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
49         Define alphasort64 as an alias.
50         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
51         Define versionsort64 as an alias.
52         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
53         Define scandir64 as an alias.
54         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
55         Define scandirat64 as an alias.
56         * dirent/alphasort64.c (alphasort64):
57         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
58         * dirent/versionsort64.c: Likewise.
59         * dirent/scandir64.c: Likewise.
60         * dirent/scandirat64.c: Likewise.
61         * sysdeps/wordsize-64/alphasort.c: File removed.
62         * sysdeps/wordsize-64/alphasort64.c: File removed.
63         * sysdeps/wordsize-64/scandir.c: File removed.
64         * sysdeps/wordsize-64/scandir64.c: File removed.
65         * sysdeps/wordsize-64/scandirat.c: File removed.
66         * sysdeps/wordsize-64/scandirat64.c: File removed.
67         * sysdeps/wordsize-64/versionsort.c: File removed.
68         * sysdeps/wordsize-64/versionsort64.c: File removed.
69         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
70         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
71         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
72         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
73         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
74         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
75         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
76         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
77
78         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
79         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
80         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
81         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
82         [defined __arch64__ || defined __sparcv9]
83         (__INO_T_MATCHES_INO64_T): New macro.
84         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
85         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
86         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
87         * sysdeps/unix/sysv/linux/bits/dirent.h
88         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
89         (_DIRENT_MATCHES_DIRENT64): New macro.
90
91         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
92         Define lockf64 as an alias.
93         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
94         Define fseeko64 as an alias.
95         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
96         Define ftello64 as an alias.
97         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
98         Define _IO_fgetpos64 and fgetpos64 as aliases.
99         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
100         Define _IO_fsetpos64 and fsetpos64 as aliases.
101         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
102         Conditionalize body on this.
103         * libio/fseeko64.c: Likewise.
104         * libio/ftello64.c: Likewise.
105         * libio/iofgetpos64.c: Likewise.
106         * libio/iofsetpos64.c: Likewise.
107         * sysdeps/wordsize-64/lockf.c: File removed.
108         * sysdeps/wordsize-64/lockf64.c: File removed.
109         * sysdeps/wordsize-64/fseeko.c: File removed.
110         * sysdeps/wordsize-64/fseeko64.c: File removed.
111         * sysdeps/wordsize-64/ftello.c: File removed.
112         * sysdeps/wordsize-64/ftello64.c: File removed.
113         * sysdeps/wordsize-64/iofgetpos.c: File removed.
114         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
115         * sysdeps/wordsize-64/iofsetpos.c: File removed.
116         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
117         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
118         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
119         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
120         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
121         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
122         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
123         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
124         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
125         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
126         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
127
128         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
129         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
130         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
131         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
132         [defined __arch64__ || defined __sparcv9]
133         (__OFF_T_MATCHES_OFF64_T): New macro.
134         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
135         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
136         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
137         (__OFF_T_MATCHES_OFF64_T): New macro.
138
139 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
140
141         * stdlib/secure-getenv.c (__secure_getenv): Replace
142         GLIBC_2_16 with GLIBC_2_17.
143
144 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
145
146         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
147         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
148
149 2012-08-03  David S. Miller  <davem@davemloft.net>
150
151         * sysdeps/sparc/fpu/libm-test-ulps: Update.
152
153 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
154
155         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
156         Remove.
157         (__ASSUME_CORRECT_SI_PID): Likewise.
158         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
159         (__ASSUME_TMPFS_NAME): Likewise.
160         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
161         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
162         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
163         (HAVE_AUX_SECURE): Make definition unconditional.
164         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
165         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
166
167 2012-08-03  Roland McGrath  <roland@hack.frob.com>
168
169         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
170         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
171         * sysdeps/mach/hurd/eloop-threshold.h: New file.
172         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
173         __eloop_threshold instead of SYMLOOP_MAX.
174
175         * sysdeps/generic/eloop-threshold.h: New file.
176         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
177         of MAXSYMLINKS.
178         * elf/chroot_canon.c (chroot_canon): Likewise.
179
180 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
181
182         [BZ #13717]
183         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
184         Change to 2.6.0 everywhere.
185         * sysdeps/unix/sysv/linux/configure: Regenerated.
186         * sysdeps/unix/sysv/linux/kernel-features.h
187         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
188         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
189         kernel versions.
190         (__ASSUME_POSIX_TIMERS): Define unconditionally.
191         (__ASSUME_FUTEX_REQUEUE): Remove.
192         (__ASSUME_STATFS64): Define unconditionally.
193         (__ASSUME_AT_SECURE): Likewise.
194         (__ASSUME_CORRECT_SI_PID): Likewise.
195         (__ASSUME_TGKILL): Define without depending on kernel version for
196         i386.
197         (__ASSUME_UTIMES): Likewise.
198         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
199         kernel version.
200         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
201         (__ASSUME_TMPFS_NAME): Likewise.
202         * README: Update reference to Linux kernel versions.
203
204 2012-08-02  Marek Polacek  <polacek@redhat.com>
205
206         [BZ#14150]
207         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
208         libc_cv_asm_type_prefix with %.
209         * configure: Regenerated.
210         * include/libc-symbols.h: Remove comment about
211         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
212         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
213         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
214         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
215         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
216         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
217         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
218         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
219         * elf/tst-unique2mod1.c: Likewise.
220         * elf/tst-unique1mod2.c: Likewise.
221         * elf/tst-unique1mod1.c: Likewise.
222         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
223         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
224         Replace ASM_TYPE_DIRECTIVE with .type.
225         * sysdeps/s390/s390-64/sysdep.h: Likewise.
226         * sysdeps/i386/sysdep.h: Likewise.
227         * sysdeps/x86_64/sysdep.h: Likewise.
228         * sysdeps/sh/sysdep.h: Likewise.
229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
230         Do not define ASM_TYPE_DIRECTIVE.
231         * sysdeps/powerpc/sysdep.h: Likewise.
232         * sysdeps/powerpc/powerpc32/sysdep.h:
233         Replace ASM_TYPE_DIRECTIVE with .type.
234         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
235         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
236         * sysdeps/i386/fpu/e_powf.S: Likewise.
237         * sysdeps/i386/fpu/e_expl.S: Likewise.
238         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
239         * sysdeps/i386/fpu/e_acosh.S: Likewise.
240         * sysdeps/i386/fpu/e_pow.S: Likewise.
241         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
242         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
243         * sysdeps/i386/fpu/s_expm1.S: Likewise.
244         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
245         * sysdeps/i386/fpu/e_log2.S: Likewise.
246         * sysdeps/i386/fpu/e_log2l.S: Likewise.
247         * sysdeps/i386/fpu/e_scalb.S: Likewise.
248         * sysdeps/i386/fpu/e_powl.S: Likewise.
249         * sysdeps/i386/fpu/e_log10f.S: Likewise.
250         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
251         * sysdeps/i386/fpu/e_logl.S: Likewise.
252         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
253         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
254         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
255         * sysdeps/i386/fpu/e_log2f.S: Likewise.
256         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
257         * sysdeps/i386/fpu/e_log.S: Likewise.
258         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
259         * sysdeps/i386/fpu/e_logf.S: Likewise.
260         * sysdeps/i386/fpu/e_log10l.S: Likewise.
261         * sysdeps/i386/fpu/e_atanh.S: Likewise.
262         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
263         * sysdeps/i386/fpu/e_log10.S: Likewise.
264         * sysdeps/i386/fpu/s_frexp.S: Likewise.
265         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
266         * sysdeps/i386/fpu/s_asinh.S: Likewise.
267         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
268         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
269         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
270         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
271         * sysdeps/i386/i686/strtok.S: Likewise.
272         * sysdeps/i386/i386-mcount.S: Likewise.
273         * sysdeps/i386/strtok.S: Likewise.
274         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
275         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
276         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
277         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
278         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
279         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
280         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
281         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
282         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
283         * sysdeps/x86_64/_mcount.S: Likewise.
284         * sysdeps/x86_64/strtok.S: Likewise.
285         * sysdeps/sh/_mcount.S: Likewise.
286
287 2012-08-01  Roland McGrath  <roland@hack.frob.com>
288
289         * libio/iofopen.c: Include <fcntl.h>.
290         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
291         (_IO_fopen64, fopen64): Define as aliases.
292         * libio/iofopen64.c: Include <fcntl.h>.
293         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
294         Conditionalize body on this.
295         * sysdeps/wordsize-64/iofopen.c: File removed.
296         * sysdeps/wordsize-64/iofopen64.c: File removed.
297
298 2012-08-01  Marek Polacek  <polacek@redhat.com>
299
300         * libc/Makeconfig: Use elf in place of binfmt-subdir.
301         Use dlfcn directly instead of a variable.
302         (binfmt-subdir): Do not define.
303         (dlfcn): Likewise.
304
305 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
306
307         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
308         Remove all definitions.
309         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
310         <kernel-features.h>.
311         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
312         (miss_F_GETOWN_EX): Remove all definitions.
313         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
314         macro definition.
315         [!__ASSUME_FCNTL64]: Remove conditional code.
316         [__ASSUME_FCNTL64]: Make code unconditional.
317         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
318         <kernel-features.h>.
319         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
320         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
321         (lockf64) [__NR_fcntl64]: Make code unconditional.
322         (lockf64) [__ASSUME_FCNTL64]: Likewise.
323
324         * sysdeps/unix/sysv/linux/kernel-features.h
325         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
326         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
327         Make code unconditional.
328         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
329         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
331         [__NR_vfork]: Make code unconditional.
332         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
333         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
335         [__NR_vfork]: Make code unconditional.
336         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
337         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
338
339 2012-08-01  Roland McGrath  <roland@hack.frob.com>
340
341         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
342         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
343
344         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
345         Define mkstemp64 as an alias.
346         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
347         Define mkstemps64 as an alias.
348         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
349         Define mkostemp64 as an alias.
350         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
351         Define mkostemps64 as an alias.
352         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
353         Conditionalize body on this.
354         * misc/mkostemp64.c: Likewise.
355         * misc/mkostemps64.c: Likewise.
356         * misc/mkstemps64.c: Likewise.
357         * sysdeps/wordsize-64/mkstemp64.c: File removed.
358         * sysdeps/wordsize-64/mkostemp64.c: File removed.
359         * sysdeps/wordsize-64/mkostemp.c: File removed.
360         * sysdeps/wordsize-64/mkstemp.c: File removed.
361         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
362         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
363         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
364         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
365
366         [BZ #14138]
367         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
368         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
369         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
370         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
371
372         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
373         compat_symbol macros from <shlib-compat.h> rather than the underlying
374         default_symbol_version and symbol_version macros, so that DEFAULT
375         lines in shlib-versions are respected.
376         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
377
378 2012-08-01  Florian Weimer  <fweimer@redhat.com>
379
380         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
381         Declare with warn_unused_result.
382         (setgid, setregid, setegid, setresgid): Likewise.
383         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
384         Likewise.
385         * WUR-REPORT: Remove set*id functions.
386
387 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
388
389         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
390
391 2012-07-31  Roland McGrath  <roland@hack.frob.com>
392
393         * include/sys/socket.h (__libc_accept, __libc_accept4):
394         Add attribute_hidden.
395         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
396
397         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
398         use of PTR_MANGLE.
399         * inet/getnetgrent_r.c (setup): Likewise.
400
401         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
402
403 2012-07-31  David S. Miller  <davem@davemloft.net>
404
405         * sysdeps/sparc/fpu/libm-test-ulps: Update.
406
407 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
408
409         [BZ #13629]
410         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
411         value between 1.0 and 2.0 and smaller part has absolute value less
412         than 1.0.
413         * math/s_clog10.c (__clog10): Likewise.
414         * math/s_clog10f.c (__clog10f): Likewise.
415         * math/s_clog10l.c (__clog10l): Likewise.
416         * math/s_clogf.c (__clogf): Likewise.
417         * math/s_clogl.c (__clogl): Likewise.
418         * math/libm-test.inc (clog_test): Add more tests.
419         (clog10_test): Likewise.
420         * sysdeps/i386/fpu/libm-test-ulps: Update.
421         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
422
423 2012-07-31  Florian Weimer  <fweimer@redhat.com>
424
425         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
426         Exit with zero in case no suitable GID is found, and write a
427         message to standard error.
428
429 2012-07-30  Roland McGrath  <roland@hack.frob.com>
430
431         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
432         rather than to 1.
433         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
434         (MAXPATHLEN): Removed.
435         (NOGROUP, NODEV): New macros.
436         (setbit, clrbit, isset, isclr): New macros.
437         (howmany, roundup, powerof2): New macros.
438         (DEV_BSIZE): New macro.
439
440         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
441         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
442
443         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
444         definition on [!__NO_LONG_DOUBLE_MATH].
445
446         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
447         PTR_MANGLE and PTR_DEMANGLE.
448
449         * socket/accept4.c (accept4): Rename to __libc_accept4.
450         Define accept4 as a weak alias.
451
452         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
453         on [_DIRENT_HAVE_D_TYPE].
454         * io/ftw.c (ftw_dir): Likewise.
455
456         * io/xmknod.c (__xmknod): Don't check PATH for being null.
457
458         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
459
460         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
461         Use the BSD numbers rather than the arbitrary ones we had.
462         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
463         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
464         (SIGXCPU, SIGXFSZ): New macros.
465         (_NSIG): Now 32.
466
467         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
468         initializer on [_LIBC_REENTRANT].
469
470         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
471         definitions inside [_POSIX_MAPPED_FILES].
472
473         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
474
475         * dirent/opendir.c: Include <fcntl.h>.
476
477         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
478         (__libc_getspecific): Likewise.
479         (__libc_key_create): Likewise.
480
481         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
482         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
483         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
484         (tmpfile64): Define as alias.
485         * sysdeps/wordsize-64/tmpfile.c: File removed.
486         * sysdeps/wordsize-64/tmpfile64.c: File removed.
487         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
488         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
489
490         * stdio-common/vfscanf.c: Include <stdbool.h>.
491         * nss/makedb.c: Likewise.
492         * stdio-common/_i18n_number.h: Likewise.
493         * argp/argp-help.c: Likewise.
494         * posix/wordexp.c: Likewise.
495         * sysdeps/posix/spawni.c: Likewise.
496         * nss/nss_files/files-initgroups.c: Likewise.
497         * stdio-common/reg-modifier.c: Include <stdlib.h>.
498         * nss/nss_files/files-initgroups.c: Likewise.
499         * nss/nss_db/db-netgrp.c: Likewise.
500         * nss/nss_db/db-initgroups.c: Likewise.
501         * io/fchmodat.c: Include <sys/stat.h>.
502
503         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
504         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
505
506         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
507         [HAVE_MMAP].
508
509         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
510         Add multiple inclusion protection.
511
512 2012-07-27  David S. Miller  <davem@davemloft.net>
513
514         * sysdeps/sparc/fpu/libm-test-ulps: Update.
515
516 2012-07-27  Gary Benson  <gbenson@redhat.com>
517
518         [BZ #14298]
519         * elf/rtld.c: Include <stap-probe.h>.
520         (dl_main): Added static probes "init_start" and "init_complete".
521         * elf/dl-load.c: Include <stap-probe.h>.
522         (lose): Take new parameter "nsid".
523         Added static probe "map_failed".
524         (_dl_map_object_from_fd): Pass namespace id to lose.
525         Added static probe "map_start".
526         (open_verify): Pass namespace id to lose.
527         * elf/dl-open.c: Include <stap-probe.h>.
528         (dl_open_worker) Added static probes "map_complete", "reloc_start"
529         and "reloc_complete".
530         * elf/dl-close.c: Include <stap-probe.h>.
531         (_dl_close_worker): Added static probes "unmap_start" and
532         "unmap_complete".
533         * elf/rtld-debugger-interface.txt: New file documenting the above.
534
535 2012-07-26  Roland McGrath  <roland@hack.frob.com>
536
537         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
538         rather than a string variable.
539         * sunrpc/rpc_main.c (h_output): Likewise.
540         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
541
542 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
543
544         * inet/check_native.c: New file.
545
546 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
547
548         [BZ #13629]
549         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
550         if larger part has absolute value 1.0.
551         * math/s_clog10.c (__clog10): Likewise.
552         * math/s_clog10f.c (__clog10f): Likewise.
553         * math/s_clog10l.c (__clog10l): Likewise.
554         * math/s_clogf.c (__clogf): Likewise.
555         * math/s_clogl.c (__clogl): Likewise.
556         * math/libm-test.inc (clog_test): Add more tests.
557         (clog10_test): Likewise.
558         * sysdeps/i386/fpu/libm-test-ulps: Update.
559         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
560
561         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
562         (pltexit): Likewise.
563         (La_regs): Likewise.
564         (La_retval): Likewise.
565         (int_retval): Likewise.
566         Update #error for removed macros to refer only to definitions in
567         tst-audit.h.
568         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
569         macro.
570         (pltexit): Likewise.
571         (La_regs): Likewise.
572         (La_retval): Likewise.
573         (int_retval): Likewise.
574         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
575         macro.
576         (pltexit): Likewise.
577         (La_regs): Likewise.
578         (La_retval): Likewise.
579         (int_retval): Likewise.
580         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
581         macro.
582         (pltexit): Likewise.
583         (La_regs): Likewise.
584         (La_retval): Likewise.
585         (int_retval): Likewise.
586         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
587         macro.
588         (pltexit): Likewise.
589         (La_regs): Likewise.
590         (La_retval): Likewise.
591         (int_retval): Likewise.
592         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
593         macro.
594         (pltexit): Likewise.
595         (La_regs): Likewise.
596         (La_retval): Likewise.
597         (int_retval): Likewise.
598         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
599         macro.
600         (pltexit): Likewise.
601         (La_regs): Likewise.
602         (La_retval): Likewise.
603         (int_retval): Likewise.
604         * sysdeps/generic/tst-audit.h: Update comment to refer only to
605         macro definitions in tst-audit.h.
606         * sysdeps/i386/tst-audit.h: New file.
607         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
608         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
609         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
610         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
611         * sysdeps/sh/tst-audit.h: Likewise.
612         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
613         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
614         * sysdeps/x86_64/tst-audit.h: Likewise.
615
616 2012-07-26  Andreas Jaeger  <aj@suse.de>
617
618         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
619         ptrace.
620
621         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
622         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
623         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
624         PTRACE_O_MASK.
625         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
626         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
627         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
628
629         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
630         value.
631
632         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
633         _sigsys.
634         (si_call_addr, si_syscall, si_arch): Define new macro.
635         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
636         _sigsys.
637         (si_call_addr, si_syscall, si_arch): Define new marcro.
638         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
639         _sigsys.
640         (si_call_addr, si_syscall, si_arch): Define new macro.
641         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
642         _sigsys.
643         (si_call_addr, si_syscall, si_arch): Define new macro.
644
645 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
646
647         [BZ #13717]
648         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
649         Change to 2.4.21 where previously 2.4.1.
650         * sysdeps/unix/sysv/linux/configure: Regenerated.
651         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
652         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
653         Linux kernel version.
654         (__ASSUME_STD_AUXV): Remove.
655         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
656         kernel version.
657         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
658         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
659         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
660         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
661         (__ASSUME_NETLINK_SUPPORT): Likewise.
662         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
663         (__no_netlink_support): Remove conditional definition.
664         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
665         Remove.
666         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
667         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
668         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
669         (if_nameindex_ioctl): Remove.
670         (if_nameindex_netlink): Do not handle __no_netlink_support.
671         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
672         code.
673         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
674         Remove conditional code.
675         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
676         code.
677         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
678         unconditional.
679         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
680         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
681         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
682         Remove.
683         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
684         [!__ASSUME_STD_AUXV]: Remove conditional code.
685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
686         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
687         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
689         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
690         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
691         code.
692         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
694         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
695         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
696         conditional code.
697         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
699         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
700         code.
701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
702         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
703         conditional code.
704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
705         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
706         code unconditional.
707         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
708         conditional code.
709         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
710         unconditional.
711         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
712         conditional code.
713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
714         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
715         unconditional.
716         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
717         conditional code.
718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
719         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
720         code unconditional.
721         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
722         conditional code.
723         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
724         unconditional.
725         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
726         conditional code.
727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
728         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
729         code unconditional.
730         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
731         conditional code.
732         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
733         unconditional.
734         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
735         conditional code.
736
737 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
738
739         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
740         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
741         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
742         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
743         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
744         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
745         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
746         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
747         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
748         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
749         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
750         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
751         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
752         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
753         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
754         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
755         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
756         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
757         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
758         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
759         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
760         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
761         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
762
763 2012-07-25  Florian Weimer  <fweimer@redhat.com>
764
765         * Versions.def: Add GLIBC_2.17.
766         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
767         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
768         Introduce __libc_secure_getenv.
769         * stdlib/Versions (2.17): Add secure_getenv
770         (GLIBC_PRIVATE): Add __libc_secure_getenv.
771         * stdlib/secure-getenv.c: Rename __secure_getenv to
772         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
773         symbol __secure_getenv for GLIBC_2.0.
774         * stdlib/tst-secure-getenv.c: New.
775         * stdlib/Makefile (tests): Add testcase.
776         * manual/startup.texi (Environment Access): Document
777         secure_getenv.
778         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
779         __libc_secure_getenv.
780         * inet/ruserpass.c (ruserpass): Likewise.
781         * malloc/mtrace.c (mtrace): Likewise.
782         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
783         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
784         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
785         * sysdeps/posix/tempname.c: Likewise.  Evaluate
786         HAVE_SECURE_GETENV.
787         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
788         __secure_getenv to __libc_secure_getenv.
789         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
791         Likewise.
792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
793         Likewise.
794         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
795         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
796         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
797         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
798         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
799         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
800         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
801
802 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
803
804         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
805         (struct La_i86_retval): Likewise.
806         (struct La_x86_64_regs): Likewise.
807         (struct La_x86_64_retval): Likewise.
808         (struct La_x32_regs): Likewise.
809         (struct La_x32_retval): Likewise.
810         (struct La_ppc32_regs): Likewise.
811         (struct La_ppc32_retval): Likewise.
812         (struct La_ppc64_regs): Likewise.
813         (struct La_ppc64_retval): Likewise.
814         (struct La_sh_regs): Likewise.
815         (struct La_sh_retval): Likewise.
816         (struct La_s390_32_regs): Likewise.
817         (struct La_s390_32_retval): Likewise.
818         (struct La_s390_64_regs): Likewise.
819         (struct La_s390_64_retval): Likewise.
820         (struct La_sparc32_regs): Likewise.
821         (struct La_sparc32_retval): Likewise.
822         (struct La_sparc64_regs): Likewise.
823         (struct La_sparc64_retval): Likewise.
824         (struct audit_ifaces): Remove architecture-specific pltenter and
825         pltexit members.
826         * sysdeps/i386/ldsodefs.h: New file.
827         * sysdeps/powerpc/ldsodefs.h: Likewise.
828         * sysdeps/s390/ldsodefs.h: Likewise.
829         * sysdeps/sh/ldsodefs.h: Likewise.
830         * sysdeps/sparc/ldsodefs.h: Likewise.
831         * sysdeps/x86_64/ldsodefs.h: Likewise.
832
833 2012-07-25  Marek Polacek  <polacek@redhat.com>
834
835         [BZ #6808]
836         * math/libm-test.inc (yn_test): Add another test.
837         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
838         to ERANGE when the result is +-Inf.
839         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
840         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
841         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
842         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
843
844 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
845
846         * conform/data/time.h-data (NULL): Use macro-constant.  Require
847         equal to 0.
848         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
849         clock_t.
850         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
851
852 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
853
854         * configure.in <sysdeps resolving>: Correct printing
855         Implies_before.
856         * configure: Regenerate.
857
858 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
859
860         * math/w_ilogb.c: Include <limits.h>.
861         * math/w_ilogbl.c: Likewise.
862
863 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
864
865         * manual/lang.texi (__va_copy): Document primarily as ISO C99
866         va_copy.  Document allowing for unavailable va_copy only as
867         pre-C99 compatibility.
868         * manual/string.texi (Copying and Concatenation): Use va_copy
869         instead of __va_copy in concat example.
870
871 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
872
873         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
874         (__sendto): Use create_address_port.  Initialize APORT and deallocate
875         it if not null.
876
877         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
878         with O_NOLINK passed to __file_name_lookup.
879
880         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
881         with O_NOLINK passed to __file_name_lookup.
882
883         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
884         negative N or less than NGIDS.
885
886         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
887         type to string_t.  Set ERANGE as errno and return it if NAME is not big
888         enough.  Use memcpy instead of strncpy.
889
890 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
891
892         * elf/Makefile (check-data): Remove.
893         (localplt.data): New vpath directive.
894         ($(objpfx)check-localplt.out): Use localplt.data from vpath
895         instead of $(check-data).
896         * scripts/data/localplt-generic.data: Move to ...
897         * sysdeps/generic/localplt.data: ... here.
898         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
899         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
900         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
902         ... here.
903         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
905         ... here.
906         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
907         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
908         ... here.
909         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
910         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
911         ... here.
912         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
913         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
914         ... here.
915         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
916         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
917         ... here.
918
919 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
920
921         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
922         PPC32 and PPC64 files.
923         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
924         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
925
926 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
927
928         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
929         __makecontext_ret to ...
930         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
931         ... here and call exit if uc_link is NULL.  New file.
932         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
933         __makecontext_ret.S.
934         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
935         __makecontext_ret to ...
936         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
937         ... here and call exit if uc_link is NULL.  New file.
938         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
939         __makecontext_ret.S.
940
941 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
942
943         * elf/elf.h (R_390_IRELATIVE): New definition.
944         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
945         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
946         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
947         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
948         (elf_machine_lazy_rel): Likewise.
949         * sysdeps/s390/dl-irel.h: New file.
950         * sysdeps/s390/s390-64/memcpy.S: New asm code.
951         * sysdeps/s390/s390-64/memset.S: New asm code.
952         * sysdeps/s390/s390-64/memcmp.S: New asm code.
953         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
954         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
955         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
956         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
957         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
958         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
959         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
960         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
961         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
962         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
963         * sysdeps/s390/s390-32/memcpy.S: New asm code.
964         * sysdeps/s390/s390-32/memset.S: New asm code.
965         * sysdeps/s390/s390-32/memcmp.S: New asm code.
966
967 2012-07-17  Marek Polacek  <polacek@redhat.com>
968
969         [BZ #14349]
970         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
971         * sysdeps/s390/s390-64/configure.in: Likewise.
972         * sysdeps/sparc/configure.in: Likewise.
973         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
974         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
975         * sysdeps/i386/configure.in: Likewise.
976         * sysdeps/x86_64/configure.in: Likewise.
977         * sysdeps/sh/configure.in: Likewise.
978         * sysdeps/s390/s390-32/configure: Regenerated.
979         * sysdeps/s390/s390-64/configure: Likewise.
980         * sysdeps/x86_64/configure: Likewise.
981         * sysdeps/sh/configure: Likewise.
982         * sysdeps/powerpc/powerpc64/configure: Likewise.
983         * sysdeps/powerpc/powerpc32/configure: Likewise.
984         * sysdeps/sparc/configure: Likwise.
985         * sysdeps/i386/configure: Likewise.
986
987         * elf/dl-open.c: Comment fixes.
988
989 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
990
991         * Makefile [CXX] (check-data): Remove.
992         [CXX] (c++-types.data): New vpath directive.
993         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
994         vpath.  Do not allow for C++ type data being missing.
995         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
996         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
997         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
998         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
999         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
1000         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
1001         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
1002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
1003         ... here.
1004         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
1005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
1006         ... here.
1007         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
1008         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
1009         ... here.
1010         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
1011         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
1012         ... here.
1013         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
1014         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
1015         ... here.
1016         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
1017         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
1018         ... here.
1019         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
1020         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
1021         ... here.
1022         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
1023         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
1024
1025         * elf/tls-macros.h (TLS_LE): Move architecture-specific
1026         definitions to architecture-specific files.
1027         (TLS_IE): Likewise.
1028         (TLS_LD): Likewise.
1029         (TLS_GD): Likewise.
1030         * sysdeps/i386/tls-macros.h: New file.
1031         * sysdeps/powerpc/tls-macros.h: Likewise.
1032         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
1033         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
1034         * sysdeps/sh/tls-macros.h: Likewise.
1035         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
1036         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
1037         * sysdeps/x86_64/tls-macros.h: Likewise.
1038
1039 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
1040
1041         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
1042         zero value for regular exit case.
1043
1044         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
1045         (__start_context): Preserve zero value for regular exit case.
1046
1047 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
1048             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1049
1050         * manual/setjmp.texi (setcontext): Clarify normal process
1051         termination when uc_link is the null pointer.
1052         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
1053         exit call.
1054
1055 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
1056
1057         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
1058         preprocessor.  Test for each exception mask separately.
1059
1060 2012-07-16  Andreas Jaeger  <aj@suse.de>
1061
1062         * po/ru.po: Update from translation team.
1063
1064 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
1065
1066         * conform/data/string.h-data (NULL): Use macro-constant.  Require
1067         equal to 0.
1068         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
1069         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
1070         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
1071         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
1072         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1073
1074 2012-07-13  Andreas Jaeger  <aj@suse.de>
1075
1076         * po/fr.po: Update from translation team.
1077
1078 2012-07-12  Marek Polacek  <polacek@redhat.com>
1079
1080         [BZ #14173]
1081         * math/libm-test.inc (yn_test): Add test for BZ #14173.
1082         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
1083         loop condition.
1084
1085 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
1086
1087         [BZ #13717]
1088         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1089         Change to 2.4.1 where previously 2.4.0.
1090         * sysdeps/unix/sysv/linux/configure: Regenerated.
1091         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
1092         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
1093         version.
1094         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
1095         (__ASSUME_AT_CLKTCK): Remove.
1096         (__ASSUME_AT_PAGESIZE): Likewise.
1097         (__ASSUME_AT_XID): Likewise.
1098         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
1099         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
1100         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
1101         unconditionally.
1102         (HAVE_AUX_PAGESIZE): Likewise.
1103         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
1104         [__ASSUME_AT_CLKTCK]: Make code unconditional.
1105         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
1106
1107 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
1108
1109         [BZ #14307]
1110         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
1111         the temporary buffer used to invoke __gethostbyname2_r,
1112         __gethostbyaddr_r and gethostbyname4_r to make room for struct
1113         host_data / struct gaih_addrtuple.
1114         * resolv/nss_dns/dns-host.c (global scope): Move definition of
1115         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
1116         header file nss/nsswitch.h.
1117         * nss/nsswitch.h (global scope): Add definition of implementation
1118         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
1119         resolv/nss_dns/dns-host.c).
1120
1121 2012-07-11  Andreas Jaeger  <aj@suse.de>
1122
1123         * po/fr.po: Update from translation team.
1124
1125         * po/sv.po: Update from translation team
1126         * po/fr.po: Another update from translation team.
1127
1128 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1129
1130         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
1131         for subnormals or multiply small sinh result by itself.
1132         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
1133         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1134
1135 2012-07-11  David S. Miller  <davem@davemloft.net>
1136
1137         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1138
1139 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
1140
1141         [BZ #14347]
1142         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
1143         (INTERNAL_MARK): Shift it here.
1144
1145 2012-07-10  Marek Polacek  <polacek@redhat.com>
1146
1147         [BZ #14151]
1148         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
1149         libc_cv_asm_global_directive with .globl.
1150         * configure: Regenerated.
1151         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
1152         with .globl.
1153         * sysdeps/i386/configure: Regenerated.
1154         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
1155         with .globl.
1156         * sysdeps/x86_64/configure: Regenerated.
1157         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
1158         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
1159         * elf/tst-unique2mod2.c: Likewise.
1160         * elf/tst-unique2mod1.c: Likewise.
1161         * elf/tst-unique1mod2.c: Likewise.
1162         * elf/tst-unique1mod1.c: Likewise.
1163         * sysdeps/s390/s390-32/sysdep.h: Likewise.
1164         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1165         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1166         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1167         * sysdeps/mach/sysdep.h: Likewise.
1168         * sysdeps/i386/sysdep.h: Likewise.
1169         * sysdeps/i386/i386-mcount.S: Likewise.
1170         * sysdeps/x86_64/_mcount.S: Likewise.
1171         * sysdeps/x86_64/sysdep.h: Likewise.
1172         * sysdeps/sh/_mcount.S: Likewise.
1173         * sysdeps/sh/sysdep.h: Likewise.
1174         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
1175         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
1176         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
1177         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1178         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
1179         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
1180         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
1181         * locale/localeinfo.h: Likewise.
1182         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
1183         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
1184
1185 2012-07-09  Roland McGrath  <roland@hack.frob.com>
1186
1187         [BZ #14336]
1188         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
1189         system".
1190         * manual/message.texi (The Uniforum approach): Likewise.
1191         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
1192         (glibc iconv Implementation): Likewise.
1193
1194 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
1195
1196         [BZ #14337]
1197         * math/s_clog.c (__clog): Avoid scaling a value down where that
1198         could result in underflow.
1199         * math/s_clog10.c (__clog10): Likewise.
1200         * math/s_clog10f.c (__clog10f): Likewise.
1201         * math/s_clog10l.c (__clog10l): Likewise.
1202         * math/s_clogf.c (__clogf): Likewise.
1203         * math/s_clogl.c (__clogl): Likewise.
1204         * math/libm-test.inc (clog_test): Add more tests.
1205         (clog10_test): Likewise.
1206         * sysdeps/i386/fpu/libm-test-ulps: Update.
1207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1208
1209 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
1210
1211         [BZ #14283]
1212         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
1213         by 7 not 8 to examine high bit of fractional part.
1214
1215         [BZ #14042]
1216         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
1217         for call to __mcount_internal.
1218         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
1219         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
1220         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
1221
1222 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
1223
1224         [BZ #14154]
1225         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
1226         approximation for values within 0x1p-13f of an odd multiple of
1227         pi/4.
1228         * math/libm-test.inc (tan_test): Do not allow spurious underflow
1229         exception.  Add more tests.
1230         * sysdeps/i386/fpu/libm-test-ulps: Update.
1231
1232         [BZ #6778]
1233         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
1234         inputs and return -1 for them.  Do not check for +Inf in case not
1235         reachable for +Inf.
1236         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
1237         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
1238         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1239         and return -1 for them.  Do not check for +Inf in case not
1240         reachable for +Inf.
1241         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
1242         define.
1243         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1244         and return -1 for them.  Do not check for +Inf in case not
1245         reachable for +Inf.
1246         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
1247         spurious underflow.
1248         * sysdeps/i386/fpu/libm-test-ulps: Update.
1249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1250
1251 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
1252
1253         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
1254
1255 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
1256
1257         [BZ #14157]
1258         [BZ #14331]
1259         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
1260         could result in spurious underflow.  Scale down values above
1261         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
1262         * math/s_csqrtf.c (__csqrtf): Likewise.
1263         * math/s_csqrtl.c (__csqrtl): Likewise.
1264         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
1265         spurious underflow.
1266         * sysdeps/i386/fpu/libm-test-ulps: Update.
1267         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1268
1269 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
1270
1271         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
1272         xopen-msg.sed.
1273         * catgets/xopen-msg.awk: New file.
1274         * catgets/xopen-msg.sed: Removed.
1275
1276         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
1277         po2text.sed.
1278         * intl/po2test.awk: New file.
1279         * intl/po2test.sed: Removed.
1280
1281 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
1282
1283         [BZ #14328]
1284         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
1285         or multiply small sinh result by itself.
1286         * math/s_ctanf.c (__ctanf): Likewise.
1287         * math/s_ctanh.c (__ctanh): Likewise.
1288         * math/s_ctanhf.c (__ctanhf): Likewise.
1289         * math/s_ctanhl.c (__ctanhl): Likewise.
1290         * math/s_ctanl.c (__ctanl): Likewise.
1291         * math/libm-test.inc (ctan_test_tonearest): New function.
1292         (ctan_test_towardzero): Likewise.
1293         (ctan_test_downward): Likewise.
1294         (ctan_test_upward): Likewise.
1295         (ctanh_test_tonearest): Likewise.
1296         (ctanh_test_towardzero): Likewise.
1297         (ctanh_test_downward): Likewise.
1298         (ctanh_test_upward): Likewise.
1299         (main): Call these new functions.
1300         * sysdeps/i386/fpu/libm-test-ulps: Update.
1301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1302
1303 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
1304
1305         * .gitignore: Delete /ports entry.
1306
1307 2012-07-03  Andreas Jaeger  <aj@suse.de>
1308
1309         * po/bg.po: Update from translation team.
1310         * po/cs.po: Likewise.
1311         * po/de.po: Likewise.
1312         * po/hr.po: Likewise.
1313         * po/nl.pl: Likewise.
1314         * po/pl.po: Likewise.
1315         * po/vi.po: Likewise.
1316
1317 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
1318
1319         * Makeconfig [!+link] (+link-before-libc): New variable.
1320         [!+link] (+link-after-libc): Likewise.
1321         [!+link] (+link-tests): Likewise.
1322         [!+link] (+link): Define in terms of $(+link-before-libc) and
1323         $(+link-after-libc).
1324         [!+link-static] (+link-static-before-libc): New variable.
1325         [!+link-static] (+link-static-after-libc): Likewise.
1326         [!+link-static] (+link-static-tests): Likewise.
1327         [!+link-static] (+link-static): Define in terms of
1328         $(+link-static-before-libc) and $(+link-static-after-libc).
1329         [build-shared] (link-libc-before-gnulib): New variable.
1330         [build-shared] (link-libc-tests): Likewise.
1331         [build-shared] (link-libc): Define in terms of
1332         $(link-libc-before-gnulib).
1333         [!build-shared] (link-libc-tests): New variable.
1334         (link-libc-static-tests): New variable.
1335         [!gnulib] (gnulib-arch): New variable.
1336         [!gnulib] (gnulib-tests): Likewise.
1337         [!gnulib] (static-gnulib-arch): Likewise.
1338         [!gnulib] (static-gnulib-tests): Likewise.
1339         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
1340         Define with "=" instead of ":=".
1341         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
1342         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
1343         * Rules (binaries-all-notests): New variable.
1344         (binaries-all-tests): Likewise.
1345         (binaries-static-notests): Likewise.
1346         (binaries-static-tests): Likewise.
1347         (binaries-all): Define using $(binaries-all-notests) and
1348         $(binaries-all-tests).
1349         (binaries-static): Define using $(binaries-static-notests) and
1350         $(binaries-static-tests).
1351         (binaries-shared-tests): New variable.
1352         (binaries-shared-notests): Likewise.
1353         (binaries-shared): Remove variable.
1354         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
1355         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
1356         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
1357         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
1358         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
1359         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
1360         * elf/Makefile (sln-modules): New variable.
1361         (extra-objs): Add $(sln-modules:=.o).
1362         (ldconfig-modules): Add static-stubs.
1363         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
1364         * elf/static-stubs.c: New file.
1365
1366         [BZ #14283]
1367         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
1368         by 7 not 8 to examine high bit of fractional part.  Use volatile
1369         variables when splitting into final array of floats if
1370         __FLT_EVAL_METHOD__ != 0.
1371         * math/libm-test.inc (cos_test): Add another test.
1372         (sin_test): Likewise.
1373         * sysdeps/i386/fpu/libm-test-ulps: Update.
1374
1375         [BZ #14273]
1376         * math/libm-test.inc (cosh_test): Add more tests.
1377
1378         * version.h (RELEASE): Set to "development".
1379         (VERSION): Set to "2.16.90".
1380
1381 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
1382
1383         * NEWS: Update copyright. Remove last-updated date.
1384         Mention math library bug fixes and timezone data changes.
1385         * README: Mention GNU/Hurd, x32, and HPPA support status.
1386
1387 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
1388
1389         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
1390
1391 2012-06-27  Andreas Jaeger  <aj@suse.de>
1392
1393         * manual/contrib.texi (Contributors): Add Samuel Thibault.
1394
1395 2012-06-25  Andreas Jaeger  <aj@suse.de>
1396
1397         * sysdeps/s390/fpu/libm-test-ulps: Update.
1398
1399 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
1400             Thomas Schwinge  <thomas@codesourcery.com>
1401
1402         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
1403         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
1404         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
1405         fanotify_mark.
1406
1407 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
1408
1409         * sysdeps/mach/start.c: Remove file.
1410         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
1411         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
1412         * sysdeps/sh/init-first.c: Likewise.
1413
1414         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
1415         registers for frame unwinding purposes, add CFI directives.
1416         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1417         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
1418         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1419         Likewise.
1420
1421         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
1422         __fortify_fail returning.
1423         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1424
1425         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
1426         sysdeps/sh/____longjmp_chk.S.
1427         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
1428         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
1429         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
1430         (gen-as-const-headers): Append sigaltstack-offsets.sym.
1431
1432         * sysdeps/sh/abort-instr.h: New file.
1433         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
1434         process in case exit returns.
1435
1436         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
1437         initialize the GOT register before use.
1438
1439         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
1440         calculation of ARGC > 4.
1441
1442         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
1443         meaningful names to some local labels.
1444
1445 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1446             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1447
1448         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1449         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
1450         (__arch_compare_and_exchange_val_16_acq): Likewise.
1451         (__arch_compare_and_exchange_val_32_acq): Likewise.
1452         (atomic_exchange_and_add): Fix gUSA sequence.
1453         (atomic_add): Likewise.
1454         (atomic_add_negative): Likewise.
1455         (atomic_add_zero): Likewise.
1456         (atomic_bit_test_set): Likewise.
1457
1458 2012-06-22  Andreas Schwab  <schwab@redhat.com>
1459
1460         [BZ #13579]
1461         * include/link.h (struct link_map): Add l_free_initfini.
1462         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
1463         l_initfini.
1464         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
1465         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
1466         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
1467         set.
1468
1469 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
1470
1471         * configure.in: Use AC_LANG_SOURCE.
1472         * configure: Regenerate.
1473
1474 2012-06-22  Roland McGrath  <roland@hack.frob.com>
1475
1476         * configure.in (libc_cv_localstatedir): New substituted variable.
1477         * configure: Regenerated.
1478         * config.make.in (localstatedir): New variable, substituted from
1479         libc_cv_localstatedir.
1480         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
1481         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
1482         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
1483         * sysdeps/gnu/configure: Regenerated.
1484
1485 2012-06-21  Jeff Law  <law@redhat.com>
1486
1487         [BZ #14277]
1488         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
1489         free.  Simplify list management for _LIBC case.
1490
1491 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
1492
1493         [BZ #14273]
1494         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
1495         Clear sign bit of 64-bit integer value before comparing against
1496         overflow value.
1497
1498         * sysdeps/mach/configure: Regenerated.
1499
1500 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1501
1502         [BZ #14278]
1503         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
1504
1505 2012-06-21  Jeff Law  <law@redhat.com>
1506
1507         [BZ #13882]
1508         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
1509         uint16_t for elements in the "seen" array to avoid char overflows.
1510         * elf/dl-fini.c (_dl_sort_fini): Likewise.
1511         * elf/dl-open.c (dl_open_worker): Likewise.
1512
1513 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
1514
1515         * scripts/list-sources.sh: Scan PORTS for translations.
1516         * po/libc.pot: Regenerated.
1517
1518 2012-06-21  Andreas Jaeger  <aj@suse.de>
1519
1520         [BZ #12194]
1521         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
1522         warning.
1523         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
1524         * bits/byteswap-16.h (__bswap_16): Likewise.
1525         * bits/byteswap.h (__bswap_constant_16): Likewise.
1526
1527 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1528
1529         [BZ #14117]
1530         * sysdeps/i386/fpu_control.h: Removed.
1531         * sysdeps/x86_64/fpu_control.h: Moved to ...
1532         * sysdeps/x86/fpu_control.h: Here.
1533
1534         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
1535         (_FPU_SETCW): Likewise.
1536
1537 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
1538
1539         [BZ #14117]
1540         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
1541         * sysdeps/x86/fpu/bits/mathinline.h: This.
1542         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
1543
1544         [BZ #14050]
1545         [BZ #14117]
1546         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
1547         functions if __x86_64__ is defined.
1548
1549 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
1550
1551         * string/endian.h: Add !__ASSEMBLER__ condition for including
1552         conversion interfaces.
1553
1554 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
1555
1556         [BZ #14241]
1557         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
1558         of ABS(x) in calculating zero to negative powers other than odd
1559         integers.
1560         * math/libm-test.inc (pow_test): Add more tests.
1561
1562 2012-06-15  Andreas Jaeger  <aj@suse.de>
1563
1564         * manual/contrib.texi (Contributors): Update entry of Liubov
1565         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
1566         Machado Filho.
1567
1568 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
1569
1570         * string/string.h: Add __wur to GNU version of strerror_r.
1571
1572 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1573
1574         [BZ #14229]
1575         * string/Makefile (tests): Add tst-strtok_r.
1576         * string/tst-strtok_r.c: New file.
1577         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
1578         RAX_LP/RDX_LP on SAVE_PTR.
1579
1580 2012-06-14  Roland McGrath  <roland@hack.frob.com>
1581
1582         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
1583
1584 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
1585
1586         * libm_test.inc (csqrt_test): Allow more spurious underflow
1587         exceptions.
1588         (j0_test): Likewise.
1589         (j1_test): Likewise.
1590         (y0_test): Likewise.
1591         (y1_test): Likewise.
1592
1593 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
1594
1595         * po/Makefile (libc.pot): Use UTF-8 charset.
1596
1597 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
1598
1599         [BZ #14210]
1600         Suppress sign-conversion warning from FD_SET.
1601         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
1602         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
1603         not unsigned long int.
1604         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
1605
1606 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
1607
1608         [BZ #14050]
1609         [BZ #14117]
1610         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
1611         __extern_always_inline instead of __extern_inline.
1612         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
1613         (__signbit): Likewise.
1614         (__signbitl): Support C++ namespace.
1615         (lrintf): New inline function.
1616         (lrint): Likewise.
1617         (llrintf): Likewise.
1618         (llrint): Likewise.
1619         (fmaxf): Likewise.
1620         (fmax): Likewise.
1621         (fminf): Likewise.
1622         (fmin): Likewise.
1623         (rint): Likewise.
1624         (rintf): Likewise.
1625         (ceil): Likewise.
1626         (ceilf): Likewise.
1627         (floor): Likewise.
1628         (floorf): Likewise.
1629         (nearbyint): Likewise.
1630         (nearbyintf): Likewise.
1631
1632 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
1633
1634         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
1635         non-default versions.
1636
1637 2012-06-11  Roland McGrath  <roland@hack.frob.com>
1638
1639         [BZ #14218]
1640         * manual/argp.texi (Argp): Reword argp_parse description slightly.
1641
1642 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
1643
1644         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
1645         (FE_UPWARD, FE_DOWNWARD): Don't define.
1646         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
1647         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
1648
1649         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
1650         reading it.
1651         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
1652         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
1653
1654 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1655
1656         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
1657         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
1658         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
1659         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
1660
1661 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1662
1663         [BZ #14117]
1664         * sysdeps/i386/fpu/bits/fenv.h: Removed.
1665         * sysdeps/i386/fpu/Implies: New file.
1666         * sysdeps/x86_64/fpu/Implies: Likewise.
1667         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
1668         * sysdeps/x86/fpu/bits/fenv.h: This.
1669
1670         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
1671         __SSE_MATH__.
1672
1673 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
1674
1675         [BZ #14134]
1676         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
1677         character 0xffff that matches the last element of the
1678         conversion table.
1679
1680 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1681
1682         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
1683         fmodl commit.
1684
1685 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1686
1687         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
1688         values higher than 25.6283.
1689
1690 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1691
1692         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
1693         subnormal exponent extraction and add some __builtin_expect.
1694         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
1695         Fix for subnormal mantissa calculation.
1696
1697 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
1698
1699         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
1700         cpu2 is -1 and errno is not ENOSYS.
1701
1702 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
1703
1704         [BZ #14117]
1705         * sysdeps/i386/i486/bits/string.h: Renamed to ...
1706         * sysdeps/x86/bits/string.h: This.
1707         * sysdeps/x86_64/bits/string.h: Removed.
1708
1709         * sysdeps/i386/i486/bits/string.h: Define inline functions only
1710         if not compiling for x86-64, but compiling for >= i486.
1711
1712         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
1713         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
1714
1715         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
1716         New macro from Linux kernel 3.4.0.
1717         (FP_XSTATE_MAGIC2): Likewise.
1718         (FP_XSTATE_MAGIC2_SIZE): Likewise.
1719         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
1720         (struct _fpx_sw_bytes): New struct.
1721         (struct _xsave_hdr): Likewise.
1722         (struct _ymmh_state): Likewise.
1723         (struct _xstate): Likewise.
1724
1725         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
1726         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
1727         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
1728         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
1729         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
1730         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
1731
1732         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
1733         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
1734         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
1735         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
1736         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
1737         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
1738
1739 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1740
1741         [BZ #13743]
1742         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
1743         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
1744         (sysdep_headers): Include sys/platform/ppc.h.
1745         * sysdeps/powerpc/test-gettimebase.c: Test for
1746         __ppc_get_timebase() to catch future ISA opcode/insn changes.
1747         * manual/Makefile (appendices): Include platform.texi.
1748         * manual/contrib.texi (Contributors): Update @node pointers.
1749         * manual/maint.texi (Maintenance): Likewise.
1750         (Platform): New node.
1751         * manual/platform.texi: New file.  Document the new features.
1752
1753 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1754             Jakub Jelinek  <jakub@redhat.com>
1755
1756         [BZ #14188]
1757         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
1758         where __builtin_expect is unavailable.
1759
1760 2012-06-03  David S. Miller  <davem@davemloft.net>
1761
1762         * stdlib/longlong.h: Updated from GCC.
1763
1764 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
1765
1766         [BZ #14042]
1767         * sysdeps/powerpc/powerpc32/mcount.c: New file.
1768         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
1769         __mcount_internal.
1770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1771         (GLIBC_2.16): Likewise.
1772
1773 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1774
1775         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
1776
1777 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
1778
1779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1780         (default-abi): New variable.
1781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
1782         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
1783         variable.
1784         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
1785         Likewise.
1786         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
1787         Likewise.
1788         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
1789         Likewise.
1790
1791         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
1792         definition.  Document in comment.
1793
1794 2012-06-01  David S. Miller  <davem@davemloft.net>
1795
1796         * stdlib/longlong.h: Updated from GCC.
1797
1798 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1799
1800         [BZ #14117]
1801         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
1802         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
1803         sys/debugreg.h sys/io.h here.
1804         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
1805         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
1806         sys/io.h.
1807         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
1808         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
1809         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
1810         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
1811         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
1812         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
1813
1814         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
1815         Define only if __x86_64__ is defined.
1816
1817 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
1818
1819         [BZ #14048]
1820         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
1821         Use int64_t for variable i.
1822         * math/libm-test.inc (fmod_test): Add more tests.
1823
1824         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
1825         z computation is not scheduled after fetestexcept.
1826         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
1827         Use math_force_eval instead of asm to ensure calculation scheduled
1828         before exception test.
1829         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
1830         Ensure a1 + u.d computation is not scheduled after fetestexcept.
1831
1832 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
1833
1834         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
1835         computation is not scheduled after fetestexcept.
1836
1837 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1838
1839         [BZ #14117]
1840         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
1841         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
1842
1843 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1844
1845         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
1846         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
1847
1848 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
1849
1850         [BZ #14117]
1851         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
1852         <bits/wordsize.h>.
1853         (__WCHAR_MIN): Support __WORDSIZE == 64.
1854         (__WCHAR_MAX): Likewise.
1855
1856         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
1857         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
1858
1859         [BZ #14183]
1860         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
1861         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
1862
1863         [BZ #14117]
1864         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
1865         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
1866
1867         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
1868         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
1869
1870         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
1871         Defined to 1 if __x86_64__ isn't defined.
1872         (_STAT_VER_LINUX_OLD): New.
1873         (st_atime): Remove duplicate.
1874         (st_mtime): Likewise.
1875         (st_ctime): Likewise.
1876
1877 2012-05-31  David S. Miller  <davem@davemloft.net>
1878
1879         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
1880         entries.
1881
1882 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
1883
1884         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
1885         gen-libm-test.pl.
1886
1887         [BZ #14132]
1888         * elf/dl-reloc.c: Include <_itoa.h>.
1889         (_dl_reloc_bad_type): Remove use of INTUSE.
1890         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
1891         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
1892         * stdio-common/psiginfo.c (psiginfo): Likewise.
1893         * stdio-common/psignal.c (psignal): Likewise.
1894         * string/strsignal.c (strsignal): Likewise.
1895         * include/signal.h (_sys_siglist): Declare hidden proto.
1896         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
1897         INTVARDEF with libc_hidden_data_def.
1898         * stdio-common/itoa-udigits.c: Likewise.
1899         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
1900         (_itoa_lower_digits_internal): Remove declaration.
1901         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
1902         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
1903         (_sys_sigabbrev_internal): Remove aliases.
1904         (_sys_siglist): Define hidden alias.
1905
1906 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
1907
1908         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1909         bits/sysctl.h.
1910
1911 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
1912
1913         [BZ #14117]
1914         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
1915         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
1916
1917         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
1918         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
1919         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
1920         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
1921         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
1922         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
1923
1924         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
1925         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
1926         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
1927
1928         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
1929         with __addr.
1930         (insw): Likewise.
1931         (insl): Likewise.
1932         (outsb): Likewise.
1933         (outsw): Likewise.
1934         (outsl): Likewise.
1935
1936         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
1937         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
1938         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
1939
1940         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
1941         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
1942         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
1943         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
1944         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
1945         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
1946
1947         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
1948         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
1949
1950         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
1951         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
1952
1953         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
1954         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
1955         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
1956
1957         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
1958         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
1959         to ...
1960         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
1961
1962         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
1963         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
1964         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
1965
1966         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
1967         for x86-64.
1968         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
1969
1970 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
1971
1972         * math/math.h (M_El): Use two more decimal places.
1973         (M_LOG2El): Likewise.
1974         (M_LOG10El): Likewise.
1975         (M_LN2l): Likewise.
1976         (M_LN10l): Likewise.
1977         (M_PIl): Likewise.
1978         (M_PI_2l): Likewise.
1979         (M_PI_4l): Likewise.
1980         (M_1_PIl): Likewise.
1981         (M_2_PIl): Likewise.
1982         (M_2_SQRTPIl): Likewise.
1983         (M_SQRT2l): Likewise.
1984         (M_SQRT1_2l): Likewise.
1985
1986 2012-05-31  David S. Miller  <davem@davemloft.net>
1987
1988         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
1989         values between float registers.
1990         * sysdeps/sparc/sparc64/memset.S: Likewise.
1991         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
1992
1993 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
1994
1995         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
1996         -D_FORTIFY_SOURCE=1.
1997         (CPPFLAGS-tst-longjmp_chk.c): Define.
1998         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
1999         (CPPFLAGS-tst-longjmp_chk2.c): Define.
2000         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
2001         CFLAGS-tst-wchar-h.c.
2002
2003 2012-05-31  Marek Polacek  <polacek@redhat.com>
2004
2005         [BZ #14132]
2006         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
2007         __endmntent_internal): Remove declaration.
2008         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
2009         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
2010         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
2011
2012 2012-05-30  David S. Miller  <davem@davemloft.net>
2013
2014         * sysdeps/sparc/sparc32/soft-fp/q_util.c
2015         (___Q_simulate_exceptions): Use real FP ops rather than writing
2016         into the %fsr.
2017         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
2018         Likewise.
2019
2020 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2021
2022         [BZ #14117]
2023         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
2024         * sysdeps/x86/bits/xtitypes.h: This.
2025
2026         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
2027         * sysdeps/x86/bits/wordsize.h: This.
2028
2029         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
2030         * sysdeps/x86/bits/huge_vall.h: This.
2031
2032         * sysdeps/i386/bits/select.h: Removed.
2033         * sysdeps/x86_64/bits/select.h: Renamed to ...
2034         * sysdeps/x86/bits/select.h: This.
2035
2036         * sysdeps/i386/bits/setjmp.h: Removed.
2037         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
2038         * sysdeps/x86/bits/setjmp.h: This.
2039
2040         * sysdeps/i386/bits/mathdef.h: Removed.
2041         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
2042         * sysdeps/x86/bits/mathdef.h: This.
2043
2044 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2045
2046         [BZ #14132]
2047         * include/sys/socket.h (__connect_internal)
2048         (__libc_sa_len_internal): Remove declaration.
2049         (__connect, __libc_sa_len): Declare hidden_proto.
2050         (SA_LEN): Remove use of INTUSE.
2051         * socket/connect.c: Add libc_hidden_def.
2052         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
2053         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
2054         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
2055         alias.
2056         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2057         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2058         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
2059         of adding _internal alias.
2060
2061 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2062
2063         [BZ #14117]
2064         * sysdeps/i386/bits/link.h: Removed.
2065         * sysdeps/i386/bits/linkmap.h: Likewise.
2066         * sysdeps/x86_64/bits/link.h: Renamed to ...
2067         * sysdeps/x86/bits/link.h: This.
2068         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
2069         * sysdeps/x86/bits/linkmap.h: This.
2070
2071         * sysdeps/i386/bits/endian.h: Removed.
2072         * sysdeps/x86_64/bits/endian.h: Renamed to ...
2073         * sysdeps/x86/bits/endian.h: This.
2074
2075         * sysdeps/i386/bits/byteswap.h: Removed.
2076         * sysdeps/i386/bits/byteswap-16.h: Likewise.
2077         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
2078         * sysdeps/x86/bits/byteswap.h: This.
2079         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
2080         * sysdeps/x86/bits/byteswap-16.h: This.
2081         * sysdeps/i386/Implies: Add x86.
2082         * sysdeps/x86_64/Implies: Likewise.
2083
2084 2012-05-30  David S. Miller  <davem@davemloft.net>
2085
2086         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
2087         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
2088         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
2089         (FP_TRAPPING_EXCEPTIONS): Define.
2090         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
2091         (FP_TRAPPING_EXCEPTIONS): Define.
2092         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
2093         subnormals only when inexact has been signalled or underflow
2094         exceptions are enabled.
2095         (_FP_PACK_CANONICAL): Likewise.
2096
2097 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2098
2099         [BZ #14183]
2100         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
2101         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
2102
2103 2012-05-30  Richard Henderson  <rth@twiddle.net>
2104
2105         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
2106         with #ifndef NOT_IN_libc.
2107
2108         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
2109         marked to avoid plt entry.
2110
2111 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2112
2113         [BZ #14112]
2114         * Makeconfig (default-abi): New macro.
2115         (abi-includes): Likewise.
2116         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
2117         $(abi-$(default-abi)-lib-soname) for soname if defined.
2118         ($(common-objpfx)gnu/lib-names.stmp): Generate from
2119         abi-variants.
2120         * Makefile (installed-stubs): Likewise.
2121         * include/stubs-biarch.h: Removed.
2122         * scripts/lib-names.awk: Only handle one library at a time.
2123         * scripts/soversions.awk: Remove WORDSIZE support.
2124         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
2125         entries.
2126         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
2127         Removed.
2128         (syscall-list-default-condition): Likewise.
2129         (syscall-list-default-condition): Likewise.
2130         (syscall-list-includes): Likewise.
2131         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
2132         syscall-list-* with abi-*.  Handle undefined abi-variants.
2133         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
2134         * sysdeps/unix/sysv/linux/i386/Implies: New file.
2135         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
2136         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
2137         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
2138         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
2139         Removed.
2140         (syscall-list-32-options): Likewise.
2141         (syscall-list-32-condition): Likewise.
2142         (syscall-list-64-options): Likewise.
2143         (syscall-list-64-condition): Likewise.
2144         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
2145         macro.
2146         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
2147         Renamed to ...
2148         (abi-*): This.
2149         (abi-64-ld-soname): New macro.
2150         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
2151         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
2152         Renamed to ...
2153         (abi-*): This.
2154         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
2155         * sysdeps/x86_64/x32/shlib-versions: Likewise.
2156
2157 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
2158
2159         * sysdeps/unix/sysv/linux/kernel-features.h
2160         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
2161         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
2162         include <kernel-features.h>.
2163         [!__NR_ftruncate64]: Remove conditional code.
2164         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2165         [__NR_ftruncate64]: Make code unconditional.
2166         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2167         * sysdeps/unix/sysv/linux/truncate64.c: Do not
2168         include <kernel-features.h>.
2169         [!__NR_ftruncate64]: Remove conditional code.
2170         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2171         [__NR_ftruncate64]: Make code unconditional.
2172         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
2174         include <kernel-features.h>.
2175         [!__NR_ftruncate64]: Remove conditional code.
2176         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2177         [__NR_ftruncate64]: Make code unconditional.
2178         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
2180         include <kernel-features.h>.
2181         [!__NR_ftruncate64]: Remove conditional code.
2182         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2183         [__NR_ftruncate64]: Make code unconditional.
2184         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2185
2186         * configure.in (libc_cv_fpie): Weaken to a compile test using
2187         LIBC_TRY_CC_OPTION.
2188         * configure: Regenerated.
2189
2190 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2191
2192         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
2193         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
2194         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
2195         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2196         Refreshed.
2197         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
2198         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
2199         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
2200         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
2201         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
2202         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2203         Refreshed.
2204
2205 2012-05-27  David S. Miller  <davem@davemloft.net>
2206
2207         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
2208         (___Q_zero): New.
2209         (__Q_simulate_exceptions): Return void.  Change to simulate
2210         exceptions by writing into the %fsr.
2211         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
2212         (__Qp_handle_exceptions): Likewise.
2213         (numbers): Delete.
2214         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
2215         __Qp_handle_exceptions.
2216         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
2217         __Qp_handle_exceptions.
2218         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2219         as unused and give dummy FP_RND_NEAREST initializer.
2220         (FP_INHIBIT_RESULTS): Define.
2221         (___Q_simulate_exceptions): Update declaration.
2222         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
2223         formatting.
2224         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2225         as unused and give dummy FP_RND_NEAREST initializer.
2226         (__Qp_handle_exceptions): Update declaration.
2227         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
2228         formatting.
2229
2230 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
2231
2232         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
2233         the temporary FPU control word.
2234         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2235         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
2236         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
2237         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2238         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
2239         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
2240         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
2241         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2242         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
2243         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
2244         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2245
2246 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2247
2248         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
2249         fields.
2250
2251 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
2252
2253         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
2254         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
2255         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
2256         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
2257         Likewise.
2258         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
2259         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
2260         Likewise.
2261
2262 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
2263
2264         * po/h.po: Update from translation team.
2265
2266 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
2267
2268         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
2269
2270         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
2271         handling of denormals.
2272         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
2273         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
2274         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
2275         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
2276         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2277         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
2278         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
2279         Likewise.
2280
2281 2012-05-26  Marek Polacek  <polacek@redhat.com>
2282
2283         [BZ #14152]
2284         * math/libm-test.inc (fma_test): Don't always expect underflow
2285         exception.
2286
2287 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2288
2289         [BZ #12416]
2290         * elf/tst-execstack.c: Include stackinfo.h.
2291         (do_test): Adjust test case to ensure that pthread_getattr_np
2292         behaviour remains the same after marking stack executable.
2293
2294 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
2295
2296         * sysdeps/unix/sysv/linux/kernel-features.h
2297         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
2298         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
2299         kernel-features.h.
2300         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2301         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2302         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
2303         kernel-features.h.
2304         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2305         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2306
2307 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2308
2309         * configure.in: Define the default includes to being none.
2310         * configure: Regenerated.
2311
2312 2012-05-25  Roland McGrath  <roland@hack.frob.com>
2313
2314         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
2315         * sysdeps/x86_64/setjmp.S: Likewise.
2316         * sysdeps/i386/bsd-setjmp.S: Likewise.
2317         * sysdeps/i386/bsd-_setjmp.S: Likewise.
2318         * sysdeps/i386/setjmp.S: Likewise.
2319         * sysdeps/i386/__longjmp.S: Likewise.
2320         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
2321         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2322
2323         * include/stap-probe.h: New file.
2324         * configure.in: Handle --enable-systemtap.
2325         * configure: Regenerated.
2326         * config.h.in (USE_STAP_PROBE): New #undef.
2327         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
2328         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
2329         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
2330
2331 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
2332
2333         [BZ #13717]
2334         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2335         to 2.4.0 where earlier.
2336         * sysdeps/unix/sysv/linux/configure: Regenerated.
2337         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
2338         <kernel-features.h>.
2339         [__ASSUME_32BITUIDS]: Make code unconditional.
2340         [!__ASSUME_32BITUIDS]: Remove conditional code.
2341         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
2342         <kernel-features.h>.
2343         [__ASSUME_32BITUIDS]: Make code unconditional.
2344         [!__ASSUME_32BITUIDS]: Remove conditional code.
2345         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
2346         [__ASSUME_32BITUIDS]: Make code unconditional.
2347         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
2348         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
2349         <kernel-features.h>.
2350         [__ASSUME_32BITUIDS]: Make code unconditional.
2351         [!__ASSUME_32BITUIDS]: Remove conditional code.
2352         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
2353         <kernel-features.h>.
2354         [__ASSUME_32BITUIDS]: Make code unconditional.
2355         [!__ASSUME_32BITUIDS]: Remove conditional code.
2356         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
2357         <kernel-features.h>.
2358         [__ASSUME_32BITUIDS]: Make code unconditional.
2359         [!__ASSUME_32BITUIDS]: Remove conditional code.
2360         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
2361         <kernel-features.h>.
2362         [__ASSUME_32BITUIDS]: Make code unconditional.
2363         [!__ASSUME_32BITUIDS]: Remove conditional code.
2364         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
2365         <kernel-features.h>.
2366         [__ASSUME_32BITUIDS]: Make code unconditional.
2367         [!__ASSUME_32BITUIDS]: Remove conditional code.
2368         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
2369         <kernel-features.h>.
2370         [__ASSUME_32BITUIDS]: Make code unconditional.
2371         [!__ASSUME_32BITUIDS]: Remove conditional code.
2372         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
2373         <kernel-features.h>.
2374         [__ASSUME_32BITUIDS]: Make code unconditional.
2375         [!__ASSUME_32BITUIDS]: Remove conditional code.
2376         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
2377         <kernel-features.h>.
2378         [__ASSUME_32BITUIDS]: Make code unconditional.
2379         [!__ASSUME_32BITUIDS]: Remove conditional code.
2380         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
2381         <kernel-features.h>.
2382         [__ASSUME_32BITUIDS]: Make code unconditional.
2383         [!__ASSUME_32BITUIDS]: Remove conditional code.
2384         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
2385         <kernel-features.h>.
2386         [__ASSUME_32BITUIDS]: Make code unconditional.
2387         [!__ASSUME_32BITUIDS]: Remove conditional code.
2388         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
2389         <kernel-features.h>.
2390         [__NR_setresgid] (__setresgid): Do not declare.
2391         [__ASSUME_32BITUIDS]: Make code unconditional.
2392         [!__ASSUME_32BITUIDS]: Remove conditional code.
2393         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
2394         <kernel-features.h>.
2395         [__NR_setresuid] (__setresuid): Do not declare.
2396         [__ASSUME_32BITUIDS]: Make code unconditional.
2397         [!__ASSUME_32BITUIDS]: Remove conditional code.
2398         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
2399         <kernel-features.h>.
2400         [__ASSUME_32BITUIDS]: Make code unconditional.
2401         [!__ASSUME_32BITUIDS]: Remove conditional code.
2402         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
2403         <kernel-features.h>.
2404         [__ASSUME_32BITUIDS]: Make code unconditional.
2405         [!__ASSUME_32BITUIDS]: Remove conditional code.
2406         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
2407         <kernel-features.h>.
2408         [__ASSUME_32BITUIDS]: Make code unconditional.
2409         [!__ASSUME_32BITUIDS]: Remove conditional code.
2410         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
2411         <kernel-features.h>.
2412         [__ASSUME_32BITUIDS]: Make code unconditional.
2413         [!__ASSUME_32BITUIDS]: Remove conditional code.
2414         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
2415         <kernel-features.h>.
2416         [__ASSUME_32BITUIDS]: Make code unconditional.
2417         [!__ASSUME_32BITUIDS]: Remove conditional code.
2418         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
2419         <kernel-features.h>.
2420         [__ASSUME_32BITUIDS]: Make code unconditional.
2421         [!__ASSUME_32BITUIDS]: Remove conditional code.
2422         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
2423         <kernel-features.h>.
2424         [__ASSUME_32BITUIDS]: Make code unconditional.
2425         [!__ASSUME_32BITUIDS]: Remove conditional code.
2426         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
2427         <kernel-features.h>.
2428         [__ASSUME_32BITUIDS]: Make code unconditional.
2429         [!__ASSUME_32BITUIDS]: Remove conditional code.
2430         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
2431         <kernel-features.h>.
2432         [__ASSUME_32BITUIDS]: Make code unconditional.
2433         [!__ASSUME_32BITUIDS]: Remove conditional code.
2434         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
2435         <kernel-features.h>.
2436         [__ASSUME_32BITUIDS]: Make code unconditional.
2437         [!__ASSUME_32BITUIDS]: Remove conditional code.
2438         * sysdeps/unix/sysv/linux/kernel-features.h
2439         (__ASSUME_SETRESUID_SYSCALL): Remove.
2440         (__ASSUME_SETRESGID_SYSCALL): Likewise.
2441         (__ASSUME_32BITUIDS): Likewise.
2442         (__ASSUME_LDT_WORKS): Likewise.
2443         (__ASSUME_O_DIRECTORY): Likewise.
2444         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
2445         architecture but not kernel version.
2446         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
2447         (__ASSUME_MMAP2_SYSCALL): Likewise.
2448         (__ASSUME_STAT64_SYSCALL): Likewise.
2449         (__ASSUME_IPC64): Likewise.
2450         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
2451         <kernel-features.h>.
2452         [__ASSUME_32BITUIDS]: Make code unconditional.
2453         [!__ASSUME_32BITUIDS]: Remove conditional code.
2454         * sysdeps/unix/sysv/linux/opendir.c: Do not include
2455         <kernel-features.h>.
2456         [__ASSUME_O_DIRECTORY]: Make code unconditional.
2457         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
2458         132096]: Remove conditional code.
2459         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
2460         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
2461         <kernel-features.h>.
2462         [__ASSUME_32BITUIDS]: Make code unconditional.
2463         [!__ASSUME_32BITUIDS]: Remove conditional code.
2464         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
2465         <kernel-features.h>.
2466         [__ASSUME_32BITUIDS]: Make code unconditional.
2467         [!__ASSUME_32BITUIDS]: Remove conditional code.
2468         * sysdeps/unix/sysv/linux/setegid.c: Do not include
2469         <kernel-features.h>.
2470         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
2471         unconditional.
2472         (__setresgid): Do not declare.
2473         [__ASSUME_32BITUIDS]: Make code unconditional.
2474         [!__ASSUME_32BITUIDS]: Remove conditional code.
2475         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
2476         <kernel-features.h>.
2477         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
2478         unconditional.
2479         (__setresuid): Do not declare.
2480         [__ASSUME_32BITUIDS]: Make code unconditional.
2481         [!__ASSUME_32BITUIDS]: Remove conditional code.
2482         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
2483         <kernel-features.h>.
2484         [__ASSUME_32BITUIDS]: Make code unconditional.
2485         [!__ASSUME_32BITUIDS]: Remove conditional code.
2486         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
2487         <kernel-features.h>.
2488         [__ASSUME_32BITUIDS]: Make code unconditional.
2489         [!__ASSUME_32BITUIDS]: Remove conditional code.
2490
2491 2012-05-25  Richard Henderson  <rth@twiddle.net>
2492
2493         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
2494         dl_hwcap to ifunc resolver.
2495         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
2496         elf_ifunc_invoke.
2497         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
2498         dl_hwcap to ifunc resolver.
2499         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
2500
2501 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2502
2503         [BZ #14153]
2504         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
2505         for |x| <= 2**-26, not 2**-57.
2506         * math/libm-test.inc (acos_test): Do not allow spurious underflow
2507         exception.
2508
2509 2012-05-24  Jeff Law  <law@redhat.com>
2510
2511         * stdio-common/Makefile (tests): Add bug25.
2512         * stdio-common/bug25.c: New test.
2513
2514 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2515
2516         [BZ #13576]
2517         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
2518         multiple of MALLOC_ALIGNMENT in size.
2519         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
2520
2521 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2522
2523         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
2524         Require >= 256.
2525         (FILENAME_MAX): Use macro-int-constant.
2526         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
2527         (_IOFBF): Use macro-int-constant.
2528         (_IOLBF): Likewise.
2529         (_IONBF): Likewise.
2530         (SEEK_CUR): Likewise.
2531         (SEEK_END): Likewise.
2532         (SEEK_SET): Likewise.
2533         (TMP_MAX): Likewise.
2534         (EOF): Use macro-int-constant.  Require < 0.
2535         (NULL): Use macro-constant.  Require == 0.
2536         (stdin): Require type to be FILE *.
2537         (stdout): Likewise.
2538         (stderr): Likewise.
2539         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
2540         macro-int-constant.
2541         (EXIT_SUCCESS): Likewise.
2542         (NULL): Use macro-constant.  Require == 0.
2543         (RAND_MAX): Use macro-int-constant.
2544         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
2545         [C99-based standards] (strtof): Require function.
2546         [C99-based standards] (strtold): Likewise.
2547         [C99-based standards] (strtoll): Likewise.
2548         [C99-based standards] (strtoull): Likewise.
2549         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2550         [ISO || ISO99 || ISO11] (limits.h): Likewise.
2551         [ISO || ISO99 || ISO11] (math.h): Likewise.
2552         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
2553         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2554         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2555
2556 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
2557
2558         [BZ #14132]
2559         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
2560         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
2561         * intl/dgettext.c (DCGETTEXT): Likewise.
2562         * intl/gettext.c (DCGETTEXT): Likewise.
2563         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
2564         * posix/regex_internal.h (gettext): Likewise.
2565         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
2566         Remove declaration.
2567         * include/argz.h (__argz_count_internal)
2568         (__argz_stringify_internal): Remove declaration.
2569         (__argz_count, __argz_stringify): Declare hidden proto.
2570         * intl/dcgettext.c: Remove use of INTDEF.
2571         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
2572         * string/argz-stringify.c: Likewise.
2573         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2574         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2575         Declare hidden proto.
2576         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2577         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2578         Declare hidden proto.
2579         * include/stdio.h (__asprintf_internal): Don't declare.
2580         (__asprintf): Don't define as macro.  Declare hidden proto.
2581         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
2582         (__fsetlocking): Declare hidden proto.
2583         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
2584         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
2585         hidden proto.
2586         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
2587         (_IO_setlinebuf): Remove use of INTUSE.
2588         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
2589         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
2590         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
2591         Remove declaration.
2592         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
2593         (_IO_do_flush): Remove use of INTUSE.
2594         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
2595         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
2596         (_IO_adjust_column, _IO_least_wmarker)
2597         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
2598         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
2599         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
2600         (_IO_default_doallocate, _IO_wdefault_doallocate)
2601         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
2602         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
2603         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
2604         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
2605         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
2606         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
2607         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
2608         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
2609         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
2610         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
2611         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
2612         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
2613         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
2614         proto.
2615         (_IO_flush_all_internal, _IO_adjust_column_internal)
2616         (_IO_default_uflow_internal, _IO_default_finish_internal)
2617         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
2618         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
2619         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
2620         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
2621         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
2622         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
2623         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
2624         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
2625         (_IO_file_close_internal, _IO_file_close_it_internal)
2626         (_IO_file_underflow_internal, _IO_file_overflow_internal)
2627         (_IO_file_init_internal, _IO_file_attach_internal)
2628         (_IO_file_fopen_internal, _IO_file_read_internal)
2629         (_IO_file_sync_internal, _IO_file_seek_internal)
2630         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
2631         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
2632         (_IO_str_underflow_internal, _IO_str_overflow_internal)
2633         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
2634         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
2635         (_IO_list_all_internal, _IO_link_in_internal)
2636         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
2637         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
2638         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
2639         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
2640         (_IO_do_write_internal, _IO_padn_internal)
2641         (_IO_getline_info_internal, _IO_getline_internal)
2642         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
2643         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
2644         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
2645         (_IO_vfscanf_internal, _IO_vfprintf_internal)
2646         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
2647         (_IO_init_internal, _IO_un_link_internal): Don't declare.
2648         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
2649         with libc_hidden_ver, remove use of INTUSE.
2650         * libio/genops.c: Likewise.
2651         * libio/freopen.c: Likewise.
2652         * libio/freopen64.c: Likewise.
2653         * libio/iofclose.c: Likewise.
2654         * libio/iofdopen.c: Likewise.
2655         * libio/iofflush.c: Likewise.
2656         * libio/iofflush_u.c: Likewise.
2657         * libio/iofgets.c: Likewise.
2658         * libio/iofgets_u.c: Likewise.
2659         * libio/iofopen.c: Likewise.
2660         * libio/iofopncook.c: Likewise.
2661         * libio/iofread.c: Likewise.
2662         * libio/iofread_u.c: Likewise.
2663         * libio/ioftell.c: Likewise.
2664         * libio/iofwrite.c: Likewise.
2665         * libio/iogetline.c: Likewise.
2666         * libio/iogets.c: Likewise.
2667         * libio/iogetwline.c: Likewise.
2668         * libio/iopadn.c: Likewise.
2669         * libio/iopopen.c: Likewise.
2670         * libio/ioseekoff.c: Likewise.
2671         * libio/ioseekpos.c: Likewise.
2672         * libio/iosetbuffer.c: Likewise.
2673         * libio/iosetvbuf.c: Likewise.
2674         * libio/ioungetc.c: Likewise.
2675         * libio/ioungetwc.c: Likewise.
2676         * libio/iovdprintf.c: Likewise.
2677         * libio/iovsprintf.c: Likewise.
2678         * libio/iovsscanf.c: Likewise.
2679         * libio/memstream.c: Likewise.
2680         * libio/obprintf.c: Likewise.
2681         * libio/oldfileops.c: Likewise.
2682         * libio/oldiofclose.c: Likewise.
2683         * libio/oldiofdopen.c: Likewise.
2684         * libio/oldiofopen.c: Likewise.
2685         * libio/oldiopopen.c: Likewise.
2686         * libio/oldstdfiles.c: Likewise.
2687         * libio/putc.c: Likewise.
2688         * libio/setbuf.c: Likewise.
2689         * libio/setlinebuf.c: Likewise.
2690         * libio/stdfiles.c: Likewise.
2691         * libio/strops.c: Likewise.
2692         * libio/vasprintf.c: Likewise.
2693         * libio/vscanf.c: Likewise.
2694         * libio/vsnprintf.c: Likewise.
2695         * libio/vswprintf.c: Likewise.
2696         * libio/wfiledoalloc.c: Likewise.
2697         * libio/wfileops.c: Likewise.
2698         * libio/wgenops.c: Likewise.
2699         * libio/wmemstream.c: Likewise.
2700         * libio/wstrops.c: Likewise.
2701         * libio/__fpurge.c: Likewise.
2702         * libio/__fsetlocking.c: Likewise.
2703         * assert/assert.c: Likewise.
2704         * debug/fgets_chk.c: Likewise.
2705         * debug/fgets_u_chk.c: Likewise.
2706         * debug/fread_chk.c: Likewise.
2707         * debug/fread_u_chk.c: Likewise.
2708         * debug/gets_chk.c: Likewise.
2709         * debug/obprintf_chk.c: Likewise.
2710         * debug/vasprintf_chk.c: Likewise.
2711         * debug/vdprintf_chk.c: Likewise.
2712         * debug/vsnprintf_chk.c: Likewise.
2713         * debug/vsprintf_chk.c: Likewise.
2714         * malloc/mtrace.c: Likewise.
2715         * misc/error.c: Likewise.
2716         * misc/syslog.c: Likewise.
2717         * stdio-common/asprintf.c: Likewise.
2718         * stdio-common/fxprintf.c: Likewise.
2719         * stdio-common/getw.c: Likewise.
2720         * stdio-common/isoc99_fscanf.c: Likewise.
2721         * stdio-common/isoc99_scanf.c: Likewise.
2722         * stdio-common/isoc99_vfscanf.c: Likewise.
2723         * stdio-common/isoc99_vscanf.c: Likewise.
2724         * stdio-common/isoc99_vsscanf.c: Likewise.
2725         * stdio-common/printf-prs.c: Likewise.
2726         * stdio-common/printf_fp.c: Likewise.
2727         * stdio-common/printf_fphex.c: Likewise.
2728         * stdio-common/printf_size.c: Likewise.
2729         * stdio-common/putw.c: Likewise.
2730         * stdio-common/scanf.c: Likewise.
2731         * stdio-common/sprintf.c: Likewise.
2732         * stdio-common/tmpfile.c: Likewise.
2733         * stdio-common/vfprintf.c: Likewise.
2734         * stdio-common/vfscanf.c: Likewise.
2735         * stdlib/strfmon_l.c: Likewise.
2736         * sunrpc/openchild.c: Likewise.
2737         * sunrpc/xdr_stdio.c: Likewise.
2738         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
2739         * sysdeps/mach/hurd/tmpfile.c: Likewise.
2740
2741 2012-05-24  Roland McGrath  <roland@hack.frob.com>
2742
2743         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
2744
2745         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
2746         in the third column, to generate for the shared library an IFUNC
2747         that uses _dl_vdso_vsym.
2748         * Makerules (COMPILE.c, compile-stdin.c): New variables.
2749         * Makeconfig (object-suffixes-noshared): New variable.
2750
2751         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
2752         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
2753         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
2754         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
2755
2756         [BZ #14132]
2757         * include/sys/time.h (__gettimeofday): Remove macro.
2758         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
2759         * time/gettimeofday.c (__gettimeofday): Remove #undef.
2760         Remove INTDEF.
2761         (__gettimeofday): Add libc_hidden_def.
2762         (gettimeofday): Add libc_hidden_weak.
2763         * sysdeps/mach/gettimeofday.c: Likewise.
2764         * sysdeps/posix/gettimeofday.c: Likewise.
2765         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
2766         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
2767         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
2768         (__gettimeofday_internal): Remove strong_alias.
2769         (__gettimeofday): Add libc_hidden_def.
2770         (gettimeofday): Add libc_hidden_weak.
2771         * sysdeps/unix/syscalls.list (gettimeofday):
2772         Remove __gettimeofday_internal alias.
2773
2774 2012-05-24  Daniel Jacobowitz  <drow@false.org>
2775             H.J. Lu  <hongjiu.lu@intel.com>
2776
2777         [BZ #12495]
2778         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
2779         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
2780         (largebin_index_32_big): New.
2781         (largebin_index): Use it for 16-byte alignment.
2782         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
2783         correction with front_misalign.
2784
2785 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2786
2787         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
2788         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2789         Likewise.
2790         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
2791         Likewise.
2792         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
2793         Likewise.
2794         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
2795         Likewise.
2796         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
2797         Likewise.
2798         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
2799         Likewise.
2800         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
2801         Likewise.
2802         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
2803         Likewise.
2804         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
2805         Likewise.
2806         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
2807         Likewise.
2808         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2809         Likewise.
2810         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
2811         Likewise.
2812
2813         * scripts/data/c++-types-x32-linux-gnu.data: New file.
2814         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
2815
2816 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2817
2818         [BZ #10846]
2819         [BZ #14036]
2820         * math/libm-test.inc (exp_test): Add test from bug 14036.
2821         (pow_test): Add test from bug 10846.
2822
2823         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
2824         and other flags.
2825         (special_function): Do not include flags in test name.
2826         (parse_args): Likewise.
2827         * sysdeps/i386/fpu/libm-test-ulps: Update.
2828         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2829         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2830         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
2831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2832
2833         * math/gen-libm-test.pl (%beautify): Add entries for underflow
2834         exceptions.
2835         * math/libm-test.inc ("Philosophy"): Update comment about
2836         exception testing.
2837         (UNDERFLOW_EXCEPTION): New macro.
2838         (UNDERFLOW_EXCEPTION_OK): Likewise.
2839         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
2840         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
2841         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
2842         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
2843         (INVALID_EXCEPTION_OK): Update value.
2844         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
2845         (OVERFLOW_EXCEPTION_OK): Likewise.
2846         (IGNORE_ZERO_INF_SIGN): Likewise.
2847         (test_exceptions): Handle underflow exceptions.
2848         (acos_test): Update for underflow exception expectations.
2849         (cexp_test): Likewise.
2850         (clog_test): Likewise.
2851         (clog10_test): Likewise.
2852         (csqrt_test): Likewise.
2853         (ctan_test): Likewise.
2854         (ctanh_test): Likewise.
2855         (exp_test): Likewise.
2856         (exp10_test): Likewise.
2857         (exp2_test): Likewise.
2858         (expm1_test): Likewise.
2859         (fma_test): Likewise.
2860         (j0_test): Likewise.
2861         (jn_test): Likewise.
2862         (nexttoward_test): Likewise.
2863         (pow_test): Likewise.
2864         (scalbn_test): Likewise.
2865         (scalbln_test): Likewise.
2866         (tan_test): Likewise.
2867         (y1_test): Likewise.
2868         * sysdeps/i386/fpu/libm-test-ulps: Update.
2869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2870
2871 2012-05-23  David S. Miller  <davem@davemloft.net>
2872
2873         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2874         (__libc_sigaction): Remove unused local variables.
2875
2876 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2877
2878         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
2879
2880 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2881
2882         mktime: avoid signed integer overflow
2883         * time/mktime.c (__mktime_internal): Do not mishandle the case
2884         where diff == INT_MIN.
2885
2886         mktime: simplify computation of average
2887         * time/mktime.c (ranged_convert): Use new time_t_avg function
2888         instead of rolling our own (probably-slower) code.
2889
2890         mktime: do not assume signed right shift propagates sign bit
2891         * time/mktime.c (isdst_differ): New static function.
2892         (__mktime_internal): No need to normalize tm_isdst now.
2893         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
2894         tm_isdst values.
2895
2896         mktime: merge another wrapv change from gnulib
2897         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
2898         from some compilers.
2899
2900         mktime: remove incorrect attempt at unusual arithmetics
2901         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
2902         The code didn't really work on such machines anyway.
2903         (TYPE_MINIMUM): Assume two's complement.
2904         (twos_complement_arithmetic): Verify that long_int and time_t
2905         are two's complement (or unsigned, in the latter case).
2906
2907         mktime: check signed shifts on long_int and time_t, too
2908         * time/mktime.c (SHR): Check that shifts work as desired
2909         on the types long_int and time_t too, as SHR is used on
2910         such types.
2911
2912         mktime: do not assume 'long' is wide enough
2913         * time/mktime.c (verify): Move decl up.
2914         (long_int): New type.
2915         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
2916         to remove assumption in the code that 'long' is wide enough to
2917         store year values.  This assumption is not true on x32 and on
2918         some non-glibc platforms.
2919
2920         mktime: merge wrapv change from gnulib
2921         * time/mktime.c (WRAPV): New macro.
2922         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
2923         (guess_time_tm, __mktime_internal): Do not assume that signed
2924         integer overflow wraps around; modern compilers generate code
2925         where this assumption is no longer valid.
2926
2927 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2928
2929         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2930         Replace "jmp L(pseudo_end)" with "ret".
2931         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2932         Likewise.
2933
2934 2012-05-23  Andreas Jaeger  <aj@suse.de>
2935
2936         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
2937         * sysdeps/unix/sysv/linux/poll.c: Remove file.
2938
2939 2012-05-23  Andreas Jaeger  <aj@suse.de>
2940             Maximilian Attems  <max@stro.at>
2941
2942         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
2943         New macros.
2944
2945 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2946
2947         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
2948         code so that pseudo_end is just ret and the stack pointer is
2949         correct also for static library in error case.
2950
2951 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
2952
2953         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
2954         move to syscalls.list.
2955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
2956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
2957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
2958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
2959
2960         * manual/install.texi (Running make install): Do not mention Linux
2961         kernel version for which pt_chown is not needed.
2962         (Linux): Do not mention problems with nscd with 2.0 kernels.
2963         * INSTALL: Regenerated.
2964
2965 2012-05-23  Andreas Jaeger  <aj@suse.de>
2966
2967         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
2968         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
2969         macro.
2970         * sysdeps/unix/sysv/linux/s390/bits/mman.h
2971         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2972         * sysdeps/unix/sysv/linux/sh/bits/mman.h
2973         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2974         * sysdeps/unix/sysv/linux/i386/bits/mman.h
2975         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2976         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
2977         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2978         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
2979         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
2980         * sysdeps/unix/sysv/linux/bits/in.h
2981         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
2982
2983 2012-05-22  Roland McGrath  <roland@hack.frob.com>
2984
2985         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
2986         (PREPARE_VERSION): Just use assert instead, it will be elided
2987         under [NDEBUG] anyway.
2988
2989 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2990
2991         * sysdeps/unix/sysv/linux/Makefile: Include
2992         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
2993         (sysdep_routines): Remove sysctl.
2994         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
2995         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
2996         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
2997         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
2998         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
2999
3000 2012-05-22  Andreas Jaeger  <aj@suse.de>
3001
3002         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
3003         that pseudo_end is just ret and the stack pointer is correct also
3004         for static library in error case.
3005
3006 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
3007
3008         [BZ #14122]
3009         * nss/nsswitch.c (defconfig_entries): New variable.
3010         (__nss_database_lookup): Don't leak defconfig entries.
3011         (nss_parse_service_list): Don't leak on error paths.
3012         (free_database_entries): New function.
3013         (free_defconfig): New function.
3014         (free_mem): Move common code to free_database_entries.
3015
3016 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3017
3018         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
3019         Add arch_prctl.
3020         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
3021
3022         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
3023         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
3024         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
3025         New macro.
3026         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
3027         (INTERNAL_SYSCALL_TYPES): Likewise.
3028         (LOAD_ARGS_TYPES_[1-6]): Likewise.
3029         (LOAD_REGS_TYPES_[1-6]): Likewise.
3030         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
3031         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
3032
3033 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3034
3035         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
3036         copysignl for GLIBC_2_0.
3037         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
3038         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
3039         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
3040         logbl for GLIBC_2_0.
3041         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3042         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3043
3044 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3045
3046         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
3047         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3048
3049         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3050         Use "neg %eax".
3051
3052         * time/mktime.c: Update copyright years.
3053
3054 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3055
3056         mktime: merge comment-quoting-style change from gnulib
3057         * time/mktime.c: Quote 'like this' in comments.
3058         The GNU coding standards suggest that we no longer quote `like this',
3059         as "`" and "'" are typically rendered asymmetrically nowadays.
3060         The typical gnulib style is to quote 'like this' when quoting
3061         code, and "like this" when quoting English.
3062
3063         * time/mktime.c (compile-command): Add "-I.".
3064
3065         mktime: merge mktime-internal.h change from gnulib
3066         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
3067
3068         mktime: merge time_r change from gnulib
3069         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
3070
3071         mktime: merge DEBUG change from gnulib
3072         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
3073         case system <time.h> has a #define.
3074
3075         mktime: merge <sys/types.h> change from gnulib
3076         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
3077         since <time.t> is now guaranteed to define time_t.
3078
3079         mktime: merge HAVE_CONFIG_H change from gnulib
3080         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
3081
3082 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3083
3084         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
3085         Use "neg %eax".
3086
3087         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
3088         __rlim_t cast.
3089         (struct rusage): Use anonymous union to pad each field to
3090         __syscall_slong_t.
3091
3092 2012-05-21  David S. Miller  <davem@davemloft.net>
3093
3094         * Makefules (o-iterator): Remove .s cases.
3095         (compile-command.s): Delete.
3096         (COMPILE.s): Delete.
3097         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
3098
3099 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
3100
3101         * configure.in (libc_cv_predef_stack_protector): Only consider
3102         "foobar" and "__stack_chk_fail" lines in libc_undefs.
3103         * configure: Regenerated.
3104
3105 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3106
3107         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
3108         New macro.  Use R*LP on int and pointer.
3109         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
3110         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
3111         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
3112         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
3113
3114         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
3115         [__WORDSIZE_TIME64_COMPAT32] instead of
3116         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
3117         (struct utmp): Likewise.
3118         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
3119         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
3120         Renamed to ...
3121         (__WORDSIZE_TIME64_COMPAT32): This.
3122         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
3123         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
3124         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
3125         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
3126         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
3127         (__WORDSIZE_TIME64_COMPAT32): New macro.
3128
3129 2012-05-21  Andreas Jaeger  <aj@suse.de>
3130
3131         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
3132         only if [SHARED]. Add prototype for __wcschr_ia32.
3133
3134 2012-05-21  Roland McGrath  <roland@hack.frob.com>
3135
3136         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
3137         of %rbp unmolested in the jmp_buf while mangling the low bits.
3138         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
3139         unmolested high bits of %rbp while demangling the low bits.
3140         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3141
3142 2012-05-21  Andreas Jaeger  <aj@suse.de>
3143
3144         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
3145         * sunrpc/svc_simple.c: Use it for registerrpc.
3146         * sunrpc/xcrypt.c: Use it for passwd2des.
3147
3148         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
3149
3150 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3151
3152         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
3153         Don't define if [__SYSCALL_WORDSIZE != 32].
3154         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
3155         New macro.
3156
3157 2012-05-21  Bruno Haible  <bruno@clisp.org>
3158             Andreas Jaeger  <aj@suse.de>
3159
3160         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
3161         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
3162         inptr and inend for must_buffer_ch.
3163         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
3164         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
3165         * stdio-common/Makefile (tests): Remove bug15.
3166         (bug15-ENV): Remove macro.
3167         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
3168         anymore.
3169
3170 2012-05-19  Andreas Jaeger  <aj@suse.de>
3171             Roland McGrath  <roland@hack.frob.com>
3172
3173         * manual/contrib.texi: Completely rewritten. It contains now an
3174         alphabetical list of contributors and their contributions.
3175
3176 2012-05-21  Richard Henderson  <rth@twiddle.net>
3177
3178         * misc/getauxval.c (__getauxval): Use unsigned long int.
3179         * misc/sys/auxv.h: Include <sys/cdefs.h>.
3180         (getauxval): Use unsigned long int.
3181
3182 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3183
3184         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3185
3186 2012-05-21  Roland McGrath  <roland@hack.frob.com>
3187
3188         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
3189         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
3190         __alignof__ (long double).
3191
3192 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3193
3194         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3195
3196 2012-05-20  Richard Henderson  <rth@twiddle.net>
3197
3198         * misc/getauxval.c: New file.
3199         * misc/sys/auxv.h: New file.
3200         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
3201         (routines): Add getauxval.
3202         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
3203         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
3204         * elf/dl-sysdep.c (_dl_auxv): Remove.
3205         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
3206         * elf/dl-support.c (_dl_auxv): New variable.
3207         (_dl_aux_init): Initialize it.
3208         * manual/startup.texi (Auxiliary Vector): New node.
3209         * sysdeps/generic/bits/hwcap.h: New file.
3210         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
3211         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
3212         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
3213         * sysdeps/sparc/sysdep.h: ... here.  Include it.
3214         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
3215         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
3216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3217         Update.
3218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
3219         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
3220         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
3221         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
3222         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3223         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3224         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
3225         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
3226
3227 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3228
3229         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3230
3231 2012-05-19  David S. Miller  <davem@davemloft.net>
3232
3233         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3234
3235 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
3236
3237         [BZ #14123]
3238         * math/s_ccosh.c: Include <float.h>
3239         (__ccosh): Avoid internal overflow calculating sinh and cosh
3240         values before multiplying by sin and cos values.
3241         * math/s_ccoshf.c: Likewise.
3242         * math/s_ccoshl.c: Likewise.
3243         * math/s_csin.c: Likewise.
3244         * math/s_csinf.c: Likewise.
3245         * math/s_csinl.c: Likewise.
3246         * math/s_csinh.c: Likewise.
3247         * math/s_csinhf.c: Likewise.
3248         * math/s_csinhl.c: Likewise.
3249         * math/libm-test.inc (ccos_test): Add more tests.
3250         (ccosh_test): Likewise.
3251         (csin_test): Likewise.
3252         (csinh_test): Likewise.
3253         * sysdeps/i386/fpu/libm-test-ulps: Update.
3254         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3255
3256 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
3257
3258         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
3259         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
3260
3261         * sysdeps/x86_64/x32/_itoa.h: Add comment.
3262
3263 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
3264
3265         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
3266         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
3267         * sysdeps/powerpc/soft-fp/Versions: Likewise.
3268         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
3269         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
3270         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
3271         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
3272         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
3273         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
3274         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
3275         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
3276         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
3277         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
3278         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
3279         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
3280         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
3281         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
3282         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
3283         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
3284         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
3285         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
3286         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
3287         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
3288         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
3289         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
3290         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
3291         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
3292         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
3293         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
3294         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
3295         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
3296
3297 2012-05-18  Andreas Jaeger  <aj@suse.de>
3298
3299         * csu/.gitignore: Delete.
3300
3301 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3302
3303         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
3304         (timex): Use __syscall_slong_t.
3305
3306 2012-05-18  Andreas Jaeger  <aj@suse.de>
3307             Carlos O'Donell  <carlos_odonell@mentor.com>
3308
3309         * manual/install.texi (Configuring and compiling): Update
3310         description about files modified in the source directory.
3311         * INSTALL: Regenerated.
3312
3313 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3314
3315         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
3316         value.  Use "or" to set return value to -1.
3317         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
3318         negate return value.
3319
3320 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3321
3322         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
3323         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
3324         failure if the compiler has Graphite support disabled.
3325         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
3326         Likewise.
3327         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
3328         CFLAGS-memmove.c): Likewise.
3329         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
3330         Likewise.
3331
3332 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3333
3334         * sysdeps/x86_64/x32/_itoa.h: New file.
3335
3336         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
3337         getdents system call only if kernel and user dirents have the
3338         same d_ino and d_off.
3339
3340         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
3341         LLONG_MAX != LONG_MAX.
3342         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3343         (_fitoa_word): Likewise.
3344
3345         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
3346         years.
3347         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
3348         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
3349         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
3350
3351         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
3352         include <bits/wordsize.h>.  Check __x86_64__ instead of
3353         __WORDSIZE.
3354         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
3355         if __x86_64__ is defined.  Use anonymous union on fpstate.
3356
3357         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
3358         anonymous union.
3359
3360 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
3361
3362         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
3363         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
3364         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
3365         Refer to _rtld_local_ro instead of _rtld_global_ro.
3366         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
3367         Likewise.
3368         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
3369         Likewise.
3370         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
3371         Likewise.
3372         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
3373         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
3374         of _rtld_global, and rtld_progname instead of _dl_argv[0].
3375
3376         * sysdeps/powerpc/powerpc32/dl-machine.c
3377         (__elf_machine_runtime_setup) [PROF]: Don't reference
3378         _dl_prof_resolve.
3379
3380 2012-05-18  Andreas Jaeger  <aj@suse.de>
3381
3382         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
3383         function only available for GCCs before 3.4 since GCC 3.4
3384         introduced a builtin.
3385         (lrint): Likewise.
3386         (llrintf): Likewise.
3387         (llrint): Likewise.
3388         (fmaxf): Likewise.
3389         (fmax): Likewise.
3390         (fminf): Likewise.
3391         (fmin): Likewise.
3392         (rint): Likewise.
3393         (rintf): Likewise.
3394         (nearbyint): Likewise.
3395         (nearbyintf): Likewise.
3396         (ceil): Likewise.
3397         (ceilf): Likewise.
3398         (floor): Likewise.
3399         (floorf): Likewise.
3400
3401 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3402
3403         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
3404         on both fields and cast pointer to __syscall_ulong_t.
3405
3406         * bits/types.h (__fsword_t): New type.
3407         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
3408         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
3409         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3410         (__FSWORD_T_TYPE): Likewise.
3411         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3412         (__FSWORD_T_TYPE): Likewise.
3413         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3414         (__FSWORD_T_TYPE): Likewise.
3415         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
3416         (__FSWORD_T_TYPE): Likewise.
3417         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
3418         __SWORD_TYPE with __fsword_t.
3419         (statfs64): Likewise.
3420
3421 2012-05-17  David S. Miller  <davem@davemloft.net>
3422
3423         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
3424
3425 2012-05-17  Andreas Jaeger  <aj@suse.de>
3426
3427         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
3428         warning.
3429
3430 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3431
3432         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
3433
3434 2012-05-17  Andreas Jaeger  <aj@suse.de>
3435
3436         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
3437         when it is used.
3438
3439 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
3440
3441         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
3442
3443 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3444
3445         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
3446         * sysdeps/x86_64/tst-mallocalign1.c: New file.
3447
3448 2012-05-17  Andreas Jaeger  <aj@suse.de>
3449             Carlos O'Donell  <carlos_odonell@mentor.com>
3450
3451         [BZ #14059]
3452         * sysdeps/x86_64/multiarch/init-arch.h
3453         (bit_YMM_Usable): Rename to...
3454         (bit_AVX_Usable): ... this.
3455         (bit_FMA4_Usable): New macro.
3456         (bit_XMM_state): New macro.
3457         (bit_YMM_state): New macro.
3458         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
3459         [__ASSEMBLER__] (index_AVX_Usable): ... this.
3460         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
3461         (CPUID_OSXSAVE): New macro.
3462         (CPUID_AVX): New macro.
3463         (CPUID_FMA4): New macro.
3464         (index_YMM_Usable): Rename to...
3465         (index_AVX_Usable): ... this.
3466         (HAS_AVX): Use HAS_ARCH_FEATURE.
3467         (HAS_FMA4): Likewise.
3468         (HAS_YMM_USABLE): Remove.
3469         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3470         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
3471         are present.
3472         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
3473         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
3474         * sysdeps/x86_64/multiarch/Makefile: Likewise.
3475         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
3476         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
3477
3478 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
3479
3480         * math/libm-test.c: Support platforms without multiple rounding modes.
3481         * math/bug-nextafter.c: Support platforms without FP exceptions.
3482         * math/bug-nexttoward.c: Likewise.
3483         * math/test-fenv.c: Likewise.
3484         * math/test-misc.c: Likewise.
3485         * stdlib/bug-getcontext.c: Likewise.
3486
3487 2012-05-17  Andreas Jaeger  <aj@suse.de>
3488
3489         * manual/examples/search.c (critter_cmp): Change signature to
3490         avoid warnings.
3491         * manual/string.texi (Collation Functions): Likewise.
3492
3493 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3494
3495         * bits/types.h: Fold copyright years.
3496         * bits/typesizes.h: Likewise.
3497         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
3498         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
3499         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
3500         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
3501         * time/time.h: Likewise.
3502
3503 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
3504
3505         [BZ #208]
3506         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
3507         in instead of returning them.  Return void.
3508         (__libc_mallinfo): Accumulate over all arenas.
3509         (__malloc_stats): Adjust for change in int_mallinfo interface.
3510
3511 2012-05-16  Roland McGrath  <roland@hack.frob.com>
3512
3513         [BZ #10375]
3514         * configure.in (NM): Add AC_CHECK_TOOL for it.
3515         (libc_extra_cflags): New substituted variable.
3516         Check for -fstack-protector being used implicitly.
3517         * configure: Regenerated.
3518         * config.make.in (config-extra-cflags): New variable,
3519         gets @libc_extra_cflags@.
3520         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
3521
3522         [BZ #10375]
3523         * configure.in: Check for _FORTIFY_SOURCE being predefined.
3524         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
3525         * configure: Regenerated.
3526         * config.make.in (CPPUNDEFS): New substituted variable.
3527         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
3528         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
3529         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
3530
3531 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3532
3533         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
3534         (mq_attr): Use __syscall_slong_t.
3535
3536 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3537
3538         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
3539         Check __x86_64__ instead of __WORDSIZE.
3540         (_STAT_VER_LINUX): Likewise.
3541         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
3542         __syscall_ulong_t and __syscall_slong_t.
3543         (stat64): Likewise.
3544
3545 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3546
3547         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
3548
3549 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3550
3551         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
3552
3553 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3554
3555         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
3556         __syscall_ulong_t.
3557
3558         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
3559         include <bits/wordsize.h>.  Check __x86_64__ instead of
3560         __WORDSIZE.
3561         (greg_t): Use "__extension__ long long int" if __x86_64__ is
3562         defined.
3563         (mcontext_t): Replace "unsigned long" with "unsigned long long".
3564
3565         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
3566         include <bits/wordsize.h>.  Check __x86_64__ instead of
3567         __WORDSIZE.
3568         (user_regs_struct): Use "__extension__ unsigned long long"
3569         instead of "unsigned long" if __x86_64__ is defined.
3570         (user): Likewise.  Pad after pointer field if __ILP32__ is
3571         defined.
3572
3573 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
3574
3575         * configure.in (makeinfo): Require version 4.5 or later.  Allow
3576         versions 5 to 9.
3577         * configure: Regenerated.
3578         * manual/install.texi (texinfo): Increase version requirement to
3579         4.5 or later.
3580         * INSTALL: Regenerated.
3581
3582         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
3583
3584 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3585
3586         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
3587
3588         * sysdeps/x86_64/x32/ffs.c: New file.
3589
3590         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
3591         __syscall_ulong_t.
3592         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
3593         defined.  Use __syscall_ulong_t.
3594         (shminfo): Use __syscall_ulong_t.
3595         (shm_info): Likewise.
3596
3597         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
3598         __syscall_ulong_t.
3599
3600         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
3601         <bits/wordsize.h>.
3602         (msgqnum_t): Use __syscall_ulong_t.
3603         (msglen_t): Likewise.
3604         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
3605         __syscall_ulong_t.
3606
3607         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
3608         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3609
3610         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
3611
3612         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
3613         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
3614
3615         * sysvipc/sys/msg.h (msgbuf): Replace long int with
3616         __syscall_slong_t.
3617
3618         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
3619         include <bits/wordsize.h>.  Check __x86_64__ instead of
3620         __WORDSIZE.
3621
3622         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
3623         "unsigned long long int" if __x86_64__ is defined.
3624         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
3625
3626         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
3627         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3628         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
3629
3630         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
3631         <stdint.h>.
3632         (GET_PC): Cast to uintptr_t first.
3633         (GET_FRAME): Likewise.
3634         (GET_STACK): Likewise.
3635
3636         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
3637         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
3638         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
3639         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
3640         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
3641         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
3642         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
3643         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
3644         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
3645         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
3646         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
3647         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
3648         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3649         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
3650         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
3651         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
3652         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
3653         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
3654         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
3655         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
3656         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
3657         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
3658         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
3659         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
3660         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
3661         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
3662         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
3663         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
3664         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
3665
3666 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
3667
3668         * Makerules (+depfiles): Also collect depfiles from .oS in
3669         $(extra-objs).
3670         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
3671         .oS, $(libnldbl-routines)).
3672
3673         * Makerules (native-compile-mkdep-flags): Define.
3674         * sunrpc/Makefile (extra-objs): Add $(addprefix
3675         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
3676         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
3677         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
3678         calling $(make-target-directory).
3679
3680 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3681
3682         * bits/types.h (__snseconds_t): Removed.
3683         * time/time.h (struct timespec): Replace __snseconds_t with
3684         __syscall_slong_t.
3685         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
3686         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
3687         Likewise.
3688         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3689         (__SNSECONDS_T_TYPE): Likewise.
3690         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3691         (__SNSECONDS_T_TYPE): Likewise.
3692         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3693         (__SNSECONDS_T_TYPE): Likewise.
3694
3695 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3696
3697         * sysdeps/mach/hurd/bits/typesizes.h
3698         (__SYSCALL_SLONG_TYPE): New macro.
3699         (__SYSCALL_ULONG_TYPE): Likewise.
3700
3701 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3702
3703         * bits/types.h (__syscall_slong_t): New type.
3704         (__syscall_ulong_t): Likewise.
3705
3706         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
3707         (__SYSCALL_ULONG_TYPE): Likewise.
3708         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3709         (__SYSCALL_SLONG_TYPE): Likewise.
3710         (__SYSCALL_ULONG_TYPE): Likewise.
3711         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3712         (__SYSCALL_SLONG_TYPE): Likewise.
3713         (__SYSCALL_ULONG_TYPE): Likewise.
3714         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3715         (__SYSCALL_SLONG_TYPE): Likewise.
3716         (__SYSCALL_ULONG_TYPE): Likewise.
3717
3718 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3719
3720         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
3721         Add sigaltstack-offsets.sym.
3722         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
3723         <sigaltstack-offsets.h>.
3724         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
3725         longjmp_msg pointer.
3726         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
3727         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
3728         signal stack.
3729         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
3730
3731 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
3732
3733         * elf/stackguard-macros.h: Remove file.
3734         * sysdeps/generic/stackguard-macros.h: New file.
3735         * sysdeps/i386/stackguard-macros.h: Likewise.
3736         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
3737         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
3738         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
3739         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
3740         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
3741         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
3742         * sysdeps/x86_64/stackguard-macros.h: Likewise.
3743         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
3744         <elf/stackguard-macros.h>.
3745
3746         [BZ #14109]
3747         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
3748         __aligned__ in attribute.
3749         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
3750         (gregset_t): Likewise.
3751
3752 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3753
3754         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
3755         * sysdeps/x86_64/64/Implies-after: Here.  New file.
3756         * sysdeps/x86_64/x32/Implies-after: New file.
3757
3758 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3759
3760         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
3761         and access return value for _dl_profile_fixup.  Use R10_LP to
3762         load frame size.
3763
3764 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3765
3766         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
3767
3768 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3769
3770         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
3771         * sysdeps/x86_64/x32/sysdep.h: New file.
3772
3773 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3774
3775         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
3776         * sysdeps/x86_64/setjmp.S: Likewise.
3777
3778 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3779
3780         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
3781         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
3782         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
3783         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
3784         remove unused global constant.
3785
3786 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
3787
3788         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
3789         include of <not-cancel.h>.
3790
3791 2012-05-15  Roland McGrath  <roland@hack.frob.com>
3792
3793         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
3794
3795 2012-05-15  Jeff Law  <law@redhat.com>
3796             Andreas Jaeger  <aj@suse.de>
3797
3798         [BZ #13594]
3799         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
3800         out from...
3801         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
3802         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
3803         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
3804         code changing __hst_map_handle.map.
3805
3806 2012-05-15  Roland McGrath  <roland@hack.frob.com>
3807
3808         * configure.in (sysnames): Look for Implies-before and Implies-after
3809         files.
3810         * configure: Regenerated.
3811
3812 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3813
3814         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
3815         8-byte data alignment with LP_SIZE alignment.
3816
3817 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3818
3819         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
3820         into R10_LP.
3821
3822 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3823
3824         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
3825
3826 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3827
3828         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
3829         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
3830         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
3831         Likewise.
3832         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3833
3834 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3835
3836         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
3837         (stackinfo_sub_sp): Likewise.
3838
3839 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3840
3841         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
3842         RAX_LP.
3843
3844 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3845
3846         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
3847         into R*_LP.
3848
3849 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3850
3851         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
3852         sizes into R*_LP.
3853
3854 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3855
3856         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
3857
3858 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3859
3860         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
3861         into R11_LP and load __x86_64_shared_cache_size_half into
3862         R8_LP.
3863
3864 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3865
3866         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
3867         R8_LP.
3868
3869 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3870
3871         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
3872         logb for POWER7.
3873         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
3874         logbf for POWER7.
3875         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
3876         logbl for POWER7.
3877         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
3878         powerpc32/power7/fpu/s_logb.c via #include.
3879         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
3880         powerpc32/power7/fpu/s_logbf.c via #include.
3881         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
3882         powerpc32/power7/fpu/s_logbl.c via #include.
3883
3884 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
3885
3886         * README.libm: Remove file.
3887
3888 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3889
3890         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
3891         count for x32.  Use R*_LP and omit operand-size suffix.
3892
3893 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3894
3895         * shlib-versions: Move x86_64-.*-linux.* entries to ...
3896         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
3897         * sysdeps/x86_64/x32/shlib-versions: New file.
3898
3899 2012-05-14  Roland McGrath  <roland@hack.frob.com>
3900
3901         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
3902         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
3903         Use _dl_fatal_printf instead.
3904
3905 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
3906
3907         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
3908         set if not set by the user.  Do not allow for being unset.
3909         * sysdeps/unix/sysv/linux/configure: Regenerated.
3910
3911 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3912
3913         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
3914         the `q' suffix from lea and replace .quad with ASM_ADDR.
3915
3916 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3917
3918         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
3919         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
3920         instead of $17.
3921         (PTR_DEMANGLE): Likewise.
3922
3923 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3924
3925         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
3926         (LP_OP): Likewise.
3927         (ASM_ADDR): Likewise.
3928         (RAX_LP): Likewise.
3929         (RBP_LP): Likewise.
3930         (RBX_LP): Likewise.
3931         (RCX_LP): Likewise.
3932         (RDI_LP): Likewise.
3933         (RSI_LP): Likewise.
3934         (RSP_LP): Likewise.
3935         (R8_LP): Likewise.
3936         (R9_LP): Likewise.
3937         (R10_LP): Likewise.
3938         (R10_LP): Likewise.
3939         (R11_LP): Likewise.
3940         (R12_LP): Likewise.
3941         (R13_LP): Likewise.
3942         (R14_LP): Likewise.
3943         (R15_LP): Likewise.
3944
3945 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3946
3947         * sysdeps/x86_64/x32/dl-machine.h: New file.
3948
3949 2012-05-14  Andreas Jaeger  <aj@suse.de>
3950
3951         * manual/Makefile (subdir): Remove export of subdir.
3952         (all): Remove target.
3953         (.PHONY): Remove all from list.
3954         (mkinstalldirs): Remove.
3955         (.PHONY): Remove installdirs from list.
3956         ($(inst_infodir)/libc.info): Use make-target-directory.
3957         (installdirs): Remove.
3958         (subdir_%): Remove.
3959         (glibc-targets): Remove.
3960         (lib): Remove.
3961         (stubs): Remove.
3962         ($(objpfx)stubs ../po/manual.pot): Remove.
3963         ($(objpfx)stamp%): Remove.
3964         (make-target-directory): Remove.
3965         (subdir_install): Remove.
3966         (routines): Remove.
3967         (aux): Remove.
3968         (sources): Remove.
3969         (objects): Remove.
3970         (headers): Remove.
3971
3972         [BZ #13750]
3973         * manual/.gitignore: Remove, it's not needed anymore.
3974         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
3975         all files in it.
3976         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
3977         directory.
3978         (texis): Renamed to $(objpfx)texis.
3979         (texis-path): New, contains path to generated files.
3980         (chapters.%): Use texis-path for complete path, add extra argument
3981         libc-texinfo.sh.
3982         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
3983         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
3984         (summary,texi, stamp-summary): Use complete path of
3985         files. Generate files in build dir.
3986         (dir-add.texi): Build in build dir.
3987         (libm-err.texi,stamp-libm-err): Likewise.
3988         (version.texi, stamp-version): Likewise.
3989         (.%c.texi): Likewise.
3990         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
3991         (mostlyclean): Remove target.
3992         (realclean): Remove target.
3993         (generated): Add new variable with contents from mostlyclean and
3994         realclean, remove entries duplicated in common-mostlyclean, add
3995         stamp-libm-err and stamp-version.
3996         (generated-dirs): Add libc directory.
3997         ($(inst_infodir)/libc.info): Install files from build dir.
3998
3999         * manual/install.texi (Configuring and compiling): Adjust since
4000         the info files are not part of the tar ball anymore.
4001
4002 2012-05-14  Andreas Jaeger  <aj@suse.de>
4003
4004         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
4005         variable.
4006
4007 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
4008
4009         [BZ #13717]
4010         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4011         to 2.2.0 where earlier.
4012         * sysdeps/unix/sysv/linux/configure: Regenerated.
4013         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
4014         Remove conditional code.
4015         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
4016         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
4017         Remove conditional code.
4018         [!__NR_lchown]: Likewise.
4019         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4020         [__NR_lchown]: Likewise.
4021         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
4022         comment referencing __ASSUME_LCHOWN_SYSCALL.
4023         * sysdeps/unix/sysv/linux/i386/sigaction.c
4024         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4025         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4026         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
4027         Remove conditional code.
4028         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
4029         (__protocol_available): Remove #if 0 code.
4030         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
4031         conditional code.
4032         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
4033         * sysdeps/unix/sysv/linux/kernel-features.h
4034         (__ASSUME_GETCWD_SYSCALL): Don't define.
4035         (__ASSUME_REALTIME_SIGNALS): Likewise.
4036         (__ASSUME_PREAD_SYSCALL): Likewise.
4037         (__ASSUME_PWRITE_SYSCALL): Likewise.
4038         (__ASSUME_POLL_SYSCALL): Likewise.
4039         (__ASSUME_LCHOWN_SYSCALL): Likewise.
4040         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
4041         non-SPARC.
4042         (__ASSUME_SIOCGIFNAME): Don't define.
4043         (__ASSUME_MSG_NOSIGNAL): Likewise.
4044         (__ASSUME_SENDFILE): Define unconditionally.
4045         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
4046         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
4047         conditional code.
4048         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
4049         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
4050         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
4051         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4052         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
4053         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
4054         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
4056         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4057         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
4059         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4060         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
4062         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4063         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
4065         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4066         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
4068         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4069         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
4071         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4072         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
4074         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4075         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
4077         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4078         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4079         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
4080         Remove conditional code.
4081         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4082         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
4083         Remove conditional code.
4084         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4085         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
4086         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
4087         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
4088         Remove conditional code.
4089         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4090         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
4091         Remove conditional code.
4092         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4093         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
4094         Remove conditional code.
4095         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4096         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
4097         Remove conditional code.
4098         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4099         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
4100         Remove conditional code.
4101         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4102         * sysdeps/unix/sysv/linux/sh/pwrite64.c
4103         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4104         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4105         * sysdeps/unix/sysv/linux/sigaction.c
4106         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4107         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4108         * sysdeps/unix/sysv/linux/sigpending.c
4109         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4110         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4111         * sysdeps/unix/sysv/linux/sigprocmask.c
4112         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4113         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4114         * sysdeps/unix/sysv/linux/sigsuspend.c
4115         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4116         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4117         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4118         (__libc_missing_rt_sigs): Remove.
4119         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
4120         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
4121         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
4122         Remove conditional code.
4123         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
4124         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
4125         return 1.
4126         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
4127         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
4128         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
4129         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
4130
4131 2012-05-14  Andreas Jaeger  <aj@suse.de>
4132
4133         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
4134         it's not used in glibc.
4135         (__coshm1): Likewise.
4136         (__acosh1p): Likewise.
4137         (__sgn): Likewise.
4138
4139         * manual/string.texi (Copying and Concatenation): Add missing
4140         variable in concat example.
4141         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4142
4143 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4144
4145         [BZ #14103]
4146         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
4147         __builtin_clzl with __builtin_clzll.
4148
4149 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4150
4151         [BZ #14104]
4152         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
4153         libc_freeres_ptr.
4154
4155 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4156
4157         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
4158         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
4159         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
4160         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
4161
4162 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
4163
4164         * NEWS: Update ia64 info.
4165
4166 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
4167
4168         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
4169         used as bcopy.
4170
4171 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
4172
4173         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
4174         * sysdeps/unix/syscalls.list (dup3): Likewise.
4175         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
4176         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
4177
4178 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4179
4180         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
4181         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
4182
4183 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4184
4185         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
4186         thread pointer.
4187         (TLS_IE): Use mov/add instead of movq/addq to load thread
4188         pointer.
4189         (TLS_GD_PREFIX): New.
4190         (TLS_GD): Use it.
4191
4192 2012-05-11  David S. Miller  <davem@davemloft.net>
4193
4194         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
4195         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
4196         (_FPU_SETCW): Likewise.
4197
4198 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4199
4200         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
4201         is 32-byte aligned.
4202
4203 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
4204
4205         [BZ #11837]
4206         * iconvdata/gb18030.c: Update tables.
4207         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
4208         characters specially.
4209         (BODY for TO_LOOP): Add encoding of missing ranges.
4210
4211 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
4212
4213         [BZ #13673]
4214         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
4215         * sysdeps/mach/hurd/dup3.c: Likewise.
4216         * sysdeps/mach/hurd/readlinkat.c: Likewise.
4217         * sysdeps/powerpc/memmove.c:: Likewise.
4218
4219 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4220
4221         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
4222         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
4223
4224 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4225
4226         * elf/elf.h (R_X86_64_RELATIVE64): New.
4227         (R_X86_64_NUM): Updated.
4228         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4229         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
4230         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
4231         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
4232         tst-quad1pie tst-quad2pie
4233         (modules-names): Add tst-quadmod1 tst-quadmod2.
4234         ($(objpfx)tst-quad1): New dependency.
4235         ($(objpfx)tst-quad2): Likewise.
4236         ($(objpfx)tst-quad1pie): Likewise.
4237         ($(objpfx)tst-quad2pie): Likewise.
4238         * sysdeps/x86_64/tst-quad1.c: New file.
4239         * sysdeps/x86_64/tst-quad1pie.c: New file.
4240         * sysdeps/x86_64/tst-quad2.c: Likewise.
4241         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
4242         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
4243         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
4244         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
4245         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
4246
4247 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4248
4249         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
4250         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
4251         * streams/stropts.h (t_scalar_t): Define type.
4252
4253         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
4254         (_PATH_PRESERVE): Set to "/var/lib".
4255         (_PATH_RWHODIR): Set to "/var/spool/rwho".
4256
4257         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
4258         instead of int.
4259
4260         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
4261         if __dir_mkfile succeeded.
4262
4263         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
4264         checking for _hurd_dtablesize.  Unlock it right after having
4265         finished _hurd_dtable allocation.
4266
4267 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4268
4269         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
4270         * sysdeps/mach/hurd/configure: Regenerated.
4271         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
4272         special-casing to...
4273         * sysdeps/gnu/configure.in: ... this new file.
4274         * sysdeps/unix/sysv/linux/configure: Regenerated.
4275         * sysdeps/gnu/configure: New generated file.
4276
4277         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
4278         for Linux: use nsec instead of usec, as well as:
4279         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
4280         members of type struct timespec.
4281         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
4282         New macros.
4283         (struct stat64): Likewise.
4284         (_STATBUF_ST_NSEC): New macro.
4285         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
4286
4287         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4288         __strtoul_internal rather than strtoul.
4289
4290 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4291
4292         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
4293         and reject them.
4294
4295 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4296
4297         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
4298         which preserves existing values.
4299         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
4300
4301 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4302
4303         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
4304         TIMEOUT values.  Return EINVAL for NFDS values either negative or
4305         greater than FD_SETSIZE.
4306
4307 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4308
4309         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
4310         allocated, call __vm_protect to finish enabling the existing space, and
4311         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
4312         allocate the remainder.
4313
4314 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4315
4316         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
4317         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
4318
4319 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4320
4321         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
4322         sysdeps/mach/hurd/readlink.c.
4323
4324         * posix/tst-sysconf.c (posix_options): Only use
4325         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
4326         _POSIX_SYNCHRONIZED_IO when they are defined
4327         * sysdeps/mach/hurd/bits/posix_opt.h:
4328         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
4329         (_XOPEN_REALTIME): Undefine macro.
4330         (_XOPEN_REALTIME_THREADS): Undefine macro.
4331         (_XOPEN_SHM): Undefine macro.
4332         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
4333         macro to -1.
4334         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
4335         macro to -1.
4336         (_POSIX_ASYNC_IO): Undefine macro.
4337         (_POSIX_PRIORITIZED_IO): Undefine macro.
4338         (_POSIX_SPIN_LOCKS): Define macro to -1.
4339
4340         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
4341         SA_NODEFER, SA_RESETHAND.
4342         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
4343         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
4344         F_DUPFD_CLOEXEC.
4345
4346 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4347
4348         * elf/Makefile (pldd-modules): Define unconditionally.
4349
4350 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4351
4352         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
4353
4354 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4355
4356         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
4357         Return ENOENT when name is empty.
4358         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
4359
4360 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4361
4362         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
4363
4364         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
4365
4366 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4367
4368         Fix mlock in all cases except non-readable pages.
4369         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
4370         instead of VM_PROT_ALL as parameter to __vm_wire function.
4371
4372         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
4373         (__mkdir): When path is `/', just fail with EEXIST.
4374         * sysdeps/mach/hurd/mkdirat.c: Likewise.
4375
4376 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4377
4378         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
4379         <sys/uio.h> (for writev).
4380         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
4381         and <sys/param.h> (for MIN).
4382
4383 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4384
4385         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
4386         REQUESTED_TIME.  Properly set the remaining time and return EINTR
4387         if interrupted.
4388
4389 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4390
4391         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
4392         Depend on against $(link-rpcuserlibs).
4393
4394 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4395
4396         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
4397         (__libc_stack_end): Do not use attribute_relro.
4398         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
4399         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
4400         to libthread-provided value.
4401         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
4402         attribute_relro.
4403
4404 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4405
4406         [BZ #3748]
4407         * bits/libc-lock.h (__libc_once_get): New macro.
4408         * sysdeps/mach/bits/libc-lock.h: Likewise.
4409         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
4410         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
4411         instead of using implementation details.
4412
4413         * libio/fileops.c: Unconditionally include <kernel-features.h>.
4414         * libio/freopen.c: Likewise.
4415         * libio/freopen64.c: Likewise.
4416         * misc/syslog.c: Likewise.
4417         * nscd/connections.c: Likewise.
4418         * nscd/netgroupcache.c: Likewise.
4419         * sysdeps/posix/getcwd.c: Likewise.
4420
4421 2012-05-10  Roland McGrath  <roland@hack.frob.com>
4422
4423         * math/w_ilogbf.c: Add #include <limits.h>.
4424
4425 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4426
4427         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
4428         path instead of returning without unlocking.
4429
4430         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
4431         immediate-write ioctls.
4432         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
4433
4434 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4435
4436         * sysdeps/mach/hurd/i386/init-first.c (init): Use
4437         __builtin_frame_address instead of making assumptions about the
4438         location of the return address relative to DATA.  Force early load of
4439         the return address.
4440         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
4441         __builtin_frame_address.
4442
4443         dup3 for GNU Hurd.
4444         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
4445         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
4446         implement dup3 and do some further code clean-ups.
4447         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
4448         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
4449
4450 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4451
4452         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
4453
4454         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
4455         HURD_CRITICAL_END around holding _hurd_dtable_lock.
4456         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
4457         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
4458         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
4459         d->port.lock.
4460
4461         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
4462         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
4463         when handler == SIG_ERR, not when handler != SIG_ERR.
4464
4465 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4466
4467         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
4468         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
4469         definitions.
4470
4471         accept4 for GNU Hurd.
4472         * include/sys/socket.h (__libc_accept4): New prototype.
4473         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
4474         to implement __libc_accept4.
4475         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
4476         __libc_accept4.
4477         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
4478
4479         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
4480         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
4481         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
4482         signal-defines.sym.
4483
4484 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4485
4486         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
4487
4488 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4489
4490         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
4491         assertion on O_CLOEXEC flag.
4492         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
4493         * hurd/intern-fd.c: Likewise.
4494         * hurd/port2fd.c: Likewise.
4495
4496 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4497
4498         [BZ #3906]
4499         * bits/in.h (IPV6_PKTINFO): Define new macro.
4500         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
4501
4502 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4503
4504         [BZ #13954]
4505         [BZ #13955]
4506         [BZ #13956]
4507         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
4508         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4509         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
4510         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4511         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4512         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4513         * math/libm-test.inc (logb_test) : Additional logb tests.
4514
4515 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
4516             Andreas Jaeger  <aj@suse.de>
4517
4518         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
4519         * configure: Regenerated.
4520         * config.h.in (LINK_OBSOLETE_RPC): New macro.
4521         * config.make.in (link-obsolete-rpc): New substituted variable.
4522         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
4523         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
4524         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4525         (shared-only-routines): Don't set it under [link-obsolete-rpc],
4526         so that libc.a contains the symbols.
4527         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4528         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
4529         * sunrpc/auth_none.c: Likewise.
4530         * sunrpc/auth_unix.c: Likewise.
4531         * sunrpc/authdes_prot.c: Likewise.
4532         * sunrpc/authuxprot.c: Likewise.
4533         * sunrpc/clnt_gen.c: Likewise.
4534         * sunrpc/clnt_perr.c: Likewise.
4535         * sunrpc/clnt_raw.c: Likewise.
4536         * sunrpc/clnt_simp.c: Likewise.
4537         * sunrpc/clnt_tcp.c: Likewise.
4538         * sunrpc/clnt_udp.c: Likewise.
4539         * sunrpc/clnt_unix.c: Likewise.
4540         * sunrpc/des_crypt.c: Likewise.
4541         * sunrpc/des_soft.c: Likewise.
4542         * sunrpc/get_myaddr.c: Likewise.
4543         * sunrpc/key_call.c: Likewise.
4544         * sunrpc/key_prot.c: Likewise.
4545         * sunrpc/netname.c: Likewise.
4546         * sunrpc/pm_getmaps.c: Likewise.
4547         * sunrpc/pm_getport.c: Likewise.
4548         * sunrpc/pmap_clnt.c: Likewise.
4549         * sunrpc/pmap_prot.c: Likewise.
4550         * sunrpc/pmap_prot2.c: Likewise.
4551         * sunrpc/pmap_rmt.c: Likewise.
4552         * sunrpc/publickey.c: Likewise.
4553         * sunrpc/rpc_cmsg.c: Likewise.
4554         * sunrpc/rpc_common.c: Likewise.
4555         * sunrpc/rpc_dtable.c: Likewise.
4556         * sunrpc/rpc_prot.c: Likewise.
4557         * sunrpc/rpc_thread.c: Likewise.
4558         * sunrpc/rtime.c: Likewise.
4559         * sunrpc/svc.c: Likewise.
4560         * sunrpc/svc_auth.c: Likewise.
4561         * sunrpc/svc_raw.c: Likewise.
4562         * sunrpc/svc_run.c: Likewise.
4563         * sunrpc/svc_tcp.c: Likewise.
4564         * sunrpc/svc_udp.c: Likewise.
4565         * sunrpc/svc_unix.c: Likewise.
4566         * sunrpc/svcauth_des.c: Likewise.
4567         * sunrpc/xcrypt.c: Likewise.
4568         * sunrpc/xdr.c: Likewise.
4569         * sunrpc/xdr_array.c: Likewise.
4570         * sunrpc/xdr_float.c: Likewise.
4571         * sunrpc/xdr_intXX_t.c: Likewise.
4572         * sunrpc/xdr_mem.c: Likewise.
4573         * sunrpc/xdr_rec.c: Likewise.
4574         * sunrpc/xdr_ref.c: Likewise.
4575         * sunrpc/xdr_sizeof.c: Likewise.
4576         * sunrpc/xdr_stdio.c: Likewise.
4577
4578 2012-05-10  Roland McGrath  <roland@hack.frob.com>
4579
4580         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
4581         change.  Update copyright years.
4582
4583 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
4584
4585         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
4586
4587 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
4588             Joseph Myers  <joseph@codesourcery.com>
4589             Paul Pluzhnikov  <ppluzhnikov@google.com>
4590
4591         [BZ #14012]
4592         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
4593         requiring rpcgen.
4594         [cross-compiling] (extra-libs): Likewise.
4595         [cross-compiling] (extra-libs-others): Likewise.
4596         [cross-compiling] (librpcsvc-routines): Likewise.
4597         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
4598         [cross-compiling] (omit-deps): Likewise.
4599         (sunrpc-CPPFLAGS): New variable.
4600         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
4601         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
4602         (cross-rpcgen-objs): New variable.
4603         (extra-objs): Append $(cross-rpcgen-objs).
4604         ($(cross-rpcgen-objs)): New rule.
4605         ($(objpfx)cross-rpcgen): Likewise.
4606         (rpcgen-cmd): Define to use $(built-program-file).  Expand
4607         comment.
4608         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
4609         ($(objpfx)x%.stmp): Likewise.
4610         * sunrpc/proto.h [IS_IN_build] (_): Define.
4611         [IS_IN_build] (_libc_intl_domainname): Likewise.
4612
4613 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4614
4615         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
4616         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
4617         and R_X86_64_TPOFF64.
4618
4619 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
4620
4621         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
4622         sysdeps/unix/sysv/syscalls.list.
4623         (stime): Likewise.
4624         (utime): Likewise.
4625         * sysdeps/unix/sysv/syscalls.list: Remove file.
4626
4627 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4628
4629         [BZ #3440]
4630         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
4631         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
4632         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
4633         (__LC_IDENTIFICATION): Make these macros useful in #if
4634         expressions, as required by C99.
4635
4636 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
4637
4638         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
4639         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
4640         after this.
4641
4642 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
4643
4644         * stdlib/longlong.h: Updated from GCC.
4645
4646 2012-05-09  Andreas Jaeger  <aj@suse.de>
4647
4648         * nscd/nscd.c (run_modes): Make named enum, reorder so that
4649         default is first entry.
4650         (run_mode): Set type.
4651         (main): Remove informal message about syslog.
4652         (options): Fix typo.
4653
4654         [BZ #14053]
4655         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
4656         to asm.
4657         (lrint): Likewise.
4658         (llrintf): Likewise.
4659         (llrint): Likewise.
4660         (rint): Likewise.
4661         (rintf): Likewise.
4662         (nearbyint): Likewise.
4663         (nearbyintf): Likewise.
4664
4665 2012-05-09  Andreas Jaeger  <aj@suse.de>
4666             Pedro Alves  <palves@redhat.com>
4667
4668         * nscd/nscd.c (run_mode): Use enum.
4669         (main): Cleanup coding style issue.
4670
4671 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
4672             Andreas Jaeger  <aj@suse.de>
4673
4674         * nscd/nscd.c (go_background): Replaced with...
4675         (run_mode): ... this.
4676         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
4677         (options): Add -F --foreground.
4678         (main): Implement it.
4679         (parse_opt): Parse it.
4680
4681 2012-05-09  Andreas Jaeger  <aj@suse.de>
4682
4683         [BZ #14083]
4684         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
4685         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
4686         -Wconversion warning.
4687         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
4688         Likewise.
4689
4690 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
4691
4692         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
4693         == 0.
4694         (LC_ALL): Use macro-int-constant.
4695         (LC_COLLATE): Likewise.
4696         (LC_CTYPE): Likewise.
4697         (LC_MESSAGES): Likewise.
4698         (LC_MONETARY): Likewise.
4699         (LC_NUMERIC): Likewise.
4700         (LC_TIME): Likewise.
4701         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
4702         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
4703         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4704         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
4705         Specify type.
4706         [C99-based standards] (float_t): Expect type.
4707         [C99-based standards] (double_t): Expect type.
4708         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
4709         type.
4710         [C99-based standards] (HUGE_VALL): Likewise.
4711         [C99-based standards] (INFINITY): Likewise.
4712         [C99-based standards] (NAN): Likewise.
4713         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
4714         [C99-based standards] (FP_NAN): Likewise.
4715         [C99-based standards] (FP_NORMAL): Likewise.
4716         [C99-based standards] (FP_SUBNORMAL): Likewise.
4717         [C99-based standards] (FP_ZERO): Likewise.
4718         [C99-based standards] (FP_FAST_FMA): Use
4719         optional-macro-int-constant.  Specify type.  Require == 1.
4720         [C99-based standards] (FP_FAST_FMAF): Likewise.
4721         [C99-based standards] (FP_FAST_FMAL): Likewise.
4722         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
4723         [C99-based standards] (FP_ILOGBNAN): Likewise.
4724         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
4725         Specify type.
4726         [C99-based standards] (MATH_ERREXCEPT): Likewise.
4727         [C99-based standards] (math_errhandling): Specify type.
4728         [ISO99 || ISO11] (signgam): Do not allow.
4729         [non-C99-based standards] (copysignf): Do not allow.
4730         [non-C99-based standards] (exp2f): Likewise.
4731         [non-C99-based standards] (log2f): Likewise.
4732         [non-C99-based standards] (modff): Allow.
4733         [non-C99-based standards] (erff): Do not allow.
4734         [non-C99-based standards] (erfcf): Likewise.
4735         [non-C99-based standards] (gammaf): Likewise.
4736         [non-C99-based standards] (hypotf): Likewise.
4737         [non-C99-based standards] (j0f): Likewise.
4738         [non-C99-based standards] (j1f): Likewise.
4739         [non-C99-based standards] (jnf): Likewise.
4740         [non-C99-based standards] (lgammaf): Likewise.
4741         [non-C99-based standards] (tgammaf): Likewise.
4742         [non-C99-based standards] (y0f): Likewise.
4743         [non-C99-based standards] (y1f): Likewise.
4744         [non-C99-based standards] (ynf): Likewise.
4745         [non-C99-based standards] (isnanf): Likewise.
4746         [non-C99-based standards] (acoshf): Likewise.
4747         [non-C99-based standards] (asinhf): Likewise.
4748         [non-C99-based standards] (atanhf): Likewise.
4749         [non-C99-based standards] (cbrtf): Likewise.
4750         [non-C99-based standards] (expm1f): Likewise.
4751         [non-C99-based standards] (ilogbf): Likewise.
4752         [non-C99-based standards] (log1pf): Likewise.
4753         [non-C99-based standards] (logbf): Likewise.
4754         [non-C99-based standards] (nextafterf): Likewise.
4755         [non-C99-based standards] (remainderf): Likewise.
4756         [non-C99-based standards] (rintf): Likewise.
4757         [non-C99-based standards] (scalbf): Likewise.
4758         [non-C99-based standards] (copysignl): Likewise.
4759         [non-C99-based standards] (exp2l): Likewise.
4760         [non-C99-based standards] (log2l): Likewise.
4761         [non-C99-based standards] (modfl): Allow.
4762         [non-C99-based standards] (erfl): Do not allow.
4763         [non-C99-based standards] (erfcl): Likewise.
4764         [non-C99-based standards] (gammal): Likewise.
4765         [non-C99-based standards] (hypotl): Likewise.
4766         [non-C99-based standards] (j0l): Likewise.
4767         [non-C99-based standards] (j1l): Likewise.
4768         [non-C99-based standards] (jnl): Likewise.
4769         [non-C99-based standards] (lgammal): Likewise.
4770         [non-C99-based standards] (tgammal): Likewise.
4771         [non-C99-based standards] (y0l): Likewise.
4772         [non-C99-based standards] (y1l): Likewise.
4773         [non-C99-based standards] (ynl): Likewise.
4774         [non-C99-based standards] (isnanl): Likewise.
4775         [non-C99-based standards] (acoshl): Likewise.
4776         [non-C99-based standards] (asinhl): Likewise.
4777         [non-C99-based standards] (atanhl): Likewise.
4778         [non-C99-based standards] (cbrtl): Likewise.
4779         [non-C99-based standards] (expm1l): Likewise.
4780         [non-C99-based standards] (ilogbl): Likewise.
4781         [non-C99-based standards] (log1pl): Likewise.
4782         [non-C99-based standards] (logbl): Likewise.
4783         [non-C99-based standards] (nextafterl): Likewise.
4784         [non-C99-based standards] (remainderl): Likewise.
4785         [non-C99-based standards] (rintl): Likewise.
4786         [non-C99-based standards] (scalbl): Likewise.
4787         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4788         [non-C99-based standards] (FP_*): Do not allow.
4789         [C99-based standards] (FP_*): Change to
4790         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
4791         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4792         allow.
4793         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
4794         (SIG_ERR): Likewise.
4795         [X/Open-based standards] (SIG_HOLD): Likewise.
4796         (SIG_IGN): Likewise.
4797         (SIGABRT): Use macro-int-constant.  Specify type.  Require
4798         positive value.
4799         (SIGFPE): Likewise.
4800         (SIGILL): Likewise.
4801         (SIGINT): Likewise.
4802         (SIGSEGV): Likewise.
4803         (SIGTER): Likewise.
4804         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
4805         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
4806         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
4807         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
4808         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
4809         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
4810         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
4811         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
4812         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
4813         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
4814         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
4815         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
4816         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
4817         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
4818         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
4819         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
4820         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
4821         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
4822         [X/Open-based standards] (SIGTRAP): Likewise.
4823         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
4824         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
4825         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
4826         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
4827         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4828         allow.
4829
4830 2012-05-08  Ian Wienand  <ianw@vmware.com>
4831
4832         [BZ #14080]
4833         * time/tzset.c (__tzset_parse_tz): Update default rules for
4834         daylight time changes in the Energy Policy Act of 2005.
4835
4836 2012-05-09  Andreas Jaeger  <aj@suse.de>
4837
4838         [BZ #13983]
4839         * elf/ldconfig.c (parse_conf): Change string to make clear that
4840         ldconfig only issued a warning if ld.so.conf does not exist.
4841
4842 2012-05-08  David S. Miller  <davem@davemloft.net>
4843
4844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
4845         movxtod instead of popping the value on the stack.
4846
4847         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4848
4849 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
4850
4851         * config.h.in: Add HAVE_ARM_PCS_VFP.
4852
4853 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
4854
4855         [BZ #13979]
4856         * include/features.h: Warn if user requests __FORTIFY_SOURCE
4857         checking but the checks are disabled for any reason.
4858
4859 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
4860
4861         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
4862         and ELF64_R_TYPE with ELFW(R_TYPE).
4863
4864 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
4865
4866         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
4867         (ulimit): Likewise.
4868
4869         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
4870         (settimeofday): Likewise.
4871
4872 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
4873
4874         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
4875         a struct th_u2 inside the union, and move tu_block/tu_code into
4876         a new th_u3 union of tu_block/tu_code inside of that.  Move
4877         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
4878         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
4879         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
4880         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
4881         (th_stuff): Change to th_u1.tu_stuff.
4882         (th_data): Define.
4883         (th_msg): Change to th_u1.th_u2.tu_data.
4884
4885 2012-05-07  David S. Miller  <davem@davemloft.net>
4886
4887         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4888
4889         [BZ #14074]
4890         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
4891         (SETUP_PIC_REG): Use it.
4892         (SETUP_PIC_REG_LEAF): Use it.
4893
4894 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
4895
4896         [BZ #13885]
4897         [BZ #13923]
4898         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4899         USE_AS_EXPM1L.
4900         (EXPL_FINITE): Likewise.
4901         (FLDLOG): Likewise.
4902         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
4903         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
4904         e_expl.S.
4905         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4906         USE_AS_EXPM1L.
4907         (EXPL_FINITE): Likewise.
4908         (FLDLOG): Likewise.
4909         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
4910         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
4911         e_expl.S.
4912         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
4913         test of -max_value argument for long double.
4914         * sysdeps/i386/fpu/libm-test-ulps: Update.
4915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4916
4917 2012-05-06  David S. Miller  <davem@davemloft.net>
4918
4919         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
4920         quad soft-float symbols whose references which are compiler
4921         generated.
4922         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
4923
4924 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
4925
4926         [BZ #13884]
4927         [BZ #13914]
4928         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4929         USE_AS_EXP10L.
4930         (EXPL_FINITE): Likewise.
4931         (FLDLOG): Likewise.
4932         (c0): Likewise.
4933         (c1): Likewise.
4934         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
4935         Adjust comments for base varying.
4936         (__expl_finite): Change alias to EXPL_FINITE.
4937         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
4938         e_expl.S.
4939         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
4940         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4941         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
4942         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
4943         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
4944         USE_AS_EXP10L.
4945         (EXPL_FINITE): Likewise.
4946         (FLDLOG): Likewise.
4947         (c0): Likewise.
4948         (c1): Likewise.
4949         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
4950         Adjust comments for base varying.
4951         (__expl_finite): Change alias to EXPL_FINITE.
4952         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
4953         tests for bugs.
4954         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4955
4956         [BZ #14064]
4957         * math/libm-test.inc (check_float_internal): Correct ulp
4958         calculation for subnormal expected results.
4959
4960 2012-05-06  Andreas Jaeger  <aj@suse.de>
4961
4962         * Makeconfig (+math-flags): New, set to -frounding-math.
4963         (+cflags): Add +math-flags so that all of glibc gets compiled with
4964         it.
4965
4966         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
4967
4968 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
4969
4970         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
4971         Disable one test.
4972
4973         [BZ #13787]
4974         [BZ #13922]
4975         [BZ #14036]
4976         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
4977         (__ieee754_expl): Allow for and saturate large arguments.
4978         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
4979         (u_threshold): Likewise.
4980         (__exp): Call __ieee754_exp before checking for overflow and
4981         underflow.
4982         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
4983         (u_threshold): Likewise.
4984         (__expf): Call __ieee754_expf before checking for overflow and
4985         underflow.
4986         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
4987         (u_threshold): Likewise.
4988         (__expl): Call __ieee754_expl before checking for overflow and
4989         underflow.
4990         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
4991         (__ieee754_expl): Allow for and saturate large arguments.
4992         * math/libm-test.inc (exp_test): Add another test.  Do not allow
4993         missing overflow exception on overflow.
4994         (expm1_test): Do not allow missing overflow exception on overflow.
4995
4996         * sysdeps/i386/fpu/e_expl.c: Move to ...
4997         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
4998         rather than using inline asm.
4999         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
5000         * sysdeps/x86_64/fpu/e_expl.S: Copy from
5001         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
5002
5003         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
5004         (nice): Likewise.
5005         (poll): Likewise.
5006         (signal): Likewise.
5007         (time): Likewise.
5008         (times): Likewise.
5009
5010 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5011
5012         * sysdeps/unix/syscalls.list (adjtime): Add entry from
5013         sysdeps/unix/common/syscalls.list.
5014         (fchmod): Likewise.
5015         (fchown): Likewise.
5016         (ftruncate): Likewise.
5017         (getrusage): Likewise.
5018         (gettimeofday): Likewise.
5019         (setpgid): Likewise.
5020         (setregid): Likewise.
5021         (setreuid): Likewise.
5022         (sigaction): Likewise.
5023         (truncate): Likewise.
5024         (vhangup): Likewise.
5025         * sysdeps/unix/common/syscalls.list: Remove file.
5026         * sysdeps/unix/bsd/Implies: Don't include unix/common.
5027         * sysdeps/unix/sysv/linux/Implies: Likewise.
5028
5029 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
5030
5031         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
5032         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
5033         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
5034         Moved to ...
5035         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
5036         Here.
5037         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
5038         to ...
5039         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
5040         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
5041         to ...
5042         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
5043         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
5044         to ...
5045         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
5046         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
5047         to ...
5048         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
5049         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
5050         to ...
5051         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
5052         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
5053         to ...
5054         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
5055         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
5056         to ...
5057         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
5058         Here.
5059         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
5060         to ...
5061         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
5062         Here.
5063         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
5064         to ...
5065         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
5066         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
5067         Moved to ...
5068         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
5069         Here.
5070         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
5071         to ...
5072         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
5073
5074 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5075
5076         * sysdeps/unix/common/bits/dirent.h: Remove file.
5077         * sysdeps/unix/common/bits/fcntl.h: Likewise.
5078
5079         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
5080         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
5081         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
5082         * sysdeps/unix/bsd/isatty.c: Likewise.
5083         * sysdeps/unix/bsd/tcdrain.c: Likewise.
5084         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
5085         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
5086
5087 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5088
5089         [BZ #13563]
5090         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
5091         long double comparison inaccuracies.
5092         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5093         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5094
5095 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
5096
5097         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
5098         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
5099
5100 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5101
5102         [BZ #14049]
5103         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
5104         nonzero digits before rounding a hex value.
5105         * stdlib/tst-strtod.c (tests): Add another test.
5106
5107 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5108
5109         * sysdeps/s390/fpu/libm-test-ulps: Update.
5110
5111 2012-05-03  Andreas Jaeger  <aj@suse.de>
5112
5113         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
5114         does not get optimized out.
5115         (malloc_opt_barrier): New.
5116
5117 2012-05-03  Andreas Jaeger  <aj@suse.de>
5118             Roland McGrath  <roland@hack.frob.com>
5119
5120         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
5121         intermediate file deletion.
5122         (generated): Add .symlist files.
5123
5124 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
5125
5126         [BZ #13775]
5127         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
5128         Redirect under this condition.
5129         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
5130         [__USE_GNU] (__dprintf_chk): Not under this condition.
5131         [__USE_GNU] (__vdprintf_chk): Likewise.
5132         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
5133         under this condition.
5134         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
5135         [__USE_XOPEN2K8] (dprintf): Define under this condition.
5136         [__USE_XOPEN2K8] (vdprintf): Likewise.
5137         [__USE_GNU] (__dprintf_chk): Not under this condition.
5138         [__USE_GNU] (__vdprintf_chk): Likewise.
5139         [__USE_GNU] (dprintf): Likewise.
5140         [__USE_GNU] (vdprintf): Likewise.
5141
5142 2012-05-03  Roland McGrath  <roland@hack.frob.com>
5143
5144         * elf/Makefile (common-generated): Set this instead of generated for
5145         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
5146         $(all-built-dso)-derived lists.
5147
5148 2012-05-03  Andreas Jaeger  <aj@suse.de>
5149
5150         * sysdeps/i386/fpu/libm-test-ulps: Update.
5151
5152         * FAQ: Removed.
5153         * FAQ.in: Likewise.
5154         * scripts/gen-FAQ.pl: Likewise.
5155         * manual/install.texi (Installation): Point to online location of
5156         FAQ.
5157         * Makefile (files-for-dist): Remove FAQ.
5158         (FAQ): Remove.
5159
5160 2012-05-02  Allan McRae  <allan@archlinux.org>
5161
5162         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
5163         (LDFLAGS-reldepmod5.so): Likewise.
5164         (LDFLAGS-reldep6mod1.so): Likewise.
5165         (LDFLAGS-reldep6mod4.so): Likewise.
5166         (LDFLAGS-reldep8mod3.so): Likewise.
5167         (LDFLAGS-unload4mod1.so): Likewise.
5168         (LDFLAGS-unload4mod2.so): Likewise.
5169         (LDFLAGS-tst-initorder): Likewise.
5170         (LDFLAGS-tst-initordera2.so): Likewise.
5171         (LDFLAGS-tst-initordera3.so): Likewise.
5172         (LDFLAGS-tst-initordera4.so): Likewise.
5173         (LDFLAGS-tst-initorderb2.so): Likewise.
5174         (LDFLAGS-noload): Likewise.
5175         (LDFLAGS-next): Likewise.
5176         (LDFLAGS-order2mod1.so): Likewise.
5177         (LDFLAGS-order2mod2.so): Likewise.
5178         (LDFLAGS-tst-initorder2): Likewise.
5179         (LDFLAGS-tst-initorder2a.so): Likewise.
5180         (LDFLAGS-tst-initorder2b.so): Likewise.
5181         (LDFLAGS-tst-initorder2c.so): Likewise.
5182         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
5183
5184 2012-05-02  David S. Miller  <davem@davemloft.net>
5185
5186         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5187
5188 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
5189
5190         [BZ #14055]
5191         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
5192
5193 2012-05-02  Andreas Jaeger  <aj@suse.de>
5194
5195         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
5196         since we manipulate rounding mode.
5197         (CPPFLAGS-test-idouble.c): Likewise.
5198         (CPPFLAGS-test-ifloat.c): Likewise.
5199         (CFLAGS-test-ldouble.c): Likewise.
5200         (CFLAGS-test-double.c): Likewise.
5201         (CFLAGS-test-float.c): Likewise.
5202         (CFLAGS-test-misc.c): Likewise.
5203         (CFLAGS-test-test-fenv.c): Likewise.
5204
5205 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5206
5207         [BZ #2550]
5208         [BZ #2570]
5209         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
5210         comparisons to determine direction to adjust input.
5211
5212 2012-05-01  Roland McGrath  <roland@hack.frob.com>
5213
5214         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
5215         output to the target.
5216
5217         * scripts/localplt.awk: New file.
5218         * elf/Makefile ($(objpfx)check-localplt): Target removed.
5219         (check-localplt-CFLAGS): Variable removed.
5220         ($(all-built-dso:=.jmprel)): New static pattern rule.
5221         (generated): Add those targets.
5222         (localplt-built-dso): New variable.
5223         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
5224
5225         * elf/check-localplt.c: File removed.
5226
5227         * scripts/check-execstack.awk: New file.
5228         * elf/Makefile ($(objpfx)check-execstack): Target removed.
5229         (check-execstack-CFLAGS): Variable removed.
5230         ($(objpfx)check-execstack.h): Target removed.
5231         ($(objpfx)execstack-default): New target.
5232         (generated): Add that instead of check-execstack.h.
5233         ($(all-built-dso:=.phdr)): New static pattern rule.
5234         (generated): Add those targets.
5235         * elf/check-execstack.c: File removed.
5236
5237         * scripts/check-textrel.awk: New file.
5238         * elf/Makefile ($(objpfx)check-textrel): Target removed.
5239         (check-textrel-CFLAGS): Variable removed.
5240         (all-built-dso): Use := to define.o
5241         ($(all-built-dso:=.dyn)): New static pattern rule.
5242         (generated): Add those targets.
5243         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
5244         * config.make.in (READELF): New substituted variable.
5245         * elf/check-textrel.c: File removed.
5246
5247 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
5248
5249         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5250         allow.
5251         * conform/data/ctype.h-data [C99-based standards] (isblank):
5252         Expect function.
5253         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
5254         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
5255         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5256         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
5257         Specify type.  Require positive value.
5258         (EILSEQ): Likewise.
5259         (ERANGE): Likewise.
5260         [ISO || POSIX] (EILSEQ): Do not expect.
5261         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
5262         Specify type.  Require positive value.
5263         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
5264         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
5265         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
5266         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
5267         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
5268         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
5269         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
5270         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
5271         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
5272         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
5273         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
5274         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
5275         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
5276         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
5277         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
5278         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
5279         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
5280         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
5281         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
5282         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
5283         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
5284         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
5285         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
5286         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
5287         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
5288         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
5289         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
5290         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
5291         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
5292         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
5293         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
5294         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
5295         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
5296         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
5297         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
5298         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
5299         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
5300         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
5301         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
5302         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
5303         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
5304         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
5305         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
5306         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
5307         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
5308         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
5309         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
5310         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
5311         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
5312         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
5313         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
5314         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
5315         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
5316         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
5317         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
5318         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
5319         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
5320         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
5321         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
5322         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
5323         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
5324         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
5325         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
5326         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
5327         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
5328         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
5329         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
5330         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
5331         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
5332         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
5333         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
5334         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
5335         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
5336         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
5337         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
5338         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
5339         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
5340         Require >= 2.
5341         (FLT_ROUNDS): Expect as macro, not constant.
5342         (FLT_MANT_DIG): Use macro-int-constant.
5343         (DBL_MANT_DIG): Likewise.
5344         (LDBL_MANT_DIG): Likewise.
5345         (FLT_DIG): Likewise.
5346         (DBL_DIG): Likewise.
5347         (LDBL_DIG): Likewise.
5348         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
5349         (DBL_MIN_EXP): Likewise.
5350         (LDBL_MIN_EXP): Likewise.
5351         (FLT_MAX_EXP): Use macro-int-constant.
5352         (DBL_MAX_EXP): Likewise.
5353         (LDBL_MAX_EXP): Likewise.
5354         (FLT_MAX_10_EXP): Likewise.
5355         (DBL_MAX_10_EXP): Likewise.
5356         (LDBL_MAX_10_EXP): Likewise.
5357         (FLT_MAX): Use macro-constant.
5358         (DBL_MAX): Likewise.
5359         (LDBL_MAX): Likewise.
5360         (FLT_EPSILON): Use macro-constant.  Give upper bound.
5361         (DBL_EPSILON): Likewise.
5362         (LDBL_EPSILON): Likewise.
5363         (FLT_MIN): Likewise.
5364         (DBL_MIN): Likewise.
5365         (LDBL_MIN): Likewise.
5366         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
5367         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
5368         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
5369         [ISO11] (FLT_HAS_SUBNORM): Likewise.
5370         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
5371         [ISO11] (DBL_DECIMAL_DIG): Likewise.
5372         [ISO11] (FLT_DECIMAL_DIG): Likewise.
5373         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
5374         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
5375         [ISO11] (FLT_TRUE_MIN): Likewise.
5376         [ISO11] (LDBL_TRUE_MIN): Likewise.
5377         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5378         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
5379         (SCHAR_MIN): Use macro-int-constant.  Specify type.
5380         (SCHAR_MAX): Likewise.
5381         (UCHAR_MAX): Likewise.
5382         (CHAR_MIN): Likewise.
5383         (CHAR_MAX): Likewise.
5384         (MB_LEN_MAX): Use macro-int-constant.
5385         (SHRT_MIN): Use macro-int-constant.  Specify type.
5386         (SHRT_MAX): Likewise.
5387         (USHRT_MAX): Likewise.
5388         (INT_MAX): Likewise.
5389         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
5390         bound negative.
5391         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5392         bound with "U".
5393         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5394         bound with "L".
5395         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
5396         bound negative.  Suffix upper bound with "L".
5397         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5398         bound with "UL".
5399         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
5400         Specify type.
5401         [C99-based standards] (LLONG_MAX): Likewise.
5402         [C99-based standards] (ULLONG_MAX): Likewise.
5403         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
5404         == 0.
5405         [ISO11] (max_align_t): Require type.
5406         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5407
5408         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
5409         from $CFLAGS, without defining away __attribute__ calls.
5410         (checknamespace): Use $CFLAGS_namespace.
5411
5412         * conform/conformtest.pl (@keywords): Only include C99 keywords
5413         for standards based on C99 or C11.
5414
5415         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
5416         Disable tests.
5417         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
5418         UNIX98]: Likewise.
5419
5420         * conform/conformtest.pl: Handle "macro-int-constant" and test for
5421         usability of symbols in #if.
5422
5423         * conform/conformtest.pl: If macro or constant types start
5424         "promoted:", expect the symbol to be of the following type
5425         promoted by the integer promotions.
5426
5427         * conform/conformtest.pl: Parse all "constant" and "macro" lines
5428         in one place.  Also handle "macro-constant".
5429
5430         * conform/conformtest.pl: Only accept expected macro values with
5431         "==".  Parse all "macro" lines in one place.
5432         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
5433
5434         * conform/conformtest.pl: Handle braced types on "constant" lines
5435         instead of handling "typed-constant".
5436         * conform/data/signal.h-data: Use "constant" instead of
5437         "typed-constant".
5438
5439         * conform/conformtest.pl: Handle "optional-" at start of lines in
5440         one place rather than duplicating several cases.  Handle each
5441         format of "macro" line with initial "optional-".
5442
5443         * conform/conformtest.pl: Only accept expected constant or
5444         optional-constant values with "==".  Parse all "constant" lines in
5445         one place.  Parse all "optional-constant" lines in one place.
5446         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
5447         * conform/data/fmtmsg.h-data: Likewise.
5448         * conform/data/netinet/in.h-data: Likewise.
5449         * conform/data/tar.h-data: Likewise.
5450         * conform/data/limits.h-data: Use "==" form on "constant" and
5451         "optional-constant" lines.
5452
5453         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
5454         Use -std=c99 for XOPEN2K.
5455         (@knownproblems): Remove.
5456         (newtoken): Don't check %isknown.
5457
5458         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
5459         Do not expect macro.
5460         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
5461         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
5462         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
5463         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
5464         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
5465         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
5466         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
5467         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
5468         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
5469         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
5470         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
5471         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
5472         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
5473         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
5474         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
5475         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
5476         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
5477         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
5478         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
5479         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
5480         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
5481         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
5482         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
5483         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
5484         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
5485         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
5486         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
5487         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
5488         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
5489         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
5490         [XPG3] (acosh): Likewise.
5491         [XPG3] (asinh): Likewise.
5492         [XPG3] (atanh): Likewise.
5493         [XPG3] (cbrt): Likewise.
5494         [XPG3] (expm1): Likewise.
5495         [XPG3] (ilogb): Likewise.
5496         [XPG3] (log1p): Likewise.
5497         [XPG3] (logb): Likewise.
5498         [XPG3] (nextafter): Likewise.
5499         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
5500         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
5501         [XPG3] (remainder): Likewise.
5502         [XPG3] (rint): Likewise.
5503         [XPG3 || XPG4 || UNIX98] (round): Likewise.
5504         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
5505         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
5506         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
5507         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
5508         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
5509         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
5510         [UNIX98 || XOPEN2K] (scalb): Expect.
5511         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
5512         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
5513         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
5514         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
5515         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
5516         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
5517         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
5518         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
5519         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
5520         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
5521         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
5522         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
5523         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
5524         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
5525         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
5526         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
5527         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
5528         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
5529         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
5530         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
5531         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
5532         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
5533         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
5534         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
5535         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
5536         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
5537         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
5538         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
5539         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
5540         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
5541         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
5542         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
5543         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
5544         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
5545         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
5546         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
5547         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
5548         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
5549         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
5550         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
5551         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
5552         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
5553         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
5554         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
5555         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
5556         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
5557         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
5558         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
5559         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
5560         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
5561         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
5562         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
5563         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
5564         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
5565         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
5566         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
5567         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
5568         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
5569         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
5570         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
5571         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
5572         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
5573         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
5574         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
5575         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
5576         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
5577         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
5578         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
5579         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
5580         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
5581         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
5582         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
5583         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
5584         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
5585         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
5586         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
5587         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
5588         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
5589         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
5590         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
5591         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
5592         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
5593         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
5594         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
5595         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
5596         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
5597         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
5598         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
5599         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
5600         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
5601         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
5602         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
5603         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
5604         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
5605         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
5606         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
5607         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
5608         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
5609         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
5610         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
5611         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
5612         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
5613         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
5614         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
5615         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
5616         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
5617         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
5618         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
5619         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
5620         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
5621         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
5622         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
5623         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
5624         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
5625         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
5626         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
5627         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
5628         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
5629         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
5630         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
5631         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
5632         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
5633         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
5634         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
5635         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
5636         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
5637         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
5638         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
5639         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
5640         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
5641         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
5642         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
5643         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
5644         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
5645         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
5646         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
5647         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
5648
5649         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
5650         _XOPEN_SOURCE_EXTENDED for XPG4.
5651
5652         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
5653
5654         * Makeconfig (localtime): Remove variable.
5655         (inst_localtime-file): Likewise.
5656
5657 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
5658
5659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
5660         Update.
5661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5662         Update.
5663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
5664         Update.
5665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
5666         Update.
5667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
5668         Update.
5669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
5670         Update.
5671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5672         Update.
5673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
5674         Update.
5675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
5676         Update.
5677
5678 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
5679
5680         [BZ #2550]
5681         [BZ #2570]
5682         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
5683         comparisons to determine direction to adjust input.
5684         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
5685         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
5686         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
5687         Likewise.
5688         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
5689         Likewise.
5690         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5691         Likewise.
5692         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
5693         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
5694         Likewise.
5695         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
5696         Likewise.
5697         * math/libm-test.inc (nexttoward_test): Add more tests.
5698
5699 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
5700
5701         [BZ #14040]
5702         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
5703         in version GLIBC_2.1, not GLIBC_2.0.
5704         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
5705         Likewise.
5706
5707 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
5708
5709         [BZ #13942]
5710         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
5711         (1 - x) * (1 + x).
5712         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
5713         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
5714         * math/libm-test.inc (acos_test): Add more tests.
5715         (asin_test): Likewise.
5716         * sysdeps/i386/fpu/libm-test-ulps: Update.
5717         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5718
5719         [BZ #14034]
5720         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
5721         of square root.
5722         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
5723         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
5724         * math/libm-test.inc (acos_test_tonearest): New function.
5725         (acos_test_towardzero): Likewise.
5726         (acos_test_downward): Likewise.
5727         (acos_test_upward): Likewise.
5728         (asin_test_tonearest): Likewise.
5729         (asin_test_towardzero): Likewise.
5730         (asin_test_downward): Likewise.
5731         (asin_test_upward): Likewise.
5732         (main): Call the new functions.
5733         * sysdeps/i386/fpu/libm-test-ulps: Update.
5734         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5735
5736         [BZ #13884]
5737         [BZ #13924]
5738         * math/e_exp10.c: Include <float.h>.
5739         (__ieee754_exp10): Handle underflow here rather than multiplying
5740         large negative argument by M_LN10.
5741         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
5742         of __ieee754_expf.
5743         * math/e_exp10l.c: Include <float.h>.
5744         (__ieee754_exp10l): Handle underflow here rather than multiplying
5745         large negative argument by M_LN10l.
5746         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
5747         spurious overflow exception on underflow.
5748
5749 2012-04-29  Marek Polacek  <polacek@redhat.com>
5750
5751         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
5752         (__fortify_function): New macro.
5753         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
5754         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
5755         __extern_always_inline.
5756         * libio/bits/stdio2.h: Likewise.
5757         * libio/bits/stdio.h: Likewise.
5758         * string/string.h: Likewise.
5759         * string/bits/string3.h: Likewise.
5760         * include/stdio.h: Likewise.
5761         * stdlib/bits/stdlib.h: Likewise.
5762         * stdlib/stdlib.h: Likewise.
5763         * rt/bits/mqueue2.h: Likewise.
5764         * rt/mqueue.h: Likewise.
5765         * posix/bits/unistd.h: Likewise.
5766         * posix/unistd.h: Likewise.
5767         * io/bits/poll2.h: Likewise.
5768         * io/bits/fcntl2.h: Likewise.
5769         * io/fcntl.h: Likewise.
5770         * io/sys/poll.h: Likewise.
5771         * misc/bits/syslog.h: Likewise.
5772         * misc/bits/syslog-ldbl.h: Likewise.
5773         * misc/sys/syslog.h: Likewise.
5774         * socket/bits/socket2.h: Likewise.
5775         * socket/sys/socket.h: Likewise.
5776         * debug/tst-chk1.c: Likewise.
5777         * wcsmbs/bits/wchar2.h: Likewise.
5778         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5779         * wcsmbs/wchar.h: Likewise.
5780
5781 2012-04-29  Andreas Jaeger  <aj@suse.de>
5782
5783         * Makerules (tests): Remove enable-check-abi protection.
5784         (check-abi-warn): Remove.
5785         (check-abi-%): Remove check-abi-warn usage.
5786
5787         * configure.in: Remove check-abi configure option.
5788         * configure: Regenerated.
5789         * config.make.in (enable-check-abi): Remove.
5790
5791 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
5792
5793         [BZ #14033]
5794         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
5795         double functions to double *_finite functions.
5796
5797         [BZ #13941]
5798         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
5799         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
5800         LDBL_MIN_EXP.
5801         * stdio-common/Makefile (tests): Add tst-sprintf3.
5802         * stdio-common/tst-sprintf3.c: New file.
5803
5804         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
5805         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
5806
5807 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
5808
5809         * conform/conformtest.pl: Remove duplicate typed-constant
5810         handling.
5811
5812 2012-04-28  David S. Miller  <davem@davemloft.net>
5813
5814         * Makerules (%.abilist): Add vpath on sysdep_dirs.
5815         (check-abi-%): Remove AWK script prerequisite and explicit
5816         abilist directory.
5817         (check-abi): Rewrite to just diff the symlist with the abilist.
5818         (config-tls, config-abi-config): Delete, no longer used.
5819         (update-abi-%): Remove AWK script and explicit abilist directory.
5820         (update-abi): Rewrite to simply compare and conditionally copy the
5821         symlist and the sysdep abilist file.  Remove update-abi-config
5822         checks.
5823         * abilist/ld.abilist: Remove.
5824         * abilist/libBrokenLocale.abilist: Remove.
5825         * abilist/libanl.abilist: Remove.
5826         * abilist/libcrypt.abilist: Remove.
5827         * abilist/libdl.abilist: Remove.
5828         * abilist/librt.abilist: Remove.
5829         * abilist/libthread_db.abilist: Remove.
5830         * abilist/libutil.abilist: Remove.
5831         * scripts/extract-abilist.awk: Remove.
5832         * scripts/merge-abilist.awk: Remove.
5833         * sysdeps/generic/libcidn.abilist: New file.
5834         * sysdeps/generic/libnss_compat.abilist: New file.
5835         * sysdeps/generic/libnss_db.abilist: New file.
5836         * sysdeps/generic/libnss_dns.abilist: New file.
5837         * sysdeps/generic/libnss_files.abilist: New file.
5838         * sysdeps/generic/libnss_hesiod.abilist: New file.
5839         * sysdeps/generic/libnss_nis.abilist: New file.
5840         * sysdeps/generic/libnss_nisplus.abilist: New file.
5841         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
5842         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
5843         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
5844         file.
5845         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
5846         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
5847         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
5848         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
5849         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
5850         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
5851         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
5852         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
5853         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
5854         file.
5855         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
5856         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
5857         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
5858         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
5859         file.
5860         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
5861         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
5862         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
5863         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
5864         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
5865         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
5866         file.
5867         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
5868         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
5869         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
5870         file.
5871         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
5872         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
5873         New file.
5874         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
5875         New file.
5876         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
5877         New file.
5878         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
5879         New file.
5880         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
5881         New file.
5882         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
5883         New file.
5884         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
5885         New file.
5886         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
5887         New file.
5888         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
5889         New file.
5890         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
5891         New file.
5892         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
5893         New file.
5894         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
5895         New file.
5896         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
5897         New file.
5898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
5899         file.
5900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
5901         New file.
5902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
5903         New file.
5904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
5905         file.
5906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
5907         New file.
5908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
5909         New file.
5910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
5911         file.
5912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
5913         New file.
5914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
5915         New file.
5916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
5917         New file.
5918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
5919         New file.
5920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
5921         New file.
5922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
5923         New file.
5924         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
5925         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
5926         file.
5927         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
5928         New file.
5929         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
5930         file.
5931         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
5932         file.
5933         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
5934         file.
5935         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
5936         file.
5937         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
5938         file.
5939         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5940         New file.
5941         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
5942         file.
5943         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
5944         file.
5945         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
5946         New file.
5947         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
5948         file.
5949         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
5950         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
5951         file.
5952         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
5953         New file.
5954         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
5955         file.
5956         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
5957         file.
5958         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
5959         file.
5960         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
5961         file.
5962         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
5963         file.
5964         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5965         New file.
5966         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
5967         file.
5968         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
5969         file.
5970         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
5971         New file.
5972         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
5973         file.
5974         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5975         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
5976         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
5977         file.
5978         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
5979         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
5980         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
5981         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
5982         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
5983         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
5984         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
5985         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
5986         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
5987         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
5988         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
5989         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
5990         file.
5991         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
5992         New file.
5993         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
5994         file.
5995         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
5996         file.
5997         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
5998         file.
5999         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
6000         file.
6001         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
6002         file.
6003         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6004         New file.
6005         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
6006         New file.
6007         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
6008         file.
6009         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
6010         New file.
6011         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
6012         file.
6013         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
6014         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
6015         file.
6016         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
6017         New file.
6018         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
6019         file.
6020         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
6021         file.
6022         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
6023         file.
6024         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
6025         file.
6026         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
6027         file.
6028         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6029         New file.
6030         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
6031         New file.
6032         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
6033         file.
6034         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
6035         New file.
6036         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
6037         file.
6038
6039 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6040
6041         * conform/conformtest.pl: Fix typo in handling typed-constant from
6042         allow-header.
6043
6044 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
6045
6046         * README: Cut down references to pre-2.6 Linux kernels and
6047         Linuxthreads.  Update lists of configurations in libc and ports
6048         and sort alphabetically.  Say "or newer" with Linux kernel version
6049         requirements.
6050
6051         * config.h.in [IS_IN_build]: Allow compiling without optimization.
6052
6053 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6054
6055         [BZ #887]
6056         * math/libm-test.inc (logb_test_downward): New test to expose
6057         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
6058         rounding mode.
6059
6060 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
6061
6062         [BZ #14027]
6063         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
6064         to be done.
6065         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
6066         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
6067
6068 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
6069
6070         * sysdeps/unix/i386/brk.S: Remove file.
6071         * sysdeps/unix/i386/dl-brk.S: Likewise.
6072         * sysdeps/unix/i386/pipe.S: Likewise.
6073         * sysdeps/unix/i386/sigreturn.S: Likewise.
6074         * sysdeps/unix/i386/syscall.S: Likewise.
6075         * sysdeps/unix/i386/vfork.S: Likewise.
6076         * sysdeps/unix/i386/wait.S: Likewise.
6077
6078         * sysdeps/unix/common/tcsendbrk.c: Move to ...
6079         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
6080
6081         * configure.in (arm*-none*): Do not allow without
6082         --enable-hacker-mode.
6083         (netbsd*): Remove case setting base_os.
6084         (386bsd*): Likewise.
6085         (freebsd*): Likewise.
6086         (bsdi*): Likewise.
6087         (osf*): Likewise.
6088         (sunos*): Likewise.
6089         (ultrix*): Likewise.
6090         (newsos*): Likewise.
6091         (dynix*): Likewise.
6092         (*bsd*): Likewise.
6093         (sysv*): Likewise.
6094         (isc*): Likewise.
6095         (esix*): Likewise.
6096         (sco*): Likewise.
6097         (minix*): Likewise.
6098         (irix4*): Likewise.
6099         (irix6*): Likewise.
6100         (solaris[2-9]*): Likewise.
6101         (none): Likewise.
6102         * configure: Regenerated.
6103
6104 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6105
6106         [BZ #11521]
6107         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
6108         overflow or cancellation in calculating denominator.
6109         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
6110         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
6111         down expression to avoid unexpected rounding in newer GCCs.
6112         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
6113
6114 2012-04-26  David S. Miller  <davem@davemloft.net>
6115
6116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
6117         long-double compat symbols.
6118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
6122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6123         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
6124         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
6125         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
6126         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
6127         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
6128         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
6129         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
6130         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6131
6132 2012-04-25  David S. Miller  <davem@davemloft.net>
6133
6134         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
6135         HWCAP_* values only after the memory barriers have been defined.
6136         (atomic_full_barrier): Define.
6137         (atomic_read_barrier): Define.
6138         (atomic_write_barrier): Define.
6139
6140 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6141
6142         * shlib-versions: Add libgcc_s version information.
6143         * sysdeps/generic/libgcc_s.h: Remove.
6144         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
6145         libgcc_s.h.
6146         * sysdeps/gnu/unwind-resume.c: Likewise.
6147         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
6148
6149 2012-04-25  David S. Miller  <davem@davemloft.net>
6150
6151         * sysdeps/unix/sparc/brk.S: Delete.
6152         * sysdeps/unix/sparc/dl-brk.S: Delete.
6153         * sysdeps/unix/sparc/pipe.S: Delete.
6154         * sysdeps/unix/sparc/sysdep.S: Delete.
6155         * sysdeps/unix/sparc/sysdep.h: Delete.
6156         * sysdeps/unix/sparc/vfork.S: Delete.
6157         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
6158         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
6159         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
6160         ret_ERRVAL, r0, r1, MOVE): Define.
6161         (JUMPTARGET): Remove.
6162         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
6163         sysdeps/unix/sparc/sysdep.h
6164         (ENTRY, END): Remove.
6165         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6166
6167 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
6168
6169         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
6170         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
6171         -DIS_IN_build.
6172
6173         * timezone/README: Update upstream location and email address for
6174         tzcode and tzdata.
6175         * timezone/zdump.c: Update from tzcode 2012b.
6176         * timezone/zic.c: Likewise.
6177
6178         * configure.in (libc_cv_as_needed): Remove test.
6179         * configure: Regenerated.
6180         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
6181         conditional definition.
6182         [$(have-as-needed) != yes] (no-as-needed): Likewise.
6183         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
6184         * config.make.in (have-as-needed): Remove variable.
6185
6186 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6187             Paul Pluzhnikov  <ppluzhnikov@google.com>
6188
6189         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
6190         strings correctly.
6191
6192 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
6193
6194         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
6195         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
6196         * sysdeps/sh/strlen.S: Likewise.
6197
6198 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6199
6200         * sysdeps/unix/fork.S: Remove file.
6201         * sysdeps/unix/i386/fork.S: Likewise.
6202         * sysdeps/unix/sparc/fork.S: Likewise.
6203
6204         * sysdeps/unix/system.c: Remove file.
6205         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
6206
6207         * sysdeps/unix/getegid.S: Remove file.
6208         * sysdeps/unix/geteuid.S: Likewise.
6209
6210 2012-04-24  Roland McGrath  <roland@hack.frob.com>
6211
6212         * scripts/check-localplt.awk: New file.
6213         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
6214         of diff.
6215         * scripts/data/localplt-generic.data: Add a comment.
6216
6217         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
6218         NODE when __dir_mkfile failed.
6219         * sysdeps/mach/hurd/symlinkat.c: Likewise.
6220         Reported by Ludovic Courtès <ludo@gnu.org>.
6221
6222 2012-04-24  Andreas Jaeger  <aj@suse.de>
6223
6224         * Makerules (common-clean): Also remove gen-as-const-headers
6225         files.
6226
6227 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6228
6229         * Makerules (native-compile): Do not change working directory for
6230         build.  Use $(OUTPUT_OPTION) in command.
6231         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
6232
6233 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6234
6235         [BZ #13886]
6236         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
6237         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
6238         * math/libm-test.inc (floor_test): Add more tests.
6239         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
6240
6241 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6242
6243         * sysdeps/unix/getdents.c: Remove file.
6244         * sysdeps/unix/sysv/getdents.c: Likewise.
6245         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
6246
6247         * sysdeps/unix/syscalls.list (madvise): Add syscall from
6248         sysdeps/unix/mman/syscalls.list.
6249         (mmap): Likewise.
6250         (mprotect): Likewise.
6251         (msync): Likewise.
6252         (munmap): Likewise.
6253         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
6254         * sysdeps/unix/mman/syscalls.list: Remove.
6255         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
6256
6257         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
6258         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
6259         * configure: Regenerated.
6260         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
6261         $(libgcc_s_suffix).
6262         * config.make.in (libgcc_s_suffix): Remove variable.
6263
6264 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
6265
6266         * sysdeps/unix/sysv/gethostname.c: Move to ...
6267         * sysdeps/posix/gethostname.c: ... here.
6268
6269         * sysdeps/unix/execve.S: Remove file.
6270
6271         * sysdeps/unix/_exit.S: Remove file.
6272
6273 2012-04-23  Andreas Jaeger  <aj@suse.de>
6274
6275         [BZ #13739]
6276         * manual/Makefile: Remove make dist support, there's no
6277         need for a stand-alone documentation tar ball.
6278         (TEXI2DVI): Define always, it's not in Makeconfig.
6279         (dist): Removed.
6280         (tar-it): Removed.
6281         (edition): Removed.
6282         (glibc-doc-$(edition).tar): Removed
6283         (%.Z): Removed.
6284         (%.gz): Removed.
6285         (%.uu): Removed.
6286         (ETAGS): Remove, it's in Makeconfig.
6287         (move-if-change): Remove, it's in Makeconfig.
6288
6289 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6290
6291         [BZ #13970]
6292         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
6293         (strtod, strtof, strtold, strtol, strtoul, strtoq)
6294         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
6295         (strtod_l, strtof_l, strtold_l): Remove __wur.
6296         It is not necessarily an error to ignore strtol's return value.
6297         One can reliably look at the stored endptr to decide whether
6298         the number had valid syntax.
6299
6300 2012-04-21  Andreas Jaeger  <aj@suse.de>
6301
6302         [BZ #13739]
6303         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
6304
6305 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
6306
6307         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
6308         * sysdeps/unix/sysv/Versions: Remove file.
6309
6310 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
6311
6312         [BZ #13927]
6313         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6314
6315 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
6316
6317         [BZ #7064]
6318         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
6319         version from __vm86.
6320
6321 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
6322
6323         * sysdeps/unix/common/lxstat.c: Remove file.
6324         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
6325
6326         * sysdeps/unix/sysv/Makefile: Remove file.
6327
6328         * sysdeps/unix/sysv/direct.h: Remove file.
6329
6330         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
6331         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
6332         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
6333         * sysdeps/unix/sysv/bits/signum.h: Likewise.
6334         * sysdeps/unix/sysv/bits/stat.h: Likewise.
6335         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
6336         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
6337
6338         * sysdeps/unix/sysv/setrlimit.c: Remove file.
6339
6340         * sysdeps/unix/xmknod.c: Remove file.
6341         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
6342
6343         * sysdeps/unix/sysv/settimeofday.c: Remove file.
6344
6345         * sysdeps/unix/sysv/i386/time.S: Remove file.
6346
6347         * sysdeps/unix/fxstat.c: Remove file.
6348         * sysdeps/unix/xstat.c: Likewise.
6349         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
6350
6351         * sysdeps/unix/sysv/sigaction.c: Remove file.
6352
6353         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
6354         (sysdep_headers): Remove variable.
6355         [termio.h not in sysdep_headers] (generated): Likewise.
6356         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
6357         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
6358         * sysdeps/unix/sysv/tcdrain.c: Likewise.
6359         * sysdeps/unix/sysv/tcflow.c: Likewise.
6360         * sysdeps/unix/sysv/tcflush.c: Likewise.
6361         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
6362         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
6363         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
6364         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
6365         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
6366
6367         * sysdeps/unix/siglist.c: Remove file.
6368
6369         * sysdeps/unix/getppid.S: Remove file.
6370
6371         * sysdeps/unix/mkdir.c: Remove file.
6372         * sysdeps/unix/rmdir.c: Likewise.
6373
6374 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
6375
6376         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
6377         ERR_MAX value.
6378         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
6379         errlist-compat value.
6380
6381 2012-04-18  David S. Miller  <davem@davemloft.net>
6382
6383         * sysdeps/generic/memcopy.h (reg_char): Delete.
6384         * debug/strcat_chk.c: Use char, not reg_char.
6385         * debug/strcpy_chk.c: Likewise.
6386         * debug/strncat_chk.c: Likewise.
6387         * debug/strncpy_chk.c: Likewise.
6388         * string/memchr.c: Likewise.
6389         * string/memrchr.c: Likewise.
6390         * string/rawmemchr.c: Likewise.
6391         * string/strcat.c: Likewise.
6392         * string/strchr.c: Likewise.
6393         * string/strchrnul.c: Likewise.
6394         * string/strcmp.c: Likewise.
6395         * string/strcpy.c: Likewise.
6396         * string/strncat.c: Likewise.
6397         * string/strncmp.c: Likewise.
6398         * string/strncpy.c: Likewise.
6399
6400 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6401
6402         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
6403         __builtin_memcopy is called when src and dest ranges are known to not
6404         overlap.
6405
6406 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6407
6408         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
6409         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
6410         fwd_align_merge macro call.
6411         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
6412         bwd_align_merge macro call.
6413         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6414
6415 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6416
6417         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
6418         bwd_align_merge macros.
6419         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
6420         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
6421         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6422
6423 2012-04-18  David S. Miller  <davem@davemloft.net>
6424
6425         * sysdeps/sparc/sparc64/memcopy.h: Delete.
6426
6427 2012-04-18  Andreas Jaeger  <aj@suse.de>
6428
6429         [BZ# 6794]
6430         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
6431         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
6432         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6433
6434         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
6435         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
6436         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6437
6438         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
6439         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
6440         Adjust for changed ldbl-128 files.
6441
6442         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
6443         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
6444         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6445
6446 2012-04-17  David S. Miller  <davem@davemloft.net>
6447
6448         * sysdeps/sparc/sparc32/memcopy.h: Delete.
6449
6450 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
6451
6452         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
6453         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
6454         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
6455         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
6456         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
6457         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
6458
6459 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6460
6461         [BZ #6794]
6462         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
6463         * math/libm-test.inc: Add ilogb errno and exception tests.
6464         * math/w_ilogb.c: New file: ilogb wrapper.
6465         * math/w_ilogbf.c: New file: ilogbf wrapper.
6466         * math/w_ilogbl.c: New file: ilogbl wrapper.
6467         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
6468         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
6469         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
6470         exception being thrown with 0.0 as argument.
6471         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
6472         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
6473         exception being thrown with 0.0 as argument.
6474         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
6475         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6476         exception being thrown with 0.0 as argument.
6477         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
6478         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6479         exception being thrown with 0.0 as argument.
6480         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
6481         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
6482         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
6483         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
6484         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
6485         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
6486         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
6487         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
6488         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
6489
6490 2012-04-17  Petr Baudis  <pasky@ucw.cz>
6491
6492         * include/sys/uio.h: Change __vector to __iovec to avoid clash
6493         with altivec.
6494
6495 2012-04-16  Marek Polacek  <polacek@redhat.com>
6496
6497         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
6498
6499 2012-04-16  Marek Polacek  <polacek@redhat.com>
6500
6501         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
6502         operands of fdivp instruction.
6503
6504 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
6505
6506         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
6507         * elf/tst-auditmod3b.c: Likewise.
6508         * elf/tst-auditmod4b.c: Likewise.
6509         * elf/tst-auditmod5b.c: Likewise.
6510         * elf/tst-auditmod6b.c: Likewise.
6511         * elf/tst-auditmod6c.c: Likewise.
6512         * elf/tst-auditmod7b.c: Likewise.
6513         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
6514         * sysdeps/x86_64/preconfigure.in: Likewise.
6515         * sysdeps/x86_64/preconfigure: Regenerated.
6516
6517 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
6518
6519         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
6520         __ILP32__.
6521
6522 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
6523
6524         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6525         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
6526
6527 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
6528
6529         [BZ #13973]
6530         * locale/iso-639.def: Fix gl language name. Spotted by
6531         Yaron Shahrabani.
6532
6533 2012-04-12  Roland McGrath  <roland@hack.frob.com>
6534
6535         [BZ #2074]
6536         * libio/libio.h (__io_write_fn): Update comment.
6537
6538 2012-04-12  Petr Baudis  <pasky@ucw.cz>
6539
6540         [BZ #2074]
6541         * stdio.texi (Hook Functions): The user provided writer function
6542         is not allowed to return -1.
6543
6544 2012-04-11  David S. Miller  <davem@davemloft.net>
6545
6546         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6547
6548 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
6549
6550         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
6551         Add a leading slash to rtkaio.
6552
6553 2012-04-11  Jim Meyering  <meyering@redhat.com>
6554
6555         [BZ #11959]
6556         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
6557         It is not necessarily an error to ignore fwrite's return
6558         value.  One can reliably use ferror to test for errors after
6559         the fact.
6560
6561 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6562
6563         * bits/types.h (__snseconds_t): New type.
6564         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
6565
6566         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
6567         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6568         (__SNSECONDS_T_TYPE): Likewise.
6569         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6570         (__SNSECONDS_T_TYPE): Likewise.
6571         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6572         (__SNSECONDS_T_TYPE): Likewise.
6573
6574 2012-04-10  Andreas Jaeger  <aj@suse.de>
6575
6576         [BZ #2636]
6577         * manual/time.texi (Processor Time): Return type of times is
6578         elapsed real time since an arbitrary point in the past.
6579         (CPU Time): Move CLK_TCK from here...
6580         (Processor Time): ...to here.  Correct description.
6581         * manual/conf.texi (Constants for Sysconf): Correct description of
6582         _SC_CLK_TCK.
6583
6584 2012-04-10  David S. Miller  <davem@davemloft.net>
6585
6586         [BZ #13967]
6587         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
6588         where the is a gap between DT_REL(A) and DT_JMPREL.
6589
6590 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6591
6592         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
6593         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
6594         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
6595
6596 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6597
6598         * elf/dl-support.c (_dl_inhibit_cache): New variable.
6599         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
6600         (dl_main): Handle --inhibit-cache.
6601         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
6602         _dl_inhibit_cache.
6603         * elf/dl-load.c (_dl_map_object): Use it.
6604         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
6605
6606 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
6607
6608         [BZ #13872]
6609         * sysdeps/i386/fpu/e_powl.S (p78): New object.
6610         (__ieee754_powl): Saturate large exponents rather than testing for
6611         overflow of y*log2(x).
6612         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6613         * math/libm-test.inc (pow_test): Do not permit spurious overflow
6614         exceptions.
6615
6616         [BZ #11521]
6617         * math/s_ctan.c: Include <float.h>.
6618         (__ctan): Avoid internal overflow or cancellation in calculating
6619         denominator.
6620         * math/s_ctanf.c: Likewise.
6621         * math/s_ctanl.c: Likewise.
6622         * math/s_ctanh.c: Likewise.
6623         * math/s_ctanhf.c: Likewise.
6624         * math/s_ctanhl.c: Likewise.
6625         * math/libm-test.inc (ctan_test): Add more tests.
6626         (ctanh_test): Likewise.
6627         * sysdeps/i386/fpu/libm-test-ulps: Update.
6628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6629
6630 2012-04-09  Andreas Jaeger  <aj@suse.de>
6631
6632         [BZ #6894]
6633         * manual/filesys.texi (Directory Entries): Mention that d_namlen
6634         is an optional BSD extension.
6635
6636         [BZ #10254]
6637         * manual/stdio.texi (Opening Streams): Document additional fopen
6638         parameters.
6639
6640 2012-04-09  Roland McGrath  <roland@hack.frob.com>
6641
6642         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
6643         %eax without telling the compiler.
6644
6645 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
6646
6647         [BZ # 13963]
6648         * manual/install.texi: Use sourceware.org.
6649
6650 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
6651
6652         [BZ #13873]
6653         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
6654         (__ieee754_pow): Generate overflow and underflow using huge*huge
6655         and tiny*tiny rather than just returning constant infinity or zero
6656         for large exponents.
6657         * math/libm-test.inc (pow_test): Require overflow exceptions for
6658         applicable cases of large exponents.
6659
6660         [BZ #706]
6661         * sysdeps/i386/fpu/e_pow.S (p10): New object.
6662         (__ieee754_pow): Use iterative multiplication algorithm only for
6663         integer exponents with absolute value below 1024.  Check for odd
6664         integer exponents when using algorithm for real exponents.
6665         * math/libm-test.inc (pow_test): Add more tests.
6666         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6667
6668 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
6669
6670         [BZ #13705]
6671         * math/libm-test.inc (exp_test): Do not allow overflow exception
6672         on underflow test.
6673
6674 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
6675
6676         [BZ #13705]
6677         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
6678         instead of __kernel_standard_f.
6679
6680 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
6681
6682         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
6683         * sysdeps/x86_64/memset_chk.S: Likewise.
6684
6685 2012-04-08  Andreas Jaeger  <aj@suse.de>
6686
6687         [BZ #10153]
6688         * manual/startup.texi (Environment Access): Describe return value
6689         for putenv and setenv.
6690
6691         [BZ #6895]
6692         * manual/filesys.texi (Directory Entries): Add description for
6693         DT_LNK.
6694
6695         [BZ #6890]
6696         * manual/filesys.texi (Directory Entries): Clarify that it's file
6697         system not operating system in the description of DT_UNKNOWN.
6698
6699         [BZ #6578]
6700         * manual/syslog.texi (closelog): Fix reference, it's openlog.
6701
6702 2012-04-08  Stephen Compall  <s11@member.fsf.org>
6703
6704         [BZ #6649]
6705         * manual/llio.texi (Opening and Closing Files): Add cross
6706         reference to explain mode argument.
6707
6708 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
6709
6710         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
6711         * sysdeps/x86_64/memset_chk.S: Likewise.
6712
6713 2012-04-07  David S. Miller  <davem@davemloft.net>
6714
6715         * elf/elf.h (R_SPARC_WDISP10): Define.
6716         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
6717         R_SPARC_SIZE32.
6718         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
6719         R_SPARC_SIZE64 and R_SPARC_H34.
6720
6721 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
6722
6723         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
6724         conditions and remove no longer applicable assertion.
6725
6726 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
6727
6728         * bits/byteswap.h: Include <features.h>.
6729         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
6730         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
6731
6732 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
6733
6734         * bits/byteswap.h (__bswap_16): Removed.
6735         Include <bits/byteswap-16.h> to get __bswap_16.
6736         * sysdeps/i386/bits/byteswap.h: Likewise.
6737         * sysdeps/s390/bits/byteswap.h: Likewise.
6738         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6739         * bits/byteswap-16.h: New file.
6740         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6741         * sysdeps/s390/bits/byteswap-16.h: Likewise.
6742         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
6743         * string/Makefile (headers): Add bits/byteswap-16.h.
6744
6745 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
6746
6747         [BZ #13895]
6748         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
6749         extra indirection.
6750         * nss/Makefile (tests-static, tests): Add tst-nss-static.
6751         * nss/tst-nss-static.c: New.
6752
6753 2012-04-06  Robert Millan  <rmh@gnu.org>
6754
6755         [BZ #6486]
6756         * manual/llio.texi (File Position Primitive): lseek
6757         refers to WHENCE when it really means OFFSET.
6758
6759 2012-04-06  Andreas Jaeger  <aj@suse.de>
6760
6761         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
6762         strncmp declarations.
6763
6764         * abilist/libc.abilist: Add __poll and __ppoll.
6765
6766 2012-04-05  David S. Miller  <davem@davemloft.net>
6767
6768         * scripts/check-local-headers.sh: Accept a host triplet in the
6769         path matched by the exclude regexp.
6770
6771         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
6772         definition.
6773         * sysdeps/powerpc/powerpc32/dl-machine.h
6774         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
6775         * sysdeps/s390/s390-32/dl-machine.h
6776         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6777         * sysdeps/sparc/sparc32/dl-machine.h
6778         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6779         * sysdeps/sparc/sparc64/dl-machine.h
6780         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
6781
6782         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
6783         lazy binding.
6784         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
6785         undefined symbol errors.
6786
6787         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
6788         DT_NEEDED entries.
6789
6790 2012-04-05  Michael Matz  <matz@suse.de>
6791
6792         [BZ #13592]
6793         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
6794
6795 2012-04-05  Andreas Jaeger  <aj@suse.de>
6796
6797         [BZ #13908]
6798         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
6799         comment.
6800
6801 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6802
6803         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
6804         which ROUND is no valid rounding mode.
6805
6806 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6807
6808         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
6809         read again.
6810         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
6811
6812 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6813
6814         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
6815         an exception using FPU order intentionally.
6816
6817 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6818
6819         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
6820         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
6821         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
6822         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
6823
6824 2012-04-05  Simon Josefsson  <simon@josefsson.org>
6825
6826         [BZ #12340]
6827         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
6828         EINVAL when BUFLEN is too smal.
6829
6830 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
6831
6832         [BZ #13553]
6833         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
6834         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6835
6836 2012-04-03  Andreas Jaeger  <aj@suse.de>
6837
6838         [BZ #13938]
6839         * manual/setjmp.texi (System V contexts): Fix sentence.
6840
6841         [BZ #13926]
6842         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
6843         New macro for this case.
6844         [!__GNUC__] (__bswap_64): New inline function for this case.
6845         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6846         * bits/byteswap.h: Likewise.
6847         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
6848         ull, guard with __GLIBC_HAVE_LONG_LONG.
6849
6850         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
6851         __GLIBC_HAVE_LONG_LONG.
6852
6853         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
6854         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
6855
6856 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
6857
6858         [BZ #13691]
6859         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
6860         inptr and inend, rather than using last_ch.
6861
6862 2012-04-02  David S. Miller  <davem@davemloft.net>
6863
6864         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
6865         * stdio-common/printf-parse.h (read_int): Change return type to
6866         'int', return -1 on INT_MAX overflow.
6867         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
6868         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
6869         overflows INT_MAX.  Check for overflow of in-format-string precision
6870         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
6871         SIZE_MAX not INT_MAX for integer overflow test.
6872         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
6873         skip the construct in the format string but do not record anything.
6874         * stdio-common/bug22.c: Adjust to test both width/prevision
6875         INT_MAX overflow as well as total length INT_MAX overflow.  Check
6876         explicitly for proper errno values.
6877
6878 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
6879
6880         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
6881         CHAR_MAX.
6882         * string/test-strcmp.c [! WIDE]: Likewise.
6883         * time/tst-mktime2.c: Likewise for INT_MAX.
6884         * string/test-string.h: #include <sys/param.h> for MIN.
6885
6886         * csu/init-first.c (__libc_init_first): Call __ctype_init.
6887         * sysdeps/i386/init-first.c (init): Likewise.
6888         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
6889         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
6890         * sysdeps/sh/init-first.c (init): Likewise.
6891
6892 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
6893
6894         * po/ru.po: Update from translation team.
6895         * po/vi.po: Likewise.
6896
6897 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
6898
6899         * resolv/nss_dns/dns-host.c: Merge copyright years.
6900
6901 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6902
6903         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6904         Optimize memcpy with prefetch if
6905         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
6906         src, dst pointers have unequal 16 byte alignments.
6907
6908 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6909
6910         [BZ #13928]
6911         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
6912         from a CNAME entry and return the minimum ttl for the query.
6913         (gaih_getanswer_slice): Likewise.
6914
6915 2012-03-30  Jeff Law  <law@redhat.com>
6916
6917         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
6918         due to long keys.
6919         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
6920         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
6921
6922         * resolv/nss_dns/dns-host.c: Update copyright year.
6923
6924 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
6925
6926         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
6927         requests to save a system call.  Fix check that all bytes are sent.
6928
6929         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
6930         comments for sendmmsg.
6931
6932 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6933
6934         [BZ #13691]
6935         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
6936         with only 1 character between 0x0041 and 0x01b0.
6937         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
6938         * wcsmbs/tst-mbsnrtowcs.c: New file.
6939
6940 2012-03-29  David S. Miller  <davem@davemloft.net>
6941
6942         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
6943         small copies by hand.
6944
6945 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6946
6947         [BZ #13761]
6948         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
6949         _nss_compat_initgroups_dyn): Fall back to malloc/free
6950         for large group memberships.
6951
6952 2012-03-28  David S. Miller  <davem@davemloft.net>
6953
6954         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
6955         that branches into memcpy.
6956         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6957         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
6958         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6959         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
6960         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
6961         bits.
6962         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
6963         implementation too.
6964         * sysdeps/sparc/mempcpy.S: New file.
6965
6966         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
6967         the IFUNC routine in the libc case.
6968         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6969
6970         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
6971         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
6972         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
6973         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
6974         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
6975         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
6976         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
6977         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
6978
6979         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
6980         loop to 256 bytes instead of 64 bytes and fix test signedness.
6981
6982         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
6983         * sysdeps/sparc/sparc32/Makefile: rather than here...
6984         * sysdeps/sparc/sparc64/Makefile: and here.
6985
6986 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
6987
6988         * malloc/mallocbug.c: Avoid warnings about unused variables.
6989
6990 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6991
6992         [BZ #13760]
6993         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
6994         in the right place. Discard and retry query if response is
6995         larger than input buffer size.
6996
6997 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
6998
6999         [BZ #369]
7000         [BZ #2678]
7001         [BZ #3866]
7002         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
7003         x for large integer exponent.
7004         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
7005         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
7006         sign of result as needed afterwards.
7007         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7008         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
7009         result for underflowing pow the same as for overflow.
7010         (__kernel_standard_l): Handle powl overflow and underflow here
7011         rather than calling __kernel_standard.
7012         * math/libm-test.inc (pow_test): Add more tests.
7013
7014         [BZ #3868]
7015         [BZ #13879]
7016         [BZ #13910]
7017         [BZ #13911]
7018         [BZ #13912]
7019         [BZ #13913]
7020         [BZ #13915]
7021         [BZ #13916]
7022         [BZ #13917]
7023         [BZ #13918]
7024         [BZ #13919]
7025         [BZ #13920]
7026         [BZ #13921]
7027         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
7028         * sysdeps/ieee754/k_standard.c: Include <float.h>.
7029         (__kernel_standard_l): New function.
7030         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
7031         __kernel_standard.
7032         * math/w_acosl.c (__acosl): Likewise.
7033         * math/w_asinl.c (__asinl): Likewise.
7034         * math/w_atan2l.c (__atan2l): Likewise.
7035         * math/w_atanhl.c (__atanhl): Likewise.
7036         * math/w_coshl.c (__coshl): Likewise.
7037         * math/w_exp10l.c (__exp10l): Likewise.
7038         * math/w_exp2l.c (__exp2l): Likewise.
7039         * math/w_fmodl.c (__fmodl): Likewise.
7040         * math/w_hypotl.c (__hypotl): Likewise.
7041         * math/w_j0l.c (__j0l, __y0l): Likewise.
7042         * math/w_j1l.c (__j1l, __y1l): Likewise.
7043         * math/w_jnl.c (__jnl, __ynl): Likewise.
7044         * math/w_lgammal.c (__lgammal): Likewise.
7045         * math/w_log10l.c (__log10l): Likewise.
7046         * math/w_log2l.c (__log2l): Likewise.
7047         * math/w_logl.c (__logl): Likewise.
7048         * math/w_powl.c (__powl): Likewise.
7049         * math/w_remainderl.c (__remainderl): Likewise.
7050         * math/w_scalbl.c (sysv_scalbl): Likewise.
7051         * math/w_sinhl.c (__sinhl): Likewise.
7052         * math/w_sqrtl.c (__sqrtl): Likewise.
7053         * math/w_tgammal.c (__tgammal): Likewise.
7054         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
7055         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
7056         * math/libm-test.inc (acos_test): Add more tests.
7057         (acosh_test): Likewise.
7058         (asin_test): Likewise.
7059         (atanh_test): Likewise.
7060         (exp_test): Likewise.
7061         (exp10_test): Likewise.
7062         (exp2_test): Likewise.
7063         (expm1_test): Likewise.
7064         (lgamma_test): Likewise.
7065         (log_test): Likewise.
7066         (log10_test): Likewise.
7067         (log1p_test): Likewise.
7068         (log2_test): Likewise.
7069         (pow_test): Do not allow some spurious overflow exceptions.
7070         (sqrt_test): Add more tests.
7071         (tgamma_test): Likewise.
7072         (y0_test): Likewise.
7073         (y1_test): Likewise.
7074         (yn_test): Likewise.
7075
7076 2012-03-27  Anton Blanchard  <anton@samba.org>
7077
7078         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
7079         MAP_HUGETLB.
7080         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7081         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7082         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
7083
7084 2012-03-27  David S. Miller  <davem@davemloft.net>
7085
7086         * conform/Makefile: Run run-conformtest.sh using $(BASH).
7087
7088         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
7089         have-as-vis3 check.
7090
7091 2012-03-27  Andreas Jaeger  <aj@suse.de>
7092
7093         * sysdeps/x86_64/elf/configure.in: Moved to ...
7094         * sysdeps/x86_64/configure.in: ... here.
7095         * sysdeps/x86_64/elf/start.S: Moved to ...
7096         * sysdeps/x86_64/start.S: ... here.
7097         * sysdeps/x86_64/elf/configure: Delete.
7098
7099         * sysdeps/x86_64/configure.in: Merge contents from
7100         sysdeps/i386/configure.in (without i686 check).
7101
7102         * sysdeps/i386/elf/Versions: Merge into ...
7103         * sysdeps/i386/Versions: ... this.
7104         * sysdeps/i386/elf/Versions: Delete file.
7105         * sysdeps/i386/elf/start.S: Moved to ...
7106         * sysdeps/i386/start.S: ...here.
7107         * sysdeps/i386/elf/configure.in: Merge into...
7108         * sysdeps/i386/configure.in: ...here.
7109         * sysdeps/i386/elf/configure.in: Delete file.
7110         * sysdeps/i386/elf/configure: Delete file.
7111
7112         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
7113         * debug/backtracesyms.c: ... here.
7114         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
7115         * debug/backtracesymsfd.c: ... here.
7116         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
7117         * sysdeps/generic/ifunc-sel.h: ... here.
7118
7119         * sysdeps/unix/i386/start.c: Delete file.
7120         * sysdeps/unix/sparc/start.c: Delete file.
7121         * sysdeps/unix/start.c: Delete file.
7122
7123         * sysdeps/sh/elf/configure.in: Moved to ...
7124         * sysdeps/sh/configure.in: ... here.
7125         * sysdeps/sh/elf/start.S: Moved to ...
7126         * sysdeps/sh/start.S: ... here.
7127         * sysdeps/sh/elf/configure: Delete file.
7128
7129         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
7130         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
7131         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
7132         * sysdeps/powerpc/powerpc64/entry.h: ... here.
7133         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
7134         * sysdeps/powerpc/powerpc64/start.S: here.
7135         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
7136         * sysdeps/powerpc/powerpc64/Makefile: ... this.
7137         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
7138         * sysdeps/powerpc/powerpc64/configure.in: ... this.
7139         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
7140
7141         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
7142         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
7143         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
7144         * sysdeps/powerpc/powerpc32/start.S: ... here.
7145         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
7146         * sysdeps/powerpc/powerpc32/configure.in: ... this.
7147         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
7148
7149         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
7150         * sysdeps/powerpc/ifunc-sel.h: ... here.
7151         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
7152         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
7153
7154         * sysdeps/sparc/elf/configure.in: Moved to ...
7155         * sysdeps/sparc/configure.in: ... here.
7156         * sysdeps/sparc/elf/configure: Delete file.
7157         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
7158         * sysdeps/sparc/sparc32/start.S: ... here.
7159         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
7160         * sysdeps/sparc/sparc64/start.S: ... here.
7161         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
7162         * sysdeps/sparc/sparc32/Makefile: ... this.
7163         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
7164         * sysdeps/sparc/sparc64/Makefile: ... this.
7165
7166         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
7167         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
7168         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
7169         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
7170         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
7171         * sysdeps/s390/s390-32/setjmp.S: ... here.
7172         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
7173         * sysdeps/s390/s390-32/configure.in: ... here.
7174         * sysdeps/s390/s390-32/elf/configure: Delete file.
7175         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
7176         * sysdeps/s390/s390-32/start.S: ... here.
7177
7178         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
7179         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
7180         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
7181         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
7182         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
7183         * sysdeps/s390/s390-64/setjmp.S: ... here.
7184         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
7185         * sysdeps/s390/s390-64/configure.in: ... here
7186         * sysdeps/s390/s390-64/elf/configure: Delete file.
7187         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
7188         * sysdeps/s390/s390-64/start.S: ... here.
7189         * sysdeps/s390/s390-64/elf/configure: Delete.
7190
7191         * configure.in: Remove support for elf directories in sysdeps.
7192
7193         * configure: Regenerated.
7194         * sysdeps/i386/configure: Regenerated.
7195         * sysdeps/powerpc/powerpc32/configure: Regenerated.
7196         * sysdeps/powerpc/powerpc64/configure: Regenerated.
7197         * sysdeps/s390/s390-32/configure: Regenerated.
7198         * sysdeps/s390/s390-64/configure: Regenerated.
7199         * sysdeps/sh/configure: Regenerated.
7200         * sysdeps/sparc/configure: Regenerated.
7201         * sysdeps/x86_64/configure: Regenerated.
7202
7203 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
7204
7205         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7206
7207         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
7208         denormal result into account.
7209
7210 2012-03-25  Roland McGrath  <roland@hack.frob.com>
7211
7212         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
7213         Reported by Allan McRae <allan@archlinux.org>.
7214
7215 2012-03-23  Jeff Law  <law@redhat.com>
7216
7217         * nss/getnssent.c (__nss_getent): Fix typo.
7218
7219 2012-03-23  David S. Miller  <davem@davemloft.net>
7220
7221         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7222
7223 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
7224
7225         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
7226         to pad to uint64_t for each field.
7227         (dl_tls_index): Replace unsigned long with uint64_t.
7228
7229 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
7230         Paul Pluzhnikov  <ppluzhnikov@google.com>
7231
7232         [BZ #6528]
7233         * grp/Makefile (otherlibs): Don't set it.
7234         * inet/Makefile (otherlibs): Likewise.
7235         * login/Makefile (otherlibs): Likewise.
7236         * nscd/Makefile (otherlibs): Likewise.
7237         * posix/Makefile (otherlibs): Likewise.
7238         * pwd/Makefile (otherlibs): Likewise.
7239         * rt/Makefile (otherlibs): Likewise.
7240         * sunrpc/Makefile (otherlibs): Likewise.
7241         * nss/Makefile (otherlibs): Likewise.
7242         Add libnss_files to routines and static-only-routines.
7243         ($(objpfx)getent): Remove rule.
7244         * resolv/Makefile: Add libnss_dns and libresolv to routines and
7245         static-only-routines.
7246
7247 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
7248
7249         [BZ #13892]
7250         * math/s_cexp.c: Include <float.h>.
7251         (__cexp): Handle exp result overflowing not necessarily
7252         overflowing both real and imaginary parts of result.
7253         * math/s_cexpf.c: Likewise.
7254         * math/s_cexpl.c: Likewise.
7255         * math/libm-test.inc (cexp_test): Add more tests.
7256         * sysdeps/i386/fpu/libm-test-ulps: Update.
7257         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7258
7259 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7260
7261         * include/link.h (ELFW): New macro.
7262         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
7263         Replace ELF64_R_TYPE with ELFW(R_TYPE).
7264
7265 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7266
7267         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
7268         with uint64_t.
7269
7270 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7271
7272         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
7273         declaration.
7274         (struct La_x32_retval): Likewise.
7275
7276 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7277
7278         * sysdeps/x86_64/preconfigure.in: New file.
7279         * sysdeps/x86_64/preconfigure: New generated file.
7280
7281 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
7282
7283         [BZ #13824]
7284         * math/e_exp2l.c: Include <float.h>.
7285         (__ieee754_exp2l): Handle overflow and underflow cases
7286         separately.  Only pass fractional part of argument to
7287         __ieee754_expl.
7288         * math/libm-test.inc (exp2_test): Add more tests.
7289
7290         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
7291         negating x to take absolute value.
7292         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
7293         Likewise.
7294         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
7295         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
7296         Likewise.
7297         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
7298         computing low part if x was negated.
7299         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
7300
7301 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7302
7303         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
7304         la_x32_gnu_pltexit.
7305         (pltexit): Cast int_retval to ptrdiff_t.
7306         * elf/tst-auditmod3b.c: Likewise.
7307         * elf/tst-auditmod4b.c: Likewise.
7308         * elf/tst-auditmod5b.c: Likewise.
7309         * elf/tst-auditmod6b.c: Likewise.
7310         * elf/tst-auditmod6c.c: Likewise.
7311         * elf/tst-auditmod7b.c: Likewise.
7312
7313         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
7314         and x32_gnu_pltexit.
7315
7316         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
7317         __ELF_NATIVE_CLASS.
7318         (La_x32_regs): New macro.
7319         (La_x32_retval): Likewise.
7320         (la_x32_gnu_pltenter): New function prototype.
7321         (la_x32_gnu_pltexit): Likewise.
7322
7323 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
7324
7325         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
7326         exponent.
7327
7328         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7329
7330         * configure.in (libc_cv_cc_nofma): Check for option to disable
7331         generation of FMA instructions.
7332         * configure: Regenerate.
7333         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
7334         * sysdeps/ieee754/dbl-64/Makefile: New file.
7335         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7336         Remove brandred-fma4.
7337         (CFLAGS-brandred-fma4.c): Remove.
7338         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
7339         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
7340         define.
7341         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
7342         define.
7343
7344 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7345
7346         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7347         LLONG_MAX != LONG_MAX.
7348         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7349         (_fitoa_word): Likewise.
7350         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
7351         LLONG_MAX != LONG_MAX.
7352         * stdio-common/_itowa.h: Include <_itoa.h>.
7353         (_itowa_word): Use _ITOA_WORD_TYPE on value.
7354         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
7355         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
7356         only if not defined.
7357         (_ITOA_WORD_TYPE): Likewise.
7358         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7359         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
7360
7361 2012-03-21  David S. Miller  <davem@davemloft.net>
7362
7363         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7364
7365 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7366
7367         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
7368         of x86_64 when setting libc_cv_slibdir, libdir and
7369         libc_cv_localedir.
7370         * sysdeps/unix/sysv/linux/configure: Regenerated.
7371
7372 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7373
7374         * manual/lang.texi (Old Varargs): Remove section.
7375         (How Variadic): Update menu.
7376         (va_start): Do not mention varargs.h.
7377
7378 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7379             Joseph Myers  <joseph@codesourcery.com>
7380
7381         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
7382         link test.
7383         * configure: Regenerated.
7384
7385 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7386
7387         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
7388         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
7389         conformtest.pl
7390
7391 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7392
7393         * NOTES: Remove.
7394         * Makefile (files-for-dist): Remove NOTES.
7395         (NOTES): Remove rule.
7396         * README: Don't refer to NOTES.
7397         * manual/creature.texi: Don't include macros.texi.
7398         * manual/intro.texi (creature.texi): Remove comment referring to
7399         NOTES.
7400
7401         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
7402         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
7403         * configure: Regenerated.
7404         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
7405         LIBC_TRY_CC_OPTION.
7406         (libc_cv_as_i686): Likewise.
7407         (libc_cv_cc_avx): Likewise.
7408         (libc_cv_cc_sse2avx): Likewise.
7409         (libc_cv_cc_fma4): Likewise.
7410         (libc_cv_cc_novzeroupper): Likewise.
7411         * sysdeps/i386/configure: Regenerated.
7412
7413         [BZ #13883]
7414         * sysdeps/i386/fpu/s_cexp.S: Remove.
7415         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7416         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7417         * math/libm-test.inc (cexp_test): Add more tests.
7418         * sysdeps/i386/fpu/libm-test-ulps: Update.
7419         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7420
7421 2012-03-21  Allan McRae  <allan@archlinux.org>
7422
7423         * timezone/Makefile: Do not install iso3166.tab and zone.tab
7424
7425 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7426
7427         [BZ #13871]
7428         * math/w_exp2.c: Do not include <float.h>.
7429         (o_threshold, u_threshold): Remove.
7430         (__exp2): Calculate result before checking finiteness and calling
7431         __kernel_standard.
7432         * math/w_exp2f.c: Likewise.
7433         * math/w_exp2l.c: Likewise.
7434         * math/libm-test.inc (exp2_test): Require overflow exception for
7435         1e6 input.
7436
7437         [BZ #3866]
7438         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
7439         range of signed 64-bit integers before using fistpll.  Remove
7440         checks for whether integers fit in mantissa bits.
7441         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
7442         the range of signed 32-bit integers before using fistpl.  Remove
7443         checks for whether integers fit in mantissa bits.
7444         * sysdeps/i386/fpu/e_powl.S (p64): New object.
7445         (__ieee754_powl): Test for y outside the range of signed 64-bit
7446         integers before using fistpll.  Reduce 64-bit values to 63-bit
7447         ones as needed.
7448         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
7449         divide-by-zero is raised for zero to large negative powers.
7450         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
7451         (__ieee754_powl): Test for y outside the range of signed 64-bit
7452         integers before using fistpll.  Reduce 64-bit values to 63-bit
7453         ones as needed.
7454         * math/libm-test.inc (pow_test): Add more tests.
7455
7456 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7457
7458         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
7459         <stdio-common/_itoa.h>.
7460         * debug/segfault.c: Likewise.
7461         * elf/dl-cache.c: Likewise.
7462         * elf/dl-minimal.c: Likewise.
7463         * elf/dl-misc.c: Likewise.
7464         * elf/dl-sysdep.c: Likewise.
7465         * elf/dl-version.c: Likewise.
7466         * elf/rtld.c: Likewise.
7467         * hurd/hurdsock.c: Likewise.
7468         * hurd/lookup-retry.c: Likewise.
7469         * malloc/malloc.c: Likewise.
7470         * malloc/mtrace.c: Likewise.
7471         * nscd/nscd_getgr_r.c: Likewise.
7472         * nscd/nscd_getpw_r.c: Likewise.
7473         * nscd/nscd_getserv_r.c: Likewise.
7474         * posix/getopt_init.c: Likewise.
7475         * posix/wordexp.c: Likewise.
7476         * stdio-common/_itoa.c: Likewise.
7477         * stdio-common/printf_fphex.c: Likewise.
7478         * stdio-common/vfprintf.c: Likewise.
7479         * string/_strerror.c: Likewise.
7480         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7481         * sysdeps/i386/i686/hp-timing.h: Likewise.
7482         * sysdeps/mach/_strerror.c: Likewise.
7483         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
7484         * sysdeps/mach/hurd/sethostid.c: Likewise.
7485         * sysdeps/mach/hurd/xmknodat.c: Likewise.
7486         * sysdeps/mach/xpg-strerror.c: Likewise.
7487         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7488         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
7489         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
7490         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
7491         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
7492         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
7493         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7494         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7495         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
7496         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
7497         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
7498         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
7499         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
7500         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
7501         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
7502         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
7503         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
7504         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
7505         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7506         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7507         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
7508
7509         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
7510
7511         * stdio-common/_itoa.h: Moved to ...
7512         * sysdeps/generic/_itoa.h: Here.
7513
7514         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
7515
7516         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
7517         instead of "_itoa.h" and "_itowa.h".
7518         * stdio-common/vfprintf.: Likewise.
7519
7520 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7521
7522         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
7523         <bits/wordsize.h>.
7524         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
7525         (__signbit): Likwise.
7526         (llrintf): Likwise.
7527         (llrint): Likwise.
7528
7529 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7530
7531         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
7532         __WORDSIZE != 64.
7533
7534 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
7535
7536         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
7537         OVERFLOW_EXCEPTION_OK.
7538         * math/libm-test.inc ("Philosophy"): Update comment about
7539         exception testing.
7540         (OVERFLOW_EXCEPTION): Define.
7541         (OVERFLOW_EXCEPTION_OK): Likewise.
7542         (INVALID_EXCEPTION_OK): Renumber.
7543         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7544         (IGNORE_ZERO_INF_SIGN): Likewise.
7545         (test_exceptions): Handle FE_OVERFLOW.
7546         (exp10_test): Expect overflow exceptions.
7547         (exp2_test): Likewise.
7548         (expm1_test): Likewise.
7549         (nextafter_test): Likewise.
7550         (pow_test): Likewise.
7551         (scalbn_test): Likewise.
7552         (scalbln_test): Likewise.
7553
7554 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7555
7556         * sysdeps/x86_64/bits/atomic.h
7557         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
7558         64bit integer.
7559         (atomic_exchange_acq): Likewise.
7560         (__arch_exchange_and_add_body): Likewise.
7561         (__arch_add_body): Likewise.
7562         (atomic_add_negative): Likewise.
7563         (atomic_add_zero): Likewise.
7564
7565 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7566
7567         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
7568         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
7569
7570 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7571
7572         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
7573         Check __x86_64__ instead of __WORDSIZE.
7574
7575 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7576
7577         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
7578
7579 2012-03-19  David S. Miller  <davem@davemloft.net>
7580
7581         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7582
7583         * sysdeps/sparc/fpu/fenv_private.h: New file.
7584         * sysdeps/sparc/fpu/math_private.h: Use it.
7585         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
7586         Remove.
7587         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
7588         (libc_feholdexcept_setroundl): Remove.
7589         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
7590         Remove.
7591         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
7592         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
7593
7594 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7595
7596         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
7597         int64_t instead of long int.
7598         (INSERT_WORDS64): Likwise.
7599
7600 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7601
7602         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
7603         _Unwind_GetCFA return to _Unwind_Ptr first.
7604
7605 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
7606
7607         [BZ #13629]
7608         * math/s_clog.c: Include <float.h>.
7609         (__clog): Scale large or subnormal inputs.
7610         * math/s_clogf.c: Likewise.
7611         * math/s_clogl.c: Likewise.
7612         * math/s_clog10.c: Include <float.h>.
7613         (M_LOG10_2): Define.
7614         (__clog10): Scale large or subnormal inputs.
7615         * math/s_clog10f.c: Likewise.
7616         * math/s_clog10l.c: Likewise.
7617         * math/libm-test.inc (clog_test): Add more tests.
7618         (clog10_test): Likewise.
7619         * sysdeps/i386/fpu/libm-test-ulps: Update.
7620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7621
7622         [BZ #11451]
7623         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
7624         x and y.
7625         * math/libm-test.inc (atan2_test): Add another test.
7626
7627         * Makerules (common-objdir-compile): Remove.
7628         * sysdeps/unix/Makefile (config-generated): Do not add
7629         $(unix-generated) to variable.
7630         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
7631         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
7632         Remove rule.
7633         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
7634         Likewise.
7635         [generic bits/local_lim.h] (before-compile): Do not append to
7636         variable.
7637         [generic bits/local_lim.h] (common-generated): Likewise.
7638         [generic sys/param.h] (before-compile): Do not append to variable.
7639         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
7640         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
7641         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
7642         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
7643         include.
7644         [generic sys/param.h] (sys/param.h-includes): Remove variable.
7645         [generic sys/param.h] (sys/param.h-includes): Remove rule.
7646         [generic sys/param.h] ($(addprefix
7647         $(common-objpfx),$(sys/param.h-includes))): Likewise.
7648         [generic sys/param.h] (common-generated): Do not append to
7649         variable.
7650         [generic sys/param.h] (sysdep_headers): Likewise.
7651         [generic bits/errno.h] (before-compile): Do not append to
7652         variable.
7653         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
7654         rule.
7655         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
7656         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
7657         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
7658         [generic bits/errno.h] (common-generated): Do not append to
7659         variable.
7660         [generic bits/ioctls.h] (before-compile): Do not append to
7661         variable.
7662         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
7663         rule.
7664         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
7665         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
7666         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
7667         rule.
7668         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
7669         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
7670         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
7671         [generic bits/ioctls.h] (common-generated): Do not append to
7672         variable.
7673         [generic sys/syscall.h] (syscall.h): Remove variable.
7674         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
7675         rule.
7676         [generic sys/syscall.h] (before-compile): Do not append to
7677         variable.
7678         [generic sys/syscall.h] (common-generated): Likewise.
7679         * sysdeps/unix/errnos-tmpl.c: Remove file.
7680         * sysdeps/unix/errnos.awk: Likewise.
7681         * sysdeps/unix/ioctls-tmpl.c: Likewise.
7682         * sysdeps/unix/ioctls.awk: Likewise.
7683         * sysdeps/unix/mk-local_lim.c: Likewise.
7684         * sysdeps/unix/snarf-ioctls: Likewise.
7685
7686 2012-03-19  Richard Henderson  <rth@twiddle.net>
7687
7688         * sysdeps/i386/fpu/fenv_private.h: New file.
7689         * sysdeps/i386/fpu/math_private.h: Use it.
7690         (math_opt_barrier, math_force_eval): Remove.
7691         (libc_feholdexcept_setround_53bit): Remove.
7692         (libc_feupdateenv_53bit): Remove.
7693         * sysdeps/x86_64/fpu/math_private.h: Likewise.
7694         (math_opt_barrier, math_force_eval): Remove.
7695         (libc_feholdexcept): Remove.
7696         (libc_feholdexcept_setround): Remove.
7697         (libc_fetestexcept, libc_fesetenv): Remove.
7698         (libc_feupdateenv_test): Remove.
7699         (libc_feupdateenv, libc_feholdsetround): Remove.
7700         (libc_feresetround): Remove.
7701
7702         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
7703         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
7704
7705         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
7706         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
7707         (libc_feupdateenv_testl): New.
7708         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
7709         (libc_feupdateenv_testf): New.
7710         (libc_feupdateenv): Use libc_feupdateenv_test.
7711         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
7712         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
7713
7714         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
7715         (libc_feholdsetroundf, libc_feholdsetroundl): New.
7716         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
7717         (libc_feresetround_noex): New.
7718         (libc_feresetround_noexf): New.
7719         (libc_feresetround_noexl): New.
7720         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
7721         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
7722         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
7723         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
7724         SET_RESTORE_ROUND.
7725         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
7726         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
7727         (__cos): Likewise.
7728         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
7729         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
7730         SET_RESTORE_ROUND_NOEX.
7731         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
7732         SET_RESTORE_ROUND_NOEXF.
7733         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
7734         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
7735         (libc_feholdsetroundf): New.
7736         (libc_feresetround, libc_feresetroundf): New.
7737
7738         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
7739         (libc_feholdexcept_setround_53bit): Convert from macro to function.
7740         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
7741
7742         * sysdeps/generic/math_private.h: Include <fenv.h>.
7743         (default_libc_feholdexcept): New.
7744         (default_libc_feholdexcept_setround): New.
7745         (default_libc_fesetenv, default_libc_feupdateenv): New.
7746         (libc_feholdexcept): Only define if undefined.
7747         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
7748         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
7749         (libc_feholdexcept_setroundl): Likewise.
7750         (libc_feholdexcept_setround_53bit): Likewise.
7751         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
7752         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
7753         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
7754         (libc_feupdateenv_53bit): Likewise.
7755         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
7756         (libc_feholdexcept): Convert from macro to inline function.
7757         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
7758         (libc_fesetenv, libc_feupdateenv): Likewise.
7759
7760         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
7761         not previously defined.
7762         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
7763         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
7764         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
7765         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
7766         * sysdeps/ieee754/flt-32/math_private.h: New file.
7767         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
7768         math_private.h below SET_FLOAT_WORD.
7769         (__isnan, __isinf_ns, __finite): Remove.
7770         (__isnanf, __isinf_nsf, __finitef): Remove.
7771
7772 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
7773
7774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7775
7776 2012-03-17  David S. Miller  <davem@davemloft.net>
7777
7778         [BZ #6471]
7779         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
7780         for 2.16.
7781
7782 2012-03-16  David S. Miller  <davem@davemloft.net>
7783
7784         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
7785         warnings.
7786
7787         [BZ #6471]
7788         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
7789         properly.
7790         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
7791         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
7792         sysdep_routines when subdir is sysvipc.
7793         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
7794         __getshmlba helper.
7795
7796         * sysdeps/sparc/fpu/libm-test/ulps: Update.
7797
7798 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7799
7800         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
7801         [__LP64__].
7802
7803 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7804
7805         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
7806         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
7807         (__lround): Renamed to ...
7808         (__llround): This.  Replace long int with long long int.
7809         Define lround functions as aliases of llround functions.
7810         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
7811
7812 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7813
7814         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7815         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
7816         adresses to uintptr_t.  Replace "long int" and "unsigned long
7817         int" with "greg_t" on va_arg.
7818
7819 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7820
7821         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
7822         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
7823
7824         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
7825         Move e_machine check before EI_CLASS check.  Handle x32
7826         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
7827         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
7828         SKIP_EM_IA_64 and include
7829         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
7830
7831         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
7832         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
7833         (add_system_dir): New macro.
7834
7835         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
7836         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
7837
7838 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
7839
7840         [BZ #2551]
7841         [BZ #2552]
7842         [BZ #2553]
7843         [BZ #2554]
7844         [BZ #2562]
7845         [BZ #2563]
7846         [BZ #2565]
7847         [BZ #2566]
7848         [BZ #2576]
7849         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
7850         (y0): Likewise.
7851         * math/w_j0f.c (j0f): Likewise.
7852         (y0f): Likewise.
7853         * math/w_j0l.c (__j0l): Likewise.
7854         (__y0l): Likewise.
7855         * math/w_j1.c (j1): Likewise.
7856         (y1): Likewise.
7857         * math/w_j1f.c (j1f): Likewise.
7858         (y1f): Likewise.
7859         * math/w_j1l.c (__j1l): Likewise.
7860         (__y1l): Likewise.
7861         * math/w_jn.c (jn): Likewise.
7862         (yn): Likewise.
7863         * math/w_jnf.c (jnf): Likewise.
7864         (ynf): Likewise.
7865         * math/w_jnl.c (__jnl): Likewise.
7866         (__ynl): Likewise.
7867         * math/libm-test.inc (j0_test): Add more tests.
7868         (j1_test): Likewise.
7869         (jn_test): Likewise.  Add trailing semicolon to existing test.
7870         (y0_test): Likewise.
7871         (y1_test): Likewise.
7872         * sysdeps/i386/fpu/libm-test-ulps: Update.
7873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7874
7875         [BZ #13851]
7876         [BZ #13854]
7877         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
7878         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
7879         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
7880         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
7881         (__tanl): Set errno for infinite argument.
7882         * sysdeps/i386/fpu/mptan.c: Remove.
7883         * sysdeps/i386/fpu/s_tan.S: Likewise.
7884         * sysdeps/i386/fpu/s_tanl.S: Likewise.
7885         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
7886         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
7887         * math/libm-test.inc (tan_test): Add more tests and enable more
7888         tests for double and long double.
7889         * sysdeps/i386/fpu/libm-test-ulps: Update.
7890         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7891
7892 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7893
7894         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
7895         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
7896
7897 2012-03-16  Roland McGrath  <roland@hack.frob.com>
7898
7899         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
7900         * configure.in: Use it for both main tree and add-ons.
7901         * configure: Regenerated.
7902
7903 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7904
7905         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
7906
7907 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
7908
7909         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
7910         in comment.
7911
7912         [BZ #13851]
7913         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
7914         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
7915         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
7916         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
7917         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
7918         infinite argument.
7919         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
7920         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
7921         != 0 for prec == 2.
7922         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
7923         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
7924         * sysdeps/i386/fpu/s_cosl.S: Likewise.
7925         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
7926         * sysdeps/i386/fpu/s_sinl.S: Likewise.
7927         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
7928         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
7929         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
7930         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
7931         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
7932         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
7933         * math/libm-test.inc (cos_test): Add more tests and enable more
7934         tests for long double.
7935         (sin_test): Likewise.
7936         (sincos_test): Likewise.
7937         * sysdeps/i386/fpu/libm-test-ulps: Update.
7938         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7939
7940 2012-03-16  David S. Miller  <davem@davemloft.net>
7941
7942         * sysdeps/sparc/fpu/math_private.h: New file.
7943
7944 2012-03-15  David S. Miller  <davem@davemloft.net>
7945
7946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
7947         file.
7948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
7949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
7950         file.
7951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
7952         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
7953         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
7954         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
7955         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
7956         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
7957         sysdep routines.
7958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
7959
7960         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
7961         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
7962
7963         * sysdeps/sparc/sparc-ifunc.h: New file.
7964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
7965         sparc-ifunc.h
7966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
7967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
7968         Likewise.
7969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
7970         Likewise.
7971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
7972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
7973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
7975         Likewise.
7976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
7978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
7980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
7981         Likewise.
7982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
7983         Likewise.
7984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
7986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
7987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
7988         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
7989         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
7990         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
7991         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
7992         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
7993         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
7994         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
7995         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
7996         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
7997         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
7998         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
7999         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
8000         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
8001         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
8002         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
8003         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
8004         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
8005         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
8006         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
8007         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
8008
8009 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
8010
8011         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
8012         scaling.
8013         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8014
8015 2012-03-15  Andreas Jaeger  <aj@suse.de>
8016
8017         [BZ #13852]
8018         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
8019         ieee754/flt-32 implementation for sin, cos and sincos.
8020         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
8021         * sysdeps/i386/fpu/s_cosf.S: Likewise.
8022         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
8023         * sysdeps/i386/fpu/s_sinf.S: Likewise.
8024         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
8025         ieee754/flt-32 implementation for tan.
8026
8027         * math/libm-test.inc (cos_test): Enable some large input tests for
8028         float as well
8029         (sin_test): Likewise.
8030         (sincos_test): Likewise.
8031         (tan_test): Add tests for large input.
8032
8033         * sysdeps/i386/fpu/libm-test-ulps: Update.
8034
8035 2012-03-15  Andreas Jaeger  <aj@suse.de>
8036
8037         [BZ #13658]
8038         * math/libm-test.inc (cos_test): Add more test cases.
8039         (sin_test): Likewise.
8040         (sincos_test): Likewise.
8041
8042 2012-03-15  Andreas Jaeger  <aj@suse.de>
8043
8044         [BZ #13837]
8045         * math/libm-test.inc (cos_test): Add a test case for large input
8046         value.
8047         (sin_test): Likewise.
8048         (sincos_test): Likewise.
8049
8050 2012-03-15  Andreas Jaeger  <aj@suse.de>,
8051         Joseph Myers  <joseph@codesourcery.com>
8052
8053         [BZ #13658]
8054         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
8055         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
8056         * sysdeps/i386/fpu/branred.c: Likewise.
8057         * sysdeps/i386/fpu/dosincos.c: Likewise.
8058         * sysdeps/i386/fpu/mpa.c: Likewise.
8059         * sysdeps/i386/fpu/s_cos.S: Likewise.
8060         * sysdeps/i386/fpu/s_sin.S: Likewise.
8061         * sysdeps/i386/fpu/s_sincos.S: Likewise.
8062         * sysdeps/i386/fpu/sincos32.c: Likewise.
8063
8064         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
8065         Define.
8066         (libc_feupdateenv_53bit): Define.
8067         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
8068         Define.
8069         (libc_feupdateenv_53bit): Define.
8070
8071         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
8072         53 bit (without extend i386 double precision).
8073
8074         * math/libm-test.inc (sincos_test): Add tests for large input.
8075         (sin): Likewise.
8076         (cos): Likewise.
8077
8078         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
8079
8080 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
8081
8082         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8083
8084 2012-03-15  David S. Miller  <davem@davemloft.net>
8085
8086         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
8087         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
8088         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
8089         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
8090         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
8091         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
8092         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
8093         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
8094         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
8095         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
8096         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
8097         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
8098         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
8099         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
8100         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
8101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
8102         file.
8103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
8104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
8105         file.
8106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
8107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
8108         file.
8109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
8110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
8111         file.
8112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
8113         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
8114         fmin/fmax sysdep routines.
8115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8116
8117 2012-03-14  David S. Miller  <davem@davemloft.net>
8118
8119         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
8120         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
8121         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
8122         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
8123         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
8124         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
8125         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
8126         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
8127         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
8128         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
8129         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
8130         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
8131         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
8132         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
8133         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
8134         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
8135         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
8136         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
8137         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
8138         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
8139         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
8140         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
8141         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
8142         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
8143         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
8144         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
8145         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
8146         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
8147         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
8148         routines.
8149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
8150         file.
8151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
8152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
8153         file.
8154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
8155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
8156         file.
8157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
8158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
8159         file.
8160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
8161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
8162         file.
8163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
8164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
8165         file.
8166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
8167         file.
8168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
8169         file.
8170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
8171         file.
8172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
8173         New file.
8174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
8175         file.
8176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
8177         file.
8178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
8179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
8180         file.
8181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
8182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
8183         file.
8184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
8185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
8186         file.
8187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
8188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
8189         VIS3 routines.
8190
8191         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
8192         New file.
8193
8194         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8195
8196         * sysdeps/sparc/configure.in: New file.
8197         * sysdeps/sparc/configure: Generate.
8198         * configure.in (libc_cv_sparc_as_vis3): Substitute.
8199         * configure: Regenerate.
8200         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
8201         * config.make.in (have-as-vis3): New.
8202         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
8203         available use -Av9d instead of -Av9a.
8204         * sysdeps/sparc/sparc64/Makefile: Likewise.
8205         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
8206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
8207         New file.
8208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
8209         file.
8210         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
8211         New file.
8212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
8213         file.
8214         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
8215         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
8216         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
8217         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
8218         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
8219
8220         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
8221         fzeros/fnegs to load 0x80000000 into a float register instead of
8222         using the stack.
8223         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
8224
8225 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
8226
8227         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8228         bits/syscall.h.
8229         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
8230         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
8231         ($(inst_includedir)/bits/syscall.h): Remove rule.
8232         ($(objpfx)bits/syscall.d): Include instead of
8233         $(objpfx)syscall-list.d.
8234         (generated): Change syscall-list.h and syscall-list.d to
8235         bits/syscall.h and bits/syscall.d.
8236
8237 2012-03-14  Roland McGrath  <roland@hack.frob.com>
8238
8239         [BZ #13846]
8240         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
8241
8242 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
8243
8244         [BZ #13841]
8245         * math/s_csqrt.c: Include <float.h>.
8246         (__csqrt): Scale large or subnormal inputs.
8247         * math/s_csqrtf.c: Likewise.
8248         * math/s_csqrtl.c: Likewise.
8249         * math/libm-test.inc (csqrt_test): Add more tests.
8250         * sysdeps/i386/fpu/libm-test-ulps: Update.
8251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8252
8253         [BZ #13840]
8254         * math/libm-test.inc (hypot_test): Add more tests.
8255
8256 2012-03-13  David S. Miller  <davem@davemloft.net>
8257
8258         [BZ #13840]
8259         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
8260         double-precision for the calculation instead of scaling.
8261
8262 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
8263
8264         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
8265         manipulate bits before adding and subtracting TWO52[sx].
8266         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
8267         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8268         Likewise.
8269         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
8270
8271 2012-03-13  David S. Miller  <davem@davemloft.net>
8272
8273         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
8274         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
8275         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
8276         rtld-global-offsets.h
8277         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8278
8279         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
8280         large parameters.
8281
8282         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
8283
8284         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
8285         'err' in the ifdef scope in which it is actually used.
8286
8287         * nss/nss_db/db-init.c: Include string.h
8288
8289 2012-03-12  David S. Miller  <davem@davemloft.net>
8290
8291         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
8292         masking out of the most significant byte of random value used.
8293         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8294         Fix coding style in previous change.
8295
8296         * sysdeps/unix/sysv/linux/kernel-features.h
8297         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
8298         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
8299         expression.
8300         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
8301         later.
8302
8303 2012-03-11  David S. Miller  <davem@davemloft.net>
8304
8305         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
8306         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
8307         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
8308         for 'resultvar' otherwise things get truncated on 64-bit.
8309
8310         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8311         Fix masking out of the most significant byte of random value used.
8312
8313         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8314
8315 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
8316
8317         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8318
8319 2012-03-09  David S. Miller  <davem@davemloft.net>
8320
8321         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
8322         variables with appropriate CPP guards.
8323         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
8324         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
8325         on resulting framesize and the management of the outregs buffer for pltexit.
8326         Preserve floating point return values across _dl_call_pltexit call.
8327         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
8328         framesize and the management of the outregs buffer for pltexit.
8329         Preserve floating point return values across _dl_call_pltexit
8330         call.
8331         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
8332         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
8333         (print_exit): Fix format string for return register value.
8334
8335 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
8336
8337         * sunrpc/Makefile (others): Add rpcgen.
8338         ($(objpfx)rpcgen): Remove special build rule and dependency on
8339         libc.
8340         * sunrpc/rpcgen.c: New file.
8341
8342 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
8343
8344         [BZ #13673]
8345         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
8346         * stdio-common/bug-vfprintf-nargs.c: Likewise.
8347         * sysdeps/i386/crti.S: Likewise.
8348         * sysdeps/i386/crtn.S: Likewise.
8349         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
8350         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
8351         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
8352         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
8353         * sysdeps/sh/crti.S: Likewise.
8354         * sysdeps/sh/crtn.S: Likewise.
8355         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
8356
8357         [BZ #13673]
8358         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
8359         with URL.
8360         * locale/programs/locfile-kw.gperf: Likewise.
8361         * locale/programs/charmap-kw.h: Regenerated.
8362         * locale/programs/locfile-kw.h: Likewise.
8363
8364         [BZ #13673]
8365         * intl/plural.y: Replace FSF snail mail address with URL.
8366         * intl/plural.c: Regenerated.
8367
8368 2012-03-09  Richard Henderson  <rth@twiddle.net>
8369
8370         * include/math_private.h: Remove file.
8371         * math/math_private.h: Move file ...
8372         * sysdeps/generic/math_private.h: ... here.
8373
8374         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
8375         * sysdeps/powerpc/fpu/math_private.h: Likewise.
8376         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8377
8378         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
8379         and <math_private.h>.
8380         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
8381         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
8382         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8383         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8384         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8385         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
8386         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
8387         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8388         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
8389         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8390         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8391         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8392         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8393         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8394         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
8395         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8396         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8397         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8398         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8399         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8400         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8401         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
8402         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
8403         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8404         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8405         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8406         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8407         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8408         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8409         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8410         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8411         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8412         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8413         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8414         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8415         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8416         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8417         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
8418         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
8419         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8420         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
8421         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
8422         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
8423         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
8424         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
8425         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
8426         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8427         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8428         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8429         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
8430         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8431         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8432         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
8433         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8434         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
8435         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8436         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8437         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
8438         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
8439         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
8440         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8441         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8442         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8443         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8444         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8445         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
8446         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
8447         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8448         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
8449         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
8450         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
8451         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8452         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
8453         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8454         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
8455         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
8456         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
8457         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8458         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
8459         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8460         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
8461         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8462         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
8463         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8464         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8465         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
8466         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
8467         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8468         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
8469         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8470         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8471         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
8472         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8473         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8474         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
8475         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
8476         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8477         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8478         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8479         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8480         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
8481         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
8482         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
8483         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
8484         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8485         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
8486         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8487         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
8488         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8489         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8490         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8491         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8492         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8493         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8494         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8495         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8496         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8497         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
8498         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8499         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8500         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8501         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
8502         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8503         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
8504         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8505         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
8506         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8507         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
8508         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
8509         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8510         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8511         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8512         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8513         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8514         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8515         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
8516         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8517         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8518         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
8519         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8520         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8521         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
8522         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
8523         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
8524         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
8525         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
8526         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
8527         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8528         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8529         * sysdeps/ieee754/k_standard.c: Likewise.
8530         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
8531         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
8532         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8533         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
8534         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8535         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
8536         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
8537         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8538         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
8539         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8540         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8541         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
8542         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8543         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
8544         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
8545         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8546         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
8547         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
8548         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8549         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
8550         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
8551         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
8552         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8553         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8554         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8555         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
8556         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8557         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8558         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
8559         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8560         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8561         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
8562         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
8563         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8564         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
8565         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
8566         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
8567         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
8568         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
8569         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
8570         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8571         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8572         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8573         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
8574         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8575         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8576         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
8577         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8578         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8579         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8580         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8581         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
8582         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8583         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8584         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8585         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8586         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
8587         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
8588         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
8589         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8590         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8591         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8592         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
8593         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
8594         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8595         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8596         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
8597         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8598         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
8599         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
8600         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8601         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8602         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
8603         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
8604         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
8605         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8606         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
8607         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
8608         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8609         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
8610         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8611         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8612         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8613         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8614         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
8615         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8616         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
8617         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
8618         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
8619         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
8620         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
8621         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
8622         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
8623         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
8624         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
8625         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
8626         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
8627         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
8628         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
8629         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
8630         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
8631         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
8632         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8633         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
8634         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
8635         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
8636         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
8637         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
8638         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
8639         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
8640         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
8641         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
8642         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
8643         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8644         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
8645         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8646         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
8647         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8648         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8649         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8650         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8651         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8652         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
8653         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8654         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8655         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8656         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
8657         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8658         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
8659         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8660         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
8661         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
8662         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
8663         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
8664         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
8665         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
8666         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
8667         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
8668         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
8669         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8670         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8671         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
8672         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8673         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8674         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
8675         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
8676         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
8677         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
8678         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
8679         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
8680         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
8681         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8682         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
8683         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
8684         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
8685         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
8686         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
8687         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
8688         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
8689         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
8690         * sysdeps/ieee754/s_lib_version.c: Likewise.
8691         * sysdeps/ieee754/s_matherr.c: Likewise.
8692         * sysdeps/ieee754/s_signgam.c: Likewise.
8693         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8694         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8695         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8696         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8697         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8698         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8699         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
8700         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
8701         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
8702         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8703         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8704         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8705         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
8706         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
8707         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
8708         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
8709         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
8710         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
8711         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
8712         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8713         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8714
8715 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
8716
8717         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
8718         * sunrpc/rpc_main.c: Likewise.
8719         * sunrpc/rpc_svcout.c: Likewise.
8720
8721 2012-03-09  David S. Miller  <davem@davemloft.net>
8722
8723         * include/math_private.h: New file.
8724
8725 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
8726
8727         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
8728         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
8729         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
8730         from <bits/socket_type.h>.
8731         (enum __socket_type): Don't define here.
8732         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
8733         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8734         bits/socket_type.h.
8735
8736         [BZ #13566]
8737         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
8738         checking __USE_GNU.
8739
8740         * Makerules ($(inst_includedir)/%.h): New rule.
8741         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
8742         (install-others): Remove variable setting.
8743         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
8744
8745 2012-03-08  Richard Henderson  <rth@twiddle.net>
8746
8747         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
8748         from macro to inline function; merge with the
8749         !__LIBC_INTERNAL_MATH_INLINES version.
8750         (__ieee754_sqrtf): Likewise.
8751
8752         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
8753         to inline function.
8754         (__rintf, __floor, __floorf): Likewise.
8755
8756         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
8757         macro to inline function.
8758         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
8759
8760         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
8761         not <math/math_private.h>.
8762
8763 2012-03-08  David S. Miller  <davem@davemloft.net>
8764
8765         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
8766         copyright year.
8767         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
8768
8769 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
8770
8771         * resolv/gai_misc.c (handle_requests): Fix struct timespec
8772         normalization.
8773         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
8774         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
8775
8776 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
8777
8778         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
8779         be defined individually, they must be defined as a block.  Define
8780         S for printing a string instead of hidint the different by using a
8781         macro for adding the 'l'.
8782         * stdio-common/tst-fphex-wide.c: Adjust.
8783
8784 2012-03-07  Marek Polacek  <polacek@redhat.com>
8785
8786         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
8787
8788 2012-03-08  Marek Polacek  <polacek@redhat.com>
8789
8790         [BZ #13806]
8791         * stdio-common/Makefile (tests): Add tst-fphex-wide.
8792         * stdio-common/tst-fphex.c: Define a few macros to make the
8793         test reusable.  Use them.
8794         * stdio-common/tst-fphex-wide.c: New file.
8795
8796 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
8797
8798         [BZ #6911]
8799         * manual/macros.texi (gnusystems): New macro.
8800         (nongnusystems): Likewise.
8801         (gnulinuxhurdsystems): Likewise.
8802         (gnuhurdsystems): Likewise..
8803         (gnulinuxsystems): Likewise.
8804         * manual/charset.texi: Use new macros or @theglibc{} to refer to
8805         variants of the GNU system, not "GNU system".
8806         * manual/conf.texi: Likewise.
8807         * manual/errno.texi: Likewise.  Update example of errno macro
8808         expansion.
8809         * manual/filesys.texi: Likewise.
8810         (getumask): Document as specific to GNU/Hurd.
8811         * manual/install.texi: Likewise.  Reword some references to
8812         GNU/Linux.
8813         * manual/intro.texi: Likewise.
8814         * manual/io.texi: Likewise.
8815         (File Name Portability): Detail which constraints are inapplicable
8816         to all GNU systems and which are only inapplicable to GNU/Hurd.
8817         * manual/job.texi: Likewise.
8818         * manual/llio.texi: Likewise.
8819         (O_NOCTTY): Document as present on GNU/Linux.
8820         * manual/maint.texi: Likewise.
8821         * manual/memory.texi: Likewise.
8822         * manual/pattern.texi: Likewise.
8823         * manual/pipe.texi: Likewise.
8824         * manual/process.texi: Likewise.
8825         * manual/resource.texi: Likewise.
8826         (RUSAGE_CHILDREN): Remove statement about specifying a particular
8827         child on GNU/Hurd.
8828         * manual/setjmp.texi: Likewise.
8829         * manual/signal.texi: Likewise.
8830         * manual/startup.texi: Likewise.
8831         * manual/stdio.texi: Likewise.
8832         * manual/terminal.texi: Likewise.
8833         (ONLCR): Document as POSIX.
8834         (OXTABS): Document availability on GNU/Linux as XTABS.
8835         (ONOEOT): Document availability separately from other bits.
8836         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
8837         * manual/time.texi: Likewise.
8838         * manual/users.texi: Likewise.
8839         * INSTALL: Regenerated.
8840         * sysdeps/gnu/errlist.c: Regenerated.
8841
8842         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
8843         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
8844         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
8845         puts.
8846         * configure: Regenerated.
8847
8848 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
8849
8850         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
8851         default includes instead of AC_HEADER_CHECK.
8852         * sysdeps/i386/configure: Regenerated.
8853
8854         [BZ #10716]
8855         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
8856         * math/s_cacoshf.c (__cacoshf): Likewise.
8857         * math/s_cacoshl.c (__cacoshl): Likewise.
8858         * math/s_casinh.c (__casinh): Set signs of result from argument.
8859         * math/s_casinhf.c (__casinhf): Likewise.
8860         * math/s_casinhl.c (__casinhl): Likewise.
8861         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
8862         (casinh_test): Add more tests.
8863         * sysdeps/i386/fpu/libm-test-ulps: Update.
8864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8865
8866 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
8867
8868         * po/zh_TW.po: Update from translation team.
8869
8870         * login/Makefile (distribute): Remove variable.
8871         * catgets/Makefile: Likewise.
8872         * mach/Makefile: Likewise.
8873         * malloc/Makefile: Likewise.
8874         * misc/Makefile: Likewise.
8875         * iconv/Makefile: Likewise.
8876         * nscd/Makefile: Likewise.
8877         * hurd/Makefile: Likewise.
8878         * manual/Makefile: Likewise.
8879         * locale/Makefile: Likewise.
8880         * intl/Makefile: Likewise.
8881         * conform/Makefile: Likewise.
8882         * nss/Makefile: Likewise.
8883         * time/Makefile: Likewise.
8884         * soft-fp/Makefile: Likewise.
8885         * dirent/Makefile: Likewise.
8886         * gmon/Makefile: Likewise.
8887         * po/Makefile: Likewise.
8888         * rt/Makefile: Likewise.
8889         * socket/Makefile: Likewise.
8890         * math/Makefile: Likewise.
8891         * signal/Makefile: Likewise.
8892         * debug/Makefile: Likewise.
8893         * elf/Makefile: Likewise.
8894         * timezone/Makefile: Likewise.
8895         * stdlib/Makefile: Likewise.
8896         * iconvdata/Makefile: Likewise.
8897         * sunrpc/Makefile: Likewise.
8898         * io/Makefile: Likewise.
8899         * argp/Makefile: Likewise.
8900         * inet/Makefile: Likewise.
8901         * hesiod/Makefile: Likewise.
8902         * grp/Makefile: Likewise.
8903         * csu/Makefile: Likewise.
8904         * wctype/Makefile: Likewise.
8905         * crypt/Makefile: Likewise.
8906         * libio/Makefile: Likewise.
8907         * string/Makefile: Likewise.
8908         * nis/Makefile: Likewise.
8909         * resolv/Makefile: Likewise.
8910         * stdio-common/Makefile: Likewise.
8911         * wcsmbs/Makefile: Likewise.
8912         * dlfcn/Makefile: Likewise.
8913         * posix/Makefile: Likewise.
8914
8915         [BZ #6959]
8916         * timezone/Makefile: Don't install timezone files, just the programs
8917         and scripts.
8918
8919 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
8920
8921         * nss/databases.def: Add missing gshadow entry.
8922
8923         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
8924
8925 2012-03-06  Marek Polacek  <polacek@redhat.com>
8926
8927         [BZ #13726]
8928         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
8929         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
8930         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
8931         * stdio-common/tst-long-dbl-fphex.c: New file.
8932
8933 2012-03-06  David S. Miller  <davem@davemloft.net>
8934
8935         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8936         (set_obp_int): New function.
8937         (get_obp_int): New function.
8938         (__get_clockfreq_via_dev_openprom): Likewise.
8939         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
8940         Avoid unused variable warnings on 'val' and use builtin_expect.
8941         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
8942         __builtin_expect.
8943         (INLINE_CLONE_SYSCALL): Likewise.
8944
8945 2012-03-05  David S. Miller  <davem@davemloft.net>
8946
8947         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8948
8949 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
8950
8951         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8952
8953         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
8954         only for |x| >= 40.
8955         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8956
8957 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
8958
8959         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
8960         Replace gettimeofday with __vdso_gettimeofday.
8961
8962         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8963         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
8964         __vdso_clock_gettime and __vdso_getcpu.
8965
8966         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
8967         time with __vdso_time.
8968
8969 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
8970
8971         * manual/lang.texi (size_t): Note types to which size_t may be
8972         equivalent with the GNU C Library, but do not describe when
8973         differences between them are significant.
8974
8975 2012-03-05  Andreas Jaeger  <aj@suse.de>
8976
8977         * sysdeps/i386/fpu/libm-test-ulps: Update.
8978
8979 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
8980
8981         [BZ #3976]
8982         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
8983         (__ieee754_pow): Save and restore rounding mode and use
8984         round-to-nearest for main computations.
8985         * math/libm-test.inc (pow_test_tonearest): New function.
8986         (pow_test_towardzero): Likewise.
8987         (pow_test_downward): Likewise.
8988         (pow_test_upward): Likewise.
8989         (main): Call the new functions.
8990         * sysdeps/i386/fpu/libm-test-ulps: Update.
8991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8992
8993         [BZ #3976]
8994         * math/libm-test.inc (cosh_test_tonearest): New function.
8995         (cosh_test_towardzero): Likewise.
8996         (cosh_test_downward): Likewise.
8997         (cosh_test_upward): Likewise.
8998         (sinh_test_tonearest): Likewise.
8999         (sinh_test_towardzero): Likewise.
9000         (sinh_test_downward): Likewise.
9001         (sinh_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-05  Tom de Vries  <tom@codesourcery.com>
9007
9008         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
9009         default stack guard is set in last bytes.
9010         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
9011
9012 2012-03-05  Kees Cook  <keescook@chromium.org>
9013
9014         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
9015
9016         [BZ #13656]
9017         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
9018         possibly allocate from heap instead of stack.
9019         * stdio-common/bug-vfprintf-nargs.c: New file.
9020         * stdio-common/Makefile (tests): Add nargs overflow test.
9021
9022 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
9023
9024         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9025
9026 2012-03-03  Marek Polacek  <polacek@redhat.com>
9027
9028         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
9029         * math/math_private.h: Likewise.
9030         * stdlib/tst-strtod.c: Likewise.
9031         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9032         * sysdeps/x86_64/bits/atomic.h: Likewise.
9033
9034 2012-03-02  David S. Miller  <davem@davemloft.net>
9035
9036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
9037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
9038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
9039         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
9040         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
9041         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
9042         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
9043         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
9044
9045 2012-03-02  Roland McGrath  <roland@hack.frob.com>
9046
9047         [BZ #13792]
9048         * manual/examples/README: New file, says the example source files
9049         can be used under GPL>=2.
9050         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
9051         line containing just "*/".
9052         * manual/examples/add.c: Add copyright header (GPL>=2).
9053         * manual/examples/argp-ex1.c: Likewise.
9054         * manual/examples/argp-ex2.c: Likewise.
9055         * manual/examples/argp-ex3.c: Likewise.
9056         * manual/examples/argp-ex4.c: Likewise.
9057         * manual/examples/atexit.c: Likewise.
9058         * manual/examples/db.c: Likewise.
9059         * manual/examples/dir.c: Likewise.
9060         * manual/examples/dir2.c: Likewise.
9061         * manual/examples/execinfo.c: Likewise.
9062         * manual/examples/filecli.c: Likewise.
9063         * manual/examples/filesrv.c: Likewise.
9064         * manual/examples/fmtmsgexpl.c: Likewise.
9065         * manual/examples/genpass.c: Likewise.
9066         * manual/examples/inetcli.c: Likewise.
9067         * manual/examples/inetsrv.c: Likewise.
9068         * manual/examples/isockad.c: Likewise.
9069         * manual/examples/longopt.c: Likewise.
9070         * manual/examples/memopen.c: Likewise.
9071         * manual/examples/memstrm.c: Likewise.
9072         * manual/examples/mkfsock.c: Likewise.
9073         * manual/examples/mkisock.c: Likewise.
9074         * manual/examples/mygetpass.c: Likewise.
9075         * manual/examples/pipe.c: Likewise.
9076         * manual/examples/popen.c: Likewise.
9077         * manual/examples/rprintf.c: Likewise.
9078         * manual/examples/search.c: Likewise.
9079         * manual/examples/select.c: Likewise.
9080         * manual/examples/setjmp.c: Likewise.
9081         * manual/examples/sigh1.c: Likewise.
9082         * manual/examples/sigusr.c: Likewise.
9083         * manual/examples/stpcpy.c: Likewise.
9084         * manual/examples/strdupa.c: Likewise.
9085         * manual/examples/strftim.c: Likewise.
9086         * manual/examples/strncat.c: Likewise.
9087         * manual/examples/subopt.c: Likewise.
9088         * manual/examples/swapcontext.c: Likewise.
9089         * manual/examples/termios.c: Likewise.
9090         * manual/examples/testopt.c: Likewise.
9091         * manual/examples/testpass.c: Likewise.
9092         * manual/examples/timeval_subtract.c: Likewise.
9093
9094         [BZ #13792]
9095         * manual/time.texi (Elapsed Time): Move timeval_subtract example
9096         function to ...
9097         * manual/timeval_subtract.c.texi: ... here, new file.
9098
9099 2012-03-02  David S. Miller  <davem@davemloft.net>
9100
9101         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
9102
9103 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
9104
9105         [BZ #3976]
9106         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
9107         (__sin): Save and restore rounding mode and use round-to-nearest
9108         for all computations.
9109         (__cos): Save and restore rounding mode and use round-to-nearest
9110         for all computations.
9111         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
9112         <fenv.h>.
9113         (tan): Save and restore rounding mode and use round-to-nearest for
9114         all computations.
9115         * math/libm-test.inc (cos_test_tonearest): New function.
9116         (cos_test_towardzero): Likewise.
9117         (cos_test_downward): Likewise.
9118         (cos_test_upward): Likewise.
9119         (sin_test_tonearest): Likewise.
9120         (sin_test_towardzero): Likewise.
9121         (sin_test_downward): Likewise.
9122         (sin_test_upward): Likewise.
9123         (tan_test_tonearest): Likewise.
9124         (tan_test_towardzero): Likewise.
9125         (tan_test_downward): Likewise.
9126         (tan_test_upward): Likewise.
9127         (main): Call the new functions.
9128         * sysdeps/i386/fpu/libm-test-ulps: Update.
9129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9130
9131         [BZ #10135]
9132         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
9133         small n, then large n, before computing and testing k+n.
9134         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9135         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9136         Likewise.
9137         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9138         Likewise.
9139         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
9140         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9141         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9142         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9143         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9144         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9145         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9146         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
9147         * math/libm-test.inc (scalbn_test): Add more tests.
9148         (scalbln_test): Likewise.
9149
9150         * manual/filesys.texi (mode_t): Describe constraints on size and
9151         signedness, not exact equivalence to a particular type.
9152         (ino_t): Likewise.
9153         (ino64_t): Likewise.
9154         (dev_t): Likewise.
9155         (nlink_t): Likewise.
9156         (blkcnt_t): Likewise.
9157         (blkcnt64_t): Likewise.
9158         * manual/llio.texi (off_t): Likewise.
9159
9160         [BZ #3976]
9161         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
9162         (__ieee754_exp): Save and restore rounding mode and use
9163         round-to-nearest for all computations.
9164         * math/libm-test.inc (exp_test_tonearest): New function.
9165         (exp_test_towardzero): Likewise.
9166         (exp_test_downward): Likewise.
9167         (exp_test_upward): Likewise.
9168         (main): Call the new functions.
9169         * sysdeps/i386/fpu/libm-test-ulps: Update.
9170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9171
9172 2012-03-01  Chris Demetriou  <cgd@google.com>
9173
9174         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
9175         have predictable order.
9176
9177 2012-03-01  David S. Miller  <davem@davemloft.net>
9178
9179         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
9180
9181         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
9182         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
9183         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
9184         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
9185
9186         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
9187         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
9188         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
9189         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
9190         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
9191         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
9192         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
9193         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
9194         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
9195
9196         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9197
9198         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
9199         * sysdeps/sparc/fpu/libm-test-ulps: to here.
9200         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
9201
9202         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
9203         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9204         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9205         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
9206         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
9207         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
9208         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
9209         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9210         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9211         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
9212         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
9213         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9214         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9215         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
9216         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
9217         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9218         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
9219         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
9220         * sysdeps/sparc/elf/configure: Regenerated.
9221
9222 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
9223
9224         * configure.in (AS, LD): Require binutils 2.20 or later.
9225         * configure: Regenerated.
9226         * manual/install.texi (Tools for Compilation): Give binutils 2.20
9227         as required minimum version.
9228         * INSTALL: Regenerated.
9229
9230         [BZ #2541]
9231         [BZ #4108]
9232         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
9233         before squaring exponent.
9234         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
9235         bottom long double and 27 bits of top long double before squaring
9236         exponent.
9237         * math/libm-test.inc (erfc_test): Add more tests.
9238         * sysdeps/i386/fpu/libm-test-ulps: Update.
9239         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9241
9242 2012-03-01  Kai Tietz  <ktietz@redhat.com>
9243
9244         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
9245         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
9246         containing bit-fields.
9247         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9248         * soft-fp/single.h (_FP_UNION_S): Likewise.
9249         * soft-fp/double.h (_FP_UNION_D): Likewise.
9250
9251 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
9252
9253         [BZ #13786]
9254         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
9255         not include ../strcmp.S.
9256         [USE_AS_STRNCASECMP_L]: Likewise.
9257         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
9258         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
9259         * sysdeps/i386/i686/multiarch/strncase_l-c.c
9260         (__strncasecmp_l_ia32): Define as alias to
9261         __strncasecmp_l_nonascii.
9262
9263         [BZ #5794]
9264         * math/libm-test.inc (expm1_test): Add test for bug 5794.
9265         * sysdeps/i386/fpu/libm-test-ulps: Update.
9266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9267
9268         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
9269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9270
9271 2012-02-29  Jeff Law  <law@redhat.com>
9272
9273         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
9274         out of bounds read.
9275
9276 2012-02-29  Marek Polacek  <polacek@redhat.com>
9277
9278         [BZ #13706]
9279         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
9280         * elf/Makefile: Add rules to run tst-unused-dep.out.
9281
9282 2012-02-28  David S. Miller  <davem@davemloft.net>
9283
9284         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
9285         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
9286         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
9287         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
9288         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
9289         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
9290
9291 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
9292
9293         * math/libm-test.inc (llround_test): Move one test from
9294         lround_test.  Use TEST_f_L in moved test.
9295         (lround_test): Move misplaced test to llround_test.  Add testcase
9296         from bug 2561.
9297
9298 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
9299
9300         * sysdeps/x86_64/fpu/e_expf.S: New file.
9301         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
9302
9303 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
9304
9305         [BZ #13637]
9306         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
9307         of remain_len that may cause incomplete multi-byte character and
9308         false match.
9309         * posix/bug-regex33.c: New file.
9310         * posix/Makefile (tests): Add bug-regex33.
9311
9312 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
9313
9314         * manual/macros.texi: New file.
9315         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
9316         * manual/libc.texinfo: Include macros.texi.
9317         * manual/creatute.texi: Likewise.
9318         * manual/install.texi: Likewise.
9319         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
9320         @glibcadj{} in references to the GNU C Library.
9321         * manual/charset.texi: Likewise.
9322         * manual/conf.texi: Likewise.
9323         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
9324         when not using those macros.
9325         * manual/creature.texi: Likewise.
9326         * manual/crypt.texi: Likewise.
9327         * manual/errno.texi: Likewise.
9328         * manual/filesys.texi: Likewise.
9329         * manual/header.texi: Likewise.
9330         * manual/install.texi: Likewise.
9331         * manual/intro.texi: Likewise.
9332         * manual/io.texi: Likewise.
9333         * manual/job.texi: Likewise.
9334         * manual/lang.texi: Likewise.
9335         * manual/libc.texiinfo: Likewise.
9336         * manual/llio.texi: Likewise.
9337         * manual/locale.texi: Likewise.
9338         * manual/maint.texi: Likewise.
9339         * manual/math.texi: Likewise.
9340         * manual/memory.texi: Likewise.
9341         * manual/message.texi: Likewise.
9342         * manual/nss.texi: Likewise.
9343         * manual/pattern.texi: Likewise.
9344         * manual/process.texi: Likewise.
9345         * manual/resource.texi: Likewise.
9346         * manual/search.texi: Likewise.
9347         * manual/setjmp.texi: Likewise.
9348         * manual/signal.texi: Likewise.
9349         * manual/socket.texi: Likewise.
9350         * manual/startup.texi: Likewise.
9351         * manual/stdio.texi: Likewise.
9352         * manual/string.texi: Likewise.
9353         * manual/sysinfo.texi: Likewise.
9354         * manual/syslog.texi: Likewise.
9355         * manual/terminal.texi: Likewise.
9356         * manual/time.texi: Likewise.
9357         * manual/users.texi: Likewise.
9358         * INSTALL: Regenerated.
9359         * NOTES: Regenerated.
9360         * sysdeps/gnu/errlist.c: Regenerated.
9361
9362 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
9363
9364         * include/dirent.h: Include <dirstream.h> before
9365         <dirent/dirent.h>.
9366
9367 2012-02-28  David S. Miller  <davem@davemloft.net>
9368
9369         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
9370         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
9371         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
9372         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
9373
9374 2012-02-27  David S. Miller  <davem@davemloft.net>
9375
9376         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
9377         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
9378         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
9379         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
9380
9381         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
9382         frame pointer instead of stack pointer relative arg slot.
9383         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
9384         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
9385         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
9386
9387 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
9388
9389         [BZ #3992]
9390         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
9391
9392 2012-02-27  David S. Miller  <davem@davemloft.net>
9393
9394         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
9395         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
9396         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9397         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
9398         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
9399         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
9400         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
9401         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
9402
9403 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
9404
9405         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
9406         later.  Allow versions 5-9.
9407         * configure: Regenerated.
9408         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
9409         required minimum version and 4.6 as recommended version.  Do not
9410         mention bugs in GCC 2.7 and 2.8.
9411         * INSTALL: Regenerated.
9412
9413 2012-02-27  David S. Miller  <davem@davemloft.net>
9414
9415         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
9416         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
9417         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
9418         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
9419         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
9420         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
9421         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
9422         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
9423
9424         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
9425         manipulate bits before adding and subtracting TWO112[sx].
9426         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9427
9428 2012-02-27  Roland McGrath  <roland@hack.frob.com>
9429
9430         [BZ #13775]
9431         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
9432         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
9433         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
9434         being in POSIX, because they are in 1003.1-2008.
9435
9436         * rt/tst-aio.c: Include <fcntl.h>.
9437         * rt/tst-aio7.c: Likewise.
9438         * rt/tst-aio64.c: Likewise.
9439
9440         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
9441
9442 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
9443
9444         * manual/install.texi (--with-headers): Describe headers as
9445         interface headers, not private headers.
9446         (Specific advice for GNU/Linux systems): Describe use of headers
9447         from "make headers_install", not private headers from older
9448         kernels.
9449         * INSTALL: Regenerated.
9450         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
9451         Change to 2.6.19.
9452         * sysdeps/unix/sysv/linux/configure: Regenerated.
9453
9454         * manual/llio.texi (fclean): Remove documentation.
9455
9456         * manual/Makefile (libc-texi-generated): New variable.  Include
9457         version.texi.
9458         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
9459         $(libc-texi-generated), not duplicated list of files.
9460         (version.texi, stamp-version): New rules.
9461         (realclean): Remove $(libc-texi-generated), not individual files
9462         from that list.  Do not remove dir-add.texinfo.
9463         * manual/libc.texinfo: Comment out uses of edition numbers and
9464         references to printed manual.  Remove last-updated dates.
9465         (EDITION): Comment out.
9466         (ISBN): Likewise.
9467         (VERSION, UPDATED): Remove.
9468         (version.texi): Include.
9469
9470 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
9471
9472         * sysdeps/posix/spawni.c: Include <signal.h>.
9473         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
9474         * sysdeps/pthread/aio_fsync.c: Likewise.
9475
9476 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
9477
9478         * conform/Makefile (tests): Run only when not cross-compiling and
9479         when fast-check is not defined.
9480
9481         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
9482         * conform/data/limits.h-data: Fixes for POSIX2008.
9483         * conform/run-conformtest.sh: Run all tests.
9484         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
9485         headers.
9486         * include/bits/dlfcn.h: Likewise.
9487         * include/langinfo.h: Likewise.
9488         * include/monetary.h: Likewise.
9489         * include/sys/poll.h: Likewise.
9490
9491         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
9492         for __USE_GNU.
9493         * posix/spawn.h: Define __need_sigset_t.
9494         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
9495         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
9496         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
9497         to get sigevent_t only.
9498         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
9499         only for __USE_GNU.
9500         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9501         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
9502         process_vm_writev only for __USE_GNU.
9503         * termios/termios.h: Declare tcgetsid also for POSIX2008.
9504
9505         * conform/Makefile: For now ignore errors from run-conformtest.
9506         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
9507         POSIX to avoid namespace pollution.  Don't prepend headers.
9508         * conform/data/aio.h-data: Fixes for POSIX testing.
9509         * conform/data/fcntl.h-data: Likewise.
9510         * conform/data/glob.h-data: Likewise.
9511         * conform/data/grp.h-data: Likewise.
9512         * conform/data/pthread.h-data: Likewise.
9513         * conform/data/pwd.h-data: Likewise.
9514         * conform/data/signal.h-data: Likewise.
9515         * conform/data/spawn.h-data: Likewise.
9516         * conform/data/stdio.h-data: Likewise.
9517         * conform/data/stdlib.h-data: Likewise.
9518         * conform/data/stropts.h-data: Likewise.
9519         * conform/data/sys/mman.h-data: Likewise.
9520         * conform/data/sys/stat.h-data: Likewise.
9521         * conform/data/sys/types.h-data: Likewise.
9522         * conform/data/sys/wait.h-data: Likewise.
9523         * conform/data/time.h-data: Likewise.
9524         * conform/data/unistd.h-data: Likewise.
9525         * conform/data/utime.h-data: Likewise.
9526
9527         * io/sys/stat.h: fchmod was always in POSIX.
9528         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
9529         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
9530         * rt/aio.h: Define __need_timespec before including <time.h>.
9531         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
9532         struct.  Add forward declaration of pthread_attr_t and use it in
9533         sigevent.
9534         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9535         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9536         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
9537         always remove CLK_TCK definition.
9538
9539 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
9540
9541         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
9542
9543 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
9544
9545         * conform/run-conformtest.sh: New file.
9546         * conform/Makefile: Run run-conformtest for tests.
9547         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
9548         support.
9549
9550         * conform/data/uchar.h-data: New file.
9551         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
9552         * conform/data/arpa/inet.h-data: Likewise.
9553         * conform/data/assert.h-data: Likewise.
9554         * conform/data/complex.h-data: Likewise.
9555         * conform/data/cpio.h-data: Likewise.
9556         * conform/data/ctype.h-data: Likewise.
9557         * conform/data/dirent.h-data: Likewise.
9558         * conform/data/dlfcn.h-data: Likewise.
9559         * conform/data/errno.h-data: Likewise.
9560         * conform/data/fcntl.h-data: Likewise.
9561         * conform/data/float.h-data: Likewise.
9562         * conform/data/fmtmsg.h-data: Likewise.
9563         * conform/data/fnmatch.h-data: Likewise.
9564         * conform/data/ftw.h-data: Likewise.
9565         * conform/data/glob.h-data: Likewise.
9566         * conform/data/grp.h-data: Likewise.
9567         * conform/data/iconv.h-data: Likewise.
9568         * conform/data/inttypes.h-data: Likewise.
9569         * conform/data/langinfo.h-data: Likewise.
9570         * conform/data/libgen.h-data: Likewise.
9571         * conform/data/limits.h-data: Likewise.
9572         * conform/data/locale.h-data: Likewise.
9573         * conform/data/math.h-data: Likewise.
9574         * conform/data/monetary.h-data: Likewise.
9575         * conform/data/mqueue.h-data: Likewise.
9576         * conform/data/ndbm.h-data: Likewise.
9577         * conform/data/net/if.h-data: Likewise.
9578         * conform/data/netdb.h-data: Likewise.
9579         * conform/data/netinet/in.h-data: Likewise.
9580         * conform/data/nl_types.h-data: Likewise.
9581         * conform/data/poll.h-data: Likewise.
9582         * conform/data/pthread.h-data: Likewise.
9583         * conform/data/pwd.h-data: Likewise.
9584         * conform/data/regex.h-data: Likewise.
9585         * conform/data/sched.h-data: Likewise.
9586         * conform/data/search.h-data: Likewise.
9587         * conform/data/semaphore.h-data: Likewise.
9588         * conform/data/setjmp.h-data: Likewise.
9589         * conform/data/signal.h-data: Likewise.
9590         * conform/data/spawn.h-data: Likewise.
9591         * conform/data/stdarg.h-data: Likewise.
9592         * conform/data/stdio.h-data: Likewise.
9593         * conform/data/stdlib.h-data: Likewise.
9594         * conform/data/string.h-data: Likewise.
9595         * conform/data/strings.h-data: Likewise.
9596         * conform/data/stropts.h-data: Likewise.
9597         * conform/data/sys/ipc.h-data: Likewise.
9598         * conform/data/sys/mman.h-data: Likewise.
9599         * conform/data/sys/msg.h-data: Likewise.
9600         * conform/data/sys/resource.h-data: Likewise.
9601         * conform/data/sys/select.h-data: Likewise.
9602         * conform/data/sys/sem.h-data: Likewise.
9603         * conform/data/sys/shm.h-data: Likewise.
9604         * conform/data/sys/socket.h-data: Likewise.
9605         * conform/data/sys/stat.h-data: Likewise.
9606         * conform/data/sys/statvfs.h-data: Likewise.
9607         * conform/data/sys/time.h-data: Likewise.
9608         * conform/data/sys/timeb.h-data: Likewise.
9609         * conform/data/sys/times.h-data: Likewise.
9610         * conform/data/sys/types.h-data: Likewise.
9611         * conform/data/sys/uio.h-data: Likewise.
9612         * conform/data/sys/un.h-data: Likewise.
9613         * conform/data/sys/utsname.h-data: Likewise.
9614         * conform/data/sys/wait.h-data: Likewise.
9615         * conform/data/syslog.h-data: Likewise.
9616         * conform/data/tar.h-data: Likewise.
9617         * conform/data/termios.h-data: Likewise.
9618         * conform/data/utime.h-data: Likewise.
9619         * conform/data/utmpx.h-data: Likewise.
9620         * conform/data/varargs.h-data: Likewise.
9621         * conform/data/wchar.h-data: Likewise.
9622         * conform/data/wctype.h-data: Likewise.
9623         * conform/data/wordexp.h-data: Likewise.
9624
9625         * include/stropts.h: New file.
9626         * include/uchar.h: New file.
9627         * include/aio.h: Changes to allow conformtest.pl to use the headers.
9628         * include/assert.h: Likewise.
9629         * include/ctype.h: Likewise.
9630         * include/dirent.h: Likewise.
9631         * include/dlfcn.h: Likewise.
9632         * include/fcntl.h: Likewise.
9633         * include/fnmatch.h: Likewise.
9634         * include/glob.h: Likewise.
9635         * include/grp.h: Likewise.
9636         * include/libio.h: Likewise.
9637         * include/locale.h: Likewise.
9638         * include/math.h: Likewise.
9639         * include/net/if.h: Likewise.
9640         * include/netdb.h: Likewise.
9641         * include/netinet/in.h: Likewise.
9642         * include/pthread.h: Likewise.
9643         * include/pwd.h: Likewise.
9644         * include/regex.h: Likewise.
9645         * include/sched.h: Likewise.
9646         * include/search.h: Likewise.
9647         * include/setjmp.h: Likewise.
9648         * include/signal.h: Likewise.
9649         * include/stdio.h: Likewise.
9650         * include/stdlib.h: Likewise.
9651         * include/string.h: Likewise.
9652         * include/sys/cdefs.h: Likewise.
9653         * include/sys/mman.h: Likewise.
9654         * include/sys/msg.h: Likewise.
9655         * include/sys/resource.h: Likewise.
9656         * include/sys/select.h: Likewise.
9657         * include/sys/socket.h: Likewise.
9658         * include/sys/stat.h: Likewise.
9659         * include/sys/statvfs.h: Likewise.
9660         * include/sys/time.h: Likewise.
9661         * include/sys/times.h: Likewise.
9662         * include/sys/uio.h: Likewise.
9663         * include/sys/utsname.h: Likewise.
9664         * include/sys/wait.h: Likewise.
9665         * include/termios.h: Likewise.
9666         * include/time.h: Likewise.
9667         * include/ulimit.h: Likewise.
9668         * include/unistd.h: Likewise.
9669         * include/utime.h: Likewise.
9670         * include/wchar.h: Likewise.
9671         * include/wctype.h: Likewise.
9672         * include/wordexp.h: Likewise.
9673
9674         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
9675
9676         * time/time.h: TIME_UTC must be a macro.
9677         Make timespec_get available for ISO C11 only as well.
9678
9679 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
9680
9681         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
9682         Reported by Peng Haitao <penght@cn.fujitsu.com>.
9683
9684 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9685
9686         * configure.in: Use -o not -a in test for unsupported multi-arch.
9687
9688 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9689
9690         * manual/texinfo.tex: Update to version 2012-01-19.16.
9691
9692 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
9693
9694         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
9695
9696 2012-02-24  Roland McGrath  <roland@hack.frob.com>
9697
9698         [BZ #13738]
9699         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
9700         * manual/fdl-1.3.texi: New file.
9701         * manual/fdl-1.1.texi: File removed.
9702
9703         [BZ #13738]
9704         * manual/libc.texinfo (FDL_VERSION): New @set.
9705         Use it for mention of FDL in cover text.
9706         (Documentation License): Use it in @include file name.
9707
9708 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9709             Roland McGrath  <roland@hack.frob.com>
9710
9711         [BZ #5461]
9712         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
9713         not LONG_LONG_MAX and LONG_LONG_MIN.
9714         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
9715         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
9716         name.
9717         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
9718
9719 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9720
9721         [BZ #2547]
9722         [BZ #11365]
9723         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
9724         manipulate bits before adding and subtracting TWO23[sx].
9725         * math/libm-test.inc (nearbyint_test): Add more tests.
9726
9727 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9728
9729         [BZ #2548]
9730         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
9731         bits before adding and subtracting TWO23[sx].
9732         * math/libm-test.inc (rint_test): Add more tests.
9733         (rint_test_tonearest): Likewise.
9734         (rint_test_towardzero): Likewise.
9735         (rint_test_downward): Likewise.
9736         (rint_test_upward: Likewise.
9737
9738 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9739
9740         [BZ #10110]
9741         * include/stdc-predef.h: New file.  Extracted from features.h.
9742         * include/features.h: Include stdc-predef.h.
9743         * Makefile (headers): Add stdc-predef.h.
9744         * CONFORMANCE (Compiler limitations): Update.
9745
9746 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
9747
9748         * manual/libc.texinfo (VERSION, UPDATED): Revert.
9749
9750 2012-02-21  David S. Miller  <davem@davemloft.net>
9751
9752         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
9753         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
9754
9755 2012-02-20  David S. Miller  <davem@davemloft.net>
9756
9757         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
9758         using a normal save/restore sequence, rather than allocating a
9759         dummy stack frame just to store a frame pointer and restore.
9760         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9761
9762 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9763
9764         * manual/install.texi: Fix stray word in line-wrapped comment.
9765
9766 2012-02-20  David S. Miller  <davem@davemloft.net>
9767
9768         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
9769         both binutils and gcc support GOTDATA.
9770
9771         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
9772         "rd %pc" in the PIC register setup sequences.
9773
9774         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
9775         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
9776         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9777         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9778         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9779         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9780         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9781         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9782         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
9783         (SYSCALL_ERROR_HANDLER): Likewise.
9784         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
9785         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
9786         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
9787         (SYSCALL_ERROR_HANDLER): Likewise.
9788
9789         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
9790         (HAVE_GCC_GOTDATA): New.
9791         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
9792         relocation support in both binutils and gcc.
9793         * sysdeps/sparc/elf/configure: Regenerate.
9794
9795         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
9796         * sysdeps/sparc/sparc32/elf/configure: Delete.
9797         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
9798         * sysdeps/sparc/sparc64/elf/configure: Delete.
9799         * sysdeps/sparc/elf/configure.in: New file.
9800         * sysdeps/sparc/elf/configure: Generate.
9801
9802         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
9803         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
9804         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
9805         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
9806         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
9807
9808 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9809
9810         * manual/install.texi: Do not mention specific glibc version
9811         numbers.
9812         * manual/libc.texinfo (VERSION, UPDATED): Update.
9813         (@copying): Use @copyright{} and range of years.
9814
9815 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
9816
9817         [BZ #13695]
9818         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
9819         [crti.S not in sysdirs] (generated): Do not append.
9820         [crti.S not in sysdirs] (omit-deps): Likewise.
9821         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
9822         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
9823         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
9824         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
9825         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
9826         Likewise.
9827         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
9828         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
9829         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
9830         * csu/defs.awk: Remove file.
9831         * sysdeps/generic/initfini.c: Likewise.
9832         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
9833         variable.
9834         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
9835         Likewise.
9836
9837 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9838
9839         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
9840         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
9841         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
9842         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
9843         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9844         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
9845         <bits/epoll.h>.
9846         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
9847         (__EPOLL_PACKED): Define to empty if not defined by
9848         <bits/epoll.h>.
9849         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
9850         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9851         bits/epoll.h.
9852
9853 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9854
9855         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
9856         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
9857         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
9858         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
9859         <bits/timerfd.h>.
9860         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
9861         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9862         bits/timerfd.h.
9863
9864 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
9865
9866         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
9867         in C locale.
9868         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9869         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
9870         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
9871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9872
9873 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
9874
9875         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9876         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
9877
9878 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
9879
9880         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
9881         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
9882         defined.
9883         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
9884         Likewise.
9885         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
9886         entry for 2.16.
9887
9888 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
9889
9890         * math/w_acos.c: Use non-signaling floating-point comparisons.
9891         * math/w_acosf.c: Likewise.
9892         * math/w_acosh.c: Likewise.
9893         * math/w_acoshf.c: Likewise.
9894         * math/w_acoshl.c: Likewise.
9895         * math/w_acosl.c: Likewise.
9896         * math/w_asin.c: Likewise.
9897         * math/w_asinf.c: Likewise.
9898         * math/w_asinl.c: Likewise.
9899         * math/w_atanh.c: Likewise.
9900         * math/w_atanhf.c: Likewise.
9901         * math/w_atanhl.c: Likewise.
9902         * math/w_exp2.c: Likewise.
9903         * math/w_exp2f.c: Likewise.
9904         * math/w_exp2l.c: Likewise.
9905         * math/w_j0.c: Likewise.
9906         * math/w_j0f.c: Likewise.
9907         * math/w_j0l.c: Likewise.
9908         * math/w_j1.c: Likewise.
9909         * math/w_j1f.c: Likewise.
9910         * math/w_j1l.c: Likewise.
9911         * math/w_jn.c: Likewise.
9912         * math/w_jnf.c: Likewise.
9913         * math/w_log.c: Likewise.
9914         * math/w_log10.c: Likewise.
9915         * math/w_log10f.c: Likewise.
9916         * math/w_log10l.c: Likewise.
9917         * math/w_log2.c: Likewise.
9918         * math/w_log2f.c: Likewise.
9919         * math/w_log2l.c: Likewise.
9920         * math/w_logf.c: Likewise.
9921         * math/w_logl.c: Likewise.
9922         * math/w_sqrt.c: Likewise.
9923         * math/w_sqrtf.c: Likewise.
9924         * math/w_sqrtl.c: Likewise.
9925         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9926         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
9927         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9928         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9929         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9930
9931 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9932
9933         [BZ #9739]
9934         * manual/string.texi (strnlen): Use correct parameter name in
9935         equivalent expression.
9936
9937 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9938
9939         [BZ #11174]
9940         * manual/users.texi (seteuid): Consistently use neweuid for
9941         argument name.
9942
9943 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
9944
9945         [BZ #13704]
9946         * manual/nss.texi (Services in the NSS configuration): Correct
9947         list of services in example configuration file.
9948
9949 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
9950
9951         [BZ #11322]
9952         * manual/arith.texi: Remove statements about negative zero
9953         behaving identically to zero.
9954
9955 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
9956
9957         [BZ #5993]
9958         * manual/install.texi: Do not document upgrading from libc5.
9959
9960 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
9961
9962         [BZ #4596]
9963         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
9964
9965 2012-02-18  David S. Miller  <davem@davemloft.net>
9966
9967         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
9968         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
9969         %o7 across the call.
9970         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
9971         instead.
9972         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
9973         SETUP_PIC_REG_LEAF.
9974         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9975         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
9976         * sysdeps/sparc/crtn.S: Likewise.
9977
9978 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
9979
9980         * aout/Makefile: Remove.
9981
9982 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
9983
9984         [BZ #13058]
9985         * manual/examples/argp-ex1.c (main): Format definition in GNU
9986         style.
9987         * manual/examples/argp-ex2.c (main): Likewise.
9988         * manual/examples/argp-ex3.c (main): Likewise.
9989         * manual/examples/argp-ex4.c (main): Likewise.
9990         * manual/examples/longopt.c (main): Use new-style prototype
9991         definition.
9992         * manual/examples/strncat.c (main): Specify return type and use
9993         (void) for arguments.
9994         * manual/examples/subopt.c (main): Use char **argv argument.
9995
9996 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9997
9998         [BZ #5077]
9999         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
10000         rounding modes.
10001
10002 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
10003
10004         [BZ #6907]
10005         * manual/string.texi (strchr): Change when strchrnul is
10006         recommended.
10007
10008 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
10009
10010         [BZ #174]
10011         * manual/locale.texi (setlocale): Document LOCPATH.
10012
10013 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10014
10015         [BZ #10210]
10016         * manual/process.texi (execle): Move @dots{} before last argument.
10017
10018 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
10019
10020         [BZ #12047]
10021         * manual/charset.texi (Generic Charset Conversion): Fix typo
10022         (LC_TYPE -> LC_CTYPE).
10023
10024 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
10025
10026         [BZ #5805]
10027         * manual/arith.texi (scalbn): Use @var{} on parameter names.
10028         (scalbnf): Likewise.
10029         (scalbnl): Likewise.
10030         (scalbln): Likewise.
10031         (scalblnf): Likewise.
10032         (scalblnl): Likewise.
10033         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
10034         (vwarnx): Likewise.
10035         (verr): Likewise.
10036         (verrx): Likewise.
10037         * manual/filesys.texi (telldir): Use braces around return type.
10038         * manual/llio.texi (mmap): Add space after comma.
10039         (mmap64): Likewise.
10040         * manual/math.texi (jn): Use @var{} on parameter names.
10041         (jnf): Likewise.
10042         (jnl): Likewise.
10043         (yn): Likewise.
10044         (ynf): Likewise.
10045         (ynl): Likewise.
10046         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
10047         line.
10048         * manual/resource.texi (ulimit): Use @dots{} instead of literal
10049         "...".
10050         (sched_get_priority_min): Remove semicolon on @deftypefun line.
10051         (sched_get_priority_max): Likewise.
10052         * manual/signal.texi (sigvec): Add space after comma.
10053         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
10054         names.
10055         (if_indextoname): Likewise.
10056         (if_freenameindex): Likewise.
10057         (sendto): Use ',' instead of '.' in prototype.
10058         * manual/startup.texi (syscall): Use @dots{} instead of literal
10059         "...".
10060         * manual/stdio.texi (__fpending): Separate initial words of
10061         paragraph from @deftypefun line.
10062         * manual/syslog.texi (syslog): Use @dots{} instead of literal
10063         "...".
10064         (vsyslog): Use @var{} on parameter names.
10065         * manual/terminal.texi (stty): Use @var{} on parameter names.
10066         * manual/users.texi (getutmp): Use @var{} on parameter names.
10067         (getutmpx): Likewise.
10068
10069 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10070
10071         [BZ #6884]
10072         * manual/stdio.texi (fopen): Fix typos in description of
10073         ",ccs=STRING".
10074
10075 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
10076
10077         [BZ #4026]
10078         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
10079         get clock_id definition.
10080
10081 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
10082
10083         [BZ #4822]
10084         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
10085         (madvise): Cast every argument to void on its own.
10086
10087 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10088
10089         [BZ #9902]
10090         * manual/startup.texi (Exit Status): Fix typo.
10091
10092 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10093
10094         [BZ #10140]
10095         * manual/examples/argp-ex1.c: Include <stdlib.h>.
10096         * manual/examples/argp-ex2.c: Likewise.
10097         * manual/examples/argp-ex3.c: Likewise.
10098
10099 2012-02-16  Richard Henderson  <rth@redhat.com>
10100
10101         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
10102         * sysdeps/s390/s390-32/initfini.c: Remove.
10103         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
10104         * sysdeps/s390/s390-64/initfini.c: Remove.
10105
10106 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10107
10108         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
10109         compiler output for sysdeps/generic/initfini.c.
10110         * sysdeps/sh/elf/initfini.c: Remove file.
10111
10112 2012-02-16  David S. Miller  <davem@davemloft.net>
10113
10114         [BZ #11494]
10115         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
10116
10117         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
10118         * sysdeps/sparc/crti.S: New file.
10119         * sysdeps/sparc/crtn.S: New file.
10120         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
10121         * sysdeps/sparc/sparc64/Makefile: Likewise.
10122
10123 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
10124
10125         [BZ #3335]
10126         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
10127
10128 2012-02-15  Roland McGrath  <roland@hack.frob.com>
10129
10130         [BZ #4822]
10131         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
10132
10133         * mach/devstream.c (cookie_io_functions_t): Macro removed.
10134         (write, read, close): Likewise.
10135         Patch by Aurelien Jarno <aurelien@aurel32.net>.
10136
10137 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
10138
10139         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
10140         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
10141         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
10142         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
10143         <bits/signalfd.h>.
10144         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
10145         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10146         bits/signalfd.h.
10147
10148 2012-02-14  Marek Polacek  <polacek@redhat.com>
10149
10150         * sysdeps/x86_64/crti.S: New file.
10151         * sysdeps/x86_64/crtn.S: New file.
10152         * sysdeps/x86_64/elf/initfini.c: Remove file.
10153
10154 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
10155
10156         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
10157         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
10158         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
10159         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
10160         <bits/inotify.h>.
10161         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
10162         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10163         bits/inotify.h.
10164
10165 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
10166
10167         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
10168         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
10169         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
10170         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
10171         <bits/eventfd.h>.
10172         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
10173         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10174         bits/eventfd.h.
10175
10176 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
10177
10178         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
10179         __feraiseexcept instead of feraiseexcept.
10180
10181         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
10182         nanosleep invocations.
10183         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
10184         strings, and add error checking for a nanosleep invocations.
10185
10186 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10187
10188         Replace FSF snail mail address with URLs, as per GNU coding standards.
10189         Most of the snail mail addresses were wrong anyway, and omitting
10190         them makes the source code easier to maintain.  Almost all of the
10191         changes are to license notices and to locale LC_IDENTIFICATION
10192         addresses, except for this one:
10193         * manual/libc.texinfo: In "Published by", give the FSF's URL,
10194         not its snail mail address.
10195
10196 2012-02-09  Richard Henderson  <rth@twiddle.net>
10197
10198         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
10199         of kernel-features.h.
10200
10201         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
10202
10203 2012-02-08  Marek Polacek  <polacek@redhat.com>
10204
10205         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
10206         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
10207         * sysdeps/gnu/_G_config.h: Likewise.
10208         * sysdeps/generic/_G_config.h: Likewise.
10209
10210 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
10211
10212         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
10213         tests.
10214         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10215
10216         * sysdeps/powerpc/powerpc32/crti.S: New file.
10217         * sysdeps/powerpc/powerpc32/crtn.S: New file.
10218         * sysdeps/powerpc/powerpc64/crti.S: New file.
10219         * sysdeps/powerpc/powerpc64/crtn.S: New file.
10220
10221         * Makeconfig (have-initfini): Don't set.
10222         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
10223         * configure.in (nopic_initfini): Don't substitute.
10224         * config.h.in (HAVE_INITFINI): Don't #undef.
10225         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
10226         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
10227
10228 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
10229
10230         Support crti.S and crtn.S provided directly by architectures.
10231         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
10232         [crti.S in sysdirs] (omit-deps): Likewise.
10233         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
10234         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
10235         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
10236         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
10237         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
10238         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
10239         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
10240         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
10241         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
10242         compiler output for sysdeps/generic/initfini.c.
10243         * sysdeps/i386/elf/Makefile: Remove file.
10244         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
10245
10246 2012-02-07  Marek Polacek  <polacek@redhat.com>
10247
10248         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
10249         * sysdeps/gnu/_G_config.h: Likewise.
10250         * sysdeps/mach/hurd/_G_config.h: Likewise.
10251
10252 2012-02-07  Marek Polacek  <polacek@redhat.com>
10253
10254         * math/Makefile (tests): Add tst-CMPLX2.
10255         * math/tst-CMPLX2.c: New file.
10256
10257 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
10258
10259         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10260
10261         * math/libm-test.inc (jn_test): Add missing L suffix.
10262
10263 2012-02-06  Marek Polacek  <polacek@redhat.com>
10264
10265         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
10266         * sysdeps/i386/fpu/e_powf.S: Likewise.
10267         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10268         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10269         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10270         * sysdeps/i386/fpu/e_pow.S: Likewise.
10271         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
10272         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10273         * sysdeps/i386/fpu/s_expm1.S: Likewise.
10274         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
10275         * sysdeps/i386/fpu/e_log2.S: Likewise.
10276         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10277         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10278         * sysdeps/i386/fpu/e_powl.S: Likewise.
10279         * sysdeps/i386/fpu/s_log1p.S: Likewise.
10280         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10281         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
10282         * sysdeps/i386/fpu/e_logl.S: Likewise.
10283         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
10284         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
10285         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
10286         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
10287         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10288         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10289         * sysdeps/i386/fpu/e_log.S: Likewise.
10290         * sysdeps/i386/fpu/s_cexp.S: Likewise.
10291         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10292         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
10293         * sysdeps/i386/fpu/e_logf.S: Likewise.
10294         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10295         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10296         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
10297         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
10298         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10299         * sysdeps/i386/fpu/e_log10.S: Likewise.
10300         * sysdeps/i386/fpu/s_frexp.S: Likewise.
10301         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10302         * sysdeps/i386/fpu/s_asinh.S: Likewise.
10303         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
10304         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10305         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
10306         * sysdeps/i386/asm-syntax.h: Likewise.
10307         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10308         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10309         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10310         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
10311         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
10312         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10313         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
10314         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
10315         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10316         * sysdeps/powerpc/sysdep.h: Likewise.
10317         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
10318         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10319
10320 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
10321
10322         [BZ #411]
10323         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
10324
10325 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
10326
10327         * sysdeps/i386/sysdep.h: Include <features.h>.
10328         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
10329         version.
10330
10331 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
10332
10333         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
10334         Define.
10335         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
10336         LOAD_PIC_REG_STR.
10337
10338 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10339
10340         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
10341         (SETUP_PIC_REG): Use GET_PC_THUNK.
10342         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
10343         macro.
10344
10345 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10346
10347         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
10348         for non-PIC compilation.
10349         (SETUP_PIC_REG): Add .p2align directive.
10350         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
10351         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
10352         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10353         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10354         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
10355         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10356         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10357         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10358         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10359         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10360         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10361         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10362         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10363         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10364         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10365         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10366         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10367         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10368         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10369         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10370         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10371         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10372         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10373         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
10374         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
10375         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
10376         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10377         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10378         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10379         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10380         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10381         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10382         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10383         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10384         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10385         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10386         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10387         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10388         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10389         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10390         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10391
10392 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10393
10394         * math/tst-CMPLX.c: Include <stdio.h>.
10395
10396 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
10397
10398         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
10399         float.
10400         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
10401         * sysdeps/sparc/bits/mathdef.h: Likewise.
10402
10403 2012-01-31  Marek Polacek  <polacek@redhat.com>
10404
10405         * libio/libio.h: Don't define _PARAMS.
10406         * locale/programs/config.h: Don't define PARAMS.
10407         * stdlib/strtol_l.c: Likewise.
10408         (__strtol_l): Remove PARAMS from the prototype.
10409
10410 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
10411
10412         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
10413         names.  Just use the correct names.  Remove unnecessary wrapper
10414         functions.
10415         * malloc/arena.c: Likewise.
10416         * malloc/hooks.c: Likewise.
10417
10418         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
10419         ARENA_TEST says not to.  Simplify test for creation of a new arena.
10420         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
10421
10422 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
10423
10424         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
10425         into tail calls.
10426         (update_get_addr): New function.
10427         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
10428         GET_ADDR_MODULE parameter.
10429
10430 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
10431
10432         * crypt/cert.c: Remove __STDC__ conditionals.
10433         * crypt/crypt-entry.c: Likewise.
10434         * crypt/crypt_util.c: Likewise.
10435         * libio/filedoalloc.c: Likewise.
10436         * libio/fileops.c: Likewise.
10437         * libio/genops.c: Likewise.
10438         * libio/iofclose.c: Likewise.
10439         * libio/iofdopen.c: Likewise.
10440         * libio/iofopen.c: Likewise.
10441         * libio/iofopen64.c: Likewise.
10442         * libio/iogetdelim.c: Likewise.
10443         * libio/iopopen.c: Likewise.
10444         * libio/obprintf.c: Likewise.
10445         * libio/oldfileops.c: Likewise.
10446         * libio/oldiofclose.c: Likewise.
10447         * libio/oldiofdopen.c: Likewise.
10448         * libio/oldiofopen.c: Likewise.
10449         * libio/oldiopopen.c: Likewise.
10450         * libio/wfiledoalloc.c: Likewise.
10451         * libio/wgenops.c: Likewise.
10452         * locale/programs/xmalloc.c: Likewise.
10453         * misc/syslog.c: Likewise.
10454         * stdio-common/xbug.c: Likewise.
10455         * string/memchr.c: Likewise.
10456         * string/memcmp.c: Likewise.
10457         * string/memrchr.c: Likewise.
10458         * string/rawmemchr.c: Likewise.
10459         * sysdeps/posix/getcwd.c: Likewise.
10460         * time/strftime_l.c: Likewise.
10461
10462 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
10463
10464         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
10465         * config.make.in (config-cflags-sse2avx): Define.
10466         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
10467         Fix typo.
10468
10469 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
10470
10471         * scripts/config.guess: Update from upstream config git repository.
10472         * scripts/config.sub: Likewise.
10473
10474 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
10475
10476         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
10477         (EM_NUM): Update.
10478         (R_TILEPRO_*, R_TILEGX_*): New macros.
10479
10480         * scripts/firstversions.awk: Fix bug in version range handling.
10481
10482         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
10483
10484         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
10485
10486         * include/sys/epoll.h: New file.
10487         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
10488         libc_hidden_def.
10489
10490 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
10491
10492         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
10493         Avoid unnecessary __WORDSIZE == 64 test.
10494         (fmaxf): Use VEX format if possible.
10495         (fmax): Likewise.
10496         (fminf): Likewise.
10497         (fmin): Likewise.
10498
10499         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
10500         * math/math_private.h: Remove libc_fegetround* and
10501         libc_fesetround*.
10502         * sysdeps/i386/configure.in: Check for -msse2avx.
10503         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
10504         also if SSE2AVX is defined.
10505         Remove libc_fegetround* and libc_fesetround*.
10506         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
10507         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
10508         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
10509         of HAS_YMM_USABLE.
10510         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10511         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10512         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10513         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10514         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10515
10516         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
10517
10518 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10519
10520         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
10521         size is not set.
10522         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10523
10524 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
10525
10526         [BZ #13618]
10527         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
10528         relocation.
10529         * Makeconfig (libm): Define.
10530         * elf/Makefile: Add rules to build and run tst-relsort1.
10531         * elf/tst-relsort1.c: New file.
10532         * elf/tst-relsort1mod1.c: New file.
10533         * elf/tst-relsort1mod2.c: New file.
10534
10535 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
10536
10537         * math/s_ldexp.c: Remove __STDC__ conditionals.
10538         * math/s_ldexpf.c: Likewise.
10539         * math/s_ldexpl.c: Likewise.
10540         * math/s_nextafter.c: Likewise.
10541         * math/s_nexttowardf.c: Likewise.
10542         * math/s_significand.c: Likewise.
10543         * math/s_significandf.c: Likewise.
10544         * math/s_significandl.c: Likewise.
10545         * math/w_jnl.c: Likewise.
10546         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10547         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10548         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10549         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10550         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10551         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10552         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
10553         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10554         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10555         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10556         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10557         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10558         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10559         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10560         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10561         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10562         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10563         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10564         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10565         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10566         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10567         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10568         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10569         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10570         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10571         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10572         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10573         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10574         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10575         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10576         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10577         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10578         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10579         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10580         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10581         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10582         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10583         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10584         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10585         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10586         * sysdeps/ieee754/k_standard.c: Likewise.
10587         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10588         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10589         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10590         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10591         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10592         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10593         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10594         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10595         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10596         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10597         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10598         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10599         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10600         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10601         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10602         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10603         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10604         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10605         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10606         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10607         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10608         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10609         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10610         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10611         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10612         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10613         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10614         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10615         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10616         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10617         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10618         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
10619         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10620         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10621         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10622         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10623         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10624         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10625         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10626         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10627         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10628         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10629         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10630         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10631         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10632         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
10633         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
10634         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10635         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10636         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10637         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10638         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10639         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10640         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10641         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10642         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10643         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10644         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10645         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10646         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10647         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10648         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10649         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10650         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10651         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10652         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10653         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10654         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10655         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10656         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10657         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10658         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10659         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10660         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10661         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10662         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10663         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10664         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10665         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10666         * sysdeps/ieee754/s_matherr.c: Likewise.
10667         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10668         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10669         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10670         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10671
10672 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
10673
10674         * crypt/md5.h: Remove __STDC__ conditionals.
10675         * libio/libioP.h: Likewise.
10676         * locale/programs/config.h: Likewise.
10677         * sysdeps/generic/sysdep.h: Likewise.
10678         * sysdeps/i386/asm-syntax.h: Likewise.
10679         * sysdeps/s390/asm-syntax.h: Likewise.
10680         * sysdeps/unix/sysdep.h: Likewise.
10681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10683
10684 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
10685
10686         * libio/libio.h: Remove __STDC__ conditionals.
10687         * malloc/obstack.h: Likewise.
10688         * math/complex.h: Likewise.
10689         * math/math.h: Likewise.
10690         * sysdeps/generic/_G_config.h: Likewise.
10691         * sysdeps/gnu/_G_config.h: Likewise.
10692         * sysdeps/mach/hurd/_G_config.h: Likewise.
10693         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10694         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
10695         * sysdeps/sparc/bits/mathdef.h: Likewise.
10696
10697 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
10698
10699         [BZ #13583]
10700         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
10701         Clean up HAS_* macros.
10702         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
10703         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
10704         possible.
10705         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
10706         HAS_AVX.
10707         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10708         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10709         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10710         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10711         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10712
10713 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
10714
10715         * elf/tst-unique3.cc (gets): Remove declaration.
10716         * elf/tst-unique3lib.cc (gets): Likewise.
10717         * elf/tst-unique3lib2.cc (gets): Likewise.
10718         * elf/tst-unique4.cc (gets): Likewise.
10719
10720 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
10721
10722         * include/stdio.h: Add C++ protection.  Add gets declarations and
10723         definitions.
10724         * debug/tst-chk1.c: Don't declare gets here.
10725         * stdio-common/tst-gets.c: Likewise.
10726
10727 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
10728
10729         * posix/glob: Remove directory.
10730
10731 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
10732
10733         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
10734
10735 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
10736
10737         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
10738         of the non-standard EPFNOSUPPORT.
10739
10740 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10741
10742         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
10743         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
10744         ANYWHERE set to 1 only on KERN_NO_SPACE error.
10745
10746 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
10747
10748         * wcsmbs/uchar.h: Test __STDC_VERSION__.
10749
10750 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
10751
10752         * nscd/aicache.c (addhstaiX): Do not cache negative results of
10753         transient errors.
10754         * nscd/grpcache.c (cache_addgr): Likewise.
10755         * nscd/hstcache.c (cache_addhst): Likewise.
10756         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10757         * nscd/pwdcache.c (cache_addpw): Likewise.
10758         * nscd/servicescache.c (cache_addserv): Likewise.
10759
10760 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
10761
10762         * malloc/malloc.c: Various cleanups.
10763         * malloc/hooks.c: Likewise.
10764
10765         * stdlib/Makefile (tests): Add bug-fmtmsg1.
10766         * stdlib/bug-fmtmsg1.c: New file.
10767
10768         * stdlib/fmtmsg.c (init): Add missing unlock.
10769         Patch by Peng Haitao <penght@cn.fujitsu.com>.
10770
10771 2012-01-12  Marek Polacek  <polacek@redhat.com>
10772
10773         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
10774         and _GNU_SOURCE.
10775
10776 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
10777
10778         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
10779         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
10780         macro to ensure uniqueness of label name.
10781         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
10782         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
10783
10784 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
10785
10786         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
10787
10788         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
10789         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10790         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10791         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
10792
10793 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
10794
10795         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
10796
10797         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
10798         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10799         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10800
10801         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
10802
10803         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
10804         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10805         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10806         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
10807
10808         * math/bits/math-finite.h: Add ldexp support.
10809
10810 2012-01-10  Marek Polacek  <polacek@redhat.com>
10811
10812         * locale/programs/localedef.h (show_archive_content): Add noreturn
10813         attribute.
10814
10815 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
10816
10817         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
10818
10819 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10820
10821         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
10822
10823         * io/Makefile (headers): Add bits/poll2.h.
10824
10825 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
10826
10827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
10828         typo #include statement.
10829
10830 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10831
10832         * include/sys/cdefs.h: Define __attribute_alloc_size.
10833         * catgets/gencat.c: Add alloc_size attribute and apply consistently
10834         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
10835         * elf/pldd.c: Likewise.
10836         * iconv/iconv_charmap.c: Likewise.
10837         * iconv/iconvconfig.c: Likewise.
10838         * iconv/strtab.c: Likewise.
10839         * locale/programs/locale.c: Likewise.
10840         * locale/programs/localedef.h: Likewise.
10841         * locale/programs/simple-hash.c: Likewise.
10842         * nscd/nscd.h: Likewise.
10843         * nss/makedb.c: Likewise.
10844         * sysdeps/generic/ldconfig.h: Likewise.
10845         * locale/programs/localedef.c: Remove xmalloc prototype.
10846         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
10847
10848 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10849
10850         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
10851         appropriate.
10852
10853 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
10854
10855         * math/Makefile (tests): Add tst-CMPLX.
10856         * math/tst-CMPLX.c: New file.
10857
10858         * math/complex.h (CMPLXL): Fix typo.
10859
10860         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
10861         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
10862         GLIBC_2.16.
10863         * debug/tst-chk1.c: Add poll and ppoll tests.
10864         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
10865         * include/sys/poll.h: Add hidden proto for ppoll.
10866         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
10867         * sysdeps/mach/hurd/ppoll.c: Likewise.
10868         * io/ppoll.c: Likewise.
10869         * debug/poll_chk.c: New file.
10870         * debug/ppoll_chk.c: New file.
10871         * include/bits/poll2.h: New file.
10872         * io/bits/poll2.h: New file.
10873
10874         [BZ #1350]
10875         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
10876
10877         * configure.in: static is always set to yes.  Remove.
10878         * config.make.in: Don't set build-static.
10879         * Makeconfig: Remove use of build-static.
10880         * dlfcn/Makefile: Likewise.
10881         * elf/Makefile: Likewise.
10882         * math/Makefile: Likewise.
10883         * misc/Makefile: Likewise.
10884         * nptl/Makefile: Likewise.
10885         * sysdeps/mach/hurd/Makefile: Likewise.
10886
10887         * configure.in: PWD_P is not used anymore.
10888         * config.make.in: Remove PWD_P entry.
10889
10890         * configure.in: Remove last remnants of RANLIB.
10891         No need to check for signed size_t anymore.
10892         Don't set libc_commonpagesize and libc_relro_required here for Alpha
10893         and IA-64.
10894         Remove __builtin_expect test because we require at least gcc 3.4.
10895         * aclocal.m4: Likewise.
10896
10897         * wcsmbs/mbrtoc16.c: Implement using towc function.
10898         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
10899         * wcsmbs/wcsmbsload.c: Likewise.
10900         * iconv/gconv_simple.c: Likewise.
10901         * iconv/gconv_int.h: Likewise.
10902         * iconv/gconv_builtin.h: Likewise.
10903         * iconv/iconv_prog.c: Remove CHAR16 handling.
10904
10905         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
10906
10907         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
10908
10909         * configure.in: Remove --with-elf and --enable-bounded options.
10910         Dont set base_machine for ia64.  More non-ELF conditions removed.
10911         Remove testing and setting of leading underscore information.
10912         * config.make.in (build-bounded): Set to no.
10913         * config.h.in: Remove NO_UNDERSCORES entry.
10914         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
10915         them.
10916         * csu/start.c: Remove !NO_UNDERSCORE code.
10917         * locale/localeinfo.h: Likewise.
10918         * sysdeps/generic/machine-gmon.h: Likewise.
10919         * sysdeps/generic/sysdep.h: Likewise.
10920         * sysdeps/i386/sysdep.h: Likewise.
10921         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
10922         * sysdeps/mach/sysdep.h: Likewise.
10923         * sysdeps/s390/s390-32/sysdep.h: Likewise.
10924         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10925         * sysdeps/sh/sysdep.h: Likewise.
10926         * sysdeps/sparc/sparc32/alloca.S: Likewise.
10927         * sysdeps/unix/i386/sysdep.S: Likewise.
10928         * sysdeps/unix/sparc/start.c: Likewise.
10929         * sysdeps/unix/sparc/sysdep.S: Likewise.
10930         * sysdeps/unix/sparc/sysdep.h: Likewise.
10931         * sysdeps/unix/start.c: Likewise.
10932         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10933         * sysdeps/x86_64/sysdep.h: Likewise.
10934
10935 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
10936
10937         [BZ #13553]
10938         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
10939         for non-gcc.
10940         * argp/argp-fmtstream.h: Use const instead __const.
10941         * argp/argp.h: Likewise.
10942         * assert/assert.h: Likewise.
10943         * bits/fenv.h: Likewise.
10944         * bits/sched.h: Likewise.
10945         * bits/sigset.h: Likewise.
10946         * bits/sigthread.h: Likewise.
10947         * catgets/nl_types.h: Likewise.
10948         * conform/data/pthread.h-data: Likewise.
10949         * crypt/crypt-private.h: Likewise.
10950         * crypt/crypt.h: Likewise.
10951         * crypt/crypt_util.c: Likewise.
10952         * ctype/ctype.h: Likewise.
10953         * debug/execinfo.h: Likewise.
10954         * debug/mbsnrtowcs_chk.c: Likewise.
10955         * debug/mbsrtowcs_chk.c: Likewise.
10956         * debug/wcsnrtombs_chk.c: Likewise.
10957         * debug/wcsrtombs_chk.c: Likewise.
10958         * debug/wcstombs_chk.c: Likewise.
10959         * dirent/dirent.h: Likewise.
10960         * dlfcn/dlfcn.h: Likewise.
10961         * elf/neededtest4.c: Likewise.
10962         * grp/grp.h: Likewise.
10963         * gshadow/gshadow.h: Likewise.
10964         * iconv/gconv.h: Likewise.
10965         * iconv/gconv_int.h: Likewise.
10966         * iconv/gconv_simple.c: Likewise.
10967         * iconv/iconv.h: Likewise.
10968         * iconv/loop.c: Likewise.
10969         * iconv/skeleton.c: Likewise.
10970         * include/aio.h: Likewise.
10971         * include/aliases.h: Likewise.
10972         * include/argz.h: Likewise.
10973         * include/arpa/inet.h: Likewise.
10974         * include/assert.h: Likewise.
10975         * include/dirent.h: Likewise.
10976         * include/dlfcn.h: Likewise.
10977         * include/execinfo.h: Likewise.
10978         * include/fcntl.h: Likewise.
10979         * include/fenv.h: Likewise.
10980         * include/glob.h: Likewise.
10981         * include/grp.h: Likewise.
10982         * include/libintl.h: Likewise.
10983         * include/mntent.h: Likewise.
10984         * include/netdb.h: Likewise.
10985         * include/pwd.h: Likewise.
10986         * include/rpc/netdb.h: Likewise.
10987         * include/sched.h: Likewise.
10988         * include/search.h: Likewise.
10989         * include/shadow.h: Likewise.
10990         * include/signal.h: Likewise.
10991         * include/stdio.h: Likewise.
10992         * include/stdlib.h: Likewise.
10993         * include/string.h: Likewise.
10994         * include/sys/socket.h: Likewise.
10995         * include/sys/stat.h: Likewise.
10996         * include/sys/statfs.h: Likewise.
10997         * include/sys/statvfs.h: Likewise.
10998         * include/sys/syslog.h: Likewise.
10999         * include/sys/time.h: Likewise.
11000         * include/sys/uio.h: Likewise.
11001         * include/time.h: Likewise.
11002         * include/unistd.h: Likewise.
11003         * include/utmp.h: Likewise.
11004         * include/wchar.h: Likewise.
11005         * include/wctype.h: Likewise.
11006         * inet/aliases.h: Likewise.
11007         * inet/arpa/inet.h: Likewise.
11008         * inet/netinet/ether.h: Likewise.
11009         * inet/netinet/in.h: Likewise.
11010         * intl/libintl.h: Likewise.
11011         * io/bits/fcntl2.h: Likewise.
11012         * io/fcntl.h: Likewise.
11013         * io/ftw.h: Likewise.
11014         * io/sys/poll.h: Likewise.
11015         * io/sys/stat.h: Likewise.
11016         * io/sys/statfs.h: Likewise.
11017         * io/sys/statvfs.h: Likewise.
11018         * io/utime.h: Likewise.
11019         * libio/bits/stdio.h: Likewise.
11020         * libio/bits/stdio2.h: Likewise.
11021         * libio/libio.h: Likewise.
11022         * libio/libioP.h: Likewise.
11023         * libio/stdio.h: Likewise.
11024         * locale/lc-ctype.c: Likewise.
11025         * locale/locale.h: Likewise.
11026         * login/utmp.h: Likewise.
11027         * malloc/arena.c: Likewise.
11028         * malloc/malloc.c: Likewise.
11029         * malloc/malloc.h: Likewise.
11030         * malloc/mcheck.c: Likewise.
11031         * malloc/mtrace.c: Likewise.
11032         * math/bits/mathcalls.h: Likewise.
11033         * math/fenv.h: Likewise.
11034         * math/math_private.h: Likewise.
11035         * misc/bits/error.h: Likewise.
11036         * misc/bits/syslog.h: Likewise.
11037         * misc/err.h: Likewise.
11038         * misc/error.h: Likewise.
11039         * misc/fstab.h: Likewise.
11040         * misc/mntent.h: Likewise.
11041         * misc/regexp.h: Likewise.
11042         * misc/search.h: Likewise.
11043         * misc/sgtty.h: Likewise.
11044         * misc/sys/mman.h: Likewise.
11045         * misc/sys/syslog.h: Likewise.
11046         * misc/sys/uio.h: Likewise.
11047         * misc/sys/xattr.h: Likewise.
11048         * misc/ttyent.h: Likewise.
11049         * nis/rpcsvc/ypclnt.h: Likewise.
11050         * nss/nss.h: Likewise.
11051         * posix/bits/unistd.h: Likewise.
11052         * posix/fnmatch.h: Likewise.
11053         * posix/glob.h: Likewise.
11054         * posix/sched.h: Likewise.
11055         * posix/spawn.h: Likewise.
11056         * posix/sys/wait.h: Likewise.
11057         * posix/unistd.h: Likewise.
11058         * posix/wordexp.h: Likewise.
11059         * pwd/pwd.h: Likewise.
11060         * resolv/netdb.h: Likewise.
11061         * resource/sys/resource.h: Likewise.
11062         * rt/aio.h: Likewise.
11063         * rt/bits/mqueue2.h: Likewise.
11064         * rt/mqueue.h: Likewise.
11065         * shadow/shadow.h: Likewise.
11066         * signal/signal.h: Likewise.
11067         * socket/send.c: Likewise.
11068         * socket/sendto.c: Likewise.
11069         * socket/sys/socket.h: Likewise.
11070         * stdio-common/printf.h: Likewise.
11071         * stdlib/bits/stdlib.h: Likewise.
11072         * stdlib/fmtmsg.h: Likewise.
11073         * stdlib/monetary.h: Likewise.
11074         * stdlib/stdlib.h: Likewise.
11075         * stdlib/ucontext.h: Likewise.
11076         * streams/stropts.h: Likewise.
11077         * string/argz.h: Likewise.
11078         * string/bits/string2.h: Likewise.
11079         * string/string.h: Likewise.
11080         * string/strings.h: Likewise.
11081         * sunrpc/rpc/auth.h: Likewise.
11082         * sunrpc/rpc/auth_des.h: Likewise.
11083         * sunrpc/rpc/clnt.h: Likewise.
11084         * sunrpc/rpc/netdb.h: Likewise.
11085         * sunrpc/rpc/pmap_clnt.h: Likewise.
11086         * sunrpc/rpc/xdr.h: Likewise.
11087         * sysdeps/generic/inttypes.h: Likewise.
11088         * sysdeps/generic/net/if.h: Likewise.
11089         * sysdeps/generic/sys/swap.h: Likewise.
11090         * sysdeps/gnu/net/if.h: Likewise.
11091         * sysdeps/gnu/utmpx.h: Likewise.
11092         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
11093         * sysdeps/i386/i486/bits/string.h: Likewise.
11094         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
11095         * sysdeps/s390/bits/string.h: Likewise.
11096         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
11097         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
11098         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11099         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
11100         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11101         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11102         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11103         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
11104         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
11105         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
11106         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
11107         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
11108         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
11109         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
11110         * sysdeps/unix/sysv/linux/readv.c: Likewise.
11111         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
11112         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11113         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11114         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
11115         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
11116         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
11117         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
11118         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
11119         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
11120         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
11121         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
11122         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
11123         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11124         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
11125         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
11126         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
11127         * sysvipc/sys/ipc.h: Likewise.
11128         * sysvipc/sys/msg.h: Likewise.
11129         * sysvipc/sys/sem.h: Likewise.
11130         * sysvipc/sys/shm.h: Likewise.
11131         * termios/termios.h: Likewise.
11132         * time/sys/time.h: Likewise.
11133         * time/time.h: Likewise.
11134         * wcsmbs/bits/wchar2.h: Likewise.
11135         * wcsmbs/uchar.h: Likewise.
11136         * wcsmbs/wchar.h: Likewise.
11137         * wctype/wctype.h: Likewise.
11138
11139         [BZ #13551]
11140         * Makeconfig: Remove all but ELF support including AIX support.
11141         * Makerules: Likewise.
11142         * config.h.in: Likewise.
11143         * config.make.in: Likewise.
11144         * configure: Likewise.
11145         * configure.in: Likewise.
11146         * csu/Makefile: Likewise.
11147         * csu/version.c: Likewise.
11148         * debug/Makefile: Likewise.
11149         * dlfcn/Makefile: Likewise.
11150         * elf/Makefile: Likewise.
11151         * extra-lib.mk: Likewise.
11152         * iconv/Makefile: Likewise.
11153         * include/libc-symbols.h: Likewise.
11154         * include/shlib-compat.h: Likewise.
11155         * resolv/Makefile: Likewise.
11156         * resolv/res_libc.c: Likewise.
11157         * rt/Makefile: Likewise.
11158         * sysdeps/i386/asm-syntax.h: Likewise.
11159         * sysdeps/i386/sysdep.h: Likewise.
11160         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
11161         * sysdeps/mach/sysdep.h: Likewise.
11162         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
11163         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
11164         * sysdeps/s390/asm-syntax.h: Likewise.
11165         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11166         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11167         * sysdeps/sh/sysdep.h: Likewise.
11168         * sysdeps/unix/sparc/sysdep.h: Likewise.
11169         * sysdeps/wordsize-32/divdi3.c: Likewise.
11170         * sysdeps/x86_64/sysdep.h: Likewise.
11171
11172         * argp/Versions: Remove _argp_unlock_xxx.
11173
11174         [BZ #13559]
11175         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
11176         * abilist/libBrokenLocale.abilist: Likewise.
11177         * abilist/libanl.abilist: Likewise.
11178         * abilist/libc.abilist: Likewise.
11179         * abilist/libcrypt.abilist: Likewise.
11180         * abilist/libdl.abilist: Likewise.
11181         * abilist/libm.abilist: Likewise.
11182         * abilist/libnsl.abilist: Likewise.
11183         * abilist/libpthread.abilist: Likewise.
11184         * abilist/libresolv.abilist: Likewise.
11185         * abilist/librt.abilist: Likewise.
11186         * abilist/libthread_db.abilist: Likewise.
11187         * abilist/libutil.abilist: Likewise.
11188         * abilist/libnss_db.abilist: New file.
11189
11190         * scripts/abilist.awk: Add support for indirect functions.
11191
11192         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
11193
11194         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
11195
11196         * shlib-versions: Remove entries for ports architectures.
11197
11198         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
11199         files in ports.
11200         * elf/stackguard-macros.h: Remove support for IA-64.
11201         * elf/tst-auditmod1.c: Likewise.
11202         * sysdeps/generic/ldsodefs.h: Likewise.
11203
11204         * sysdeps/unix/sysv/linux/configure.in: Ports should define
11205         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
11206         configure files.
11207
11208         [BZ #13552]
11209         * configure.in: Remove --enable-omitfp support.
11210         * FAQ.in: Adjust.
11211         * config.make.in: Likewise.
11212         * Makeconfig: Likewise.
11213         * manual/install.texi: Likewise.
11214
11215         In case anyone cares, the IA-64 architecture could move to ports.
11216         * sysdeps/ia64/*: Removed.
11217         * sysdeps/unix/sysv/linux/ia64/*: Removed.
11218         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
11219
11220         [BZ #13555]
11221         * configure.in: Remove entries for unsupported architectures.
11222
11223         [BZ #13533]
11224         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
11225         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
11226         routines.
11227         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
11228         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
11229         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
11230         fall back to using wcrtomb.
11231         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
11232         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
11233         renaming.
11234         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
11235         * wcsmbs/tst-c16c32-1.c: New file.
11236
11237         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
11238         local variable.
11239
11240         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
11241
11242         * elf/tst-unique3.cc: Add explicit declaration of gets.
11243         * elf/tst-unique3lib.cc: Likewise.
11244         * elf/tst-unique3lib2.cc: Likewise.
11245         * elf/tst-unique4.cc: Likewise.
11246
11247         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
11248
11249 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
11250
11251         [BZ #13566]
11252         * assert/assert.h (static_assert): Don't define for C++.
11253         * libio/stdio.h (gets): Do declare for C++ <= C++11.
11254         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
11255
11256 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
11257
11258         * iconv/loop.c (single loop): Fix assertion in storing of
11259         remaining bytes.
11260
11261         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
11262
11263 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
11264
11265         * posix/getconf.c: Update copyright year.
11266         * nss/getent.c: Likewise.
11267         * nss/makedb.c: Likewise.
11268         * iconv/iconvconfig.c: Likewise.
11269         * iconv/iconv_prog.c: Likewise.
11270         * elf/ldconfig.c: Likewise.
11271         * elf/pldd.c: Likewise.
11272         * elf/sotruss.ksh: Likewise.
11273         * catgets/gencat.c: Likewise.
11274         * csu/version.c: Likewise.
11275         * elf/ldd.bash.in: Likewise.
11276         * elf/sprof.c (print_version): Likewise.
11277         * locale/programs/locale.c: Likewise.
11278         * locale/programs/localedef.c: Likewise.
11279         * login/programs/pt_chown.c: Likewise.
11280         * nscd/nscd.c (print_version): Likewise.
11281         * debug/xtrace.sh: Likewise.
11282         * malloc/memusage.sh: Likewise.
11283         * malloc/mtrace.pl: Likewise.
11284         * debug/catchsegv.sh: Likewise.
11285
11286 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
11287
11288         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
11289         pure attribute.
11290
11291 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
11292
11293         [BZ #13533]
11294         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
11295         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
11296         transformations.
11297         * iconv/gconv_int.h: Likewise.
11298         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
11299         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
11300         from libc for GLIBC_2.16.
11301         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
11302         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
11303         * wcsmbs/uchar.h: Really define mbstate_t.
11304         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
11305         * wcsmbs/c16rtomb.c: New file.
11306         * wcsmbs/mbrtoc16.c: New file.
11307         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
11308         for C/POSIX locale.
11309         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
11310         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
11311
11312         * wcsmbs/wchar.h: Add missing __restrict.
11313
11314 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
11315
11316         [BZ #13532]
11317         * time/Makefile (routines): Add timespec_get.
11318         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
11319         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
11320         timespec for ISO C11.
11321         * time/timespec_get.c: New file.
11322         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
11323         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
11324
11325         [BZ #13531]
11326         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
11327         * stdlib/stdlib.h: Declare aligned_alloc.
11328         * Versions.def: Add GLIBC_2.16 for libc.
11329         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
11330
11331         [BZ 13527]
11332         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
11333         ISO C11.
11334
11335         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
11336         code.
11337
11338         [BZ #13528]
11339         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
11340
11341         [BZ #13529]
11342         * assert/assert.h (static_assert): Define.
11343
11344         * version.h: Update for 2.16 development version.
11345
11346         [BZ #13526]
11347         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
11348         _ISOC11_SOURCE.
11349
11350         * version.h (RELEASE): Bump for 2.15 release.
11351         * include/features.h (__GLIBC_MINOR__): Bump to 15.
11352
11353         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
11354         Patch by Marek Polacek <mpolacek@redhat.com>.
11355
11356         * bits/byteswap.h: Protect long long constants with __extension__.
11357         * sysdeps/i386/bits/byteswap.h: Likewise.
11358         * sysdeps/ia64/bits/byteswap.h: Likewise.
11359         * sysdeps/s390/bits/byteswap.h: Likewise.
11360         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11361
11362 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11363
11364         [BZ #13540]
11365         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
11366         destination buffer.
11367         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
11368
11369 2011-12-23  Marek Polacek  <polacek@redhat.com>
11370
11371         * elf/dl-addr.c (determine_info): Add inline keyword.
11372         * elf/tst-auditmod4b.c (check_avx): Likewise.
11373         * elf/tst-auditmod6b.c (check_avx): Likewise.
11374         * elf/tst-auditmod6c.c (check_avx): Likewise.
11375         * elf/tst-auditmod7b.c (check_avx): Likewise.
11376
11377 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
11378
11379         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
11380         !__SSE_MATH__.
11381
11382 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11383
11384         [BZ #13540]
11385         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
11386         processing for last bytes.
11387
11388 2011-08-06  Bruno Haible  <bruno@clisp.org>
11389
11390         [BZ #13061]
11391         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
11392         U+0385, not to U+1FEE.
11393
11394         [BZ #13062]
11395         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
11396         entry for U+00A5 U+0301.
11397
11398 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
11399
11400         [BZ #13166]
11401         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
11402         buffer for the output is too small.
11403
11404         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
11405         optimization.
11406
11407         [BZ #13185]
11408         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
11409         SSE flags if possible.
11410
11411 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11412
11413         [BZ #13540]
11414         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
11415         processing for last bytes.
11416
11417 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
11418
11419         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
11420         (syscall-list-default-options, syscall-list-default-condition)
11421         (syscall-list-includes): Define.
11422         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
11423         list of ABIs and options and #if conditions for each ABI.  Do not
11424         handle common syscalls between ABIs specially.
11425         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
11426         Remove.
11427         (syscall-list-variants, syscall-list-32bit-options)
11428         (syscall-list-32bit-condition, syscall-list-64bit-options)
11429         (syscall-list-64bit-condition): Define.
11430         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
11431         (syscall-list-variants, syscall-list-32bit-options)
11432         (syscall-list-32bit-condition, syscall-list-64bit-options)
11433         (syscall-list-64bit-condition): Define.
11434         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
11435         Remove.
11436         (syscall-list-variants, syscall-list-32bit-options)
11437         (syscall-list-32bit-condition, syscall-list-64bit-options)
11438         (syscall-list-64bit-condition): Define.
11439         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
11440         Remove.
11441         (syscall-list-variants, syscall-list-32bit-options)
11442         (syscall-list-32bit-condition, syscall-list-64bit-options)
11443         (syscall-list-64bit-condition): Define.
11444
11445 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
11446
11447         * locale/iso-639.def: Add brx entry.
11448
11449         [BZ #13328]
11450         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
11451         Proposed by Mariusz_Cukr <marcukr@op.pl>.
11452
11453         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
11454         __feraiseexcept_renamed.
11455
11456 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
11457
11458         [BZ #13538]
11459         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
11460         EPOLLET with unsigned values.
11461         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11462         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
11463
11464         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
11465         to large cancellation.
11466         * math/s_cacoshf.c: Likewise.
11467         * math/s_cacoshl.c: Likewise.
11468
11469 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
11470
11471         [BZ #13305]
11472         [BZ #12786]
11473         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
11474         * math/s_cacoshf.c: Likewise.
11475         * math/s_cacoshl.c: Likewise.
11476
11477 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
11478
11479         [BZ #13439]
11480         * iconv/gconv.h: Define __GCONV_SWAP.
11481         * iconvdata/unicode.c: The swap bit must be stored in __flags.
11482         * iconvdata/utf-16.c: Likewise.
11483         * iconvdata/utf-32.c: Likewise.
11484
11485 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
11486
11487         [BZ #13524]
11488         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
11489         numerator after shifting it by one limb.
11490
11491 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
11492
11493         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
11494         under [__USE_EXTERN_INLINES].
11495
11496 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
11497
11498         [BZ #13446]
11499         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
11500
11501 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11502
11503         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
11504         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
11505         optimized code.
11506         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
11507         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
11508         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
11509         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
11510         for strncasecmp/strncasecmp_l compilation.
11511         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
11512         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
11513
11514 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
11515
11516         [BZ #13484]
11517         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
11518         of __asm__.
11519
11520 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
11521
11522         [BZ #13506]
11523         * time/tzfile.c (__tzfile_read): Check values from file header.
11524
11525 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
11526
11527         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
11528         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
11529         * powerpc/powerpc32/dl-start.S: Likewise.
11530         * powerpc/powerpc32/elf/start.S: Likewise.
11531         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11532         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
11533         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
11534         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
11535         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
11536         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
11537         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
11538         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11539         * powerpc/powerpc32/fpu/s_round.S: Likewise.
11540         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
11541         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
11542         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
11543         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
11544         * powerpc/powerpc32/memset.S: Likewise.
11545         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
11546         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
11547         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
11548         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
11549         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
11550         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
11551         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
11552         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
11553         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
11554         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
11555         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
11556         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11557         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11558
11559 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11560
11561         * math/libm-test.inc: Added more nearbyint tests.
11562         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
11563         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
11564         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
11565         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
11566
11567 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
11568
11569         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
11570         FD_CLOEXEC.
11571
11572 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11573
11574         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
11575         Add wcscpy-ssse3 wcscpy-c.
11576         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
11577         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
11578         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
11579         * sysdeps/x86_64/wcschr.S: New file.
11580         * sysdeps/x86_64/wcsrchr.S: New file.
11581         * string/test-strcmp.c: Remove checking of wcscmp function for
11582         wrong alignments.
11583         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
11584         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
11585         wcsrchr-sse2 wcsrchr-c.
11586         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
11587         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
11588         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
11589         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
11590         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
11591         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
11592         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
11593         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
11594         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
11595         * wcsmbc/wcschr.c (WCSCHR): New macro.
11596
11597 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11598
11599         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
11600         * wcsmbs/test-wcsrchr.c: New file.
11601         * string/test-strrchr.c: Add wcsrchr support.
11602         (WIDE): New macro.
11603         * wcsmbs/test-wcscpy.c: New file.
11604         * string/test-strcpy.c: Add wcscpy support.
11605         (WIDE): New macro.
11606
11607 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
11608
11609         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
11610         the inner loop.
11611
11612 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
11613
11614         [BZ #13472]
11615         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
11616
11617 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
11618
11619         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
11620         Minor optimizations.
11621
11622         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
11623         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
11624         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
11625
11626 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
11627
11628         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
11629         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
11630         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
11631         for gcc to avoid warnings.
11632         * inet/Makefile (tests): Add tst-checks.
11633         * inet/tst-checks.c: New file.
11634
11635         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
11636         warning.
11637
11638         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
11639         __wmemcmp_sse2.
11640
11641         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
11642         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
11643
11644         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
11645
11646 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
11647
11648         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
11649         problem.
11650
11651         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
11652
11653 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
11654
11655         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
11656         conditional on GCC version.
11657         (__arch_compare_and_exchange_val_8_acq)
11658         (__arch_compare_and_exchange_val_16_acq)
11659         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
11660         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
11661         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
11662
11663 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
11664
11665         * sysdeps/sh/backtrace.c: New file.
11666
11667 2011-12-02  Andreas Schwab  <schwab@redhat.com>
11668
11669         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
11670         parenthesis.
11671
11672 2011-12-01  Andreas Schwab  <schwab@redhat.com>
11673
11674         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
11675         falling back to utime.
11676
11677 2011-11-30  Andreas Schwab  <schwab@redhat.com>
11678
11679         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
11680         expectations for float.
11681
11682 2011-11-29  Andreas Schwab  <schwab@redhat.com>
11683
11684         * locale/weight.h (findidx): Add parameter len.
11685         * locale/weightwc.h (findidx): Likewise.
11686         * posix/fnmatch_loop.c (FCT): Adjust caller.
11687         * posix/regcomp.c (build_equiv_class): Likewise.
11688         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
11689         * posix/regexec.c (check_node_accept_bytes): Likewise.
11690         * string/strcoll_l.c (STRCOLL): Likewise.
11691         * string/strxfrm_l.c (STRXFRM): Likewise.
11692
11693 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
11694
11695         * Makefile.in: Remove CVSOPT handling.
11696         * configure.in: Remove use of AC_REVISION.
11697         * iconvdata/Makefile (distribute): No need to filter out CVS.
11698         * scripts/list-sources.sh: Remove CVS, subversion and monotone
11699         handling.
11700
11701 2011-11-16  Andreas Schwab  <schwab@redhat.com>
11702
11703         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
11704         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
11705         [USE_AS_STRNCASECMP_L]: Likewise.
11706         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
11707         NO_TLS_DIRECT_SEG_REFS.
11708         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
11709         Fix argument offsets for non-PIC.
11710         [USE_AS_STRNCASECMP_L]: Likewise.
11711         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
11712         NO_TLS_DIRECT_SEG_REFS.
11713
11714 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
11715
11716         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
11717         O_CLOEXEC.
11718         * locale/loadlocale.c (_nl_load_locale): Likewise.
11719
11720 2011-11-15  Andreas Schwab  <schwab@redhat.com>
11721
11722         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
11723         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
11724         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
11725         (SYSCALL_GETTIME): Set errno on error.
11726
11727         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
11728         count references to noai6ai_cached.
11729
11730 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
11731
11732         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
11733
11734         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
11735         FD_CLOEXEC for /proc/self/maps.
11736
11737         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
11738         FD_CLOEXEC for /proc/meminfo.
11739
11740         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
11741         gai.conf.
11742
11743         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
11744         FD_CLOEXEC for given file.
11745
11746         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
11747
11748         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
11749         FD_CLOEXEC for /etc/hosts.
11750         (_gethtent): Likewise.
11751
11752         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
11753
11754         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
11755         cancellation and set FD_CLOEXEC for /etc/netgroup.
11756
11757         * nss/nss_files/files-key.c (search): Don't allow cancellation when
11758         reading /etc/publickey.
11759
11760         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
11761         allow cancellation when reading /etc/group.
11762
11763         * nss/nss_files/files-alias.c (internal_setent): Don't allow
11764         cancellation.
11765         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
11766
11767         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
11768         when using data file.
11769
11770         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
11771
11772         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
11773         (write_nis_obj): Use "c" and "e" in fopen.
11774
11775         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
11776
11777         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
11778
11779         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
11780
11781         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
11782
11783         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
11784         locale.alias.
11785
11786         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
11787
11788         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
11789
11790         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
11791
11792         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
11793         file parsing and set FD_CLOEXEC.
11794
11795 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
11796
11797         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
11798
11799 2011-11-14  Andreas Schwab  <schwab@redhat.com>
11800
11801         * malloc/arena.c (arena_get2): Don't call reused_arena when
11802         _int_new_arena failed.
11803
11804 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
11805
11806         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
11807         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
11808         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
11809         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11810         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11811         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
11812         to compile strcasecmp and strncasecmp.
11813         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
11814         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
11815
11816         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
11817
11818 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
11819
11820         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
11821         locale-defines.sym to gen-as-const-headers.
11822         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
11823         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
11824         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
11825         to compile strcasecmp and strncasecmp.
11826         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
11827         strcasecmp_l and strncasecmp_l.
11828         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
11829         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
11830         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
11831         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
11832         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
11833         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
11834         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
11835         * sysdeps/i386/i686/multiarch/strncase.S: New file.
11836         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
11837         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
11838         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
11839
11840 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
11841
11842         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
11843         result of SYSDEP_GETTIME_CPU to retval.
11844         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
11845         parameter list to macro.  Remove trailing semicolon.  Adjust users.
11846
11847         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
11848         variable.
11849
11850         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
11851         mantissa words.
11852         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
11853
11854         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
11855         from unused variable.
11856
11857         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
11858         DWARF definitions.
11859         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
11860         for assembling.
11861
11862         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
11863         over namespaces.
11864
11865         * sunrpc/rpc_prot.c (rejected): Fix case value.
11866
11867         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
11868         unsigned long long int to avoid warnings in shift.
11869
11870         * posix/regex_internal.c (re_string_reconstruct): Actually use result
11871         of use of trans.
11872         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
11873         variable tmp.
11874
11875         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
11876         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
11877         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
11878
11879         * nis/nis_table.c (nis_list): Use variable of correct type for
11880         result of __follow_path call.
11881
11882 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11883
11884         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
11885         of math functions ceil, trunc, floor, round, and sqrt, when
11886         avaliable on the platform.
11887         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
11888         name clash.
11889         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11890         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
11891         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
11892
11893 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
11894
11895         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
11896         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
11897
11898 2011-11-11  Roland McGrath  <roland@hack.frob.com>
11899
11900         * include/unistd.h: Fix __readlink return type.
11901         Reported by Chris Metcalf <cmetcalf@tilera.com>.
11902
11903 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
11904
11905         * stdlib/ucontext.h: Undo last change for makecontext.
11906
11907 2011-11-11  Andreas Schwab  <schwab@redhat.com>
11908
11909         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
11910
11911         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
11912         * setjmp/setjmp.h: Mark functions as non-leaf.
11913         * setjmp/bits/setjmp2.h: Likewise.
11914         * stdlib/ucontext.h: Likewise.
11915
11916 2011-11-10  Andreas Schwab  <schwab@redhat.com>
11917
11918         * malloc/arena.c (_int_new_arena): Don't increment narenas.
11919         (reused_arena): Don't check arena limit.
11920         (arena_get2): Atomically check arena limit.
11921
11922 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
11923
11924         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
11925         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
11926
11927         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
11928         instructions.
11929
11930 2011-11-07  Andreas Schwab  <schwab@redhat.com>
11931
11932         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
11933         handler when locking.
11934
11935         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11936         Fix size of allocated buffer.
11937
11938 2011-11-04  Andreas Schwab  <schwab@redhat.com>
11939
11940         [BZ #10103]
11941         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
11942         declarations for long double functions.
11943         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
11944
11945         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
11946
11947 2011-11-03  Andreas Schwab  <schwab@redhat.com>
11948
11949         * nscd/nscd.c (main): Don't start AVC thread until credentials are
11950         installed.
11951
11952         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
11953         is disabled.
11954
11955 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11956
11957         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
11958
11959 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
11960
11961         * include/alloca.h (stackinfo_alloca_round): Define.
11962         (extend_alloca): Use it.
11963         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
11964         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
11965         here.
11966
11967         * scripts/check-local-headers.sh: Ignore libaudit.h.
11968
11969         * nscd/Makefile (extra-objs): Make recursively expanded.
11970
11971 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
11972
11973         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
11974         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
11975
11976         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
11977         * posix/tst-rfc3484-2.c: Likewise.
11978         * posix/tst-rfc3484-3.c: Likewise.
11979
11980         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11981         process_vm_writev.
11982         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
11983         process_vm_writev.
11984         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
11985         process_vm_writev from libc using GLIBC_2.15 version.
11986
11987         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
11988
11989 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
11990
11991         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
11992         stack usage.
11993
11994 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
11995
11996         [BZ #13367]
11997         * nss/getent.c (initgroups_keys): Show error message in case no group
11998         names are given.
11999
12000         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
12001         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
12002         __bump_nl_timestamp.
12003         * nscd/connections (nscd_init): When host database is served open
12004         netlink socket and request notification about configuration changes.
12005         (main_loop_poll): Track netlink file descriptor and bump timestamp
12006         in case data becomes available.
12007         (main_loop_epoll): Likewise.
12008         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
12009         (database_pers_head): Add extra_data fileds.
12010         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
12011         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
12012         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
12013         Adjust caller.
12014         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
12015         in6ai data, call __free_in6ai.
12016         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
12017         Add -DHAVE_NETLINK.
12018         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
12019         interface information.  Reuse previous data if netlink timestamp
12020         is not changed.
12021         (__bump_nl_timestamp): New function.
12022         (__free_in6ai): New function.
12023
12024 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
12025
12026         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
12027         close_not_cancel_no_status here.
12028         (__check_pf): Reorganize code a bit to not call close twice if OOM.
12029
12030 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
12031
12032         [BZ #13276]
12033         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
12034         return value.
12035
12036         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
12037         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
12038         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
12039
12040 2011-07-03  Andreas Jaeger  <aj@suse.de>
12041
12042         [BZ #10709]
12043         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
12044         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
12045         * math/libm-test.inc (sin_test): Add test case.
12046
12047 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
12048
12049         [BZ #13337]
12050         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
12051         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
12052
12053         * elf/chroot_canon.c (chroot_canon): Cleanups.
12054
12055         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
12056
12057         [BZ #13335]
12058         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
12059         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
12060
12061         * string/test-strchr.c: Make usable for strchrnul testing.
12062         * string/test-strchrnul.c: New file.
12063         * string/Makefile (strop-tests): Add strchrnul.
12064
12065         * po/it.po: Update from translation team.
12066         * po/es.po: Likewise.
12067
12068 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
12069
12070         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
12071         the three constants needed as parameters.  Drop the others.
12072         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
12073         __m128i_strloadu_tolower.
12074         Create and initialize variable zero and use it in all the places
12075         where _mm_setzero_si128 was used.
12076
12077         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
12078         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
12079         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
12080         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
12081         anymore.
12082         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
12083         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
12084         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
12085         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
12086         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
12087         __mpranred, __mptan.
12088         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
12089         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
12090         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
12091         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
12092         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
12093         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
12094         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
12095         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
12096         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
12097
12098 2011-10-28  Andreas Schwab  <schwab@redhat.com>
12099
12100         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
12101         redefine if SHARED.
12102         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
12103
12104         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
12105         wide char related routines to wcsmbs subdir.
12106
12107 2011-10-27  Andreas Schwab  <schwab@redhat.com>
12108
12109         [BZ #13344]
12110         * misc/sys/cdefs.h (__THROWNL): Define.
12111         * posix/unistd.h: Use __THREADNL instead of __THREAD
12112         for memory synchronization functions.
12113
12114 2011-10-26  Roland McGrath  <roland@hack.frob.com>
12115
12116         [BZ #13349]
12117         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
12118         doesn't exist.
12119         * manual/stdio.texi (Obstack Streams): Node removed.
12120
12121 2011-10-26  Andreas Schwab  <schwab@redhat.com>
12122
12123         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
12124         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12125         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12126
12127         * math/math_private.h (math_force_eval): Allow non-addressable
12128         arguments.
12129         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
12130
12131 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12132
12133         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
12134         file is not needed.
12135
12136         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
12137         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
12138         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12139         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12140         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12141         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12142         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12143         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
12144         Add AVX variants.
12145         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
12146         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
12147         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
12148         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
12149         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
12150         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
12151         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
12152         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
12153         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
12154         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
12155         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
12156         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
12157         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
12158         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
12159         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
12160         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
12161         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
12162         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
12163         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
12164
12165         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
12166         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
12167
12168         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
12169         place.  Use VEX encoding when compiling for AVX.
12170
12171 2011-10-25  Andreas Schwab  <schwab@redhat.com>
12172
12173         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
12174         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
12175
12176         * string/test-strchr.c (do_test): Don't generate NUL bytes.
12177
12178 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12179
12180         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
12181         useless if() expression.
12182         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12183         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12184         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12185         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12186         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12187         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12188         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12189         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12190         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12191         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12192         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12193         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12194         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12195         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12196         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12197         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12198         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12199         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12200         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12201
12202         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
12203
12204 2011-10-25  Andreas Schwab  <schwab@redhat.com>
12205
12206         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
12207         condition.
12208         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12209
12210 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12211
12212         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
12213         .text section.  Avoid duplicate constants.
12214         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12215         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12216         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12217         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12218         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12219         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12220         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12221         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12222         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12223         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
12224         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12225         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
12226         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
12227         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
12228         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
12229         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
12230         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
12231         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12232         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12233         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12234         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12235         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12236         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12237         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
12238         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
12239         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
12240         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
12241         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
12242         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
12243         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
12244         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
12245         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
12246         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
12247         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
12248         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
12249         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
12250         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
12251         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
12252         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
12253         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
12254         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
12255         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
12256         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
12257         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
12258         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
12259
12260 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
12261
12262         * sysdeps/x86_64/dla.h: Move to ...
12263         * sysdeps/x86_64/fpu/dla.h: ...here.
12264         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
12265         situations.  Use __builtin_fma only for gcc 4.6 and up.
12266
12267         * config.make.in: Add have-mfma4 entry.
12268         * configure.in: Substitute libc_cv_cc_fma4.
12269         * math/Makefile (dbl-only-routines): Add sincostab.
12270         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
12271         Use __sincostab not sincos.
12272         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
12273         name is a macro.
12274         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12275         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12276         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12277         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
12278         using __copysign.
12279         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
12280         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
12281         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
12282         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
12283         and __inv.
12284         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
12285         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
12286         __copysign.
12287         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
12288         define aliases when function name is a macro.
12289         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
12290         sysdeps/ieee754/dbl-64/sincos.tbl.
12291         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
12292         fma4-enabled routines.
12293         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
12294         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
12295         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
12296         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
12297         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
12298         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
12299         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
12300         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
12301         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
12302         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
12303         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
12304         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
12305         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
12306         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
12307         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
12308         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
12309         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
12310         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
12311         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
12312         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
12313         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
12314         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
12315         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
12316         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
12317         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
12318         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
12319         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
12320         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
12321         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
12322         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
12323
12324         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
12325         rename.
12326         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12327         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12328         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12329         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12330         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12331         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12332         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12333         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12334
12335 2011-10-24  Andreas Schwab  <schwab@redhat.com>
12336
12337         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
12338
12339 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12340
12341         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
12342
12343         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
12344         prediction.
12345         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
12346
12347         * string/strnlen.c: Don't define STRNLEN, reverse logic.
12348         Remove unused variable magic_bits.
12349         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
12350
12351         * string/strnlen.c: Define and use STRNLEN macro.
12352         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
12353         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
12354         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
12355         * wcsmbs/wcslen.c: Define and use WCSLEN.
12356         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
12357         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
12358         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
12359         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
12360         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
12361         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
12362         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
12363
12364 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12365
12366         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12367         strnlen-sse2-no-bsf.
12368         Rename strlen-no-bsf to strlen-sse2-no-bsf.
12369         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
12370         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
12371         Add strnlen support.
12372         (USE_AS_STRNLEN): New macro.
12373         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
12374         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
12375         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
12376         * sysdeps/x86_64/wcslen.S: New file.
12377
12378 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
12379
12380         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
12381         XMM-moves are used for copying on small sizes.
12382
12383 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12384
12385         * wcsmbs/Makefile (strop-tests): Add wcschr.
12386         * wcsmbs/test-wcschr.c: New file.
12387         * string/test-strchr.c: Update.
12388         Add wcschr support.
12389         (WIDE): New macro.
12390
12391 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12392
12393         * wcsmbs/Makefile (strop-tests): Add wcslen.
12394         * wcsmbs/test-wcslen.c: New file.
12395         * string/test-strlen.c: Update.
12396         Add wcslen support.
12397         (WIDE): New macro.
12398
12399 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12400
12401         * po/it.po: Update from translation team.
12402
12403 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12404
12405         * sysdeps/x86_64/wcscmp.S: Update.
12406         Fix wrong comparison semantics.
12407         wcscmp shall use signed comparison not unsigned.
12408         Don't use substraction to avoid overflow bug.
12409         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
12410         * wcsmbc/wcscmp.c: Likewise.
12411         * string/test-strcmp.c: Likewise.
12412         Add new tests to check cases with negative values.
12413
12414 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12415
12416         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
12417         * sysdeps/x86_64/dla.h: ...here.  New file.
12418         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
12419         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12420         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12421         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12422         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12423         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12424         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12425         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12426         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12427
12428 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
12429
12430         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
12431         __ynl_finite aliases.
12432
12433 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
12434
12435         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12436
12437         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
12438         define DLA_FMA.
12439         [DLA_FMA] (EMULV): Use DLA_FMA.
12440         [DLA_FMA] (MUL12): Use EMULV.
12441         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
12442         that are not needed.
12443         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12444         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12445         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12446         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12447         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12448         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12449         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12450
12451 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
12452
12453         * math/s_nan.c: Undef __nan.
12454         * math/s_nanf.c: Undef __nanf.
12455         * math/s_nanl.c: Undef __nanl.
12456         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
12457         "math_private.h".
12458
12459 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
12460
12461         * math/s_catan.c: Add branch predictions.
12462         * math/s_catanf.c: Likewise.
12463         * math/s_catanh.c: Likewise.
12464         * math/s_catanhf.c: Likewise.
12465         * math/s_catanhl.c: Likewise.
12466         * math/s_catanl.c: Likewise.
12467         * math/s_cexp.c: Likewise.
12468         * math/s_cexpf.c: Likewise.
12469         * math/s_cexpl.c: Likewise.
12470         * math/s_clog.c: Likewise.
12471         * math/s_clog10.c: Likewise.
12472         * math/s_clog10f.c: Likewise.
12473         * math/s_clog10l.c: Likewise.
12474         * math/s_clogf.c: Likewise.
12475         * math/s_clogl.c: Likewise.
12476         * math/s_csqrt.c: Likewise.
12477         * math/s_csqrtf.c: Likewise.
12478         * math/s_csqrtl.c: Likewise.
12479         * math/s_ctanf.c: Likewise.
12480         * math/s_ctanh.c: Likewise.
12481         * math/s_ctanhf.c: Likewise.
12482         * math/s_ctanhl.c: Likewise.
12483         * math/s_ctanl.c: Likewise.
12484
12485         * math/math_private.h: Define __nan, __nanf, __nanl.
12486         * math/s_cacosh.c: Include <math_private.h>.
12487         * math/s_cacoshl.c: Likewise.
12488         * math/s_casinh.c: Likewise.
12489         * math/s_casinhf.c: Likewise.
12490         * math/s_casinhl.c: Likewise.
12491         * math/s_ccos.c: Rely entire on ccosh.
12492         * math/s_ccosf.c: Rely entire on ccoshf.
12493         * math/s_ccosl.c: Rely entirely on ccoshl.
12494         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
12495         Remove tests for FE_INVALID.
12496         * math/s_ccoshf.c: Likewise.
12497         * math/s_ccoshl.c: Likewise.
12498         * math/s_csin.c: Likewise.
12499         * math/s_csinf.c: Likewise.
12500         * math/s_csinh.c Likewise.
12501         * math/s_csinhf.c: Likewise.
12502         * math/s_csinhl.c: Likewise.
12503         * math/s_csinl.c: Likewise.
12504         * math/s_ctan.c: Likewise.
12505         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
12506         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
12507         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
12508
12509 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
12510
12511         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
12512         compilation problems.
12513
12514         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
12515         __builtin_expect.
12516
12517 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
12518
12519         * sysdeps/i386/configure.in: Test for -mfma4 option.
12520         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
12521         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
12522         COMMON_CPUID_INDEX_80000001.
12523         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
12524         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
12525         use it if FMA3 is not supported.
12526         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
12527
12528         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
12529         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12530
12531 2011-10-20  Andreas Schwab  <schwab@redhat.com>
12532
12533         [BZ #12892]
12534         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
12535         it would create a cycle with a link time dependency.
12536
12537 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
12538
12539         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
12540         instruction.
12541         * string/Makefile (strop-tests): Add rawmemchr.
12542         * string/test-rawmemchr.c: New file.
12543
12544         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
12545         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
12546         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
12547         when compiling str{,n}casecmp and when AVX is available.  Hook up
12548         new optimized code in initializers.
12549
12550 2011-10-19  Andreas Schwab  <schwab@redhat.com>
12551
12552         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
12553         __feraiseexcept instead of feraiseexcept.
12554
12555 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
12556
12557         * math/math_private.h: Define defaults for libc_fetestexcept and
12558         libc_feupdateenv.
12559         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
12560         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12561         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12562         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12563         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12564         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12565         libc_fetestexcept and libc_feupdateenv.
12566
12567         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
12568         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
12569         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
12570         * sysdeps/x86_64/fpu/math_private.h: Define special version of
12571         libc_feholdexcept_setround.
12572
12573         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
12574         Add s_nearbyint-c and s_nearbyintf-c.
12575         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
12576         nearbyintf inlines.
12577         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
12578         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
12579         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
12580         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
12581
12582         * math/math_private.h: Define defaults for libc_fegetround,
12583         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
12584         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
12585         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
12586         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
12587         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
12588         standard functions.
12589         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12590         Remove comments and hacks for old compiler versions.
12591         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12592         libc_fegetround, libc_fesetround, libc_feholdexcept, and
12593         libc_feholdexceptl.
12594
12595 2011-10-18  Andreas Schwab  <schwab@redhat.com>
12596
12597         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
12598         (__feraiseexcept_renamed): Add __NTH.
12599         (feraiseexcept): Add __NTH.  Rename local variables to fix
12600         namespace violations.
12601
12602 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
12603
12604         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
12605
12606         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
12607
12608         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
12609         recently added interfaces.
12610         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12611
12612         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
12613         about macro parameter expansion.
12614
12615         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
12616         __NO_MATH_INLINES is defined.  Cleanups.
12617
12618         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
12619         and __floorf is target has SSE4.1.
12620         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
12621         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
12622         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
12623         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
12624
12625         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
12626         name.
12627         (floorf): Likewise.
12628
12629         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
12630
12631 2011-10-17  Andreas Schwab  <schwab@redhat.com>
12632
12633         * misc/sys/cdefs.h: Fix last change.
12634
12635         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
12636         database lookup.
12637
12638 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
12639
12640         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
12641
12642         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
12643         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12644         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12645         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12646         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12647         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12648         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12649         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12650         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12651         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
12652         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
12653         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
12654         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
12655         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
12656         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
12657         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
12658         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
12659         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
12660         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
12661         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
12662         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
12663         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
12664
12665         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
12666         ceil, ceilf, floor, floorf.
12667
12668         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
12669         Perform IRELATIVE relocations last.
12670
12671         * elf/do-rel.h: Add another parameter nrelative, replacing the
12672         local variable with the same name.  Change name of the function
12673         to end in Rel or Rela (uppercase).
12674         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
12675         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
12676         elf_dynamic_do_##reloc function.
12677
12678 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
12679
12680         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
12681         is sufficient, at least on modern CPUs.
12682
12683         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
12684
12685         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
12686         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
12687
12688         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
12689         __expl_finite.
12690         * math/bits/math-finite.h: Add entries for exp.
12691         * math/e_expl.c: Add __*_finite alias.
12692         * sysdeps/i386/fpu/e_exp.S: Likewise.
12693         * sysdeps/i386/fpu/e_expf.S: Likewise.
12694         * sysdeps/i386/fpu/e_expl.c: Likewise.
12695         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12696         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12697         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12698         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12699         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
12700         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12701         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12702
12703         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
12704         is sufficient, at least on modern CPUs.
12705
12706         * ctype/ctype-info.c (__ctype_init): Define.
12707         * include/ctype.h (__ctype_init): Declare.
12708         (__ctype_b_loc): The variable is always initialized.
12709         (__ctype_toupper_loc): Likewise.
12710         (__ctype_tolower_loc): Likewise.
12711         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
12712         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
12713
12714 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
12715
12716         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
12717
12718         * configure.in: Also look in $cxxmachine/include for C++ system
12719         headers.
12720
12721 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12722
12723         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
12724         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
12725         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
12726         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
12727         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
12728         (USE_AS_WMEMCMP): New macro.
12729         Fixing indents.
12730         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
12731         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
12732         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
12733         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
12734         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12735         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
12736         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
12737         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
12738         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
12739         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
12740         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
12741         (USE_AS_WMEMCMP): New macro.
12742         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
12743         * sysdeps/string/test-memcmp.c: Update.
12744         Fix simple_wmemcmp.
12745         Add new tests.
12746         * wcsmbs/wmemcmp.c: Update.
12747         (WMEMCMP): New macro.
12748         Fix overflow bug.
12749
12750 2011-10-12  Andreas Jaeger  <aj@suse.de>
12751
12752         [BZ #13268]
12753         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
12754
12755 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
12756
12757         * libio/iofwide.c (do_length): Avoid warning.
12758
12759         * ctype/ctype.h (__isctype_f): Add missing __THROW.
12760
12761 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
12762
12763         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
12764
12765         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
12766         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
12767         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
12768         * sysdeps/i386/i686/fpu/e_log.S: New file.
12769         * sysdeps/i386/i686/fpu/e_logf.S: New file.
12770         * sysdeps/i386/i686/fpu/e_logl.S: New file.
12771
12772         * ctype/ctype.h: Add support for inlined isXXX functions when
12773         compiling C++ code.
12774
12775 2011-10-14  Andreas Schwab  <schwab@redhat.com>
12776
12777         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12778
12779         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
12780
12781 2011-10-13  Roland McGrath  <roland@hack.frob.com>
12782
12783         [BZ #13291]
12784         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
12785
12786 2011-10-13  Andreas Schwab  <schwab@redhat.com>
12787
12788         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
12789         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
12790         feraiseexcept.
12791
12792         * sysdeps/x86_64/memrchr.S: Check for zero size.
12793
12794         * string/stratcliff.c: Add memrchr tests.
12795
12796 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12797
12798         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12799         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
12800         rawmemchr-sse2 rawmemchr-sse2-bsf.
12801         * sysdeps/i386/i686/multiarch/memchr.S: New file.
12802         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
12803         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
12804         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
12805         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
12806         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
12807         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
12808         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
12809         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
12810         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
12811         * string/memrchr.c (MEMRCHR): New macro.
12812
12813 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
12814
12815         Add integration with gcc's -ffinite-math-only and optimize wrapper
12816         functions in libm.
12817         * Versions.def: Define GLIBC_2.15 version for libm.
12818         * math/Makefile (headers): Add bits/math-finite.h.
12819         * math/bits/math-finite.h: New file.
12820         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
12821         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
12822         * math/e_acoshl.c: Add __*_finite alias.
12823         * math/e_acosl.c: Likewise.
12824         * math/e_asinl.c: Likewise.
12825         * math/e_atan2l.c: Likewise.
12826         * math/e_atanhl.c: Likewise.
12827         * math/e_coshl.c: Likewise.
12828         * math/e_exp10.c: Likewise.
12829         * math/e_exp10f.c: Likewise.
12830         * math/e_exp10l.c: Likewise.
12831         * math/e_exp2l.c: Likewise.
12832         * math/e_fmodl.c: Likewise.
12833         * math/e_gammal_r.c: Likewise.
12834         * math/e_hypotl.c: Likewise.
12835         * math/e_j0l.c: Likewise.
12836         * math/e_j1l.c: Likewise.
12837         * math/e_jnl.c: Likewise.
12838         * math/e_lgammal_r.c: Likewise.
12839         * math/e_log10l.c: Likewise.
12840         * math/e_log2l.c: Likewise.
12841         * math/e_logl.c: Likewise.
12842         * math/e_powl.c: Likewise.
12843         * math/e_sinhl.c: Likewise.
12844         * math/e_sqrtl.c: Likewise.
12845         * math/e_scalb.c: Completely rewritten and optimized.
12846         * math/e_scalbf.c: Likewise.
12847         * math/e_scalbl.c: Likewise.
12848         * math/w_acos.c: Likewise.
12849         * math/w_acosf.c: Likewise.
12850         * math/w_acosl.c: Likewise.
12851         * math/w_acosh.c: Likewise.
12852         * math/w_acoshf.c: Likewise.
12853         * math/w_acoshl.c: Likewise.
12854         * math/w_asin.c: Likewise.
12855         * math/w_asinf.c: Likewise.
12856         * math/w_asinl.c: Likewise.
12857         * math/w_atan2.c: Likewise.
12858         * math/w_atan2f.c: Likewise.
12859         * math/w_atan2l.c: Likewise.
12860         * math/w_atanh.c: Likewise.
12861         * math/w_atanhf.c: Likewise.
12862         * math/w_atanhl.c: Likewise.
12863         * math/w_exp10.c: Likewise.
12864         * math/w_exp10f.c: Likewise.
12865         * math/w_exp10l.c: Likewise.
12866         * math/w_fmod.c: Likewise.
12867         * math/w_fmodf.c: Likewise.
12868         * math/w_fmodl.c: Likewise.
12869         * math/w_j0.c: Likewise.
12870         * math/w_j0f.c: Likewise.
12871         * math/w_j0l.c: Likewise.
12872         * math/w_j1.c: Likewise.
12873         * math/w_j1f.c: Likewise.
12874         * math/w_j1l.c: Likewise.
12875         * math/w_jn.c: Likewise.
12876         * math/w_jnf.c: Likewise.
12877         * math/w_log.c: Likewise.
12878         * math/w_logf.c: Likewise.
12879         * math/w_logl.c: Likewise.
12880         * math/w_log10.c: Likewise.
12881         * math/w_log10f.c: Likewise.
12882         * math/w_log10l.c: Likewise.
12883         * math/w_log2.c: Likewise.
12884         * math/w_log2f.c: Likewise.
12885         * math/w_log2l.c: Likewise.
12886         * math/w_pow.c: Likewise.
12887         * math/w_powf.c: Likewise.
12888         * math/w_powl.c: Likewise.
12889         * math/w_remainder.c: Likewise.
12890         * math/w_remainderf.c: Likewise.
12891         * math/w_remainderl.c: Likewise.
12892         * math/w_scalb.c: Likewise.
12893         * math/w_scalbf.c: Likewise.
12894         * math/w_scalbl.c: Likewise.
12895         * math/w_sqrt.c: Likewise.
12896         * math/w_sqrtf.c: Likewise.
12897         * math/w_sqrtl.c: Likewise.
12898         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
12899         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
12900         used.
12901         * math/math_private.h: Declare __kernel_standard_f.
12902         * math/w_cosh.c: Remove cruft and optimize a bit.
12903         * math/w_coshf.c: Likewise.
12904         * math/w_coshl.c: Likewise.
12905         * math/w_exp2.c: Likewise.
12906         * math/w_exp2f.c: Likewise.
12907         * math/w_exp2l.c: Likewise.
12908         * math/w_hypot.c: Likewise.
12909         * math/w_hypotf.c: Likewise.
12910         * math/w_hypotl.c: Likewise.
12911         * math/w_lgamma.c: Likewise.
12912         * math/w_lgamma_r.c: Likewise.
12913         * math/w_lgammaf.c: Likewise.
12914         * math/w_lgammaf_r.c: Likewise.
12915         * math/w_lgammal.c: Likewise.
12916         * math/w_lgammal_r.c: Likewise.
12917         * math/w_sinh.c: Likewise.
12918         * math/w_sinhf.c: Likewise.
12919         * math/w_sinhl.c: Likewise.
12920         * math/w_tgamma.c: Likewise.
12921         * math/w_tgammaf.c: Likewise.
12922         * math/w_tgammal.c: Likewise.
12923         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12924         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12925         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
12926         Minor optimizations.  Pretty printing.  Remove cruft.
12927         * sysdeps/i386/fpu/e_acosf.S: Likewise.
12928         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12929         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12930         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12931         * sysdeps/i386/fpu/e_acosl.c: Likewise.
12932         * sysdeps/i386/fpu/e_asin.S: Likewise.
12933         * sysdeps/i386/fpu/e_asinf.S: Likewise.
12934         * sysdeps/i386/fpu/e_atan2.S: Likewise.
12935         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
12936         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
12937         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12938         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12939         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12940         * sysdeps/i386/fpu/e_exp10.S: Likewise.
12941         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
12942         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
12943         * sysdeps/i386/fpu/e_exp2.S: Likewise.
12944         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
12945         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
12946         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12947         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
12948         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12949         * sysdeps/i386/fpu/e_hypot.S: Likewise.
12950         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
12951         * sysdeps/i386/fpu/e_log.S: Likewise.
12952         * sysdeps/i386/fpu/e_log10.S: Likewise.
12953         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12954         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12955         * sysdeps/i386/fpu/e_log2.S: Likewise.
12956         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12957         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12958         * sysdeps/i386/fpu/e_logf.S: Likewise.
12959         * sysdeps/i386/fpu/e_logl.S: Likewise.
12960         * sysdeps/i386/fpu/e_pow.S: Likewise.
12961         * sysdeps/i386/fpu/e_powf.S: Likewise.
12962         * sysdeps/i386/fpu/e_powl.S: Likewise.
12963         * sysdeps/i386/fpu/e_remainder.S: Likewise.
12964         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
12965         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
12966         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12967         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12968         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12969         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
12970         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
12971         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
12972         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12973         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12974         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12975         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12976         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12977         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12978         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12979         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12980         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12981         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12982         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12983         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12984         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12985         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12986         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12987         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12988         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12989         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12990         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12991         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12992         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12993         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12994         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12995         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12996         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12997         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12998         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12999         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
13000         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13001         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
13002         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13003         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13004         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13005         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13006         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
13007         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
13008         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
13009         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
13010         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
13011         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13012         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
13013         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13014         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
13015         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
13016         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13017         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
13018         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13019         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
13020         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
13021         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13022         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13023         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
13024         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13025         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13026         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
13027         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
13028         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
13029         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
13030         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13031         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
13032         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13033         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
13034         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13035         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13036         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
13037         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13038         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
13039         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
13040         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13041         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13042         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
13043         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
13044         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
13045         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13046         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
13047         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13048         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
13049         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13050         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13051         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13052         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13053         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13054         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13055         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13056         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13057         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13058         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13059         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13060         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13061         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13062         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13063         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13064         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13065         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13066         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13067         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13068         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13069         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
13070         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
13071         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
13072         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
13073         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
13074         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
13075         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
13076         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13077         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13078         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13079         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13080         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
13081         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13082         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
13083         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
13084         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
13085         (__isnanf): Likewise.
13086         (__isinf_ns): Likewise.
13087         (__isinf_nsf): Likewise.
13088         (__finite): Likewise.
13089         (__finitef): Likewise.
13090         (__ieee754_sqrt): Define as macro.
13091         (__ieee754_sqrtf): Define as macro.
13092         (__ieee754_sqrtl): Define as macro.
13093         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
13094         inlined copy.
13095         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
13096         __FINITE_MATH_ONLY__ consistent.
13097         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
13098
13099 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
13100
13101         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
13102         of rawmemchr.
13103
13104         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
13105
13106 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
13107
13108         * po/ja.po: Update from translation team.
13109
13110 2011-10-08  Roland McGrath  <roland@hack.frob.com>
13111
13112         * locale/programs/locarchive.c (prepare_address_space): New function.
13113         (create_archive, enlarge_archive, open_archive): Use it.
13114
13115         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
13116         inside [SHARED], where it is used.
13117
13118         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
13119
13120         * nss/getent.c (netgroup_keys): Remove unused variable.
13121         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
13122
13123 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
13124
13125         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
13126         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
13127         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
13128         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
13129         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
13130         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
13131         * math/Makefile (libm-calls): Add s_isinf_ns.
13132         * math/divtc3.c: Use __isinf_nsl instead of isinf.
13133         * math/multc3.c: Likewise.
13134         * math/s_casin.c: Likewise.
13135         * math/s_casinf.c: Likewise.
13136         * math/s_casinl.c: Likewise.
13137         * math/s_ccos.c: Likewise.
13138         * math/s_ccosf.c: Likewise.
13139         * math/s_ccosl.c: Likewise.
13140         * math/s_ctan.c: Likewise.
13141         * math/s_ctanf.c: Likewise.
13142         * math/s_ctanh.c: Likewise.
13143         * math/s_ctanhf.c: Likewise.
13144         * math/s_ctanhl.c: Likewise.
13145         * math/s_ctanl.c: Likewise.
13146         * math/w_fmod.c: Likewise.
13147         * math/w_fmodf.c: Likewise.
13148         * math/w_fmodl.c: Likewise.
13149         * math/w_remainder.c: Likewise.
13150         * math/w_remainderf.c: Likewise.
13151         * math/w_remainderl.c: Likewise.
13152         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
13153         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
13154         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
13155         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
13156         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
13157         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
13158         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
13159         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
13160
13161         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
13162         of the number.
13163         * stdio-common/printf_fphex.c: Likewise.
13164         * stdio-common/printf_size.c: Likewise.
13165
13166         * math/e_exp10.c: Include math_private.h using <...> not "...".
13167         * math/e_exp10f.c: Likewise.
13168         * math/e_exp10l.c: Likewise.
13169         * math/e_exp2l.c: Likewise.
13170         * math/e_j0l.c: Likewise.
13171         * math/e_j1l.c: Likewise.
13172         * math/e_jnl.c: Likewise.
13173         * math/e_lgammal_r.c: Likewise.
13174         * math/e_rem_pio2l.c: Likewise.
13175         * math/e_scalb.c: Likewise.
13176         * math/e_scalbf.c: Likewise.
13177         * math/e_scalbl.c: Likewise.
13178         * math/k_cosl.c: Likewise.
13179         * math/k_sinl.c: Likewise.
13180         * math/k_tanl.c: Likewise.
13181         * math/s_cacoshf.c: Likewise.
13182         * math/s_catan.c: Likewise.
13183         * math/s_catanf.c: Likewise.
13184         * math/s_catanh.c: Likewise.
13185         * math/s_catanhf.c: Likewise.
13186         * math/s_catanhl.c: Likewise.
13187         * math/s_catanl.c: Likewise.
13188         * math/s_ccosh.c: Likewise.
13189         * math/s_ccoshf.c: Likewise.
13190         * math/s_ccoshl.c: Likewise.
13191         * math/s_cexp.c: Likewise.
13192         * math/s_cexpf.c: Likewise.
13193         * math/s_cexpl.c: Likewise.
13194         * math/s_clog.c: Likewise.
13195         * math/s_clog10.c: Likewise.
13196         * math/s_clog10f.c: Likewise.
13197         * math/s_clog10l.c: Likewise.
13198         * math/s_clogf.c: Likewise.
13199         * math/s_clogl.c: Likewise.
13200         * math/s_csin.c: Likewise.
13201         * math/s_csinf.c: Likewise.
13202         * math/s_csinh.c: Likewise.
13203         * math/s_csinhf.c: Likewise.
13204         * math/s_csinhl.c: Likewise.
13205         * math/s_csinl.c: Likewise.
13206         * math/s_csqrt.c: Likewise.
13207         * math/s_csqrtf.c: Likewise.
13208         * math/s_csqrtl.c: Likewise.
13209         * math/s_ctan.c: Likewise.
13210         * math/s_ctanf.c: Likewise.
13211         * math/s_ctanh.c: Likewise.
13212         * math/s_ctanhf.c: Likewise.
13213         * math/s_ctanhl.c: Likewise.
13214         * math/s_ctanl.c: Likewise.
13215         * math/s_ldexp.c: Likewise.
13216         * math/s_ldexpf.c: Likewise.
13217         * math/s_ldexpl.c: Likewise.
13218         * math/s_significand.c: Likewise.
13219         * math/s_significandf.c: Likewise.
13220         * math/s_significandl.c: Likewise.
13221         * math/w_acos.c: Likewise.
13222         * math/w_acosf.c: Likewise.
13223         * math/w_acosh.c: Likewise.
13224         * math/w_acoshf.c: Likewise.
13225         * math/w_acoshl.c: Likewise.
13226         * math/w_acosl.c: Likewise.
13227         * math/w_asin.c: Likewise.
13228         * math/w_asinf.c: Likewise.
13229         * math/w_asinl.c: Likewise.
13230         * math/w_atan2.c: Likewise.
13231         * math/w_atan2f.c: Likewise.
13232         * math/w_atan2l.c: Likewise.
13233         * math/w_atanh.c: Likewise.
13234         * math/w_atanhf.c: Likewise.
13235         * math/w_atanhl.c: Likewise.
13236         * math/w_cosh.c: Likewise.
13237         * math/w_coshf.c: Likewise.
13238         * math/w_coshl.c: Likewise.
13239         * math/w_dremf.c: Likewise.
13240         * math/w_exp10.c: Likewise.
13241         * math/w_exp10f.c: Likewise.
13242         * math/w_exp10l.c: Likewise.
13243         * math/w_exp2.c: Likewise.
13244         * math/w_exp2f.c: Likewise.
13245         * math/w_fmod.c: Likewise.
13246         * math/w_fmodf.c: Likewise.
13247         * math/w_fmodl.c: Likewise.
13248         * math/w_hypot.c: Likewise.
13249         * math/w_hypotf.c: Likewise.
13250         * math/w_hypotl.c: Likewise.
13251         * math/w_j0.c: Likewise.
13252         * math/w_j0f.c: Likewise.
13253         * math/w_j0l.c: Likewise.
13254         * math/w_j1.c: Likewise.
13255         * math/w_j1f.c: Likewise.
13256         * math/w_j1l.c: Likewise.
13257         * math/w_jn.c: Likewise.
13258         * math/w_jnf.c: Likewise.
13259         * math/w_jnl.c: Likewise.
13260         * math/w_lgamma.c: Likewise.
13261         * math/w_lgamma_r.c: Likewise.
13262         * math/w_lgammaf.c: Likewise.
13263         * math/w_lgammaf_r.c: Likewise.
13264         * math/w_lgammal.c: Likewise.
13265         * math/w_lgammal_r.c: Likewise.
13266         * math/w_log.c: Likewise.
13267         * math/w_log10.c: Likewise.
13268         * math/w_log10f.c: Likewise.
13269         * math/w_log10l.c: Likewise.
13270         * math/w_log2.c: Likewise.
13271         * math/w_log2f.c: Likewise.
13272         * math/w_log2l.c: Likewise.
13273         * math/w_logf.c: Likewise.
13274         * math/w_logl.c: Likewise.
13275         * math/w_pow.c: Likewise.
13276         * math/w_powf.c: Likewise.
13277         * math/w_powl.c: Likewise.
13278         * math/w_remainder.c: Likewise.
13279         * math/w_remainderf.c: Likewise.
13280         * math/w_remainderl.c: Likewise.
13281         * math/w_scalb.c: Likewise.
13282         * math/w_scalbf.c: Likewise.
13283         * math/w_scalbl.c: Likewise.
13284         * math/w_sinh.c: Likewise.
13285         * math/w_sinhf.c: Likewise.
13286         * math/w_sinhl.c: Likewise.
13287         * math/w_sqrt.c: Likewise.
13288         * math/w_sqrtf.c: Likewise.
13289         * math/w_sqrtl.c: Likewise.
13290         * math/w_tgamma.c: Likewise.
13291         * math/w_tgammaf.c: Likewise.
13292         * math/w_tgammal.c: Likewise.
13293
13294         * po/ja.po: Update from translation team.
13295
13296 2011-09-29  Andreas Jaeger  <aj@suse.de>
13297
13298         [BZ #13179]
13299         * sunrpc/netname.c (netname2host): Fix logic.
13300
13301         [BZ #6779]
13302         [BZ #6783]
13303         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
13304         correctly.
13305         * math/w_remainder.c (__remainder): Likewise.
13306         * math/w_remainderf.c (__remainderf): Likewise.
13307         * math/libm-test.inc (remainder_test): Add test cases.
13308
13309 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13310
13311         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
13312         sdiv_qrnnd.
13313
13314 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
13315
13316         * string/test-memcmp.c: Avoid unncessary #defines.
13317         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13318
13319 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13320
13321         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
13322         Use new sse2 version for core i3 - i7 as it's faster
13323         than sse42 version.
13324         (bit_Prefer_PMINUB_for_stringop): New.
13325         * sysdeps/x86_64/rawmemchr.S: Update.
13326         Replace with faster SSE2 version.
13327         * sysdeps/x86_64/memrchr.S: New file.
13328         * sysdeps/x86_64/memchr.S: Update.
13329         Replace with faster SSE2 version.
13330
13331 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
13332
13333         * elf/dl-load.c (lose): Add cast to avoid warning.
13334
13335 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
13336
13337         * po/ca.po: Update from translation team.
13338
13339         * inet/getnetgrent_r.c: Hook up nscd.
13340         * nscd/Makefile (routines): Add nscd_netgroup.
13341         (nscd-modules): Add netgroupcache.
13342         (CFLAGS-netgroupcache.c): Define.
13343         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
13344         (cache_search): Add const to second parameter.
13345         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
13346         INNETGR.
13347         (dbs): Add netgrdb entry.
13348         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
13349         (verify_persistent_db): Handle netgrdb.
13350         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
13351         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
13352         GETFDNETGR.
13353         (netgroup_response_header): Define.
13354         (innetgroup_response_header): Define.
13355         (datahead): Add netgroup_response_header and innetgroup_response_header
13356         elements.
13357         * nscd/nscd.conf: Add entries for netgroup cache.
13358         * nscd/nscd.h (dbtype): Add netgrdb.
13359         (_PATH_NSCD_NETGROUP_DB): Define.
13360         (netgroup_iov_disabled): Declare.
13361         (xmalloc, xcalloc, xrealloc): Move declarations here.
13362         (cache_search): Adjust prototype.
13363         Add netgroup-related prototypes.
13364         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
13365         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
13366         (__nscd_innetgr): Declare.
13367         * nscd/selinux.c (perms): Use access_vector_t as element type and
13368         add netgroup-related initializers.
13369         * nscd/netgroupcache.c: New file.
13370         * nscd/nscd_netgroup.c: New file.
13371         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
13372         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
13373         For four parameters use innetgr.
13374         * nss/nss_files/files-init.c: Add definition and callback for netgr.
13375         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
13376         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
13377         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
13378
13379         * nscd/connections.c (register_traced_file): Don't register file
13380         for disabled databases.
13381
13382 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
13383
13384         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
13385
13386         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
13387         from tree and freeing node.
13388
13389 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
13390
13391         * nss/nsswitch.c (__nss_database_lookup): Handle
13392         nss_parse_service_list out of memory case.
13393
13394 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
13395
13396         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
13397         out of memory case.
13398
13399 2011-10-04  Andreas Schwab  <schwab@redhat.com>
13400
13401         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
13402         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
13403         pass it down.
13404         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
13405         elf_machine_rela, elf_machine_lazy_rel.
13406         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
13407         (ELF_DYNAMIC_DO_REL): Likewise.
13408         (ELF_DYNAMIC_DO_RELA): Likewise.
13409         (ELF_DYNAMIC_RELOCATE): Likewise.
13410         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
13411         to ELF_DYNAMIC_DO_REL.
13412         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
13413         (dl_main): In trace mode always set __RTLD_NOIFUNC.
13414         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
13415         elf_machine_rela.
13416         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
13417         skip_ifunc, don't call ifunc function if non-zero.
13418         (elf_machine_rela): Likewise.
13419         (elf_machine_lazy_rel): Likewise.
13420         (elf_machine_lazy_rela): Likewise.
13421         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13422         (elf_machine_lazy_rel): Likewise.
13423         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13424         Likewise.
13425         (elf_machine_lazy_rel): Likewise.
13426         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13427         Likewise.
13428         (elf_machine_lazy_rel): Likewise.
13429         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
13430         (elf_machine_lazy_rel): Likewise.
13431         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
13432         (elf_machine_lazy_rel): Likewise.
13433         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13434         (elf_machine_lazy_rel): Likewise.
13435         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
13436         (elf_machine_lazy_rel): Likewise.
13437         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
13438         (elf_machine_lazy_rel): Likewise.
13439         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13440         (elf_machine_lazy_rel): Likewise.
13441
13442 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
13443
13444         * nss/nss_files/files-init.c (_nss_files_init): Use static
13445         initialization for all the *_traced_file variables.
13446
13447 2011-09-28  Andreas Schwab  <schwab@redhat.com>
13448
13449         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13450
13451 2011-09-27  Roland McGrath  <roland@hack.frob.com>
13452
13453         [BZ #13226]
13454         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
13455
13456 2011-09-27  Andreas Schwab  <schwab@redhat.com>
13457
13458         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13459         Reread the line before reparsing it.
13460
13461 2011-09-26  Andreas Schwab  <schwab@redhat.com>
13462
13463         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
13464
13465 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
13466             Maxim Kuvyrkov  <maxim@codesourcery.com>
13467             Joseph Myers  <joseph@codesourcery.com>
13468
13469         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
13470         if needed for __stack_chk_guard.
13471
13472 2011-09-19  Roland McGrath  <roland@hack.frob.com>
13473
13474         * sysdeps/posix/spawni.c (script_execute): Always define it.
13475         It will be optimized away if unused.
13476         (maybe_script_execute): New function.
13477         (__spawni): Call it.
13478
13479         * Makerules: Don't include tls.make.
13480         (config-tls): Always set to thread.
13481         * tls.make.c: File removed.
13482
13483 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
13484
13485         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
13486         * config.make.in (CPPFLAGS-config): New substituted variable.
13487
13488 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
13489
13490         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
13491
13492         [BZ #13192]
13493         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
13494         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
13495
13496 2011-09-15  Roland McGrath  <roland@hack.frob.com>
13497
13498         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
13499         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
13500         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
13501         (CALL_FAIL): Likewise.
13502         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
13503         (CALL_FAIL): Macro removed.
13504         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
13505
13506 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
13507
13508         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
13509         for __FINITE_MATH_ONLY__ == 1.
13510
13511 2011-09-15  Andreas Schwab  <schwab@redhat.com>
13512
13513         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
13514         __ieee754_sqrt instead of sqrt.
13515         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
13516         __ieee754_sqrtf instead of sqrtf.
13517         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
13518         __floorf instead of floorf.
13519         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
13520         __floorf, __truncf instead of floorf, truncf.
13521
13522 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
13523
13524         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
13525
13526         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
13527         __extern_always_inline.
13528         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
13529         32-bit.
13530
13531 2011-09-14  Andreas Schwab  <schwab@redhat.com>
13532
13533         * elf/rtld.c (dl_main): Also relocate in dependency order when
13534         doing symbol dependency testing.
13535
13536 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
13537
13538         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13539         Always define `refsym'.
13540
13541 2011-09-13  Andreas Schwab  <schwab@redhat.com>
13542
13543         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
13544         (__FD_ELT): Renamed from __FDELT.
13545         * misc/bits/select2.h (__FD_ELT): Likewise.
13546         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
13547         __FD_MASK instead of __FDELT, __FDMASK.
13548         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13549         Likewise.
13550         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13551         Likewise.
13552
13553         * elf/Makefile (gen-ldd): Fix pattern.
13554
13555         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
13556         (init_tls): Likewise.
13557
13558 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
13559
13560         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
13561
13562 2011-09-12  Andreas Schwab  <schwab@redhat.com>
13563
13564         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
13565         `struct cmsghdr *' instead of `void *'.
13566         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
13567         Likewise.
13568
13569 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
13570
13571         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
13572         if non-absolute.
13573         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
13574         ldd_rewrite_script.
13575
13576 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
13577
13578         * configure.in: Remove --with-tls option.
13579         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
13580         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
13581         out in case it is missing.
13582         * sysdeps/ia64/elf/configure.in: Likewise.
13583         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
13584         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
13585         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
13586         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
13587         * sysdeps/sh/elf/configure.in: Likewise.
13588         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
13589         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13590         * sysdeps/x86_64/elf/configure.in: Likewise.
13591         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
13592         * sysdeps/mach/hurd/tls.h: Likewise.
13593
13594         [BZ #13067]
13595         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
13596
13597         [BZ #13090]
13598         * configure.in: Fix use of AC_INIT.
13599
13600         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
13601
13602 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
13603
13604         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
13605         __set_errno.
13606         * malloc/hooks.c: Likewise.
13607
13608         [BZ #11929]
13609         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
13610         variables statically.
13611         (narenas): Initialize.
13612         (list_lock): Initialize.
13613         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
13614         initializtion of main_arena and list_lock.  Small cleanups.
13615         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
13616         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
13617         Add initializers to main_arena and mp_.
13618         (malloc_state): Remove pagesize member.  Change all users to use
13619         GLRO(dl_pagesize).
13620
13621         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
13622         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
13623         is always initialized.
13624
13625         * malloc/malloc.c: Removed unused configurations and dead code.
13626         * malloc/arena.c: Likewise.
13627         * malloc/hooks.c: Likewise.
13628         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
13629
13630         * include/tls.h: Removed.  USE___THREAD must always be defined.
13631         * bits/libc-tsd.h: Don't handle !USE___THREAD.
13632         * elf/dl-libc.c: Likewise.
13633         * elf/dl-tsd.c: Likewise.
13634         * include/errno.h: Likewise.
13635         * include/netdb.h: Likewise.
13636         * include/resolv.h: Likewise.
13637         * inet/herrno-loc.c: Likewise.
13638         * inet/herrno.c: Likewise.
13639         * malloc/arena.c: Likewise.
13640         * malloc/hooks.c: Likewise.
13641         * malloc/malloc.c: Likewise.
13642         * resolv/res-state.c: Likewise.
13643         * resolv/res_libc.c: Likewise.
13644         * sysdeps/i386/dl-machine.h: Likewise.
13645         * sysdeps/ia64/dl-machine.h: Likewise.
13646         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13647         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13648         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13649         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13650         * sysdeps/sh/dl-machine.h: Likewise.
13651         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13652         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13653         * sysdeps/unix/i386/sysdep.S: Likewise.
13654         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
13655         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
13656         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
13657         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13658         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
13659         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13660         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
13661         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13662         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13663         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
13664         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13665         * sysdeps/x86_64/dl-machine.h: Likewise.
13666         * tls.make.c: Likewise.
13667
13668         * configure.in: Remove --with-__thread option.  Make tests for
13669         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
13670         tls_model attribute fail if no support is available.  Remove
13671         USE_IN_LIBIO.
13672         * Makeconfig: Adjust for dropped configure option.  All features are
13673         now mandatory.
13674         * Makerules: Likewise.
13675         * Versions.def: Likewise.
13676         * argp/argp-fmtstream.c: Likewise.
13677         * argp/argp-fmtstream.h: Likewise.
13678         * argp/argp-help.c: Likewise.
13679         * assert/assert.c: Likewise.
13680         * config.h.in: Likewise.
13681         * config.make.in: Likewise.
13682         * configure: Likewise.
13683         * configure.in: Likewise.
13684         * csu/Versions: Likewise.
13685         * csu/init.c: Likewise.
13686         * elf/tst-audit2.c: Likewise.
13687         * elf/tst-tls10.c: Likewise.
13688         * elf/tst-tls10.h: Likewise.
13689         * elf/tst-tls11.c: Likewise.
13690         * elf/tst-tls12.c: Likewise.
13691         * elf/tst-tls14.c: Likewise.
13692         * elf/tst-tlsmod11.c: Likewise.
13693         * elf/tst-tlsmod12.c: Likewise.
13694         * elf/tst-tlsmod13.c: Likewise.
13695         * elf/tst-tlsmod13a.c: Likewise.
13696         * elf/tst-tlsmod14a.c: Likewise.
13697         * elf/tst-tlsmod15b.c: Likewise.
13698         * elf/tst-tlsmod16a.c: Likewise.
13699         * elf/tst-tlsmod16b.c: Likewise.
13700         * elf/tst-tlsmod7.c: Likewise.
13701         * elf/tst-tlsmod8.c: Likewise.
13702         * elf/tst-tlsmod9.c: Likewise.
13703         * gmon/gmon.c: Likewise.
13704         * grp/fgetgrent_r.c: Likewise.
13705         * grp/putgrent.c: Likewise.
13706         * hurd/fopenport.c: Likewise.
13707         * include/libc-symbols.h: Likewise.
13708         * include/tls.h: Likewise.
13709         * intl/gettextP.h: Likewise.
13710         * intl/loadinfo.h: Likewise.
13711         * locale/global-locale.c: Likewise.
13712         * locale/localeinfo.h: Likewise.
13713         * mach/devstream.c: Likewise.
13714         * malloc/arena.c: Likewise.
13715         * malloc/set-freeres.c: Likewise.
13716         * misc/err.c: Likewise.
13717         * misc/getttyent.c: Likewise.
13718         * misc/mntent_r.c: Likewise.
13719         * posix/getopt.c: Likewise.
13720         * posix/wordexp.c: Likewise.
13721         * pwd/fgetpwent_r.c: Likewise.
13722         * resolv/Versions: Likewise.
13723         * resolv/res_hconf.c: Likewise.
13724         * shadow/fgetspent_r.c: Likewise.
13725         * shadow/putspent.c: Likewise.
13726         * stdio-common/printf_fphex.c: Likewise.
13727         * stdio-common/tmpfile.c: Likewise.
13728         * stdlib/abort.c: Likewise.
13729         * stdlib/fmtmsg.c: Likewise.
13730         * sunrpc/auth_unix.c: Likewise.
13731         * sunrpc/clnt_perr.c: Likewise.
13732         * sunrpc/clnt_tcp.c: Likewise.
13733         * sunrpc/clnt_udp.c: Likewise.
13734         * sunrpc/clnt_unix.c: Likewise.
13735         * sunrpc/openchild.c: Likewise.
13736         * sunrpc/svc_simple.c: Likewise.
13737         * sunrpc/svc_tcp.c: Likewise.
13738         * sunrpc/svc_udp.c: Likewise.
13739         * sunrpc/svc_unix.c: Likewise.
13740         * sunrpc/xdr.c: Likewise.
13741         * sunrpc/xdr_array.c: Likewise.
13742         * sunrpc/xdr_rec.c: Likewise.
13743         * sunrpc/xdr_ref.c: Likewise.
13744         * sunrpc/xdr_stdio.c: Likewise.
13745
13746 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13747
13748         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13749
13750 2011-07-03  Andreas Jaeger  <aj@suse.de>
13751
13752         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
13753         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
13754         regenerate with gen-libm-tests.pl.
13755
13756 2010-05-12  Petr Baudis  <pasky@suse.cz>
13757
13758         [BZ #11589]
13759         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
13760         around j0() zero points by switching to j1().
13761         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13762         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13763         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13764         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13765
13766 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13767
13768         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
13769         instead of 0.
13770         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
13771         instead of 0.                              .
13772         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13773         Patch in part by Pavel Roskin <proski@gnu.org>.
13774
13775         [BZ #13138]
13776         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
13777         realloc.
13778         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
13779         Free memory block if necessary.
13780
13781         [BZ #12847]
13782         * libio/genops.c (INTDEF): For string streams the _lock pointer can
13783         be NULL.  Don't lock in this case.
13784
13785 2011-09-09  Roland McGrath  <roland@hack.frob.com>
13786
13787         * elf/elf.h (ELFOSABI_GNU): New macro.
13788         (ELFOSABI_LINUX): Define to that.
13789
13790 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
13791
13792         * string/strncat.c (strncat): Undef the symbol in case it has been
13793         defined in bits/string.h.
13794
13795 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
13796
13797         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
13798
13799         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
13800         link map.
13801
13802 2011-08-17  Andreas Jaeger  <aj@suse.de>
13803
13804         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
13805
13806 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
13807             Ian Lance Taylor  <iant@google.com>
13808
13809         * math/libm-test.inc (lround_test): New testcase.
13810         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
13811
13812 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
13813
13814         * Makefile: Remove support for automatic cvs check-ins.
13815         * Makerules: Likewise.
13816         * config.make.in: Likewise.
13817         * configure.in: Likewise.
13818         * intl/Makefile: Likewise.
13819         * locale/Makefile: Likewise.
13820         * po/Makefile: Likewise.
13821         * posix/Makefile: Likewise.
13822         * sysdeps/gnu/Makefile: Likewise.
13823         * sysdeps/mach/hurd/Makefile: Likewise.
13824         * sysdeps/sparc/sparc32/Makefile: Likewise.
13825
13826         [BZ #13118]
13827         * posix/Makefile (bug-regex32-ENV): Define.
13828         Patch by John Stanley <jpsinthemix@verizon.net>.
13829
13830         * misc/Makefile (headers): Add bits/select2.h.
13831         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
13832         * misc/bits/select2.h: New file.
13833         * include/bits/select2.h: New file.
13834         * debug/Makefile (routines): Add fdelt_chk.
13835         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
13836         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
13837         FD_ISSET.
13838         * debug/fdelt_chk.c: New file.
13839
13840         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
13841         * wcsmbs/test-wmemcmp.c: Likewise.
13842         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
13843         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
13844
13845 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13846
13847         * string/Makefile (strop-tests): Add memcmp.
13848         * string/test-wmemcmp.c: New file.
13849         * string/test-memcmp.c: Add wmemcmp support.
13850
13851 2011-09-08  Roland McGrath  <roland@hack.frob.com>
13852
13853         [BZ #13153]
13854         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
13855         2011-07-19 change.
13856
13857         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
13858         garbage value in a __mach_port_mod_refs call in the cases of the
13859         task-self and thread-self ports.
13860
13861 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13862
13863         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
13864
13865 2011-09-08  Andreas Schwab  <schwab@redhat.com>
13866
13867         * elf/dl-load.c (lose): Check for non-null L.
13868
13869 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
13870
13871         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
13872
13873         * elf/dl-libc.c (dlerror_run): Pass back error code from
13874         dl_catch_error.
13875
13876         [BZ #13123]
13877         * elf/dl-load.c (lose): Free l_origin if it is valid.
13878
13879         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
13880         names.
13881         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
13882         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
13883         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
13884         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
13885         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
13886         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
13887
13888 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13889
13890         * sysdeps/powerpc/fpu/e_hypot.c: New file.
13891         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
13892         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
13893         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
13894         * sysdeps/powerpc/fpu/k_cosf.c: New file.
13895         * sysdeps/powerpc/fpu/k_sinf.c: New file.
13896         * sysdeps/powerpc/fpu/s_cosf.c: New file.
13897         * sysdeps/powerpc/fpu/s_sinf.c: New file.
13898         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
13899         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
13900
13901 2011-08-15  Alan Modra  <amodra@gmail.com>
13902
13903         [BZ #13092]
13904         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
13905         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
13906         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
13907         ppc_mcount to static-only-routines.
13908         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
13909         __mcount_internal.
13910         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
13911         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
13912
13913 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
13914
13915         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
13916         for finite and infinity parameters.
13917
13918 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13919
13920         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
13921         and add nop instructions for throughput optimization.
13922         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13923
13924 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
13925
13926         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
13927         aligned copy for power7 with vector-scalar instructions.
13928         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13929
13930 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
13931
13932         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
13933         AVX check.
13934
13935 2011-09-07  Andreas Schwab  <schwab@redhat.com>
13936
13937         [BZ #13144]
13938         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
13939         last change.
13940
13941 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
13942
13943         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13944         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
13945         syscall wrapper around clock_gettime in __vdso_clock_gettime.
13946         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
13947         clock_gettime.
13948
13949 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
13950
13951         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
13952         Forgot to demangle the pointer.
13953
13954         * sysdeps/i386/sysdep.h: Define atom_text_section.
13955         * sysdeps/x86_64/sysdep.h: Likewise.
13956         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
13957         section with atom_text_section.
13958         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
13959         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
13960         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
13961         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
13962         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
13963
13964         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
13965         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
13966         already be defined.  Change to take two parameters and don't assign
13967         result to variable.  Adjust all users.
13968         Define INTERNAL_GETTIME if not already defined.
13969         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
13970         call.
13971         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
13972         HAVE_CLOCK_GETTIME_VSYSCALL.
13973         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
13974
13975         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
13976         gettimeofday vsyscall, just use time.
13977
13978 2011-09-06  Andreas Schwab  <schwab@redhat.com>
13979
13980         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
13981         <errno.h>.
13982
13983 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
13984
13985         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
13986         syscall on x86-64.
13987         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
13988         syscall.
13989         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
13990         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
13991         syscall if possible.
13992
13993 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
13994
13995         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
13996         e_ident.  Don't pass to find_mapsXX.
13997         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
13998
13999 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14000
14001         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14002         strchr-sse2-no-bsf strrchr-sse2-no-bsf
14003         * sysdeps/x86_64/multiarch/strchr.S: Update.
14004         Check bit_slow_BSF bit.
14005         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14006         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
14007         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
14008
14009 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14010
14011         [BZ #13134]
14012         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
14013         before glibc 2.15.
14014         (tryshell): Define.
14015         (__spawni): Change last parameter to be flag.  Test
14016         SPAWN_XFLAGS_USE_PATH flag to use path or not.
14017         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
14018         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
14019         * posix/spawni.c: Likewise.
14020         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
14021         * posix/spawnp.c: Likewise.  Change normal version to use
14022         SPAWN_XFLAGS_USE_PATH.
14023         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
14024         SPAWN_XFLAGS_TRY_SHELL.
14025
14026         [BZ #13150]
14027         * posix/glob.h: Remove gcc 1.x support.
14028
14029         [BZ #13068]
14030         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
14031
14032 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14033
14034         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14035         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
14036         strrchr-sse2-bsf
14037         * sysdeps/i386/i686/multiarch/strchr.S: New file.
14038         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
14039         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
14040         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
14041         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
14042         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
14043
14044 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14045
14046         * sysdeps/x86_64/wcscmp.S: New file.
14047
14048         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
14049         wcscmp-c wcscmp-sse2
14050         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
14051         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
14052         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
14053         * wcsmbs/wcscmp.c: Allow renaming.
14054
14055 2011-09-05  David S. Miller  <davem@davemloft.net>
14056
14057         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
14058         stack slot, rather than the struct return pointer slot.
14059         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
14060         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
14061         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
14062         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
14063
14064 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14065
14066         * po/ja.po: Update from translation team.
14067
14068         [BZ #13144]
14069         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
14070         kernel in 64-bit binaries.
14071
14072 2011-09-01  David S. Miller  <davem@davemloft.net>
14073
14074         * elf/elf.h (HWCAP_SPARC_*): Move to..
14075         * sysdeps/sparc/sysdep.h: this new file and add new values.
14076         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
14077         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
14078         _DL_HWCAP_COUNT to 24.
14079         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
14080         entries.
14081         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
14082         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
14083         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
14084         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
14085         instead of magic constants.
14086         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14087
14088 2011-08-31  David S. Miller  <davem@davemloft.net>
14089
14090         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
14091         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
14092         Reimplement to do errno handling inline.
14093         (SYSCALL_ERROR_HANDLER): New macro.
14094         (__SYSCALL_STRING): Do not do errno handling in asm.
14095         (__CLONE_SYSCALL_STRING): Delete.
14096         (__INTERNAL_SYSCALL_STRING): Delete.
14097         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
14098         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
14099         (PSEUDO): Reimplement to do errno handling inline.
14100         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
14101         (SYSCALL_ERROR_HANDLER): New macro.
14102         (__SYSCALL_STRING): Do not do errno handling in asm.
14103         (__CLONE_SYSCALL_STRING): Delete.
14104         (__INTERNAL_SYSCALL_STRING): Delete.
14105         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
14106         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
14107         i386.
14108         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
14109         (inline_syscall*): Add 'err' argument.
14110         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
14111         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
14112         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
14113         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
14114
14115         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
14116         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
14117
14118 2011-08-30  Andreas Schwab  <schwab@redhat.com>
14119
14120         * elf/rtld.c (dl_main): Relocate objects in dependency order.
14121
14122 2011-08-29  Jiri Olsa <jolsa@redhat.com>
14123
14124         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
14125         directive.
14126
14127 2011-08-24  David S. Miller  <davem@davemloft.net>
14128
14129         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
14130
14131 2011-08-24  Andreas Schwab  <schwab@redhat.com>
14132
14133         * elf/Makefile: Add rules to build and run unload8 test.
14134         * elf/unload8.c: New file.
14135         * elf/unload8mod1.c: New file.
14136         * elf/unload8mod1x.c: New file.
14137         * elf/unload8mod2.c: New file.
14138         * elf/unload8mod3.c: New file.
14139
14140         * elf/dl-close.c (_dl_close_worker): Reset private search list if
14141         it wasn't used.
14142
14143 2011-08-23  David S. Miller  <davem@davemloft.net>
14144
14145         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
14146         subtract stack bias.
14147         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
14148         %sp not %fp in calculations.
14149         (_JMPBUF_UNWINDS_ADJ): Likewise.
14150
14151         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
14152         (aio_suspend): Call it to force an exception region around the
14153         AIO_MISC_WAIT() invocation.
14154
14155 2011-08-23  Andreas Schwab  <schwab@redhat.com>
14156
14157         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
14158         backslash.
14159
14160 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
14161
14162         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
14163         protection macro.
14164         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
14165         and <dl-machine.h>.
14166         (Elf64_FuncDesc): Remove.
14167
14168 2011-08-22  David S. Miller  <davem@davemloft.net>
14169
14170         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
14171         sigaltstack check, add missing cfi directives.
14172         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
14173         missing cfi directives, and sigaltstack handling.
14174
14175 2011-08-16  Andreas Schwab  <schwab@redhat.com>
14176
14177         [BZ #11724]
14178         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
14179         object is seen twice.
14180         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14181
14182         * elf/Makefile (distribute): Add tst-initorder2.c.
14183         (tests): Add tst-initorder2.
14184         (modules-names): Add tst-initorder2a tst-initorder2b
14185         tst-initorder2c tst-initorder2d.  Add rules to build them.
14186         ($(objpfx)tst-initorder2.out): New rule.
14187         * elf/tst-initorder2.c: New file.
14188         * elf/tst-initorder2.exp: New file.
14189
14190 2011-08-22  Andreas Schwab  <schwab@redhat.com>
14191
14192         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
14193
14194         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
14195         dependencies back to end of function.
14196
14197         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14198         $(elfobjdir)/ld.so.
14199
14200 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
14201
14202         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
14203         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
14204         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
14205         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
14206         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
14207         of __vdso_gettimeofday.
14208         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
14209         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
14210         attribute_hidden.
14211         (_libc_vdso_platform_setup): Remove initialization of
14212         __vdso_gettimeofday and __vdso_time.
14213
14214 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
14215
14216         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
14217         and fgetc_unlocked.
14218         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
14219         getc_unlocked.
14220
14221         * elf/dl-open.c (add_to_global): Report additions to the global scope
14222         for LD_DEBUG=scopes.
14223         (dl_open_worker): Also print scope of newly loaded dependencies.
14224         (_dl_show_scope): Indicate if there is no scope.
14225
14226         [BZ #13114]
14227         * stdio-common/Makefile (tests): Add bug24.
14228         * stdio-common/bug24.c: New file.
14229
14230 2011-08-19  Andreas Jaeger  <aj@suse.de>
14231
14232         [BZ #13114]
14233         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
14234         non-existant file when using close-on-exec mode.
14235
14236 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
14237
14238         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
14239         the very first instruction.
14240
14241         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
14242         the CFI state in the end.
14243         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
14244         inclusion of dl-trampoline.h.
14245         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
14246
14247 2011-08-19  Andreas Schwab  <schwab@redhat.com>
14248
14249         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
14250         expectations for long double.
14251
14252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
14253         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
14254
14255 2011-08-14  David S. Miller  <davem@davemloft.net>
14256
14257         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
14258         artificual limit depends upon the system page size.
14259
14260 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
14261
14262         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
14263         * resolv/Makefile: Define CFLAGS-libresolv.
14264
14265 2011-08-17  Andreas Schwab  <schwab@redhat.com>
14266
14267         * nss/makedb.c (compute_tables): Make variables used in nested
14268         function static.
14269
14270 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
14271
14272         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
14273         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
14274         if buffer was too small.
14275
14276         * elf/pldd.c (main): Attach to all threads in the process.
14277         Rewrite /proc handling to use *at functions.
14278
14279 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
14280
14281         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
14282         specifies first scope to show.
14283         (dl_open_worker): Update callers.  Move printing scope of new
14284         object to before the relocation.
14285         * elf/rtld.c (dl_main): Update _dl_show_scope call.
14286         * sysdeps/generic/ldsodefs.h: Update declaration.
14287
14288         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
14289         string for the scope number.
14290
14291 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
14292
14293         * nscd/servicescache.c (cache_addserv): Make sure written is always
14294         initialized.
14295
14296 2011-08-14  Roland McGrath  <roland@hack.frob.com>
14297
14298         * sysdeps/i386/i486/bits/atomic.h
14299         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
14300         statement expression, so as to suppress "set but not used" warning.
14301         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
14302
14303         * string/strncat.c (STRNCAT): Use prototype definition.
14304
14305         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
14306         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
14307         -Iprograms here.
14308         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
14309         (localedef-modules): Add localedef.
14310         (locale-modules): Add locale.
14311
14312         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
14313         * elf/rtld.c (dl_main): Invert order of assignment in last change,
14314         to avoid a warning.
14315
14316 2011-08-14  David S. Miller  <davem@davemloft.net>
14317
14318         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
14319         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
14320
14321 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
14322
14323         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
14324         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
14325         * elf/rtld.c (dl_main): Set l_name of vDSO.
14326         Call _dl_show_scope when DL_DEBUG_SCOPES.
14327         (process_dl_debug): Recognize scopes flag and also set it for all.
14328         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
14329         Declare _dl_show_scope.
14330
14331         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
14332         (do_dlopen): Pass caller_dlopen to dl_open.
14333         (__libc_dlopen_mode): Initialize caller_dlopen.
14334
14335         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
14336         of libc.  Make tolower call locale-independent.  Optimize a bit by
14337         using isdigit instead of isalnum.
14338         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
14339
14340 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
14341
14342         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
14343         was a dependency or dynamically loaded.
14344
14345 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
14346
14347         * intl/l10nflist.c: Allow architecture-specific pop function.
14348         * sysdeps/x86_64/l10nflist.c: New file.
14349
14350         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
14351         classification.
14352
14353 2011-08-10  Andreas Schwab  <schwab@redhat.com>
14354
14355         * include/dirent.h: Add libc_hidden_proto for scandirat and
14356         scandirat64.  Don't declare __scandirat64.
14357         * dirent/scandirat.c: Add libc_hidden_def.
14358         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
14359         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
14360
14361 2011-08-10  David S. Miller  <davem@davemloft.net>
14362
14363         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
14364         enum.
14365         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14366         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14367         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14368
14369 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
14370
14371         * Versions.def [libc]: Add GLIBC_2.15.
14372         * dirent/Makefile (routines): Add scandirat and scandirat64.
14373         * dirent/Versions [libc]: Export scandirat and scandirat64 for
14374         GLIBC_2.15.
14375         * dirent/dirent.h: Declare scandirat and scandirat64.
14376         * dirent/scandirat.c: New file.
14377         * dirent/scandirat64.c: New file.
14378         * sysdeps/wordsize-64/scandirat.c: New file.
14379         * sysdeps/wordsize-64/scandirat64.c: New file.
14380         * dirent/opendir.c: Define opendirat.
14381         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
14382         using scandirat.
14383         * dirent/scandir64.c: Adjust for scandir.c change.
14384         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
14385         __scandirat64, and __scandir_cancel_handler.
14386         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
14387         additional parameter and use openat instead of open (outside of ld.so).
14388         Add new __opendir as wrapper around __opendirat.
14389         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
14390         here without requiring old scandirat implementation.
14391
14392 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
14393
14394         * dirent/scandir.c (cancel_handler): Renamed to
14395         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
14396         defined.  Adjust users.
14397         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
14398         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14399
14400 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
14401
14402         * string/test-string.h (IMPL): Use __STRING to expand name and then
14403         stringify it.
14404
14405         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
14406         of cleanups.
14407
14408 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14409
14410         * string/Makefile: Update.
14411         (strop-tests): Append strncat.
14412         * string/test-wcscmp.c: New file.
14413         New comprehensive test for wcscmp.
14414         * string/test-strcmp.c: Update.
14415         (WIDE): New define.
14416
14417 2011-07-22  Andreas Schwab  <schwab@redhat.com>
14418
14419         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
14420         line.
14421
14422 2011-07-26  Andreas Schwab  <schwab@redhat.com>
14423
14424         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
14425         encoding to ACE if AI_IDN.
14426
14427 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
14428
14429         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
14430         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
14431
14432 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14433
14434         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
14435         Fix overflow bug in strncat.
14436         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
14437
14438         * string/test-strncat.c: Update.
14439         Add new tests for checking overflow bugs.
14440
14441 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14442
14443         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14444         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
14445         * sysdeps/i386/i686/multiarch/strcat.S: New file.
14446         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
14447         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
14448         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
14449         * sysdeps/i386/i686/multiarch/strncat.S: New file.
14450         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
14451         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
14452
14453         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
14454         (USE_AS_STRCAT): Define.
14455         Add strcat and strncat support.
14456         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14457
14458 2011-07-25  Andreas Schwab  <schwab@redhat.com>
14459
14460         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
14461         __n bigger than INT_MAX+1.
14462         (__strncmp_g): Likewise.
14463
14464 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
14465
14466         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
14467         * libio/stido.h: Likewise.
14468
14469         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
14470         (AF_NFC): Define.
14471         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
14472         (AF_NFC): Define.
14473
14474         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
14475         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14476         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14477         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14478         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14479
14480         [BZ #13021]
14481         * scripts/test-installation.pl: Don't expect libnss_test1 to be
14482         installed.
14483
14484         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
14485         typo.
14486         (_dl_x86_64_save_sse): Likewise.
14487
14488 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
14489
14490         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
14491         OSXSAVE.
14492         (_dl_x86_64_save_sse): Likewise.
14493
14494         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
14495
14496         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
14497
14498 2011-07-21  Andreas Schwab  <schwab@redhat.com>
14499
14500         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
14501         change.
14502         (_dl_x86_64_save_sse): Use correct AVX check.
14503
14504 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14505
14506         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
14507         bug in strncpy/strncat.
14508         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
14509
14510 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
14511
14512         * string/tester.c (test_strcat): Add tests for different alignments
14513         of source and destination.
14514         (test_strncat): Likewise.
14515
14516 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
14517
14518         [BZ #12852]
14519         * posix/glob.c (glob): Check passed in values before using them in
14520         expressions to avoid some overflows.
14521         (glob_in_dir): Likewise.
14522
14523         [BZ #13007]
14524         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
14525         check for AVX enablement so that we don't crash with old kernels and
14526         new hardware.
14527         * elf/tst-audit4.c: Add same checks here.
14528         * elf/tst-audit6.c: Likewise.
14529
14530         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
14531
14532 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
14533
14534         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
14535
14536 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
14537
14538         * po/cs.po: Update from translation team.
14539         * po/bg.po: Likewise.
14540
14541 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
14542
14543         * misc/sys/cdefs.h: Add support for const attribute.
14544         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
14545         to gnu_dev_{major,minor,makedev} functions.
14546
14547 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
14548
14549         * intl/dcigettext.c (get_output_charset): Add missing bracket.
14550
14551 2011-07-20  Andreas Schwab  <schwab@redhat.com>
14552
14553         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
14554         strlen results.
14555
14556 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14557
14558         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
14559         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
14560         register in order to avoid conflicts with the soft frame pointer
14561         being held in r11 when necessary.
14562         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
14563         (INTERNAL_VSYSCALL_NCS): Likewise.
14564
14565 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
14566
14567         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
14568         * elf/dl-fini.c (_dl_fini): Adjust caller.
14569         * elf/dl-close.c (_dl_close_worker): Likewise.
14570         * sysdeps/generic/ldsodefs.h: Adjust declaration.
14571
14572 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
14573
14574         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
14575         "aux_cache->nlibs < 0".
14576
14577         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
14578         in the reload-count case.
14579
14580 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14581
14582         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14583         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
14584         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
14585         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
14586         * sysdeps/x86_64/multiarch/strcat.S: New file.
14587         * sysdeps/x86_64/multiarch/strncat.S: New file.
14588         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
14589         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
14590         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
14591         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
14592         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
14593         (USE_AS_STRCAT): Define.
14594         Add strcat and strncat support.
14595         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14596         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14597         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
14598         * string/strncat.c: Update.
14599         (USE_AS_STRNCAT): Define.
14600         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14601         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
14602         and i7.
14603         * sysdeps/x86_64/multiarch/init-arch.h
14604         (bit_Prefer_PMINUB_for_stringop): New.
14605         (index_Prefer_PMINUB_for_stringop): Likewise.
14606         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
14607         bit_Prefer_PMINUB_for_stringop.
14608
14609 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
14610
14611         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
14612         buffer64.
14613         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
14614         of casting of buffer.
14615         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
14616         buffer32 and buffer64.
14617         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
14618         writes instead of casting of buffer.
14619         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
14620         buffer32.
14621         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
14622         casting of buffer.
14623
14624 2011-07-19  Andreas Schwab  <schwab@redhat.com>
14625
14626         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
14627
14628 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
14629
14630         * nscd/nscd.c (termination_handler): Don't do anything for a database
14631         if it has not yet been initialized.
14632
14633 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
14634
14635         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
14636
14637 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
14638
14639         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
14640
14641 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
14642
14643         * po/nl.po: Update from translation team.
14644         * po/sv.po: Likewise.
14645
14646 2011-07-16  Roland McGrath  <roland@hack.frob.com>
14647
14648         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
14649         now disallowed by GCC.
14650
14651         * configure.in (use-default-link): Default to yes if a test -shared
14652         link meets our qualifications.
14653         * configure: Regenerated.
14654
14655         * config.make.in (output-format): New variable.
14656         * configure.in: Check for ld --print-output-format support.
14657         * configure: Regenerated.
14658         * Makerules ($(common-objpfx)format.lds)
14659         [$(output-format) != unknown]: Just use $(output-format),
14660         instead of the linker-script munging.
14661
14662 2011-07-14  Roland McGrath  <roland@hack.frob.com>
14663
14664         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
14665         of $(common-objpfx)shlib.lds.
14666         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
14667
14668         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
14669         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
14670
14671         * configure.in (-z relro check): Adjust test code to add a large
14672         writable data section after it.
14673         * configure: Regenerated.
14674
14675 2011-07-11  Roland McGrath  <roland@hack.frob.com>
14676
14677         * configure.in (-z relro check): Fix test code to make the variable
14678         truly const.
14679         * configure: Regenerated.
14680
14681 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
14682
14683         * nscd/nscd.h (struct traced_file): Define.
14684         (struct database_dyn): Remove inotify_descr, reset_res, and filename
14685         elements.  Add traced_files.
14686         (inotify_fd): Declare.
14687         (register_traced_file): Declare.
14688         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
14689         (inotify_fd): Export.
14690         (resolv_conf_descr): Remove.
14691         (nscd_init): Move inotify descriptor creation to main.
14692         Don't register files for notification here.
14693         (register_traced_file): New function.
14694         (invalidate_cache): Don't use reset_res to determine whether to call
14695         res_init, go through the list of registered files.
14696         (main_loop_poll): The inotify descriptors are now stored in the
14697         structures for the traced files.
14698         (main_loop_epoll): Likewise
14699         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
14700         to __nss_disable_nscd.
14701         * nscd/cache.c (prune_cache): There is no single inotify descriptor
14702         for a database anymore.  Check the records for all the registered
14703         files instead.
14704         * nss/Makefile (libnss_files-routines): Add files-init.
14705         (libnss_db-routines): Add db-init.
14706         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
14707         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
14708         * nss/nss_db/db-init.c: New file.
14709         * nss/nss_files/files-init.c: New file.
14710         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
14711         __nss_lookup_function.
14712         (__nss_lookup_function): Call nss_load_library.
14713         (nss_load_all_libraries): New function.
14714         (__nss_disable_nscd): Take parameter with callback function for files
14715         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
14716         used for the cached services.
14717         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
14718         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
14719         options for features to all the files in nscd.
14720
14721         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
14722
14723 2011-07-10  Roland McGrath  <roland@hack.frob.com>
14724
14725         * csu/elf-init.c (__libc_csu_init): Comment typo.
14726
14727 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
14728
14729         * po/pl.po: Update from translation team.
14730         * po/ja.po: Likewise.
14731         * po/ru.po: Likewise.
14732         * po/ko.po: Likewise.
14733         * po/fr.po: Likewise.
14734
14735 2011-07-09  Roland McGrath  <roland@hack.frob.com>
14736
14737         * configure.in (.ctors/.dtors header and trailer check):
14738         Use an empirical test on a built program.
14739         * configure: Regenerated.
14740
14741         * configure.in (-z relro check): Use an empirical test on a built DSO.
14742         Detect, but do not require, on ia64.
14743         * configure: Regenerated.
14744
14745         * configure.in (READELF): Find it with AC_CHECK_TOOL.
14746         Update tests that use readelf to use $READELF instead.
14747         * configure: Regenerated.
14748
14749 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
14750
14751         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
14752         if the result is not used.
14753
14754 2011-07-05  Andreas Jaeger  <aj@suse.de>
14755
14756         [BZ#9696]
14757         * stdlib/tst-strtod.c: Add testcase.
14758
14759 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14760
14761         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
14762         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
14763         The latter has a higher limit.  Take additional parameter to pass to
14764         the new function.
14765         (__pathconf): Pass file to __statfs_link_max.
14766         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
14767         __statfs_link_max.
14768         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
14769         __statfs_link_max.
14770
14771         [BZ #12868]
14772         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
14773         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14774         Handle Lustre.
14775         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
14776         (__statfs_filesize_max): Likewise.
14777         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
14778
14779 2011-07-05  Andreas Jaeger  <aj@suse.de>
14780
14781         * resolv/res_comp.c (dn_skipname): Remove unused variable.
14782
14783 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
14784
14785         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
14786         `status' variable.
14787         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
14788         Likewise.
14789
14790 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
14791
14792         * Makefile (strop-tests): Add strncat.
14793         * string/test-strncat.c: New file.
14794
14795 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
14796
14797         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
14798
14799 2011-06-21  Andreas Jaeger  <aj@suse.de>
14800
14801         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
14802         Copy rule from iconvdata/Makefile.
14803
14804 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
14805
14806         [BZ #12922]
14807         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
14808         but no long options are defined, just return 'W'.
14809
14810 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
14811
14812         [BZ #9696]
14813         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
14814
14815 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
14816
14817         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
14818         netgroups to read.
14819         (innetgr): Likewise.
14820
14821 2011-07-05  Roland McGrath  <roland@hack.frob.com>
14822
14823         * config.make.in (install_root): Default to $(DESTDIR).
14824
14825 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
14826
14827         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
14828
14829 2011-07-02  Roland McGrath  <roland@hack.frob.com>
14830
14831         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
14832
14833         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
14834         containing directory rather than embedding absolute directory names.
14835
14836         * scripts/check-local-headers.sh: Rewritten using awk.
14837         Match by word, not by line.  Print error messages for matches.
14838         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
14839
14840         * Makerules [shlib-lds-flags empty]:
14841         ($(common-objpfx)libc_pic.opts): New target.
14842         ($(common-objpfx)libc_pic.os.clean): New target.
14843         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
14844
14845         * config.make.in (OBJCOPY): New variable.
14846         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
14847         * configure: Regenerated.
14848
14849         * config.make.in (use-default-link): New variable.
14850         * configure.in (use_default_link): Grok --with-default-link to set it.
14851         * configure: Regenerated.
14852         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
14853         (shlib-lds, shlib-lds-flags): Define to empty.
14854
14855         * Makerules (shlib-lds): New variable.
14856         (shlib-lds-flags): New variable.
14857         (build-shlib, build-moduile, build-module-asneeded): Use it.
14858         ($(common-objpfx)libc.so): Use $(shlib-lds).
14859         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
14860         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
14861
14862         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
14863         DT_FLAGS/DT_FLAGS_1 with zero flags.
14864
14865         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
14866         linker script munging.
14867
14868 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
14869
14870         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
14871         as 128-bit value.
14872         * crypt/sha512.c (sha512_process_block): Perform total addition using
14873         128-bit if possible.
14874         (__sha512_finish_ctx): Likewise.
14875         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
14876         as 64-bit value.
14877         * crypt/sha256.c (SWAP64): Define.
14878         (sha256_process_block): Perform total addition using 64-bit if
14879         possible.
14880         (__sha256_finish_ctx): Likewise.
14881
14882 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
14883
14884         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
14885         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14886         * nscd/hstcache.c (cache_addhst): Likewise.
14887         * nscd/grpcache.c (cache_addgr): Likewise.
14888         * nscd/aicache.c (addhstaiX): Likewise
14889         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
14890
14891 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
14892
14893         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
14894         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14895         * nscd/hstcache.c (cache_addhst): Likewise.
14896         * nscd/grpcache.c (cache_addgr): Likewise.
14897         * nscd/aicache.c (addhstaiX): Likewise
14898
14899 2011-07-01  Andreas Schwab  <schwab@redhat.com>
14900
14901         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
14902         domain only when needed.
14903
14904 2011-06-30  Andreas Schwab  <schwab@redhat.com>
14905
14906         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
14907         is always restored.
14908
14909 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
14910
14911         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
14912         are re-adding the entry.
14913         * nscd/servicescache.c (cache_addserv): Likewise.
14914
14915 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
14916
14917         * sysdeps/generic/dl-irel.h: fix protection against multiple
14918         inclusions.
14919         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
14920
14921 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
14922
14923         [BZ #12935]
14924         * malloc/memusage.sh: Fix quoting in message.
14925         * debug/xtrace.sh: Likewise.
14926
14927         * configure.in: Remove support for --experimental-malloc option, make
14928         it the default.
14929         * config.make.in: Likewise.
14930         * malloc/Makefile: Likewise.
14931
14932 2011-06-27  Andreas Schwab  <schwab@redhat.com>
14933
14934         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
14935         two-byte characters.
14936
14937 2011-06-27  Roland McGrath  <roland@hack.frob.com>
14938
14939         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
14940         AC_CACHE_CHECK invocation.
14941         * configure: Regenerated.
14942
14943         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
14944
14945 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
14946
14947         [BZ #12350]
14948         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
14949         bit from old_res_options.
14950
14951         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
14952
14953         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
14954         value type for setfct.
14955
14956 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
14957
14958         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
14959         __gettimeofday instead of gettimeofday.
14960
14961 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
14962
14963         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
14964
14965 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
14966
14967         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
14968
14969         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
14970         info.
14971
14972 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
14973
14974         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14975         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
14976         strcpy-sse2-unaligned strncpy-sse2-unaligned
14977         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
14978         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
14979         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
14980         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
14981         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
14982         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
14983         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
14984         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
14985         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
14986         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
14987         (STRCPY): Support SSE2 and SSSE3 versions.
14988
14989 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
14990
14991         [BZ #12874]
14992         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
14993         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
14994         kernels which artificially limit size of requests.
14995
14996 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
14997
14998         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14999         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
15000         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
15001         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
15002         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
15003         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
15004         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
15005         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
15006         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
15007         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
15008         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
15009         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
15010         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
15011         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
15012         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
15013         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15014         Enable unaligned load optimization for Intel Core i3, i5 and i7
15015         processors.
15016         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
15017         Define.
15018         (index_Fast_Unaligned_Load): Define.
15019         (HAS_FAST_UNALIGNED_LOAD): Define.
15020
15021 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
15022
15023         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
15024
15025 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
15026
15027         [BZ #12907]
15028         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
15029         until it is clear that the information is realy needed.
15030         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
15031
15032 2011-06-22  Andreas Schwab  <schwab@redhat.com>
15033
15034         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
15035
15036 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
15037
15038         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15039         /sys/devices/system/cpu/online if it is usable.
15040
15041         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
15042         reading the information from the /proc filesystem to once a second.
15043
15044 2011-06-21  Andreas Jaeger  <aj@suse.de>
15045
15046         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
15047         NULL after inclusion of kernel headers.
15048
15049 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
15050
15051         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
15052         calls to internal_setent.
15053
15054         [BZ #12885]
15055         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
15056         addresses using gethostbyname4_r ignore IPv4 addresses.
15057
15058         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
15059         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
15060
15061         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
15062
15063 2011-06-20  David S. Miller  <davem@davemloft.net>
15064
15065         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
15066         inclusions.
15067         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
15068
15069         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
15070         (elf_irel): Use it.
15071         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
15072         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
15073         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
15074         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
15075         * sysdeps/x86_64/dl-irel.h: Likewise.
15076
15077         * elf/dl-runtime.c: Use elf_ifunc_invoke.
15078         * elf/dl-sym.c: Likewise.
15079
15080 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
15081
15082         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
15083         need to dereference resplen2.
15084
15085 2011-06-14  Andreas Schwab  <schwab@redhat.com>
15086
15087         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
15088
15089 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
15090
15091         * Makeconfig: Define vardbdir and inst_vardbdir.
15092         * nss/Makefile: Add rules to install db-Makefile.
15093
15094         * nss/nss_db/db-XXX.c: Cleanup.
15095
15096         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
15097         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
15098         GLIBC_PRIVATE.
15099         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
15100         * nss/makedb.c: Implement -g option to specify that value strings
15101         are generated and should not be added to table iterated over for
15102         get*ent calls.
15103         * nss/nss_db/db-initgroups.c: New file.
15104
15105         * nss/getent.c: Add support for initgroups lookups through getgrouplist
15106         interface.
15107
15108         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
15109         (internal_getgrouplist): Adjust to name change.
15110         Update use_initgroups_entry if this is not the first call.
15111         * nss/databases.def: Add initgroups entry.
15112
15113         * nss/makedb.c (compute_tables): Check result of multiple hash table
15114         sizes to minimize maximum chain length.
15115
15116 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
15117
15118         * Versions.def: Add entry for libnss_db.
15119         * shlib-versions: Likewise.
15120         * nss/Makefile: Add rules to build libnss_db.
15121         * nss/Versions: Add libnss_db information.  Organize libnss_files
15122         entries better.
15123         * nss/db-Makefile: Add gshadow support.  Change rules for the new
15124         makedb progra.  Some minor improvements to generate smaller files.
15125         * nss/nss_db/nss_db.h: Move NSS database header data structures to
15126         here from...
15127         * nss/makedb.c: ...here.
15128         Improve database format to be smaller and require less memory at
15129         runtime.
15130         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
15131         db anymore.
15132         * nss/nss_db/db-netgrp.c: Likewise.
15133         * nss/nss_db/db-open.c: Likewise.
15134         * nss/nss_files/flies-XXX.x: Adjust comments.
15135         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
15136         * nss/nss_files/files-grp.c: Likewise.
15137         * nss/nss_files/files-hosts.c: Likewise.
15138         * nss/nss_files/files-network.c: Likewise.
15139         * nss/nss_files/files-proto.c: Likewise.
15140         * nss/nss_files/files-pwd.c: Likewise.
15141         * nss/nss_files/files-rpc.c: Likewise.
15142         * nss/nss_files/files-service.c: Likewise.
15143         * nss/nss_files/files-sgrp.c: Likewise.
15144         * nss/nss_files/files-spwd.c: Likewise.
15145         * nss/nss_db/db-alias.c: Removed.
15146         * nss/nss_db/dummy-db.h: Removed.
15147
15148 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
15149
15150         * nss/makedb.c: Rewritten to not use database library.
15151         * nss/Makefile: Update to build new makedb program.
15152
15153 2011-06-14  Andreas Jaeger  <aj@suse.de>
15154
15155         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
15156         memset declaration.
15157
15158 2011-06-10  Andreas Schwab  <schwab@redhat.com>
15159
15160         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
15161         tmpbuf.
15162
15163 2011-06-10  Roland McGrath  <roland@hack.frob.com>
15164
15165         * Makerules (shlib.lds): Fail if the linker script comes out empty.
15166         * elf/Makefile ($(objpfx)ld.so): Likewise.
15167
15168         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
15169         Don't list ld.so twice in dependencies.
15170
15171         * posix/bug-regex31.c: Include <stdlib.h>.
15172
15173         * nscd/hstcache.c (cache_addhst): Remove unused variable.
15174
15175         * nis/nss_compat/compat-spwd.c
15176         (getspent_next_nss_netgr): Remove unused variable.
15177         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
15178
15179         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
15180         nonmembers" output to use the right array.
15181
15182         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
15183
15184         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
15185
15186         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
15187         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
15188         * catgets/gencat.c (read_input_file): Likewise.
15189         * locale/programs/locarchive.c (enlarge_archive): Likewise.
15190
15191         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
15192         variable definition inside #if's controlling its use.
15193
15194         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
15195
15196         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
15197
15198         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
15199
15200         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
15201         unreachable code.
15202
15203         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
15204
15205         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
15206         * configure: Regenerated.
15207
15208         * Makerules: Revert last change.
15209         * elf/Makefile: Likewise.
15210
15211 2011-06-09  Roland McGrath  <roland@hack.frob.com>
15212
15213         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
15214         * elf/Makefile ($(objpfx)librtld.os): Likewise.
15215         (reloc-link): Likewise.
15216
15217 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
15218
15219         * elf/Makefile: Add rules to build pldd.
15220         * elf/pldd.c: New file.
15221         * elf/pldd-xx.c: New file.
15222
15223 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
15224
15225         * version.h: Update for 2.15 development version.
15226
15227 2011-06-07  David S. Miller  <davem@davemloft.net>
15228
15229         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
15230         ifuncs.
15231         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
15232         elf_machine_lazy_rel): Likewise.
15233         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
15234         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
15235         elf_machine_lazy_rel): Likewise.
15236         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
15237         dl_hwcap via passed in argument.
15238         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
15239         Likewise.
15240
15241 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15242
15243         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
15244
15245 2011-06-06  Roland McGrath  <roland@hack.frob.com>
15246
15247         [BZ #12849]
15248         * manual/fdl-1.1.texi: New file, verbatim from:
15249         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
15250         * manual/lgpl-2.1.texi: New file, verbatim from:
15251         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
15252         * manual/Makefile (licenses): New variable, list those new file names.
15253         (texis): Use it.
15254         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
15255
15256         * manual/fdl.texi: File removed.
15257         * manual/lesser.texi: File removed.
15258         * manual/libc.texinfo (Copying, Documentation License):
15259         Use new @include file names, put @appendix directive before @include.
15260
15261 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
15262
15263         [BZ #12841]
15264         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
15265         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
15266         (mq_open): Add __NTH.
15267
15268 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
15269
15270         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15271         Assume Intel Core i3/i5/i7 processor if AVX is available.
15272
15273 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
15274
15275         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
15276         typo.
15277
15278 2011-05-31  Andreas Schwab  <schwab@redhat.com>
15279
15280         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
15281         memory.  Use alloca_account.  Fix memory leak when retrying.
15282
15283 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
15284
15285         * version.h (RELEASE): Bump for 2.14 release.
15286         * include/features.h (__GLIBC_MINOR__): Bump to 14.
15287
15288         * config.make.in (RANLIB): Remove entry.
15289
15290 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
15291
15292         * po/Makefile (po-sed-cmd): Add ksh to extensions.
15293         (libc.pot): Work around missing support for .ksh extension in xgettext.
15294
15295         [BZ #12684]
15296         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
15297         if both request failed.
15298         (send_dg): In case of server errors clear resplen or *resplen2.
15299
15300         [BZ #12454]
15301         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
15302         when there are multiple maps.
15303         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
15304         (_dl_fini): Remove test here.
15305
15306         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
15307
15308 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
15309
15310         [BZ #12350]
15311         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
15312         bit from old_res_options.
15313         (gaih_inet): Likewise.
15314
15315         [BZ #11099]
15316         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
15317         as signed.
15318
15319         * resolv/res_init.c (res_setoptions): Make the code more compact.
15320
15321         [BZ #11558]
15322         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
15323         set RES_USEVC.
15324
15325         [BZ #11634]
15326         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
15327
15328         * malloc/malloc.h: Mark malloc hook variables as deprecated.
15329
15330         [BZ #11781]
15331         * malloc/malloc.h: Declare malloc hook variables as volatile.
15332
15333         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
15334         in last patch.
15335
15336         [BZ #11799]
15337         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
15338         raise in the comment.
15339         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
15340         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
15341         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
15342
15343 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
15344
15345         [BZ #12811]
15346         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
15347         grow the buffers more if it already has to be sufficient.
15348         (build_wcs_upper_buffer): Likewise.
15349         * posix/regexec.c (check_matching): Likewise.
15350         (clean_state_log_if_needed): Likewise.
15351         (extend_buffers): Don't enlarge buffers beyond size of the input
15352         buffer.
15353         Patches mostly by Emil Wojak <emil@wojak.eu>.
15354         * posix/bug-regex32.c: New file.
15355         * posix/Makefile (tests): Add bug-regex32.
15356
15357         * locale/findlocale.c (_nl_find_locale): Return right away if
15358         _nl_explode_name failed.
15359         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
15360
15361         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
15362
15363         * debug/xtrace.sh: Unify messages.
15364         * malloc/memusage.sh: Likewise.
15365
15366         [BZ #12813]
15367         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
15368         time symbol from vDSO.  Substitute with vsyscall if not available.
15369         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
15370         __vdso_time.
15371
15372         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
15373         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
15374         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
15375         Add sendmmsg and internal_sendmmsg.
15376         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
15377         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
15378         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
15379
15380         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
15381         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
15382         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
15383
15384 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
15385
15386         [BZ #12813]
15387         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
15388         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
15389         available.
15390         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
15391         __vdso_getcpu.
15392
15393         [BZ #12814]
15394         * iconvdata/Makefile (tests): Add bug-iconv9.
15395         * iconvdata/bug-iconv9.c: New file.
15396
15397 2011-05-27  Andreas Schwab  <schwab@redhat.com>
15398
15399         [BZ #12814]
15400         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
15401
15402 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
15403
15404         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15405         (struct user_regs_struct): Change intcs field back to cs.
15406
15407 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
15408
15409         * po/ja.po: Update from translation team.
15410
15411 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
15412
15413         [BZ #12795]
15414         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
15415         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
15416
15417 2011-05-20  Andreas Schwab  <schwab@redhat.com>
15418
15419         * stdlib/longlong.h: Update from GCC.
15420
15421 2011-05-23  Andreas Schwab  <schwab@redhat.com>
15422
15423         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
15424         parameter name.
15425         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
15426         Add parameter name.
15427         (__sysconf): Pass it down.
15428
15429 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
15430
15431         [BZ #12671]
15432         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
15433         some situations.
15434         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
15435         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
15436         add in in __libc_use_alloca calls.  Adjust callers.
15437         (glob): Use malloc in some situations.
15438
15439         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
15440         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
15441         pltexit.
15442
15443 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
15444
15445         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
15446         and CLOCK_BOOTTIME_ALARM.
15447
15448         [BZ #12782]
15449         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
15450         is returned.
15451
15452         * string/_strerror.c (__strerror_r): Print negative errors as signed
15453         numbers.
15454
15455         [BZ #12777]
15456         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
15457         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
15458         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
15459
15460         * configure.in: Fix typo in redirection and correct removal of test
15461         files in two cases.
15462
15463         [BZ #12788]
15464         * locale/setlocale.c (new_composite_name): Fix test to check for
15465         identical name of all categories.
15466
15467         [BZ #12792]
15468         * libio/filedoalloc.c (local_isatty): New function.
15469         (_IO_file_doallocate): Use local_isatty.
15470         * stdio-common/perror.c (perror): In case a new stream is used
15471         forward the stream error.
15472         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
15473         error flag.
15474
15475 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
15476
15477         [BZ #11869]
15478         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
15479         alloca.
15480         * include/alloca.h (extend_alloca_account): Define.
15481
15482         [BZ #11857]
15483         * posix/regex.h: Fix comments with documentation of user-accessible
15484         fields after compilation and describe correct free'ing of pattern
15485         after re_compile_pattern.
15486         Patch by Reuben Thomas <rrt@sc3d.org>.
15487
15488 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
15489
15490         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
15491         and -mno-altivec to prevent the compiler from using Altivec and/or
15492         VSX instructions when the corresponding registers are not available.
15493
15494 2011-05-19  Andreas Schwab  <schwab@redhat.com>
15495
15496         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
15497
15498 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
15499
15500         * libio/freopen.c (freopen): Use __dup2, not dup2.
15501         * libio/freopen64.c (freopen64): Likewise.
15502
15503 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15504
15505         [BZ #12775]
15506         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
15507         * math/Makefile (tests): Add test-powl.
15508         (CFLAGS-test-powl.c): Define.
15509         * math/test-powl.c: New file.
15510
15511 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15512
15513         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
15514
15515 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
15516
15517         [BZ #11837]
15518         * iconvdata/gb18030.c: Update to GB18020-2005.
15519
15520 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
15521
15522         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
15523         RE_SYNTAX_POSIX_AWK): Update to match recent development.
15524         Patch by Aharon Robbins <arnold@skeeve.com>.
15525
15526         [BZ #11892]
15527         * stdlib/putenv.c (putenv): Don't always create copy of the variable
15528         on the stack.
15529
15530         [BZ #11895]
15531         * misc/pselect.c (__pselect): Handle timeout value errors hidden
15532         through underflows.
15533
15534         [BZ #12766]
15535         * misc/error.c (error_at_line): Ensure file_name and old_file_name
15536         point to strings before performing equality test for error_one_per_line
15537         mode.
15538
15539         [BZ #11697]
15540         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
15541
15542         [BZ #11820]
15543         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15544         (struct user_fpregs_struct): Avoid __uint*_t types.
15545
15546         [BZ #6420]
15547         * malloc/mtrace.c (tr_where): Add additional parameter to point to
15548         symbol info.  Use it instead of calling _dl_addr locally.
15549         (lock_and_info): New function.
15550         (tr_freehook): Call lock_and_info and pass symbol info as additional
15551         parameter to tr_where.
15552         (tr_mallochook): Likewise.
15553         (tr_reallochook): Likewise.
15554         (tr_memalignhook): Likewise.
15555
15556         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
15557         used and couldn't be at all thread-safe.
15558
15559 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
15560
15561         * libio/freopen.c (freopen): Don't close old file descriptor
15562         before the new one is opened.  Instead dup the new file descriptor
15563         to the old one after the new stream is created.
15564         * libio/freopen64.c (freopen64): Likewise.
15565         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
15566         * libio/fileops.c (_IO_new_file_close_it): Handle new
15567         _IO_FLAGS2_NOCLOSE flag.
15568         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
15569         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
15570         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
15571         _IO_FLAGS2_NOCLOSE flag.
15572         * include/unistd.h: Add hidden_proto for dup3.
15573         Define __have_dup3.
15574         * io/dup3.c: Define hidden symbol.
15575         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
15576
15577         [BZ #7101]
15578         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
15579         when an incomplete long option is used.
15580         * posix/tst-getopt_long1.c: New file.
15581         * posix/Makefile (tests): Add tst-getopt_long1.
15582
15583         [BZ #10138]
15584         * scripts/config.guess: Update from autoconf-2.68.
15585         * scripts/config.sub: Likewise.
15586
15587         [BZ #10157]
15588         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
15589         tests into ...
15590         (has_cpuclock): ...this.  New function.
15591         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
15592         macro here based on has_cpuclock code.
15593
15594         [BZ #10149]
15595         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15596         First byte (not low byte) is now always NUL.
15597         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
15598
15599         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15600         Use non-cancelable interfaces.
15601
15602         [BZ #9809]
15603         * locale/iso-639.def: Add entry for Sorani.
15604
15605         [BZ #11901]
15606         * include/stdlib.h: Move include protection to the right place.
15607         Define abort_msg_s.  Declare __abort_msg with it.
15608         * stdlib/abort.c (__abort_msg): Adjust type.
15609         * assert/assert.c (__assert_fail_base): New function.  Majority
15610         of code from __assert_fail.  Allocate memory for __abort_msg with
15611         mmap.
15612         (__assert_fail): Now call __assert_fail_base.
15613         * assert/assert-perr.c: Remove bulk of implementation.  Use
15614         __assert_fail_base.
15615         * include/assert.hL Declare __assert_fail_base.
15616         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
15617         mmap.
15618         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
15619
15620 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
15621
15622         [BZ #11952]
15623         [BZ #12453]
15624         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
15625         until all modules are registered in the DTV.
15626         * elf/Makefile: Add rules to build and run tst-tls19.
15627         * elf/tst-tls19.c: New file.
15628         * elf/tst-tls19mod1.c: New file.
15629         * elf/tst-tls19mod2.c: New file.
15630         * elf/tst-tls19mod3.c: New file.
15631         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
15632
15633         [BZ #12083]
15634         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
15635         correctly.
15636
15637         [BZ #12601]
15638         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
15639         two-byte sequence errors.
15640         * iconvdata/Makefile (tests): Add bug-iconv8.
15641         * iconvdata/bug-iconv8.c: New file.
15642
15643         [BZ #12626]
15644         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
15645         buf2 definition.
15646
15647         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
15648
15649         [BZ #12432]
15650         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
15651         (dummy_getcfa): New function.
15652         (init): Get _Unwind_GetCFA address, use dummy if not found.
15653         (backtrace_helper): In recursion check, also check whether CFA changes.
15654         (__backtrace): Completely initialize arg.
15655
15656         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
15657         storing incomplete byte sequence in state object.  Avoid testing for
15658         guaranteed too small input if we know there is enough data available.
15659
15660 2011-05-11  Andreas Schwab  <schwab@redhat.com>
15661
15662         * Makeconfig (+link-pie): Indent.
15663         * Rules (binaries-pie): Define if $(have-fpie) and
15664         $(build-shared).
15665         (binaries-shared): Also filter out $(binaries-pie).
15666         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
15667         * nscd/Makefile (others-pie): Add nscd.
15668         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
15669         ($(objpfx)nscd): Remove command override.
15670         * login/Makefile (others-pie): Add pt_chown.
15671         ($(objpfx)pt_chown): Remove command override.
15672         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
15673         remove command overrides.
15674
15675 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
15676
15677         * libio/tst_putwc.c: Fix error messages.
15678
15679         [BZ #12724]
15680         * libio/fileops.c (_IO_new_file_close_it): Always flush when
15681         currently writing and seek to current position when not.
15682         * libio/Makefile (tests): Add bug-fclose1.
15683         * libio/bug-fclose1.c: New file.
15684
15685 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
15686
15687         [BZ #12511]
15688         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
15689         don't set DF_1_NODELETE here.
15690         (do_lookup_x): When entering new entry test for copy relocation
15691         and if necessary set DF_1_NODELETE flag.
15692         * elf/tst-unique4.cc: New file.
15693         * elf/tst-unique4.h: New file.
15694         * elf/tst-unique4lib.cc: New file.
15695         * elf/Makefile: Add rules to build and run tst-unique4.
15696         Patch by Piotr Bury <pbury@goahead.com>.
15697
15698 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15699
15700         [BZ #12052]
15701         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
15702
15703         [BZ #12625]
15704         * misc/mntent_r.c (addmntent): Flush the stream after the output
15705
15706         [BZ #12393]
15707         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
15708         (is_trusted_path_normalize): Skip initial colon.  Append slash
15709         to empty buffer.  Duplicate is_trusted_path code but allow
15710         constructed patch to be prefix.
15711         (is_dst): Allow $ORIGIN followed by /.
15712         (_dl_dst_substitute): Correct clearing of check_for_trusted.
15713         Correct testing of result of is_trusted_path_normalize
15714         (decompose_rpath): Fix warning.
15715
15716 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
15717
15718         [BZ #11257]
15719         * grp/initgroups.c (internal_getgrouplist): When we found the service
15720         list through the initgroups entry in nsswitch.conf do not always
15721         continue on a successful lookup.  Don't always use the
15722         __nss_group_database value if it is set.
15723         * nss/nsswitch.conf (initgroups): Change action for successful db
15724         lookup to continue for compatibility.
15725
15726 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
15727
15728         [BZ #11532]
15729         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
15730         and CP774 modules.
15731         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
15732         and CP774 modules.
15733         * iconvdata/tst-tables.sh: Likewise.
15734         * iconvdata/cp770.c: New file.
15735         * iconvdata/cp771.c: New file.
15736         * iconvdata/cp772.c: New file.
15737         * iconvdata/cp773.c: New file.
15738         * iconvdata/cp774.c: New file.
15739         * iconvdata/testdata/CP770: New file.
15740         * iconvdata/testdata/CP770..UTF8: New file.
15741         * iconvdata/testdata/CP771: New file.
15742         * iconvdata/testdata/CP771..UTF8: New file.
15743         * iconvdata/testdata/CP772: New file.
15744         * iconvdata/testdata/CP772..UTF8: New file.
15745         * iconvdata/testdata/CP773: New file.
15746         * iconvdata/testdata/CP773..UTF8: New file.
15747         * iconvdata/testdata/CP774: New file.
15748         * iconvdata/testdata/CP774..UTF8: New file.
15749
15750         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
15751         END CHARMAP line.
15752         * iconvdata/gen-8bit-gap.sh: Likewise.
15753         * iconvdata/gen-8bit.sh: Likewise.
15754
15755         * locale/iso-639.def: Add ary entry.
15756
15757         [BZ #11258]
15758         * locale/C-translit.h.in: Add U20A1 transliteration.
15759
15760         [BZ #12178]
15761         * locale/iso-639.def: Add wae entry.
15762         Patch by Kevin Bortis <bortis@translate-wae.ch>.
15763
15764         [BZ #12545]
15765         * locale/programs/localedef.c (construct_output_path): Use ssize_t
15766         for n.
15767
15768         [BZ #12711]
15769         * locale/C-translit.h.in: Add entry for U20B9.
15770         Patch by pravin.d.s@gmail.com.
15771
15772 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
15773
15774         [BZ #12713]
15775         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
15776         ENAMETOOLONG use generic getcwd.
15777         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
15778         in rtld.  Use *stat64.
15779         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
15780         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
15781         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
15782         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
15783         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
15784         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
15785         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
15786         __fstatat64 macros.
15787         * include/dirent.h: Add libc_hidden_proto for rewinddir.
15788         * dirent/rewinddir.c: Add libc_hidden_def.
15789         * sysdeps/mach/hurd/rewinddir.c: Likewise.
15790         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
15791
15792         * include/dirent.h (__alloc_dir): Add flags parameter.
15793         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
15794         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
15795         __alloc_dir.
15796         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
15797         from fdopendir if O_CLOEXEC is already set.
15798
15799 2011-03-15  Alan Modra  <amodra@gmail.com>
15800
15801         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
15802         l_tls_firstbyte_offset non-zero.  Save padding offset in
15803         l_tls_firstbyte_offset for later use.
15804         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
15805         freeing static tls block.
15806
15807 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
15808
15809         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
15810         where #ifdef was intended.  The intent is to prevent ARG_MAX from
15811         being defined by the kernel headers.
15812
15813 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
15814
15815         [BZ #12734]
15816         * resolv/resolv.h: Define RES_NOTLDQUERY.
15817         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
15818         no-tld-query and set RES_NOTLDQUERY.
15819         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
15820         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
15821         modern BIND to search name as TLD unless forbidden.
15822
15823 2011-05-07  Petr Baudis  <pasky@suse.cz>
15824             Ulrich Drepper  <drepper@gmail.com>
15825
15826         [BZ #12393]
15827         * elf/dl-load.c (fillin_rpath): Move trusted path check...
15828         (is_trusted_path): ...to here.
15829         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
15830         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
15831         using is_trusted_path_normalize() in setuid scripts.
15832
15833 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
15834
15835         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
15836         __BEGIN/__END_DECLS.
15837
15838 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
15839
15840         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
15841         NSS_STATUS_NOTFOUND if no record was found.
15842
15843 2011-05-05  Andreas Schwab  <schwab@redhat.com>
15844
15845         * sunrpc/Makefile (headers): Add rpc/netdb.h.
15846         (headers-not-in-tirpc): Remove rpc/netdb.h
15847         * resolv/netdb.h: Revert last change.
15848
15849 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15850
15851         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
15852         circular dependency between libgcc.a and libc.a.
15853
15854 2011-05-05  Andreas Schwab  <schwab@redhat.com>
15855
15856         * resolv/netdb.h: Don't include <rpc/netdb.h>.
15857         * nis/Makefile: Don't install rpcsvc/*.
15858         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
15859         instead of <rpc/types.h>.
15860         (MAXHOSTNAMELEN): Define.
15861
15862 2011-05-03  Andreas Schwab  <schwab@redhat.com>
15863
15864         * elf/ldconfig.c (add_dir): Don't crash on empty path.
15865
15866 2011-04-28  Maciej Babinski  <mbabinski@google.com>
15867
15868         [BZ #12714]
15869         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
15870         gethostbyname4_r when IPv6 results are possible.
15871
15872 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
15873
15874         [BZ #12723]
15875         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
15876         _PC_PIPE_BUF handling.
15877
15878 2011-04-30  Bruno Haible  <bruno@clisp.org>
15879
15880         [BZ #12717]
15881         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
15882         * resolv/netdb.h (getnameinfo): Change type of flags parameter
15883         to 'int'.
15884         * inet/getnameinfo.c (getnameinfo): Likewise.
15885
15886 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
15887
15888         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
15889         to groups setting in database lookup.
15890         * nss/nsswitch.conf: Add initgroups entry.
15891
15892 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
15893
15894         [BZ #12685]
15895         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
15896         mode string.
15897         Patch by Eric Blake <eblake@redhat.com>.
15898
15899 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
15900
15901         * sunrpc/Makefile (need-export-routines): Add svc_run.
15902         (routines): Remove svc_run.
15903         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
15904         * sunrpc/clnt_perr.c (clnt_perrno): Export.
15905         * sunrpc/svc_run.c (svc_run): Likewise.
15906         * sunrpc/svc_udp.c (svcudp_create): Likewise.
15907
15908 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
15909
15910         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
15911         problem in reallocation in last patch.
15912
15913 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
15914
15915         * sunrpc/Makefile: Move inclusion of Rules.
15916
15917 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
15918
15919         * nss/nss_files/files-initgroups.c: New file.
15920         * nss/Makefile (libnss_files-routines): Add files-initgroups.
15921         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
15922         _nss_files_initgroups_dyn.
15923
15924 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
15925
15926         * elf/elf.h (R_ARM_IRELATIVE): Define.
15927
15928 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
15929
15930         * po/ru.po: Update from translation team.
15931
15932 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
15933
15934         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
15935         dependencies.
15936
15937 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
15938
15939         [BZ #12653]
15940         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
15941         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
15942         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
15943         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
15944         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
15945
15946 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
15947
15948         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
15949         differing bytes.
15950         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
15951         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
15952         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15953
15954 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
15955
15956         [BZ #12420]
15957         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
15958         storing it.
15959         * stdlib/bug-getcontext.c: New file.
15960         * stdlib/Makefile: Add rules to build and run bug-getcontext.
15961
15962 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15963
15964         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
15965         instructions into .machine "z9-109".
15966         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
15967         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
15968
15969 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15970
15971         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
15972         between environment variables and auxiliary vector.
15973
15974 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
15975
15976         * Makefile: Add rules to build linkobj/libc.so.
15977         * include/libc-symbols.h: Define libc_hidden_nolink.
15978         * include/rpc/auth.h: Mark functions which are to be hidden.
15979         * include/rpc/auth_des.h: Likewise.
15980         * include/rpc/auth_unix.h: Likewise.
15981         * include/rpc/clnt.h: Likewise.
15982         * include/rpc/des_crypt.h: Likewise.
15983         * include/rpc/key_prot.h: Likewise.
15984         * include/rpc/pmap_clnt.h: Likewise.
15985         * include/rpc/pmap_prot.h: Likewise.
15986         * include/rpc/pmap_rmt.h: Likewise.
15987         * include/rpc/rpc_msg.h: Likewise.
15988         * include/rpc/svc.h: Likewise.
15989         * include/rpc/svc_auth.h: Likewise.
15990         * include/rpc/xdr.h: Likewise.
15991         * nis/Makefile: Link all DSOs against linkobj/libc.so.
15992         * nss/Makefile: Likewise.
15993         * sunrpc/Makefile: Don't install headers.  Build library with normal
15994         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
15995         * sunrpc/auth_des.c: Hide exported symbols by default, export some
15996         for the compat linking library.  Remove use of INTDEF/INTUSE.
15997         * sunrpc/auth_none.c: Likewise.
15998         * sunrpc/auth_unix.c: Likewise.
15999         * sunrpc/authdes_prot.c: Likewise.
16000         * sunrpc/authuxprot.c: Likewise.
16001         * sunrpc/clnt_gen.c: Likewise.
16002         * sunrpc/clnt_perr.c: Likewise.
16003         * sunrpc/clnt_raw.c: Likewise.
16004         * sunrpc/clnt_simp.c: Likewise.
16005         * sunrpc/clnt_tcp.c: Likewise.
16006         * sunrpc/clnt_udp.c: Likewise.
16007         * sunrpc/clnt_unix.c: Likewise.
16008         * sunrpc/des_crypt.c: Likewise.
16009         * sunrpc/des_soft.c: Likewise.
16010         * sunrpc/get_myaddr.c: Likewise.
16011         * sunrpc/key_call.c: Likewise.
16012         * sunrpc/key_prot.c: Likewise.
16013         * sunrpc/netname.c: Likewise.
16014         * sunrpc/pm_getmaps.c: Likewise.
16015         * sunrpc/pm_getport.c: Likewise.
16016         * sunrpc/pmap_clnt.c: Likewise.
16017         * sunrpc/pmap_prot.c: Likewise.
16018         * sunrpc/pmap_prot2.c: Likewise.
16019         * sunrpc/pmap_rmt.c: Likewise.
16020         * sunrpc/publickey.c: Likewise.
16021         * sunrpc/rpc_cmsg.c: Likewise.
16022         * sunrpc/rpc_common.c: Likewise.
16023         * sunrpc/rpc_dtable.c: Likewise.
16024         * sunrpc/rpc_prot.c: Likewise.
16025         * sunrpc/rpc_thread.c: Likewise.
16026         * sunrpc/rtime.c: Likewise.
16027         * sunrpc/svc.c: Likewise.
16028         * sunrpc/svc_auth.c: Likewise.
16029         * sunrpc/svc_authux.c: Likewise.
16030         * sunrpc/svc_raw.c: Likewise.
16031         * sunrpc/svc_run.c: Likewise.
16032         * sunrpc/svc_simple.c: Likewise.
16033         * sunrpc/svc_tcp.c: Likewise.
16034         * sunrpc/svc_udp.c: Likewise.
16035         * sunrpc/svc_unix.c: Likewise.
16036         * sunrpc/svcauth_des.c: Likewise.
16037         * sunrpc/xcrypt.c: Likewise.
16038         * sunrpc/xdr.c: Likewise.
16039         * sunrpc/xdr_array.c: Likewise.
16040         * sunrpc/xdr_float.c: Likewise.
16041         * sunrpc/xdr_intXX_t.c: Likewise.
16042         * sunrpc/xdr_mem.c: Likewise.
16043         * sunrpc/xdr_rec.c: Likewise.
16044         * sunrpc/xdr_ref.c: Likewise.
16045         * sunrpc/xdr_sizeof.c: Likewise.
16046         * sunrpc/xdr_stdio.c: Likewise.
16047
16048 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
16049
16050         [BZ #12650]
16051         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
16052         * sysdeps/ia64/dl-tls.h: Likewise.
16053         * sysdeps/powerpc/dl-tls.h: Likewise.
16054         * sysdeps/s390/dl-tls.h: Likewise.
16055         * sysdeps/sh/dl-tls.h: Likewise.
16056         * sysdeps/sparc/dl-tls.h: Likewise.
16057         * sysdeps/x86_64/dl-tls.h: Likewise.
16058         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
16059
16060 2011-03-14  Andreas Schwab  <schwab@redhat.com>
16061
16062         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
16063         rpath element also skip the following colon.
16064         (expand_dynamic_string_token): Add is_path parameter and pass
16065         down to DL_DST_REQUIRED and _dl_dst_substitute.
16066         (decompose_rpath): Call expand_dynamic_string_token with
16067         non-zero is_path.  Ignore empty rpaths.
16068         (_dl_map_object_from_fd): Call expand_dynamic_string_token
16069         with zero is_path.
16070
16071 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
16072
16073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
16074         Make cancelable.
16075
16076 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
16077
16078         [BZ #12655]
16079         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
16080         Patch by Filipe David Manana <fdmanana@apache.org>.
16081
16082 2011-04-07  Andreas Schwab  <schwab@redhat.com>
16083
16084         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
16085         Maintain aligned stack.
16086         (CHECK_RSP): Remove unused macro.
16087
16088 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
16089
16090         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
16091         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
16092
16093 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
16094
16095         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
16096
16097         * include/features.h: Mention __USE_XOPEN2K8 in comment.
16098
16099 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
16100
16101         [BZ #12518]
16102         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
16103         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
16104         * sysdeps/x86_64/memmove.c: New file.
16105         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
16106         (memcpy): Renamed to ...
16107         (__new_memcpy): This.
16108         (memcpy): Provide GLIBC_2_14 memcpy.
16109         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
16110         (memcpy): Provide GLIBC_2_2_5 memcpy.
16111
16112 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16113
16114         [BZ #12631]
16115         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
16116
16117 2011-03-30  Andreas Schwab  <schwab@redhat.com>
16118
16119         * misc/syncfs.c: New file.
16120         * misc/Makefile (routines): Add syncfs.
16121         * posix/unistd.h: Declare syncfs.
16122         * sysdeps/unix/syscalls.list: Add syncfs.
16123
16124 2011-04-01  Andreas Schwab  <schwab@redhat.com>
16125
16126         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
16127         open_by_handle_at.
16128         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16129         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16130         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16131         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16132         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16133         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
16134         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16135
16136 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16137
16138         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
16139         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16140         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
16141         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16142         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16143         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16144         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16145
16146         * io/Makefile: Compile fallocate.c, fallocate64.c, and
16147         sync_file_range.c with -fexceptions.
16148         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
16149         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
16150         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
16151         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
16152         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
16153         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
16154         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
16155         sync_file_range as cancellation point
16156         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
16157         now a wrapper around __call_sync_file_range with cancellation handling.
16158         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
16159         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
16160         function name to __call_sync_file_range.
16161         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
16162         Add call_sync_file_range.
16163
16164 2011-04-01  Andreas Schwab  <schwab@redhat.com>
16165
16166         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16167         bits/timex.h.
16168
16169 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16170
16171         * iconv/iconv.h: Fix typo in comment.
16172         * io/fcntl.h: Likewise.
16173         * libio/stdio.h: Likewise.
16174         * posix/spawn.h: Likewise.
16175         * posix/unistd.h: Likewise.
16176         * stdlib/stdlib.h: Likewise.
16177         * time/time.h: Likewise.
16178         * wcsmbs/wchar.h: Likewise.
16179
16180         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
16181         open_by_handle): Add.
16182         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
16183         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
16184         Augment a few comments.
16185         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16186         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16187         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16188         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16189         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16190         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
16191         open_by_handle.
16192
16193         * io/fcntl.h (AT_EMPTY_PATH): Define.
16194
16195 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
16196
16197         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
16198         * sysdeps/unix/sysv/linux/bits/time.h: New file.
16199         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
16200         to...
16201         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
16202         * Versions.def: Add GLIBC_2.14.
16203         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
16204         Export.
16205
16206 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
16207
16208         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
16209         round counter.
16210         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16211
16212 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
16213
16214         [BZ #12597]
16215         * string/test-strncmp.c (do_page_test): New function.
16216         (check2): Likewise.
16217         (test_main): Call check2.
16218         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
16219
16220 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
16221
16222         [BZ #12587]
16223         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
16224         Handle cache information in CPU leaf 4.
16225         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16226
16227 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
16228
16229         [BZ #12583]
16230         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
16231         character representation.
16232         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
16233
16234 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
16235
16236         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
16237         END(__isnan) to END(__isnanf) to match function entry point/label
16238         EALIGN(__isnanf,...).
16239
16240 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
16241
16242         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
16243
16244 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
16245
16246         [BZ #12510]
16247         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
16248         copy from the symbol referenced in the relocation to initialize the
16249         used variable.
16250         Patch by Piotr Bury <pbury@goahead.com>.
16251         * elf/Makefile: Add rules to build and tst-unique3.
16252         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
16253         * elf/tst-unique3.cc: New file.
16254         * elf/tst-unique3.h: New file.
16255         * elf/tst-unique3lib.cc: New file.
16256         * elf/tst-unique3lib2.cc: New file.
16257
16258         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
16259
16260 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
16261
16262         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
16263         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
16264         to _start.
16265
16266 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
16267
16268         * elf/dl-load.c (_dl_map_object): If we are looking for the first
16269         to-be-loaded object along a path to loader is ld.so.
16270
16271 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
16272             Ulrich Drepper  <drepper@gmail.com>
16273
16274         * sysdeps/x86_64/memset.S: After aligning destination, code
16275         branches to different locations depending on the value of
16276         misalignment, when multiarch is enabled. Fix this.
16277
16278 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
16279
16280         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
16281         Set _x86_64_preferred_memory_instruction for AMD processsors.
16282         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16283         Set bit_Prefer_SSE_for_memop for AMD processors.
16284
16285 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
16286
16287         * libio/fmemopen.c (fmemopen): Optimize a bit.
16288
16289 2011-03-03  Andreas Schwab  <schwab@redhat.com>
16290
16291         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
16292
16293 2011-03-03  Roland McGrath  <roland@redhat.com>
16294
16295         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
16296
16297 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
16298
16299         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
16300         __bzero_ultra1 instead of __memset_ultra1.
16301
16302 2011-02-23  Andreas Schwab  <schwab@redhat.com>
16303             Ulrich Drepper  <drepper@gmail.com>
16304
16305         [BZ #12509]
16306         * include/link.h (struct link_map): Add l_orig_initfini.
16307         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
16308         returning unsuccessfully.
16309         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
16310         close of a file loaded at startup, restore the original l_initfini
16311         list.
16312         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
16313         list, store the pointer.
16314         * elf/Makefile ($(objpfx)noload-mem): New rule.
16315         (noload-ENV): Define.
16316         (tests): Add $(objpfx)noload-mem.
16317         * elf/noload.c: Include <memcheck.h>.
16318         (main): Call mtrace.  Close all opened handles.
16319
16320 2011-02-17  Andreas Schwab  <schwab@redhat.com>
16321
16322         [BZ #12454]
16323         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
16324         dependencies are missing.
16325
16326 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16327
16328         Fix __if_freereq crash: Unlike the generic version which uses free,
16329         Hurd needs munmap.
16330         * sysdeps/mach/hurd/ifreq.h: New file.
16331
16332 2011-01-27  Petr Baudis  <pasky@suse.cz>
16333             Ulrich Drepper  <drepper@gmail.com>
16334
16335         [BZ 12445]#
16336         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
16337         to extend_alloca().
16338         * stdio-common/bug23.c: New file.
16339         * stdio-common/Makefile (tests): Add bug23.
16340
16341 2010-09-28  Andreas Schwab  <schwab@redhat.com>
16342             Ulrich Drepper  <drepper@gmail.com>
16343
16344         [BZ #12489]
16345         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
16346         before performing relro protection.  At old place add assertion
16347         to make sure nothing changed.
16348
16349 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
16350             Glauber de Oliveira Costa  <glommer@gmail.com>
16351
16352         * elf/elf.h: Add new ARM TLS relocs.
16353
16354 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
16355
16356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16357         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
16358         cast from r3.
16359         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
16360         'tests' variable.
16361         * sysdeps/wordsize-64/tst-writev.c: New file.
16362
16363 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
16364
16365         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
16366         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
16367         insns in _dl_start to prevent a TOC reference before relocs are
16368         resolved.
16369
16370 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
16371
16372         [BZ #12469]
16373         * Makeconfig: Remove RANLIB definition.
16374         * Makerules: Don't use RANLIB.
16375         * aclocal.m4: Remove ranlib test.
16376         * configure.in: No need to check for ranlib.
16377         * elf/rtld-Rules: Don't use RANLIB.
16378
16379 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16380
16381         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
16382         protection macro.
16383         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
16384         inclusion protection macro.
16385
16386         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
16387         SIGRTMIN and SIGRTMAX and print information in that case only when
16388         SIGRTMIN is defined.
16389
16390 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16391
16392         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
16393         arginfo fn returning -1.
16394
16395         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
16396         and thousands string is zero terminated.
16397
16398 2011-02-03  Andreas Schwab  <schwab@redhat.com>
16399
16400         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
16401         sysdeps/unix/sysv/linux/bits/socket.h.
16402
16403 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16404
16405         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
16406         (__CPU_COUNT): Remove old macros.
16407         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
16408         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
16409         (__CPU_ALLOC, __CPU_FREE): Add macros.
16410         (__sched_cpualloc, __sched_cpufree): Add declarations.
16411
16412 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
16413
16414         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
16415         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
16416         * nscd/aicache.c (addhstaiX): Return timeout of added value.
16417         (readdhstai): Return value of addhstaiX call.
16418         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
16419         (addgrbyX): Return value returned by cache_addgr.
16420         (readdgrbyname): Return value returned by addgrbyX.
16421         (readdgrbygid): Likewise.
16422         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
16423         (addpwbyX): Return value returned by cache_addpw.
16424         (readdpwbyname): Return value returned by addhstbyX.
16425         (readdpwbyuid): Likewise.
16426         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
16427         (addservbyX): Return value returned by cache_addserv.
16428         (readdservbyname): Return value returned by addservbyX:
16429         (readdservbyport): Likewise.
16430         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
16431         (addhstbyX): Return value returned by cache_addhst.
16432         (readdhstbyname): Return value returned by addhstbyX.
16433         (readdhstbyaddr): Likewise.
16434         (readdhstbynamev6): Likewise.
16435         (readdhstbyaddrv6): Likewise.
16436         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
16437         (readdinitgroups): Return value returned by addinitgroupsX.
16438         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
16439         (prune_cache): Keep track of timeout value of re-added entries.
16440         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
16441         * nscd/nscd.h: Adjust prototypes of readd* functions.
16442
16443 2011-02-04  Roland McGrath  <roland@redhat.com>
16444
16445         * nis/nis_server.c (nis_servstate): Use the right name for 0.
16446         (nis_stats): Likewise.
16447         * nis/nis_modify.c (nis_modify): Likewise.
16448         * nis/nis_remove.c (nis_remove): Likewise.
16449         * nis/nis_add.c (nis_add): Likewise.
16450
16451         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
16452
16453         * posix/fnmatch_loop.c: Add some consts.
16454
16455         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
16456
16457 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
16458
16459         [BZ #12460]
16460         * config.make.in (config-cflags-novzeroupper): Define.
16461         * configure.in: Substitute libc_cv_cc_novzeroupper.
16462         * elf/Makefile (AVX-CFLAGS): Define.
16463         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
16464         (CFLAGS-tst-auditmod4a.c): Likewise.
16465         (CFLAGS-tst-auditmod4b.c): Likewise.
16466         (CFLAGS-tst-auditmod6b.c): Likewise.
16467         (CFLAGS-tst-auditmod6c.c): Likewise.
16468         (CFLAGS-tst-auditmod7b.c): Likewise.
16469         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
16470
16471 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
16472
16473         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
16474         function to the callback.
16475         Patch partly by Jiri Olsa <jolsa@redhat.com>.
16476
16477 2011-02-02  Andreas Schwab  <schwab@redhat.com>
16478
16479         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
16480         of errno.
16481
16482 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
16483
16484         [BZ #11724]
16485         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
16486         of constructors.
16487         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
16488         of destructors.
16489         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
16490
16491         [BZ #11724]
16492         * elf/Makefile: Add rules to build and run new test.
16493         * elf/tst-initorder.c: New file.
16494         * elf/tst-initorder.exp: New file.
16495         * elf/tst-initordera1.c: New file.
16496         * elf/tst-initordera2.c: New file.
16497         * elf/tst-initordera3.c: New file.
16498         * elf/tst-initordera4.c: New file.
16499         * elf/tst-initorderb1.c: New file.
16500         * elf/tst-initorderb2.c: New file.
16501         * elf/tst-order-a1.c: New file.
16502         * elf/tst-order-a2.c: New file.
16503         * elf/tst-order-a3.c: New file.
16504         * elf/tst-order-a4.c: New file.
16505         * elf/tst-order-b1.c: New file.
16506         * elf/tst-order-b2.c: New file.
16507         * elf/tst-order-main.c: New file.
16508         New test case by George Gensure <werkt0@gmail.com>.
16509
16510 2010-10-01  Andreas Schwab  <schwab@redhat.com>
16511
16512         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16513         decoding ACE if AI_CANONIDN.
16514
16515 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
16516
16517         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
16518
16519 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
16520
16521         * version.h (RELEASE): Bump for 2.13 release.
16522         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
16523
16524         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
16525
16526         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
16527         MADV_NOHUGEPAGE.
16528         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
16529         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
16530         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
16531         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
16532         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
16533         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
16534
16535         * posix/getconf.c: Update copyright year.
16536         * catgets/gencat.c: Likewise.
16537         * csu/version.c: Likewise.
16538         * debug/catchsegv.sh: Likewise.
16539         * debug/xtrace.sh: Likewise.
16540         * elf/ldconfig.c: Likewise.
16541         * elf/ldd.bash.in: Likewise.
16542         * elf/sprof.c (print_version): Likewise.
16543         * iconv/iconv_prog.c: Likewise.
16544         * iconv/iconvconfig.c: Likewise.
16545         * locale/programs/locale.c: Likewise.
16546         * locale/programs/localedef.c: Likewise.
16547         * malloc/memusage.sh: Likewise.
16548         * malloc/mtrace.pl: Likewise.
16549         * nscd/nscd.c (print_version): Likewise.
16550         * nss/getent.c: Likewise.
16551
16552         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
16553         PF_CAIF, and PF_ALG.
16554         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16555
16556 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
16557
16558         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
16559         (modules-names): Use them.
16560         (ifunc-test-modules, ifunc-pie-tests): Define.
16561         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
16562         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
16563         (test-extras): Likewise.
16564         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
16565         $(compile-command.c).
16566         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
16567         (all-built-dso): Define.
16568         (check-textrel.out, check-execstack.out): Depend on it.
16569
16570         * configure.in: Don't override --enable-multi-arch.
16571
16572 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
16573
16574         [BZ #6812]
16575         * nscd/hstcache.c (tryagain): Define.
16576         (cache_addhst): Return tryagain not notfound for temporary errors.
16577         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
16578         failed.
16579
16580 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
16581
16582         [BZ #10563]
16583         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
16584         to make the syscall.
16585         * sysdeps/unix/sysv/linux/setgroups.c: New file.
16586
16587         [BZ #12378]
16588         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
16589         and fall back to matching as normal character if the string ends before
16590         the matching ']' is found.  This is what POSIX requires.
16591         * posix/testfnm.c: Adjust test result.
16592         * posix/globtest.sh: Adjust test result.  Add new test.
16593         * posix/tst-fnmatch.input: Likewise.
16594         * posix/tst-fnmatch2.c: Add new test.
16595
16596 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
16597
16598         * elf/Makefile (check-execstack): Revert last change.  Depend on
16599         check-execstack.h.
16600         (check-execstack.h): New target.
16601         (generated): Add check-execstack.h.
16602         * elf/check-execstack.c: Include "check-execstack.h".
16603         (main): Revert last change.
16604         (handle_file): Return zero if GNU_STACK is absent and
16605         DEFAULT_STACK_PERMS doesn't include PF_X.
16606
16607 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
16608
16609         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
16610         in child fails because the descriptor is already closed.
16611         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
16612         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
16613         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
16614
16615         [BZ #12397]
16616         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
16617         syscall.
16618
16619         [BZ #10484]
16620         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
16621         temporary buffer used to handle multi lookups locally.
16622         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
16623
16624 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
16625
16626         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
16627         loader is ld.so.
16628
16629 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
16630
16631         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
16632         alignment for SSE2.
16633
16634 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
16635
16636         [BZ #12394]
16637         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
16638         characters.  When rounding increased number of integer digits recompute
16639         number of groups.
16640         * stdio-common/tst-grouping.c: New file.
16641         * stdio-common/Makefile: Add rules to build and run tst-grouping.
16642
16643 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
16644
16645         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
16646         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
16647
16648         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
16649         void.
16650         * bits/select.h: Likewise.
16651
16652 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
16653
16654         * po/ja.po: Update from translation team.
16655
16656 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
16657
16658         [BZ #11155]
16659         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
16660         implementation just like for lxstat, fxstatat, et al.
16661
16662 2010-12-27  Jim Meyering  <meyering@redhat.com>
16663
16664         [BZ #12348]
16665         * posix/regexec.c (build_trtable): Return failure indication upon
16666         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16667
16668 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
16669
16670         [BZ #12201]
16671         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
16672         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
16673         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
16674         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
16675
16676         [BZ #12207]
16677         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
16678
16679         [BZ #12204]
16680         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
16681         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
16682
16683 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
16684
16685         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
16686         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
16687         script has SORT_BY_INIT_PRIORITY.
16688         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
16689         NO_CTORS_DTORS_SECTIONS is defined.
16690         * elf/soinit.c: Likewise.
16691         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
16692         NO_CTORS_DTORS_SECTIONS is defined.
16693         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
16694         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
16695         * sysdeps/sh/init-first.c: Likewise.
16696         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
16697
16698 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
16699
16700         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
16701         always use the slow path.
16702
16703 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
16704
16705         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
16706         similar rule which adds the sysdep directories to the header search in
16707         order to pick up the correct platform stackinfo.h.
16708         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
16709         perform test if it is, otherwise return successfully without testing.
16710         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
16711         DEFAULT_STACK_PERMS define in stackinfo.h.
16712         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
16713         defined in stackinfo.h.
16714         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
16715         DEFAULT_STACK_PERMS defined in stackinfo.h.
16716         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
16717         * sysdeps/ia64/stackinfo.h: Likewise.
16718         * sysdeps/s390/stackinfo.h: Likewise.
16719         * sysdeps/sh/stackinfo.h: Likewise.
16720         * sysdeps/sparc/stackinfo.h: Likewise.
16721         * sysdeps/x86_64/stackinfo.h: Likewise.
16722         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
16723         PF_X for powerpc64.  Retain PF_X for powerpc32.
16724
16725 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
16726
16727         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
16728         accurately.
16729         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
16730         GETDENTS_64BIT_ALIGNED.
16731
16732 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
16733
16734         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
16735
16736 2010-12-10  Andreas Schwab  <schwab@redhat.com>
16737
16738         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
16739         _GNU_SOURCE.
16740
16741         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
16742         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
16743         Remove __restrict.
16744         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
16745         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
16746
16747 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
16748
16749         [BZ #11655]
16750         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
16751         are initialized.
16752
16753 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
16754
16755         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
16756
16757 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
16758
16759         * po/it.po: Update from translation team.
16760
16761 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
16762
16763         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
16764         unused codes.
16765
16766 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
16767
16768         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
16769
16770 2010-11-24  Andreas Schwab  <schwab@redhat.com>
16771
16772         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
16773         specially.
16774         (gaih_getanswer_slice): Likewise.
16775
16776 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
16777
16778         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
16779
16780 2010-05-31  Petr Baudis  <pasky@suse.cz>
16781
16782         [BZ #11149]
16783         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
16784         silently even in the chroot mode.
16785
16786 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
16787
16788         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
16789         last patch a bit.  Pretty printing
16790
16791 2010-05-31  Petr Baudis <pasky@suse.cz>
16792
16793         [BZ #10085]
16794         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
16795         initialization of skip_initgroups_dyn.
16796
16797 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
16798
16799         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
16800         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
16801
16802 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
16803
16804         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
16805
16806 2010-11-11  Andreas Schwab  <schwab@redhat.com>
16807
16808         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
16809         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
16810         (tst-fnmatch-ENV): Set MALLOC_TRACE.
16811         ($(objpfx)tst-fnmatch-mem): New rule.
16812         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
16813         * posix/tst-fnmatch.c (main): Call mtrace.
16814
16815 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
16816
16817         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16818         Support Intel processor model 6 and model 0x2c.
16819
16820 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
16821
16822         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
16823           signed comparison.
16824
16825 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
16826
16827         [BZ #12205]
16828         * string/test-strncasecmp.c (check_result): New function.
16829         (do_one_test): Use it.
16830         (check1): New function.
16831         (test_main): Use it.
16832         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
16833         Support strcasecmp and strncasecmp.
16834
16835 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
16836
16837         [BZ #12194]
16838         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
16839         * sysdeps/x86_64/bits/byteswap.h: Likewise.
16840
16841 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16842
16843         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
16844         IFUNC support.
16845         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16846         memset-x86-64.
16847         * sysdeps/x86_64/multiarch/bzero.S: New file.
16848         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
16849         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
16850         * sysdeps/x86_64/multiarch/memset.S: New file.
16851         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
16852         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16853         Set bit_Prefer_SSE_for_memop for Intel processors.
16854         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
16855         Define.
16856         (index_Prefer_SSE_for_memop): Define.
16857         (HAS_PREFER_SSE_FOR_MEMOP): Define.
16858
16859 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
16860
16861         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
16862         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
16863
16864 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
16865
16866         [BZ #12191]
16867         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
16868         (__x86_64_raw_data_cache_size_half): Likewise.
16869         (__x86_64_raw_shared_cache_size): Likewise.
16870         (__x86_64_raw_shared_cache_size_half): Likewise.
16871
16872         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
16873         (__x86_64_raw_data_cache_size_half): Likewise.
16874         (__x86_64_raw_shared_cache_size): Likewise.
16875         (__x86_64_raw_shared_cache_size_half): Likewise.
16876         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
16877         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
16878         and __x86_64_raw_shared_cache_size_half.  Round
16879         __x86_64_data_cache_size_half, __x86_64_data_cache_size
16880         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
16881         to multiple of 256 bytes.
16882
16883 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
16884
16885         [BZ #12167]
16886         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
16887         of inacessible symlinks.  Verify result of symlink before returning it.
16888         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
16889         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
16890
16891 2010-10-28  Erich Ritz  <erichritz@gmail.com>
16892
16893         * math/math.h (isinf): Fix typo in comment.
16894
16895 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
16896
16897         * po/da.po: Update from translation team.
16898
16899 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
16900
16901         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
16902         is added to the list.
16903
16904 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16905             Ulrich Drepper  <drepper@gmail.com>
16906
16907         * elf/dl-object.c (_dl_new_object): Don't append the new object to
16908         the global list here.  Move code to...
16909         (_dl_add_to_namespace_list): ...here.  New function.
16910         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
16911         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
16912         * elf/dl-load.c (lose): Don't remove the element from the list.
16913         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
16914         (_dl_map_object): Likewise.
16915
16916 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
16917
16918         [BZ #12159]
16919         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
16920         into all bytes of SSE register.
16921         Patch by Richard Li <richardpku@gmail.com>.
16922
16923 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
16924
16925         [BZ #12140]
16926         * malloc/malloc.c (_int_free): Fill correct number of bytes when
16927         perturbing.
16928
16929 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
16930
16931         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
16932         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
16933         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
16934         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
16935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
16936         submachine.
16937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
16938
16939 2010-10-22  Andreas Schwab  <schwab@redhat.com>
16940
16941         * include/dlfcn.h (__RTLD_SECURE): Define.
16942         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
16943         mode & __RTLD_SECURE instead.
16944         (open_path): Rename preloaded parameter to secure.
16945         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
16946         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
16947         * elf/dl-deps.c (openaux): Likewise.
16948         * elf/rtld.c (struct map_args): Remove is_preloaded.
16949         (map_doit): Don't use it.
16950         (dl_main): Likewise.
16951         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
16952         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
16953
16954 2010-09-09  Andreas Schwab  <schwab@redhat.com>
16955
16956         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
16957         (sysd-rules-targets): Remove duplicates.
16958         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
16959         rtld-%.$o dependency.
16960
16961 2010-10-18  Andreas Schwab  <schwab@redhat.com>
16962
16963         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
16964         _dl_map_object do it.
16965
16966 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
16967
16968         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
16969         fast fma builtins, define the macros in the C99 standard.
16970         (FP_FAST_FMAF): Likewise.
16971         (FP_FAST_FMAL): Likewise.
16972         * sysdeps/x86_64/bits/mathdef.h: Likewise.
16973
16974         * bits/mathdef.h: Update copyright year.
16975         * sysdeps/powerpc/bits/mathdef.h: Likewise.
16976
16977 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
16978
16979         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
16980         builtins, define the macros in the C99 standard.
16981         (FP_FAST_FMAF): Likewise.
16982         (FP_FAST_FMAL): Likewise.
16983         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
16984         multiply/add.
16985         (FP_FAST_FMAF): Likewise.
16986
16987 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
16988
16989         [BZ #3268]
16990         * math/libm-test.inc (fma_test): Some new testcases.
16991         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
16992         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
16993         y and infinite z.  Do multiplication by C already in long double.
16994         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
16995         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
16996         y and infinite z.  Do bitwise or of inexact bit into u.d.
16997         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
16998         * sysdeps/i386/fpu/s_fmaf.S: Removed.
16999         * sysdeps/i386/fpu/s_fma.S: Removed.
17000         * sysdeps/i386/fpu/s_fmal.S: Removed.
17001
17002 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
17003
17004         [BZ #3268]
17005         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
17006         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
17007         computation is not scheduled after fetestexcept.  Fix value
17008         of minimum denormal long double.
17009
17010 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
17011
17012         [BZ #3268]
17013         * math/libm-test.inc (fma_test): Add some more tests.
17014         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
17015         correctly.
17016
17017 2010-10-15  Andreas Schwab  <schwab@redhat.com>
17018
17019         * scripts/data/localplt-s390-linux-gnu.data: New file.
17020         * scripts/data/localplt-s390x-linux-gnu.data: New file.
17021
17022 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
17023
17024         [BZ #3268]
17025         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
17026         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
17027         instead of dbl-64.
17028         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
17029         inlines.
17030         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
17031         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
17032         if one of x and y is very large and the other is subnormal.
17033         * sysdeps/s390/fpu/s_fmaf.c: New file.
17034         * sysdeps/s390/fpu/s_fma.c: New file.
17035         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
17036         * sysdeps/powerpc/fpu/s_fma.S: New file.
17037         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
17038         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
17039         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
17040
17041 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
17042
17043         [BZ #3268]
17044         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
17045         fma tests.
17046         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
17047         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
17048         * sysdeps/i386/i686/multiarch/s_fma.c: Include
17049         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
17050         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
17051         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
17052         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
17053
17054 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
17055
17056         [BZ #12078]
17057         * posix/regcomp.c (parse_branch): One more memory leak plugged.
17058         * posix/bug-regex31.input: Add test case.
17059
17060 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
17061
17062         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
17063         * posix/bug-regex31.input: New file.
17064
17065         [BZ #12078]
17066         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
17067         (parse_sub_exp): Fix last change, use postorder.
17068
17069         * posix/bug-regex31.c: New file.
17070         * posix/Makefile: Add rules to build and run bug-regex31.
17071
17072         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
17073
17074         [BZ #12078]
17075         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
17076
17077         [BZ #12108]
17078         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
17079         to have entries in sys_siglist.
17080
17081         [BZ #12093]
17082         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
17083         be NULL.
17084
17085 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
17086
17087         [BZ #3268]
17088         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
17089         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
17090         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
17091         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
17092         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
17093         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
17094         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
17095         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
17096         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
17097         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
17098         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
17099         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
17100         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
17101         * math/ftestexcept.c (fetestexcept): Likewise.
17102         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
17103         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
17104         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
17105         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
17106         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
17107         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
17108         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
17109
17110 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
17111
17112         [BZ #12107]
17113         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
17114         newline.
17115
17116 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
17117
17118         * string/bug-strstr1.c: New file.
17119         * string/Makefile: Add rules to build and run bug-strstr1.
17120
17121 2010-10-05  Eric Blake  <eblake@redhat.com>
17122
17123         [BZ #12092]
17124         * string/str-two-way.h (two_way_long_needle): Always clear memory
17125         when skipping input due to the shift table.
17126
17127 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
17128
17129         [BZ #12005]
17130         * malloc/mcheck.c: Handle large requests.
17131
17132         [BZ #12077]
17133         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
17134         for strncmp and strncasecmp.
17135         * string/stratcliff.c: Add tests for strcmp and strncmp.
17136         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
17137
17138 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17139
17140         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
17141         __set_fpscr.
17142
17143 2010-09-30  Andreas Jaeger  <aj@suse.de>
17144
17145         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
17146         (CGROUP_SUPER_MAGIC): Define.
17147         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17148         Handle btrfs and cgroup file systems.
17149         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
17150         Likewise.
17151
17152 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
17153
17154         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
17155         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
17156
17157 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17158
17159         [BZ #12067]
17160         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
17161         trying to locate the ELF header.
17162
17163 2010-09-27  Andreas Schwab  <schwab@redhat.com>
17164
17165         [BZ #11611]
17166         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
17167         Mask out sign-bit copies when constructing f_fsid.
17168
17169 2010-09-24  Petr Baudis <pasky@suse.cz>
17170
17171         * debug/stack_chk_fail_local.c: Add missing licence exception.
17172         * debug/warning-nop.c: Likewise.
17173
17174 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
17175
17176         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
17177         implementing getdents64 using getdents syscall, set d_type if
17178         __ASSUME_GETDENTS32_D_TYPE.
17179
17180 2010-09-16  Andreas Schwab  <schwab@redhat.com>
17181
17182         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
17183         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
17184
17185 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
17186
17187         [BZ #12037]
17188         * posix/unistd.h: Undo change of feature selection for ftruncate from
17189         2010-01-11.
17190
17191 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
17192
17193         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
17194         detection.
17195
17196 2010-09-20  Andreas Schwab  <schwab@redhat.com>
17197
17198         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
17199         fanotify_mark.
17200         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
17201
17202 2010-09-14  Andreas Schwab  <schwab@redhat.com>
17203
17204         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
17205         variables after CHECK_SP call.
17206         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
17207
17208 2010-09-13  Andreas Schwab  <schwab@redhat.com>
17209             Ulrich Drepper  <drepper@redhat.com>
17210
17211         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
17212         re-relocationg ld.so.
17213         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
17214         _dl_init_paths call.
17215         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
17216         here anymore.
17217
17218 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
17219
17220         * resolv/res_init.c (__res_vinit): Count the default server we added.
17221
17222 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
17223             Ulrich Drepper  <drepper@redhat.com>
17224
17225         [BZ #11968]
17226         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17227         (____longjmp_chk): Use %ebx for saving value across system call.
17228         Add unwind info.
17229
17230 2010-09-06  Andreas Schwab  <schwab@redhat.com>
17231
17232         * manual/Makefile: Don't mix pattern rules with normal rules.
17233
17234 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
17235
17236         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
17237         operation.
17238         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
17239         * libio/iofopncook.c (_IO_cookie_init): Likewise.
17240         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
17241         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17242         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17243         Likewise.
17244
17245 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
17246
17247         [BZ #11979]
17248         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
17249         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
17250
17251 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
17252
17253         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
17254         * sysdeps/x86_64/addmul_1.S: Likewise.
17255         * sysdeps/x86_64/lshift.S: Likewise.
17256         * sysdeps/x86_64/mul_1.S: Likewise.
17257         * sysdeps/x86_64/rshift.S: Likewise.
17258         * sysdeps/x86_64/sub_n.S: Likewise.
17259         * sysdeps/x86_64/submul_1.S: Likewise.
17260
17261 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17262
17263         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
17264         Define __sched_param instead of SCHED_* and sched_param when
17265         <bits/sched.h> is included with __need_schedparam defined.
17266         * bits/sched.h [__need_schedparam]
17267         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
17268         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
17269         (__defined_schedparam): Define to 1.
17270         (__sched_param): New structure, identical to sched_param.
17271         (__need_schedparam): Undefine.
17272
17273 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
17274
17275         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
17276         (epoll_create1): Declare.
17277
17278         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
17279
17280 2010-08-31  Andreas Schwab  <schwab@redhat.com>
17281
17282         [BZ #7066]
17283         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
17284         shifting retval into place.
17285
17286 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
17287
17288         * nis/rpcsvc/nis.h: Update copyright notice.
17289         * nis/rpcsvc/nis.x: Likewise.
17290         * nis/rpcsvc/nis_callback.h: Likewise.
17291         * nis/rpcsvc/nis_callback.x: Likewise.
17292         * nis/rpcsvc/nis_object.x: Likewise.
17293         * nis/rpcsvc/nis_tags.h: Likewise.
17294         * nis/rpcsvc/yp.h: Likewise.
17295         * nis/rpcsvc/yp.x: Likewise.
17296         * nis/rpcsvc/ypupd.h: Likewise.
17297         * nis/yp_xdr.c: Likewise.
17298         * nis/ypupdate_xdr.c: Likewise.
17299
17300         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
17301         mainly the body of pmap_getport.  Add parameters to specify timeouts.
17302         (pmap_getport): Use __libc_rpc_getport.
17303         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
17304         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
17305         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
17306
17307 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
17308
17309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
17310         fanotify_mark.
17311
17312 2010-08-27  Roland McGrath  <roland@redhat.com>
17313
17314         * sysdeps/i386/i686/multiarch/Makefile
17315         (CFLAGS-varshift.c): New variable.
17316
17317 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
17318
17319         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
17320         * sysdeps/i386/i686/multiarch/varshift.c: New file.
17321
17322         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
17323
17324         * sysdeps/x86_64/strlen.S: Minimal code improvement.
17325
17326 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
17327
17328         * sysdeps/x86_64/strlen.S: Unroll the loop.
17329         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17330         strlen-sse2 strlen-sse2-bsf.
17331         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
17332         __strlen_no_bsf if bit_Slow_BSF is set.
17333         (__strlen_sse42): Removed.
17334         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
17335         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
17336
17337 2010-08-25  Roland McGrath  <roland@redhat.com>
17338
17339         * sysdeps/x86_64/multiarch/varshift.S: File removed.
17340         * sysdeps/x86_64/multiarch/varshift.c: New file.
17341         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
17342         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
17343         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
17344         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17345
17346 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
17347
17348         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17349         strlen-sse2 strlen-sse2-bsf.
17350         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
17351         __strlen_sse2_bsf if bit_Slow_BSF is unset.
17352         (__strlen_sse2): Removed.
17353         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
17354         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
17355         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
17356         bit_Slow_BSF for Atom.
17357         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
17358         (index_Slow_BSF): Define.
17359         (HAS_SLOW_BSF): Define.
17360
17361 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
17362
17363         [BZ #10851]
17364         * resolv/res_init.c (__res_vinit): When no server address at all
17365         is given default to loopback.
17366
17367 2010-08-24  Roland McGrath  <roland@redhat.com>
17368
17369         * configure.in: Remove config-name.h generation.
17370         * configure: Regenerated.
17371         * config-name.in: File removed.
17372         * scripts/config-uname.sh: New file.
17373         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
17374         ($(objdir)config-name.h): New target.
17375
17376         * sunrpc/rpc_parse.h: Avoid nested comment.
17377
17378 2010-08-24  Richard Henderson  <rth@redhat.com>
17379             Ulrich Drepper  <drepper@redhat.com>
17380             H.J. Lu  <hongjiu.lu@intel.com>
17381
17382         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
17383         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
17384         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
17385         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
17386         _mm_alignr_epi8 with _mm_loadu_si128.
17387         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
17388         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
17389         (__m128i_shift_right): Removed.
17390         * sysdeps/i386/i686/multiarch/varshift.h: New file.
17391         * sysdeps/i386/i686/multiarch/varshift.S: New file.
17392         * sysdeps/x86_64/multiarch/varshift.h: New file.
17393         * sysdeps/x86_64/multiarch/varshift.S: New file.
17394
17395 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
17396
17397         * configure.in: Move assembler checks to before sysdep dir checking.
17398
17399 2010-08-20  Petr Baudis  <pasky@suse.cz>
17400
17401         * LICENSES: Sync the sunrpc license.
17402
17403 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
17404
17405         * sunrpc/auth_des.c: Update copyright notice once again.
17406         * sunrpc/auth_none.c: Likewise.
17407         * sunrpc/auth_unix.c: Likewise.
17408         * sunrpc/authdes_prot.c: Likewise.
17409         * sunrpc/authuxprot.c: Likewise.
17410         * sunrpc/bindrsvprt.c: Likewise.
17411         * sunrpc/clnt_gen.c: Likewise.
17412         * sunrpc/clnt_perr.c: Likewise.
17413         * sunrpc/clnt_raw.c: Likewise.
17414         * sunrpc/clnt_simp.c: Likewise.
17415         * sunrpc/clnt_tcp.c: Likewise.
17416         * sunrpc/clnt_udp.c: Likewise.
17417         * sunrpc/clnt_unix.c: Likewise.
17418         * sunrpc/des_crypt.c: Likewise.
17419         * sunrpc/des_soft.c: Likewise.
17420         * sunrpc/get_myaddr.c: Likewise.
17421         * sunrpc/getrpcport.c: Likewise.
17422         * sunrpc/key_call.c: Likewise.
17423         * sunrpc/key_prot.c: Likewise.
17424         * sunrpc/openchild.c: Likewise.
17425         * sunrpc/pm_getmaps.c: Likewise.
17426         * sunrpc/pm_getport.c: Likewise.
17427         * sunrpc/pmap_clnt.c: Likewise.
17428         * sunrpc/pmap_prot.c: Likewise.
17429         * sunrpc/pmap_prot2.c: Likewise.
17430         * sunrpc/pmap_rmt.c: Likewise.
17431         * sunrpc/rpc/auth.h: Likewise.
17432         * sunrpc/rpc/auth_unix.h: Likewise.
17433         * sunrpc/rpc/clnt.h: Likewise.
17434         * sunrpc/rpc/des_crypt.h: Likewise.
17435         * sunrpc/rpc/key_prot.h: Likewise.
17436         * sunrpc/rpc/netdb.h: Likewise.
17437         * sunrpc/rpc/pmap_clnt.h: Likewise.
17438         * sunrpc/rpc/pmap_prot.h: Likewise.
17439         * sunrpc/rpc/pmap_rmt.h: Likewise.
17440         * sunrpc/rpc/rpc.h: Likewise.
17441         * sunrpc/rpc/rpc_des.h: Likewise.
17442         * sunrpc/rpc/rpc_msg.h: Likewise.
17443         * sunrpc/rpc/svc.h: Likewise.
17444         * sunrpc/rpc/svc_auth.h: Likewise.
17445         * sunrpc/rpc/types.h: Likewise.
17446         * sunrpc/rpc/xdr.h: Likewise.
17447         * sunrpc/rpc_clntout.c: Likewise.
17448         * sunrpc/rpc_cmsg.c: Likewise.
17449         * sunrpc/rpc_common.c: Likewise.
17450         * sunrpc/rpc_cout.c: Likewise.
17451         * sunrpc/rpc_dtable.c: Likewise.
17452         * sunrpc/rpc_hout.c: Likewise.
17453         * sunrpc/rpc_main.c: Likewise.
17454         * sunrpc/rpc_parse.c: Likewise.
17455         * sunrpc/rpc_parse.h: Likewise.
17456         * sunrpc/rpc_prot.c: Likewise.
17457         * sunrpc/rpc_sample.c: Likewise.
17458         * sunrpc/rpc_scan.c: Likewise.
17459         * sunrpc/rpc_scan.h: Likewise.
17460         * sunrpc/rpc_svcout.c: Likewise.
17461         * sunrpc/rpc_tblout.c: Likewise.
17462         * sunrpc/rpc_util.c: Likewise.
17463         * sunrpc/rpc_util.h: Likewise.
17464         * sunrpc/rpcinfo.c: Likewise.
17465         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
17466         * sunrpc/rpcsvc/key_prot.x: Likewise.
17467         * sunrpc/rpcsvc/klm_prot.x: Likewise.
17468         * sunrpc/rpcsvc/mount.x: Likewise.
17469         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
17470         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
17471         * sunrpc/rpcsvc/rex.x: Likewise.
17472         * sunrpc/rpcsvc/rstat.x: Likewise.
17473         * sunrpc/rpcsvc/rusers.x: Likewise.
17474         * sunrpc/rpcsvc/sm_inter.x: Likewise.
17475         * sunrpc/rpcsvc/spray.x: Likewise.
17476         * sunrpc/rpcsvc/yppasswd.x: Likewise.
17477         * sunrpc/rtime.c: Likewise.
17478         * sunrpc/svc.c: Likewise.
17479         * sunrpc/svc_auth.c: Likewise.
17480         * sunrpc/svc_authux.c: Likewise.
17481         * sunrpc/svc_raw.c: Likewise.
17482         * sunrpc/svc_run.c: Likewise.
17483         * sunrpc/svc_simple.c: Likewise.
17484         * sunrpc/svc_tcp.c: Likewise.
17485         * sunrpc/svc_udp.c: Likewise.
17486         * sunrpc/svc_unix.c: Likewise.
17487         * sunrpc/svcauth_des.c: Likewise.
17488         * sunrpc/xcrypt.c: Likewise.
17489         * sunrpc/xdr.c: Likewise.
17490         * sunrpc/xdr_array.c: Likewise.
17491         * sunrpc/xdr_float.c: Likewise.
17492         * sunrpc/xdr_mem.c: Likewise.
17493         * sunrpc/xdr_rec.c: Likewise.
17494         * sunrpc/xdr_ref.c: Likewise.
17495         * sunrpc/xdr_sizeof.c: Likewise.
17496         * sunrpc/xdr_stdio.c: Likewise.
17497
17498         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
17499         handling.
17500
17501 2010-08-19  Andreas Schwab  <schwab@redhat.com>
17502
17503         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
17504
17505 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
17506
17507         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
17508         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
17509         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
17510         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
17511         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
17512         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
17513         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
17514         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
17515         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
17516         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
17517         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
17518         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
17519         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
17520         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
17521
17522 2010-07-26  Anton Blanchard  <anton@samba.org>
17523
17524         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
17525         * malloc/arena.c (heap_trim): Likewise.
17526
17527 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
17528
17529         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
17530         here.  Not...
17531         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
17532         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
17533
17534 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
17535
17536         * sysdeps/i386/elf/Makefile: New file.
17537
17538 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
17539
17540         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
17541         from fanotify_init.
17542         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
17543         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17544
17545 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
17546
17547         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
17548         of strncasecmp_l.
17549         * sysdeps/multiarch/strcmp.S: Likewise.
17550
17551 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
17552
17553         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
17554         strncase_l-nonascii.
17555         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
17556         Add strncase_l-ssse3.
17557         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
17558         * sysdeps/x86_64/strcmp.S: Likewise.
17559         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
17560         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
17561         * sysdeps/x86_64/strncase.S: New file.
17562         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
17563         * sysdeps/x86_64/strncase_l.S: New file.
17564         * string/Makefile (strop-tests): Add strncasecmp.
17565         * string/test-strncasecmp.c: New file.
17566
17567         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
17568         warning.
17569
17570         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
17571         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
17572
17573 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
17574
17575         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
17576
17577 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
17578
17579         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
17580         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
17581         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
17582
17583 2010-05-01  Alan Modra  <amodra@gmail.com>
17584
17585         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
17586         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
17587         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
17588         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
17589         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
17590         tidying.  Don't tail-call __sigjmp_save for static lib.
17591         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
17592         save location.
17593         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
17594         (CALL_MCOUNT): Add eh info, and nop after bl.
17595         (TAIL_CALL_SYSCALL_ERROR): New macro.
17596         (PSEUDO_RET): Use it.
17597         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
17598         Correct save location of integer regs and cr.
17599         (_dl_profile_resolve): Correct cr save location.  Delete nops
17600         after bl when SHARED.  Reduce cfi size a little by better
17601         placement of cfi directives.
17602         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
17603         make a stack frame.  Instead use parm save area as a temp.
17604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
17605         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
17606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
17607         Don't make a stack frame for parent, use parm save area.
17608         Increase child stack frame to 112 bytes.  Don't save unused reg,
17609         and adjust reg usage.  Set up cfi on error recovery and
17610         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
17611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
17612         (__makecontext): Add dummy nop after jump to exit.
17613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
17614         Use correct parm save area and cr save, reduce stack frame.
17615         Correct cfi for possible PSEUDO_RET frame setup.
17616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
17617         Branch to local label emitted by PSEUDO_RET rather than
17618         __syscall_error.
17619
17620 2010-08-12  Andreas Schwab  <schwab@redhat.com>
17621
17622         [BZ #11904]
17623         * locale/programs/locale.c (print_assignment): New function.
17624         (show_locale_vars): Use it.
17625
17626 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
17627
17628         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
17629         field.
17630         (struct statfs64): Likewise.
17631         (_STATFS_F_FLAGS): Define.
17632         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
17633         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17634         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
17635         (ST_VALID): Define locally.
17636         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
17637         __statvfs_getflags, use the provided value.
17638         * sysdeps/unix/sysv/linux/kernel-features.h: Define
17639         __ASSUME_STATFS_F_FLAGS.
17640
17641         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
17642
17643         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
17644         Add sys/fanotify.h.
17645         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
17646         fanotify_mask for GLIBC_2.13.
17647         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
17648         fanotify_init and fanotify_mark.
17649         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17650         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
17651
17652         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
17653         Add prlimit.
17654         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
17655         prlimit64 for GLIBC_2.13.
17656         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
17657         prlimit64.
17658         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
17659         syscall.
17660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
17661         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
17662         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
17663         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
17664         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
17665         add prlimit alias.
17666         * sysdeps/unix/sysv/linux/prlimit.c: New file.
17667
17668         [BZ #11903]
17669         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
17670         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
17671
17672         * nss/Makefile: Add rules to build and run tst-nss-test1.
17673         * shlib-versions: Add entry for libnss_test1.
17674         * nss/nss_test1.c: New file.
17675         * nss/tst-nss-test1.c: New file.
17676
17677         * nss/nsswitch.c (__nss_database_custom): Define new variable.
17678         (__nss_configure_lookup): Set appropriate entry in
17679         __nss_configure_lookup to true.
17680         * nss/nsswitch.h: Define enum with indeces of databases in
17681         databases and __nss_database_custom arrays.  Declare
17682         __nss_database_custom.
17683         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
17684         to avoid using nscd when custom rules are installed.
17685         * nss/getXXbyYY_r.c: Likewise.
17686         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
17687
17688         * nss/nss_files/files-parse.c: Whitespace fixes.
17689
17690 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
17691
17692         [BZ #11883]
17693         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
17694         * posix/fnmatch_loop.c: Likewise.
17695
17696 2010-07-17  Andi Kleen  <ak@linux.intel.com>
17697
17698         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
17699         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
17700         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
17701         * Versions.def [GLIBC_2.13]: Add.
17702
17703 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
17704
17705         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17706         Also fail if tpwd after pwuid call is NULL.
17707
17708 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17709
17710         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
17711         when converting to ms.
17712
17713 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17714
17715         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
17716         EOPNOTSUPP errors with ENOTTY.
17717         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
17718         EOPNOTSUPP errors with ENOTTY.
17719
17720 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
17721
17722         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
17723         Add strcasecmp_l-ssse3.
17724         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
17725         strcasecmp.
17726         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
17727         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
17728         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
17729
17730 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
17731
17732         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
17733
17734         * string/Makefile (strop-tests): Add strcasecmp.
17735         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
17736         strcasecmp_l-nonascii.
17737         (gen-as-const-headers): Add locale-defines.sym.
17738         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
17739         * sysdeps/x86_64/strcasecmp.S: New file.
17740         * sysdeps/x86_64/strcasecmp_l.S: New file.
17741         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
17742         * sysdeps/x86_64/locale-defines.sym: New file.
17743         * string/test-strcasecmp.c: New file.
17744
17745         * string/test-strcasestr.c: Test both ends of the range of characters.
17746         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
17747
17748 2010-07-29  Roland McGrath  <roland@redhat.com>
17749
17750         [BZ #11856]
17751         * manual/locale.texi (Yes-or-No Questions): Fix example code.
17752
17753 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
17754
17755         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
17756         for ld.so.
17757
17758 2010-07-27  Andreas Schwab  <schwab@redhat.com>
17759
17760         * manual/memory.texi (Malloc Tunable Parameters): Document
17761         M_PERTURB.
17762
17763 2010-07-26  Roland McGrath  <roland@redhat.com>
17764
17765         [BZ #11840]
17766         * configure.in (-fgnu89-inline check): Set and substitute
17767         gnu89_inline, not libc_cv_gnu89_inline.
17768         * configure: Regenerated.
17769         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
17770
17771 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
17772
17773         * string/test-strnlen.c: New file.
17774         * string/Makefile (strop-tests): Add strnlen.
17775         * string/tester.c (test_strnlen): Add a few more test cases.
17776         * string/tst-strlen.c: Better error reporting.
17777
17778         * sysdeps/x86_64/strnlen.S: New file.
17779
17780 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
17781
17782         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
17783         lower-latency instructions.
17784
17785 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
17786
17787         * string/test-strcasestr.c: New file.
17788         * string/test-strstr.c: New file.
17789         * string/Makefile (strop-tests): Add strstr and strcasestr.
17790         * string/str-two-way.h: Don't undefine MAX.
17791         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
17792
17793 2010-07-21  Andreas Schwab  <schwab@redhat.com>
17794
17795         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17796         strcasestr-nonascii.
17797         (CFLAGS-strcasestr-nonascii.c): Define.
17798         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
17799         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
17800         Remove unused attribute.
17801
17802 2010-07-20  Roland McGrath  <roland@redhat.com>
17803
17804         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
17805         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
17806         ld.so.cache was broken.  With it, there is no way to disable dsocaps
17807         like LD_HWCAP_MASK can disable hwcaps.
17808
17809 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
17810
17811         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
17812
17813 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
17814
17815         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
17816         call in strcasestr.
17817         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
17818         __strcasestr_sse42_nonascii.
17819         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
17820         strcasestr-nonascii.c.
17821         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
17822
17823 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
17824
17825         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
17826         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
17827         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
17828         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
17829
17830 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
17831
17832         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
17833         fcntl.
17834
17835 2010-07-06  Andreas Schwab  <schwab@redhat.com>
17836
17837         [BZ #11577]
17838         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
17839         dl_signal_cerror.
17840
17841 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
17842
17843         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
17844         _PC_PIPE_BUF using F_GETPIPE_SZ.
17845
17846 2010-07-05  Roland McGrath  <roland@redhat.com>
17847
17848         * manual/arith.texi (Rounding Functions): Fix rint description
17849         implicit in round description.
17850
17851 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
17852
17853         * elf/Makefile: Fix linking for a few tests to make recent linker
17854         happy.
17855
17856 2010-06-30  Andreas Schwab  <schwab@redhat.com>
17857
17858         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17859         $(common-objpfx)libc_nonshared.a.
17860
17861 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
17862
17863         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
17864         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
17865         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
17866         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
17867         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
17868         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
17869         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
17870         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
17871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
17872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
17873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
17874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
17875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
17876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
17877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
17878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
17879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
17880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
17881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
17882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
17883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
17884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
17885         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
17886         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
17887         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
17888         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
17889         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
17890         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
17891         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
17892         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
17893         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
17894         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
17895         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
17896         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
17897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
17898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
17899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
17900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
17901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
17902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
17903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
17904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
17905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
17906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
17907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
17908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
17909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
17910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
17911
17912 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
17913
17914         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
17915         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
17916         * string/memmove.c (memmove): Renamed to ...
17917         (MEMMOVE): ...this.  Default to memmove.
17918         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
17919         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
17920         (END_CHK): Define.
17921         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17922         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
17923         mempcpy-ssse3-back memmove-ssse3-back.
17924         * sysdeps/x86_64/multiarch/bcopy.S: New file .
17925         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
17926         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
17927         * sysdeps/x86_64/multiarch/memcpy.S: New file.
17928         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
17929         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
17930         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
17931         * sysdeps/x86_64/multiarch/memmove.c: New file.
17932         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
17933         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
17934         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
17935         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
17936         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
17937         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
17938         Define.
17939         (index_Fast_Copy_Backward): Define.
17940         (HAS_ARCH_FEATURE): Define.
17941         (HAS_FAST_REP_STRING): Define.
17942         (HAS_FAST_COPY_BACKWARD): Define.
17943
17944 2010-06-21  Andreas Schwab  <schwab@redhat.com>
17945
17946         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17947         Restore proper fallback handling.
17948
17949 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
17950
17951         [BZ #11701]
17952         * posix/group_member.c (__group_member): Correct checking loop.
17953
17954         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
17955         OOM in getpwuid_r correctly.  Return error number when the caller
17956         should return, otherwise -1.
17957         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
17958         call returning > 0 value.
17959         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
17960
17961 2010-06-07  Andreas Schwab  <schwab@redhat.com>
17962
17963         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
17964         libc_nonshared.a from targets in modules-names.
17965
17966 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
17967
17968         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
17969         requires it.
17970
17971 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
17972
17973         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
17974         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
17975         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
17976         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
17977
17978 2010-06-02  Andreas Schwab  <schwab@redhat.com>
17979
17980         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
17981
17982 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
17983
17984         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
17985         and F_GETPIPE_SZ.
17986         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17987         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17988         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17989         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17990         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17991         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
17992
17993 2010-06-14  Roland McGrath  <roland@redhat.com>
17994
17995         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
17996
17997 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
17998
17999         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
18000         __REDIRECT followed by __THROW.
18001         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
18002         * posix/getopt.h (getopt): Likewise.
18003
18004 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18005
18006         * hurd/lookup-at.c (__file_name_lookup_at): Accept
18007         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
18008         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
18009         in AT_FLAGS.
18010         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
18011         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
18012
18013 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
18014
18015         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
18016
18017 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
18018
18019         [BZ #11640]
18020         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18021         Properly check family and model.
18022
18023 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
18024
18025         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
18026
18027 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
18028
18029         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
18030
18031 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
18032
18033         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
18034         symbol reference.
18035
18036 2010-05-19  Andreas Schwab  <schwab@redhat.com>
18037
18038         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
18039         symbol reference.
18040
18041 2010-05-21  Andreas Schwab  <schwab@redhat.com>
18042
18043         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
18044         and internal_recvmmsg.
18045         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
18046         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
18047         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
18048         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
18049
18050         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
18051         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
18052         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
18053
18054 2010-05-20  Andreas Schwab  <schwab@redhat.com>
18055
18056         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
18057
18058 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
18059
18060         POWER7 optimizations.
18061         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
18062         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
18063
18064 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
18065
18066         * version.h: Update for 2.13 development version.
18067
18068 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
18069
18070         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
18071         exceptions.  Return 0.
18072
18073 2010-05-07  Roland McGrath  <roland@redhat.com>
18074
18075         * elf/ldconfig.c (main): Add a const.
18076
18077 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
18078
18079         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
18080         (args_options): Add no-idn option.
18081         (ahosts_keys_int): Add idn_flags to ai_flags.
18082         (parse_option): Handle 'i' option to clear idn_flags.
18083
18084         * malloc/malloc.c (_int_free): Possible race in the most recently
18085         added check.  Only act on the data if no current modification
18086         happened.
18087
18088 See ChangeLog.17 for earlier changes.